1@%:@! /bin/sh
2@%:@ Guess values for system-dependent variables and create Makefiles.
3@%:@ Generated by GNU Autoconf 2.69 for scamper 20211026.
4@%:@
5@%:@ Report bugs to <mjl@luckie.org.nz>.
6@%:@
7@%:@
8@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9@%:@
10@%:@
11@%:@ This configure script is free software; the Free Software Foundation
12@%:@ gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## 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.
92as_myself=
93case $0 in @%:@((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in @%:@ ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in @%:@(
172  *posix*) :
173    set -o posix ;; @%:@(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    PATH=/empty FPATH=/empty; export PATH FPATH
207    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in @%:@(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in @%:@ ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and mjl@luckie.org.nz
278$0: about your system, including any error possibly output
279$0: before this message. Then install a modern shell, or
280$0: manually run the script under such a shell if you do
281$0: have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296@%:@ as_fn_unset VAR
297@%:@ ---------------
298@%:@ Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305@%:@ as_fn_set_status STATUS
306@%:@ -----------------------
307@%:@ Set @S|@? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} @%:@ as_fn_set_status
312
313@%:@ as_fn_exit STATUS
314@%:@ -----------------
315@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} @%:@ as_fn_exit
322
323@%:@ as_fn_mkdir_p
324@%:@ -------------
325@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} @%:@ as_fn_mkdir_p
370
371@%:@ as_fn_executable_p FILE
372@%:@ -----------------------
373@%:@ Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} @%:@ as_fn_executable_p
378@%:@ as_fn_append VAR VALUE
379@%:@ ----------------------
380@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
381@%:@ advantage of any shell optimizations that allow amortized linear growth over
382@%:@ repeated appends, instead of the typical quadratic growth present in naive
383@%:@ implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396@%:@ as_fn_arith ARG...
397@%:@ ------------------
398@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
399@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
400@%:@ must be portable across @S|@(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
415@%:@ ----------------------------------------
416@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418@%:@ script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} @%:@ as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in @%:@(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIB@&t@OBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='scamper'
592PACKAGE_TARNAME='scamper'
593PACKAGE_VERSION='20211026'
594PACKAGE_STRING='scamper 20211026'
595PACKAGE_BUGREPORT='mjl@luckie.org.nz'
596PACKAGE_URL=''
597
598ac_unique_file="scamper/scamper.c"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635ac_subst_vars='am__EXEEXT_FALSE
636am__EXEEXT_TRUE
637LTLIBOBJS
638LIB@&t@OBJS
639WITH_SC_UPTIME_FALSE
640WITH_SC_UPTIME_TRUE
641WITH_SC_HOIHO_FALSE
642WITH_SC_HOIHO_TRUE
643PCRE_LIBS
644PCRE_CFLAGS
645privsep_dir_group
646privsep_dir_owner
647privsep_dir
648privsep_user
649CPP
650LT_SYS_LIBRARY_PATH
651OTOOL64
652OTOOL
653LIPO
654NMEDIT
655DSYMUTIL
656MANIFEST_TOOL
657RANLIB
658ac_ct_AR
659AR
660DLLTOOL
661OBJDUMP
662LN_S
663NM
664ac_ct_DUMPBIN
665DUMPBIN
666LD
667FGREP
668EGREP
669GREP
670SED
671am__fastdepCC_FALSE
672am__fastdepCC_TRUE
673CCDEPMODE
674am__nodep
675AMDEPBACKSLASH
676AMDEP_FALSE
677AMDEP_TRUE
678am__include
679DEPDIR
680OBJEXT
681EXEEXT
682ac_ct_CC
683CPPFLAGS
684LDFLAGS
685CFLAGS
686CC
687LIBTOOL
688AM_BACKSLASH
689AM_DEFAULT_VERBOSITY
690AM_DEFAULT_V
691AM_V
692CSCOPE
693ETAGS
694CTAGS
695am__untar
696am__tar
697AMTAR
698am__leading_dot
699SET_MAKE
700AWK
701mkdir_p
702MKDIR_P
703INSTALL_STRIP_PROGRAM
704STRIP
705install_sh
706MAKEINFO
707AUTOHEADER
708AUTOMAKE
709AUTOCONF
710ACLOCAL
711VERSION
712PACKAGE
713CYGPATH_W
714am__isrc
715INSTALL_DATA
716INSTALL_SCRIPT
717INSTALL_PROGRAM
718target_os
719target_vendor
720target_cpu
721target
722host_os
723host_vendor
724host_cpu
725host
726build_os
727build_vendor
728build_cpu
729build
730target_alias
731host_alias
732build_alias
733LIBS
734ECHO_T
735ECHO_N
736ECHO_C
737DEFS
738mandir
739localedir
740libdir
741psdir
742pdfdir
743dvidir
744htmldir
745infodir
746docdir
747oldincludedir
748includedir
749localstatedir
750sharedstatedir
751sysconfdir
752datadir
753datarootdir
754libexecdir
755sbindir
756bindir
757program_transform_name
758prefix
759exec_prefix
760PACKAGE_URL
761PACKAGE_BUGREPORT
762PACKAGE_STRING
763PACKAGE_VERSION
764PACKAGE_TARNAME
765PACKAGE_NAME
766PATH_SEPARATOR
767SHELL
768am__quote'
769ac_subst_files=''
770ac_user_opts='
771enable_option_checking
772enable_silent_rules
773enable_shared
774enable_static
775with_pic
776enable_fast_install
777with_aix_soname
778enable_dependency_tracking
779with_gnu_ld
780with_sysroot
781enable_libtool_lock
782enable_debug
783enable_privsep
784with_privsep_user
785with_privsep_dir
786with_privsep_dir_owner
787with_privsep_dir_group
788enable_debug_file
789with_dmalloc
790with_pcre
791with_pcre2
792with_sc_hoiho
793with_sc_uptime
794enable_threads
795'
796      ac_precious_vars='build_alias
797host_alias
798target_alias
799CC
800CFLAGS
801LDFLAGS
802LIBS
803CPPFLAGS
804LT_SYS_LIBRARY_PATH
805CPP'
806
807
808# Initialize some variables set by options.
809ac_init_help=
810ac_init_version=false
811ac_unrecognized_opts=
812ac_unrecognized_sep=
813# The variables have the same names as the options, with
814# dashes changed to underlines.
815cache_file=/dev/null
816exec_prefix=NONE
817no_create=
818no_recursion=
819prefix=NONE
820program_prefix=NONE
821program_suffix=NONE
822program_transform_name=s,x,x,
823silent=
824site=
825srcdir=
826verbose=
827x_includes=NONE
828x_libraries=NONE
829
830# Installation directory options.
831# These are left unexpanded so users can "make install exec_prefix=/foo"
832# and all the variables that are supposed to be based on exec_prefix
833# by default will actually change.
834# Use braces instead of parens because sh, perl, etc. also accept them.
835# (The list follows the same order as the GNU Coding Standards.)
836bindir='${exec_prefix}/bin'
837sbindir='${exec_prefix}/sbin'
838libexecdir='${exec_prefix}/libexec'
839datarootdir='${prefix}/share'
840datadir='${datarootdir}'
841sysconfdir='${prefix}/etc'
842sharedstatedir='${prefix}/com'
843localstatedir='${prefix}/var'
844includedir='${prefix}/include'
845oldincludedir='/usr/include'
846docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
847infodir='${datarootdir}/info'
848htmldir='${docdir}'
849dvidir='${docdir}'
850pdfdir='${docdir}'
851psdir='${docdir}'
852libdir='${exec_prefix}/lib'
853localedir='${datarootdir}/locale'
854mandir='${datarootdir}/man'
855
856ac_prev=
857ac_dashdash=
858for ac_option
859do
860  # If the previous option needs an argument, assign it.
861  if test -n "$ac_prev"; then
862    eval $ac_prev=\$ac_option
863    ac_prev=
864    continue
865  fi
866
867  case $ac_option in
868  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
869  *=)   ac_optarg= ;;
870  *)    ac_optarg=yes ;;
871  esac
872
873  # Accept the important Cygnus configure options, so we can diagnose typos.
874
875  case $ac_dashdash$ac_option in
876  --)
877    ac_dashdash=yes ;;
878
879  -bindir | --bindir | --bindi | --bind | --bin | --bi)
880    ac_prev=bindir ;;
881  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
882    bindir=$ac_optarg ;;
883
884  -build | --build | --buil | --bui | --bu)
885    ac_prev=build_alias ;;
886  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
887    build_alias=$ac_optarg ;;
888
889  -cache-file | --cache-file | --cache-fil | --cache-fi \
890  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
891    ac_prev=cache_file ;;
892  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
893  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
894    cache_file=$ac_optarg ;;
895
896  --config-cache | -C)
897    cache_file=config.cache ;;
898
899  -datadir | --datadir | --datadi | --datad)
900    ac_prev=datadir ;;
901  -datadir=* | --datadir=* | --datadi=* | --datad=*)
902    datadir=$ac_optarg ;;
903
904  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
905  | --dataroo | --dataro | --datar)
906    ac_prev=datarootdir ;;
907  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
908  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
909    datarootdir=$ac_optarg ;;
910
911  -disable-* | --disable-*)
912    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
913    # Reject names that are not valid shell variable names.
914    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915      as_fn_error $? "invalid feature name: $ac_useropt"
916    ac_useropt_orig=$ac_useropt
917    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918    case $ac_user_opts in
919      *"
920"enable_$ac_useropt"
921"*) ;;
922      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
923	 ac_unrecognized_sep=', ';;
924    esac
925    eval enable_$ac_useropt=no ;;
926
927  -docdir | --docdir | --docdi | --doc | --do)
928    ac_prev=docdir ;;
929  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930    docdir=$ac_optarg ;;
931
932  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
933    ac_prev=dvidir ;;
934  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935    dvidir=$ac_optarg ;;
936
937  -enable-* | --enable-*)
938    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
939    # Reject names that are not valid shell variable names.
940    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
941      as_fn_error $? "invalid feature name: $ac_useropt"
942    ac_useropt_orig=$ac_useropt
943    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
944    case $ac_user_opts in
945      *"
946"enable_$ac_useropt"
947"*) ;;
948      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
949	 ac_unrecognized_sep=', ';;
950    esac
951    eval enable_$ac_useropt=\$ac_optarg ;;
952
953  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
954  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
955  | --exec | --exe | --ex)
956    ac_prev=exec_prefix ;;
957  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
958  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
959  | --exec=* | --exe=* | --ex=*)
960    exec_prefix=$ac_optarg ;;
961
962  -gas | --gas | --ga | --g)
963    # Obsolete; use --with-gas.
964    with_gas=yes ;;
965
966  -help | --help | --hel | --he | -h)
967    ac_init_help=long ;;
968  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
969    ac_init_help=recursive ;;
970  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
971    ac_init_help=short ;;
972
973  -host | --host | --hos | --ho)
974    ac_prev=host_alias ;;
975  -host=* | --host=* | --hos=* | --ho=*)
976    host_alias=$ac_optarg ;;
977
978  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
979    ac_prev=htmldir ;;
980  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
981  | --ht=*)
982    htmldir=$ac_optarg ;;
983
984  -includedir | --includedir | --includedi | --included | --include \
985  | --includ | --inclu | --incl | --inc)
986    ac_prev=includedir ;;
987  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
988  | --includ=* | --inclu=* | --incl=* | --inc=*)
989    includedir=$ac_optarg ;;
990
991  -infodir | --infodir | --infodi | --infod | --info | --inf)
992    ac_prev=infodir ;;
993  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
994    infodir=$ac_optarg ;;
995
996  -libdir | --libdir | --libdi | --libd)
997    ac_prev=libdir ;;
998  -libdir=* | --libdir=* | --libdi=* | --libd=*)
999    libdir=$ac_optarg ;;
1000
1001  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1002  | --libexe | --libex | --libe)
1003    ac_prev=libexecdir ;;
1004  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1005  | --libexe=* | --libex=* | --libe=*)
1006    libexecdir=$ac_optarg ;;
1007
1008  -localedir | --localedir | --localedi | --localed | --locale)
1009    ac_prev=localedir ;;
1010  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1011    localedir=$ac_optarg ;;
1012
1013  -localstatedir | --localstatedir | --localstatedi | --localstated \
1014  | --localstate | --localstat | --localsta | --localst | --locals)
1015    ac_prev=localstatedir ;;
1016  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1017  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1018    localstatedir=$ac_optarg ;;
1019
1020  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1021    ac_prev=mandir ;;
1022  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1023    mandir=$ac_optarg ;;
1024
1025  -nfp | --nfp | --nf)
1026    # Obsolete; use --without-fp.
1027    with_fp=no ;;
1028
1029  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1030  | --no-cr | --no-c | -n)
1031    no_create=yes ;;
1032
1033  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1034  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035    no_recursion=yes ;;
1036
1037  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1038  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1039  | --oldin | --oldi | --old | --ol | --o)
1040    ac_prev=oldincludedir ;;
1041  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1042  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1043  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1044    oldincludedir=$ac_optarg ;;
1045
1046  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1047    ac_prev=prefix ;;
1048  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1049    prefix=$ac_optarg ;;
1050
1051  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1052  | --program-pre | --program-pr | --program-p)
1053    ac_prev=program_prefix ;;
1054  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1055  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1056    program_prefix=$ac_optarg ;;
1057
1058  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1059  | --program-suf | --program-su | --program-s)
1060    ac_prev=program_suffix ;;
1061  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1062  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1063    program_suffix=$ac_optarg ;;
1064
1065  -program-transform-name | --program-transform-name \
1066  | --program-transform-nam | --program-transform-na \
1067  | --program-transform-n | --program-transform- \
1068  | --program-transform | --program-transfor \
1069  | --program-transfo | --program-transf \
1070  | --program-trans | --program-tran \
1071  | --progr-tra | --program-tr | --program-t)
1072    ac_prev=program_transform_name ;;
1073  -program-transform-name=* | --program-transform-name=* \
1074  | --program-transform-nam=* | --program-transform-na=* \
1075  | --program-transform-n=* | --program-transform-=* \
1076  | --program-transform=* | --program-transfor=* \
1077  | --program-transfo=* | --program-transf=* \
1078  | --program-trans=* | --program-tran=* \
1079  | --progr-tra=* | --program-tr=* | --program-t=*)
1080    program_transform_name=$ac_optarg ;;
1081
1082  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1083    ac_prev=pdfdir ;;
1084  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1085    pdfdir=$ac_optarg ;;
1086
1087  -psdir | --psdir | --psdi | --psd | --ps)
1088    ac_prev=psdir ;;
1089  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090    psdir=$ac_optarg ;;
1091
1092  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1093  | -silent | --silent | --silen | --sile | --sil)
1094    silent=yes ;;
1095
1096  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1097    ac_prev=sbindir ;;
1098  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1099  | --sbi=* | --sb=*)
1100    sbindir=$ac_optarg ;;
1101
1102  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1103  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1104  | --sharedst | --shareds | --shared | --share | --shar \
1105  | --sha | --sh)
1106    ac_prev=sharedstatedir ;;
1107  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1108  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1109  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1110  | --sha=* | --sh=*)
1111    sharedstatedir=$ac_optarg ;;
1112
1113  -site | --site | --sit)
1114    ac_prev=site ;;
1115  -site=* | --site=* | --sit=*)
1116    site=$ac_optarg ;;
1117
1118  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1119    ac_prev=srcdir ;;
1120  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1121    srcdir=$ac_optarg ;;
1122
1123  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1124  | --syscon | --sysco | --sysc | --sys | --sy)
1125    ac_prev=sysconfdir ;;
1126  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1127  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1128    sysconfdir=$ac_optarg ;;
1129
1130  -target | --target | --targe | --targ | --tar | --ta | --t)
1131    ac_prev=target_alias ;;
1132  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1133    target_alias=$ac_optarg ;;
1134
1135  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136    verbose=yes ;;
1137
1138  -version | --version | --versio | --versi | --vers | -V)
1139    ac_init_version=: ;;
1140
1141  -with-* | --with-*)
1142    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1143    # Reject names that are not valid shell variable names.
1144    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145      as_fn_error $? "invalid package name: $ac_useropt"
1146    ac_useropt_orig=$ac_useropt
1147    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148    case $ac_user_opts in
1149      *"
1150"with_$ac_useropt"
1151"*) ;;
1152      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1153	 ac_unrecognized_sep=', ';;
1154    esac
1155    eval with_$ac_useropt=\$ac_optarg ;;
1156
1157  -without-* | --without-*)
1158    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159    # Reject names that are not valid shell variable names.
1160    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1161      as_fn_error $? "invalid package name: $ac_useropt"
1162    ac_useropt_orig=$ac_useropt
1163    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1164    case $ac_user_opts in
1165      *"
1166"with_$ac_useropt"
1167"*) ;;
1168      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1169	 ac_unrecognized_sep=', ';;
1170    esac
1171    eval with_$ac_useropt=no ;;
1172
1173  --x)
1174    # Obsolete; use --with-x.
1175    with_x=yes ;;
1176
1177  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1178  | --x-incl | --x-inc | --x-in | --x-i)
1179    ac_prev=x_includes ;;
1180  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1181  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1182    x_includes=$ac_optarg ;;
1183
1184  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1185  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1186    ac_prev=x_libraries ;;
1187  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1188  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1189    x_libraries=$ac_optarg ;;
1190
1191  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1192Try \`$0 --help' for more information"
1193    ;;
1194
1195  *=*)
1196    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1197    # Reject names that are not valid shell variable names.
1198    case $ac_envvar in #(
1199      '' | [0-9]* | *[!_$as_cr_alnum]* )
1200      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1201    esac
1202    eval $ac_envvar=\$ac_optarg
1203    export $ac_envvar ;;
1204
1205  *)
1206    # FIXME: should be removed in autoconf 3.0.
1207    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1208    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1209      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1210    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1211    ;;
1212
1213  esac
1214done
1215
1216if test -n "$ac_prev"; then
1217  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1218  as_fn_error $? "missing argument to $ac_option"
1219fi
1220
1221if test -n "$ac_unrecognized_opts"; then
1222  case $enable_option_checking in
1223    no) ;;
1224    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1225    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1226  esac
1227fi
1228
1229# Check all directory arguments for consistency.
1230for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1231		datadir sysconfdir sharedstatedir localstatedir includedir \
1232		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1233		libdir localedir mandir
1234do
1235  eval ac_val=\$$ac_var
1236  # Remove trailing slashes.
1237  case $ac_val in
1238    */ )
1239      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1240      eval $ac_var=\$ac_val;;
1241  esac
1242  # Be sure to have absolute directory names.
1243  case $ac_val in
1244    [\\/$]* | ?:[\\/]* )  continue;;
1245    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1246  esac
1247  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1248done
1249
1250# There might be people who depend on the old broken behavior: `$host'
1251# used to hold the argument of --host etc.
1252# FIXME: To remove some day.
1253build=$build_alias
1254host=$host_alias
1255target=$target_alias
1256
1257# FIXME: To remove some day.
1258if test "x$host_alias" != x; then
1259  if test "x$build_alias" = x; then
1260    cross_compiling=maybe
1261  elif test "x$build_alias" != "x$host_alias"; then
1262    cross_compiling=yes
1263  fi
1264fi
1265
1266ac_tool_prefix=
1267test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268
1269test "$silent" = yes && exec 6>/dev/null
1270
1271
1272ac_pwd=`pwd` && test -n "$ac_pwd" &&
1273ac_ls_di=`ls -di .` &&
1274ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1275  as_fn_error $? "working directory cannot be determined"
1276test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1277  as_fn_error $? "pwd does not report name of working directory"
1278
1279
1280# Find the source files, if location was not specified.
1281if test -z "$srcdir"; then
1282  ac_srcdir_defaulted=yes
1283  # Try the directory containing this script, then the parent directory.
1284  ac_confdir=`$as_dirname -- "$as_myself" ||
1285$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286	 X"$as_myself" : 'X\(//\)[^/]' \| \
1287	 X"$as_myself" : 'X\(//\)$' \| \
1288	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1289$as_echo X"$as_myself" |
1290    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291	    s//\1/
1292	    q
1293	  }
1294	  /^X\(\/\/\)[^/].*/{
1295	    s//\1/
1296	    q
1297	  }
1298	  /^X\(\/\/\)$/{
1299	    s//\1/
1300	    q
1301	  }
1302	  /^X\(\/\).*/{
1303	    s//\1/
1304	    q
1305	  }
1306	  s/.*/./; q'`
1307  srcdir=$ac_confdir
1308  if test ! -r "$srcdir/$ac_unique_file"; then
1309    srcdir=..
1310  fi
1311else
1312  ac_srcdir_defaulted=no
1313fi
1314if test ! -r "$srcdir/$ac_unique_file"; then
1315  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317fi
1318ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1319ac_abs_confdir=`(
1320	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1321	pwd)`
1322# When building in place, set srcdir=.
1323if test "$ac_abs_confdir" = "$ac_pwd"; then
1324  srcdir=.
1325fi
1326# Remove unnecessary trailing slashes from srcdir.
1327# Double slashes in file names in object file debugging info
1328# mess up M-x gdb in Emacs.
1329case $srcdir in
1330*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1331esac
1332for ac_var in $ac_precious_vars; do
1333  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1334  eval ac_env_${ac_var}_value=\$${ac_var}
1335  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1336  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1337done
1338
1339#
1340# Report the --help message.
1341#
1342if test "$ac_init_help" = "long"; then
1343  # Omit some internal or obsolete options to make the list less imposing.
1344  # This message is too long to be a string in the A/UX 3.1 sh.
1345  cat <<_ACEOF
1346\`configure' configures scamper 20211026 to adapt to many kinds of systems.
1347
1348Usage: $0 [OPTION]... [VAR=VALUE]...
1349
1350To assign environment variables (e.g., CC, CFLAGS...), specify them as
1351VAR=VALUE.  See below for descriptions of some of the useful variables.
1352
1353Defaults for the options are specified in brackets.
1354
1355Configuration:
1356  -h, --help              display this help and exit
1357      --help=short        display options specific to this package
1358      --help=recursive    display the short help of all the included packages
1359  -V, --version           display version information and exit
1360  -q, --quiet, --silent   do not print \`checking ...' messages
1361      --cache-file=FILE   cache test results in FILE [disabled]
1362  -C, --config-cache      alias for \`--cache-file=config.cache'
1363  -n, --no-create         do not create output files
1364      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1365
1366Installation directories:
1367  --prefix=PREFIX         install architecture-independent files in PREFIX
1368                          @<:@@S|@ac_default_prefix@:>@
1369  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1370                          @<:@PREFIX@:>@
1371
1372By default, \`make install' will install all the files in
1373\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1374an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1375for instance \`--prefix=\$HOME'.
1376
1377For better control, use the options below.
1378
1379Fine tuning of the installation directories:
1380  --bindir=DIR            user executables [EPREFIX/bin]
1381  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1382  --libexecdir=DIR        program executables [EPREFIX/libexec]
1383  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1384  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1385  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1386  --libdir=DIR            object code libraries [EPREFIX/lib]
1387  --includedir=DIR        C header files [PREFIX/include]
1388  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1389  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1390  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1391  --infodir=DIR           info documentation [DATAROOTDIR/info]
1392  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1393  --mandir=DIR            man documentation [DATAROOTDIR/man]
1394  --docdir=DIR            documentation root @<:@DATAROOTDIR/doc/scamper@:>@
1395  --htmldir=DIR           html documentation [DOCDIR]
1396  --dvidir=DIR            dvi documentation [DOCDIR]
1397  --pdfdir=DIR            pdf documentation [DOCDIR]
1398  --psdir=DIR             ps documentation [DOCDIR]
1399_ACEOF
1400
1401  cat <<\_ACEOF
1402
1403Program names:
1404  --program-prefix=PREFIX            prepend PREFIX to installed program names
1405  --program-suffix=SUFFIX            append SUFFIX to installed program names
1406  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1407
1408System types:
1409  --build=BUILD     configure for building on BUILD [guessed]
1410  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1411  --target=TARGET   configure for building compilers for TARGET [HOST]
1412_ACEOF
1413fi
1414
1415if test -n "$ac_init_help"; then
1416  case $ac_init_help in
1417     short | recursive ) echo "Configuration of scamper 20211026:";;
1418   esac
1419  cat <<\_ACEOF
1420
1421Optional Features:
1422  --disable-option-checking  ignore unrecognized --enable/--with options
1423  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1424  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1425  --enable-silent-rules   less verbose build output (undo: "make V=1")
1426  --disable-silent-rules  verbose build output (undo: "make V=0")
1427  --enable-shared@<:@=PKGS@:>@  build shared libraries @<:@default=yes@:>@
1428  --enable-static@<:@=PKGS@:>@  build static libraries @<:@default=yes@:>@
1429  --enable-fast-install@<:@=PKGS@:>@
1430                          optimize for fast installation @<:@default=yes@:>@
1431  --enable-dependency-tracking
1432                          do not reject slow dependency extractors
1433  --disable-dependency-tracking
1434                          speeds up one-time build
1435  --disable-libtool-lock  avoid locking (might break parallel builds)
1436  --enable-debug          build with debugging symbols
1437  --disable-privsep       disable privilege separation
1438  --disable-debug-file    remove support for generating a debug file
1439  --disable-threads       disable use of threads
1440
1441Optional Packages:
1442  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1443  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1444  --with-pic@<:@=PKGS@:>@       try to use only PIC/non-PIC objects @<:@default=use
1445                          both@:>@
1446  --with-aix-soname=aix|svr4|both
1447                          shared library versioning (aka "SONAME") variant to
1448                          provide on AIX, @<:@default=aix@:>@.
1449  --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1450  --with-sysroot@<:@=DIR@:>@    Search for dependent libraries within DIR (or the
1451                          compiler's sysroot if not specified).
1452  --with-privsep-user=USER
1453                          sets user name for privsep process
1454  --with-privsep-dir=DIR  sets chroot directory for privsep process
1455  --with-privsep-dir-owner=USER
1456                          sets chroot directory owner
1457  --with-privsep-dir-group=GROUP
1458                          sets chroot directory group id
1459  --with-dmalloc          enable support for dmalloc
1460  --with-pcre             use pcre for regex engine
1461  --with-pcre2            use pcre2 for regex engine
1462  --with-sc_hoiho         enable support for sc_hoiho
1463  --with-sc_uptime        enable support for sc_uptime
1464
1465Some influential environment variables:
1466  CC          C compiler command
1467  CFLAGS      C compiler flags
1468  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469              nonstandard directory <lib dir>
1470  LIBS        libraries to pass to the linker, e.g. -l<library>
1471  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1472              you have headers in a nonstandard directory <include dir>
1473  LT_SYS_LIBRARY_PATH
1474              User-defined run-time library search path.
1475  CPP         C preprocessor
1476
1477Use these variables to override the choices made by `configure' or to help
1478it to find libraries and programs with nonstandard names/locations.
1479
1480Report bugs to <mjl@luckie.org.nz>.
1481_ACEOF
1482ac_status=$?
1483fi
1484
1485if test "$ac_init_help" = "recursive"; then
1486  # If there are subdirs, report their specific --help.
1487  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1488    test -d "$ac_dir" ||
1489      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1490      continue
1491    ac_builddir=.
1492
1493case "$ac_dir" in
1494.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495*)
1496  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1497  # A ".." for each directory in $ac_dir_suffix.
1498  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1499  case $ac_top_builddir_sub in
1500  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1501  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1502  esac ;;
1503esac
1504ac_abs_top_builddir=$ac_pwd
1505ac_abs_builddir=$ac_pwd$ac_dir_suffix
1506# for backward compatibility:
1507ac_top_builddir=$ac_top_build_prefix
1508
1509case $srcdir in
1510  .)  # We are building in place.
1511    ac_srcdir=.
1512    ac_top_srcdir=$ac_top_builddir_sub
1513    ac_abs_top_srcdir=$ac_pwd ;;
1514  [\\/]* | ?:[\\/]* )  # Absolute name.
1515    ac_srcdir=$srcdir$ac_dir_suffix;
1516    ac_top_srcdir=$srcdir
1517    ac_abs_top_srcdir=$srcdir ;;
1518  *) # Relative name.
1519    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1520    ac_top_srcdir=$ac_top_build_prefix$srcdir
1521    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1522esac
1523ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524
1525    cd "$ac_dir" || { ac_status=$?; continue; }
1526    # Check for guested configure.
1527    if test -f "$ac_srcdir/configure.gnu"; then
1528      echo &&
1529      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1530    elif test -f "$ac_srcdir/configure"; then
1531      echo &&
1532      $SHELL "$ac_srcdir/configure" --help=recursive
1533    else
1534      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1535    fi || ac_status=$?
1536    cd "$ac_pwd" || { ac_status=$?; break; }
1537  done
1538fi
1539
1540test -n "$ac_init_help" && exit $ac_status
1541if $ac_init_version; then
1542  cat <<\_ACEOF
1543scamper configure 20211026
1544generated by GNU Autoconf 2.69
1545
1546Copyright (C) 2012 Free Software Foundation, Inc.
1547This configure script is free software; the Free Software Foundation
1548gives unlimited permission to copy, distribute and modify it.
1549_ACEOF
1550  exit
1551fi
1552
1553## ------------------------ ##
1554## Autoconf initialization. ##
1555## ------------------------ ##
1556
1557@%:@ ac_fn_c_try_compile LINENO
1558@%:@ --------------------------
1559@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1560ac_fn_c_try_compile ()
1561{
1562  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1563  rm -f conftest.$ac_objext
1564  if { { ac_try="$ac_compile"
1565case "(($ac_try" in
1566  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1567  *) ac_try_echo=$ac_try;;
1568esac
1569eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1570$as_echo "$ac_try_echo"; } >&5
1571  (eval "$ac_compile") 2>conftest.err
1572  ac_status=$?
1573  if test -s conftest.err; then
1574    grep -v '^ *+' conftest.err >conftest.er1
1575    cat conftest.er1 >&5
1576    mv -f conftest.er1 conftest.err
1577  fi
1578  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1579  test $ac_status = 0; } && {
1580	 test -z "$ac_c_werror_flag" ||
1581	 test ! -s conftest.err
1582       } && test -s conftest.$ac_objext; then :
1583  ac_retval=0
1584else
1585  $as_echo "$as_me: failed program was:" >&5
1586sed 's/^/| /' conftest.$ac_ext >&5
1587
1588	ac_retval=1
1589fi
1590  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1591  as_fn_set_status $ac_retval
1592
1593} @%:@ ac_fn_c_try_compile
1594
1595@%:@ ac_fn_c_try_link LINENO
1596@%:@ -----------------------
1597@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1598ac_fn_c_try_link ()
1599{
1600  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601  rm -f conftest.$ac_objext conftest$ac_exeext
1602  if { { ac_try="$ac_link"
1603case "(($ac_try" in
1604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605  *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609  (eval "$ac_link") 2>conftest.err
1610  ac_status=$?
1611  if test -s conftest.err; then
1612    grep -v '^ *+' conftest.err >conftest.er1
1613    cat conftest.er1 >&5
1614    mv -f conftest.er1 conftest.err
1615  fi
1616  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617  test $ac_status = 0; } && {
1618	 test -z "$ac_c_werror_flag" ||
1619	 test ! -s conftest.err
1620       } && test -s conftest$ac_exeext && {
1621	 test "$cross_compiling" = yes ||
1622	 test -x conftest$ac_exeext
1623       }; then :
1624  ac_retval=0
1625else
1626  $as_echo "$as_me: failed program was:" >&5
1627sed 's/^/| /' conftest.$ac_ext >&5
1628
1629	ac_retval=1
1630fi
1631  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1632  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1633  # interfere with the next link command; also delete a directory that is
1634  # left behind by Apple's compiler.  We do this before executing the actions.
1635  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1636  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637  as_fn_set_status $ac_retval
1638
1639} @%:@ ac_fn_c_try_link
1640
1641@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1642@%:@ -------------------------------------------------------
1643@%:@ Tests whether HEADER exists and can be compiled using the include files in
1644@%:@ INCLUDES, setting the cache variable VAR accordingly.
1645ac_fn_c_check_header_compile ()
1646{
1647  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1649$as_echo_n "checking for $2... " >&6; }
1650if eval \${$3+:} false; then :
1651  $as_echo_n "(cached) " >&6
1652else
1653  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h.  */
1655$4
1656@%:@include <$2>
1657_ACEOF
1658if ac_fn_c_try_compile "$LINENO"; then :
1659  eval "$3=yes"
1660else
1661  eval "$3=no"
1662fi
1663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1664fi
1665eval ac_res=\$$3
1666	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1669
1670} @%:@ ac_fn_c_check_header_compile
1671
1672@%:@ ac_fn_c_try_cpp LINENO
1673@%:@ ----------------------
1674@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1675ac_fn_c_try_cpp ()
1676{
1677  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678  if { { ac_try="$ac_cpp conftest.$ac_ext"
1679case "(($ac_try" in
1680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681  *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1686  ac_status=$?
1687  if test -s conftest.err; then
1688    grep -v '^ *+' conftest.err >conftest.er1
1689    cat conftest.er1 >&5
1690    mv -f conftest.er1 conftest.err
1691  fi
1692  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693  test $ac_status = 0; } > conftest.i && {
1694	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1695	 test ! -s conftest.err
1696       }; then :
1697  ac_retval=0
1698else
1699  $as_echo "$as_me: failed program was:" >&5
1700sed 's/^/| /' conftest.$ac_ext >&5
1701
1702    ac_retval=1
1703fi
1704  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705  as_fn_set_status $ac_retval
1706
1707} @%:@ ac_fn_c_try_cpp
1708
1709@%:@ ac_fn_c_try_run LINENO
1710@%:@ ----------------------
1711@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1712@%:@ that executables *can* be run.
1713ac_fn_c_try_run ()
1714{
1715  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716  if { { ac_try="$ac_link"
1717case "(($ac_try" in
1718  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719  *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723  (eval "$ac_link") 2>&5
1724  ac_status=$?
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1727  { { case "(($ac_try" in
1728  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729  *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733  (eval "$ac_try") 2>&5
1734  ac_status=$?
1735  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736  test $ac_status = 0; }; }; then :
1737  ac_retval=0
1738else
1739  $as_echo "$as_me: program exited with status $ac_status" >&5
1740       $as_echo "$as_me: failed program was:" >&5
1741sed 's/^/| /' conftest.$ac_ext >&5
1742
1743       ac_retval=$ac_status
1744fi
1745  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747  as_fn_set_status $ac_retval
1748
1749} @%:@ ac_fn_c_try_run
1750
1751@%:@ ac_fn_c_check_func LINENO FUNC VAR
1752@%:@ ----------------------------------
1753@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1754ac_fn_c_check_func ()
1755{
1756  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1757  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1758$as_echo_n "checking for $2... " >&6; }
1759if eval \${$3+:} false; then :
1760  $as_echo_n "(cached) " >&6
1761else
1762  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763/* end confdefs.h.  */
1764/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1765   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1766#define $2 innocuous_$2
1767
1768/* System header to define __stub macros and hopefully few prototypes,
1769    which can conflict with char $2 (); below.
1770    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1771    <limits.h> exists even on freestanding compilers.  */
1772
1773#ifdef __STDC__
1774# include <limits.h>
1775#else
1776# include <assert.h>
1777#endif
1778
1779#undef $2
1780
1781/* Override any GCC internal prototype to avoid an error.
1782   Use char because int might match the return type of a GCC
1783   builtin and then its argument prototype would still apply.  */
1784#ifdef __cplusplus
1785extern "C"
1786#endif
1787char $2 ();
1788/* The GNU C library defines this for functions which it implements
1789    to always fail with ENOSYS.  Some functions are actually named
1790    something starting with __ and the normal name is an alias.  */
1791#if defined __stub_$2 || defined __stub___$2
1792choke me
1793#endif
1794
1795int
1796main ()
1797{
1798return $2 ();
1799  ;
1800  return 0;
1801}
1802_ACEOF
1803if ac_fn_c_try_link "$LINENO"; then :
1804  eval "$3=yes"
1805else
1806  eval "$3=no"
1807fi
1808rm -f core conftest.err conftest.$ac_objext \
1809    conftest$ac_exeext conftest.$ac_ext
1810fi
1811eval ac_res=\$$3
1812	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1813$as_echo "$ac_res" >&6; }
1814  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815
1816} @%:@ ac_fn_c_check_func
1817
1818@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1819@%:@ -------------------------------------------------------
1820@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1821@%:@ the include files in INCLUDES and setting the cache variable VAR
1822@%:@ accordingly.
1823ac_fn_c_check_header_mongrel ()
1824{
1825  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826  if eval \${$3+:} false; then :
1827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1828$as_echo_n "checking for $2... " >&6; }
1829if eval \${$3+:} false; then :
1830  $as_echo_n "(cached) " >&6
1831fi
1832eval ac_res=\$$3
1833	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1834$as_echo "$ac_res" >&6; }
1835else
1836  # Is the header compilable?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1838$as_echo_n "checking $2 usability... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841$4
1842@%:@include <$2>
1843_ACEOF
1844if ac_fn_c_try_compile "$LINENO"; then :
1845  ac_header_compiler=yes
1846else
1847  ac_header_compiler=no
1848fi
1849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1851$as_echo "$ac_header_compiler" >&6; }
1852
1853# Is the header present?
1854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1855$as_echo_n "checking $2 presence... " >&6; }
1856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857/* end confdefs.h.  */
1858@%:@include <$2>
1859_ACEOF
1860if ac_fn_c_try_cpp "$LINENO"; then :
1861  ac_header_preproc=yes
1862else
1863  ac_header_preproc=no
1864fi
1865rm -f conftest.err conftest.i conftest.$ac_ext
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1867$as_echo "$ac_header_preproc" >&6; }
1868
1869# So?  What about this header?
1870case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1871  yes:no: )
1872    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1873$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1874    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1875$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1876    ;;
1877  no:yes:* )
1878    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1879$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1880    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1881$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1882    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1883$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1884    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1885$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1886    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888( $as_echo "## -------------------------------- ##
1889## Report this to mjl@luckie.org.nz ##
1890## -------------------------------- ##"
1891     ) | sed "s/^/$as_me: WARNING:     /" >&2
1892    ;;
1893esac
1894  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if eval \${$3+:} false; then :
1897  $as_echo_n "(cached) " >&6
1898else
1899  eval "$3=\$ac_header_compiler"
1900fi
1901eval ac_res=\$$3
1902	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903$as_echo "$ac_res" >&6; }
1904fi
1905  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906
1907} @%:@ ac_fn_c_check_header_mongrel
1908
1909@%:@ ac_fn_c_find_intX_t LINENO BITS VAR
1910@%:@ -----------------------------------
1911@%:@ Finds a signed integer type with width BITS, setting cache variable VAR
1912@%:@ accordingly.
1913ac_fn_c_find_intX_t ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1917$as_echo_n "checking for int$2_t... " >&6; }
1918if eval \${$3+:} false; then :
1919  $as_echo_n "(cached) " >&6
1920else
1921  eval "$3=no"
1922     # Order is important - never check a type that is potentially smaller
1923     # than half of the expected target width.
1924     for ac_type in int$2_t 'int' 'long int' \
1925	 'long long int' 'short int' 'signed char'; do
1926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h.  */
1928$ac_includes_default
1929	     enum { N = $2 / 2 - 1 };
1930int
1931main ()
1932{
1933static int test_array @<:@1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))@:>@;
1934test_array @<:@0@:>@ = 0;
1935return test_array @<:@0@:>@;
1936
1937  ;
1938  return 0;
1939}
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h.  */
1944$ac_includes_default
1945	        enum { N = $2 / 2 - 1 };
1946int
1947main ()
1948{
1949static int test_array @<:@1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1950		 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))@:>@;
1951test_array @<:@0@:>@ = 0;
1952return test_array @<:@0@:>@;
1953
1954  ;
1955  return 0;
1956}
1957_ACEOF
1958if ac_fn_c_try_compile "$LINENO"; then :
1959
1960else
1961  case $ac_type in @%:@(
1962  int$2_t) :
1963    eval "$3=yes" ;; @%:@(
1964  *) :
1965    eval "$3=\$ac_type" ;;
1966esac
1967fi
1968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1969fi
1970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1971       if eval test \"x\$"$3"\" = x"no"; then :
1972
1973else
1974  break
1975fi
1976     done
1977fi
1978eval ac_res=\$$3
1979	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983} @%:@ ac_fn_c_find_intX_t
1984
1985@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1986@%:@ -------------------------------------------
1987@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1988@%:@ variable VAR accordingly.
1989ac_fn_c_check_type ()
1990{
1991  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993$as_echo_n "checking for $2... " >&6; }
1994if eval \${$3+:} false; then :
1995  $as_echo_n "(cached) " >&6
1996else
1997  eval "$3=no"
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000$4
2001int
2002main ()
2003{
2004if (sizeof ($2))
2005	 return 0;
2006  ;
2007  return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012/* end confdefs.h.  */
2013$4
2014int
2015main ()
2016{
2017if (sizeof (($2)))
2018	    return 0;
2019  ;
2020  return 0;
2021}
2022_ACEOF
2023if ac_fn_c_try_compile "$LINENO"; then :
2024
2025else
2026  eval "$3=yes"
2027fi
2028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029fi
2030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031fi
2032eval ac_res=\$$3
2033	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034$as_echo "$ac_res" >&6; }
2035  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036
2037} @%:@ ac_fn_c_check_type
2038
2039@%:@ ac_fn_c_find_uintX_t LINENO BITS VAR
2040@%:@ ------------------------------------
2041@%:@ Finds an unsigned integer type with width BITS, setting cache variable VAR
2042@%:@ accordingly.
2043ac_fn_c_find_uintX_t ()
2044{
2045  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2047$as_echo_n "checking for uint$2_t... " >&6; }
2048if eval \${$3+:} false; then :
2049  $as_echo_n "(cached) " >&6
2050else
2051  eval "$3=no"
2052     # Order is important - never check a type that is potentially smaller
2053     # than half of the expected target width.
2054     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2055	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2056       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057/* end confdefs.h.  */
2058$ac_includes_default
2059int
2060main ()
2061{
2062static int test_array @<:@1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)@:>@;
2063test_array @<:@0@:>@ = 0;
2064return test_array @<:@0@:>@;
2065
2066  ;
2067  return 0;
2068}
2069_ACEOF
2070if ac_fn_c_try_compile "$LINENO"; then :
2071  case $ac_type in @%:@(
2072  uint$2_t) :
2073    eval "$3=yes" ;; @%:@(
2074  *) :
2075    eval "$3=\$ac_type" ;;
2076esac
2077fi
2078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079       if eval test \"x\$"$3"\" = x"no"; then :
2080
2081else
2082  break
2083fi
2084     done
2085fi
2086eval ac_res=\$$3
2087	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088$as_echo "$ac_res" >&6; }
2089  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091} @%:@ ac_fn_c_find_uintX_t
2092
2093@%:@ ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2094@%:@ --------------------------------------------
2095@%:@ Tries to find the compile-time value of EXPR in a program that includes
2096@%:@ INCLUDES, setting VAR accordingly. Returns whether the value could be
2097@%:@ computed
2098ac_fn_c_compute_int ()
2099{
2100  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101  if test "$cross_compiling" = yes; then
2102    # Depending upon the size, compute the lo and hi bounds.
2103cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104/* end confdefs.h.  */
2105$4
2106int
2107main ()
2108{
2109static int test_array @<:@1 - 2 * !(($2) >= 0)@:>@;
2110test_array @<:@0@:>@ = 0;
2111return test_array @<:@0@:>@;
2112
2113  ;
2114  return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_compile "$LINENO"; then :
2118  ac_lo=0 ac_mid=0
2119  while :; do
2120    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h.  */
2122$4
2123int
2124main ()
2125{
2126static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2127test_array @<:@0@:>@ = 0;
2128return test_array @<:@0@:>@;
2129
2130  ;
2131  return 0;
2132}
2133_ACEOF
2134if ac_fn_c_try_compile "$LINENO"; then :
2135  ac_hi=$ac_mid; break
2136else
2137  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2138			if test $ac_lo -le $ac_mid; then
2139			  ac_lo= ac_hi=
2140			  break
2141			fi
2142			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2143fi
2144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145  done
2146else
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149$4
2150int
2151main ()
2152{
2153static int test_array @<:@1 - 2 * !(($2) < 0)@:>@;
2154test_array @<:@0@:>@ = 0;
2155return test_array @<:@0@:>@;
2156
2157  ;
2158  return 0;
2159}
2160_ACEOF
2161if ac_fn_c_try_compile "$LINENO"; then :
2162  ac_hi=-1 ac_mid=-1
2163  while :; do
2164    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165/* end confdefs.h.  */
2166$4
2167int
2168main ()
2169{
2170static int test_array @<:@1 - 2 * !(($2) >= $ac_mid)@:>@;
2171test_array @<:@0@:>@ = 0;
2172return test_array @<:@0@:>@;
2173
2174  ;
2175  return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
2179  ac_lo=$ac_mid; break
2180else
2181  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2182			if test $ac_mid -le $ac_hi; then
2183			  ac_lo= ac_hi=
2184			  break
2185			fi
2186			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2187fi
2188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189  done
2190else
2191  ac_lo= ac_hi=
2192fi
2193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194fi
2195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196# Binary search between lo and hi bounds.
2197while test "x$ac_lo" != "x$ac_hi"; do
2198  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main ()
2204{
2205static int test_array @<:@1 - 2 * !(($2) <= $ac_mid)@:>@;
2206test_array @<:@0@:>@ = 0;
2207return test_array @<:@0@:>@;
2208
2209  ;
2210  return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214  ac_hi=$ac_mid
2215else
2216  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2217fi
2218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219done
2220case $ac_lo in @%:@((
2221?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2222'') ac_retval=1 ;;
2223esac
2224  else
2225    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226/* end confdefs.h.  */
2227$4
2228static long int longval () { return $2; }
2229static unsigned long int ulongval () { return $2; }
2230@%:@include <stdio.h>
2231@%:@include <stdlib.h>
2232int
2233main ()
2234{
2235
2236  FILE *f = fopen ("conftest.val", "w");
2237  if (! f)
2238    return 1;
2239  if (($2) < 0)
2240    {
2241      long int i = longval ();
2242      if (i != ($2))
2243	return 1;
2244      fprintf (f, "%ld", i);
2245    }
2246  else
2247    {
2248      unsigned long int i = ulongval ();
2249      if (i != ($2))
2250	return 1;
2251      fprintf (f, "%lu", i);
2252    }
2253  /* Do not output a trailing newline, as this causes \r\n confusion
2254     on some platforms.  */
2255  return ferror (f) || fclose (f) != 0;
2256
2257  ;
2258  return 0;
2259}
2260_ACEOF
2261if ac_fn_c_try_run "$LINENO"; then :
2262  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2263else
2264  ac_retval=1
2265fi
2266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2267  conftest.$ac_objext conftest.beam conftest.$ac_ext
2268rm -f conftest.val
2269
2270  fi
2271  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2272  as_fn_set_status $ac_retval
2273
2274} @%:@ ac_fn_c_compute_int
2275
2276@%:@ ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2277@%:@ ----------------------------------------------------
2278@%:@ Tries to find if the field MEMBER exists in type AGGR, after including
2279@%:@ INCLUDES, setting cache variable VAR accordingly.
2280ac_fn_c_check_member ()
2281{
2282  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2284$as_echo_n "checking for $2.$3... " >&6; }
2285if eval \${$4+:} false; then :
2286  $as_echo_n "(cached) " >&6
2287else
2288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2289/* end confdefs.h.  */
2290$5
2291int
2292main ()
2293{
2294static $2 ac_aggr;
2295if (ac_aggr.$3)
2296return 0;
2297  ;
2298  return 0;
2299}
2300_ACEOF
2301if ac_fn_c_try_compile "$LINENO"; then :
2302  eval "$4=yes"
2303else
2304  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305/* end confdefs.h.  */
2306$5
2307int
2308main ()
2309{
2310static $2 ac_aggr;
2311if (sizeof ac_aggr.$3)
2312return 0;
2313  ;
2314  return 0;
2315}
2316_ACEOF
2317if ac_fn_c_try_compile "$LINENO"; then :
2318  eval "$4=yes"
2319else
2320  eval "$4=no"
2321fi
2322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326eval ac_res=\$$4
2327	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2328$as_echo "$ac_res" >&6; }
2329  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2330
2331} @%:@ ac_fn_c_check_member
2332cat >config.log <<_ACEOF
2333This file contains any messages produced by compilers while
2334running configure, to aid debugging if configure makes a mistake.
2335
2336It was created by scamper $as_me 20211026, which was
2337generated by GNU Autoconf 2.69.  Invocation command line was
2338
2339  $ $0 $@
2340
2341_ACEOF
2342exec 5>>config.log
2343{
2344cat <<_ASUNAME
2345## --------- ##
2346## Platform. ##
2347## --------- ##
2348
2349hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2350uname -m = `(uname -m) 2>/dev/null || echo unknown`
2351uname -r = `(uname -r) 2>/dev/null || echo unknown`
2352uname -s = `(uname -s) 2>/dev/null || echo unknown`
2353uname -v = `(uname -v) 2>/dev/null || echo unknown`
2354
2355/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2356/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2357
2358/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2359/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2360/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2361/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2362/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2363/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2364/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2365
2366_ASUNAME
2367
2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369for as_dir in $PATH
2370do
2371  IFS=$as_save_IFS
2372  test -z "$as_dir" && as_dir=.
2373    $as_echo "PATH: $as_dir"
2374  done
2375IFS=$as_save_IFS
2376
2377} >&5
2378
2379cat >&5 <<_ACEOF
2380
2381
2382## ----------- ##
2383## Core tests. ##
2384## ----------- ##
2385
2386_ACEOF
2387
2388
2389# Keep a trace of the command line.
2390# Strip out --no-create and --no-recursion so they do not pile up.
2391# Strip out --silent because we don't want to record it for future runs.
2392# Also quote any args containing shell meta-characters.
2393# Make two passes to allow for proper duplicate-argument suppression.
2394ac_configure_args=
2395ac_configure_args0=
2396ac_configure_args1=
2397ac_must_keep_next=false
2398for ac_pass in 1 2
2399do
2400  for ac_arg
2401  do
2402    case $ac_arg in
2403    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2404    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2405    | -silent | --silent | --silen | --sile | --sil)
2406      continue ;;
2407    *\'*)
2408      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2409    esac
2410    case $ac_pass in
2411    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2412    2)
2413      as_fn_append ac_configure_args1 " '$ac_arg'"
2414      if test $ac_must_keep_next = true; then
2415	ac_must_keep_next=false # Got value, back to normal.
2416      else
2417	case $ac_arg in
2418	  *=* | --config-cache | -C | -disable-* | --disable-* \
2419	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2420	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2421	  | -with-* | --with-* | -without-* | --without-* | --x)
2422	    case "$ac_configure_args0 " in
2423	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2424	    esac
2425	    ;;
2426	  -* ) ac_must_keep_next=true ;;
2427	esac
2428      fi
2429      as_fn_append ac_configure_args " '$ac_arg'"
2430      ;;
2431    esac
2432  done
2433done
2434{ ac_configure_args0=; unset ac_configure_args0;}
2435{ ac_configure_args1=; unset ac_configure_args1;}
2436
2437# When interrupted or exit'd, cleanup temporary files, and complete
2438# config.log.  We remove comments because anyway the quotes in there
2439# would cause problems or look ugly.
2440# WARNING: Use '\'' to represent an apostrophe within the trap.
2441# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2442trap 'exit_status=$?
2443  # Save into config.log some information that might help in debugging.
2444  {
2445    echo
2446
2447    $as_echo "## ---------------- ##
2448## Cache variables. ##
2449## ---------------- ##"
2450    echo
2451    # The following way of writing the cache mishandles newlines in values,
2452(
2453  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2454    eval ac_val=\$$ac_var
2455    case $ac_val in #(
2456    *${as_nl}*)
2457      case $ac_var in #(
2458      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2459$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2460      esac
2461      case $ac_var in #(
2462      _ | IFS | as_nl) ;; #(
2463      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2464      *) { eval $ac_var=; unset $ac_var;} ;;
2465      esac ;;
2466    esac
2467  done
2468  (set) 2>&1 |
2469    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2470    *${as_nl}ac_space=\ *)
2471      sed -n \
2472	"s/'\''/'\''\\\\'\'''\''/g;
2473	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2474      ;; #(
2475    *)
2476      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2477      ;;
2478    esac |
2479    sort
2480)
2481    echo
2482
2483    $as_echo "## ----------------- ##
2484## Output variables. ##
2485## ----------------- ##"
2486    echo
2487    for ac_var in $ac_subst_vars
2488    do
2489      eval ac_val=\$$ac_var
2490      case $ac_val in
2491      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2492      esac
2493      $as_echo "$ac_var='\''$ac_val'\''"
2494    done | sort
2495    echo
2496
2497    if test -n "$ac_subst_files"; then
2498      $as_echo "## ------------------- ##
2499## File substitutions. ##
2500## ------------------- ##"
2501      echo
2502      for ac_var in $ac_subst_files
2503      do
2504	eval ac_val=\$$ac_var
2505	case $ac_val in
2506	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2507	esac
2508	$as_echo "$ac_var='\''$ac_val'\''"
2509      done | sort
2510      echo
2511    fi
2512
2513    if test -s confdefs.h; then
2514      $as_echo "## ----------- ##
2515## confdefs.h. ##
2516## ----------- ##"
2517      echo
2518      cat confdefs.h
2519      echo
2520    fi
2521    test "$ac_signal" != 0 &&
2522      $as_echo "$as_me: caught signal $ac_signal"
2523    $as_echo "$as_me: exit $exit_status"
2524  } >&5
2525  rm -f core *.core core.conftest.* &&
2526    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2527    exit $exit_status
2528' 0
2529for ac_signal in 1 2 13 15; do
2530  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2531done
2532ac_signal=0
2533
2534# confdefs.h avoids OS command line length limits that DEFS can exceed.
2535rm -f -r conftest* confdefs.h
2536
2537$as_echo "/* confdefs.h */" > confdefs.h
2538
2539# Predefined preprocessor variables.
2540
2541cat >>confdefs.h <<_ACEOF
2542@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2543_ACEOF
2544
2545cat >>confdefs.h <<_ACEOF
2546@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2547_ACEOF
2548
2549cat >>confdefs.h <<_ACEOF
2550@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2551_ACEOF
2552
2553cat >>confdefs.h <<_ACEOF
2554@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562@%:@define PACKAGE_URL "$PACKAGE_URL"
2563_ACEOF
2564
2565
2566# Let the site file select an alternate cache file if it wants to.
2567# Prefer an explicitly selected file to automatically selected ones.
2568ac_site_file1=NONE
2569ac_site_file2=NONE
2570if test -n "$CONFIG_SITE"; then
2571  # We do not want a PATH search for config.site.
2572  case $CONFIG_SITE in @%:@((
2573    -*)  ac_site_file1=./$CONFIG_SITE;;
2574    */*) ac_site_file1=$CONFIG_SITE;;
2575    *)   ac_site_file1=./$CONFIG_SITE;;
2576  esac
2577elif test "x$prefix" != xNONE; then
2578  ac_site_file1=$prefix/share/config.site
2579  ac_site_file2=$prefix/etc/config.site
2580else
2581  ac_site_file1=$ac_default_prefix/share/config.site
2582  ac_site_file2=$ac_default_prefix/etc/config.site
2583fi
2584for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2585do
2586  test "x$ac_site_file" = xNONE && continue
2587  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2588    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2589$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2590    sed 's/^/| /' "$ac_site_file" >&5
2591    . "$ac_site_file" \
2592      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2593$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2594as_fn_error $? "failed to load site script $ac_site_file
2595See \`config.log' for more details" "$LINENO" 5; }
2596  fi
2597done
2598
2599if test -r "$cache_file"; then
2600  # Some versions of bash will fail to source /dev/null (special files
2601  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2602  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2603    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2604$as_echo "$as_me: loading cache $cache_file" >&6;}
2605    case $cache_file in
2606      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2607      *)                      . "./$cache_file";;
2608    esac
2609  fi
2610else
2611  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2612$as_echo "$as_me: creating cache $cache_file" >&6;}
2613  >$cache_file
2614fi
2615
2616# Check that the precious variables saved in the cache have kept the same
2617# value.
2618ac_cache_corrupted=false
2619for ac_var in $ac_precious_vars; do
2620  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2621  eval ac_new_set=\$ac_env_${ac_var}_set
2622  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2623  eval ac_new_val=\$ac_env_${ac_var}_value
2624  case $ac_old_set,$ac_new_set in
2625    set,)
2626      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2627$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2628      ac_cache_corrupted=: ;;
2629    ,set)
2630      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2631$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2632      ac_cache_corrupted=: ;;
2633    ,);;
2634    *)
2635      if test "x$ac_old_val" != "x$ac_new_val"; then
2636	# differences in whitespace do not lead to failure.
2637	ac_old_val_w=`echo x $ac_old_val`
2638	ac_new_val_w=`echo x $ac_new_val`
2639	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2640	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2641$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2642	  ac_cache_corrupted=:
2643	else
2644	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2645$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2646	  eval $ac_var=\$ac_old_val
2647	fi
2648	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2649$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2650	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2651$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2652      fi;;
2653  esac
2654  # Pass precious variables to config.status.
2655  if test "$ac_new_set" = set; then
2656    case $ac_new_val in
2657    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2658    *) ac_arg=$ac_var=$ac_new_val ;;
2659    esac
2660    case " $ac_configure_args " in
2661      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2662      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2663    esac
2664  fi
2665done
2666if $ac_cache_corrupted; then
2667  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2668$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2669  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2670$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2671  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2672fi
2673## -------------------- ##
2674## Main body of script. ##
2675## -------------------- ##
2676
2677ac_ext=c
2678ac_cpp='$CPP $CPPFLAGS'
2679ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2680ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2681ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682
2683
2684
2685
2686ac_config_headers="$ac_config_headers config.h"
2687
2688
2689ac_aux_dir=
2690for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2691  if test -f "$ac_dir/install-sh"; then
2692    ac_aux_dir=$ac_dir
2693    ac_install_sh="$ac_aux_dir/install-sh -c"
2694    break
2695  elif test -f "$ac_dir/install.sh"; then
2696    ac_aux_dir=$ac_dir
2697    ac_install_sh="$ac_aux_dir/install.sh -c"
2698    break
2699  elif test -f "$ac_dir/shtool"; then
2700    ac_aux_dir=$ac_dir
2701    ac_install_sh="$ac_aux_dir/shtool install -c"
2702    break
2703  fi
2704done
2705if test -z "$ac_aux_dir"; then
2706  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2707fi
2708
2709# These three variables are undocumented and unsupported,
2710# and are intended to be withdrawn in a future Autoconf release.
2711# They can cause serious problems if a builder's source tree is in a directory
2712# whose full name contains unusual characters.
2713ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2714ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2715ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2716
2717
2718# Make sure we can run config.sub.
2719$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2720  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2721
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2723$as_echo_n "checking build system type... " >&6; }
2724if ${ac_cv_build+:} false; then :
2725  $as_echo_n "(cached) " >&6
2726else
2727  ac_build_alias=$build_alias
2728test "x$ac_build_alias" = x &&
2729  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2730test "x$ac_build_alias" = x &&
2731  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2732ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2733  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2734
2735fi
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2737$as_echo "$ac_cv_build" >&6; }
2738case $ac_cv_build in
2739*-*-*) ;;
2740*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2741esac
2742build=$ac_cv_build
2743ac_save_IFS=$IFS; IFS='-'
2744set x $ac_cv_build
2745shift
2746build_cpu=$1
2747build_vendor=$2
2748shift; shift
2749# Remember, the first character of IFS is used to create $*,
2750# except with old shells:
2751build_os=$*
2752IFS=$ac_save_IFS
2753case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2754
2755
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2757$as_echo_n "checking host system type... " >&6; }
2758if ${ac_cv_host+:} false; then :
2759  $as_echo_n "(cached) " >&6
2760else
2761  if test "x$host_alias" = x; then
2762  ac_cv_host=$ac_cv_build
2763else
2764  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2765    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2766fi
2767
2768fi
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2770$as_echo "$ac_cv_host" >&6; }
2771case $ac_cv_host in
2772*-*-*) ;;
2773*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2774esac
2775host=$ac_cv_host
2776ac_save_IFS=$IFS; IFS='-'
2777set x $ac_cv_host
2778shift
2779host_cpu=$1
2780host_vendor=$2
2781shift; shift
2782# Remember, the first character of IFS is used to create $*,
2783# except with old shells:
2784host_os=$*
2785IFS=$ac_save_IFS
2786case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2787
2788
2789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2790$as_echo_n "checking target system type... " >&6; }
2791if ${ac_cv_target+:} false; then :
2792  $as_echo_n "(cached) " >&6
2793else
2794  if test "x$target_alias" = x; then
2795  ac_cv_target=$ac_cv_host
2796else
2797  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2798    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2799fi
2800
2801fi
2802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2803$as_echo "$ac_cv_target" >&6; }
2804case $ac_cv_target in
2805*-*-*) ;;
2806*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2807esac
2808target=$ac_cv_target
2809ac_save_IFS=$IFS; IFS='-'
2810set x $ac_cv_target
2811shift
2812target_cpu=$1
2813target_vendor=$2
2814shift; shift
2815# Remember, the first character of IFS is used to create $*,
2816# except with old shells:
2817target_os=$*
2818IFS=$ac_save_IFS
2819case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2820
2821
2822# The aliases save the names the user supplied, while $host etc.
2823# will get canonicalized.
2824test -n "$target_alias" &&
2825  test "$program_prefix$program_suffix$program_transform_name" = \
2826    NONENONEs,x,x, &&
2827  program_prefix=${target_alias}-
2828am__api_version='1.16'
2829
2830# Find a good install program.  We prefer a C program (faster),
2831# so one script is as good as another.  But avoid the broken or
2832# incompatible versions:
2833# SysV /etc/install, /usr/sbin/install
2834# SunOS /usr/etc/install
2835# IRIX /sbin/install
2836# AIX /bin/install
2837# AmigaOS /C/install, which installs bootblocks on floppy discs
2838# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2839# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2840# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2841# OS/2's system install, which has a completely different semantic
2842# ./install, which can be erroneously created by make from ./install.sh.
2843# Reject install programs that cannot install multiple files.
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2845$as_echo_n "checking for a BSD-compatible install... " >&6; }
2846if test -z "$INSTALL"; then
2847if ${ac_cv_path_install+:} false; then :
2848  $as_echo_n "(cached) " >&6
2849else
2850  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851for as_dir in $PATH
2852do
2853  IFS=$as_save_IFS
2854  test -z "$as_dir" && as_dir=.
2855    # Account for people who put trailing slashes in PATH elements.
2856case $as_dir/ in @%:@((
2857  ./ | .// | /[cC]/* | \
2858  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2859  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2860  /usr/ucb/* ) ;;
2861  *)
2862    # OSF1 and SCO ODT 3.0 have their own names for install.
2863    # Don't use installbsd from OSF since it installs stuff as root
2864    # by default.
2865    for ac_prog in ginstall scoinst install; do
2866      for ac_exec_ext in '' $ac_executable_extensions; do
2867	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2868	  if test $ac_prog = install &&
2869	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2870	    # AIX install.  It has an incompatible calling convention.
2871	    :
2872	  elif test $ac_prog = install &&
2873	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2874	    # program-specific install script used by HP pwplus--don't use.
2875	    :
2876	  else
2877	    rm -rf conftest.one conftest.two conftest.dir
2878	    echo one > conftest.one
2879	    echo two > conftest.two
2880	    mkdir conftest.dir
2881	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2882	      test -s conftest.one && test -s conftest.two &&
2883	      test -s conftest.dir/conftest.one &&
2884	      test -s conftest.dir/conftest.two
2885	    then
2886	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2887	      break 3
2888	    fi
2889	  fi
2890	fi
2891      done
2892    done
2893    ;;
2894esac
2895
2896  done
2897IFS=$as_save_IFS
2898
2899rm -rf conftest.one conftest.two conftest.dir
2900
2901fi
2902  if test "${ac_cv_path_install+set}" = set; then
2903    INSTALL=$ac_cv_path_install
2904  else
2905    # As a last resort, use the slow shell script.  Don't cache a
2906    # value for INSTALL within a source directory, because that will
2907    # break other packages using the cache if that directory is
2908    # removed, or if the value is a relative name.
2909    INSTALL=$ac_install_sh
2910  fi
2911fi
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2913$as_echo "$INSTALL" >&6; }
2914
2915# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2916# It thinks the first close brace ends the variable substitution.
2917test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2918
2919test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2920
2921test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2922
2923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2924$as_echo_n "checking whether build environment is sane... " >&6; }
2925# Reject unsafe characters in $srcdir or the absolute working directory
2926# name.  Accept space and tab only in the latter.
2927am_lf='
2928'
2929case `pwd` in
2930  *[\\\"\#\$\&\'\`$am_lf]*)
2931    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2932esac
2933case $srcdir in
2934  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2935    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2936esac
2937
2938# Do 'set' in a subshell so we don't clobber the current shell's
2939# arguments.  Must try -L first in case configure is actually a
2940# symlink; some systems play weird games with the mod time of symlinks
2941# (eg FreeBSD returns the mod time of the symlink's containing
2942# directory).
2943if (
2944   am_has_slept=no
2945   for am_try in 1 2; do
2946     echo "timestamp, slept: $am_has_slept" > conftest.file
2947     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2948     if test "$*" = "X"; then
2949	# -L didn't work.
2950	set X `ls -t "$srcdir/configure" conftest.file`
2951     fi
2952     if test "$*" != "X $srcdir/configure conftest.file" \
2953	&& test "$*" != "X conftest.file $srcdir/configure"; then
2954
2955	# If neither matched, then we have a broken ls.  This can happen
2956	# if, for instance, CONFIG_SHELL is bash and it inherits a
2957	# broken ls alias from the environment.  This has actually
2958	# happened.  Such a system could not be considered "sane".
2959	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2960  alias in your environment" "$LINENO" 5
2961     fi
2962     if test "$2" = conftest.file || test $am_try -eq 2; then
2963       break
2964     fi
2965     # Just in case.
2966     sleep 1
2967     am_has_slept=yes
2968   done
2969   test "$2" = conftest.file
2970   )
2971then
2972   # Ok.
2973   :
2974else
2975   as_fn_error $? "newly created file is older than distributed files!
2976Check your system clock" "$LINENO" 5
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979$as_echo "yes" >&6; }
2980# If we didn't sleep, we still need to ensure time stamps of config.status and
2981# generated files are strictly newer.
2982am_sleep_pid=
2983if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2984  ( sleep 1 ) &
2985  am_sleep_pid=$!
2986fi
2987
2988rm -f conftest.file
2989
2990test "$program_prefix" != NONE &&
2991  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2992# Use a double $ so make ignores it.
2993test "$program_suffix" != NONE &&
2994  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2995# Double any \ or $.
2996# By default was `s,x,x', remove it if useless.
2997ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2998program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2999
3000# Expand $ac_aux_dir to an absolute path.
3001am_aux_dir=`cd "$ac_aux_dir" && pwd`
3002
3003if test x"${MISSING+set}" != xset; then
3004  MISSING="\${SHELL} '$am_aux_dir/missing'"
3005fi
3006# Use eval to expand $SHELL
3007if eval "$MISSING --is-lightweight"; then
3008  am_missing_run="$MISSING "
3009else
3010  am_missing_run=
3011  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3012$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3013fi
3014
3015if test x"${install_sh+set}" != xset; then
3016  case $am_aux_dir in
3017  *\ * | *\	*)
3018    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3019  *)
3020    install_sh="\${SHELL} $am_aux_dir/install-sh"
3021  esac
3022fi
3023
3024# Installed binaries are usually stripped using 'strip' when the user
3025# run "make install-strip".  However 'strip' might not be the right
3026# tool to use in cross-compilation environments, therefore Automake
3027# will honor the 'STRIP' environment variable to overrule this program.
3028if test "$cross_compiling" != no; then
3029  if test -n "$ac_tool_prefix"; then
3030  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3031set dummy ${ac_tool_prefix}strip; ac_word=$2
3032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3033$as_echo_n "checking for $ac_word... " >&6; }
3034if ${ac_cv_prog_STRIP+:} false; then :
3035  $as_echo_n "(cached) " >&6
3036else
3037  if test -n "$STRIP"; then
3038  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3039else
3040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043  IFS=$as_save_IFS
3044  test -z "$as_dir" && as_dir=.
3045    for ac_exec_ext in '' $ac_executable_extensions; do
3046  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3047    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3048    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3049    break 2
3050  fi
3051done
3052  done
3053IFS=$as_save_IFS
3054
3055fi
3056fi
3057STRIP=$ac_cv_prog_STRIP
3058if test -n "$STRIP"; then
3059  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3060$as_echo "$STRIP" >&6; }
3061else
3062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3063$as_echo "no" >&6; }
3064fi
3065
3066
3067fi
3068if test -z "$ac_cv_prog_STRIP"; then
3069  ac_ct_STRIP=$STRIP
3070  # Extract the first word of "strip", so it can be a program name with args.
3071set dummy strip; ac_word=$2
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3073$as_echo_n "checking for $ac_word... " >&6; }
3074if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3075  $as_echo_n "(cached) " >&6
3076else
3077  if test -n "$ac_ct_STRIP"; then
3078  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083  IFS=$as_save_IFS
3084  test -z "$as_dir" && as_dir=.
3085    for ac_exec_ext in '' $ac_executable_extensions; do
3086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087    ac_cv_prog_ac_ct_STRIP="strip"
3088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3089    break 2
3090  fi
3091done
3092  done
3093IFS=$as_save_IFS
3094
3095fi
3096fi
3097ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3098if test -n "$ac_ct_STRIP"; then
3099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3100$as_echo "$ac_ct_STRIP" >&6; }
3101else
3102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103$as_echo "no" >&6; }
3104fi
3105
3106  if test "x$ac_ct_STRIP" = x; then
3107    STRIP=":"
3108  else
3109    case $cross_compiling:$ac_tool_warned in
3110yes:)
3111{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3112$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3113ac_tool_warned=yes ;;
3114esac
3115    STRIP=$ac_ct_STRIP
3116  fi
3117else
3118  STRIP="$ac_cv_prog_STRIP"
3119fi
3120
3121fi
3122INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3123
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3125$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3126if test -z "$MKDIR_P"; then
3127  if ${ac_cv_path_mkdir+:} false; then :
3128  $as_echo_n "(cached) " >&6
3129else
3130  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3132do
3133  IFS=$as_save_IFS
3134  test -z "$as_dir" && as_dir=.
3135    for ac_prog in mkdir gmkdir; do
3136	 for ac_exec_ext in '' $ac_executable_extensions; do
3137	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3138	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3139	     'mkdir (GNU coreutils) '* | \
3140	     'mkdir (coreutils) '* | \
3141	     'mkdir (fileutils) '4.1*)
3142	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3143	       break 3;;
3144	   esac
3145	 done
3146       done
3147  done
3148IFS=$as_save_IFS
3149
3150fi
3151
3152  test -d ./--version && rmdir ./--version
3153  if test "${ac_cv_path_mkdir+set}" = set; then
3154    MKDIR_P="$ac_cv_path_mkdir -p"
3155  else
3156    # As a last resort, use the slow shell script.  Don't cache a
3157    # value for MKDIR_P within a source directory, because that will
3158    # break other packages using the cache if that directory is
3159    # removed, or if the value is a relative name.
3160    MKDIR_P="$ac_install_sh -d"
3161  fi
3162fi
3163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3164$as_echo "$MKDIR_P" >&6; }
3165
3166for ac_prog in gawk mawk nawk awk
3167do
3168  # Extract the first word of "$ac_prog", so it can be a program name with args.
3169set dummy $ac_prog; ac_word=$2
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171$as_echo_n "checking for $ac_word... " >&6; }
3172if ${ac_cv_prog_AWK+:} false; then :
3173  $as_echo_n "(cached) " >&6
3174else
3175  if test -n "$AWK"; then
3176  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3177else
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH
3180do
3181  IFS=$as_save_IFS
3182  test -z "$as_dir" && as_dir=.
3183    for ac_exec_ext in '' $ac_executable_extensions; do
3184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185    ac_cv_prog_AWK="$ac_prog"
3186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187    break 2
3188  fi
3189done
3190  done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
3195AWK=$ac_cv_prog_AWK
3196if test -n "$AWK"; then
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3198$as_echo "$AWK" >&6; }
3199else
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204
3205  test -n "$AWK" && break
3206done
3207
3208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3209$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3210set x ${MAKE-make}
3211ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3212if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3213  $as_echo_n "(cached) " >&6
3214else
3215  cat >conftest.make <<\_ACEOF
3216SHELL = /bin/sh
3217all:
3218	@echo '@@@%%%=$(MAKE)=@@@%%%'
3219_ACEOF
3220# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3221case `${MAKE-make} -f conftest.make 2>/dev/null` in
3222  *@@@%%%=?*=@@@%%%*)
3223    eval ac_cv_prog_make_${ac_make}_set=yes;;
3224  *)
3225    eval ac_cv_prog_make_${ac_make}_set=no;;
3226esac
3227rm -f conftest.make
3228fi
3229if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231$as_echo "yes" >&6; }
3232  SET_MAKE=
3233else
3234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235$as_echo "no" >&6; }
3236  SET_MAKE="MAKE=${MAKE-make}"
3237fi
3238
3239rm -rf .tst 2>/dev/null
3240mkdir .tst 2>/dev/null
3241if test -d .tst; then
3242  am__leading_dot=.
3243else
3244  am__leading_dot=_
3245fi
3246rmdir .tst 2>/dev/null
3247
3248@%:@ Check whether --enable-silent-rules was given.
3249if test "${enable_silent_rules+set}" = set; then :
3250  enableval=$enable_silent_rules;
3251fi
3252
3253case $enable_silent_rules in @%:@ (((
3254  yes) AM_DEFAULT_VERBOSITY=0;;
3255   no) AM_DEFAULT_VERBOSITY=1;;
3256    *) AM_DEFAULT_VERBOSITY=1;;
3257esac
3258am_make=${MAKE-make}
3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3260$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3261if ${am_cv_make_support_nested_variables+:} false; then :
3262  $as_echo_n "(cached) " >&6
3263else
3264  if $as_echo 'TRUE=$(BAR$(V))
3265BAR0=false
3266BAR1=true
3267V=1
3268am__doit:
3269	@$(TRUE)
3270.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3271  am_cv_make_support_nested_variables=yes
3272else
3273  am_cv_make_support_nested_variables=no
3274fi
3275fi
3276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3277$as_echo "$am_cv_make_support_nested_variables" >&6; }
3278if test $am_cv_make_support_nested_variables = yes; then
3279    AM_V='$(V)'
3280  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3281else
3282  AM_V=$AM_DEFAULT_VERBOSITY
3283  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3284fi
3285AM_BACKSLASH='\'
3286
3287if test "`cd $srcdir && pwd`" != "`pwd`"; then
3288  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3289  # is not polluted with repeated "-I."
3290  am__isrc=' -I$(srcdir)'
3291  # test to see if srcdir already configured
3292  if test -f $srcdir/config.status; then
3293    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3294  fi
3295fi
3296
3297# test whether we have cygpath
3298if test -z "$CYGPATH_W"; then
3299  if (cygpath --version) >/dev/null 2>/dev/null; then
3300    CYGPATH_W='cygpath -w'
3301  else
3302    CYGPATH_W=echo
3303  fi
3304fi
3305
3306
3307# Define the identity of the package.
3308 PACKAGE='scamper'
3309 VERSION='20211026'
3310
3311
3312cat >>confdefs.h <<_ACEOF
3313@%:@define PACKAGE "$PACKAGE"
3314_ACEOF
3315
3316
3317cat >>confdefs.h <<_ACEOF
3318@%:@define VERSION "$VERSION"
3319_ACEOF
3320
3321# Some tools Automake needs.
3322
3323ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3324
3325
3326AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3327
3328
3329AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3330
3331
3332AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3333
3334
3335MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3336
3337# For better backward compatibility.  To be removed once Automake 1.9.x
3338# dies out for good.  For more background, see:
3339# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3340# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3341mkdir_p='$(MKDIR_P)'
3342
3343# We need awk for the "check" target (and possibly the TAP driver).  The
3344# system "awk" is bad on some platforms.
3345# Always define AMTAR for backward compatibility.  Yes, it's still used
3346# in the wild :-(  We should find a proper way to deprecate it ...
3347AMTAR='$${TAR-tar}'
3348
3349
3350# We'll loop over all known methods to create a tar archive until one works.
3351_am_tools='gnutar  pax cpio none'
3352
3353am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3354
3355
3356
3357
3358
3359# Variables for tags utilities; see am/tags.am
3360if test -z "$CTAGS"; then
3361  CTAGS=ctags
3362fi
3363
3364if test -z "$ETAGS"; then
3365  ETAGS=etags
3366fi
3367
3368if test -z "$CSCOPE"; then
3369  CSCOPE=cscope
3370fi
3371
3372
3373
3374# POSIX will say in a future version that running "rm -f" with no argument
3375# is OK; and we want to be able to make that assumption in our Makefile
3376# recipes.  So use an aggressive probe to check that the usage we want is
3377# actually supported "in the wild" to an acceptable degree.
3378# See automake bug#10828.
3379# To make any issue more visible, cause the running configure to be aborted
3380# by default if the 'rm' program in use doesn't match our expectations; the
3381# user can still override this though.
3382if rm -f && rm -fr && rm -rf; then : OK; else
3383  cat >&2 <<'END'
3384Oops!
3385
3386Your 'rm' program seems unable to run without file operands specified
3387on the command line, even when the '-f' option is present.  This is contrary
3388to the behaviour of most rm programs out there, and not conforming with
3389the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3390
3391Please tell bug-automake@gnu.org about your system, including the value
3392of your $PATH and any error possibly output before this message.  This
3393can help us improve future automake versions.
3394
3395END
3396  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3397    echo 'Configuration will proceed anyway, since you have set the' >&2
3398    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3399    echo >&2
3400  else
3401    cat >&2 <<'END'
3402Aborting the configuration process, to ensure you take notice of the issue.
3403
3404You can download and install GNU coreutils to get an 'rm' implementation
3405that behaves properly: <https://www.gnu.org/software/coreutils/>.
3406
3407If you want to complete the configuration process using your problematic
3408'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3409to "yes", and re-run configure.
3410
3411END
3412    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3413  fi
3414fi
3415
3416
3417case `pwd` in
3418  *\ * | *\	*)
3419    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3420$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3421esac
3422
3423
3424
3425macro_version='2.4.6'
3426macro_revision='2.4.6'
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440ltmain=$ac_aux_dir/ltmain.sh
3441
3442# Backslashify metacharacters that are still active within
3443# double-quoted strings.
3444sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3445
3446# Same as above, but do not quote variable references.
3447double_quote_subst='s/\(["`\\]\)/\\\1/g'
3448
3449# Sed substitution to delay expansion of an escaped shell variable in a
3450# double_quote_subst'ed string.
3451delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3452
3453# Sed substitution to delay expansion of an escaped single quote.
3454delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3455
3456# Sed substitution to avoid accidental globbing in evaled expressions
3457no_glob_subst='s/\*/\\\*/g'
3458
3459ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3460ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3461ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3462
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3464$as_echo_n "checking how to print strings... " >&6; }
3465# Test print first, because it will be a builtin if present.
3466if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3467   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3468  ECHO='print -r --'
3469elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3470  ECHO='printf %s\n'
3471else
3472  # Use this function as a fallback that always works.
3473  func_fallback_echo ()
3474  {
3475    eval 'cat <<_LTECHO_EOF
3476$1
3477_LTECHO_EOF'
3478  }
3479  ECHO='func_fallback_echo'
3480fi
3481
3482# func_echo_all arg...
3483# Invoke $ECHO with all args, space-separated.
3484func_echo_all ()
3485{
3486    $ECHO ""
3487}
3488
3489case $ECHO in
3490  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3491$as_echo "printf" >&6; } ;;
3492  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3493$as_echo "print -r" >&6; } ;;
3494  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3495$as_echo "cat" >&6; } ;;
3496esac
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511DEPDIR="${am__leading_dot}deps"
3512
3513ac_config_commands="$ac_config_commands depfiles"
3514
3515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3516$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
3517cat > confinc.mk << 'END'
3518am__doit:
3519	@echo this is the am__doit target >confinc.out
3520.PHONY: am__doit
3521END
3522am__include="#"
3523am__quote=
3524# BSD make does it like this.
3525echo '.include "confinc.mk" # ignored' > confmf.BSD
3526# Other make implementations (GNU, Solaris 10, AIX) do it like this.
3527echo 'include confinc.mk # ignored' > confmf.GNU
3528_am_result=no
3529for s in GNU BSD; do
3530  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3531   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }
3535  case $?:`cat confinc.out 2>/dev/null` in @%:@(
3536  '0:this is the am__doit target') :
3537    case $s in @%:@(
3538  BSD) :
3539    am__include='.include' am__quote='"' ;; @%:@(
3540  *) :
3541    am__include='include' am__quote='' ;;
3542esac ;; @%:@(
3543  *) :
3544     ;;
3545esac
3546  if test "$am__include" != "#"; then
3547    _am_result="yes ($s style)"
3548    break
3549  fi
3550done
3551rm -f confinc.* confmf.*
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3553$as_echo "${_am_result}" >&6; }
3554
3555@%:@ Check whether --enable-dependency-tracking was given.
3556if test "${enable_dependency_tracking+set}" = set; then :
3557  enableval=$enable_dependency_tracking;
3558fi
3559
3560if test "x$enable_dependency_tracking" != xno; then
3561  am_depcomp="$ac_aux_dir/depcomp"
3562  AMDEPBACKSLASH='\'
3563  am__nodep='_no'
3564fi
3565 if test "x$enable_dependency_tracking" != xno; then
3566  AMDEP_TRUE=
3567  AMDEP_FALSE='#'
3568else
3569  AMDEP_TRUE='#'
3570  AMDEP_FALSE=
3571fi
3572
3573
3574ac_ext=c
3575ac_cpp='$CPP $CPPFLAGS'
3576ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578ac_compiler_gnu=$ac_cv_c_compiler_gnu
3579if test -n "$ac_tool_prefix"; then
3580  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3581set dummy ${ac_tool_prefix}gcc; ac_word=$2
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583$as_echo_n "checking for $ac_word... " >&6; }
3584if ${ac_cv_prog_CC+:} false; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  if test -n "$CC"; then
3588  ac_cv_prog_CC="$CC" # Let the user override the test.
3589else
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593  IFS=$as_save_IFS
3594  test -z "$as_dir" && as_dir=.
3595    for ac_exec_ext in '' $ac_executable_extensions; do
3596  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3598    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599    break 2
3600  fi
3601done
3602  done
3603IFS=$as_save_IFS
3604
3605fi
3606fi
3607CC=$ac_cv_prog_CC
3608if test -n "$CC"; then
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3610$as_echo "$CC" >&6; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614fi
3615
3616
3617fi
3618if test -z "$ac_cv_prog_CC"; then
3619  ac_ct_CC=$CC
3620  # Extract the first word of "gcc", so it can be a program name with args.
3621set dummy gcc; ac_word=$2
3622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623$as_echo_n "checking for $ac_word... " >&6; }
3624if ${ac_cv_prog_ac_ct_CC+:} false; then :
3625  $as_echo_n "(cached) " >&6
3626else
3627  if test -n "$ac_ct_CC"; then
3628  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3629else
3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH
3632do
3633  IFS=$as_save_IFS
3634  test -z "$as_dir" && as_dir=.
3635    for ac_exec_ext in '' $ac_executable_extensions; do
3636  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3637    ac_cv_prog_ac_ct_CC="gcc"
3638    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639    break 2
3640  fi
3641done
3642  done
3643IFS=$as_save_IFS
3644
3645fi
3646fi
3647ac_ct_CC=$ac_cv_prog_ac_ct_CC
3648if test -n "$ac_ct_CC"; then
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3650$as_echo "$ac_ct_CC" >&6; }
3651else
3652  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653$as_echo "no" >&6; }
3654fi
3655
3656  if test "x$ac_ct_CC" = x; then
3657    CC=""
3658  else
3659    case $cross_compiling:$ac_tool_warned in
3660yes:)
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663ac_tool_warned=yes ;;
3664esac
3665    CC=$ac_ct_CC
3666  fi
3667else
3668  CC="$ac_cv_prog_CC"
3669fi
3670
3671if test -z "$CC"; then
3672          if test -n "$ac_tool_prefix"; then
3673    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3674set dummy ${ac_tool_prefix}cc; ac_word=$2
3675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676$as_echo_n "checking for $ac_word... " >&6; }
3677if ${ac_cv_prog_CC+:} false; then :
3678  $as_echo_n "(cached) " >&6
3679else
3680  if test -n "$CC"; then
3681  ac_cv_prog_CC="$CC" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686  IFS=$as_save_IFS
3687  test -z "$as_dir" && as_dir=.
3688    for ac_exec_ext in '' $ac_executable_extensions; do
3689  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3690    ac_cv_prog_CC="${ac_tool_prefix}cc"
3691    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3692    break 2
3693  fi
3694done
3695  done
3696IFS=$as_save_IFS
3697
3698fi
3699fi
3700CC=$ac_cv_prog_CC
3701if test -n "$CC"; then
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3703$as_echo "$CC" >&6; }
3704else
3705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3706$as_echo "no" >&6; }
3707fi
3708
3709
3710  fi
3711fi
3712if test -z "$CC"; then
3713  # Extract the first word of "cc", so it can be a program name with args.
3714set dummy cc; ac_word=$2
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716$as_echo_n "checking for $ac_word... " >&6; }
3717if ${ac_cv_prog_CC+:} false; then :
3718  $as_echo_n "(cached) " >&6
3719else
3720  if test -n "$CC"; then
3721  ac_cv_prog_CC="$CC" # Let the user override the test.
3722else
3723  ac_prog_rejected=no
3724as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725for as_dir in $PATH
3726do
3727  IFS=$as_save_IFS
3728  test -z "$as_dir" && as_dir=.
3729    for ac_exec_ext in '' $ac_executable_extensions; do
3730  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3731    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3732       ac_prog_rejected=yes
3733       continue
3734     fi
3735    ac_cv_prog_CC="cc"
3736    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3737    break 2
3738  fi
3739done
3740  done
3741IFS=$as_save_IFS
3742
3743if test $ac_prog_rejected = yes; then
3744  # We found a bogon in the path, so make sure we never use it.
3745  set dummy $ac_cv_prog_CC
3746  shift
3747  if test $@%:@ != 0; then
3748    # We chose a different compiler from the bogus one.
3749    # However, it has the same basename, so the bogon will be chosen
3750    # first if we set CC to just the basename; use the full file name.
3751    shift
3752    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3753  fi
3754fi
3755fi
3756fi
3757CC=$ac_cv_prog_CC
3758if test -n "$CC"; then
3759  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760$as_echo "$CC" >&6; }
3761else
3762  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763$as_echo "no" >&6; }
3764fi
3765
3766
3767fi
3768if test -z "$CC"; then
3769  if test -n "$ac_tool_prefix"; then
3770  for ac_prog in cl.exe
3771  do
3772    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3773set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3775$as_echo_n "checking for $ac_word... " >&6; }
3776if ${ac_cv_prog_CC+:} false; then :
3777  $as_echo_n "(cached) " >&6
3778else
3779  if test -n "$CC"; then
3780  ac_cv_prog_CC="$CC" # Let the user override the test.
3781else
3782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3783for as_dir in $PATH
3784do
3785  IFS=$as_save_IFS
3786  test -z "$as_dir" && as_dir=.
3787    for ac_exec_ext in '' $ac_executable_extensions; do
3788  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3789    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3790    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791    break 2
3792  fi
3793done
3794  done
3795IFS=$as_save_IFS
3796
3797fi
3798fi
3799CC=$ac_cv_prog_CC
3800if test -n "$CC"; then
3801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3802$as_echo "$CC" >&6; }
3803else
3804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3805$as_echo "no" >&6; }
3806fi
3807
3808
3809    test -n "$CC" && break
3810  done
3811fi
3812if test -z "$CC"; then
3813  ac_ct_CC=$CC
3814  for ac_prog in cl.exe
3815do
3816  # Extract the first word of "$ac_prog", so it can be a program name with args.
3817set dummy $ac_prog; ac_word=$2
3818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3819$as_echo_n "checking for $ac_word... " >&6; }
3820if ${ac_cv_prog_ac_ct_CC+:} false; then :
3821  $as_echo_n "(cached) " >&6
3822else
3823  if test -n "$ac_ct_CC"; then
3824  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3825else
3826as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3827for as_dir in $PATH
3828do
3829  IFS=$as_save_IFS
3830  test -z "$as_dir" && as_dir=.
3831    for ac_exec_ext in '' $ac_executable_extensions; do
3832  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3833    ac_cv_prog_ac_ct_CC="$ac_prog"
3834    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835    break 2
3836  fi
3837done
3838  done
3839IFS=$as_save_IFS
3840
3841fi
3842fi
3843ac_ct_CC=$ac_cv_prog_ac_ct_CC
3844if test -n "$ac_ct_CC"; then
3845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3846$as_echo "$ac_ct_CC" >&6; }
3847else
3848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3849$as_echo "no" >&6; }
3850fi
3851
3852
3853  test -n "$ac_ct_CC" && break
3854done
3855
3856  if test "x$ac_ct_CC" = x; then
3857    CC=""
3858  else
3859    case $cross_compiling:$ac_tool_warned in
3860yes:)
3861{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3862$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3863ac_tool_warned=yes ;;
3864esac
3865    CC=$ac_ct_CC
3866  fi
3867fi
3868
3869fi
3870
3871
3872test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874as_fn_error $? "no acceptable C compiler found in \$PATH
3875See \`config.log' for more details" "$LINENO" 5; }
3876
3877# Provide some information about the compiler.
3878$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3879set X $ac_compile
3880ac_compiler=$2
3881for ac_option in --version -v -V -qversion; do
3882  { { ac_try="$ac_compiler $ac_option >&5"
3883case "(($ac_try" in
3884  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885  *) ac_try_echo=$ac_try;;
3886esac
3887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888$as_echo "$ac_try_echo"; } >&5
3889  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3890  ac_status=$?
3891  if test -s conftest.err; then
3892    sed '10a\
3893... rest of stderr output deleted ...
3894         10q' conftest.err >conftest.er1
3895    cat conftest.er1 >&5
3896  fi
3897  rm -f conftest.er1 conftest.err
3898  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3899  test $ac_status = 0; }
3900done
3901
3902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3903/* end confdefs.h.  */
3904
3905int
3906main ()
3907{
3908
3909  ;
3910  return 0;
3911}
3912_ACEOF
3913ac_clean_files_save=$ac_clean_files
3914ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3915# Try to create an executable without -o first, disregard a.out.
3916# It will help us diagnose broken compilers, and finding out an intuition
3917# of exeext.
3918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3919$as_echo_n "checking whether the C compiler works... " >&6; }
3920ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3921
3922# The possible output files:
3923ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3924
3925ac_rmfiles=
3926for ac_file in $ac_files
3927do
3928  case $ac_file in
3929    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3930    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3931  esac
3932done
3933rm -f $ac_rmfiles
3934
3935if { { ac_try="$ac_link_default"
3936case "(($ac_try" in
3937  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938  *) ac_try_echo=$ac_try;;
3939esac
3940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3941$as_echo "$ac_try_echo"; } >&5
3942  (eval "$ac_link_default") 2>&5
3943  ac_status=$?
3944  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3945  test $ac_status = 0; }; then :
3946  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3947# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3948# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3949# so that the user can short-circuit this test for compilers unknown to
3950# Autoconf.
3951for ac_file in $ac_files ''
3952do
3953  test -f "$ac_file" || continue
3954  case $ac_file in
3955    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3956	;;
3957    [ab].out )
3958	# We found the default executable, but exeext='' is most
3959	# certainly right.
3960	break;;
3961    *.* )
3962	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3963	then :; else
3964	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965	fi
3966	# We set ac_cv_exeext here because the later test for it is not
3967	# safe: cross compilers may not add the suffix if given an `-o'
3968	# argument, so we may need to know it at that point already.
3969	# Even if this section looks crufty: it has the advantage of
3970	# actually working.
3971	break;;
3972    * )
3973	break;;
3974  esac
3975done
3976test "$ac_cv_exeext" = no && ac_cv_exeext=
3977
3978else
3979  ac_file=''
3980fi
3981if test -z "$ac_file"; then :
3982  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984$as_echo "$as_me: failed program was:" >&5
3985sed 's/^/| /' conftest.$ac_ext >&5
3986
3987{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3988$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3989as_fn_error 77 "C compiler cannot create executables
3990See \`config.log' for more details" "$LINENO" 5; }
3991else
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993$as_echo "yes" >&6; }
3994fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3996$as_echo_n "checking for C compiler default output file name... " >&6; }
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3998$as_echo "$ac_file" >&6; }
3999ac_exeext=$ac_cv_exeext
4000
4001rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4002ac_clean_files=$ac_clean_files_save
4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4004$as_echo_n "checking for suffix of executables... " >&6; }
4005if { { ac_try="$ac_link"
4006case "(($ac_try" in
4007  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4008  *) ac_try_echo=$ac_try;;
4009esac
4010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4011$as_echo "$ac_try_echo"; } >&5
4012  (eval "$ac_link") 2>&5
4013  ac_status=$?
4014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015  test $ac_status = 0; }; then :
4016  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4017# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4018# work properly (i.e., refer to `conftest.exe'), while it won't with
4019# `rm'.
4020for ac_file in conftest.exe conftest conftest.*; do
4021  test -f "$ac_file" || continue
4022  case $ac_file in
4023    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4024    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4025	  break;;
4026    * ) break;;
4027  esac
4028done
4029else
4030  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4032as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4033See \`config.log' for more details" "$LINENO" 5; }
4034fi
4035rm -f conftest conftest$ac_cv_exeext
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4037$as_echo "$ac_cv_exeext" >&6; }
4038
4039rm -f conftest.$ac_ext
4040EXEEXT=$ac_cv_exeext
4041ac_exeext=$EXEEXT
4042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044@%:@include <stdio.h>
4045int
4046main ()
4047{
4048FILE *f = fopen ("conftest.out", "w");
4049 return ferror (f) || fclose (f) != 0;
4050
4051  ;
4052  return 0;
4053}
4054_ACEOF
4055ac_clean_files="$ac_clean_files conftest.out"
4056# Check that the compiler produces executables we can run.  If not, either
4057# the compiler is broken, or we cross compile.
4058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4059$as_echo_n "checking whether we are cross compiling... " >&6; }
4060if test "$cross_compiling" != yes; then
4061  { { ac_try="$ac_link"
4062case "(($ac_try" in
4063  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064  *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067$as_echo "$ac_try_echo"; } >&5
4068  (eval "$ac_link") 2>&5
4069  ac_status=$?
4070  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4071  test $ac_status = 0; }
4072  if { ac_try='./conftest$ac_cv_exeext'
4073  { { case "(($ac_try" in
4074  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4075  *) ac_try_echo=$ac_try;;
4076esac
4077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4078$as_echo "$ac_try_echo"; } >&5
4079  (eval "$ac_try") 2>&5
4080  ac_status=$?
4081  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4082  test $ac_status = 0; }; }; then
4083    cross_compiling=no
4084  else
4085    if test "$cross_compiling" = maybe; then
4086	cross_compiling=yes
4087    else
4088	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4090as_fn_error $? "cannot run C compiled programs.
4091If you meant to cross compile, use \`--host'.
4092See \`config.log' for more details" "$LINENO" 5; }
4093    fi
4094  fi
4095fi
4096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4097$as_echo "$cross_compiling" >&6; }
4098
4099rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4100ac_clean_files=$ac_clean_files_save
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4102$as_echo_n "checking for suffix of object files... " >&6; }
4103if ${ac_cv_objext+:} false; then :
4104  $as_echo_n "(cached) " >&6
4105else
4106  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4107/* end confdefs.h.  */
4108
4109int
4110main ()
4111{
4112
4113  ;
4114  return 0;
4115}
4116_ACEOF
4117rm -f conftest.o conftest.obj
4118if { { ac_try="$ac_compile"
4119case "(($ac_try" in
4120  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121  *) ac_try_echo=$ac_try;;
4122esac
4123eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124$as_echo "$ac_try_echo"; } >&5
4125  (eval "$ac_compile") 2>&5
4126  ac_status=$?
4127  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128  test $ac_status = 0; }; then :
4129  for ac_file in conftest.o conftest.obj conftest.*; do
4130  test -f "$ac_file" || continue;
4131  case $ac_file in
4132    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4133    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4134       break;;
4135  esac
4136done
4137else
4138  $as_echo "$as_me: failed program was:" >&5
4139sed 's/^/| /' conftest.$ac_ext >&5
4140
4141{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4143as_fn_error $? "cannot compute suffix of object files: cannot compile
4144See \`config.log' for more details" "$LINENO" 5; }
4145fi
4146rm -f conftest.$ac_cv_objext conftest.$ac_ext
4147fi
4148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4149$as_echo "$ac_cv_objext" >&6; }
4150OBJEXT=$ac_cv_objext
4151ac_objext=$OBJEXT
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4153$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4154if ${ac_cv_c_compiler_gnu+:} false; then :
4155  $as_echo_n "(cached) " >&6
4156else
4157  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h.  */
4159
4160int
4161main ()
4162{
4163#ifndef __GNUC__
4164       choke me
4165#endif
4166
4167  ;
4168  return 0;
4169}
4170_ACEOF
4171if ac_fn_c_try_compile "$LINENO"; then :
4172  ac_compiler_gnu=yes
4173else
4174  ac_compiler_gnu=no
4175fi
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177ac_cv_c_compiler_gnu=$ac_compiler_gnu
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4181$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4182if test $ac_compiler_gnu = yes; then
4183  GCC=yes
4184else
4185  GCC=
4186fi
4187ac_test_CFLAGS=${CFLAGS+set}
4188ac_save_CFLAGS=$CFLAGS
4189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4190$as_echo_n "checking whether $CC accepts -g... " >&6; }
4191if ${ac_cv_prog_cc_g+:} false; then :
4192  $as_echo_n "(cached) " >&6
4193else
4194  ac_save_c_werror_flag=$ac_c_werror_flag
4195   ac_c_werror_flag=yes
4196   ac_cv_prog_cc_g=no
4197   CFLAGS="-g"
4198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200
4201int
4202main ()
4203{
4204
4205  ;
4206  return 0;
4207}
4208_ACEOF
4209if ac_fn_c_try_compile "$LINENO"; then :
4210  ac_cv_prog_cc_g=yes
4211else
4212  CFLAGS=""
4213      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214/* end confdefs.h.  */
4215
4216int
4217main ()
4218{
4219
4220  ;
4221  return 0;
4222}
4223_ACEOF
4224if ac_fn_c_try_compile "$LINENO"; then :
4225
4226else
4227  ac_c_werror_flag=$ac_save_c_werror_flag
4228	 CFLAGS="-g"
4229	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h.  */
4231
4232int
4233main ()
4234{
4235
4236  ;
4237  return 0;
4238}
4239_ACEOF
4240if ac_fn_c_try_compile "$LINENO"; then :
4241  ac_cv_prog_cc_g=yes
4242fi
4243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244fi
4245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4246fi
4247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4248   ac_c_werror_flag=$ac_save_c_werror_flag
4249fi
4250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4251$as_echo "$ac_cv_prog_cc_g" >&6; }
4252if test "$ac_test_CFLAGS" = set; then
4253  CFLAGS=$ac_save_CFLAGS
4254elif test $ac_cv_prog_cc_g = yes; then
4255  if test "$GCC" = yes; then
4256    CFLAGS="-g -O2"
4257  else
4258    CFLAGS="-g"
4259  fi
4260else
4261  if test "$GCC" = yes; then
4262    CFLAGS="-O2"
4263  else
4264    CFLAGS=
4265  fi
4266fi
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4268$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4269if ${ac_cv_prog_cc_c89+:} false; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  ac_cv_prog_cc_c89=no
4273ac_save_CC=$CC
4274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275/* end confdefs.h.  */
4276#include <stdarg.h>
4277#include <stdio.h>
4278struct stat;
4279/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4280struct buf { int x; };
4281FILE * (*rcsopen) (struct buf *, struct stat *, int);
4282static char *e (p, i)
4283     char **p;
4284     int i;
4285{
4286  return p[i];
4287}
4288static char *f (char * (*g) (char **, int), char **p, ...)
4289{
4290  char *s;
4291  va_list v;
4292  va_start (v,p);
4293  s = g (p, va_arg (v,int));
4294  va_end (v);
4295  return s;
4296}
4297
4298/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4299   function prototypes and stuff, but not '\xHH' hex character constants.
4300   These don't provoke an error unfortunately, instead are silently treated
4301   as 'x'.  The following induces an error, until -std is added to get
4302   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4303   array size at least.  It's necessary to write '\x00'==0 to get something
4304   that's true only with -std.  */
4305int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4306
4307/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4308   inside strings and character constants.  */
4309#define FOO(x) 'x'
4310int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4311
4312int test (int i, double x);
4313struct s1 {int (*f) (int a);};
4314struct s2 {int (*f) (double a);};
4315int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4316int argc;
4317char **argv;
4318int
4319main ()
4320{
4321return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4322  ;
4323  return 0;
4324}
4325_ACEOF
4326for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4327	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4328do
4329  CC="$ac_save_CC $ac_arg"
4330  if ac_fn_c_try_compile "$LINENO"; then :
4331  ac_cv_prog_cc_c89=$ac_arg
4332fi
4333rm -f core conftest.err conftest.$ac_objext
4334  test "x$ac_cv_prog_cc_c89" != "xno" && break
4335done
4336rm -f conftest.$ac_ext
4337CC=$ac_save_CC
4338
4339fi
4340# AC_CACHE_VAL
4341case "x$ac_cv_prog_cc_c89" in
4342  x)
4343    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4344$as_echo "none needed" >&6; } ;;
4345  xno)
4346    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4347$as_echo "unsupported" >&6; } ;;
4348  *)
4349    CC="$CC $ac_cv_prog_cc_c89"
4350    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4351$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4352esac
4353if test "x$ac_cv_prog_cc_c89" != xno; then :
4354
4355fi
4356
4357ac_ext=c
4358ac_cpp='$CPP $CPPFLAGS'
4359ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362
4363ac_ext=c
4364ac_cpp='$CPP $CPPFLAGS'
4365ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367ac_compiler_gnu=$ac_cv_c_compiler_gnu
4368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4369$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4370if ${am_cv_prog_cc_c_o+:} false; then :
4371  $as_echo_n "(cached) " >&6
4372else
4373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4374/* end confdefs.h.  */
4375
4376int
4377main ()
4378{
4379
4380  ;
4381  return 0;
4382}
4383_ACEOF
4384  # Make sure it works both with $CC and with simple cc.
4385  # Following AC_PROG_CC_C_O, we do the test twice because some
4386  # compilers refuse to overwrite an existing .o file with -o,
4387  # though they will create one.
4388  am_cv_prog_cc_c_o=yes
4389  for am_i in 1 2; do
4390    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4391   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4392   ac_status=$?
4393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394   (exit $ac_status); } \
4395         && test -f conftest2.$ac_objext; then
4396      : OK
4397    else
4398      am_cv_prog_cc_c_o=no
4399      break
4400    fi
4401  done
4402  rm -f core conftest*
4403  unset am_i
4404fi
4405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4406$as_echo "$am_cv_prog_cc_c_o" >&6; }
4407if test "$am_cv_prog_cc_c_o" != yes; then
4408   # Losing compiler, so override with the script.
4409   # FIXME: It is wrong to rewrite CC.
4410   # But if we don't then we get into trouble of one sort or another.
4411   # A longer-term fix would be to have automake use am__CC in this case,
4412   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4413   CC="$am_aux_dir/compile $CC"
4414fi
4415ac_ext=c
4416ac_cpp='$CPP $CPPFLAGS'
4417ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4418ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4419ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420
4421
4422depcc="$CC"   am_compiler_list=
4423
4424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4425$as_echo_n "checking dependency style of $depcc... " >&6; }
4426if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4427  $as_echo_n "(cached) " >&6
4428else
4429  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4430  # We make a subdir and do the tests there.  Otherwise we can end up
4431  # making bogus files that we don't know about and never remove.  For
4432  # instance it was reported that on HP-UX the gcc test will end up
4433  # making a dummy file named 'D' -- because '-MD' means "put the output
4434  # in D".
4435  rm -rf conftest.dir
4436  mkdir conftest.dir
4437  # Copy depcomp to subdir because otherwise we won't find it if we're
4438  # using a relative directory.
4439  cp "$am_depcomp" conftest.dir
4440  cd conftest.dir
4441  # We will build objects and dependencies in a subdirectory because
4442  # it helps to detect inapplicable dependency modes.  For instance
4443  # both Tru64's cc and ICC support -MD to output dependencies as a
4444  # side effect of compilation, but ICC will put the dependencies in
4445  # the current directory while Tru64 will put them in the object
4446  # directory.
4447  mkdir sub
4448
4449  am_cv_CC_dependencies_compiler_type=none
4450  if test "$am_compiler_list" = ""; then
4451     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4452  fi
4453  am__universal=false
4454  case " $depcc " in #(
4455     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4456     esac
4457
4458  for depmode in $am_compiler_list; do
4459    # Setup a source with many dependencies, because some compilers
4460    # like to wrap large dependency lists on column 80 (with \), and
4461    # we should not choose a depcomp mode which is confused by this.
4462    #
4463    # We need to recreate these files for each test, as the compiler may
4464    # overwrite some of them when testing with obscure command lines.
4465    # This happens at least with the AIX C compiler.
4466    : > sub/conftest.c
4467    for i in 1 2 3 4 5 6; do
4468      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4469      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4470      # Solaris 10 /bin/sh.
4471      echo '/* dummy */' > sub/conftst$i.h
4472    done
4473    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4474
4475    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4476    # mode.  It turns out that the SunPro C++ compiler does not properly
4477    # handle '-M -o', and we need to detect this.  Also, some Intel
4478    # versions had trouble with output in subdirs.
4479    am__obj=sub/conftest.${OBJEXT-o}
4480    am__minus_obj="-o $am__obj"
4481    case $depmode in
4482    gcc)
4483      # This depmode causes a compiler race in universal mode.
4484      test "$am__universal" = false || continue
4485      ;;
4486    nosideeffect)
4487      # After this tag, mechanisms are not by side-effect, so they'll
4488      # only be used when explicitly requested.
4489      if test "x$enable_dependency_tracking" = xyes; then
4490	continue
4491      else
4492	break
4493      fi
4494      ;;
4495    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4496      # This compiler won't grok '-c -o', but also, the minuso test has
4497      # not run yet.  These depmodes are late enough in the game, and
4498      # so weak that their functioning should not be impacted.
4499      am__obj=conftest.${OBJEXT-o}
4500      am__minus_obj=
4501      ;;
4502    none) break ;;
4503    esac
4504    if depmode=$depmode \
4505       source=sub/conftest.c object=$am__obj \
4506       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4507       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4508         >/dev/null 2>conftest.err &&
4509       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4510       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4511       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4512       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4513      # icc doesn't choke on unknown options, it will just issue warnings
4514      # or remarks (even with -Werror).  So we grep stderr for any message
4515      # that says an option was ignored or not supported.
4516      # When given -MP, icc 7.0 and 7.1 complain thusly:
4517      #   icc: Command line warning: ignoring option '-M'; no argument required
4518      # The diagnosis changed in icc 8.0:
4519      #   icc: Command line remark: option '-MP' not supported
4520      if (grep 'ignoring option' conftest.err ||
4521          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4522        am_cv_CC_dependencies_compiler_type=$depmode
4523        break
4524      fi
4525    fi
4526  done
4527
4528  cd ..
4529  rm -rf conftest.dir
4530else
4531  am_cv_CC_dependencies_compiler_type=none
4532fi
4533
4534fi
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4536$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4537CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4538
4539 if
4540  test "x$enable_dependency_tracking" != xno \
4541  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4542  am__fastdepCC_TRUE=
4543  am__fastdepCC_FALSE='#'
4544else
4545  am__fastdepCC_TRUE='#'
4546  am__fastdepCC_FALSE=
4547fi
4548
4549
4550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4551$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4552if ${ac_cv_path_SED+:} false; then :
4553  $as_echo_n "(cached) " >&6
4554else
4555            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4556     for ac_i in 1 2 3 4 5 6 7; do
4557       ac_script="$ac_script$as_nl$ac_script"
4558     done
4559     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4560     { ac_script=; unset ac_script;}
4561     if test -z "$SED"; then
4562  ac_path_SED_found=false
4563  # Loop through the user's path and test for each of PROGNAME-LIST
4564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569    for ac_prog in sed gsed; do
4570    for ac_exec_ext in '' $ac_executable_extensions; do
4571      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4572      as_fn_executable_p "$ac_path_SED" || continue
4573# Check for GNU ac_path_SED and select it if it is found.
4574  # Check for GNU $ac_path_SED
4575case `"$ac_path_SED" --version 2>&1` in
4576*GNU*)
4577  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4578*)
4579  ac_count=0
4580  $as_echo_n 0123456789 >"conftest.in"
4581  while :
4582  do
4583    cat "conftest.in" "conftest.in" >"conftest.tmp"
4584    mv "conftest.tmp" "conftest.in"
4585    cp "conftest.in" "conftest.nl"
4586    $as_echo '' >> "conftest.nl"
4587    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4588    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4589    as_fn_arith $ac_count + 1 && ac_count=$as_val
4590    if test $ac_count -gt ${ac_path_SED_max-0}; then
4591      # Best one so far, save it but keep looking for a better one
4592      ac_cv_path_SED="$ac_path_SED"
4593      ac_path_SED_max=$ac_count
4594    fi
4595    # 10*(2^10) chars as input seems more than enough
4596    test $ac_count -gt 10 && break
4597  done
4598  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4599esac
4600
4601      $ac_path_SED_found && break 3
4602    done
4603  done
4604  done
4605IFS=$as_save_IFS
4606  if test -z "$ac_cv_path_SED"; then
4607    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4608  fi
4609else
4610  ac_cv_path_SED=$SED
4611fi
4612
4613fi
4614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4615$as_echo "$ac_cv_path_SED" >&6; }
4616 SED="$ac_cv_path_SED"
4617  rm -f conftest.sed
4618
4619test -z "$SED" && SED=sed
4620Xsed="$SED -e 1s/^X//"
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4633$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4634if ${ac_cv_path_GREP+:} false; then :
4635  $as_echo_n "(cached) " >&6
4636else
4637  if test -z "$GREP"; then
4638  ac_path_GREP_found=false
4639  # Loop through the user's path and test for each of PROGNAME-LIST
4640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4642do
4643  IFS=$as_save_IFS
4644  test -z "$as_dir" && as_dir=.
4645    for ac_prog in grep ggrep; do
4646    for ac_exec_ext in '' $ac_executable_extensions; do
4647      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4648      as_fn_executable_p "$ac_path_GREP" || continue
4649# Check for GNU ac_path_GREP and select it if it is found.
4650  # Check for GNU $ac_path_GREP
4651case `"$ac_path_GREP" --version 2>&1` in
4652*GNU*)
4653  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4654*)
4655  ac_count=0
4656  $as_echo_n 0123456789 >"conftest.in"
4657  while :
4658  do
4659    cat "conftest.in" "conftest.in" >"conftest.tmp"
4660    mv "conftest.tmp" "conftest.in"
4661    cp "conftest.in" "conftest.nl"
4662    $as_echo 'GREP' >> "conftest.nl"
4663    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4664    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4665    as_fn_arith $ac_count + 1 && ac_count=$as_val
4666    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4667      # Best one so far, save it but keep looking for a better one
4668      ac_cv_path_GREP="$ac_path_GREP"
4669      ac_path_GREP_max=$ac_count
4670    fi
4671    # 10*(2^10) chars as input seems more than enough
4672    test $ac_count -gt 10 && break
4673  done
4674  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4675esac
4676
4677      $ac_path_GREP_found && break 3
4678    done
4679  done
4680  done
4681IFS=$as_save_IFS
4682  if test -z "$ac_cv_path_GREP"; then
4683    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4684  fi
4685else
4686  ac_cv_path_GREP=$GREP
4687fi
4688
4689fi
4690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4691$as_echo "$ac_cv_path_GREP" >&6; }
4692 GREP="$ac_cv_path_GREP"
4693
4694
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4696$as_echo_n "checking for egrep... " >&6; }
4697if ${ac_cv_path_EGREP+:} false; then :
4698  $as_echo_n "(cached) " >&6
4699else
4700  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4701   then ac_cv_path_EGREP="$GREP -E"
4702   else
4703     if test -z "$EGREP"; then
4704  ac_path_EGREP_found=false
4705  # Loop through the user's path and test for each of PROGNAME-LIST
4706  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4708do
4709  IFS=$as_save_IFS
4710  test -z "$as_dir" && as_dir=.
4711    for ac_prog in egrep; do
4712    for ac_exec_ext in '' $ac_executable_extensions; do
4713      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4714      as_fn_executable_p "$ac_path_EGREP" || continue
4715# Check for GNU ac_path_EGREP and select it if it is found.
4716  # Check for GNU $ac_path_EGREP
4717case `"$ac_path_EGREP" --version 2>&1` in
4718*GNU*)
4719  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4720*)
4721  ac_count=0
4722  $as_echo_n 0123456789 >"conftest.in"
4723  while :
4724  do
4725    cat "conftest.in" "conftest.in" >"conftest.tmp"
4726    mv "conftest.tmp" "conftest.in"
4727    cp "conftest.in" "conftest.nl"
4728    $as_echo 'EGREP' >> "conftest.nl"
4729    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731    as_fn_arith $ac_count + 1 && ac_count=$as_val
4732    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4733      # Best one so far, save it but keep looking for a better one
4734      ac_cv_path_EGREP="$ac_path_EGREP"
4735      ac_path_EGREP_max=$ac_count
4736    fi
4737    # 10*(2^10) chars as input seems more than enough
4738    test $ac_count -gt 10 && break
4739  done
4740  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741esac
4742
4743      $ac_path_EGREP_found && break 3
4744    done
4745  done
4746  done
4747IFS=$as_save_IFS
4748  if test -z "$ac_cv_path_EGREP"; then
4749    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4750  fi
4751else
4752  ac_cv_path_EGREP=$EGREP
4753fi
4754
4755   fi
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4758$as_echo "$ac_cv_path_EGREP" >&6; }
4759 EGREP="$ac_cv_path_EGREP"
4760
4761
4762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4763$as_echo_n "checking for fgrep... " >&6; }
4764if ${ac_cv_path_FGREP+:} false; then :
4765  $as_echo_n "(cached) " >&6
4766else
4767  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4768   then ac_cv_path_FGREP="$GREP -F"
4769   else
4770     if test -z "$FGREP"; then
4771  ac_path_FGREP_found=false
4772  # Loop through the user's path and test for each of PROGNAME-LIST
4773  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4775do
4776  IFS=$as_save_IFS
4777  test -z "$as_dir" && as_dir=.
4778    for ac_prog in fgrep; do
4779    for ac_exec_ext in '' $ac_executable_extensions; do
4780      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4781      as_fn_executable_p "$ac_path_FGREP" || continue
4782# Check for GNU ac_path_FGREP and select it if it is found.
4783  # Check for GNU $ac_path_FGREP
4784case `"$ac_path_FGREP" --version 2>&1` in
4785*GNU*)
4786  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4787*)
4788  ac_count=0
4789  $as_echo_n 0123456789 >"conftest.in"
4790  while :
4791  do
4792    cat "conftest.in" "conftest.in" >"conftest.tmp"
4793    mv "conftest.tmp" "conftest.in"
4794    cp "conftest.in" "conftest.nl"
4795    $as_echo 'FGREP' >> "conftest.nl"
4796    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4797    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4798    as_fn_arith $ac_count + 1 && ac_count=$as_val
4799    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4800      # Best one so far, save it but keep looking for a better one
4801      ac_cv_path_FGREP="$ac_path_FGREP"
4802      ac_path_FGREP_max=$ac_count
4803    fi
4804    # 10*(2^10) chars as input seems more than enough
4805    test $ac_count -gt 10 && break
4806  done
4807  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4808esac
4809
4810      $ac_path_FGREP_found && break 3
4811    done
4812  done
4813  done
4814IFS=$as_save_IFS
4815  if test -z "$ac_cv_path_FGREP"; then
4816    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4817  fi
4818else
4819  ac_cv_path_FGREP=$FGREP
4820fi
4821
4822   fi
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4825$as_echo "$ac_cv_path_FGREP" >&6; }
4826 FGREP="$ac_cv_path_FGREP"
4827
4828
4829test -z "$GREP" && GREP=grep
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849@%:@ Check whether --with-gnu-ld was given.
4850if test "${with_gnu_ld+set}" = set; then :
4851  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4852else
4853  with_gnu_ld=no
4854fi
4855
4856ac_prog=ld
4857if test yes = "$GCC"; then
4858  # Check if gcc -print-prog-name=ld gives a path.
4859  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4860$as_echo_n "checking for ld used by $CC... " >&6; }
4861  case $host in
4862  *-*-mingw*)
4863    # gcc leaves a trailing carriage return, which upsets mingw
4864    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4865  *)
4866    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4867  esac
4868  case $ac_prog in
4869    # Accept absolute paths.
4870    [\\/]* | ?:[\\/]*)
4871      re_direlt='/[^/][^/]*/\.\./'
4872      # Canonicalize the pathname of ld
4873      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4874      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4875	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4876      done
4877      test -z "$LD" && LD=$ac_prog
4878      ;;
4879  "")
4880    # If it fails, then pretend we aren't using GCC.
4881    ac_prog=ld
4882    ;;
4883  *)
4884    # If it is relative, then search for the first ld in PATH.
4885    with_gnu_ld=unknown
4886    ;;
4887  esac
4888elif test yes = "$with_gnu_ld"; then
4889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4890$as_echo_n "checking for GNU ld... " >&6; }
4891else
4892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4893$as_echo_n "checking for non-GNU ld... " >&6; }
4894fi
4895if ${lt_cv_path_LD+:} false; then :
4896  $as_echo_n "(cached) " >&6
4897else
4898  if test -z "$LD"; then
4899  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4900  for ac_dir in $PATH; do
4901    IFS=$lt_save_ifs
4902    test -z "$ac_dir" && ac_dir=.
4903    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4904      lt_cv_path_LD=$ac_dir/$ac_prog
4905      # Check to see if the program is GNU ld.  I'd rather use --version,
4906      # but apparently some variants of GNU ld only accept -v.
4907      # Break only if it was the GNU/non-GNU ld that we prefer.
4908      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4909      *GNU* | *'with BFD'*)
4910	test no != "$with_gnu_ld" && break
4911	;;
4912      *)
4913	test yes != "$with_gnu_ld" && break
4914	;;
4915      esac
4916    fi
4917  done
4918  IFS=$lt_save_ifs
4919else
4920  lt_cv_path_LD=$LD # Let the user override the test with a path.
4921fi
4922fi
4923
4924LD=$lt_cv_path_LD
4925if test -n "$LD"; then
4926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4927$as_echo "$LD" >&6; }
4928else
4929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4930$as_echo "no" >&6; }
4931fi
4932test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4934$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4935if ${lt_cv_prog_gnu_ld+:} false; then :
4936  $as_echo_n "(cached) " >&6
4937else
4938  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4939case `$LD -v 2>&1 </dev/null` in
4940*GNU* | *'with BFD'*)
4941  lt_cv_prog_gnu_ld=yes
4942  ;;
4943*)
4944  lt_cv_prog_gnu_ld=no
4945  ;;
4946esac
4947fi
4948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4949$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4950with_gnu_ld=$lt_cv_prog_gnu_ld
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4961$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4962if ${lt_cv_path_NM+:} false; then :
4963  $as_echo_n "(cached) " >&6
4964else
4965  if test -n "$NM"; then
4966  # Let the user override the test.
4967  lt_cv_path_NM=$NM
4968else
4969  lt_nm_to_check=${ac_tool_prefix}nm
4970  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4971    lt_nm_to_check="$lt_nm_to_check nm"
4972  fi
4973  for lt_tmp_nm in $lt_nm_to_check; do
4974    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4975    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4976      IFS=$lt_save_ifs
4977      test -z "$ac_dir" && ac_dir=.
4978      tmp_nm=$ac_dir/$lt_tmp_nm
4979      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4980	# Check to see if the nm accepts a BSD-compat flag.
4981	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4982	#   nm: unknown option "B" ignored
4983	# Tru64's nm complains that /dev/null is an invalid object file
4984	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4985	case $build_os in
4986	mingw*) lt_bad_file=conftest.nm/nofile ;;
4987	*) lt_bad_file=/dev/null ;;
4988	esac
4989	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4990	*$lt_bad_file* | *'Invalid file or object type'*)
4991	  lt_cv_path_NM="$tmp_nm -B"
4992	  break 2
4993	  ;;
4994	*)
4995	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4996	  */dev/null*)
4997	    lt_cv_path_NM="$tmp_nm -p"
4998	    break 2
4999	    ;;
5000	  *)
5001	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5002	    continue # so that we can try to find one that supports BSD flags
5003	    ;;
5004	  esac
5005	  ;;
5006	esac
5007      fi
5008    done
5009    IFS=$lt_save_ifs
5010  done
5011  : ${lt_cv_path_NM=no}
5012fi
5013fi
5014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5015$as_echo "$lt_cv_path_NM" >&6; }
5016if test no != "$lt_cv_path_NM"; then
5017  NM=$lt_cv_path_NM
5018else
5019  # Didn't find any BSD compatible name lister, look for dumpbin.
5020  if test -n "$DUMPBIN"; then :
5021    # Let the user override the test.
5022  else
5023    if test -n "$ac_tool_prefix"; then
5024  for ac_prog in dumpbin "link -dump"
5025  do
5026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029$as_echo_n "checking for $ac_word... " >&6; }
5030if ${ac_cv_prog_DUMPBIN+:} false; then :
5031  $as_echo_n "(cached) " >&6
5032else
5033  if test -n "$DUMPBIN"; then
5034  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5035else
5036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5037for as_dir in $PATH
5038do
5039  IFS=$as_save_IFS
5040  test -z "$as_dir" && as_dir=.
5041    for ac_exec_ext in '' $ac_executable_extensions; do
5042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5043    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5045    break 2
5046  fi
5047done
5048  done
5049IFS=$as_save_IFS
5050
5051fi
5052fi
5053DUMPBIN=$ac_cv_prog_DUMPBIN
5054if test -n "$DUMPBIN"; then
5055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5056$as_echo "$DUMPBIN" >&6; }
5057else
5058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5059$as_echo "no" >&6; }
5060fi
5061
5062
5063    test -n "$DUMPBIN" && break
5064  done
5065fi
5066if test -z "$DUMPBIN"; then
5067  ac_ct_DUMPBIN=$DUMPBIN
5068  for ac_prog in dumpbin "link -dump"
5069do
5070  # Extract the first word of "$ac_prog", so it can be a program name with args.
5071set dummy $ac_prog; ac_word=$2
5072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073$as_echo_n "checking for $ac_word... " >&6; }
5074if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5075  $as_echo_n "(cached) " >&6
5076else
5077  if test -n "$ac_ct_DUMPBIN"; then
5078  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083  IFS=$as_save_IFS
5084  test -z "$as_dir" && as_dir=.
5085    for ac_exec_ext in '' $ac_executable_extensions; do
5086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5089    break 2
5090  fi
5091done
5092  done
5093IFS=$as_save_IFS
5094
5095fi
5096fi
5097ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5098if test -n "$ac_ct_DUMPBIN"; then
5099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5100$as_echo "$ac_ct_DUMPBIN" >&6; }
5101else
5102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103$as_echo "no" >&6; }
5104fi
5105
5106
5107  test -n "$ac_ct_DUMPBIN" && break
5108done
5109
5110  if test "x$ac_ct_DUMPBIN" = x; then
5111    DUMPBIN=":"
5112  else
5113    case $cross_compiling:$ac_tool_warned in
5114yes:)
5115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5117ac_tool_warned=yes ;;
5118esac
5119    DUMPBIN=$ac_ct_DUMPBIN
5120  fi
5121fi
5122
5123    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5124    *COFF*)
5125      DUMPBIN="$DUMPBIN -symbols -headers"
5126      ;;
5127    *)
5128      DUMPBIN=:
5129      ;;
5130    esac
5131  fi
5132
5133  if test : != "$DUMPBIN"; then
5134    NM=$DUMPBIN
5135  fi
5136fi
5137test -z "$NM" && NM=nm
5138
5139
5140
5141
5142
5143
5144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5145$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5146if ${lt_cv_nm_interface+:} false; then :
5147  $as_echo_n "(cached) " >&6
5148else
5149  lt_cv_nm_interface="BSD nm"
5150  echo "int some_variable = 0;" > conftest.$ac_ext
5151  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5152  (eval "$ac_compile" 2>conftest.err)
5153  cat conftest.err >&5
5154  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5155  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5156  cat conftest.err >&5
5157  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5158  cat conftest.out >&5
5159  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5160    lt_cv_nm_interface="MS dumpbin"
5161  fi
5162  rm -f conftest*
5163fi
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5165$as_echo "$lt_cv_nm_interface" >&6; }
5166
5167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5168$as_echo_n "checking whether ln -s works... " >&6; }
5169LN_S=$as_ln_s
5170if test "$LN_S" = "ln -s"; then
5171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5172$as_echo "yes" >&6; }
5173else
5174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5175$as_echo "no, using $LN_S" >&6; }
5176fi
5177
5178# find the maximum length of command line arguments
5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5180$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5181if ${lt_cv_sys_max_cmd_len+:} false; then :
5182  $as_echo_n "(cached) " >&6
5183else
5184    i=0
5185  teststring=ABCD
5186
5187  case $build_os in
5188  msdosdjgpp*)
5189    # On DJGPP, this test can blow up pretty badly due to problems in libc
5190    # (any single argument exceeding 2000 bytes causes a buffer overrun
5191    # during glob expansion).  Even if it were fixed, the result of this
5192    # check would be larger than it should be.
5193    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5194    ;;
5195
5196  gnu*)
5197    # Under GNU Hurd, this test is not required because there is
5198    # no limit to the length of command line arguments.
5199    # Libtool will interpret -1 as no limit whatsoever
5200    lt_cv_sys_max_cmd_len=-1;
5201    ;;
5202
5203  cygwin* | mingw* | cegcc*)
5204    # On Win9x/ME, this test blows up -- it succeeds, but takes
5205    # about 5 minutes as the teststring grows exponentially.
5206    # Worse, since 9x/ME are not pre-emptively multitasking,
5207    # you end up with a "frozen" computer, even though with patience
5208    # the test eventually succeeds (with a max line length of 256k).
5209    # Instead, let's just punt: use the minimum linelength reported by
5210    # all of the supported platforms: 8192 (on NT/2K/XP).
5211    lt_cv_sys_max_cmd_len=8192;
5212    ;;
5213
5214  mint*)
5215    # On MiNT this can take a long time and run out of memory.
5216    lt_cv_sys_max_cmd_len=8192;
5217    ;;
5218
5219  amigaos*)
5220    # On AmigaOS with pdksh, this test takes hours, literally.
5221    # So we just punt and use a minimum line length of 8192.
5222    lt_cv_sys_max_cmd_len=8192;
5223    ;;
5224
5225  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5226    # This has been around since 386BSD, at least.  Likely further.
5227    if test -x /sbin/sysctl; then
5228      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5229    elif test -x /usr/sbin/sysctl; then
5230      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5231    else
5232      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5233    fi
5234    # And add a safety zone
5235    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5236    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5237    ;;
5238
5239  interix*)
5240    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5241    lt_cv_sys_max_cmd_len=196608
5242    ;;
5243
5244  os2*)
5245    # The test takes a long time on OS/2.
5246    lt_cv_sys_max_cmd_len=8192
5247    ;;
5248
5249  osf*)
5250    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5251    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5252    # nice to cause kernel panics so lets avoid the loop below.
5253    # First set a reasonable default.
5254    lt_cv_sys_max_cmd_len=16384
5255    #
5256    if test -x /sbin/sysconfig; then
5257      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5258        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5259      esac
5260    fi
5261    ;;
5262  sco3.2v5*)
5263    lt_cv_sys_max_cmd_len=102400
5264    ;;
5265  sysv5* | sco5v6* | sysv4.2uw2*)
5266    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5267    if test -n "$kargmax"; then
5268      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5269    else
5270      lt_cv_sys_max_cmd_len=32768
5271    fi
5272    ;;
5273  *)
5274    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5275    if test -n "$lt_cv_sys_max_cmd_len" && \
5276       test undefined != "$lt_cv_sys_max_cmd_len"; then
5277      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5278      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5279    else
5280      # Make teststring a little bigger before we do anything with it.
5281      # a 1K string should be a reasonable start.
5282      for i in 1 2 3 4 5 6 7 8; do
5283        teststring=$teststring$teststring
5284      done
5285      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5286      # If test is not a shell built-in, we'll probably end up computing a
5287      # maximum length that is only half of the actual maximum length, but
5288      # we can't tell.
5289      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5290	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5291	      test 17 != "$i" # 1/2 MB should be enough
5292      do
5293        i=`expr $i + 1`
5294        teststring=$teststring$teststring
5295      done
5296      # Only check the string length outside the loop.
5297      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5298      teststring=
5299      # Add a significant safety factor because C++ compilers can tack on
5300      # massive amounts of additional arguments before passing them to the
5301      # linker.  It appears as though 1/2 is a usable value.
5302      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5303    fi
5304    ;;
5305  esac
5306
5307fi
5308
5309if test -n "$lt_cv_sys_max_cmd_len"; then
5310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5311$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5312else
5313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5314$as_echo "none" >&6; }
5315fi
5316max_cmd_len=$lt_cv_sys_max_cmd_len
5317
5318
5319
5320
5321
5322
5323: ${CP="cp -f"}
5324: ${MV="mv -f"}
5325: ${RM="rm -f"}
5326
5327if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5328  lt_unset=unset
5329else
5330  lt_unset=false
5331fi
5332
5333
5334
5335
5336
5337# test EBCDIC or ASCII
5338case `echo X|tr X '\101'` in
5339 A) # ASCII based system
5340    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5341  lt_SP2NL='tr \040 \012'
5342  lt_NL2SP='tr \015\012 \040\040'
5343  ;;
5344 *) # EBCDIC based system
5345  lt_SP2NL='tr \100 \n'
5346  lt_NL2SP='tr \r\n \100\100'
5347  ;;
5348esac
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5359$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5360if ${lt_cv_to_host_file_cmd+:} false; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  case $host in
5364  *-*-mingw* )
5365    case $build in
5366      *-*-mingw* ) # actually msys
5367        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5368        ;;
5369      *-*-cygwin* )
5370        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5371        ;;
5372      * ) # otherwise, assume *nix
5373        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5374        ;;
5375    esac
5376    ;;
5377  *-*-cygwin* )
5378    case $build in
5379      *-*-mingw* ) # actually msys
5380        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5381        ;;
5382      *-*-cygwin* )
5383        lt_cv_to_host_file_cmd=func_convert_file_noop
5384        ;;
5385      * ) # otherwise, assume *nix
5386        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5387        ;;
5388    esac
5389    ;;
5390  * ) # unhandled hosts (and "normal" native builds)
5391    lt_cv_to_host_file_cmd=func_convert_file_noop
5392    ;;
5393esac
5394
5395fi
5396
5397to_host_file_cmd=$lt_cv_to_host_file_cmd
5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5399$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5400
5401
5402
5403
5404
5405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5406$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5407if ${lt_cv_to_tool_file_cmd+:} false; then :
5408  $as_echo_n "(cached) " >&6
5409else
5410  #assume ordinary cross tools, or native build.
5411lt_cv_to_tool_file_cmd=func_convert_file_noop
5412case $host in
5413  *-*-mingw* )
5414    case $build in
5415      *-*-mingw* ) # actually msys
5416        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5417        ;;
5418    esac
5419    ;;
5420esac
5421
5422fi
5423
5424to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5426$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5427
5428
5429
5430
5431
5432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5433$as_echo_n "checking for $LD option to reload object files... " >&6; }
5434if ${lt_cv_ld_reload_flag+:} false; then :
5435  $as_echo_n "(cached) " >&6
5436else
5437  lt_cv_ld_reload_flag='-r'
5438fi
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5440$as_echo "$lt_cv_ld_reload_flag" >&6; }
5441reload_flag=$lt_cv_ld_reload_flag
5442case $reload_flag in
5443"" | " "*) ;;
5444*) reload_flag=" $reload_flag" ;;
5445esac
5446reload_cmds='$LD$reload_flag -o $output$reload_objs'
5447case $host_os in
5448  cygwin* | mingw* | pw32* | cegcc*)
5449    if test yes != "$GCC"; then
5450      reload_cmds=false
5451    fi
5452    ;;
5453  darwin*)
5454    if test yes = "$GCC"; then
5455      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5456    else
5457      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5458    fi
5459    ;;
5460esac
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470if test -n "$ac_tool_prefix"; then
5471  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5472set dummy ${ac_tool_prefix}objdump; ac_word=$2
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474$as_echo_n "checking for $ac_word... " >&6; }
5475if ${ac_cv_prog_OBJDUMP+:} false; then :
5476  $as_echo_n "(cached) " >&6
5477else
5478  if test -n "$OBJDUMP"; then
5479  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5480else
5481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482for as_dir in $PATH
5483do
5484  IFS=$as_save_IFS
5485  test -z "$as_dir" && as_dir=.
5486    for ac_exec_ext in '' $ac_executable_extensions; do
5487  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5489    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490    break 2
5491  fi
5492done
5493  done
5494IFS=$as_save_IFS
5495
5496fi
5497fi
5498OBJDUMP=$ac_cv_prog_OBJDUMP
5499if test -n "$OBJDUMP"; then
5500  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5501$as_echo "$OBJDUMP" >&6; }
5502else
5503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504$as_echo "no" >&6; }
5505fi
5506
5507
5508fi
5509if test -z "$ac_cv_prog_OBJDUMP"; then
5510  ac_ct_OBJDUMP=$OBJDUMP
5511  # Extract the first word of "objdump", so it can be a program name with args.
5512set dummy objdump; ac_word=$2
5513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514$as_echo_n "checking for $ac_word... " >&6; }
5515if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5516  $as_echo_n "(cached) " >&6
5517else
5518  if test -n "$ac_ct_OBJDUMP"; then
5519  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5520else
5521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5522for as_dir in $PATH
5523do
5524  IFS=$as_save_IFS
5525  test -z "$as_dir" && as_dir=.
5526    for ac_exec_ext in '' $ac_executable_extensions; do
5527  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5528    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5529    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5530    break 2
5531  fi
5532done
5533  done
5534IFS=$as_save_IFS
5535
5536fi
5537fi
5538ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5539if test -n "$ac_ct_OBJDUMP"; then
5540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5541$as_echo "$ac_ct_OBJDUMP" >&6; }
5542else
5543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544$as_echo "no" >&6; }
5545fi
5546
5547  if test "x$ac_ct_OBJDUMP" = x; then
5548    OBJDUMP="false"
5549  else
5550    case $cross_compiling:$ac_tool_warned in
5551yes:)
5552{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554ac_tool_warned=yes ;;
5555esac
5556    OBJDUMP=$ac_ct_OBJDUMP
5557  fi
5558else
5559  OBJDUMP="$ac_cv_prog_OBJDUMP"
5560fi
5561
5562test -z "$OBJDUMP" && OBJDUMP=objdump
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5573$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5574if ${lt_cv_deplibs_check_method+:} false; then :
5575  $as_echo_n "(cached) " >&6
5576else
5577  lt_cv_file_magic_cmd='$MAGIC_CMD'
5578lt_cv_file_magic_test_file=
5579lt_cv_deplibs_check_method='unknown'
5580# Need to set the preceding variable on all platforms that support
5581# interlibrary dependencies.
5582# 'none' -- dependencies not supported.
5583# 'unknown' -- same as none, but documents that we really don't know.
5584# 'pass_all' -- all dependencies passed with no checks.
5585# 'test_compile' -- check by making test program.
5586# 'file_magic [[regex]]' -- check by looking for files in library path
5587# that responds to the $file_magic_cmd with a given extended regex.
5588# If you have 'file' or equivalent on your system and you're not sure
5589# whether 'pass_all' will *always* work, you probably want this one.
5590
5591case $host_os in
5592aix[4-9]*)
5593  lt_cv_deplibs_check_method=pass_all
5594  ;;
5595
5596beos*)
5597  lt_cv_deplibs_check_method=pass_all
5598  ;;
5599
5600bsdi[45]*)
5601  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5602  lt_cv_file_magic_cmd='/usr/bin/file -L'
5603  lt_cv_file_magic_test_file=/shlib/libc.so
5604  ;;
5605
5606cygwin*)
5607  # func_win32_libid is a shell function defined in ltmain.sh
5608  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5609  lt_cv_file_magic_cmd='func_win32_libid'
5610  ;;
5611
5612mingw* | pw32*)
5613  # Base MSYS/MinGW do not provide the 'file' command needed by
5614  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5615  # unless we find 'file', for example because we are cross-compiling.
5616  if ( file / ) >/dev/null 2>&1; then
5617    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5618    lt_cv_file_magic_cmd='func_win32_libid'
5619  else
5620    # Keep this pattern in sync with the one in func_win32_libid.
5621    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5622    lt_cv_file_magic_cmd='$OBJDUMP -f'
5623  fi
5624  ;;
5625
5626cegcc*)
5627  # use the weaker test based on 'objdump'. See mingw*.
5628  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5629  lt_cv_file_magic_cmd='$OBJDUMP -f'
5630  ;;
5631
5632darwin* | rhapsody*)
5633  lt_cv_deplibs_check_method=pass_all
5634  ;;
5635
5636freebsd* | dragonfly*)
5637  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5638    case $host_cpu in
5639    i*86 )
5640      # Not sure whether the presence of OpenBSD here was a mistake.
5641      # Let's accept both of them until this is cleared up.
5642      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5643      lt_cv_file_magic_cmd=/usr/bin/file
5644      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5645      ;;
5646    esac
5647  else
5648    lt_cv_deplibs_check_method=pass_all
5649  fi
5650  ;;
5651
5652haiku*)
5653  lt_cv_deplibs_check_method=pass_all
5654  ;;
5655
5656hpux10.20* | hpux11*)
5657  lt_cv_file_magic_cmd=/usr/bin/file
5658  case $host_cpu in
5659  ia64*)
5660    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5661    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5662    ;;
5663  hppa*64*)
5664    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5665    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5666    ;;
5667  *)
5668    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5669    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5670    ;;
5671  esac
5672  ;;
5673
5674interix[3-9]*)
5675  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5676  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5677  ;;
5678
5679irix5* | irix6* | nonstopux*)
5680  case $LD in
5681  *-32|*"-32 ") libmagic=32-bit;;
5682  *-n32|*"-n32 ") libmagic=N32;;
5683  *-64|*"-64 ") libmagic=64-bit;;
5684  *) libmagic=never-match;;
5685  esac
5686  lt_cv_deplibs_check_method=pass_all
5687  ;;
5688
5689# This must be glibc/ELF.
5690linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5691  lt_cv_deplibs_check_method=pass_all
5692  ;;
5693
5694netbsd*)
5695  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5696    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5697  else
5698    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5699  fi
5700  ;;
5701
5702newos6*)
5703  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5704  lt_cv_file_magic_cmd=/usr/bin/file
5705  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5706  ;;
5707
5708*nto* | *qnx*)
5709  lt_cv_deplibs_check_method=pass_all
5710  ;;
5711
5712openbsd* | bitrig*)
5713  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5714    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5715  else
5716    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717  fi
5718  ;;
5719
5720osf3* | osf4* | osf5*)
5721  lt_cv_deplibs_check_method=pass_all
5722  ;;
5723
5724rdos*)
5725  lt_cv_deplibs_check_method=pass_all
5726  ;;
5727
5728solaris*)
5729  lt_cv_deplibs_check_method=pass_all
5730  ;;
5731
5732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5733  lt_cv_deplibs_check_method=pass_all
5734  ;;
5735
5736sysv4 | sysv4.3*)
5737  case $host_vendor in
5738  motorola)
5739    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]'
5740    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5741    ;;
5742  ncr)
5743    lt_cv_deplibs_check_method=pass_all
5744    ;;
5745  sequent)
5746    lt_cv_file_magic_cmd='/bin/file'
5747    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5748    ;;
5749  sni)
5750    lt_cv_file_magic_cmd='/bin/file'
5751    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5752    lt_cv_file_magic_test_file=/lib/libc.so
5753    ;;
5754  siemens)
5755    lt_cv_deplibs_check_method=pass_all
5756    ;;
5757  pc)
5758    lt_cv_deplibs_check_method=pass_all
5759    ;;
5760  esac
5761  ;;
5762
5763tpf*)
5764  lt_cv_deplibs_check_method=pass_all
5765  ;;
5766os2*)
5767  lt_cv_deplibs_check_method=pass_all
5768  ;;
5769esac
5770
5771fi
5772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5773$as_echo "$lt_cv_deplibs_check_method" >&6; }
5774
5775file_magic_glob=
5776want_nocaseglob=no
5777if test "$build" = "$host"; then
5778  case $host_os in
5779  mingw* | pw32*)
5780    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5781      want_nocaseglob=yes
5782    else
5783      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5784    fi
5785    ;;
5786  esac
5787fi
5788
5789file_magic_cmd=$lt_cv_file_magic_cmd
5790deplibs_check_method=$lt_cv_deplibs_check_method
5791test -z "$deplibs_check_method" && deplibs_check_method=unknown
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814if test -n "$ac_tool_prefix"; then
5815  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if ${ac_cv_prog_DLLTOOL+:} false; then :
5820  $as_echo_n "(cached) " >&6
5821else
5822  if test -n "$DLLTOOL"; then
5823  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828  IFS=$as_save_IFS
5829  test -z "$as_dir" && as_dir=.
5830    for ac_exec_ext in '' $ac_executable_extensions; do
5831  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5832    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5833    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834    break 2
5835  fi
5836done
5837  done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842DLLTOOL=$ac_cv_prog_DLLTOOL
5843if test -n "$DLLTOOL"; then
5844  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5845$as_echo "$DLLTOOL" >&6; }
5846else
5847  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_DLLTOOL"; then
5854  ac_ct_DLLTOOL=$DLLTOOL
5855  # Extract the first word of "dlltool", so it can be a program name with args.
5856set dummy dlltool; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
5859if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5860  $as_echo_n "(cached) " >&6
5861else
5862  if test -n "$ac_ct_DLLTOOL"; then
5863  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868  IFS=$as_save_IFS
5869  test -z "$as_dir" && as_dir=.
5870    for ac_exec_ext in '' $ac_executable_extensions; do
5871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5872    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874    break 2
5875  fi
5876done
5877  done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5883if test -n "$ac_ct_DLLTOOL"; then
5884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5885$as_echo "$ac_ct_DLLTOOL" >&6; }
5886else
5887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891  if test "x$ac_ct_DLLTOOL" = x; then
5892    DLLTOOL="false"
5893  else
5894    case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900    DLLTOOL=$ac_ct_DLLTOOL
5901  fi
5902else
5903  DLLTOOL="$ac_cv_prog_DLLTOOL"
5904fi
5905
5906test -z "$DLLTOOL" && DLLTOOL=dlltool
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5918$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5919if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5920  $as_echo_n "(cached) " >&6
5921else
5922  lt_cv_sharedlib_from_linklib_cmd='unknown'
5923
5924case $host_os in
5925cygwin* | mingw* | pw32* | cegcc*)
5926  # two different shell functions defined in ltmain.sh;
5927  # decide which one to use based on capabilities of $DLLTOOL
5928  case `$DLLTOOL --help 2>&1` in
5929  *--identify-strict*)
5930    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5931    ;;
5932  *)
5933    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5934    ;;
5935  esac
5936  ;;
5937*)
5938  # fallback: assume linklib IS sharedlib
5939  lt_cv_sharedlib_from_linklib_cmd=$ECHO
5940  ;;
5941esac
5942
5943fi
5944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5945$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5946sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5947test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5948
5949
5950
5951
5952
5953
5954
5955
5956if test -n "$ac_tool_prefix"; then
5957  for ac_prog in ar
5958  do
5959    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5962$as_echo_n "checking for $ac_word... " >&6; }
5963if ${ac_cv_prog_AR+:} false; then :
5964  $as_echo_n "(cached) " >&6
5965else
5966  if test -n "$AR"; then
5967  ac_cv_prog_AR="$AR" # Let the user override the test.
5968else
5969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970for as_dir in $PATH
5971do
5972  IFS=$as_save_IFS
5973  test -z "$as_dir" && as_dir=.
5974    for ac_exec_ext in '' $ac_executable_extensions; do
5975  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5977    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5978    break 2
5979  fi
5980done
5981  done
5982IFS=$as_save_IFS
5983
5984fi
5985fi
5986AR=$ac_cv_prog_AR
5987if test -n "$AR"; then
5988  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5989$as_echo "$AR" >&6; }
5990else
5991  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5992$as_echo "no" >&6; }
5993fi
5994
5995
5996    test -n "$AR" && break
5997  done
5998fi
5999if test -z "$AR"; then
6000  ac_ct_AR=$AR
6001  for ac_prog in ar
6002do
6003  # Extract the first word of "$ac_prog", so it can be a program name with args.
6004set dummy $ac_prog; ac_word=$2
6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6006$as_echo_n "checking for $ac_word... " >&6; }
6007if ${ac_cv_prog_ac_ct_AR+:} false; then :
6008  $as_echo_n "(cached) " >&6
6009else
6010  if test -n "$ac_ct_AR"; then
6011  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6012else
6013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014for as_dir in $PATH
6015do
6016  IFS=$as_save_IFS
6017  test -z "$as_dir" && as_dir=.
6018    for ac_exec_ext in '' $ac_executable_extensions; do
6019  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6020    ac_cv_prog_ac_ct_AR="$ac_prog"
6021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6022    break 2
6023  fi
6024done
6025  done
6026IFS=$as_save_IFS
6027
6028fi
6029fi
6030ac_ct_AR=$ac_cv_prog_ac_ct_AR
6031if test -n "$ac_ct_AR"; then
6032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6033$as_echo "$ac_ct_AR" >&6; }
6034else
6035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6036$as_echo "no" >&6; }
6037fi
6038
6039
6040  test -n "$ac_ct_AR" && break
6041done
6042
6043  if test "x$ac_ct_AR" = x; then
6044    AR="false"
6045  else
6046    case $cross_compiling:$ac_tool_warned in
6047yes:)
6048{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6050ac_tool_warned=yes ;;
6051esac
6052    AR=$ac_ct_AR
6053  fi
6054fi
6055
6056: ${AR=ar}
6057: ${AR_FLAGS=cru}
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6070$as_echo_n "checking for archiver @FILE support... " >&6; }
6071if ${lt_cv_ar_at_file+:} false; then :
6072  $as_echo_n "(cached) " >&6
6073else
6074  lt_cv_ar_at_file=no
6075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077
6078int
6079main ()
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087  echo conftest.$ac_objext > conftest.lst
6088      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6089      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6090  (eval $lt_ar_try) 2>&5
6091  ac_status=$?
6092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6093  test $ac_status = 0; }
6094      if test 0 -eq "$ac_status"; then
6095	# Ensure the archiver fails upon bogus file names.
6096	rm -f conftest.$ac_objext libconftest.a
6097	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6098  (eval $lt_ar_try) 2>&5
6099  ac_status=$?
6100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6101  test $ac_status = 0; }
6102	if test 0 -ne "$ac_status"; then
6103          lt_cv_ar_at_file=@
6104        fi
6105      fi
6106      rm -f conftest.* libconftest.a
6107
6108fi
6109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6110
6111fi
6112{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6113$as_echo "$lt_cv_ar_at_file" >&6; }
6114
6115if test no = "$lt_cv_ar_at_file"; then
6116  archiver_list_spec=
6117else
6118  archiver_list_spec=$lt_cv_ar_at_file
6119fi
6120
6121
6122
6123
6124
6125
6126
6127if test -n "$ac_tool_prefix"; then
6128  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6129set dummy ${ac_tool_prefix}strip; ac_word=$2
6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6131$as_echo_n "checking for $ac_word... " >&6; }
6132if ${ac_cv_prog_STRIP+:} false; then :
6133  $as_echo_n "(cached) " >&6
6134else
6135  if test -n "$STRIP"; then
6136  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6137else
6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6139for as_dir in $PATH
6140do
6141  IFS=$as_save_IFS
6142  test -z "$as_dir" && as_dir=.
6143    for ac_exec_ext in '' $ac_executable_extensions; do
6144  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6147    break 2
6148  fi
6149done
6150  done
6151IFS=$as_save_IFS
6152
6153fi
6154fi
6155STRIP=$ac_cv_prog_STRIP
6156if test -n "$STRIP"; then
6157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6158$as_echo "$STRIP" >&6; }
6159else
6160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6161$as_echo "no" >&6; }
6162fi
6163
6164
6165fi
6166if test -z "$ac_cv_prog_STRIP"; then
6167  ac_ct_STRIP=$STRIP
6168  # Extract the first word of "strip", so it can be a program name with args.
6169set dummy strip; ac_word=$2
6170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6171$as_echo_n "checking for $ac_word... " >&6; }
6172if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6173  $as_echo_n "(cached) " >&6
6174else
6175  if test -n "$ac_ct_STRIP"; then
6176  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6177else
6178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6179for as_dir in $PATH
6180do
6181  IFS=$as_save_IFS
6182  test -z "$as_dir" && as_dir=.
6183    for ac_exec_ext in '' $ac_executable_extensions; do
6184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6185    ac_cv_prog_ac_ct_STRIP="strip"
6186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6187    break 2
6188  fi
6189done
6190  done
6191IFS=$as_save_IFS
6192
6193fi
6194fi
6195ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6196if test -n "$ac_ct_STRIP"; then
6197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6198$as_echo "$ac_ct_STRIP" >&6; }
6199else
6200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201$as_echo "no" >&6; }
6202fi
6203
6204  if test "x$ac_ct_STRIP" = x; then
6205    STRIP=":"
6206  else
6207    case $cross_compiling:$ac_tool_warned in
6208yes:)
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211ac_tool_warned=yes ;;
6212esac
6213    STRIP=$ac_ct_STRIP
6214  fi
6215else
6216  STRIP="$ac_cv_prog_STRIP"
6217fi
6218
6219test -z "$STRIP" && STRIP=:
6220
6221
6222
6223
6224
6225
6226if test -n "$ac_tool_prefix"; then
6227  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6228set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230$as_echo_n "checking for $ac_word... " >&6; }
6231if ${ac_cv_prog_RANLIB+:} false; then :
6232  $as_echo_n "(cached) " >&6
6233else
6234  if test -n "$RANLIB"; then
6235  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6236else
6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238for as_dir in $PATH
6239do
6240  IFS=$as_save_IFS
6241  test -z "$as_dir" && as_dir=.
6242    for ac_exec_ext in '' $ac_executable_extensions; do
6243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246    break 2
6247  fi
6248done
6249  done
6250IFS=$as_save_IFS
6251
6252fi
6253fi
6254RANLIB=$ac_cv_prog_RANLIB
6255if test -n "$RANLIB"; then
6256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6257$as_echo "$RANLIB" >&6; }
6258else
6259  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260$as_echo "no" >&6; }
6261fi
6262
6263
6264fi
6265if test -z "$ac_cv_prog_RANLIB"; then
6266  ac_ct_RANLIB=$RANLIB
6267  # Extract the first word of "ranlib", so it can be a program name with args.
6268set dummy ranlib; ac_word=$2
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270$as_echo_n "checking for $ac_word... " >&6; }
6271if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6272  $as_echo_n "(cached) " >&6
6273else
6274  if test -n "$ac_ct_RANLIB"; then
6275  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6276else
6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278for as_dir in $PATH
6279do
6280  IFS=$as_save_IFS
6281  test -z "$as_dir" && as_dir=.
6282    for ac_exec_ext in '' $ac_executable_extensions; do
6283  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284    ac_cv_prog_ac_ct_RANLIB="ranlib"
6285    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286    break 2
6287  fi
6288done
6289  done
6290IFS=$as_save_IFS
6291
6292fi
6293fi
6294ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6295if test -n "$ac_ct_RANLIB"; then
6296  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6297$as_echo "$ac_ct_RANLIB" >&6; }
6298else
6299  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300$as_echo "no" >&6; }
6301fi
6302
6303  if test "x$ac_ct_RANLIB" = x; then
6304    RANLIB=":"
6305  else
6306    case $cross_compiling:$ac_tool_warned in
6307yes:)
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310ac_tool_warned=yes ;;
6311esac
6312    RANLIB=$ac_ct_RANLIB
6313  fi
6314else
6315  RANLIB="$ac_cv_prog_RANLIB"
6316fi
6317
6318test -z "$RANLIB" && RANLIB=:
6319
6320
6321
6322
6323
6324
6325# Determine commands to create old-style static archives.
6326old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6327old_postinstall_cmds='chmod 644 $oldlib'
6328old_postuninstall_cmds=
6329
6330if test -n "$RANLIB"; then
6331  case $host_os in
6332  bitrig* | openbsd*)
6333    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6334    ;;
6335  *)
6336    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6337    ;;
6338  esac
6339  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6340fi
6341
6342case $host_os in
6343  darwin*)
6344    lock_old_archive_extraction=yes ;;
6345  *)
6346    lock_old_archive_extraction=no ;;
6347esac
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387# If no C compiler was specified, use CC.
6388LTCC=${LTCC-"$CC"}
6389
6390# If no C compiler flags were specified, use CFLAGS.
6391LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6392
6393# Allow CC to be a program name with arguments.
6394compiler=$CC
6395
6396
6397# Check for command to grab the raw symbol name followed by C symbol from nm.
6398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6399$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6400if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6401  $as_echo_n "(cached) " >&6
6402else
6403
6404# These are sane defaults that work on at least a few old systems.
6405# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6406
6407# Character class describing NM global symbol codes.
6408symcode='[BCDEGRST]'
6409
6410# Regexp to match symbols that can be accessed directly from C.
6411sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6412
6413# Define system-specific variables.
6414case $host_os in
6415aix*)
6416  symcode='[BCDT]'
6417  ;;
6418cygwin* | mingw* | pw32* | cegcc*)
6419  symcode='[ABCDGISTW]'
6420  ;;
6421hpux*)
6422  if test ia64 = "$host_cpu"; then
6423    symcode='[ABCDEGRST]'
6424  fi
6425  ;;
6426irix* | nonstopux*)
6427  symcode='[BCDEGRST]'
6428  ;;
6429osf*)
6430  symcode='[BCDEGQRST]'
6431  ;;
6432solaris*)
6433  symcode='[BDRT]'
6434  ;;
6435sco3.2v5*)
6436  symcode='[DT]'
6437  ;;
6438sysv4.2uw2*)
6439  symcode='[DT]'
6440  ;;
6441sysv5* | sco5v6* | unixware* | OpenUNIX*)
6442  symcode='[ABDT]'
6443  ;;
6444sysv4)
6445  symcode='[DFNSTU]'
6446  ;;
6447esac
6448
6449# If we're using GNU nm, then use its standard symbol codes.
6450case `$NM -V 2>&1` in
6451*GNU* | *'with BFD'*)
6452  symcode='[ABCDGIRSTW]' ;;
6453esac
6454
6455if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6456  # Gets list of data symbols to import.
6457  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6458  # Adjust the below global symbol transforms to fixup imported variables.
6459  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6460  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
6461  lt_c_name_lib_hook="\
6462  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
6463  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
6464else
6465  # Disable hooks by default.
6466  lt_cv_sys_global_symbol_to_import=
6467  lt_cdecl_hook=
6468  lt_c_name_hook=
6469  lt_c_name_lib_hook=
6470fi
6471
6472# Transform an extracted symbol line into a proper C declaration.
6473# Some systems (esp. on ia64) link data and code symbols differently,
6474# so use this general approach.
6475lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6476$lt_cdecl_hook\
6477" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6478" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6479
6480# Transform an extracted symbol line into symbol name and symbol address
6481lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6482$lt_c_name_hook\
6483" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6484" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
6485
6486# Transform an extracted symbol line into symbol name with lib prefix and
6487# symbol address.
6488lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6489$lt_c_name_lib_hook\
6490" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
6491" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
6492" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
6493
6494# Handle CRLF in mingw tool chain
6495opt_cr=
6496case $build_os in
6497mingw*)
6498  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6499  ;;
6500esac
6501
6502# Try without a prefix underscore, then with it.
6503for ac_symprfx in "" "_"; do
6504
6505  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6506  symxfrm="\\1 $ac_symprfx\\2 \\2"
6507
6508  # Write the raw and C identifiers.
6509  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6510    # Fake it for dumpbin and say T for any non-static function,
6511    # D for any global variable and I for any imported variable.
6512    # Also find C++ and __fastcall symbols from MSVC++,
6513    # which start with @ or ?.
6514    lt_cv_sys_global_symbol_pipe="$AWK '"\
6515"     {last_section=section; section=\$ 3};"\
6516"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6517"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6518"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6519"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6520"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6521"     \$ 0!~/External *\|/{next};"\
6522"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6523"     {if(hide[section]) next};"\
6524"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6525"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6526"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6527"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6528"     ' prfx=^$ac_symprfx"
6529  else
6530    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6531  fi
6532  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6533
6534  # Check to see that the pipe works correctly.
6535  pipe_works=no
6536
6537  rm -f conftest*
6538  cat > conftest.$ac_ext <<_LT_EOF
6539#ifdef __cplusplus
6540extern "C" {
6541#endif
6542char nm_test_var;
6543void nm_test_func(void);
6544void nm_test_func(void){}
6545#ifdef __cplusplus
6546}
6547#endif
6548int main(){nm_test_var='a';nm_test_func();return(0);}
6549_LT_EOF
6550
6551  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6552  (eval $ac_compile) 2>&5
6553  ac_status=$?
6554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6555  test $ac_status = 0; }; then
6556    # Now try to grab the symbols.
6557    nlist=conftest.nm
6558    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6559  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6560  ac_status=$?
6561  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6562  test $ac_status = 0; } && test -s "$nlist"; then
6563      # Try sorting and uniquifying the output.
6564      if sort "$nlist" | uniq > "$nlist"T; then
6565	mv -f "$nlist"T "$nlist"
6566      else
6567	rm -f "$nlist"T
6568      fi
6569
6570      # Make sure that we snagged all the symbols we need.
6571      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6572	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6573	  cat <<_LT_EOF > conftest.$ac_ext
6574/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
6575#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6576/* DATA imports from DLLs on WIN32 can't be const, because runtime
6577   relocations are performed -- see ld's documentation on pseudo-relocs.  */
6578# define LT@&t@_DLSYM_CONST
6579#elif defined __osf__
6580/* This system does not cope well with relocations in const data.  */
6581# define LT@&t@_DLSYM_CONST
6582#else
6583# define LT@&t@_DLSYM_CONST const
6584#endif
6585
6586#ifdef __cplusplus
6587extern "C" {
6588#endif
6589
6590_LT_EOF
6591	  # Now generate the symbol file.
6592	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6593
6594	  cat <<_LT_EOF >> conftest.$ac_ext
6595
6596/* The mapping between symbol names and symbols.  */
6597LT@&t@_DLSYM_CONST struct {
6598  const char *name;
6599  void       *address;
6600}
6601lt__PROGRAM__LTX_preloaded_symbols[] =
6602{
6603  { "@PROGRAM@", (void *) 0 },
6604_LT_EOF
6605	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6606	  cat <<\_LT_EOF >> conftest.$ac_ext
6607  {0, (void *) 0}
6608};
6609
6610/* This works around a problem in FreeBSD linker */
6611#ifdef FREEBSD_WORKAROUND
6612static const void *lt_preloaded_setup() {
6613  return lt__PROGRAM__LTX_preloaded_symbols;
6614}
6615#endif
6616
6617#ifdef __cplusplus
6618}
6619#endif
6620_LT_EOF
6621	  # Now try linking the two files.
6622	  mv conftest.$ac_objext conftstm.$ac_objext
6623	  lt_globsym_save_LIBS=$LIBS
6624	  lt_globsym_save_CFLAGS=$CFLAGS
6625	  LIBS=conftstm.$ac_objext
6626	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6627	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6628  (eval $ac_link) 2>&5
6629  ac_status=$?
6630  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631  test $ac_status = 0; } && test -s conftest$ac_exeext; then
6632	    pipe_works=yes
6633	  fi
6634	  LIBS=$lt_globsym_save_LIBS
6635	  CFLAGS=$lt_globsym_save_CFLAGS
6636	else
6637	  echo "cannot find nm_test_func in $nlist" >&5
6638	fi
6639      else
6640	echo "cannot find nm_test_var in $nlist" >&5
6641      fi
6642    else
6643      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6644    fi
6645  else
6646    echo "$progname: failed program was:" >&5
6647    cat conftest.$ac_ext >&5
6648  fi
6649  rm -rf conftest* conftst*
6650
6651  # Do not use the global_symbol_pipe unless it works.
6652  if test yes = "$pipe_works"; then
6653    break
6654  else
6655    lt_cv_sys_global_symbol_pipe=
6656  fi
6657done
6658
6659fi
6660
6661if test -z "$lt_cv_sys_global_symbol_pipe"; then
6662  lt_cv_sys_global_symbol_to_cdecl=
6663fi
6664if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6665  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6666$as_echo "failed" >&6; }
6667else
6668  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6669$as_echo "ok" >&6; }
6670fi
6671
6672# Response file support.
6673if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6674  nm_file_list_spec='@'
6675elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6676  nm_file_list_spec='@'
6677fi
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6716$as_echo_n "checking for sysroot... " >&6; }
6717
6718@%:@ Check whether --with-sysroot was given.
6719if test "${with_sysroot+set}" = set; then :
6720  withval=$with_sysroot;
6721else
6722  with_sysroot=no
6723fi
6724
6725
6726lt_sysroot=
6727case $with_sysroot in #(
6728 yes)
6729   if test yes = "$GCC"; then
6730     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6731   fi
6732   ;; #(
6733 /*)
6734   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6735   ;; #(
6736 no|'')
6737   ;; #(
6738 *)
6739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6740$as_echo "$with_sysroot" >&6; }
6741   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6742   ;;
6743esac
6744
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6746$as_echo "${lt_sysroot:-no}" >&6; }
6747
6748
6749
6750
6751
6752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6753$as_echo_n "checking for a working dd... " >&6; }
6754if ${ac_cv_path_lt_DD+:} false; then :
6755  $as_echo_n "(cached) " >&6
6756else
6757  printf 0123456789abcdef0123456789abcdef >conftest.i
6758cat conftest.i conftest.i >conftest2.i
6759: ${lt_DD:=$DD}
6760if test -z "$lt_DD"; then
6761  ac_path_lt_DD_found=false
6762  # Loop through the user's path and test for each of PROGNAME-LIST
6763  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764for as_dir in $PATH
6765do
6766  IFS=$as_save_IFS
6767  test -z "$as_dir" && as_dir=.
6768    for ac_prog in dd; do
6769    for ac_exec_ext in '' $ac_executable_extensions; do
6770      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6771      as_fn_executable_p "$ac_path_lt_DD" || continue
6772if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6773  cmp -s conftest.i conftest.out \
6774  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6775fi
6776      $ac_path_lt_DD_found && break 3
6777    done
6778  done
6779  done
6780IFS=$as_save_IFS
6781  if test -z "$ac_cv_path_lt_DD"; then
6782    :
6783  fi
6784else
6785  ac_cv_path_lt_DD=$lt_DD
6786fi
6787
6788rm -f conftest.i conftest2.i conftest.out
6789fi
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6791$as_echo "$ac_cv_path_lt_DD" >&6; }
6792
6793
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6795$as_echo_n "checking how to truncate binary pipes... " >&6; }
6796if ${lt_cv_truncate_bin+:} false; then :
6797  $as_echo_n "(cached) " >&6
6798else
6799  printf 0123456789abcdef0123456789abcdef >conftest.i
6800cat conftest.i conftest.i >conftest2.i
6801lt_cv_truncate_bin=
6802if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6803  cmp -s conftest.i conftest.out \
6804  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6805fi
6806rm -f conftest.i conftest2.i conftest.out
6807test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6808fi
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6810$as_echo "$lt_cv_truncate_bin" >&6; }
6811
6812
6813
6814
6815
6816
6817
6818# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
6819func_cc_basename ()
6820{
6821    for cc_temp in @S|@*""; do
6822      case $cc_temp in
6823        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6824        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6825        \-*) ;;
6826        *) break;;
6827      esac
6828    done
6829    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6830}
6831
6832@%:@ Check whether --enable-libtool-lock was given.
6833if test "${enable_libtool_lock+set}" = set; then :
6834  enableval=$enable_libtool_lock;
6835fi
6836
6837test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6838
6839# Some flags need to be propagated to the compiler or linker for good
6840# libtool support.
6841case $host in
6842ia64-*-hpux*)
6843  # Find out what ABI is being produced by ac_compile, and set mode
6844  # options accordingly.
6845  echo 'int i;' > conftest.$ac_ext
6846  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6847  (eval $ac_compile) 2>&5
6848  ac_status=$?
6849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6850  test $ac_status = 0; }; then
6851    case `/usr/bin/file conftest.$ac_objext` in
6852      *ELF-32*)
6853	HPUX_IA64_MODE=32
6854	;;
6855      *ELF-64*)
6856	HPUX_IA64_MODE=64
6857	;;
6858    esac
6859  fi
6860  rm -rf conftest*
6861  ;;
6862*-*-irix6*)
6863  # Find out what ABI is being produced by ac_compile, and set linker
6864  # options accordingly.
6865  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6867  (eval $ac_compile) 2>&5
6868  ac_status=$?
6869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6870  test $ac_status = 0; }; then
6871    if test yes = "$lt_cv_prog_gnu_ld"; then
6872      case `/usr/bin/file conftest.$ac_objext` in
6873	*32-bit*)
6874	  LD="${LD-ld} -melf32bsmip"
6875	  ;;
6876	*N32*)
6877	  LD="${LD-ld} -melf32bmipn32"
6878	  ;;
6879	*64-bit*)
6880	  LD="${LD-ld} -melf64bmip"
6881	;;
6882      esac
6883    else
6884      case `/usr/bin/file conftest.$ac_objext` in
6885	*32-bit*)
6886	  LD="${LD-ld} -32"
6887	  ;;
6888	*N32*)
6889	  LD="${LD-ld} -n32"
6890	  ;;
6891	*64-bit*)
6892	  LD="${LD-ld} -64"
6893	  ;;
6894      esac
6895    fi
6896  fi
6897  rm -rf conftest*
6898  ;;
6899
6900mips64*-*linux*)
6901  # Find out what ABI is being produced by ac_compile, and set linker
6902  # options accordingly.
6903  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6904  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6905  (eval $ac_compile) 2>&5
6906  ac_status=$?
6907  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6908  test $ac_status = 0; }; then
6909    emul=elf
6910    case `/usr/bin/file conftest.$ac_objext` in
6911      *32-bit*)
6912	emul="${emul}32"
6913	;;
6914      *64-bit*)
6915	emul="${emul}64"
6916	;;
6917    esac
6918    case `/usr/bin/file conftest.$ac_objext` in
6919      *MSB*)
6920	emul="${emul}btsmip"
6921	;;
6922      *LSB*)
6923	emul="${emul}ltsmip"
6924	;;
6925    esac
6926    case `/usr/bin/file conftest.$ac_objext` in
6927      *N32*)
6928	emul="${emul}n32"
6929	;;
6930    esac
6931    LD="${LD-ld} -m $emul"
6932  fi
6933  rm -rf conftest*
6934  ;;
6935
6936x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6937s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6938  # Find out what ABI is being produced by ac_compile, and set linker
6939  # options accordingly.  Note that the listed cases only cover the
6940  # situations where additional linker options are needed (such as when
6941  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6942  # vice versa); the common cases where no linker options are needed do
6943  # not appear in the list.
6944  echo 'int i;' > conftest.$ac_ext
6945  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946  (eval $ac_compile) 2>&5
6947  ac_status=$?
6948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949  test $ac_status = 0; }; then
6950    case `/usr/bin/file conftest.o` in
6951      *32-bit*)
6952	case $host in
6953	  x86_64-*kfreebsd*-gnu)
6954	    LD="${LD-ld} -m elf_i386_fbsd"
6955	    ;;
6956	  x86_64-*linux*)
6957	    case `/usr/bin/file conftest.o` in
6958	      *x86-64*)
6959		LD="${LD-ld} -m elf32_x86_64"
6960		;;
6961	      *)
6962		LD="${LD-ld} -m elf_i386"
6963		;;
6964	    esac
6965	    ;;
6966	  powerpc64le-*linux*)
6967	    LD="${LD-ld} -m elf32lppclinux"
6968	    ;;
6969	  powerpc64-*linux*)
6970	    LD="${LD-ld} -m elf32ppclinux"
6971	    ;;
6972	  s390x-*linux*)
6973	    LD="${LD-ld} -m elf_s390"
6974	    ;;
6975	  sparc64-*linux*)
6976	    LD="${LD-ld} -m elf32_sparc"
6977	    ;;
6978	esac
6979	;;
6980      *64-bit*)
6981	case $host in
6982	  x86_64-*kfreebsd*-gnu)
6983	    LD="${LD-ld} -m elf_x86_64_fbsd"
6984	    ;;
6985	  x86_64-*linux*)
6986	    LD="${LD-ld} -m elf_x86_64"
6987	    ;;
6988	  powerpcle-*linux*)
6989	    LD="${LD-ld} -m elf64lppc"
6990	    ;;
6991	  powerpc-*linux*)
6992	    LD="${LD-ld} -m elf64ppc"
6993	    ;;
6994	  s390*-*linux*|s390*-*tpf*)
6995	    LD="${LD-ld} -m elf64_s390"
6996	    ;;
6997	  sparc*-*linux*)
6998	    LD="${LD-ld} -m elf64_sparc"
6999	    ;;
7000	esac
7001	;;
7002    esac
7003  fi
7004  rm -rf conftest*
7005  ;;
7006
7007*-*-sco3.2v5*)
7008  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7009  SAVE_CFLAGS=$CFLAGS
7010  CFLAGS="$CFLAGS -belf"
7011  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7012$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7013if ${lt_cv_cc_needs_belf+:} false; then :
7014  $as_echo_n "(cached) " >&6
7015else
7016  ac_ext=c
7017ac_cpp='$CPP $CPPFLAGS'
7018ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023/* end confdefs.h.  */
7024
7025int
7026main ()
7027{
7028
7029  ;
7030  return 0;
7031}
7032_ACEOF
7033if ac_fn_c_try_link "$LINENO"; then :
7034  lt_cv_cc_needs_belf=yes
7035else
7036  lt_cv_cc_needs_belf=no
7037fi
7038rm -f core conftest.err conftest.$ac_objext \
7039    conftest$ac_exeext conftest.$ac_ext
7040     ac_ext=c
7041ac_cpp='$CPP $CPPFLAGS'
7042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7044ac_compiler_gnu=$ac_cv_c_compiler_gnu
7045
7046fi
7047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7048$as_echo "$lt_cv_cc_needs_belf" >&6; }
7049  if test yes != "$lt_cv_cc_needs_belf"; then
7050    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7051    CFLAGS=$SAVE_CFLAGS
7052  fi
7053  ;;
7054*-*solaris*)
7055  # Find out what ABI is being produced by ac_compile, and set linker
7056  # options accordingly.
7057  echo 'int i;' > conftest.$ac_ext
7058  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7059  (eval $ac_compile) 2>&5
7060  ac_status=$?
7061  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7062  test $ac_status = 0; }; then
7063    case `/usr/bin/file conftest.o` in
7064    *64-bit*)
7065      case $lt_cv_prog_gnu_ld in
7066      yes*)
7067        case $host in
7068        i?86-*-solaris*|x86_64-*-solaris*)
7069          LD="${LD-ld} -m elf_x86_64"
7070          ;;
7071        sparc*-*-solaris*)
7072          LD="${LD-ld} -m elf64_sparc"
7073          ;;
7074        esac
7075        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
7076        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7077          LD=${LD-ld}_sol2
7078        fi
7079        ;;
7080      *)
7081	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7082	  LD="${LD-ld} -64"
7083	fi
7084	;;
7085      esac
7086      ;;
7087    esac
7088  fi
7089  rm -rf conftest*
7090  ;;
7091esac
7092
7093need_locks=$enable_libtool_lock
7094
7095if test -n "$ac_tool_prefix"; then
7096  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7097set dummy ${ac_tool_prefix}mt; ac_word=$2
7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7099$as_echo_n "checking for $ac_word... " >&6; }
7100if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7101  $as_echo_n "(cached) " >&6
7102else
7103  if test -n "$MANIFEST_TOOL"; then
7104  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7105else
7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7107for as_dir in $PATH
7108do
7109  IFS=$as_save_IFS
7110  test -z "$as_dir" && as_dir=.
7111    for ac_exec_ext in '' $ac_executable_extensions; do
7112  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7113    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7115    break 2
7116  fi
7117done
7118  done
7119IFS=$as_save_IFS
7120
7121fi
7122fi
7123MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7124if test -n "$MANIFEST_TOOL"; then
7125  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7126$as_echo "$MANIFEST_TOOL" >&6; }
7127else
7128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129$as_echo "no" >&6; }
7130fi
7131
7132
7133fi
7134if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7135  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7136  # Extract the first word of "mt", so it can be a program name with args.
7137set dummy mt; ac_word=$2
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7139$as_echo_n "checking for $ac_word... " >&6; }
7140if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7141  $as_echo_n "(cached) " >&6
7142else
7143  if test -n "$ac_ct_MANIFEST_TOOL"; then
7144  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7145else
7146as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147for as_dir in $PATH
7148do
7149  IFS=$as_save_IFS
7150  test -z "$as_dir" && as_dir=.
7151    for ac_exec_ext in '' $ac_executable_extensions; do
7152  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7153    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155    break 2
7156  fi
7157done
7158  done
7159IFS=$as_save_IFS
7160
7161fi
7162fi
7163ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7164if test -n "$ac_ct_MANIFEST_TOOL"; then
7165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7166$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7167else
7168  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7169$as_echo "no" >&6; }
7170fi
7171
7172  if test "x$ac_ct_MANIFEST_TOOL" = x; then
7173    MANIFEST_TOOL=":"
7174  else
7175    case $cross_compiling:$ac_tool_warned in
7176yes:)
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7179ac_tool_warned=yes ;;
7180esac
7181    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7182  fi
7183else
7184  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7185fi
7186
7187test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7189$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7190if ${lt_cv_path_mainfest_tool+:} false; then :
7191  $as_echo_n "(cached) " >&6
7192else
7193  lt_cv_path_mainfest_tool=no
7194  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7195  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7196  cat conftest.err >&5
7197  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7198    lt_cv_path_mainfest_tool=yes
7199  fi
7200  rm -f conftest*
7201fi
7202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7203$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7204if test yes != "$lt_cv_path_mainfest_tool"; then
7205  MANIFEST_TOOL=:
7206fi
7207
7208
7209
7210
7211
7212
7213  case $host_os in
7214    rhapsody* | darwin*)
7215    if test -n "$ac_tool_prefix"; then
7216  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7217set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7219$as_echo_n "checking for $ac_word... " >&6; }
7220if ${ac_cv_prog_DSYMUTIL+:} false; then :
7221  $as_echo_n "(cached) " >&6
7222else
7223  if test -n "$DSYMUTIL"; then
7224  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7225else
7226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7227for as_dir in $PATH
7228do
7229  IFS=$as_save_IFS
7230  test -z "$as_dir" && as_dir=.
7231    for ac_exec_ext in '' $ac_executable_extensions; do
7232  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7233    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7234    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7235    break 2
7236  fi
7237done
7238  done
7239IFS=$as_save_IFS
7240
7241fi
7242fi
7243DSYMUTIL=$ac_cv_prog_DSYMUTIL
7244if test -n "$DSYMUTIL"; then
7245  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7246$as_echo "$DSYMUTIL" >&6; }
7247else
7248  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7249$as_echo "no" >&6; }
7250fi
7251
7252
7253fi
7254if test -z "$ac_cv_prog_DSYMUTIL"; then
7255  ac_ct_DSYMUTIL=$DSYMUTIL
7256  # Extract the first word of "dsymutil", so it can be a program name with args.
7257set dummy dsymutil; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$ac_ct_DSYMUTIL"; then
7264  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7284if test -n "$ac_ct_DSYMUTIL"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7286$as_echo "$ac_ct_DSYMUTIL" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292  if test "x$ac_ct_DSYMUTIL" = x; then
7293    DSYMUTIL=":"
7294  else
7295    case $cross_compiling:$ac_tool_warned in
7296yes:)
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7298$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7299ac_tool_warned=yes ;;
7300esac
7301    DSYMUTIL=$ac_ct_DSYMUTIL
7302  fi
7303else
7304  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7305fi
7306
7307    if test -n "$ac_tool_prefix"; then
7308  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7309set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311$as_echo_n "checking for $ac_word... " >&6; }
7312if ${ac_cv_prog_NMEDIT+:} false; then :
7313  $as_echo_n "(cached) " >&6
7314else
7315  if test -n "$NMEDIT"; then
7316  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7317else
7318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319for as_dir in $PATH
7320do
7321  IFS=$as_save_IFS
7322  test -z "$as_dir" && as_dir=.
7323    for ac_exec_ext in '' $ac_executable_extensions; do
7324  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7325    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7326    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327    break 2
7328  fi
7329done
7330  done
7331IFS=$as_save_IFS
7332
7333fi
7334fi
7335NMEDIT=$ac_cv_prog_NMEDIT
7336if test -n "$NMEDIT"; then
7337  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7338$as_echo "$NMEDIT" >&6; }
7339else
7340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341$as_echo "no" >&6; }
7342fi
7343
7344
7345fi
7346if test -z "$ac_cv_prog_NMEDIT"; then
7347  ac_ct_NMEDIT=$NMEDIT
7348  # Extract the first word of "nmedit", so it can be a program name with args.
7349set dummy nmedit; ac_word=$2
7350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351$as_echo_n "checking for $ac_word... " >&6; }
7352if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7353  $as_echo_n "(cached) " >&6
7354else
7355  if test -n "$ac_ct_NMEDIT"; then
7356  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7357else
7358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359for as_dir in $PATH
7360do
7361  IFS=$as_save_IFS
7362  test -z "$as_dir" && as_dir=.
7363    for ac_exec_ext in '' $ac_executable_extensions; do
7364  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7365    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7366    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367    break 2
7368  fi
7369done
7370  done
7371IFS=$as_save_IFS
7372
7373fi
7374fi
7375ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7376if test -n "$ac_ct_NMEDIT"; then
7377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7378$as_echo "$ac_ct_NMEDIT" >&6; }
7379else
7380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381$as_echo "no" >&6; }
7382fi
7383
7384  if test "x$ac_ct_NMEDIT" = x; then
7385    NMEDIT=":"
7386  else
7387    case $cross_compiling:$ac_tool_warned in
7388yes:)
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7390$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7391ac_tool_warned=yes ;;
7392esac
7393    NMEDIT=$ac_ct_NMEDIT
7394  fi
7395else
7396  NMEDIT="$ac_cv_prog_NMEDIT"
7397fi
7398
7399    if test -n "$ac_tool_prefix"; then
7400  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7401set dummy ${ac_tool_prefix}lipo; ac_word=$2
7402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7403$as_echo_n "checking for $ac_word... " >&6; }
7404if ${ac_cv_prog_LIPO+:} false; then :
7405  $as_echo_n "(cached) " >&6
7406else
7407  if test -n "$LIPO"; then
7408  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7409else
7410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7411for as_dir in $PATH
7412do
7413  IFS=$as_save_IFS
7414  test -z "$as_dir" && as_dir=.
7415    for ac_exec_ext in '' $ac_executable_extensions; do
7416  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7417    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7418    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7419    break 2
7420  fi
7421done
7422  done
7423IFS=$as_save_IFS
7424
7425fi
7426fi
7427LIPO=$ac_cv_prog_LIPO
7428if test -n "$LIPO"; then
7429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7430$as_echo "$LIPO" >&6; }
7431else
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433$as_echo "no" >&6; }
7434fi
7435
7436
7437fi
7438if test -z "$ac_cv_prog_LIPO"; then
7439  ac_ct_LIPO=$LIPO
7440  # Extract the first word of "lipo", so it can be a program name with args.
7441set dummy lipo; ac_word=$2
7442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7443$as_echo_n "checking for $ac_word... " >&6; }
7444if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7445  $as_echo_n "(cached) " >&6
7446else
7447  if test -n "$ac_ct_LIPO"; then
7448  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7449else
7450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7451for as_dir in $PATH
7452do
7453  IFS=$as_save_IFS
7454  test -z "$as_dir" && as_dir=.
7455    for ac_exec_ext in '' $ac_executable_extensions; do
7456  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7457    ac_cv_prog_ac_ct_LIPO="lipo"
7458    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7459    break 2
7460  fi
7461done
7462  done
7463IFS=$as_save_IFS
7464
7465fi
7466fi
7467ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7468if test -n "$ac_ct_LIPO"; then
7469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7470$as_echo "$ac_ct_LIPO" >&6; }
7471else
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7473$as_echo "no" >&6; }
7474fi
7475
7476  if test "x$ac_ct_LIPO" = x; then
7477    LIPO=":"
7478  else
7479    case $cross_compiling:$ac_tool_warned in
7480yes:)
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7482$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7483ac_tool_warned=yes ;;
7484esac
7485    LIPO=$ac_ct_LIPO
7486  fi
7487else
7488  LIPO="$ac_cv_prog_LIPO"
7489fi
7490
7491    if test -n "$ac_tool_prefix"; then
7492  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7493set dummy ${ac_tool_prefix}otool; ac_word=$2
7494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7495$as_echo_n "checking for $ac_word... " >&6; }
7496if ${ac_cv_prog_OTOOL+:} false; then :
7497  $as_echo_n "(cached) " >&6
7498else
7499  if test -n "$OTOOL"; then
7500  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7501else
7502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503for as_dir in $PATH
7504do
7505  IFS=$as_save_IFS
7506  test -z "$as_dir" && as_dir=.
7507    for ac_exec_ext in '' $ac_executable_extensions; do
7508  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7509    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7510    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7511    break 2
7512  fi
7513done
7514  done
7515IFS=$as_save_IFS
7516
7517fi
7518fi
7519OTOOL=$ac_cv_prog_OTOOL
7520if test -n "$OTOOL"; then
7521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7522$as_echo "$OTOOL" >&6; }
7523else
7524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7525$as_echo "no" >&6; }
7526fi
7527
7528
7529fi
7530if test -z "$ac_cv_prog_OTOOL"; then
7531  ac_ct_OTOOL=$OTOOL
7532  # Extract the first word of "otool", so it can be a program name with args.
7533set dummy otool; ac_word=$2
7534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7535$as_echo_n "checking for $ac_word... " >&6; }
7536if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7537  $as_echo_n "(cached) " >&6
7538else
7539  if test -n "$ac_ct_OTOOL"; then
7540  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7541else
7542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7543for as_dir in $PATH
7544do
7545  IFS=$as_save_IFS
7546  test -z "$as_dir" && as_dir=.
7547    for ac_exec_ext in '' $ac_executable_extensions; do
7548  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7549    ac_cv_prog_ac_ct_OTOOL="otool"
7550    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7551    break 2
7552  fi
7553done
7554  done
7555IFS=$as_save_IFS
7556
7557fi
7558fi
7559ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7560if test -n "$ac_ct_OTOOL"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7562$as_echo "$ac_ct_OTOOL" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568  if test "x$ac_ct_OTOOL" = x; then
7569    OTOOL=":"
7570  else
7571    case $cross_compiling:$ac_tool_warned in
7572yes:)
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7575ac_tool_warned=yes ;;
7576esac
7577    OTOOL=$ac_ct_OTOOL
7578  fi
7579else
7580  OTOOL="$ac_cv_prog_OTOOL"
7581fi
7582
7583    if test -n "$ac_tool_prefix"; then
7584  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7585set dummy ${ac_tool_prefix}otool64; ac_word=$2
7586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7587$as_echo_n "checking for $ac_word... " >&6; }
7588if ${ac_cv_prog_OTOOL64+:} false; then :
7589  $as_echo_n "(cached) " >&6
7590else
7591  if test -n "$OTOOL64"; then
7592  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7593else
7594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595for as_dir in $PATH
7596do
7597  IFS=$as_save_IFS
7598  test -z "$as_dir" && as_dir=.
7599    for ac_exec_ext in '' $ac_executable_extensions; do
7600  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7601    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7603    break 2
7604  fi
7605done
7606  done
7607IFS=$as_save_IFS
7608
7609fi
7610fi
7611OTOOL64=$ac_cv_prog_OTOOL64
7612if test -n "$OTOOL64"; then
7613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7614$as_echo "$OTOOL64" >&6; }
7615else
7616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7617$as_echo "no" >&6; }
7618fi
7619
7620
7621fi
7622if test -z "$ac_cv_prog_OTOOL64"; then
7623  ac_ct_OTOOL64=$OTOOL64
7624  # Extract the first word of "otool64", so it can be a program name with args.
7625set dummy otool64; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7629  $as_echo_n "(cached) " >&6
7630else
7631  if test -n "$ac_ct_OTOOL64"; then
7632  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7633else
7634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7635for as_dir in $PATH
7636do
7637  IFS=$as_save_IFS
7638  test -z "$as_dir" && as_dir=.
7639    for ac_exec_ext in '' $ac_executable_extensions; do
7640  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7641    ac_cv_prog_ac_ct_OTOOL64="otool64"
7642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7643    break 2
7644  fi
7645done
7646  done
7647IFS=$as_save_IFS
7648
7649fi
7650fi
7651ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7652if test -n "$ac_ct_OTOOL64"; then
7653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7654$as_echo "$ac_ct_OTOOL64" >&6; }
7655else
7656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657$as_echo "no" >&6; }
7658fi
7659
7660  if test "x$ac_ct_OTOOL64" = x; then
7661    OTOOL64=":"
7662  else
7663    case $cross_compiling:$ac_tool_warned in
7664yes:)
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7667ac_tool_warned=yes ;;
7668esac
7669    OTOOL64=$ac_ct_OTOOL64
7670  fi
7671else
7672  OTOOL64="$ac_cv_prog_OTOOL64"
7673fi
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7702$as_echo_n "checking for -single_module linker flag... " >&6; }
7703if ${lt_cv_apple_cc_single_mod+:} false; then :
7704  $as_echo_n "(cached) " >&6
7705else
7706  lt_cv_apple_cc_single_mod=no
7707      if test -z "$LT_MULTI_MODULE"; then
7708	# By default we will add the -single_module flag. You can override
7709	# by either setting the environment variable LT_MULTI_MODULE
7710	# non-empty at configure time, or by adding -multi_module to the
7711	# link flags.
7712	rm -rf libconftest.dylib*
7713	echo "int foo(void){return 1;}" > conftest.c
7714	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7715-dynamiclib -Wl,-single_module conftest.c" >&5
7716	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7717	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7718        _lt_result=$?
7719	# If there is a non-empty error log, and "single_module"
7720	# appears in it, assume the flag caused a linker warning
7721        if test -s conftest.err && $GREP single_module conftest.err; then
7722	  cat conftest.err >&5
7723	# Otherwise, if the output was created with a 0 exit code from
7724	# the compiler, it worked.
7725	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7726	  lt_cv_apple_cc_single_mod=yes
7727	else
7728	  cat conftest.err >&5
7729	fi
7730	rm -rf libconftest.dylib*
7731	rm -f conftest.*
7732      fi
7733fi
7734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7735$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7736
7737    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7738$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7739if ${lt_cv_ld_exported_symbols_list+:} false; then :
7740  $as_echo_n "(cached) " >&6
7741else
7742  lt_cv_ld_exported_symbols_list=no
7743      save_LDFLAGS=$LDFLAGS
7744      echo "_main" > conftest.sym
7745      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7746      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747/* end confdefs.h.  */
7748
7749int
7750main ()
7751{
7752
7753  ;
7754  return 0;
7755}
7756_ACEOF
7757if ac_fn_c_try_link "$LINENO"; then :
7758  lt_cv_ld_exported_symbols_list=yes
7759else
7760  lt_cv_ld_exported_symbols_list=no
7761fi
7762rm -f core conftest.err conftest.$ac_objext \
7763    conftest$ac_exeext conftest.$ac_ext
7764	LDFLAGS=$save_LDFLAGS
7765
7766fi
7767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7768$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7769
7770    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7771$as_echo_n "checking for -force_load linker flag... " >&6; }
7772if ${lt_cv_ld_force_load+:} false; then :
7773  $as_echo_n "(cached) " >&6
7774else
7775  lt_cv_ld_force_load=no
7776      cat > conftest.c << _LT_EOF
7777int forced_loaded() { return 2;}
7778_LT_EOF
7779      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7780      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7781      echo "$AR cru libconftest.a conftest.o" >&5
7782      $AR cru libconftest.a conftest.o 2>&5
7783      echo "$RANLIB libconftest.a" >&5
7784      $RANLIB libconftest.a 2>&5
7785      cat > conftest.c << _LT_EOF
7786int main() { return 0;}
7787_LT_EOF
7788      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7789      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7790      _lt_result=$?
7791      if test -s conftest.err && $GREP force_load conftest.err; then
7792	cat conftest.err >&5
7793      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7794	lt_cv_ld_force_load=yes
7795      else
7796	cat conftest.err >&5
7797      fi
7798        rm -f conftest.err libconftest.a conftest conftest.c
7799        rm -rf conftest.dSYM
7800
7801fi
7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7803$as_echo "$lt_cv_ld_force_load" >&6; }
7804    case $host_os in
7805    rhapsody* | darwin1.[012])
7806      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7807    darwin1.*)
7808      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7809    darwin*) # darwin 5.x on
7810      # if running on 10.5 or later, the deployment target defaults
7811      # to the OS version, if on x86, and 10.4, the deployment
7812      # target defaults to 10.4. Don't you love it?
7813      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7814	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7815	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7816	10.[012][,.]*)
7817	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7818	10.*)
7819	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7820      esac
7821    ;;
7822  esac
7823    if test yes = "$lt_cv_apple_cc_single_mod"; then
7824      _lt_dar_single_mod='$single_module'
7825    fi
7826    if test yes = "$lt_cv_ld_exported_symbols_list"; then
7827      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7828    else
7829      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7830    fi
7831    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7832      _lt_dsymutil='~$DSYMUTIL $lib || :'
7833    else
7834      _lt_dsymutil=
7835    fi
7836    ;;
7837  esac
7838
7839# func_munge_path_list VARIABLE PATH
7840# -----------------------------------
7841# VARIABLE is name of variable containing _space_ separated list of
7842# directories to be munged by the contents of PATH, which is string
7843# having a format:
7844# "DIR[:DIR]:"
7845#       string "DIR[ DIR]" will be prepended to VARIABLE
7846# ":DIR[:DIR]"
7847#       string "DIR[ DIR]" will be appended to VARIABLE
7848# "DIRP[:DIRP]::[DIRA:]DIRA"
7849#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7850#       "DIRA[ DIRA]" will be appended to VARIABLE
7851# "DIR[:DIR]"
7852#       VARIABLE will be replaced by "DIR[ DIR]"
7853func_munge_path_list ()
7854{
7855    case x@S|@2 in
7856    x)
7857        ;;
7858    *:)
7859        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
7860        ;;
7861    x:*)
7862        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
7863        ;;
7864    *::*)
7865        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7866        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
7867        ;;
7868    *)
7869        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
7870        ;;
7871    esac
7872}
7873
7874ac_ext=c
7875ac_cpp='$CPP $CPPFLAGS'
7876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7878ac_compiler_gnu=$ac_cv_c_compiler_gnu
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7880$as_echo_n "checking how to run the C preprocessor... " >&6; }
7881# On Suns, sometimes $CPP names a directory.
7882if test -n "$CPP" && test -d "$CPP"; then
7883  CPP=
7884fi
7885if test -z "$CPP"; then
7886  if ${ac_cv_prog_CPP+:} false; then :
7887  $as_echo_n "(cached) " >&6
7888else
7889      # Double quotes because CPP needs to be expanded
7890    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7891    do
7892      ac_preproc_ok=false
7893for ac_c_preproc_warn_flag in '' yes
7894do
7895  # Use a header file that comes with gcc, so configuring glibc
7896  # with a fresh cross-compiler works.
7897  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7898  # <limits.h> exists even on freestanding compilers.
7899  # On the NeXT, cc -E runs the code through the compiler's parser,
7900  # not just through cpp. "Syntax error" is here to catch this case.
7901  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902/* end confdefs.h.  */
7903@%:@ifdef __STDC__
7904@%:@ include <limits.h>
7905@%:@else
7906@%:@ include <assert.h>
7907@%:@endif
7908		     Syntax error
7909_ACEOF
7910if ac_fn_c_try_cpp "$LINENO"; then :
7911
7912else
7913  # Broken: fails on valid input.
7914continue
7915fi
7916rm -f conftest.err conftest.i conftest.$ac_ext
7917
7918  # OK, works on sane cases.  Now check whether nonexistent headers
7919  # can be detected and how.
7920  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7921/* end confdefs.h.  */
7922@%:@include <ac_nonexistent.h>
7923_ACEOF
7924if ac_fn_c_try_cpp "$LINENO"; then :
7925  # Broken: success on invalid input.
7926continue
7927else
7928  # Passes both tests.
7929ac_preproc_ok=:
7930break
7931fi
7932rm -f conftest.err conftest.i conftest.$ac_ext
7933
7934done
7935# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7936rm -f conftest.i conftest.err conftest.$ac_ext
7937if $ac_preproc_ok; then :
7938  break
7939fi
7940
7941    done
7942    ac_cv_prog_CPP=$CPP
7943
7944fi
7945  CPP=$ac_cv_prog_CPP
7946else
7947  ac_cv_prog_CPP=$CPP
7948fi
7949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7950$as_echo "$CPP" >&6; }
7951ac_preproc_ok=false
7952for ac_c_preproc_warn_flag in '' yes
7953do
7954  # Use a header file that comes with gcc, so configuring glibc
7955  # with a fresh cross-compiler works.
7956  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7957  # <limits.h> exists even on freestanding compilers.
7958  # On the NeXT, cc -E runs the code through the compiler's parser,
7959  # not just through cpp. "Syntax error" is here to catch this case.
7960  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7961/* end confdefs.h.  */
7962@%:@ifdef __STDC__
7963@%:@ include <limits.h>
7964@%:@else
7965@%:@ include <assert.h>
7966@%:@endif
7967		     Syntax error
7968_ACEOF
7969if ac_fn_c_try_cpp "$LINENO"; then :
7970
7971else
7972  # Broken: fails on valid input.
7973continue
7974fi
7975rm -f conftest.err conftest.i conftest.$ac_ext
7976
7977  # OK, works on sane cases.  Now check whether nonexistent headers
7978  # can be detected and how.
7979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980/* end confdefs.h.  */
7981@%:@include <ac_nonexistent.h>
7982_ACEOF
7983if ac_fn_c_try_cpp "$LINENO"; then :
7984  # Broken: success on invalid input.
7985continue
7986else
7987  # Passes both tests.
7988ac_preproc_ok=:
7989break
7990fi
7991rm -f conftest.err conftest.i conftest.$ac_ext
7992
7993done
7994# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7995rm -f conftest.i conftest.err conftest.$ac_ext
7996if $ac_preproc_ok; then :
7997
7998else
7999  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8000$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8001as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8002See \`config.log' for more details" "$LINENO" 5; }
8003fi
8004
8005ac_ext=c
8006ac_cpp='$CPP $CPPFLAGS'
8007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8009ac_compiler_gnu=$ac_cv_c_compiler_gnu
8010
8011
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8013$as_echo_n "checking for ANSI C header files... " >&6; }
8014if ${ac_cv_header_stdc+:} false; then :
8015  $as_echo_n "(cached) " >&6
8016else
8017  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8018/* end confdefs.h.  */
8019#include <stdlib.h>
8020#include <stdarg.h>
8021#include <string.h>
8022#include <float.h>
8023
8024int
8025main ()
8026{
8027
8028  ;
8029  return 0;
8030}
8031_ACEOF
8032if ac_fn_c_try_compile "$LINENO"; then :
8033  ac_cv_header_stdc=yes
8034else
8035  ac_cv_header_stdc=no
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038
8039if test $ac_cv_header_stdc = yes; then
8040  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8041  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8042/* end confdefs.h.  */
8043#include <string.h>
8044
8045_ACEOF
8046if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8047  $EGREP "memchr" >/dev/null 2>&1; then :
8048
8049else
8050  ac_cv_header_stdc=no
8051fi
8052rm -f conftest*
8053
8054fi
8055
8056if test $ac_cv_header_stdc = yes; then
8057  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8059/* end confdefs.h.  */
8060#include <stdlib.h>
8061
8062_ACEOF
8063if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8064  $EGREP "free" >/dev/null 2>&1; then :
8065
8066else
8067  ac_cv_header_stdc=no
8068fi
8069rm -f conftest*
8070
8071fi
8072
8073if test $ac_cv_header_stdc = yes; then
8074  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8075  if test "$cross_compiling" = yes; then :
8076  :
8077else
8078  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8079/* end confdefs.h.  */
8080#include <ctype.h>
8081#include <stdlib.h>
8082#if ((' ' & 0x0FF) == 0x020)
8083# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8084# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8085#else
8086# define ISLOWER(c) \
8087		   (('a' <= (c) && (c) <= 'i') \
8088		     || ('j' <= (c) && (c) <= 'r') \
8089		     || ('s' <= (c) && (c) <= 'z'))
8090# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8091#endif
8092
8093#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094int
8095main ()
8096{
8097  int i;
8098  for (i = 0; i < 256; i++)
8099    if (XOR (islower (i), ISLOWER (i))
8100	|| toupper (i) != TOUPPER (i))
8101      return 2;
8102  return 0;
8103}
8104_ACEOF
8105if ac_fn_c_try_run "$LINENO"; then :
8106
8107else
8108  ac_cv_header_stdc=no
8109fi
8110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8111  conftest.$ac_objext conftest.beam conftest.$ac_ext
8112fi
8113
8114fi
8115fi
8116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8117$as_echo "$ac_cv_header_stdc" >&6; }
8118if test $ac_cv_header_stdc = yes; then
8119
8120$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8121
8122fi
8123
8124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8125for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8126		  inttypes.h stdint.h unistd.h
8127do :
8128  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8129ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8130"
8131if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8132  cat >>confdefs.h <<_ACEOF
8133@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8134_ACEOF
8135
8136fi
8137
8138done
8139
8140
8141for ac_header in dlfcn.h
8142do :
8143  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8144"
8145if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8146  cat >>confdefs.h <<_ACEOF
8147@%:@define HAVE_DLFCN_H 1
8148_ACEOF
8149
8150fi
8151
8152done
8153
8154
8155
8156
8157
8158# Set options
8159
8160
8161
8162        enable_dlopen=no
8163
8164
8165  enable_win32_dll=no
8166
8167
8168            @%:@ Check whether --enable-shared was given.
8169if test "${enable_shared+set}" = set; then :
8170  enableval=$enable_shared; p=${PACKAGE-default}
8171    case $enableval in
8172    yes) enable_shared=yes ;;
8173    no) enable_shared=no ;;
8174    *)
8175      enable_shared=no
8176      # Look at the argument we got.  We use all the common list separators.
8177      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8178      for pkg in $enableval; do
8179	IFS=$lt_save_ifs
8180	if test "X$pkg" = "X$p"; then
8181	  enable_shared=yes
8182	fi
8183      done
8184      IFS=$lt_save_ifs
8185      ;;
8186    esac
8187else
8188  enable_shared=yes
8189fi
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199  @%:@ Check whether --enable-static was given.
8200if test "${enable_static+set}" = set; then :
8201  enableval=$enable_static; p=${PACKAGE-default}
8202    case $enableval in
8203    yes) enable_static=yes ;;
8204    no) enable_static=no ;;
8205    *)
8206     enable_static=no
8207      # Look at the argument we got.  We use all the common list separators.
8208      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8209      for pkg in $enableval; do
8210	IFS=$lt_save_ifs
8211	if test "X$pkg" = "X$p"; then
8212	  enable_static=yes
8213	fi
8214      done
8215      IFS=$lt_save_ifs
8216      ;;
8217    esac
8218else
8219  enable_static=yes
8220fi
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230
8231@%:@ Check whether --with-pic was given.
8232if test "${with_pic+set}" = set; then :
8233  withval=$with_pic; lt_p=${PACKAGE-default}
8234    case $withval in
8235    yes|no) pic_mode=$withval ;;
8236    *)
8237      pic_mode=default
8238      # Look at the argument we got.  We use all the common list separators.
8239      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8240      for lt_pkg in $withval; do
8241	IFS=$lt_save_ifs
8242	if test "X$lt_pkg" = "X$lt_p"; then
8243	  pic_mode=yes
8244	fi
8245      done
8246      IFS=$lt_save_ifs
8247      ;;
8248    esac
8249else
8250  pic_mode=default
8251fi
8252
8253
8254
8255
8256
8257
8258
8259
8260  @%:@ Check whether --enable-fast-install was given.
8261if test "${enable_fast_install+set}" = set; then :
8262  enableval=$enable_fast_install; p=${PACKAGE-default}
8263    case $enableval in
8264    yes) enable_fast_install=yes ;;
8265    no) enable_fast_install=no ;;
8266    *)
8267      enable_fast_install=no
8268      # Look at the argument we got.  We use all the common list separators.
8269      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8270      for pkg in $enableval; do
8271	IFS=$lt_save_ifs
8272	if test "X$pkg" = "X$p"; then
8273	  enable_fast_install=yes
8274	fi
8275      done
8276      IFS=$lt_save_ifs
8277      ;;
8278    esac
8279else
8280  enable_fast_install=yes
8281fi
8282
8283
8284
8285
8286
8287
8288
8289
8290  shared_archive_member_spec=
8291case $host,$enable_shared in
8292power*-*-aix[5-9]*,yes)
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8294$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8295
8296@%:@ Check whether --with-aix-soname was given.
8297if test "${with_aix_soname+set}" = set; then :
8298  withval=$with_aix_soname; case $withval in
8299    aix|svr4|both)
8300      ;;
8301    *)
8302      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8303      ;;
8304    esac
8305    lt_cv_with_aix_soname=$with_aix_soname
8306else
8307  if ${lt_cv_with_aix_soname+:} false; then :
8308  $as_echo_n "(cached) " >&6
8309else
8310  lt_cv_with_aix_soname=aix
8311fi
8312
8313    with_aix_soname=$lt_cv_with_aix_soname
8314fi
8315
8316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8317$as_echo "$with_aix_soname" >&6; }
8318  if test aix != "$with_aix_soname"; then
8319    # For the AIX way of multilib, we name the shared archive member
8320    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8321    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8322    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8323    # the AIX toolchain works better with OBJECT_MODE set (default 32).
8324    if test 64 = "${OBJECT_MODE-32}"; then
8325      shared_archive_member_spec=shr_64
8326    else
8327      shared_archive_member_spec=shr
8328    fi
8329  fi
8330  ;;
8331*)
8332  with_aix_soname=aix
8333  ;;
8334esac
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345# This can be used to rebuild libtool when needed
8346LIBTOOL_DEPS=$ltmain
8347
8348# Always use our own libtool.
8349LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378
8379
8380test -z "$LN_S" && LN_S="ln -s"
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395if test -n "${ZSH_VERSION+set}"; then
8396   setopt NO_GLOB_SUBST
8397fi
8398
8399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8400$as_echo_n "checking for objdir... " >&6; }
8401if ${lt_cv_objdir+:} false; then :
8402  $as_echo_n "(cached) " >&6
8403else
8404  rm -f .libs 2>/dev/null
8405mkdir .libs 2>/dev/null
8406if test -d .libs; then
8407  lt_cv_objdir=.libs
8408else
8409  # MS-DOS does not allow filenames that begin with a dot.
8410  lt_cv_objdir=_libs
8411fi
8412rmdir .libs 2>/dev/null
8413fi
8414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8415$as_echo "$lt_cv_objdir" >&6; }
8416objdir=$lt_cv_objdir
8417
8418
8419
8420
8421
8422cat >>confdefs.h <<_ACEOF
8423@%:@define LT_OBJDIR "$lt_cv_objdir/"
8424_ACEOF
8425
8426
8427
8428
8429case $host_os in
8430aix3*)
8431  # AIX sometimes has problems with the GCC collect2 program.  For some
8432  # reason, if we set the COLLECT_NAMES environment variable, the problems
8433  # vanish in a puff of smoke.
8434  if test set != "${COLLECT_NAMES+set}"; then
8435    COLLECT_NAMES=
8436    export COLLECT_NAMES
8437  fi
8438  ;;
8439esac
8440
8441# Global variables:
8442ofile=libtool
8443can_build_shared=yes
8444
8445# All known linkers require a '.a' archive for static linking (except MSVC,
8446# which needs '.lib').
8447libext=a
8448
8449with_gnu_ld=$lt_cv_prog_gnu_ld
8450
8451old_CC=$CC
8452old_CFLAGS=$CFLAGS
8453
8454# Set sane defaults for various variables
8455test -z "$CC" && CC=cc
8456test -z "$LTCC" && LTCC=$CC
8457test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8458test -z "$LD" && LD=ld
8459test -z "$ac_objext" && ac_objext=o
8460
8461func_cc_basename $compiler
8462cc_basename=$func_cc_basename_result
8463
8464
8465# Only perform the check for file, if the check method requires it
8466test -z "$MAGIC_CMD" && MAGIC_CMD=file
8467case $deplibs_check_method in
8468file_magic*)
8469  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8470    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8471$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8472if ${lt_cv_path_MAGIC_CMD+:} false; then :
8473  $as_echo_n "(cached) " >&6
8474else
8475  case $MAGIC_CMD in
8476[\\/*] |  ?:[\\/]*)
8477  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8478  ;;
8479*)
8480  lt_save_MAGIC_CMD=$MAGIC_CMD
8481  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8482  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8483  for ac_dir in $ac_dummy; do
8484    IFS=$lt_save_ifs
8485    test -z "$ac_dir" && ac_dir=.
8486    if test -f "$ac_dir/${ac_tool_prefix}file"; then
8487      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8488      if test -n "$file_magic_test_file"; then
8489	case $deplibs_check_method in
8490	"file_magic "*)
8491	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8492	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8493	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8494	    $EGREP "$file_magic_regex" > /dev/null; then
8495	    :
8496	  else
8497	    cat <<_LT_EOF 1>&2
8498
8499*** Warning: the command libtool uses to detect shared libraries,
8500*** $file_magic_cmd, produces output that libtool cannot recognize.
8501*** The result is that libtool may fail to recognize shared libraries
8502*** as such.  This will affect the creation of libtool libraries that
8503*** depend on shared libraries, but programs linked with such libtool
8504*** libraries will work regardless of this problem.  Nevertheless, you
8505*** may want to report the problem to your system manager and/or to
8506*** bug-libtool@gnu.org
8507
8508_LT_EOF
8509	  fi ;;
8510	esac
8511      fi
8512      break
8513    fi
8514  done
8515  IFS=$lt_save_ifs
8516  MAGIC_CMD=$lt_save_MAGIC_CMD
8517  ;;
8518esac
8519fi
8520
8521MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8522if test -n "$MAGIC_CMD"; then
8523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8524$as_echo "$MAGIC_CMD" >&6; }
8525else
8526  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8527$as_echo "no" >&6; }
8528fi
8529
8530
8531
8532
8533
8534if test -z "$lt_cv_path_MAGIC_CMD"; then
8535  if test -n "$ac_tool_prefix"; then
8536    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8537$as_echo_n "checking for file... " >&6; }
8538if ${lt_cv_path_MAGIC_CMD+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  case $MAGIC_CMD in
8542[\\/*] |  ?:[\\/]*)
8543  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8544  ;;
8545*)
8546  lt_save_MAGIC_CMD=$MAGIC_CMD
8547  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8548  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8549  for ac_dir in $ac_dummy; do
8550    IFS=$lt_save_ifs
8551    test -z "$ac_dir" && ac_dir=.
8552    if test -f "$ac_dir/file"; then
8553      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8554      if test -n "$file_magic_test_file"; then
8555	case $deplibs_check_method in
8556	"file_magic "*)
8557	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8558	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8559	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8560	    $EGREP "$file_magic_regex" > /dev/null; then
8561	    :
8562	  else
8563	    cat <<_LT_EOF 1>&2
8564
8565*** Warning: the command libtool uses to detect shared libraries,
8566*** $file_magic_cmd, produces output that libtool cannot recognize.
8567*** The result is that libtool may fail to recognize shared libraries
8568*** as such.  This will affect the creation of libtool libraries that
8569*** depend on shared libraries, but programs linked with such libtool
8570*** libraries will work regardless of this problem.  Nevertheless, you
8571*** may want to report the problem to your system manager and/or to
8572*** bug-libtool@gnu.org
8573
8574_LT_EOF
8575	  fi ;;
8576	esac
8577      fi
8578      break
8579    fi
8580  done
8581  IFS=$lt_save_ifs
8582  MAGIC_CMD=$lt_save_MAGIC_CMD
8583  ;;
8584esac
8585fi
8586
8587MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8588if test -n "$MAGIC_CMD"; then
8589  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8590$as_echo "$MAGIC_CMD" >&6; }
8591else
8592  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593$as_echo "no" >&6; }
8594fi
8595
8596
8597  else
8598    MAGIC_CMD=:
8599  fi
8600fi
8601
8602  fi
8603  ;;
8604esac
8605
8606# Use C for the default configuration in the libtool script
8607
8608lt_save_CC=$CC
8609ac_ext=c
8610ac_cpp='$CPP $CPPFLAGS'
8611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8613ac_compiler_gnu=$ac_cv_c_compiler_gnu
8614
8615
8616# Source file extension for C test sources.
8617ac_ext=c
8618
8619# Object file extension for compiled C test sources.
8620objext=o
8621objext=$objext
8622
8623# Code to be used in simple compile tests
8624lt_simple_compile_test_code="int some_variable = 0;"
8625
8626# Code to be used in simple link tests
8627lt_simple_link_test_code='int main(){return(0);}'
8628
8629
8630
8631
8632
8633
8634
8635# If no C compiler was specified, use CC.
8636LTCC=${LTCC-"$CC"}
8637
8638# If no C compiler flags were specified, use CFLAGS.
8639LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8640
8641# Allow CC to be a program name with arguments.
8642compiler=$CC
8643
8644# Save the default compiler, since it gets overwritten when the other
8645# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8646compiler_DEFAULT=$CC
8647
8648# save warnings/boilerplate of simple test code
8649ac_outfile=conftest.$ac_objext
8650echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8651eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8652_lt_compiler_boilerplate=`cat conftest.err`
8653$RM conftest*
8654
8655ac_outfile=conftest.$ac_objext
8656echo "$lt_simple_link_test_code" >conftest.$ac_ext
8657eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8658_lt_linker_boilerplate=`cat conftest.err`
8659$RM -r conftest*
8660
8661
8662## CAVEAT EMPTOR:
8663## There is no encapsulation within the following macros, do not change
8664## the running order or otherwise move them around unless you know exactly
8665## what you are doing...
8666if test -n "$compiler"; then
8667
8668lt_prog_compiler_no_builtin_flag=
8669
8670if test yes = "$GCC"; then
8671  case $cc_basename in
8672  nvcc*)
8673    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8674  *)
8675    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8676  esac
8677
8678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8679$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8680if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  lt_cv_prog_compiler_rtti_exceptions=no
8684   ac_outfile=conftest.$ac_objext
8685   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
8687   # Insert the option either (1) after the last *FLAGS variable, or
8688   # (2) before a word containing "conftest.", or (3) at the end.
8689   # Note that $ac_compile itself does not contain backslashes and begins
8690   # with a dollar sign (not a hyphen), so the echo should work correctly.
8691   # The option is referenced via a variable to avoid confusing sed.
8692   lt_compile=`echo "$ac_compile" | $SED \
8693   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695   -e 's:$: $lt_compiler_flag:'`
8696   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8697   (eval "$lt_compile" 2>conftest.err)
8698   ac_status=$?
8699   cat conftest.err >&5
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   if (exit $ac_status) && test -s "$ac_outfile"; then
8702     # The compiler can only warn and ignore the option if not recognized
8703     # So say no if there are warnings other than the usual output.
8704     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8705     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8706     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8707       lt_cv_prog_compiler_rtti_exceptions=yes
8708     fi
8709   fi
8710   $RM conftest*
8711
8712fi
8713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8714$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8715
8716if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8717    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8718else
8719    :
8720fi
8721
8722fi
8723
8724
8725
8726
8727
8728
8729  lt_prog_compiler_wl=
8730lt_prog_compiler_pic=
8731lt_prog_compiler_static=
8732
8733
8734  if test yes = "$GCC"; then
8735    lt_prog_compiler_wl='-Wl,'
8736    lt_prog_compiler_static='-static'
8737
8738    case $host_os in
8739      aix*)
8740      # All AIX code is PIC.
8741      if test ia64 = "$host_cpu"; then
8742	# AIX 5 now supports IA64 processor
8743	lt_prog_compiler_static='-Bstatic'
8744      fi
8745      lt_prog_compiler_pic='-fPIC'
8746      ;;
8747
8748    amigaos*)
8749      case $host_cpu in
8750      powerpc)
8751            # see comment about AmigaOS4 .so support
8752            lt_prog_compiler_pic='-fPIC'
8753        ;;
8754      m68k)
8755            # FIXME: we need at least 68020 code to build shared libraries, but
8756            # adding the '-m68020' flag to GCC prevents building anything better,
8757            # like '-m68040'.
8758            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8759        ;;
8760      esac
8761      ;;
8762
8763    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8764      # PIC is the default for these OSes.
8765      ;;
8766
8767    mingw* | cygwin* | pw32* | os2* | cegcc*)
8768      # This hack is so that the source file can tell whether it is being
8769      # built for inclusion in a dll (and should export symbols for example).
8770      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8771      # (--disable-auto-import) libraries
8772      lt_prog_compiler_pic='-DDLL_EXPORT'
8773      case $host_os in
8774      os2*)
8775	lt_prog_compiler_static='$wl-static'
8776	;;
8777      esac
8778      ;;
8779
8780    darwin* | rhapsody*)
8781      # PIC is the default on this platform
8782      # Common symbols not allowed in MH_DYLIB files
8783      lt_prog_compiler_pic='-fno-common'
8784      ;;
8785
8786    haiku*)
8787      # PIC is the default for Haiku.
8788      # The "-static" flag exists, but is broken.
8789      lt_prog_compiler_static=
8790      ;;
8791
8792    hpux*)
8793      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8794      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8795      # sets the default TLS model and affects inlining.
8796      case $host_cpu in
8797      hppa*64*)
8798	# +Z the default
8799	;;
8800      *)
8801	lt_prog_compiler_pic='-fPIC'
8802	;;
8803      esac
8804      ;;
8805
8806    interix[3-9]*)
8807      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8808      # Instead, we relocate shared libraries at runtime.
8809      ;;
8810
8811    msdosdjgpp*)
8812      # Just because we use GCC doesn't mean we suddenly get shared libraries
8813      # on systems that don't support them.
8814      lt_prog_compiler_can_build_shared=no
8815      enable_shared=no
8816      ;;
8817
8818    *nto* | *qnx*)
8819      # QNX uses GNU C++, but need to define -shared option too, otherwise
8820      # it will coredump.
8821      lt_prog_compiler_pic='-fPIC -shared'
8822      ;;
8823
8824    sysv4*MP*)
8825      if test -d /usr/nec; then
8826	lt_prog_compiler_pic=-Kconform_pic
8827      fi
8828      ;;
8829
8830    *)
8831      lt_prog_compiler_pic='-fPIC'
8832      ;;
8833    esac
8834
8835    case $cc_basename in
8836    nvcc*) # Cuda Compiler Driver 2.2
8837      lt_prog_compiler_wl='-Xlinker '
8838      if test -n "$lt_prog_compiler_pic"; then
8839        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8840      fi
8841      ;;
8842    esac
8843  else
8844    # PORTME Check for flag to pass linker flags through the system compiler.
8845    case $host_os in
8846    aix*)
8847      lt_prog_compiler_wl='-Wl,'
8848      if test ia64 = "$host_cpu"; then
8849	# AIX 5 now supports IA64 processor
8850	lt_prog_compiler_static='-Bstatic'
8851      else
8852	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8853      fi
8854      ;;
8855
8856    darwin* | rhapsody*)
8857      # PIC is the default on this platform
8858      # Common symbols not allowed in MH_DYLIB files
8859      lt_prog_compiler_pic='-fno-common'
8860      case $cc_basename in
8861      nagfor*)
8862        # NAG Fortran compiler
8863        lt_prog_compiler_wl='-Wl,-Wl,,'
8864        lt_prog_compiler_pic='-PIC'
8865        lt_prog_compiler_static='-Bstatic'
8866        ;;
8867      esac
8868      ;;
8869
8870    mingw* | cygwin* | pw32* | os2* | cegcc*)
8871      # This hack is so that the source file can tell whether it is being
8872      # built for inclusion in a dll (and should export symbols for example).
8873      lt_prog_compiler_pic='-DDLL_EXPORT'
8874      case $host_os in
8875      os2*)
8876	lt_prog_compiler_static='$wl-static'
8877	;;
8878      esac
8879      ;;
8880
8881    hpux9* | hpux10* | hpux11*)
8882      lt_prog_compiler_wl='-Wl,'
8883      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8884      # not for PA HP-UX.
8885      case $host_cpu in
8886      hppa*64*|ia64*)
8887	# +Z the default
8888	;;
8889      *)
8890	lt_prog_compiler_pic='+Z'
8891	;;
8892      esac
8893      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8894      lt_prog_compiler_static='$wl-a ${wl}archive'
8895      ;;
8896
8897    irix5* | irix6* | nonstopux*)
8898      lt_prog_compiler_wl='-Wl,'
8899      # PIC (with -KPIC) is the default.
8900      lt_prog_compiler_static='-non_shared'
8901      ;;
8902
8903    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8904      case $cc_basename in
8905      # old Intel for x86_64, which still supported -KPIC.
8906      ecc*)
8907	lt_prog_compiler_wl='-Wl,'
8908	lt_prog_compiler_pic='-KPIC'
8909	lt_prog_compiler_static='-static'
8910        ;;
8911      # icc used to be incompatible with GCC.
8912      # ICC 10 doesn't accept -KPIC any more.
8913      icc* | ifort*)
8914	lt_prog_compiler_wl='-Wl,'
8915	lt_prog_compiler_pic='-fPIC'
8916	lt_prog_compiler_static='-static'
8917        ;;
8918      # Lahey Fortran 8.1.
8919      lf95*)
8920	lt_prog_compiler_wl='-Wl,'
8921	lt_prog_compiler_pic='--shared'
8922	lt_prog_compiler_static='--static'
8923	;;
8924      nagfor*)
8925	# NAG Fortran compiler
8926	lt_prog_compiler_wl='-Wl,-Wl,,'
8927	lt_prog_compiler_pic='-PIC'
8928	lt_prog_compiler_static='-Bstatic'
8929	;;
8930      tcc*)
8931	# Fabrice Bellard et al's Tiny C Compiler
8932	lt_prog_compiler_wl='-Wl,'
8933	lt_prog_compiler_pic='-fPIC'
8934	lt_prog_compiler_static='-static'
8935	;;
8936      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8937        # Portland Group compilers (*not* the Pentium gcc compiler,
8938	# which looks to be a dead project)
8939	lt_prog_compiler_wl='-Wl,'
8940	lt_prog_compiler_pic='-fpic'
8941	lt_prog_compiler_static='-Bstatic'
8942        ;;
8943      ccc*)
8944        lt_prog_compiler_wl='-Wl,'
8945        # All Alpha code is PIC.
8946        lt_prog_compiler_static='-non_shared'
8947        ;;
8948      xl* | bgxl* | bgf* | mpixl*)
8949	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8950	lt_prog_compiler_wl='-Wl,'
8951	lt_prog_compiler_pic='-qpic'
8952	lt_prog_compiler_static='-qstaticlink'
8953	;;
8954      *)
8955	case `$CC -V 2>&1 | sed 5q` in
8956	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8957	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8958	  lt_prog_compiler_pic='-KPIC'
8959	  lt_prog_compiler_static='-Bstatic'
8960	  lt_prog_compiler_wl=''
8961	  ;;
8962	*Sun\ F* | *Sun*Fortran*)
8963	  lt_prog_compiler_pic='-KPIC'
8964	  lt_prog_compiler_static='-Bstatic'
8965	  lt_prog_compiler_wl='-Qoption ld '
8966	  ;;
8967	*Sun\ C*)
8968	  # Sun C 5.9
8969	  lt_prog_compiler_pic='-KPIC'
8970	  lt_prog_compiler_static='-Bstatic'
8971	  lt_prog_compiler_wl='-Wl,'
8972	  ;;
8973        *Intel*\ [CF]*Compiler*)
8974	  lt_prog_compiler_wl='-Wl,'
8975	  lt_prog_compiler_pic='-fPIC'
8976	  lt_prog_compiler_static='-static'
8977	  ;;
8978	*Portland\ Group*)
8979	  lt_prog_compiler_wl='-Wl,'
8980	  lt_prog_compiler_pic='-fpic'
8981	  lt_prog_compiler_static='-Bstatic'
8982	  ;;
8983	esac
8984	;;
8985      esac
8986      ;;
8987
8988    newsos6)
8989      lt_prog_compiler_pic='-KPIC'
8990      lt_prog_compiler_static='-Bstatic'
8991      ;;
8992
8993    *nto* | *qnx*)
8994      # QNX uses GNU C++, but need to define -shared option too, otherwise
8995      # it will coredump.
8996      lt_prog_compiler_pic='-fPIC -shared'
8997      ;;
8998
8999    osf3* | osf4* | osf5*)
9000      lt_prog_compiler_wl='-Wl,'
9001      # All OSF/1 code is PIC.
9002      lt_prog_compiler_static='-non_shared'
9003      ;;
9004
9005    rdos*)
9006      lt_prog_compiler_static='-non_shared'
9007      ;;
9008
9009    solaris*)
9010      lt_prog_compiler_pic='-KPIC'
9011      lt_prog_compiler_static='-Bstatic'
9012      case $cc_basename in
9013      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9014	lt_prog_compiler_wl='-Qoption ld ';;
9015      *)
9016	lt_prog_compiler_wl='-Wl,';;
9017      esac
9018      ;;
9019
9020    sunos4*)
9021      lt_prog_compiler_wl='-Qoption ld '
9022      lt_prog_compiler_pic='-PIC'
9023      lt_prog_compiler_static='-Bstatic'
9024      ;;
9025
9026    sysv4 | sysv4.2uw2* | sysv4.3*)
9027      lt_prog_compiler_wl='-Wl,'
9028      lt_prog_compiler_pic='-KPIC'
9029      lt_prog_compiler_static='-Bstatic'
9030      ;;
9031
9032    sysv4*MP*)
9033      if test -d /usr/nec; then
9034	lt_prog_compiler_pic='-Kconform_pic'
9035	lt_prog_compiler_static='-Bstatic'
9036      fi
9037      ;;
9038
9039    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9040      lt_prog_compiler_wl='-Wl,'
9041      lt_prog_compiler_pic='-KPIC'
9042      lt_prog_compiler_static='-Bstatic'
9043      ;;
9044
9045    unicos*)
9046      lt_prog_compiler_wl='-Wl,'
9047      lt_prog_compiler_can_build_shared=no
9048      ;;
9049
9050    uts4*)
9051      lt_prog_compiler_pic='-pic'
9052      lt_prog_compiler_static='-Bstatic'
9053      ;;
9054
9055    *)
9056      lt_prog_compiler_can_build_shared=no
9057      ;;
9058    esac
9059  fi
9060
9061case $host_os in
9062  # For platforms that do not support PIC, -DPIC is meaningless:
9063  *djgpp*)
9064    lt_prog_compiler_pic=
9065    ;;
9066  *)
9067    lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
9068    ;;
9069esac
9070
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9072$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9073if ${lt_cv_prog_compiler_pic+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9077fi
9078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9079$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9080lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9081
9082#
9083# Check to make sure the PIC flag actually works.
9084#
9085if test -n "$lt_prog_compiler_pic"; then
9086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9087$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9088if ${lt_cv_prog_compiler_pic_works+:} false; then :
9089  $as_echo_n "(cached) " >&6
9090else
9091  lt_cv_prog_compiler_pic_works=no
9092   ac_outfile=conftest.$ac_objext
9093   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9094   lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"  ## exclude from sc_useless_quotes_in_assignment
9095   # Insert the option either (1) after the last *FLAGS variable, or
9096   # (2) before a word containing "conftest.", or (3) at the end.
9097   # Note that $ac_compile itself does not contain backslashes and begins
9098   # with a dollar sign (not a hyphen), so the echo should work correctly.
9099   # The option is referenced via a variable to avoid confusing sed.
9100   lt_compile=`echo "$ac_compile" | $SED \
9101   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103   -e 's:$: $lt_compiler_flag:'`
9104   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105   (eval "$lt_compile" 2>conftest.err)
9106   ac_status=$?
9107   cat conftest.err >&5
9108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109   if (exit $ac_status) && test -s "$ac_outfile"; then
9110     # The compiler can only warn and ignore the option if not recognized
9111     # So say no if there are warnings other than the usual output.
9112     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9113     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9114     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9115       lt_cv_prog_compiler_pic_works=yes
9116     fi
9117   fi
9118   $RM conftest*
9119
9120fi
9121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9122$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9123
9124if test yes = "$lt_cv_prog_compiler_pic_works"; then
9125    case $lt_prog_compiler_pic in
9126     "" | " "*) ;;
9127     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9128     esac
9129else
9130    lt_prog_compiler_pic=
9131     lt_prog_compiler_can_build_shared=no
9132fi
9133
9134fi
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146#
9147# Check to make sure the static flag actually works.
9148#
9149wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9151$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9152if ${lt_cv_prog_compiler_static_works+:} false; then :
9153  $as_echo_n "(cached) " >&6
9154else
9155  lt_cv_prog_compiler_static_works=no
9156   save_LDFLAGS=$LDFLAGS
9157   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9158   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9159   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9160     # The linker can only warn and ignore the option if not recognized
9161     # So say no if there are warnings
9162     if test -s conftest.err; then
9163       # Append any errors to the config.log.
9164       cat conftest.err 1>&5
9165       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9166       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9167       if diff conftest.exp conftest.er2 >/dev/null; then
9168         lt_cv_prog_compiler_static_works=yes
9169       fi
9170     else
9171       lt_cv_prog_compiler_static_works=yes
9172     fi
9173   fi
9174   $RM -r conftest*
9175   LDFLAGS=$save_LDFLAGS
9176
9177fi
9178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9179$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9180
9181if test yes = "$lt_cv_prog_compiler_static_works"; then
9182    :
9183else
9184    lt_prog_compiler_static=
9185fi
9186
9187
9188
9189
9190
9191
9192
9193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9194$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9195if ${lt_cv_prog_compiler_c_o+:} false; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  lt_cv_prog_compiler_c_o=no
9199   $RM -r conftest 2>/dev/null
9200   mkdir conftest
9201   cd conftest
9202   mkdir out
9203   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9204
9205   lt_compiler_flag="-o out/conftest2.$ac_objext"
9206   # Insert the option either (1) after the last *FLAGS variable, or
9207   # (2) before a word containing "conftest.", or (3) at the end.
9208   # Note that $ac_compile itself does not contain backslashes and begins
9209   # with a dollar sign (not a hyphen), so the echo should work correctly.
9210   lt_compile=`echo "$ac_compile" | $SED \
9211   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9212   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9213   -e 's:$: $lt_compiler_flag:'`
9214   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9215   (eval "$lt_compile" 2>out/conftest.err)
9216   ac_status=$?
9217   cat out/conftest.err >&5
9218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9219   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9220   then
9221     # The compiler can only warn and ignore the option if not recognized
9222     # So say no if there are warnings
9223     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9224     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9225     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9226       lt_cv_prog_compiler_c_o=yes
9227     fi
9228   fi
9229   chmod u+w . 2>&5
9230   $RM conftest*
9231   # SGI C++ compiler will create directory out/ii_files/ for
9232   # template instantiation
9233   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9234   $RM out/* && rmdir out
9235   cd ..
9236   $RM -r conftest
9237   $RM conftest*
9238
9239fi
9240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9241$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9242
9243
9244
9245
9246
9247
9248  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9249$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9250if ${lt_cv_prog_compiler_c_o+:} false; then :
9251  $as_echo_n "(cached) " >&6
9252else
9253  lt_cv_prog_compiler_c_o=no
9254   $RM -r conftest 2>/dev/null
9255   mkdir conftest
9256   cd conftest
9257   mkdir out
9258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9259
9260   lt_compiler_flag="-o out/conftest2.$ac_objext"
9261   # Insert the option either (1) after the last *FLAGS variable, or
9262   # (2) before a word containing "conftest.", or (3) at the end.
9263   # Note that $ac_compile itself does not contain backslashes and begins
9264   # with a dollar sign (not a hyphen), so the echo should work correctly.
9265   lt_compile=`echo "$ac_compile" | $SED \
9266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9268   -e 's:$: $lt_compiler_flag:'`
9269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9270   (eval "$lt_compile" 2>out/conftest.err)
9271   ac_status=$?
9272   cat out/conftest.err >&5
9273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9275   then
9276     # The compiler can only warn and ignore the option if not recognized
9277     # So say no if there are warnings
9278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9281       lt_cv_prog_compiler_c_o=yes
9282     fi
9283   fi
9284   chmod u+w . 2>&5
9285   $RM conftest*
9286   # SGI C++ compiler will create directory out/ii_files/ for
9287   # template instantiation
9288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9289   $RM out/* && rmdir out
9290   cd ..
9291   $RM -r conftest
9292   $RM conftest*
9293
9294fi
9295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9296$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9297
9298
9299
9300
9301hard_links=nottested
9302if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9303  # do not overwrite the value of need_locks provided by the user
9304  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9305$as_echo_n "checking if we can lock with hard links... " >&6; }
9306  hard_links=yes
9307  $RM conftest*
9308  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9309  touch conftest.a
9310  ln conftest.a conftest.b 2>&5 || hard_links=no
9311  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9313$as_echo "$hard_links" >&6; }
9314  if test no = "$hard_links"; then
9315    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9316$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9317    need_locks=warn
9318  fi
9319else
9320  need_locks=no
9321fi
9322
9323
9324
9325
9326
9327
9328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9329$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9330
9331  runpath_var=
9332  allow_undefined_flag=
9333  always_export_symbols=no
9334  archive_cmds=
9335  archive_expsym_cmds=
9336  compiler_needs_object=no
9337  enable_shared_with_static_runtimes=no
9338  export_dynamic_flag_spec=
9339  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9340  hardcode_automatic=no
9341  hardcode_direct=no
9342  hardcode_direct_absolute=no
9343  hardcode_libdir_flag_spec=
9344  hardcode_libdir_separator=
9345  hardcode_minus_L=no
9346  hardcode_shlibpath_var=unsupported
9347  inherit_rpath=no
9348  link_all_deplibs=unknown
9349  module_cmds=
9350  module_expsym_cmds=
9351  old_archive_from_new_cmds=
9352  old_archive_from_expsyms_cmds=
9353  thread_safe_flag_spec=
9354  whole_archive_flag_spec=
9355  # include_expsyms should be a list of space-separated symbols to be *always*
9356  # included in the symbol list
9357  include_expsyms=
9358  # exclude_expsyms can be an extended regexp of symbols to exclude
9359  # it will be wrapped by ' (' and ')$', so one must not match beginning or
9360  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9361  # as well as any symbol that contains 'd'.
9362  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9363  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9364  # platforms (ab)use it in PIC code, but their linkers get confused if
9365  # the symbol is explicitly referenced.  Since portable code cannot
9366  # rely on this symbol name, it's probably fine to never include it in
9367  # preloaded symbol tables.
9368  # Exclude shared library initialization/finalization symbols.
9369  extract_expsyms_cmds=
9370
9371  case $host_os in
9372  cygwin* | mingw* | pw32* | cegcc*)
9373    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9374    # When not using gcc, we currently assume that we are using
9375    # Microsoft Visual C++.
9376    if test yes != "$GCC"; then
9377      with_gnu_ld=no
9378    fi
9379    ;;
9380  interix*)
9381    # we just hope/assume this is gcc and not c89 (= MSVC++)
9382    with_gnu_ld=yes
9383    ;;
9384  openbsd* | bitrig*)
9385    with_gnu_ld=no
9386    ;;
9387  esac
9388
9389  ld_shlibs=yes
9390
9391  # On some targets, GNU ld is compatible enough with the native linker
9392  # that we're better off using the native interface for both.
9393  lt_use_gnu_ld_interface=no
9394  if test yes = "$with_gnu_ld"; then
9395    case $host_os in
9396      aix*)
9397	# The AIX port of GNU ld has always aspired to compatibility
9398	# with the native linker.  However, as the warning in the GNU ld
9399	# block says, versions before 2.19.5* couldn't really create working
9400	# shared libraries, regardless of the interface used.
9401	case `$LD -v 2>&1` in
9402	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9403	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9404	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9405	  *)
9406	    lt_use_gnu_ld_interface=yes
9407	    ;;
9408	esac
9409	;;
9410      *)
9411	lt_use_gnu_ld_interface=yes
9412	;;
9413    esac
9414  fi
9415
9416  if test yes = "$lt_use_gnu_ld_interface"; then
9417    # If archive_cmds runs LD, not CC, wlarc should be empty
9418    wlarc='$wl'
9419
9420    # Set some defaults for GNU ld with shared library support. These
9421    # are reset later if shared libraries are not supported. Putting them
9422    # here allows them to be overridden if necessary.
9423    runpath_var=LD_RUN_PATH
9424    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9425    export_dynamic_flag_spec='$wl--export-dynamic'
9426    # ancient GNU ld didn't support --whole-archive et. al.
9427    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9428      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9429    else
9430      whole_archive_flag_spec=
9431    fi
9432    supports_anon_versioning=no
9433    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9434      *GNU\ gold*) supports_anon_versioning=yes ;;
9435      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9436      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9437      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9438      *\ 2.11.*) ;; # other 2.11 versions
9439      *) supports_anon_versioning=yes ;;
9440    esac
9441
9442    # See if GNU ld supports shared libraries.
9443    case $host_os in
9444    aix[3-9]*)
9445      # On AIX/PPC, the GNU linker is very broken
9446      if test ia64 != "$host_cpu"; then
9447	ld_shlibs=no
9448	cat <<_LT_EOF 1>&2
9449
9450*** Warning: the GNU linker, at least up to release 2.19, is reported
9451*** to be unable to reliably create shared libraries on AIX.
9452*** Therefore, libtool is disabling shared libraries support.  If you
9453*** really care for shared libraries, you may want to install binutils
9454*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9455*** You will then need to restart the configuration process.
9456
9457_LT_EOF
9458      fi
9459      ;;
9460
9461    amigaos*)
9462      case $host_cpu in
9463      powerpc)
9464            # see comment about AmigaOS4 .so support
9465            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9466            archive_expsym_cmds=''
9467        ;;
9468      m68k)
9469            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)'
9470            hardcode_libdir_flag_spec='-L$libdir'
9471            hardcode_minus_L=yes
9472        ;;
9473      esac
9474      ;;
9475
9476    beos*)
9477      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9478	allow_undefined_flag=unsupported
9479	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9480	# support --undefined.  This deserves some investigation.  FIXME
9481	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9482      else
9483	ld_shlibs=no
9484      fi
9485      ;;
9486
9487    cygwin* | mingw* | pw32* | cegcc*)
9488      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9489      # as there is no search path for DLLs.
9490      hardcode_libdir_flag_spec='-L$libdir'
9491      export_dynamic_flag_spec='$wl--export-all-symbols'
9492      allow_undefined_flag=unsupported
9493      always_export_symbols=no
9494      enable_shared_with_static_runtimes=yes
9495      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9496      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9497
9498      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9499        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9500	# If the export-symbols file already is a .def file, use it as
9501	# is; otherwise, prepend EXPORTS...
9502	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
9503          cp $export_symbols $output_objdir/$soname.def;
9504        else
9505          echo EXPORTS > $output_objdir/$soname.def;
9506          cat $export_symbols >> $output_objdir/$soname.def;
9507        fi~
9508        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9509      else
9510	ld_shlibs=no
9511      fi
9512      ;;
9513
9514    haiku*)
9515      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9516      link_all_deplibs=yes
9517      ;;
9518
9519    os2*)
9520      hardcode_libdir_flag_spec='-L$libdir'
9521      hardcode_minus_L=yes
9522      allow_undefined_flag=unsupported
9523      shrext_cmds=.dll
9524      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9525	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9526	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9527	$ECHO EXPORTS >> $output_objdir/$libname.def~
9528	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9529	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9530	emximp -o $lib $output_objdir/$libname.def'
9531      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9532	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9533	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9534	$ECHO EXPORTS >> $output_objdir/$libname.def~
9535	prefix_cmds="$SED"~
9536	if test EXPORTS = "`$SED 1q $export_symbols`"; then
9537	  prefix_cmds="$prefix_cmds -e 1d";
9538	fi~
9539	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9540	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9541	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9542	emximp -o $lib $output_objdir/$libname.def'
9543      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9544      enable_shared_with_static_runtimes=yes
9545      ;;
9546
9547    interix[3-9]*)
9548      hardcode_direct=no
9549      hardcode_shlibpath_var=no
9550      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9551      export_dynamic_flag_spec='$wl-E'
9552      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9553      # Instead, shared libraries are loaded at an image base (0x10000000 by
9554      # default) and relocated if they conflict, which is a slow very memory
9555      # consuming and fragmenting process.  To avoid this, we pick a random,
9556      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9557      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9558      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9559      archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9560      ;;
9561
9562    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9563      tmp_diet=no
9564      if test linux-dietlibc = "$host_os"; then
9565	case $cc_basename in
9566	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9567	esac
9568      fi
9569      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9570	 && test no = "$tmp_diet"
9571      then
9572	tmp_addflag=' $pic_flag'
9573	tmp_sharedflag='-shared'
9574	case $cc_basename,$host_cpu in
9575        pgcc*)				# Portland Group C compiler
9576	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9577	  tmp_addflag=' $pic_flag'
9578	  ;;
9579	pgf77* | pgf90* | pgf95* | pgfortran*)
9580					# Portland Group f77 and f90 compilers
9581	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9582	  tmp_addflag=' $pic_flag -Mnomain' ;;
9583	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9584	  tmp_addflag=' -i_dynamic' ;;
9585	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9586	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9587	ifc* | ifort*)			# Intel Fortran compiler
9588	  tmp_addflag=' -nofor_main' ;;
9589	lf95*)				# Lahey Fortran 8.1
9590	  whole_archive_flag_spec=
9591	  tmp_sharedflag='--shared' ;;
9592        nagfor*)                        # NAGFOR 5.3
9593          tmp_sharedflag='-Wl,-shared' ;;
9594	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9595	  tmp_sharedflag='-qmkshrobj'
9596	  tmp_addflag= ;;
9597	nvcc*)	# Cuda Compiler Driver 2.2
9598	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9599	  compiler_needs_object=yes
9600	  ;;
9601	esac
9602	case `$CC -V 2>&1 | sed 5q` in
9603	*Sun\ C*)			# Sun C 5.9
9604	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9605	  compiler_needs_object=yes
9606	  tmp_sharedflag='-G' ;;
9607	*Sun\ F*)			# Sun Fortran 8.3
9608	  tmp_sharedflag='-G' ;;
9609	esac
9610	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9611
9612        if test yes = "$supports_anon_versioning"; then
9613          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9614            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9615            echo "local: *; };" >> $output_objdir/$libname.ver~
9616            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9617        fi
9618
9619	case $cc_basename in
9620	tcc*)
9621	  export_dynamic_flag_spec='-rdynamic'
9622	  ;;
9623	xlf* | bgf* | bgxlf* | mpixlf*)
9624	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9625	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9626	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9627	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9628	  if test yes = "$supports_anon_versioning"; then
9629	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9630              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9631              echo "local: *; };" >> $output_objdir/$libname.ver~
9632              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9633	  fi
9634	  ;;
9635	esac
9636      else
9637        ld_shlibs=no
9638      fi
9639      ;;
9640
9641    netbsd*)
9642      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9643	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9644	wlarc=
9645      else
9646	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9647	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9648      fi
9649      ;;
9650
9651    solaris*)
9652      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9653	ld_shlibs=no
9654	cat <<_LT_EOF 1>&2
9655
9656*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9657*** create shared libraries on Solaris systems.  Therefore, libtool
9658*** is disabling shared libraries support.  We urge you to upgrade GNU
9659*** binutils to release 2.9.1 or newer.  Another option is to modify
9660*** your PATH or compiler configuration so that the native linker is
9661*** used, and then restart.
9662
9663_LT_EOF
9664      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9665	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9666	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9667      else
9668	ld_shlibs=no
9669      fi
9670      ;;
9671
9672    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9673      case `$LD -v 2>&1` in
9674        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9675	ld_shlibs=no
9676	cat <<_LT_EOF 1>&2
9677
9678*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9679*** reliably create shared libraries on SCO systems.  Therefore, libtool
9680*** is disabling shared libraries support.  We urge you to upgrade GNU
9681*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9682*** your PATH or compiler configuration so that the native linker is
9683*** used, and then restart.
9684
9685_LT_EOF
9686	;;
9687	*)
9688	  # For security reasons, it is highly recommended that you always
9689	  # use absolute paths for naming shared libraries, and exclude the
9690	  # DT_RUNPATH tag from executables and libraries.  But doing so
9691	  # requires that you compile everything twice, which is a pain.
9692	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9693	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9694	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9695	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9696	  else
9697	    ld_shlibs=no
9698	  fi
9699	;;
9700      esac
9701      ;;
9702
9703    sunos4*)
9704      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9705      wlarc=
9706      hardcode_direct=yes
9707      hardcode_shlibpath_var=no
9708      ;;
9709
9710    *)
9711      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9712	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9713	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9714      else
9715	ld_shlibs=no
9716      fi
9717      ;;
9718    esac
9719
9720    if test no = "$ld_shlibs"; then
9721      runpath_var=
9722      hardcode_libdir_flag_spec=
9723      export_dynamic_flag_spec=
9724      whole_archive_flag_spec=
9725    fi
9726  else
9727    # PORTME fill in a description of your system's linker (not GNU ld)
9728    case $host_os in
9729    aix3*)
9730      allow_undefined_flag=unsupported
9731      always_export_symbols=yes
9732      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'
9733      # Note: this linker hardcodes the directories in LIBPATH if there
9734      # are no directories specified by -L.
9735      hardcode_minus_L=yes
9736      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9737	# Neither direct hardcoding nor static linking is supported with a
9738	# broken collect2.
9739	hardcode_direct=unsupported
9740      fi
9741      ;;
9742
9743    aix[4-9]*)
9744      if test ia64 = "$host_cpu"; then
9745	# On IA64, the linker does run time linking by default, so we don't
9746	# have to do anything special.
9747	aix_use_runtimelinking=no
9748	exp_sym_flag='-Bexport'
9749	no_entry_flag=
9750      else
9751	# If we're using GNU nm, then we don't want the "-C" option.
9752	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
9753	# Without the "-l" option, or with the "-B" option, AIX nm treats
9754	# weak defined symbols like other global defined symbols, whereas
9755	# GNU nm marks them as "W".
9756	# While the 'weak' keyword is ignored in the Export File, we need
9757	# it in the Import File for the 'aix-soname' feature, so we have
9758	# to replace the "-B" option with "-P" for AIX nm.
9759	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9760	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9761	else
9762	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9763	fi
9764	aix_use_runtimelinking=no
9765
9766	# Test if we are trying to use run time linking or normal
9767	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9768	# have runtime linking enabled, and use it for executables.
9769	# For shared libraries, we enable/disable runtime linking
9770	# depending on the kind of the shared library created -
9771	# when "with_aix_soname,aix_use_runtimelinking" is:
9772	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
9773	# "aix,yes"  lib.so          shared, rtl:yes, for executables
9774	#            lib.a           static archive
9775	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
9776	#            lib.a(lib.so.V) shared, rtl:no,  for executables
9777	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9778	#            lib.a(lib.so.V) shared, rtl:no
9779	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
9780	#            lib.a           static archive
9781	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9782	  for ld_flag in $LDFLAGS; do
9783	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9784	    aix_use_runtimelinking=yes
9785	    break
9786	  fi
9787	  done
9788	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9789	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
9790	    # so we don't have lib.a shared libs to link our executables.
9791	    # We have to force runtime linking in this case.
9792	    aix_use_runtimelinking=yes
9793	    LDFLAGS="$LDFLAGS -Wl,-brtl"
9794	  fi
9795	  ;;
9796	esac
9797
9798	exp_sym_flag='-bexport'
9799	no_entry_flag='-bnoentry'
9800      fi
9801
9802      # When large executables or shared objects are built, AIX ld can
9803      # have problems creating the table of contents.  If linking a library
9804      # or program results in "error TOC overflow" add -mminimal-toc to
9805      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9806      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9807
9808      archive_cmds=''
9809      hardcode_direct=yes
9810      hardcode_direct_absolute=yes
9811      hardcode_libdir_separator=':'
9812      link_all_deplibs=yes
9813      file_list_spec='$wl-f,'
9814      case $with_aix_soname,$aix_use_runtimelinking in
9815      aix,*) ;; # traditional, no import file
9816      svr4,* | *,yes) # use import file
9817	# The Import File defines what to hardcode.
9818	hardcode_direct=no
9819	hardcode_direct_absolute=no
9820	;;
9821      esac
9822
9823      if test yes = "$GCC"; then
9824	case $host_os in aix4.[012]|aix4.[012].*)
9825	# We only want to do this on AIX 4.2 and lower, the check
9826	# below for broken collect2 doesn't work under 4.3+
9827	  collect2name=`$CC -print-prog-name=collect2`
9828	  if test -f "$collect2name" &&
9829	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9830	  then
9831	  # We have reworked collect2
9832	  :
9833	  else
9834	  # We have old collect2
9835	  hardcode_direct=unsupported
9836	  # It fails to find uninstalled libraries when the uninstalled
9837	  # path is not listed in the libpath.  Setting hardcode_minus_L
9838	  # to unsupported forces relinking
9839	  hardcode_minus_L=yes
9840	  hardcode_libdir_flag_spec='-L$libdir'
9841	  hardcode_libdir_separator=
9842	  fi
9843	  ;;
9844	esac
9845	shared_flag='-shared'
9846	if test yes = "$aix_use_runtimelinking"; then
9847	  shared_flag="$shared_flag "'$wl-G'
9848	fi
9849	# Need to ensure runtime linking is disabled for the traditional
9850	# shared library, or the linker may eventually find shared libraries
9851	# /with/ Import File - we do not want to mix them.
9852	shared_flag_aix='-shared'
9853	shared_flag_svr4='-shared $wl-G'
9854      else
9855	# not using gcc
9856	if test ia64 = "$host_cpu"; then
9857	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9858	# chokes on -Wl,-G. The following line is correct:
9859	  shared_flag='-G'
9860	else
9861	  if test yes = "$aix_use_runtimelinking"; then
9862	    shared_flag='$wl-G'
9863	  else
9864	    shared_flag='$wl-bM:SRE'
9865	  fi
9866	  shared_flag_aix='$wl-bM:SRE'
9867	  shared_flag_svr4='$wl-G'
9868	fi
9869      fi
9870
9871      export_dynamic_flag_spec='$wl-bexpall'
9872      # It seems that -bexpall does not export symbols beginning with
9873      # underscore (_), so it is better to generate a list of symbols to export.
9874      always_export_symbols=yes
9875      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9876	# Warning - without using the other runtime loading flags (-brtl),
9877	# -berok will link without error, but may produce a broken library.
9878	allow_undefined_flag='-berok'
9879        # Determine the default libpath from the value encoded in an
9880        # empty executable.
9881        if test set = "${lt_cv_aix_libpath+set}"; then
9882  aix_libpath=$lt_cv_aix_libpath
9883else
9884  if ${lt_cv_aix_libpath_+:} false; then :
9885  $as_echo_n "(cached) " >&6
9886else
9887  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9888/* end confdefs.h.  */
9889
9890int
9891main ()
9892{
9893
9894  ;
9895  return 0;
9896}
9897_ACEOF
9898if ac_fn_c_try_link "$LINENO"; then :
9899
9900  lt_aix_libpath_sed='
9901      /Import File Strings/,/^$/ {
9902	  /^0/ {
9903	      s/^0  *\([^ ]*\) *$/\1/
9904	      p
9905	  }
9906      }'
9907  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9908  # Check for a 64-bit object if we didn't find anything.
9909  if test -z "$lt_cv_aix_libpath_"; then
9910    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9911  fi
9912fi
9913rm -f core conftest.err conftest.$ac_objext \
9914    conftest$ac_exeext conftest.$ac_ext
9915  if test -z "$lt_cv_aix_libpath_"; then
9916    lt_cv_aix_libpath_=/usr/lib:/lib
9917  fi
9918
9919fi
9920
9921  aix_libpath=$lt_cv_aix_libpath_
9922fi
9923
9924        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9925        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9926      else
9927	if test ia64 = "$host_cpu"; then
9928	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9929	  allow_undefined_flag="-z nodefs"
9930	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\$wl$no_entry_flag"' $compiler_flags $wl$allow_undefined_flag '"\$wl$exp_sym_flag:\$export_symbols"
9931	else
9932	 # Determine the default libpath from the value encoded in an
9933	 # empty executable.
9934	 if test set = "${lt_cv_aix_libpath+set}"; then
9935  aix_libpath=$lt_cv_aix_libpath
9936else
9937  if ${lt_cv_aix_libpath_+:} false; then :
9938  $as_echo_n "(cached) " >&6
9939else
9940  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941/* end confdefs.h.  */
9942
9943int
9944main ()
9945{
9946
9947  ;
9948  return 0;
9949}
9950_ACEOF
9951if ac_fn_c_try_link "$LINENO"; then :
9952
9953  lt_aix_libpath_sed='
9954      /Import File Strings/,/^$/ {
9955	  /^0/ {
9956	      s/^0  *\([^ ]*\) *$/\1/
9957	      p
9958	  }
9959      }'
9960  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9961  # Check for a 64-bit object if we didn't find anything.
9962  if test -z "$lt_cv_aix_libpath_"; then
9963    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9964  fi
9965fi
9966rm -f core conftest.err conftest.$ac_objext \
9967    conftest$ac_exeext conftest.$ac_ext
9968  if test -z "$lt_cv_aix_libpath_"; then
9969    lt_cv_aix_libpath_=/usr/lib:/lib
9970  fi
9971
9972fi
9973
9974  aix_libpath=$lt_cv_aix_libpath_
9975fi
9976
9977	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9978	  # Warning - without using the other run time loading flags,
9979	  # -berok will link without error, but may produce a broken library.
9980	  no_undefined_flag=' $wl-bernotok'
9981	  allow_undefined_flag=' $wl-berok'
9982	  if test yes = "$with_gnu_ld"; then
9983	    # We only use this code for GNU lds that support --whole-archive.
9984	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9985	  else
9986	    # Exported symbols can be pulled into shared objects from archives
9987	    whole_archive_flag_spec='$convenience'
9988	  fi
9989	  archive_cmds_need_lc=yes
9990	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9991	  # -brtl affects multiple linker settings, -berok does not and is overridden later
9992	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9993	  if test svr4 != "$with_aix_soname"; then
9994	    # This is similar to how AIX traditionally builds its shared libraries.
9995	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9996	  fi
9997	  if test aix != "$with_aix_soname"; then
9998	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9999	  else
10000	    # used by -dlpreopen to get the symbols
10001	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
10002	  fi
10003	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10004	fi
10005      fi
10006      ;;
10007
10008    amigaos*)
10009      case $host_cpu in
10010      powerpc)
10011            # see comment about AmigaOS4 .so support
10012            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10013            archive_expsym_cmds=''
10014        ;;
10015      m68k)
10016            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)'
10017            hardcode_libdir_flag_spec='-L$libdir'
10018            hardcode_minus_L=yes
10019        ;;
10020      esac
10021      ;;
10022
10023    bsdi[45]*)
10024      export_dynamic_flag_spec=-rdynamic
10025      ;;
10026
10027    cygwin* | mingw* | pw32* | cegcc*)
10028      # When not using gcc, we currently assume that we are using
10029      # Microsoft Visual C++.
10030      # hardcode_libdir_flag_spec is actually meaningless, as there is
10031      # no search path for DLLs.
10032      case $cc_basename in
10033      cl*)
10034	# Native MSVC
10035	hardcode_libdir_flag_spec=' '
10036	allow_undefined_flag=unsupported
10037	always_export_symbols=yes
10038	file_list_spec='@'
10039	# Tell ltmain to make .lib files, not .a files.
10040	libext=lib
10041	# Tell ltmain to make .dll files, not .so files.
10042	shrext_cmds=.dll
10043	# FIXME: Setting linknames here is a bad hack.
10044	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10045	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10046            cp "$export_symbols" "$output_objdir/$soname.def";
10047            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10048          else
10049            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10050          fi~
10051          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10052          linknames='
10053	# The linker will not automatically build a static lib if we build a DLL.
10054	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10055	enable_shared_with_static_runtimes=yes
10056	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10057	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10058	# Don't use ranlib
10059	old_postinstall_cmds='chmod 644 $oldlib'
10060	postlink_cmds='lt_outputfile="@OUTPUT@"~
10061          lt_tool_outputfile="@TOOL_OUTPUT@"~
10062          case $lt_outputfile in
10063            *.exe|*.EXE) ;;
10064            *)
10065              lt_outputfile=$lt_outputfile.exe
10066              lt_tool_outputfile=$lt_tool_outputfile.exe
10067              ;;
10068          esac~
10069          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10070            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10071            $RM "$lt_outputfile.manifest";
10072          fi'
10073	;;
10074      *)
10075	# Assume MSVC wrapper
10076	hardcode_libdir_flag_spec=' '
10077	allow_undefined_flag=unsupported
10078	# Tell ltmain to make .lib files, not .a files.
10079	libext=lib
10080	# Tell ltmain to make .dll files, not .so files.
10081	shrext_cmds=.dll
10082	# FIXME: Setting linknames here is a bad hack.
10083	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10084	# The linker will automatically build a .lib file if we build a DLL.
10085	old_archive_from_new_cmds='true'
10086	# FIXME: Should let the user specify the lib program.
10087	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10088	enable_shared_with_static_runtimes=yes
10089	;;
10090      esac
10091      ;;
10092
10093    darwin* | rhapsody*)
10094
10095
10096  archive_cmds_need_lc=no
10097  hardcode_direct=no
10098  hardcode_automatic=yes
10099  hardcode_shlibpath_var=unsupported
10100  if test yes = "$lt_cv_ld_force_load"; then
10101    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10102
10103  else
10104    whole_archive_flag_spec=''
10105  fi
10106  link_all_deplibs=yes
10107  allow_undefined_flag=$_lt_dar_allow_undefined
10108  case $cc_basename in
10109     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10110     *) _lt_dar_can_shared=$GCC ;;
10111  esac
10112  if test yes = "$_lt_dar_can_shared"; then
10113    output_verbose_link_cmd=func_echo_all
10114    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10115    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10116    archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
10117    module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
10118
10119  else
10120  ld_shlibs=no
10121  fi
10122
10123      ;;
10124
10125    dgux*)
10126      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127      hardcode_libdir_flag_spec='-L$libdir'
10128      hardcode_shlibpath_var=no
10129      ;;
10130
10131    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10132    # support.  Future versions do this automatically, but an explicit c++rt0.o
10133    # does not break anything, and helps significantly (at the cost of a little
10134    # extra space).
10135    freebsd2.2*)
10136      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10137      hardcode_libdir_flag_spec='-R$libdir'
10138      hardcode_direct=yes
10139      hardcode_shlibpath_var=no
10140      ;;
10141
10142    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10143    freebsd2.*)
10144      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10145      hardcode_direct=yes
10146      hardcode_minus_L=yes
10147      hardcode_shlibpath_var=no
10148      ;;
10149
10150    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10151    freebsd* | dragonfly*)
10152      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10153      hardcode_libdir_flag_spec='-R$libdir'
10154      hardcode_direct=yes
10155      hardcode_shlibpath_var=no
10156      ;;
10157
10158    hpux9*)
10159      if test yes = "$GCC"; then
10160	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10161      else
10162	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10163      fi
10164      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10165      hardcode_libdir_separator=:
10166      hardcode_direct=yes
10167
10168      # hardcode_minus_L: Not really in the search PATH,
10169      # but as the default location of the library.
10170      hardcode_minus_L=yes
10171      export_dynamic_flag_spec='$wl-E'
10172      ;;
10173
10174    hpux10*)
10175      if test yes,no = "$GCC,$with_gnu_ld"; then
10176	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10177      else
10178	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10179      fi
10180      if test no = "$with_gnu_ld"; then
10181	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10182	hardcode_libdir_separator=:
10183	hardcode_direct=yes
10184	hardcode_direct_absolute=yes
10185	export_dynamic_flag_spec='$wl-E'
10186	# hardcode_minus_L: Not really in the search PATH,
10187	# but as the default location of the library.
10188	hardcode_minus_L=yes
10189      fi
10190      ;;
10191
10192    hpux11*)
10193      if test yes,no = "$GCC,$with_gnu_ld"; then
10194	case $host_cpu in
10195	hppa*64*)
10196	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10197	  ;;
10198	ia64*)
10199	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10200	  ;;
10201	*)
10202	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10203	  ;;
10204	esac
10205      else
10206	case $host_cpu in
10207	hppa*64*)
10208	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10209	  ;;
10210	ia64*)
10211	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10212	  ;;
10213	*)
10214
10215	  # Older versions of the 11.00 compiler do not understand -b yet
10216	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10217	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10218$as_echo_n "checking if $CC understands -b... " >&6; }
10219if ${lt_cv_prog_compiler__b+:} false; then :
10220  $as_echo_n "(cached) " >&6
10221else
10222  lt_cv_prog_compiler__b=no
10223   save_LDFLAGS=$LDFLAGS
10224   LDFLAGS="$LDFLAGS -b"
10225   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10226   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10227     # The linker can only warn and ignore the option if not recognized
10228     # So say no if there are warnings
10229     if test -s conftest.err; then
10230       # Append any errors to the config.log.
10231       cat conftest.err 1>&5
10232       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10233       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10234       if diff conftest.exp conftest.er2 >/dev/null; then
10235         lt_cv_prog_compiler__b=yes
10236       fi
10237     else
10238       lt_cv_prog_compiler__b=yes
10239     fi
10240   fi
10241   $RM -r conftest*
10242   LDFLAGS=$save_LDFLAGS
10243
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10246$as_echo "$lt_cv_prog_compiler__b" >&6; }
10247
10248if test yes = "$lt_cv_prog_compiler__b"; then
10249    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10250else
10251    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10252fi
10253
10254	  ;;
10255	esac
10256      fi
10257      if test no = "$with_gnu_ld"; then
10258	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10259	hardcode_libdir_separator=:
10260
10261	case $host_cpu in
10262	hppa*64*|ia64*)
10263	  hardcode_direct=no
10264	  hardcode_shlibpath_var=no
10265	  ;;
10266	*)
10267	  hardcode_direct=yes
10268	  hardcode_direct_absolute=yes
10269	  export_dynamic_flag_spec='$wl-E'
10270
10271	  # hardcode_minus_L: Not really in the search PATH,
10272	  # but as the default location of the library.
10273	  hardcode_minus_L=yes
10274	  ;;
10275	esac
10276      fi
10277      ;;
10278
10279    irix5* | irix6* | nonstopux*)
10280      if test yes = "$GCC"; then
10281	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10282	# Try to use the -exported_symbol ld option, if it does not
10283	# work, assume that -exports_file does not work either and
10284	# implicitly export all symbols.
10285	# This should be the same for all languages, so no per-tag cache variable.
10286	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10287$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10288if ${lt_cv_irix_exported_symbol+:} false; then :
10289  $as_echo_n "(cached) " >&6
10290else
10291  save_LDFLAGS=$LDFLAGS
10292	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10293	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10294/* end confdefs.h.  */
10295int foo (void) { return 0; }
10296_ACEOF
10297if ac_fn_c_try_link "$LINENO"; then :
10298  lt_cv_irix_exported_symbol=yes
10299else
10300  lt_cv_irix_exported_symbol=no
10301fi
10302rm -f core conftest.err conftest.$ac_objext \
10303    conftest$ac_exeext conftest.$ac_ext
10304           LDFLAGS=$save_LDFLAGS
10305fi
10306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10307$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10308	if test yes = "$lt_cv_irix_exported_symbol"; then
10309          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10310	fi
10311      else
10312	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10313	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10314      fi
10315      archive_cmds_need_lc='no'
10316      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10317      hardcode_libdir_separator=:
10318      inherit_rpath=yes
10319      link_all_deplibs=yes
10320      ;;
10321
10322    linux*)
10323      case $cc_basename in
10324      tcc*)
10325	# Fabrice Bellard et al's Tiny C Compiler
10326	ld_shlibs=yes
10327	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10328	;;
10329      esac
10330      ;;
10331
10332    netbsd*)
10333      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10334	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10335      else
10336	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10337      fi
10338      hardcode_libdir_flag_spec='-R$libdir'
10339      hardcode_direct=yes
10340      hardcode_shlibpath_var=no
10341      ;;
10342
10343    newsos6)
10344      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10345      hardcode_direct=yes
10346      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10347      hardcode_libdir_separator=:
10348      hardcode_shlibpath_var=no
10349      ;;
10350
10351    *nto* | *qnx*)
10352      ;;
10353
10354    openbsd* | bitrig*)
10355      if test -f /usr/libexec/ld.so; then
10356	hardcode_direct=yes
10357	hardcode_shlibpath_var=no
10358	hardcode_direct_absolute=yes
10359	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10360	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10361	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10362	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10363	  export_dynamic_flag_spec='$wl-E'
10364	else
10365	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10366	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10367	fi
10368      else
10369	ld_shlibs=no
10370      fi
10371      ;;
10372
10373    os2*)
10374      hardcode_libdir_flag_spec='-L$libdir'
10375      hardcode_minus_L=yes
10376      allow_undefined_flag=unsupported
10377      shrext_cmds=.dll
10378      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10379	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10380	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10381	$ECHO EXPORTS >> $output_objdir/$libname.def~
10382	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10383	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10384	emximp -o $lib $output_objdir/$libname.def'
10385      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10386	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10387	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10388	$ECHO EXPORTS >> $output_objdir/$libname.def~
10389	prefix_cmds="$SED"~
10390	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10391	  prefix_cmds="$prefix_cmds -e 1d";
10392	fi~
10393	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10394	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10395	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10396	emximp -o $lib $output_objdir/$libname.def'
10397      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10398      enable_shared_with_static_runtimes=yes
10399      ;;
10400
10401    osf3*)
10402      if test yes = "$GCC"; then
10403	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10404	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10405      else
10406	allow_undefined_flag=' -expect_unresolved \*'
10407	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10408      fi
10409      archive_cmds_need_lc='no'
10410      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10411      hardcode_libdir_separator=:
10412      ;;
10413
10414    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10415      if test yes = "$GCC"; then
10416	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10417	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10418	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10419      else
10420	allow_undefined_flag=' -expect_unresolved \*'
10421	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10422	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10423          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10424
10425	# Both c and cxx compiler support -rpath directly
10426	hardcode_libdir_flag_spec='-rpath $libdir'
10427      fi
10428      archive_cmds_need_lc='no'
10429      hardcode_libdir_separator=:
10430      ;;
10431
10432    solaris*)
10433      no_undefined_flag=' -z defs'
10434      if test yes = "$GCC"; then
10435	wlarc='$wl'
10436	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10437	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10438          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10439      else
10440	case `$CC -V 2>&1` in
10441	*"Compilers 5.0"*)
10442	  wlarc=''
10443	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10444	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10445            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10446	  ;;
10447	*)
10448	  wlarc='$wl'
10449	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10450	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10451            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10452	  ;;
10453	esac
10454      fi
10455      hardcode_libdir_flag_spec='-R$libdir'
10456      hardcode_shlibpath_var=no
10457      case $host_os in
10458      solaris2.[0-5] | solaris2.[0-5].*) ;;
10459      *)
10460	# The compiler driver will combine and reorder linker options,
10461	# but understands '-z linker_flag'.  GCC discards it without '$wl',
10462	# but is careful enough not to reorder.
10463	# Supported since Solaris 2.6 (maybe 2.5.1?)
10464	if test yes = "$GCC"; then
10465	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10466	else
10467	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10468	fi
10469	;;
10470      esac
10471      link_all_deplibs=yes
10472      ;;
10473
10474    sunos4*)
10475      if test sequent = "$host_vendor"; then
10476	# Use $CC to link under sequent, because it throws in some extra .o
10477	# files that make .init and .fini sections work.
10478	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10479      else
10480	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10481      fi
10482      hardcode_libdir_flag_spec='-L$libdir'
10483      hardcode_direct=yes
10484      hardcode_minus_L=yes
10485      hardcode_shlibpath_var=no
10486      ;;
10487
10488    sysv4)
10489      case $host_vendor in
10490	sni)
10491	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10492	  hardcode_direct=yes # is this really true???
10493	;;
10494	siemens)
10495	  ## LD is ld it makes a PLAMLIB
10496	  ## CC just makes a GrossModule.
10497	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10498	  reload_cmds='$CC -r -o $output$reload_objs'
10499	  hardcode_direct=no
10500        ;;
10501	motorola)
10502	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10503	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10504	;;
10505      esac
10506      runpath_var='LD_RUN_PATH'
10507      hardcode_shlibpath_var=no
10508      ;;
10509
10510    sysv4.3*)
10511      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10512      hardcode_shlibpath_var=no
10513      export_dynamic_flag_spec='-Bexport'
10514      ;;
10515
10516    sysv4*MP*)
10517      if test -d /usr/nec; then
10518	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10519	hardcode_shlibpath_var=no
10520	runpath_var=LD_RUN_PATH
10521	hardcode_runpath_var=yes
10522	ld_shlibs=yes
10523      fi
10524      ;;
10525
10526    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10527      no_undefined_flag='$wl-z,text'
10528      archive_cmds_need_lc=no
10529      hardcode_shlibpath_var=no
10530      runpath_var='LD_RUN_PATH'
10531
10532      if test yes = "$GCC"; then
10533	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10534	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10535      else
10536	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10537	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10538      fi
10539      ;;
10540
10541    sysv5* | sco3.2v5* | sco5v6*)
10542      # Note: We CANNOT use -z defs as we might desire, because we do not
10543      # link with -lc, and that would cause any symbols used from libc to
10544      # always be unresolved, which means just about no library would
10545      # ever link correctly.  If we're not using GNU ld we use -z text
10546      # though, which does catch some bad symbols but isn't as heavy-handed
10547      # as -z defs.
10548      no_undefined_flag='$wl-z,text'
10549      allow_undefined_flag='$wl-z,nodefs'
10550      archive_cmds_need_lc=no
10551      hardcode_shlibpath_var=no
10552      hardcode_libdir_flag_spec='$wl-R,$libdir'
10553      hardcode_libdir_separator=':'
10554      link_all_deplibs=yes
10555      export_dynamic_flag_spec='$wl-Bexport'
10556      runpath_var='LD_RUN_PATH'
10557
10558      if test yes = "$GCC"; then
10559	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10560	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10561      else
10562	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10563	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10564      fi
10565      ;;
10566
10567    uts4*)
10568      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10569      hardcode_libdir_flag_spec='-L$libdir'
10570      hardcode_shlibpath_var=no
10571      ;;
10572
10573    *)
10574      ld_shlibs=no
10575      ;;
10576    esac
10577
10578    if test sni = "$host_vendor"; then
10579      case $host in
10580      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10581	export_dynamic_flag_spec='$wl-Blargedynsym'
10582	;;
10583      esac
10584    fi
10585  fi
10586
10587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10588$as_echo "$ld_shlibs" >&6; }
10589test no = "$ld_shlibs" && can_build_shared=no
10590
10591with_gnu_ld=$with_gnu_ld
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607#
10608# Do we need to explicitly link libc?
10609#
10610case "x$archive_cmds_need_lc" in
10611x|xyes)
10612  # Assume -lc should be added
10613  archive_cmds_need_lc=yes
10614
10615  if test yes,yes = "$GCC,$enable_shared"; then
10616    case $archive_cmds in
10617    *'~'*)
10618      # FIXME: we may have to deal with multi-command sequences.
10619      ;;
10620    '$CC '*)
10621      # Test whether the compiler implicitly links with -lc since on some
10622      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10623      # to ld, don't add -lc before -lgcc.
10624      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10625$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10626if ${lt_cv_archive_cmds_need_lc+:} false; then :
10627  $as_echo_n "(cached) " >&6
10628else
10629  $RM conftest*
10630	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10631
10632	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10633  (eval $ac_compile) 2>&5
10634  ac_status=$?
10635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10636  test $ac_status = 0; } 2>conftest.err; then
10637	  soname=conftest
10638	  lib=conftest
10639	  libobjs=conftest.$ac_objext
10640	  deplibs=
10641	  wl=$lt_prog_compiler_wl
10642	  pic_flag=$lt_prog_compiler_pic
10643	  compiler_flags=-v
10644	  linker_flags=-v
10645	  verstring=
10646	  output_objdir=.
10647	  libname=conftest
10648	  lt_save_allow_undefined_flag=$allow_undefined_flag
10649	  allow_undefined_flag=
10650	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10651  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10652  ac_status=$?
10653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654  test $ac_status = 0; }
10655	  then
10656	    lt_cv_archive_cmds_need_lc=no
10657	  else
10658	    lt_cv_archive_cmds_need_lc=yes
10659	  fi
10660	  allow_undefined_flag=$lt_save_allow_undefined_flag
10661	else
10662	  cat conftest.err 1>&5
10663	fi
10664	$RM conftest*
10665
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10668$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10669      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10670      ;;
10671    esac
10672  fi
10673  ;;
10674esac
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708
10709
10710
10711
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10828$as_echo_n "checking dynamic linker characteristics... " >&6; }
10829
10830if test yes = "$GCC"; then
10831  case $host_os in
10832    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10833    *) lt_awk_arg='/^libraries:/' ;;
10834  esac
10835  case $host_os in
10836    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10837    *) lt_sed_strip_eq='s|=/|/|g' ;;
10838  esac
10839  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10840  case $lt_search_path_spec in
10841  *\;*)
10842    # if the path contains ";" then we assume it to be the separator
10843    # otherwise default to the standard path separator (i.e. ":") - it is
10844    # assumed that no part of a normal pathname contains ";" but that should
10845    # okay in the real world where ";" in dirpaths is itself problematic.
10846    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10847    ;;
10848  *)
10849    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10850    ;;
10851  esac
10852  # Ok, now we have the path, separated by spaces, we can step through it
10853  # and add multilib dir if necessary...
10854  lt_tmp_lt_search_path_spec=
10855  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10856  # ...but if some path component already ends with the multilib dir we assume
10857  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10858  case "$lt_multi_os_dir; $lt_search_path_spec " in
10859  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10860    lt_multi_os_dir=
10861    ;;
10862  esac
10863  for lt_sys_path in $lt_search_path_spec; do
10864    if test -d "$lt_sys_path$lt_multi_os_dir"; then
10865      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10866    elif test -n "$lt_multi_os_dir"; then
10867      test -d "$lt_sys_path" && \
10868	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10869    fi
10870  done
10871  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10872BEGIN {RS = " "; FS = "/|\n";} {
10873  lt_foo = "";
10874  lt_count = 0;
10875  for (lt_i = NF; lt_i > 0; lt_i--) {
10876    if ($lt_i != "" && $lt_i != ".") {
10877      if ($lt_i == "..") {
10878        lt_count++;
10879      } else {
10880        if (lt_count == 0) {
10881          lt_foo = "/" $lt_i lt_foo;
10882        } else {
10883          lt_count--;
10884        }
10885      }
10886    }
10887  }
10888  if (lt_foo != "") { lt_freq[lt_foo]++; }
10889  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10890}'`
10891  # AWK program above erroneously prepends '/' to C:/dos/paths
10892  # for these hosts.
10893  case $host_os in
10894    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10895      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10896  esac
10897  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10898else
10899  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10900fi
10901library_names_spec=
10902libname_spec='lib$name'
10903soname_spec=
10904shrext_cmds=.so
10905postinstall_cmds=
10906postuninstall_cmds=
10907finish_cmds=
10908finish_eval=
10909shlibpath_var=
10910shlibpath_overrides_runpath=unknown
10911version_type=none
10912dynamic_linker="$host_os ld.so"
10913sys_lib_dlsearch_path_spec="/lib /usr/lib"
10914need_lib_prefix=unknown
10915hardcode_into_libs=no
10916
10917# when you set need_version to no, make sure it does not cause -set_version
10918# flags to be left without arguments
10919need_version=unknown
10920
10921
10922
10923case $host_os in
10924aix3*)
10925  version_type=linux # correct to gnu/linux during the next big refactor
10926  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10927  shlibpath_var=LIBPATH
10928
10929  # AIX 3 has no versioning support, so we append a major version to the name.
10930  soname_spec='$libname$release$shared_ext$major'
10931  ;;
10932
10933aix[4-9]*)
10934  version_type=linux # correct to gnu/linux during the next big refactor
10935  need_lib_prefix=no
10936  need_version=no
10937  hardcode_into_libs=yes
10938  if test ia64 = "$host_cpu"; then
10939    # AIX 5 supports IA64
10940    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10941    shlibpath_var=LD_LIBRARY_PATH
10942  else
10943    # With GCC up to 2.95.x, collect2 would create an import file
10944    # for dependence libraries.  The import file would start with
10945    # the line '#! .'.  This would cause the generated library to
10946    # depend on '.', always an invalid library.  This was fixed in
10947    # development snapshots of GCC prior to 3.0.
10948    case $host_os in
10949      aix4 | aix4.[01] | aix4.[01].*)
10950      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10951	   echo ' yes '
10952	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10953	:
10954      else
10955	can_build_shared=no
10956      fi
10957      ;;
10958    esac
10959    # Using Import Files as archive members, it is possible to support
10960    # filename-based versioning of shared library archives on AIX. While
10961    # this would work for both with and without runtime linking, it will
10962    # prevent static linking of such archives. So we do filename-based
10963    # shared library versioning with .so extension only, which is used
10964    # when both runtime linking and shared linking is enabled.
10965    # Unfortunately, runtime linking may impact performance, so we do
10966    # not want this to be the default eventually. Also, we use the
10967    # versioned .so libs for executables only if there is the -brtl
10968    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10969    # To allow for filename-based versioning support, we need to create
10970    # libNAME.so.V as an archive file, containing:
10971    # *) an Import File, referring to the versioned filename of the
10972    #    archive as well as the shared archive member, telling the
10973    #    bitwidth (32 or 64) of that shared object, and providing the
10974    #    list of exported symbols of that shared object, eventually
10975    #    decorated with the 'weak' keyword
10976    # *) the shared object with the F_LOADONLY flag set, to really avoid
10977    #    it being seen by the linker.
10978    # At run time we better use the real file rather than another symlink,
10979    # but for link time we create the symlink libNAME.so -> libNAME.so.V
10980
10981    case $with_aix_soname,$aix_use_runtimelinking in
10982    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10983    # soname into executable. Probably we can add versioning support to
10984    # collect2, so additional links can be useful in future.
10985    aix,yes) # traditional libtool
10986      dynamic_linker='AIX unversionable lib.so'
10987      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10988      # instead of lib<name>.a to let people know that these are not
10989      # typical AIX shared libraries.
10990      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10991      ;;
10992    aix,no) # traditional AIX only
10993      dynamic_linker='AIX lib.a(lib.so.V)'
10994      # We preserve .a as extension for shared libraries through AIX4.2
10995      # and later when we are not doing run time linking.
10996      library_names_spec='$libname$release.a $libname.a'
10997      soname_spec='$libname$release$shared_ext$major'
10998      ;;
10999    svr4,*) # full svr4 only
11000      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11001      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11002      # We do not specify a path in Import Files, so LIBPATH fires.
11003      shlibpath_overrides_runpath=yes
11004      ;;
11005    *,yes) # both, prefer svr4
11006      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11007      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11008      # unpreferred sharedlib libNAME.a needs extra handling
11009      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
11010      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
11011      # We do not specify a path in Import Files, so LIBPATH fires.
11012      shlibpath_overrides_runpath=yes
11013      ;;
11014    *,no) # both, prefer aix
11015      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11016      library_names_spec='$libname$release.a $libname.a'
11017      soname_spec='$libname$release$shared_ext$major'
11018      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11019      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
11020      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
11021      ;;
11022    esac
11023    shlibpath_var=LIBPATH
11024  fi
11025  ;;
11026
11027amigaos*)
11028  case $host_cpu in
11029  powerpc)
11030    # Since July 2007 AmigaOS4 officially supports .so libraries.
11031    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11032    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11033    ;;
11034  m68k)
11035    library_names_spec='$libname.ixlibrary $libname.a'
11036    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11037    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
11038    ;;
11039  esac
11040  ;;
11041
11042beos*)
11043  library_names_spec='$libname$shared_ext'
11044  dynamic_linker="$host_os ld.so"
11045  shlibpath_var=LIBRARY_PATH
11046  ;;
11047
11048bsdi[45]*)
11049  version_type=linux # correct to gnu/linux during the next big refactor
11050  need_version=no
11051  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11052  soname_spec='$libname$release$shared_ext$major'
11053  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11054  shlibpath_var=LD_LIBRARY_PATH
11055  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11056  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11057  # the default ld.so.conf also contains /usr/contrib/lib and
11058  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11059  # libtool to hard-code these into programs
11060  ;;
11061
11062cygwin* | mingw* | pw32* | cegcc*)
11063  version_type=windows
11064  shrext_cmds=.dll
11065  need_version=no
11066  need_lib_prefix=no
11067
11068  case $GCC,$cc_basename in
11069  yes,*)
11070    # gcc
11071    library_names_spec='$libname.dll.a'
11072    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11073    postinstall_cmds='base_file=`basename \$file`~
11074      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11075      dldir=$destdir/`dirname \$dlpath`~
11076      test -d \$dldir || mkdir -p \$dldir~
11077      $install_prog $dir/$dlname \$dldir/$dlname~
11078      chmod a+x \$dldir/$dlname~
11079      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11080        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11081      fi'
11082    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11083      dlpath=$dir/\$dldll~
11084       $RM \$dlpath'
11085    shlibpath_overrides_runpath=yes
11086
11087    case $host_os in
11088    cygwin*)
11089      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11090      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11091
11092      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11093      ;;
11094    mingw* | cegcc*)
11095      # MinGW DLLs use traditional 'lib' prefix
11096      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11097      ;;
11098    pw32*)
11099      # pw32 DLLs use 'pw' prefix rather than 'lib'
11100      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11101      ;;
11102    esac
11103    dynamic_linker='Win32 ld.exe'
11104    ;;
11105
11106  *,cl*)
11107    # Native MSVC
11108    libname_spec='$name'
11109    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11110    library_names_spec='$libname.dll.lib'
11111
11112    case $build_os in
11113    mingw*)
11114      sys_lib_search_path_spec=
11115      lt_save_ifs=$IFS
11116      IFS=';'
11117      for lt_path in $LIB
11118      do
11119        IFS=$lt_save_ifs
11120        # Let DOS variable expansion print the short 8.3 style file name.
11121        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11122        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11123      done
11124      IFS=$lt_save_ifs
11125      # Convert to MSYS style.
11126      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11127      ;;
11128    cygwin*)
11129      # Convert to unix form, then to dos form, then back to unix form
11130      # but this time dos style (no spaces!) so that the unix form looks
11131      # like /cygdrive/c/PROGRA~1:/cygdr...
11132      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11133      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11134      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11135      ;;
11136    *)
11137      sys_lib_search_path_spec=$LIB
11138      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11139        # It is most probably a Windows format PATH.
11140        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11141      else
11142        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11143      fi
11144      # FIXME: find the short name or the path components, as spaces are
11145      # common. (e.g. "Program Files" -> "PROGRA~1")
11146      ;;
11147    esac
11148
11149    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11150    postinstall_cmds='base_file=`basename \$file`~
11151      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11152      dldir=$destdir/`dirname \$dlpath`~
11153      test -d \$dldir || mkdir -p \$dldir~
11154      $install_prog $dir/$dlname \$dldir/$dlname'
11155    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11156      dlpath=$dir/\$dldll~
11157       $RM \$dlpath'
11158    shlibpath_overrides_runpath=yes
11159    dynamic_linker='Win32 link.exe'
11160    ;;
11161
11162  *)
11163    # Assume MSVC wrapper
11164    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11165    dynamic_linker='Win32 ld.exe'
11166    ;;
11167  esac
11168  # FIXME: first we should search . and the directory the executable is in
11169  shlibpath_var=PATH
11170  ;;
11171
11172darwin* | rhapsody*)
11173  dynamic_linker="$host_os dyld"
11174  version_type=darwin
11175  need_lib_prefix=no
11176  need_version=no
11177  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11178  soname_spec='$libname$release$major$shared_ext'
11179  shlibpath_overrides_runpath=yes
11180  shlibpath_var=DYLD_LIBRARY_PATH
11181  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11182
11183  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11184  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11185  ;;
11186
11187dgux*)
11188  version_type=linux # correct to gnu/linux during the next big refactor
11189  need_lib_prefix=no
11190  need_version=no
11191  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11192  soname_spec='$libname$release$shared_ext$major'
11193  shlibpath_var=LD_LIBRARY_PATH
11194  ;;
11195
11196freebsd* | dragonfly*)
11197  # DragonFly does not have aout.  When/if they implement a new
11198  # versioning mechanism, adjust this.
11199  if test -x /usr/bin/objformat; then
11200    objformat=`/usr/bin/objformat`
11201  else
11202    case $host_os in
11203    freebsd[23].*) objformat=aout ;;
11204    *) objformat=elf ;;
11205    esac
11206  fi
11207  version_type=freebsd-$objformat
11208  case $version_type in
11209    freebsd-elf*)
11210      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11211      soname_spec='$libname$release$shared_ext$major'
11212      need_version=no
11213      need_lib_prefix=no
11214      ;;
11215    freebsd-*)
11216      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11217      need_version=yes
11218      ;;
11219  esac
11220  shlibpath_var=LD_LIBRARY_PATH
11221  case $host_os in
11222  freebsd2.*)
11223    shlibpath_overrides_runpath=yes
11224    ;;
11225  freebsd3.[01]* | freebsdelf3.[01]*)
11226    shlibpath_overrides_runpath=yes
11227    hardcode_into_libs=yes
11228    ;;
11229  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11230  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11231    shlibpath_overrides_runpath=no
11232    hardcode_into_libs=yes
11233    ;;
11234  *) # from 4.6 on, and DragonFly
11235    shlibpath_overrides_runpath=yes
11236    hardcode_into_libs=yes
11237    ;;
11238  esac
11239  ;;
11240
11241haiku*)
11242  version_type=linux # correct to gnu/linux during the next big refactor
11243  need_lib_prefix=no
11244  need_version=no
11245  dynamic_linker="$host_os runtime_loader"
11246  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11247  soname_spec='$libname$release$shared_ext$major'
11248  shlibpath_var=LIBRARY_PATH
11249  shlibpath_overrides_runpath=no
11250  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11251  hardcode_into_libs=yes
11252  ;;
11253
11254hpux9* | hpux10* | hpux11*)
11255  # Give a soname corresponding to the major version so that dld.sl refuses to
11256  # link against other versions.
11257  version_type=sunos
11258  need_lib_prefix=no
11259  need_version=no
11260  case $host_cpu in
11261  ia64*)
11262    shrext_cmds='.so'
11263    hardcode_into_libs=yes
11264    dynamic_linker="$host_os dld.so"
11265    shlibpath_var=LD_LIBRARY_PATH
11266    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11267    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11268    soname_spec='$libname$release$shared_ext$major'
11269    if test 32 = "$HPUX_IA64_MODE"; then
11270      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11271      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11272    else
11273      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11274      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11275    fi
11276    ;;
11277  hppa*64*)
11278    shrext_cmds='.sl'
11279    hardcode_into_libs=yes
11280    dynamic_linker="$host_os dld.sl"
11281    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11282    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11283    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11284    soname_spec='$libname$release$shared_ext$major'
11285    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11286    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11287    ;;
11288  *)
11289    shrext_cmds='.sl'
11290    dynamic_linker="$host_os dld.sl"
11291    shlibpath_var=SHLIB_PATH
11292    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11293    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11294    soname_spec='$libname$release$shared_ext$major'
11295    ;;
11296  esac
11297  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11298  postinstall_cmds='chmod 555 $lib'
11299  # or fails outright, so override atomically:
11300  install_override_mode=555
11301  ;;
11302
11303interix[3-9]*)
11304  version_type=linux # correct to gnu/linux during the next big refactor
11305  need_lib_prefix=no
11306  need_version=no
11307  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11308  soname_spec='$libname$release$shared_ext$major'
11309  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11310  shlibpath_var=LD_LIBRARY_PATH
11311  shlibpath_overrides_runpath=no
11312  hardcode_into_libs=yes
11313  ;;
11314
11315irix5* | irix6* | nonstopux*)
11316  case $host_os in
11317    nonstopux*) version_type=nonstopux ;;
11318    *)
11319	if test yes = "$lt_cv_prog_gnu_ld"; then
11320		version_type=linux # correct to gnu/linux during the next big refactor
11321	else
11322		version_type=irix
11323	fi ;;
11324  esac
11325  need_lib_prefix=no
11326  need_version=no
11327  soname_spec='$libname$release$shared_ext$major'
11328  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11329  case $host_os in
11330  irix5* | nonstopux*)
11331    libsuff= shlibsuff=
11332    ;;
11333  *)
11334    case $LD in # libtool.m4 will add one of these switches to LD
11335    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11336      libsuff= shlibsuff= libmagic=32-bit;;
11337    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11338      libsuff=32 shlibsuff=N32 libmagic=N32;;
11339    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11340      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11341    *) libsuff= shlibsuff= libmagic=never-match;;
11342    esac
11343    ;;
11344  esac
11345  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11346  shlibpath_overrides_runpath=no
11347  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11348  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11349  hardcode_into_libs=yes
11350  ;;
11351
11352# No shared lib support for Linux oldld, aout, or coff.
11353linux*oldld* | linux*aout* | linux*coff*)
11354  dynamic_linker=no
11355  ;;
11356
11357linux*android*)
11358  version_type=none # Android doesn't support versioned libraries.
11359  need_lib_prefix=no
11360  need_version=no
11361  library_names_spec='$libname$release$shared_ext'
11362  soname_spec='$libname$release$shared_ext'
11363  finish_cmds=
11364  shlibpath_var=LD_LIBRARY_PATH
11365  shlibpath_overrides_runpath=yes
11366
11367  # This implies no fast_install, which is unacceptable.
11368  # Some rework will be needed to allow for fast_install
11369  # before this can be enabled.
11370  hardcode_into_libs=yes
11371
11372  dynamic_linker='Android linker'
11373  # Don't embed -rpath directories since the linker doesn't support them.
11374  hardcode_libdir_flag_spec='-L$libdir'
11375  ;;
11376
11377# This must be glibc/ELF.
11378linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11379  version_type=linux # correct to gnu/linux during the next big refactor
11380  need_lib_prefix=no
11381  need_version=no
11382  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11383  soname_spec='$libname$release$shared_ext$major'
11384  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11385  shlibpath_var=LD_LIBRARY_PATH
11386  shlibpath_overrides_runpath=no
11387
11388  # Some binutils ld are patched to set DT_RUNPATH
11389  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11390  $as_echo_n "(cached) " >&6
11391else
11392  lt_cv_shlibpath_overrides_runpath=no
11393    save_LDFLAGS=$LDFLAGS
11394    save_libdir=$libdir
11395    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11396	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11397    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398/* end confdefs.h.  */
11399
11400int
11401main ()
11402{
11403
11404  ;
11405  return 0;
11406}
11407_ACEOF
11408if ac_fn_c_try_link "$LINENO"; then :
11409  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11410  lt_cv_shlibpath_overrides_runpath=yes
11411fi
11412fi
11413rm -f core conftest.err conftest.$ac_objext \
11414    conftest$ac_exeext conftest.$ac_ext
11415    LDFLAGS=$save_LDFLAGS
11416    libdir=$save_libdir
11417
11418fi
11419
11420  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11421
11422  # This implies no fast_install, which is unacceptable.
11423  # Some rework will be needed to allow for fast_install
11424  # before this can be enabled.
11425  hardcode_into_libs=yes
11426
11427  # Ideally, we could use ldconfig to report *all* directores which are
11428  # searched for libraries, however this is still not possible.  Aside from not
11429  # being certain /sbin/ldconfig is available, command
11430  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11431  # even though it is searched at run-time.  Try to do the best guess by
11432  # appending ld.so.conf contents (and includes) to the search path.
11433  if test -f /etc/ld.so.conf; then
11434    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11435    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11436  fi
11437
11438  # We used to test for /lib/ld.so.1 and disable shared libraries on
11439  # powerpc, because MkLinux only supported shared libraries with the
11440  # GNU dynamic linker.  Since this was broken with cross compilers,
11441  # most powerpc-linux boxes support dynamic linking these days and
11442  # people can always --disable-shared, the test was removed, and we
11443  # assume the GNU/Linux dynamic linker is in use.
11444  dynamic_linker='GNU/Linux ld.so'
11445  ;;
11446
11447netbsd*)
11448  version_type=sunos
11449  need_lib_prefix=no
11450  need_version=no
11451  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11452    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11453    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11454    dynamic_linker='NetBSD (a.out) ld.so'
11455  else
11456    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11457    soname_spec='$libname$release$shared_ext$major'
11458    dynamic_linker='NetBSD ld.elf_so'
11459  fi
11460  shlibpath_var=LD_LIBRARY_PATH
11461  shlibpath_overrides_runpath=yes
11462  hardcode_into_libs=yes
11463  ;;
11464
11465newsos6)
11466  version_type=linux # correct to gnu/linux during the next big refactor
11467  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11468  shlibpath_var=LD_LIBRARY_PATH
11469  shlibpath_overrides_runpath=yes
11470  ;;
11471
11472*nto* | *qnx*)
11473  version_type=qnx
11474  need_lib_prefix=no
11475  need_version=no
11476  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11477  soname_spec='$libname$release$shared_ext$major'
11478  shlibpath_var=LD_LIBRARY_PATH
11479  shlibpath_overrides_runpath=no
11480  hardcode_into_libs=yes
11481  dynamic_linker='ldqnx.so'
11482  ;;
11483
11484openbsd* | bitrig*)
11485  version_type=sunos
11486  sys_lib_dlsearch_path_spec=/usr/lib
11487  need_lib_prefix=no
11488  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11489    need_version=no
11490  else
11491    need_version=yes
11492  fi
11493  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11494  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11495  shlibpath_var=LD_LIBRARY_PATH
11496  shlibpath_overrides_runpath=yes
11497  ;;
11498
11499os2*)
11500  libname_spec='$name'
11501  version_type=windows
11502  shrext_cmds=.dll
11503  need_version=no
11504  need_lib_prefix=no
11505  # OS/2 can only load a DLL with a base name of 8 characters or less.
11506  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11507    v=$($ECHO $release$versuffix | tr -d .-);
11508    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11509    $ECHO $n$v`$shared_ext'
11510  library_names_spec='${libname}_dll.$libext'
11511  dynamic_linker='OS/2 ld.exe'
11512  shlibpath_var=BEGINLIBPATH
11513  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11514  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11515  postinstall_cmds='base_file=`basename \$file`~
11516    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11517    dldir=$destdir/`dirname \$dlpath`~
11518    test -d \$dldir || mkdir -p \$dldir~
11519    $install_prog $dir/$dlname \$dldir/$dlname~
11520    chmod a+x \$dldir/$dlname~
11521    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11522      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11523    fi'
11524  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11525    dlpath=$dir/\$dldll~
11526    $RM \$dlpath'
11527  ;;
11528
11529osf3* | osf4* | osf5*)
11530  version_type=osf
11531  need_lib_prefix=no
11532  need_version=no
11533  soname_spec='$libname$release$shared_ext$major'
11534  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11535  shlibpath_var=LD_LIBRARY_PATH
11536  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11537  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11538  ;;
11539
11540rdos*)
11541  dynamic_linker=no
11542  ;;
11543
11544solaris*)
11545  version_type=linux # correct to gnu/linux during the next big refactor
11546  need_lib_prefix=no
11547  need_version=no
11548  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11549  soname_spec='$libname$release$shared_ext$major'
11550  shlibpath_var=LD_LIBRARY_PATH
11551  shlibpath_overrides_runpath=yes
11552  hardcode_into_libs=yes
11553  # ldd complains unless libraries are executable
11554  postinstall_cmds='chmod +x $lib'
11555  ;;
11556
11557sunos4*)
11558  version_type=sunos
11559  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11560  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11561  shlibpath_var=LD_LIBRARY_PATH
11562  shlibpath_overrides_runpath=yes
11563  if test yes = "$with_gnu_ld"; then
11564    need_lib_prefix=no
11565  fi
11566  need_version=yes
11567  ;;
11568
11569sysv4 | sysv4.3*)
11570  version_type=linux # correct to gnu/linux during the next big refactor
11571  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11572  soname_spec='$libname$release$shared_ext$major'
11573  shlibpath_var=LD_LIBRARY_PATH
11574  case $host_vendor in
11575    sni)
11576      shlibpath_overrides_runpath=no
11577      need_lib_prefix=no
11578      runpath_var=LD_RUN_PATH
11579      ;;
11580    siemens)
11581      need_lib_prefix=no
11582      ;;
11583    motorola)
11584      need_lib_prefix=no
11585      need_version=no
11586      shlibpath_overrides_runpath=no
11587      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11588      ;;
11589  esac
11590  ;;
11591
11592sysv4*MP*)
11593  if test -d /usr/nec; then
11594    version_type=linux # correct to gnu/linux during the next big refactor
11595    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11596    soname_spec='$libname$shared_ext.$major'
11597    shlibpath_var=LD_LIBRARY_PATH
11598  fi
11599  ;;
11600
11601sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11602  version_type=sco
11603  need_lib_prefix=no
11604  need_version=no
11605  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11606  soname_spec='$libname$release$shared_ext$major'
11607  shlibpath_var=LD_LIBRARY_PATH
11608  shlibpath_overrides_runpath=yes
11609  hardcode_into_libs=yes
11610  if test yes = "$with_gnu_ld"; then
11611    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11612  else
11613    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11614    case $host_os in
11615      sco3.2v5*)
11616        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11617	;;
11618    esac
11619  fi
11620  sys_lib_dlsearch_path_spec='/usr/lib'
11621  ;;
11622
11623tpf*)
11624  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11625  version_type=linux # correct to gnu/linux during the next big refactor
11626  need_lib_prefix=no
11627  need_version=no
11628  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11629  shlibpath_var=LD_LIBRARY_PATH
11630  shlibpath_overrides_runpath=no
11631  hardcode_into_libs=yes
11632  ;;
11633
11634uts4*)
11635  version_type=linux # correct to gnu/linux during the next big refactor
11636  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11637  soname_spec='$libname$release$shared_ext$major'
11638  shlibpath_var=LD_LIBRARY_PATH
11639  ;;
11640
11641*)
11642  dynamic_linker=no
11643  ;;
11644esac
11645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11646$as_echo "$dynamic_linker" >&6; }
11647test no = "$dynamic_linker" && can_build_shared=no
11648
11649variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11650if test yes = "$GCC"; then
11651  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11652fi
11653
11654if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11655  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11656fi
11657
11658if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11659  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11660fi
11661
11662# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11663configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11664
11665# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11666func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11667
11668# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11669configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11768$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11769hardcode_action=
11770if test -n "$hardcode_libdir_flag_spec" ||
11771   test -n "$runpath_var" ||
11772   test yes = "$hardcode_automatic"; then
11773
11774  # We can hardcode non-existent directories.
11775  if test no != "$hardcode_direct" &&
11776     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11777     # have to relink, otherwise we might link with an installed library
11778     # when we should be linking with a yet-to-be-installed one
11779     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11780     test no != "$hardcode_minus_L"; then
11781    # Linking always hardcodes the temporary library directory.
11782    hardcode_action=relink
11783  else
11784    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11785    hardcode_action=immediate
11786  fi
11787else
11788  # We cannot hardcode anything, or else we can only hardcode existing
11789  # directories.
11790  hardcode_action=unsupported
11791fi
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11793$as_echo "$hardcode_action" >&6; }
11794
11795if test relink = "$hardcode_action" ||
11796   test yes = "$inherit_rpath"; then
11797  # Fast installation is not supported
11798  enable_fast_install=no
11799elif test yes = "$shlibpath_overrides_runpath" ||
11800     test no = "$enable_shared"; then
11801  # Fast installation is not necessary
11802  enable_fast_install=needless
11803fi
11804
11805
11806
11807
11808
11809
11810  if test yes != "$enable_dlopen"; then
11811  enable_dlopen=unknown
11812  enable_dlopen_self=unknown
11813  enable_dlopen_self_static=unknown
11814else
11815  lt_cv_dlopen=no
11816  lt_cv_dlopen_libs=
11817
11818  case $host_os in
11819  beos*)
11820    lt_cv_dlopen=load_add_on
11821    lt_cv_dlopen_libs=
11822    lt_cv_dlopen_self=yes
11823    ;;
11824
11825  mingw* | pw32* | cegcc*)
11826    lt_cv_dlopen=LoadLibrary
11827    lt_cv_dlopen_libs=
11828    ;;
11829
11830  cygwin*)
11831    lt_cv_dlopen=dlopen
11832    lt_cv_dlopen_libs=
11833    ;;
11834
11835  darwin*)
11836    # if libdl is installed we need to link against it
11837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11838$as_echo_n "checking for dlopen in -ldl... " >&6; }
11839if ${ac_cv_lib_dl_dlopen+:} false; then :
11840  $as_echo_n "(cached) " >&6
11841else
11842  ac_check_lib_save_LIBS=$LIBS
11843LIBS="-ldl  $LIBS"
11844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11845/* end confdefs.h.  */
11846
11847/* Override any GCC internal prototype to avoid an error.
11848   Use char because int might match the return type of a GCC
11849   builtin and then its argument prototype would still apply.  */
11850#ifdef __cplusplus
11851extern "C"
11852#endif
11853char dlopen ();
11854int
11855main ()
11856{
11857return dlopen ();
11858  ;
11859  return 0;
11860}
11861_ACEOF
11862if ac_fn_c_try_link "$LINENO"; then :
11863  ac_cv_lib_dl_dlopen=yes
11864else
11865  ac_cv_lib_dl_dlopen=no
11866fi
11867rm -f core conftest.err conftest.$ac_objext \
11868    conftest$ac_exeext conftest.$ac_ext
11869LIBS=$ac_check_lib_save_LIBS
11870fi
11871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11872$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11873if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11874  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11875else
11876
11877    lt_cv_dlopen=dyld
11878    lt_cv_dlopen_libs=
11879    lt_cv_dlopen_self=yes
11880
11881fi
11882
11883    ;;
11884
11885  tpf*)
11886    # Don't try to run any link tests for TPF.  We know it's impossible
11887    # because TPF is a cross-compiler, and we know how we open DSOs.
11888    lt_cv_dlopen=dlopen
11889    lt_cv_dlopen_libs=
11890    lt_cv_dlopen_self=no
11891    ;;
11892
11893  *)
11894    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11895if test "x$ac_cv_func_shl_load" = xyes; then :
11896  lt_cv_dlopen=shl_load
11897else
11898  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11899$as_echo_n "checking for shl_load in -ldld... " >&6; }
11900if ${ac_cv_lib_dld_shl_load+:} false; then :
11901  $as_echo_n "(cached) " >&6
11902else
11903  ac_check_lib_save_LIBS=$LIBS
11904LIBS="-ldld  $LIBS"
11905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906/* end confdefs.h.  */
11907
11908/* Override any GCC internal prototype to avoid an error.
11909   Use char because int might match the return type of a GCC
11910   builtin and then its argument prototype would still apply.  */
11911#ifdef __cplusplus
11912extern "C"
11913#endif
11914char shl_load ();
11915int
11916main ()
11917{
11918return shl_load ();
11919  ;
11920  return 0;
11921}
11922_ACEOF
11923if ac_fn_c_try_link "$LINENO"; then :
11924  ac_cv_lib_dld_shl_load=yes
11925else
11926  ac_cv_lib_dld_shl_load=no
11927fi
11928rm -f core conftest.err conftest.$ac_objext \
11929    conftest$ac_exeext conftest.$ac_ext
11930LIBS=$ac_check_lib_save_LIBS
11931fi
11932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11933$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11934if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11935  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11936else
11937  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11938if test "x$ac_cv_func_dlopen" = xyes; then :
11939  lt_cv_dlopen=dlopen
11940else
11941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11942$as_echo_n "checking for dlopen in -ldl... " >&6; }
11943if ${ac_cv_lib_dl_dlopen+:} false; then :
11944  $as_echo_n "(cached) " >&6
11945else
11946  ac_check_lib_save_LIBS=$LIBS
11947LIBS="-ldl  $LIBS"
11948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11949/* end confdefs.h.  */
11950
11951/* Override any GCC internal prototype to avoid an error.
11952   Use char because int might match the return type of a GCC
11953   builtin and then its argument prototype would still apply.  */
11954#ifdef __cplusplus
11955extern "C"
11956#endif
11957char dlopen ();
11958int
11959main ()
11960{
11961return dlopen ();
11962  ;
11963  return 0;
11964}
11965_ACEOF
11966if ac_fn_c_try_link "$LINENO"; then :
11967  ac_cv_lib_dl_dlopen=yes
11968else
11969  ac_cv_lib_dl_dlopen=no
11970fi
11971rm -f core conftest.err conftest.$ac_objext \
11972    conftest$ac_exeext conftest.$ac_ext
11973LIBS=$ac_check_lib_save_LIBS
11974fi
11975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11976$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11977if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11978  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11979else
11980  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11981$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11982if ${ac_cv_lib_svld_dlopen+:} false; then :
11983  $as_echo_n "(cached) " >&6
11984else
11985  ac_check_lib_save_LIBS=$LIBS
11986LIBS="-lsvld  $LIBS"
11987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988/* end confdefs.h.  */
11989
11990/* Override any GCC internal prototype to avoid an error.
11991   Use char because int might match the return type of a GCC
11992   builtin and then its argument prototype would still apply.  */
11993#ifdef __cplusplus
11994extern "C"
11995#endif
11996char dlopen ();
11997int
11998main ()
11999{
12000return dlopen ();
12001  ;
12002  return 0;
12003}
12004_ACEOF
12005if ac_fn_c_try_link "$LINENO"; then :
12006  ac_cv_lib_svld_dlopen=yes
12007else
12008  ac_cv_lib_svld_dlopen=no
12009fi
12010rm -f core conftest.err conftest.$ac_objext \
12011    conftest$ac_exeext conftest.$ac_ext
12012LIBS=$ac_check_lib_save_LIBS
12013fi
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12015$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12016if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12017  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12018else
12019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12020$as_echo_n "checking for dld_link in -ldld... " >&6; }
12021if ${ac_cv_lib_dld_dld_link+:} false; then :
12022  $as_echo_n "(cached) " >&6
12023else
12024  ac_check_lib_save_LIBS=$LIBS
12025LIBS="-ldld  $LIBS"
12026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h.  */
12028
12029/* Override any GCC internal prototype to avoid an error.
12030   Use char because int might match the return type of a GCC
12031   builtin and then its argument prototype would still apply.  */
12032#ifdef __cplusplus
12033extern "C"
12034#endif
12035char dld_link ();
12036int
12037main ()
12038{
12039return dld_link ();
12040  ;
12041  return 0;
12042}
12043_ACEOF
12044if ac_fn_c_try_link "$LINENO"; then :
12045  ac_cv_lib_dld_dld_link=yes
12046else
12047  ac_cv_lib_dld_dld_link=no
12048fi
12049rm -f core conftest.err conftest.$ac_objext \
12050    conftest$ac_exeext conftest.$ac_ext
12051LIBS=$ac_check_lib_save_LIBS
12052fi
12053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12054$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12055if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12056  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12057fi
12058
12059
12060fi
12061
12062
12063fi
12064
12065
12066fi
12067
12068
12069fi
12070
12071
12072fi
12073
12074    ;;
12075  esac
12076
12077  if test no = "$lt_cv_dlopen"; then
12078    enable_dlopen=no
12079  else
12080    enable_dlopen=yes
12081  fi
12082
12083  case $lt_cv_dlopen in
12084  dlopen)
12085    save_CPPFLAGS=$CPPFLAGS
12086    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12087
12088    save_LDFLAGS=$LDFLAGS
12089    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12090
12091    save_LIBS=$LIBS
12092    LIBS="$lt_cv_dlopen_libs $LIBS"
12093
12094    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12095$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12096if ${lt_cv_dlopen_self+:} false; then :
12097  $as_echo_n "(cached) " >&6
12098else
12099  	  if test yes = "$cross_compiling"; then :
12100  lt_cv_dlopen_self=cross
12101else
12102  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12103  lt_status=$lt_dlunknown
12104  cat > conftest.$ac_ext <<_LT_EOF
12105#line $LINENO "configure"
12106#include "confdefs.h"
12107
12108#if HAVE_DLFCN_H
12109#include <dlfcn.h>
12110#endif
12111
12112#include <stdio.h>
12113
12114#ifdef RTLD_GLOBAL
12115#  define LT_DLGLOBAL		RTLD_GLOBAL
12116#else
12117#  ifdef DL_GLOBAL
12118#    define LT_DLGLOBAL		DL_GLOBAL
12119#  else
12120#    define LT_DLGLOBAL		0
12121#  endif
12122#endif
12123
12124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12125   find out it does not work in some platform. */
12126#ifndef LT_DLLAZY_OR_NOW
12127#  ifdef RTLD_LAZY
12128#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12129#  else
12130#    ifdef DL_LAZY
12131#      define LT_DLLAZY_OR_NOW		DL_LAZY
12132#    else
12133#      ifdef RTLD_NOW
12134#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12135#      else
12136#        ifdef DL_NOW
12137#          define LT_DLLAZY_OR_NOW	DL_NOW
12138#        else
12139#          define LT_DLLAZY_OR_NOW	0
12140#        endif
12141#      endif
12142#    endif
12143#  endif
12144#endif
12145
12146/* When -fvisibility=hidden is used, assume the code has been annotated
12147   correspondingly for the symbols needed.  */
12148#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12149int fnord () __attribute__((visibility("default")));
12150#endif
12151
12152int fnord () { return 42; }
12153int main ()
12154{
12155  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12156  int status = $lt_dlunknown;
12157
12158  if (self)
12159    {
12160      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12161      else
12162        {
12163	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12164          else puts (dlerror ());
12165	}
12166      /* dlclose (self); */
12167    }
12168  else
12169    puts (dlerror ());
12170
12171  return status;
12172}
12173_LT_EOF
12174  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12175  (eval $ac_link) 2>&5
12176  ac_status=$?
12177  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12178  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12179    (./conftest; exit; ) >&5 2>/dev/null
12180    lt_status=$?
12181    case x$lt_status in
12182      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12183      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12184      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12185    esac
12186  else :
12187    # compilation failed
12188    lt_cv_dlopen_self=no
12189  fi
12190fi
12191rm -fr conftest*
12192
12193
12194fi
12195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12196$as_echo "$lt_cv_dlopen_self" >&6; }
12197
12198    if test yes = "$lt_cv_dlopen_self"; then
12199      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12200      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12201$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12202if ${lt_cv_dlopen_self_static+:} false; then :
12203  $as_echo_n "(cached) " >&6
12204else
12205  	  if test yes = "$cross_compiling"; then :
12206  lt_cv_dlopen_self_static=cross
12207else
12208  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12209  lt_status=$lt_dlunknown
12210  cat > conftest.$ac_ext <<_LT_EOF
12211#line $LINENO "configure"
12212#include "confdefs.h"
12213
12214#if HAVE_DLFCN_H
12215#include <dlfcn.h>
12216#endif
12217
12218#include <stdio.h>
12219
12220#ifdef RTLD_GLOBAL
12221#  define LT_DLGLOBAL		RTLD_GLOBAL
12222#else
12223#  ifdef DL_GLOBAL
12224#    define LT_DLGLOBAL		DL_GLOBAL
12225#  else
12226#    define LT_DLGLOBAL		0
12227#  endif
12228#endif
12229
12230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12231   find out it does not work in some platform. */
12232#ifndef LT_DLLAZY_OR_NOW
12233#  ifdef RTLD_LAZY
12234#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12235#  else
12236#    ifdef DL_LAZY
12237#      define LT_DLLAZY_OR_NOW		DL_LAZY
12238#    else
12239#      ifdef RTLD_NOW
12240#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12241#      else
12242#        ifdef DL_NOW
12243#          define LT_DLLAZY_OR_NOW	DL_NOW
12244#        else
12245#          define LT_DLLAZY_OR_NOW	0
12246#        endif
12247#      endif
12248#    endif
12249#  endif
12250#endif
12251
12252/* When -fvisibility=hidden is used, assume the code has been annotated
12253   correspondingly for the symbols needed.  */
12254#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12255int fnord () __attribute__((visibility("default")));
12256#endif
12257
12258int fnord () { return 42; }
12259int main ()
12260{
12261  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12262  int status = $lt_dlunknown;
12263
12264  if (self)
12265    {
12266      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12267      else
12268        {
12269	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12270          else puts (dlerror ());
12271	}
12272      /* dlclose (self); */
12273    }
12274  else
12275    puts (dlerror ());
12276
12277  return status;
12278}
12279_LT_EOF
12280  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12281  (eval $ac_link) 2>&5
12282  ac_status=$?
12283  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12284  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12285    (./conftest; exit; ) >&5 2>/dev/null
12286    lt_status=$?
12287    case x$lt_status in
12288      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12289      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12290      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12291    esac
12292  else :
12293    # compilation failed
12294    lt_cv_dlopen_self_static=no
12295  fi
12296fi
12297rm -fr conftest*
12298
12299
12300fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12302$as_echo "$lt_cv_dlopen_self_static" >&6; }
12303    fi
12304
12305    CPPFLAGS=$save_CPPFLAGS
12306    LDFLAGS=$save_LDFLAGS
12307    LIBS=$save_LIBS
12308    ;;
12309  esac
12310
12311  case $lt_cv_dlopen_self in
12312  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12313  *) enable_dlopen_self=unknown ;;
12314  esac
12315
12316  case $lt_cv_dlopen_self_static in
12317  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12318  *) enable_dlopen_self_static=unknown ;;
12319  esac
12320fi
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338striplib=
12339old_striplib=
12340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12341$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12342if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12343  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12344  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12346$as_echo "yes" >&6; }
12347else
12348# FIXME - insert some real tests, host_os isn't really good enough
12349  case $host_os in
12350  darwin*)
12351    if test -n "$STRIP"; then
12352      striplib="$STRIP -x"
12353      old_striplib="$STRIP -S"
12354      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355$as_echo "yes" >&6; }
12356    else
12357      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12358$as_echo "no" >&6; }
12359    fi
12360    ;;
12361  *)
12362    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363$as_echo "no" >&6; }
12364    ;;
12365  esac
12366fi
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379  # Report what library types will actually be built
12380  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12381$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12382  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12383$as_echo "$can_build_shared" >&6; }
12384
12385  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12386$as_echo_n "checking whether to build shared libraries... " >&6; }
12387  test no = "$can_build_shared" && enable_shared=no
12388
12389  # On AIX, shared libraries and static libraries use the same namespace, and
12390  # are all built from PIC.
12391  case $host_os in
12392  aix3*)
12393    test yes = "$enable_shared" && enable_static=no
12394    if test -n "$RANLIB"; then
12395      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12396      postinstall_cmds='$RANLIB $lib'
12397    fi
12398    ;;
12399
12400  aix[4-9]*)
12401    if test ia64 != "$host_cpu"; then
12402      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12403      yes,aix,yes) ;;			# shared object as lib.so file only
12404      yes,svr4,*) ;;			# shared object as lib.so archive member only
12405      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
12406      esac
12407    fi
12408    ;;
12409  esac
12410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12411$as_echo "$enable_shared" >&6; }
12412
12413  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12414$as_echo_n "checking whether to build static libraries... " >&6; }
12415  # Make sure either enable_shared or enable_static is yes.
12416  test yes = "$enable_shared" || enable_static=yes
12417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12418$as_echo "$enable_static" >&6; }
12419
12420
12421
12422
12423fi
12424ac_ext=c
12425ac_cpp='$CPP $CPPFLAGS'
12426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12428ac_compiler_gnu=$ac_cv_c_compiler_gnu
12429
12430CC=$lt_save_CC
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446        ac_config_commands="$ac_config_commands libtool"
12447
12448
12449
12450
12451# Only expand once:
12452
12453
12454ac_ext=c
12455ac_cpp='$CPP $CPPFLAGS'
12456ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12457ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12458ac_compiler_gnu=$ac_cv_c_compiler_gnu
12459if test -n "$ac_tool_prefix"; then
12460  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12461set dummy ${ac_tool_prefix}gcc; ac_word=$2
12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12463$as_echo_n "checking for $ac_word... " >&6; }
12464if ${ac_cv_prog_CC+:} false; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  if test -n "$CC"; then
12468  ac_cv_prog_CC="$CC" # Let the user override the test.
12469else
12470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12471for as_dir in $PATH
12472do
12473  IFS=$as_save_IFS
12474  test -z "$as_dir" && as_dir=.
12475    for ac_exec_ext in '' $ac_executable_extensions; do
12476  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12477    ac_cv_prog_CC="${ac_tool_prefix}gcc"
12478    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12479    break 2
12480  fi
12481done
12482  done
12483IFS=$as_save_IFS
12484
12485fi
12486fi
12487CC=$ac_cv_prog_CC
12488if test -n "$CC"; then
12489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12490$as_echo "$CC" >&6; }
12491else
12492  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493$as_echo "no" >&6; }
12494fi
12495
12496
12497fi
12498if test -z "$ac_cv_prog_CC"; then
12499  ac_ct_CC=$CC
12500  # Extract the first word of "gcc", so it can be a program name with args.
12501set dummy gcc; ac_word=$2
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503$as_echo_n "checking for $ac_word... " >&6; }
12504if ${ac_cv_prog_ac_ct_CC+:} false; then :
12505  $as_echo_n "(cached) " >&6
12506else
12507  if test -n "$ac_ct_CC"; then
12508  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12509else
12510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12511for as_dir in $PATH
12512do
12513  IFS=$as_save_IFS
12514  test -z "$as_dir" && as_dir=.
12515    for ac_exec_ext in '' $ac_executable_extensions; do
12516  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12517    ac_cv_prog_ac_ct_CC="gcc"
12518    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12519    break 2
12520  fi
12521done
12522  done
12523IFS=$as_save_IFS
12524
12525fi
12526fi
12527ac_ct_CC=$ac_cv_prog_ac_ct_CC
12528if test -n "$ac_ct_CC"; then
12529  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12530$as_echo "$ac_ct_CC" >&6; }
12531else
12532  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12533$as_echo "no" >&6; }
12534fi
12535
12536  if test "x$ac_ct_CC" = x; then
12537    CC=""
12538  else
12539    case $cross_compiling:$ac_tool_warned in
12540yes:)
12541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12543ac_tool_warned=yes ;;
12544esac
12545    CC=$ac_ct_CC
12546  fi
12547else
12548  CC="$ac_cv_prog_CC"
12549fi
12550
12551if test -z "$CC"; then
12552          if test -n "$ac_tool_prefix"; then
12553    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12554set dummy ${ac_tool_prefix}cc; ac_word=$2
12555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556$as_echo_n "checking for $ac_word... " >&6; }
12557if ${ac_cv_prog_CC+:} false; then :
12558  $as_echo_n "(cached) " >&6
12559else
12560  if test -n "$CC"; then
12561  ac_cv_prog_CC="$CC" # Let the user override the test.
12562else
12563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564for as_dir in $PATH
12565do
12566  IFS=$as_save_IFS
12567  test -z "$as_dir" && as_dir=.
12568    for ac_exec_ext in '' $ac_executable_extensions; do
12569  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12570    ac_cv_prog_CC="${ac_tool_prefix}cc"
12571    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572    break 2
12573  fi
12574done
12575  done
12576IFS=$as_save_IFS
12577
12578fi
12579fi
12580CC=$ac_cv_prog_CC
12581if test -n "$CC"; then
12582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12583$as_echo "$CC" >&6; }
12584else
12585  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586$as_echo "no" >&6; }
12587fi
12588
12589
12590  fi
12591fi
12592if test -z "$CC"; then
12593  # Extract the first word of "cc", so it can be a program name with args.
12594set dummy cc; ac_word=$2
12595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12596$as_echo_n "checking for $ac_word... " >&6; }
12597if ${ac_cv_prog_CC+:} false; then :
12598  $as_echo_n "(cached) " >&6
12599else
12600  if test -n "$CC"; then
12601  ac_cv_prog_CC="$CC" # Let the user override the test.
12602else
12603  ac_prog_rejected=no
12604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605for as_dir in $PATH
12606do
12607  IFS=$as_save_IFS
12608  test -z "$as_dir" && as_dir=.
12609    for ac_exec_ext in '' $ac_executable_extensions; do
12610  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12611    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12612       ac_prog_rejected=yes
12613       continue
12614     fi
12615    ac_cv_prog_CC="cc"
12616    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12617    break 2
12618  fi
12619done
12620  done
12621IFS=$as_save_IFS
12622
12623if test $ac_prog_rejected = yes; then
12624  # We found a bogon in the path, so make sure we never use it.
12625  set dummy $ac_cv_prog_CC
12626  shift
12627  if test $@%:@ != 0; then
12628    # We chose a different compiler from the bogus one.
12629    # However, it has the same basename, so the bogon will be chosen
12630    # first if we set CC to just the basename; use the full file name.
12631    shift
12632    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12633  fi
12634fi
12635fi
12636fi
12637CC=$ac_cv_prog_CC
12638if test -n "$CC"; then
12639  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12640$as_echo "$CC" >&6; }
12641else
12642  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12643$as_echo "no" >&6; }
12644fi
12645
12646
12647fi
12648if test -z "$CC"; then
12649  if test -n "$ac_tool_prefix"; then
12650  for ac_prog in cl.exe
12651  do
12652    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12653set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12655$as_echo_n "checking for $ac_word... " >&6; }
12656if ${ac_cv_prog_CC+:} false; then :
12657  $as_echo_n "(cached) " >&6
12658else
12659  if test -n "$CC"; then
12660  ac_cv_prog_CC="$CC" # Let the user override the test.
12661else
12662as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663for as_dir in $PATH
12664do
12665  IFS=$as_save_IFS
12666  test -z "$as_dir" && as_dir=.
12667    for ac_exec_ext in '' $ac_executable_extensions; do
12668  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12670    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12671    break 2
12672  fi
12673done
12674  done
12675IFS=$as_save_IFS
12676
12677fi
12678fi
12679CC=$ac_cv_prog_CC
12680if test -n "$CC"; then
12681  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12682$as_echo "$CC" >&6; }
12683else
12684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12685$as_echo "no" >&6; }
12686fi
12687
12688
12689    test -n "$CC" && break
12690  done
12691fi
12692if test -z "$CC"; then
12693  ac_ct_CC=$CC
12694  for ac_prog in cl.exe
12695do
12696  # Extract the first word of "$ac_prog", so it can be a program name with args.
12697set dummy $ac_prog; ac_word=$2
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12699$as_echo_n "checking for $ac_word... " >&6; }
12700if ${ac_cv_prog_ac_ct_CC+:} false; then :
12701  $as_echo_n "(cached) " >&6
12702else
12703  if test -n "$ac_ct_CC"; then
12704  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12705else
12706as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12707for as_dir in $PATH
12708do
12709  IFS=$as_save_IFS
12710  test -z "$as_dir" && as_dir=.
12711    for ac_exec_ext in '' $ac_executable_extensions; do
12712  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12713    ac_cv_prog_ac_ct_CC="$ac_prog"
12714    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715    break 2
12716  fi
12717done
12718  done
12719IFS=$as_save_IFS
12720
12721fi
12722fi
12723ac_ct_CC=$ac_cv_prog_ac_ct_CC
12724if test -n "$ac_ct_CC"; then
12725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12726$as_echo "$ac_ct_CC" >&6; }
12727else
12728  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12729$as_echo "no" >&6; }
12730fi
12731
12732
12733  test -n "$ac_ct_CC" && break
12734done
12735
12736  if test "x$ac_ct_CC" = x; then
12737    CC=""
12738  else
12739    case $cross_compiling:$ac_tool_warned in
12740yes:)
12741{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12742$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12743ac_tool_warned=yes ;;
12744esac
12745    CC=$ac_ct_CC
12746  fi
12747fi
12748
12749fi
12750
12751
12752test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12754as_fn_error $? "no acceptable C compiler found in \$PATH
12755See \`config.log' for more details" "$LINENO" 5; }
12756
12757# Provide some information about the compiler.
12758$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12759set X $ac_compile
12760ac_compiler=$2
12761for ac_option in --version -v -V -qversion; do
12762  { { ac_try="$ac_compiler $ac_option >&5"
12763case "(($ac_try" in
12764  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765  *) ac_try_echo=$ac_try;;
12766esac
12767eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12768$as_echo "$ac_try_echo"; } >&5
12769  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12770  ac_status=$?
12771  if test -s conftest.err; then
12772    sed '10a\
12773... rest of stderr output deleted ...
12774         10q' conftest.err >conftest.er1
12775    cat conftest.er1 >&5
12776  fi
12777  rm -f conftest.er1 conftest.err
12778  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12779  test $ac_status = 0; }
12780done
12781
12782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12783$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12784if ${ac_cv_c_compiler_gnu+:} false; then :
12785  $as_echo_n "(cached) " >&6
12786else
12787  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788/* end confdefs.h.  */
12789
12790int
12791main ()
12792{
12793#ifndef __GNUC__
12794       choke me
12795#endif
12796
12797  ;
12798  return 0;
12799}
12800_ACEOF
12801if ac_fn_c_try_compile "$LINENO"; then :
12802  ac_compiler_gnu=yes
12803else
12804  ac_compiler_gnu=no
12805fi
12806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12807ac_cv_c_compiler_gnu=$ac_compiler_gnu
12808
12809fi
12810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12811$as_echo "$ac_cv_c_compiler_gnu" >&6; }
12812if test $ac_compiler_gnu = yes; then
12813  GCC=yes
12814else
12815  GCC=
12816fi
12817ac_test_CFLAGS=${CFLAGS+set}
12818ac_save_CFLAGS=$CFLAGS
12819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12820$as_echo_n "checking whether $CC accepts -g... " >&6; }
12821if ${ac_cv_prog_cc_g+:} false; then :
12822  $as_echo_n "(cached) " >&6
12823else
12824  ac_save_c_werror_flag=$ac_c_werror_flag
12825   ac_c_werror_flag=yes
12826   ac_cv_prog_cc_g=no
12827   CFLAGS="-g"
12828   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12829/* end confdefs.h.  */
12830
12831int
12832main ()
12833{
12834
12835  ;
12836  return 0;
12837}
12838_ACEOF
12839if ac_fn_c_try_compile "$LINENO"; then :
12840  ac_cv_prog_cc_g=yes
12841else
12842  CFLAGS=""
12843      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844/* end confdefs.h.  */
12845
12846int
12847main ()
12848{
12849
12850  ;
12851  return 0;
12852}
12853_ACEOF
12854if ac_fn_c_try_compile "$LINENO"; then :
12855
12856else
12857  ac_c_werror_flag=$ac_save_c_werror_flag
12858	 CFLAGS="-g"
12859	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12860/* end confdefs.h.  */
12861
12862int
12863main ()
12864{
12865
12866  ;
12867  return 0;
12868}
12869_ACEOF
12870if ac_fn_c_try_compile "$LINENO"; then :
12871  ac_cv_prog_cc_g=yes
12872fi
12873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12874fi
12875rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876fi
12877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878   ac_c_werror_flag=$ac_save_c_werror_flag
12879fi
12880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12881$as_echo "$ac_cv_prog_cc_g" >&6; }
12882if test "$ac_test_CFLAGS" = set; then
12883  CFLAGS=$ac_save_CFLAGS
12884elif test $ac_cv_prog_cc_g = yes; then
12885  if test "$GCC" = yes; then
12886    CFLAGS="-g -O2"
12887  else
12888    CFLAGS="-g"
12889  fi
12890else
12891  if test "$GCC" = yes; then
12892    CFLAGS="-O2"
12893  else
12894    CFLAGS=
12895  fi
12896fi
12897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12898$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12899if ${ac_cv_prog_cc_c89+:} false; then :
12900  $as_echo_n "(cached) " >&6
12901else
12902  ac_cv_prog_cc_c89=no
12903ac_save_CC=$CC
12904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12905/* end confdefs.h.  */
12906#include <stdarg.h>
12907#include <stdio.h>
12908struct stat;
12909/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12910struct buf { int x; };
12911FILE * (*rcsopen) (struct buf *, struct stat *, int);
12912static char *e (p, i)
12913     char **p;
12914     int i;
12915{
12916  return p[i];
12917}
12918static char *f (char * (*g) (char **, int), char **p, ...)
12919{
12920  char *s;
12921  va_list v;
12922  va_start (v,p);
12923  s = g (p, va_arg (v,int));
12924  va_end (v);
12925  return s;
12926}
12927
12928/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12929   function prototypes and stuff, but not '\xHH' hex character constants.
12930   These don't provoke an error unfortunately, instead are silently treated
12931   as 'x'.  The following induces an error, until -std is added to get
12932   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12933   array size at least.  It's necessary to write '\x00'==0 to get something
12934   that's true only with -std.  */
12935int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12936
12937/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12938   inside strings and character constants.  */
12939#define FOO(x) 'x'
12940int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12941
12942int test (int i, double x);
12943struct s1 {int (*f) (int a);};
12944struct s2 {int (*f) (double a);};
12945int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12946int argc;
12947char **argv;
12948int
12949main ()
12950{
12951return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12952  ;
12953  return 0;
12954}
12955_ACEOF
12956for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12957	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12958do
12959  CC="$ac_save_CC $ac_arg"
12960  if ac_fn_c_try_compile "$LINENO"; then :
12961  ac_cv_prog_cc_c89=$ac_arg
12962fi
12963rm -f core conftest.err conftest.$ac_objext
12964  test "x$ac_cv_prog_cc_c89" != "xno" && break
12965done
12966rm -f conftest.$ac_ext
12967CC=$ac_save_CC
12968
12969fi
12970# AC_CACHE_VAL
12971case "x$ac_cv_prog_cc_c89" in
12972  x)
12973    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12974$as_echo "none needed" >&6; } ;;
12975  xno)
12976    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12977$as_echo "unsupported" >&6; } ;;
12978  *)
12979    CC="$CC $ac_cv_prog_cc_c89"
12980    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12981$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12982esac
12983if test "x$ac_cv_prog_cc_c89" != xno; then :
12984
12985fi
12986
12987ac_ext=c
12988ac_cpp='$CPP $CPPFLAGS'
12989ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12990ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12991ac_compiler_gnu=$ac_cv_c_compiler_gnu
12992
12993ac_ext=c
12994ac_cpp='$CPP $CPPFLAGS'
12995ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12996ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12997ac_compiler_gnu=$ac_cv_c_compiler_gnu
12998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
12999$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13000if ${am_cv_prog_cc_c_o+:} false; then :
13001  $as_echo_n "(cached) " >&6
13002else
13003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13004/* end confdefs.h.  */
13005
13006int
13007main ()
13008{
13009
13010  ;
13011  return 0;
13012}
13013_ACEOF
13014  # Make sure it works both with $CC and with simple cc.
13015  # Following AC_PROG_CC_C_O, we do the test twice because some
13016  # compilers refuse to overwrite an existing .o file with -o,
13017  # though they will create one.
13018  am_cv_prog_cc_c_o=yes
13019  for am_i in 1 2; do
13020    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13021   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13022   ac_status=$?
13023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024   (exit $ac_status); } \
13025         && test -f conftest2.$ac_objext; then
13026      : OK
13027    else
13028      am_cv_prog_cc_c_o=no
13029      break
13030    fi
13031  done
13032  rm -f core conftest*
13033  unset am_i
13034fi
13035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13036$as_echo "$am_cv_prog_cc_c_o" >&6; }
13037if test "$am_cv_prog_cc_c_o" != yes; then
13038   # Losing compiler, so override with the script.
13039   # FIXME: It is wrong to rewrite CC.
13040   # But if we don't then we get into trouble of one sort or another.
13041   # A longer-term fix would be to have automake use am__CC in this case,
13042   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13043   CC="$am_aux_dir/compile $CC"
13044fi
13045ac_ext=c
13046ac_cpp='$CPP $CPPFLAGS'
13047ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13048ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13049ac_compiler_gnu=$ac_cv_c_compiler_gnu
13050
13051
13052depcc="$CC"   am_compiler_list=
13053
13054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13055$as_echo_n "checking dependency style of $depcc... " >&6; }
13056if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13057  $as_echo_n "(cached) " >&6
13058else
13059  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13060  # We make a subdir and do the tests there.  Otherwise we can end up
13061  # making bogus files that we don't know about and never remove.  For
13062  # instance it was reported that on HP-UX the gcc test will end up
13063  # making a dummy file named 'D' -- because '-MD' means "put the output
13064  # in D".
13065  rm -rf conftest.dir
13066  mkdir conftest.dir
13067  # Copy depcomp to subdir because otherwise we won't find it if we're
13068  # using a relative directory.
13069  cp "$am_depcomp" conftest.dir
13070  cd conftest.dir
13071  # We will build objects and dependencies in a subdirectory because
13072  # it helps to detect inapplicable dependency modes.  For instance
13073  # both Tru64's cc and ICC support -MD to output dependencies as a
13074  # side effect of compilation, but ICC will put the dependencies in
13075  # the current directory while Tru64 will put them in the object
13076  # directory.
13077  mkdir sub
13078
13079  am_cv_CC_dependencies_compiler_type=none
13080  if test "$am_compiler_list" = ""; then
13081     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13082  fi
13083  am__universal=false
13084  case " $depcc " in #(
13085     *\ -arch\ *\ -arch\ *) am__universal=true ;;
13086     esac
13087
13088  for depmode in $am_compiler_list; do
13089    # Setup a source with many dependencies, because some compilers
13090    # like to wrap large dependency lists on column 80 (with \), and
13091    # we should not choose a depcomp mode which is confused by this.
13092    #
13093    # We need to recreate these files for each test, as the compiler may
13094    # overwrite some of them when testing with obscure command lines.
13095    # This happens at least with the AIX C compiler.
13096    : > sub/conftest.c
13097    for i in 1 2 3 4 5 6; do
13098      echo '#include "conftst'$i'.h"' >> sub/conftest.c
13099      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13100      # Solaris 10 /bin/sh.
13101      echo '/* dummy */' > sub/conftst$i.h
13102    done
13103    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13104
13105    # We check with '-c' and '-o' for the sake of the "dashmstdout"
13106    # mode.  It turns out that the SunPro C++ compiler does not properly
13107    # handle '-M -o', and we need to detect this.  Also, some Intel
13108    # versions had trouble with output in subdirs.
13109    am__obj=sub/conftest.${OBJEXT-o}
13110    am__minus_obj="-o $am__obj"
13111    case $depmode in
13112    gcc)
13113      # This depmode causes a compiler race in universal mode.
13114      test "$am__universal" = false || continue
13115      ;;
13116    nosideeffect)
13117      # After this tag, mechanisms are not by side-effect, so they'll
13118      # only be used when explicitly requested.
13119      if test "x$enable_dependency_tracking" = xyes; then
13120	continue
13121      else
13122	break
13123      fi
13124      ;;
13125    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13126      # This compiler won't grok '-c -o', but also, the minuso test has
13127      # not run yet.  These depmodes are late enough in the game, and
13128      # so weak that their functioning should not be impacted.
13129      am__obj=conftest.${OBJEXT-o}
13130      am__minus_obj=
13131      ;;
13132    none) break ;;
13133    esac
13134    if depmode=$depmode \
13135       source=sub/conftest.c object=$am__obj \
13136       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13137       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13138         >/dev/null 2>conftest.err &&
13139       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13140       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13141       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13142       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13143      # icc doesn't choke on unknown options, it will just issue warnings
13144      # or remarks (even with -Werror).  So we grep stderr for any message
13145      # that says an option was ignored or not supported.
13146      # When given -MP, icc 7.0 and 7.1 complain thusly:
13147      #   icc: Command line warning: ignoring option '-M'; no argument required
13148      # The diagnosis changed in icc 8.0:
13149      #   icc: Command line remark: option '-MP' not supported
13150      if (grep 'ignoring option' conftest.err ||
13151          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13152        am_cv_CC_dependencies_compiler_type=$depmode
13153        break
13154      fi
13155    fi
13156  done
13157
13158  cd ..
13159  rm -rf conftest.dir
13160else
13161  am_cv_CC_dependencies_compiler_type=none
13162fi
13163
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13166$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13167CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13168
13169 if
13170  test "x$enable_dependency_tracking" != xno \
13171  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13172  am__fastdepCC_TRUE=
13173  am__fastdepCC_FALSE='#'
13174else
13175  am__fastdepCC_TRUE='#'
13176  am__fastdepCC_FALSE=
13177fi
13178
13179
13180if test $ac_cv_c_compiler_gnu = yes; then
13181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
13182$as_echo_n "checking whether $CC needs -traditional... " >&6; }
13183if ${ac_cv_prog_gcc_traditional+:} false; then :
13184  $as_echo_n "(cached) " >&6
13185else
13186    ac_pattern="Autoconf.*'x'"
13187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188/* end confdefs.h.  */
13189#include <sgtty.h>
13190Autoconf TIOCGETP
13191_ACEOF
13192if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13193  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13194  ac_cv_prog_gcc_traditional=yes
13195else
13196  ac_cv_prog_gcc_traditional=no
13197fi
13198rm -f conftest*
13199
13200
13201  if test $ac_cv_prog_gcc_traditional = no; then
13202    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203/* end confdefs.h.  */
13204#include <termio.h>
13205Autoconf TCGETA
13206_ACEOF
13207if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13208  $EGREP "$ac_pattern" >/dev/null 2>&1; then :
13209  ac_cv_prog_gcc_traditional=yes
13210fi
13211rm -f conftest*
13212
13213  fi
13214fi
13215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
13216$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
13217  if test $ac_cv_prog_gcc_traditional = yes; then
13218    CC="$CC -traditional"
13219  fi
13220fi
13221
13222
13223
13224ac_ext=c
13225ac_cpp='$CPP $CPPFLAGS'
13226ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13227ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13228ac_compiler_gnu=$ac_cv_c_compiler_gnu
13229
13230
13231# Whether all the debugging output should be spewed out
13232@%:@ Check whether --enable-debug was given.
13233if test "${enable_debug+set}" = set; then :
13234  enableval=$enable_debug;
13235fi
13236
13237
13238if test "x$enable_debug" != "xyes"; then
13239
13240$as_echo "@%:@define NDEBUG 1" >>confdefs.h
13241
13242fi
13243
13244# No privilege separation
13245@%:@ Check whether --enable-privsep was given.
13246if test "${enable_privsep+set}" = set; then :
13247  enableval=$enable_privsep;
13248fi
13249
13250
13251if test "x$enable_privsep" = xno; then
13252
13253$as_echo "@%:@define WITHOUT_PRIVSEP 1" >>confdefs.h
13254
13255fi
13256
13257# privsep parameters
13258
13259@%:@ Check whether --with-privsep_user was given.
13260if test "${with_privsep_user+set}" = set; then :
13261  withval=$with_privsep_user; privsep_user=$withval
13262else
13263  privsep_user=nobody
13264fi
13265
13266
13267@%:@ Check whether --with-privsep_dir was given.
13268if test "${with_privsep_dir+set}" = set; then :
13269  withval=$with_privsep_dir; privsep_dir=$withval
13270else
13271  privsep_dir=/var/empty
13272fi
13273
13274
13275@%:@ Check whether --with-privsep_dir_owner was given.
13276if test "${with_privsep_dir_owner+set}" = set; then :
13277  withval=$with_privsep_dir_owner; privsep_dir_owner=$withval
13278else
13279  privsep_dir_owner=root
13280fi
13281
13282
13283@%:@ Check whether --with-privsep_dir_group was given.
13284if test "${with_privsep_dir_group+set}" = set; then :
13285  withval=$with_privsep_dir_group; privsep_dir_group=$withval
13286else
13287  privsep_dir_group=wheel
13288fi
13289
13290
13291
13292
13293
13294
13295cat >>confdefs.h <<_ACEOF
13296@%:@define PRIVSEP_USER "$privsep_user"
13297_ACEOF
13298
13299
13300cat >>confdefs.h <<_ACEOF
13301@%:@define PRIVSEP_DIR "$privsep_dir"
13302_ACEOF
13303
13304
13305cat >>confdefs.h <<_ACEOF
13306@%:@define PRIVSEP_DIR_OWNER "$privsep_dir_owner"
13307_ACEOF
13308
13309
13310cat >>confdefs.h <<_ACEOF
13311@%:@define PRIVSEP_DIR_GROUP "$privsep_dir_group"
13312_ACEOF
13313
13314
13315# Debug file support
13316@%:@ Check whether --enable-debug-file was given.
13317if test "${enable_debug_file+set}" = set; then :
13318  enableval=$enable_debug_file;
13319fi
13320
13321
13322if test "x$enable_debug_file" = xno; then
13323
13324$as_echo "@%:@define WITHOUT_DEBUGFILE 1" >>confdefs.h
13325
13326fi
13327
13328# dmalloc support
13329
13330@%:@ Check whether --with-dmalloc was given.
13331if test "${with_dmalloc+set}" = set; then :
13332  withval=$with_dmalloc;
13333fi
13334
13335
13336if test "x$with_dmalloc" = xyes; then
13337	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_malloc in -ldmalloc" >&5
13338$as_echo_n "checking for dmalloc_malloc in -ldmalloc... " >&6; }
13339if ${ac_cv_lib_dmalloc_dmalloc_malloc+:} false; then :
13340  $as_echo_n "(cached) " >&6
13341else
13342  ac_check_lib_save_LIBS=$LIBS
13343LIBS="-ldmalloc  $LIBS"
13344cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13345/* end confdefs.h.  */
13346
13347/* Override any GCC internal prototype to avoid an error.
13348   Use char because int might match the return type of a GCC
13349   builtin and then its argument prototype would still apply.  */
13350#ifdef __cplusplus
13351extern "C"
13352#endif
13353char dmalloc_malloc ();
13354int
13355main ()
13356{
13357return dmalloc_malloc ();
13358  ;
13359  return 0;
13360}
13361_ACEOF
13362if ac_fn_c_try_link "$LINENO"; then :
13363  ac_cv_lib_dmalloc_dmalloc_malloc=yes
13364else
13365  ac_cv_lib_dmalloc_dmalloc_malloc=no
13366fi
13367rm -f core conftest.err conftest.$ac_objext \
13368    conftest$ac_exeext conftest.$ac_ext
13369LIBS=$ac_check_lib_save_LIBS
13370fi
13371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_malloc" >&5
13372$as_echo "$ac_cv_lib_dmalloc_dmalloc_malloc" >&6; }
13373if test "x$ac_cv_lib_dmalloc_dmalloc_malloc" = xyes; then :
13374
13375		CFLAGS="$CFLAGS -DDMALLOC"
13376		LDFLAGS="$LDFLAGS -ldmalloc"
13377
13378else
13379  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13380$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13381as_fn_error $? "dmalloc test failed (remove --with-dmalloc)
13382See \`config.log' for more details" "$LINENO" 5; }
13383fi
13384
13385fi
13386
13387# pcre support
13388
13389@%:@ Check whether --with-pcre was given.
13390if test "${with_pcre+set}" = set; then :
13391  withval=$with_pcre;
13392fi
13393
13394
13395if test "x$with_pcre" = xyes; then
13396	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_compile in -lpcre" >&5
13397$as_echo_n "checking for pcre_compile in -lpcre... " >&6; }
13398if ${ac_cv_lib_pcre_pcre_compile+:} false; then :
13399  $as_echo_n "(cached) " >&6
13400else
13401  ac_check_lib_save_LIBS=$LIBS
13402LIBS="-lpcre  $LIBS"
13403cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13404/* end confdefs.h.  */
13405
13406/* Override any GCC internal prototype to avoid an error.
13407   Use char because int might match the return type of a GCC
13408   builtin and then its argument prototype would still apply.  */
13409#ifdef __cplusplus
13410extern "C"
13411#endif
13412char pcre_compile ();
13413int
13414main ()
13415{
13416return pcre_compile ();
13417  ;
13418  return 0;
13419}
13420_ACEOF
13421if ac_fn_c_try_link "$LINENO"; then :
13422  ac_cv_lib_pcre_pcre_compile=yes
13423else
13424  ac_cv_lib_pcre_pcre_compile=no
13425fi
13426rm -f core conftest.err conftest.$ac_objext \
13427    conftest$ac_exeext conftest.$ac_ext
13428LIBS=$ac_check_lib_save_LIBS
13429fi
13430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_compile" >&5
13431$as_echo "$ac_cv_lib_pcre_pcre_compile" >&6; }
13432if test "x$ac_cv_lib_pcre_pcre_compile" = xyes; then :
13433
13434		PCRE_CFLAGS="-DHAVE_PCRE"
13435		PCRE_LIBS="-lpcre"
13436
13437else
13438  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13440as_fn_error $? "pcre test failed (remove --with-pcre)
13441See \`config.log' for more details" "$LINENO" 5; }
13442fi
13443
13444fi
13445
13446# pcre2 support
13447
13448@%:@ Check whether --with-pcre2 was given.
13449if test "${with_pcre2+set}" = set; then :
13450  withval=$with_pcre2;
13451fi
13452
13453
13454if test "x$with_pcre2" = xyes; then
13455	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5
13456$as_echo_n "checking for pcre2_compile_8 in -lpcre2-8... " >&6; }
13457if ${ac_cv_lib_pcre2_8_pcre2_compile_8+:} false; then :
13458  $as_echo_n "(cached) " >&6
13459else
13460  ac_check_lib_save_LIBS=$LIBS
13461LIBS="-lpcre2-8  $LIBS"
13462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13463/* end confdefs.h.  */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466   Use char because int might match the return type of a GCC
13467   builtin and then its argument prototype would still apply.  */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char pcre2_compile_8 ();
13472int
13473main ()
13474{
13475return pcre2_compile_8 ();
13476  ;
13477  return 0;
13478}
13479_ACEOF
13480if ac_fn_c_try_link "$LINENO"; then :
13481  ac_cv_lib_pcre2_8_pcre2_compile_8=yes
13482else
13483  ac_cv_lib_pcre2_8_pcre2_compile_8=no
13484fi
13485rm -f core conftest.err conftest.$ac_objext \
13486    conftest$ac_exeext conftest.$ac_ext
13487LIBS=$ac_check_lib_save_LIBS
13488fi
13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5
13490$as_echo "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; }
13491if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then :
13492
13493		PCRE_CFLAGS="-DHAVE_PCRE2"
13494		PCRE_LIBS="-lpcre2-8"
13495
13496else
13497  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13499as_fn_error $? "pcre2 test failed (remove --with-pcre2)
13500See \`config.log' for more details" "$LINENO" 5; }
13501fi
13502
13503fi
13504
13505
13506
13507
13508# sc_hoiho utlity
13509
13510@%:@ Check whether --with-sc_hoiho was given.
13511if test "${with_sc_hoiho+set}" = set; then :
13512  withval=$with_sc_hoiho; with_sc_hoiho=$withval
13513else
13514  with_sc_hoiho=no
13515
13516fi
13517
13518 if test x$with_sc_hoiho = xyes; then
13519  WITH_SC_HOIHO_TRUE=
13520  WITH_SC_HOIHO_FALSE='#'
13521else
13522  WITH_SC_HOIHO_TRUE='#'
13523  WITH_SC_HOIHO_FALSE=
13524fi
13525
13526
13527# sc_uptime prober support
13528
13529@%:@ Check whether --with-sc_uptime was given.
13530if test "${with_sc_uptime+set}" = set; then :
13531  withval=$with_sc_uptime; with_sc_uptime=$withval
13532else
13533  with_sc_uptime=no
13534
13535fi
13536
13537 if test x$with_sc_uptime = xyes; then
13538  WITH_SC_UPTIME_TRUE=
13539  WITH_SC_UPTIME_FALSE='#'
13540else
13541  WITH_SC_UPTIME_TRUE='#'
13542  WITH_SC_UPTIME_FALSE=
13543fi
13544
13545
13546# Checks for libraries.
13547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GetIpNetTable in -liphlpapi" >&5
13548$as_echo_n "checking for GetIpNetTable in -liphlpapi... " >&6; }
13549if ${ac_cv_lib_iphlpapi_GetIpNetTable+:} false; then :
13550  $as_echo_n "(cached) " >&6
13551else
13552  ac_check_lib_save_LIBS=$LIBS
13553LIBS="-liphlpapi  $LIBS"
13554cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13555/* end confdefs.h.  */
13556
13557/* Override any GCC internal prototype to avoid an error.
13558   Use char because int might match the return type of a GCC
13559   builtin and then its argument prototype would still apply.  */
13560#ifdef __cplusplus
13561extern "C"
13562#endif
13563char GetIpNetTable ();
13564int
13565main ()
13566{
13567return GetIpNetTable ();
13568  ;
13569  return 0;
13570}
13571_ACEOF
13572if ac_fn_c_try_link "$LINENO"; then :
13573  ac_cv_lib_iphlpapi_GetIpNetTable=yes
13574else
13575  ac_cv_lib_iphlpapi_GetIpNetTable=no
13576fi
13577rm -f core conftest.err conftest.$ac_objext \
13578    conftest$ac_exeext conftest.$ac_ext
13579LIBS=$ac_check_lib_save_LIBS
13580fi
13581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi_GetIpNetTable" >&5
13582$as_echo "$ac_cv_lib_iphlpapi_GetIpNetTable" >&6; }
13583if test "x$ac_cv_lib_iphlpapi_GetIpNetTable" = xyes; then :
13584  cat >>confdefs.h <<_ACEOF
13585@%:@define HAVE_LIBIPHLPAPI 1
13586_ACEOF
13587
13588  LIBS="-liphlpapi $LIBS"
13589
13590fi
13591
13592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WSAStartup in -lws2_32" >&5
13593$as_echo_n "checking for WSAStartup in -lws2_32... " >&6; }
13594if ${ac_cv_lib_ws2_32_WSAStartup+:} false; then :
13595  $as_echo_n "(cached) " >&6
13596else
13597  ac_check_lib_save_LIBS=$LIBS
13598LIBS="-lws2_32  $LIBS"
13599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13600/* end confdefs.h.  */
13601
13602/* Override any GCC internal prototype to avoid an error.
13603   Use char because int might match the return type of a GCC
13604   builtin and then its argument prototype would still apply.  */
13605#ifdef __cplusplus
13606extern "C"
13607#endif
13608char WSAStartup ();
13609int
13610main ()
13611{
13612return WSAStartup ();
13613  ;
13614  return 0;
13615}
13616_ACEOF
13617if ac_fn_c_try_link "$LINENO"; then :
13618  ac_cv_lib_ws2_32_WSAStartup=yes
13619else
13620  ac_cv_lib_ws2_32_WSAStartup=no
13621fi
13622rm -f core conftest.err conftest.$ac_objext \
13623    conftest$ac_exeext conftest.$ac_ext
13624LIBS=$ac_check_lib_save_LIBS
13625fi
13626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_WSAStartup" >&5
13627$as_echo "$ac_cv_lib_ws2_32_WSAStartup" >&6; }
13628if test "x$ac_cv_lib_ws2_32_WSAStartup" = xyes; then :
13629  cat >>confdefs.h <<_ACEOF
13630@%:@define HAVE_LIBWS2_32 1
13631_ACEOF
13632
13633  LIBS="-lws2_32 $LIBS"
13634
13635fi
13636
13637
13638# Checks for header files.
13639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13640$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13641if ${ac_cv_header_sys_wait_h+:} false; then :
13642  $as_echo_n "(cached) " >&6
13643else
13644  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13645/* end confdefs.h.  */
13646#include <sys/types.h>
13647#include <sys/wait.h>
13648#ifndef WEXITSTATUS
13649# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13650#endif
13651#ifndef WIFEXITED
13652# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13653#endif
13654
13655int
13656main ()
13657{
13658  int s;
13659  wait (&s);
13660  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13661  ;
13662  return 0;
13663}
13664_ACEOF
13665if ac_fn_c_try_compile "$LINENO"; then :
13666  ac_cv_header_sys_wait_h=yes
13667else
13668  ac_cv_header_sys_wait_h=no
13669fi
13670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13671fi
13672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
13673$as_echo "$ac_cv_header_sys_wait_h" >&6; }
13674if test $ac_cv_header_sys_wait_h = yes; then
13675
13676$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
13677
13678fi
13679
13680for ac_header in arpa/inet.h
13681do :
13682  ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
13683if test "x$ac_cv_header_arpa_inet_h" = xyes; then :
13684  cat >>confdefs.h <<_ACEOF
13685@%:@define HAVE_ARPA_INET_H 1
13686_ACEOF
13687
13688fi
13689
13690done
13691
13692for ac_header in fcntl.h
13693do :
13694  ac_fn_c_check_header_mongrel "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
13695if test "x$ac_cv_header_fcntl_h" = xyes; then :
13696  cat >>confdefs.h <<_ACEOF
13697@%:@define HAVE_FCNTL_H 1
13698_ACEOF
13699
13700fi
13701
13702done
13703
13704for ac_header in limits.h
13705do :
13706  ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
13707if test "x$ac_cv_header_limits_h" = xyes; then :
13708  cat >>confdefs.h <<_ACEOF
13709@%:@define HAVE_LIMITS_H 1
13710_ACEOF
13711
13712fi
13713
13714done
13715
13716for ac_header in netdb.h
13717do :
13718  ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
13719if test "x$ac_cv_header_netdb_h" = xyes; then :
13720  cat >>confdefs.h <<_ACEOF
13721@%:@define HAVE_NETDB_H 1
13722_ACEOF
13723
13724fi
13725
13726done
13727
13728for ac_header in net/if_dl.h
13729do :
13730  ac_fn_c_check_header_mongrel "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
13731if test "x$ac_cv_header_net_if_dl_h" = xyes; then :
13732  cat >>confdefs.h <<_ACEOF
13733@%:@define HAVE_NET_IF_DL_H 1
13734_ACEOF
13735
13736fi
13737
13738done
13739
13740for ac_header in net/if_types.h
13741do :
13742  ac_fn_c_check_header_mongrel "$LINENO" "net/if_types.h" "ac_cv_header_net_if_types_h" "$ac_includes_default"
13743if test "x$ac_cv_header_net_if_types_h" = xyes; then :
13744  cat >>confdefs.h <<_ACEOF
13745@%:@define HAVE_NET_IF_TYPES_H 1
13746_ACEOF
13747
13748fi
13749
13750done
13751
13752for ac_header in netinet/in.h
13753do :
13754  ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
13755if test "x$ac_cv_header_netinet_in_h" = xyes; then :
13756  cat >>confdefs.h <<_ACEOF
13757@%:@define HAVE_NETINET_IN_H 1
13758_ACEOF
13759
13760fi
13761
13762done
13763
13764for ac_header in poll.h
13765do :
13766  ac_fn_c_check_header_mongrel "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
13767if test "x$ac_cv_header_poll_h" = xyes; then :
13768  cat >>confdefs.h <<_ACEOF
13769@%:@define HAVE_POLL_H 1
13770_ACEOF
13771
13772fi
13773
13774done
13775
13776for ac_header in stdint.h
13777do :
13778  ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
13779if test "x$ac_cv_header_stdint_h" = xyes; then :
13780  cat >>confdefs.h <<_ACEOF
13781@%:@define HAVE_STDINT_H 1
13782_ACEOF
13783
13784fi
13785
13786done
13787
13788for ac_header in stdlib.h
13789do :
13790  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
13791if test "x$ac_cv_header_stdlib_h" = xyes; then :
13792  cat >>confdefs.h <<_ACEOF
13793@%:@define HAVE_STDLIB_H 1
13794_ACEOF
13795
13796fi
13797
13798done
13799
13800for ac_header in string.h
13801do :
13802  ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
13803if test "x$ac_cv_header_string_h" = xyes; then :
13804  cat >>confdefs.h <<_ACEOF
13805@%:@define HAVE_STRING_H 1
13806_ACEOF
13807
13808fi
13809
13810done
13811
13812for ac_header in sys/epoll.h
13813do :
13814  ac_fn_c_check_header_mongrel "$LINENO" "sys/epoll.h" "ac_cv_header_sys_epoll_h" "$ac_includes_default"
13815if test "x$ac_cv_header_sys_epoll_h" = xyes; then :
13816  cat >>confdefs.h <<_ACEOF
13817@%:@define HAVE_SYS_EPOLL_H 1
13818_ACEOF
13819
13820fi
13821
13822done
13823
13824for ac_header in sys/event.h
13825do :
13826  ac_fn_c_check_header_mongrel "$LINENO" "sys/event.h" "ac_cv_header_sys_event_h" "$ac_includes_default"
13827if test "x$ac_cv_header_sys_event_h" = xyes; then :
13828  cat >>confdefs.h <<_ACEOF
13829@%:@define HAVE_SYS_EVENT_H 1
13830_ACEOF
13831
13832fi
13833
13834done
13835
13836for ac_header in sys/ioctl.h
13837do :
13838  ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
13839if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
13840  cat >>confdefs.h <<_ACEOF
13841@%:@define HAVE_SYS_IOCTL_H 1
13842_ACEOF
13843
13844fi
13845
13846done
13847
13848for ac_header in sys/param.h
13849do :
13850  ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
13851if test "x$ac_cv_header_sys_param_h" = xyes; then :
13852  cat >>confdefs.h <<_ACEOF
13853@%:@define HAVE_SYS_PARAM_H 1
13854_ACEOF
13855
13856fi
13857
13858done
13859
13860for ac_header in sys/socket.h
13861do :
13862  ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
13863if test "x$ac_cv_header_sys_socket_h" = xyes; then :
13864  cat >>confdefs.h <<_ACEOF
13865@%:@define HAVE_SYS_SOCKET_H 1
13866_ACEOF
13867
13868fi
13869
13870done
13871
13872for ac_header in sys/socketvar.h
13873do :
13874  ac_fn_c_check_header_mongrel "$LINENO" "sys/socketvar.h" "ac_cv_header_sys_socketvar_h" "$ac_includes_default"
13875if test "x$ac_cv_header_sys_socketvar_h" = xyes; then :
13876  cat >>confdefs.h <<_ACEOF
13877@%:@define HAVE_SYS_SOCKETVAR_H 1
13878_ACEOF
13879
13880fi
13881
13882done
13883
13884for ac_header in sys/time.h
13885do :
13886  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
13887if test "x$ac_cv_header_sys_time_h" = xyes; then :
13888  cat >>confdefs.h <<_ACEOF
13889@%:@define HAVE_SYS_TIME_H 1
13890_ACEOF
13891
13892fi
13893
13894done
13895
13896for ac_header in unistd.h
13897do :
13898  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
13899if test "x$ac_cv_header_unistd_h" = xyes; then :
13900  cat >>confdefs.h <<_ACEOF
13901@%:@define HAVE_UNISTD_H 1
13902_ACEOF
13903
13904fi
13905
13906done
13907
13908for ac_header in ifaddrs.h
13909do :
13910  ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
13911if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
13912  cat >>confdefs.h <<_ACEOF
13913@%:@define HAVE_IFADDRS_H 1
13914_ACEOF
13915
13916fi
13917
13918done
13919
13920
13921# sys/sysctl.h requires other headers on at least OpenBSD
13922for ac_header in sys/sysctl.h
13923do :
13924  ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
13925#if HAVE_SYS_PARAM_H
13926# include <sys/param.h>
13927#endif
13928
13929"
13930if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
13931  cat >>confdefs.h <<_ACEOF
13932@%:@define HAVE_SYS_SYSCTL_H 1
13933_ACEOF
13934
13935fi
13936
13937done
13938
13939
13940for ac_header in netinet/ip_fw.h netinet6/ip6_fw.h
13941do :
13942  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13943ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
13944#if HAVE_SYS_TYPES_H
13945# include <sys/types.h>
13946#endif
13947#if HAVE_SYS_SOCKET_H
13948# include <sys/socket.h>
13949#endif
13950#if HAVE_NETINET_IN_H
13951# include <netinet/in.h>
13952#endif
13953#if HAVE_ARPA_INET_H
13954# include <arpa/inet.h>
13955#endif
13956#include <net/if.h>
13957#include <netinet/ip_compat.h>
13958
13959"
13960if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13961  cat >>confdefs.h <<_ACEOF
13962@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13963_ACEOF
13964
13965fi
13966
13967done
13968
13969
13970for ac_header in netinet/tcp_var.h
13971do :
13972  ac_fn_c_check_header_compile "$LINENO" "netinet/tcp_var.h" "ac_cv_header_netinet_tcp_var_h" "
13973#if HAVE_SYS_TYPES_H
13974# include <sys/types.h>
13975#endif
13976#if HAVE_SYS_SOCKET_H
13977# include <sys/socket.h>
13978#endif
13979#if HAVE_NETINET_IN_H
13980# include <netinet/in.h>
13981#endif
13982#include <sys/queue.h>
13983#include <netinet/tcp.h>
13984
13985"
13986if test "x$ac_cv_header_netinet_tcp_var_h" = xyes; then :
13987  cat >>confdefs.h <<_ACEOF
13988@%:@define HAVE_NETINET_TCP_VAR_H 1
13989_ACEOF
13990
13991fi
13992
13993done
13994
13995
13996for ac_header in net/pfvar.h
13997do :
13998  ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "
13999#include <sys/types.h>
14000#include <sys/socket.h>
14001#include <netinet/in.h>
14002#include <net/if.h>
14003
14004"
14005if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
14006  cat >>confdefs.h <<_ACEOF
14007@%:@define HAVE_NET_PFVAR_H 1
14008_ACEOF
14009
14010fi
14011
14012done
14013
14014
14015for ac_header in linux/netlink.h
14016do :
14017  ac_fn_c_check_header_compile "$LINENO" "linux/netlink.h" "ac_cv_header_linux_netlink_h" "
14018#include <sys/types.h>
14019#include <sys/socket.h>
14020
14021"
14022if test "x$ac_cv_header_linux_netlink_h" = xyes; then :
14023  cat >>confdefs.h <<_ACEOF
14024@%:@define HAVE_LINUX_NETLINK_H 1
14025_ACEOF
14026
14027fi
14028
14029done
14030
14031
14032# Checks for typedefs, structures, and compiler characteristics.
14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14034$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14035if ${ac_cv_c_const+:} false; then :
14036  $as_echo_n "(cached) " >&6
14037else
14038  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14039/* end confdefs.h.  */
14040
14041int
14042main ()
14043{
14044
14045#ifndef __cplusplus
14046  /* Ultrix mips cc rejects this sort of thing.  */
14047  typedef int charset[2];
14048  const charset cs = { 0, 0 };
14049  /* SunOS 4.1.1 cc rejects this.  */
14050  char const *const *pcpcc;
14051  char **ppc;
14052  /* NEC SVR4.0.2 mips cc rejects this.  */
14053  struct point {int x, y;};
14054  static struct point const zero = {0,0};
14055  /* AIX XL C 1.02.0.0 rejects this.
14056     It does not let you subtract one const X* pointer from another in
14057     an arm of an if-expression whose if-part is not a constant
14058     expression */
14059  const char *g = "string";
14060  pcpcc = &g + (g ? g-g : 0);
14061  /* HPUX 7.0 cc rejects these. */
14062  ++pcpcc;
14063  ppc = (char**) pcpcc;
14064  pcpcc = (char const *const *) ppc;
14065  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14066    char tx;
14067    char *t = &tx;
14068    char const *s = 0 ? (char *) 0 : (char const *) 0;
14069
14070    *t++ = 0;
14071    if (s) return 0;
14072  }
14073  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14074    int x[] = {25, 17};
14075    const int *foo = &x[0];
14076    ++foo;
14077  }
14078  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14079    typedef const int *iptr;
14080    iptr p = 0;
14081    ++p;
14082  }
14083  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14084       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14085    struct s { int j; const int *ap[3]; } bx;
14086    struct s *b = &bx; b->j = 5;
14087  }
14088  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14089    const int foo = 10;
14090    if (!foo) return 0;
14091  }
14092  return !cs[0] && !zero.x;
14093#endif
14094
14095  ;
14096  return 0;
14097}
14098_ACEOF
14099if ac_fn_c_try_compile "$LINENO"; then :
14100  ac_cv_c_const=yes
14101else
14102  ac_cv_c_const=no
14103fi
14104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14105fi
14106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14107$as_echo "$ac_cv_c_const" >&6; }
14108if test $ac_cv_c_const = no; then
14109
14110$as_echo "@%:@define const /**/" >>confdefs.h
14111
14112fi
14113
14114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14115$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14116if ${ac_cv_type_uid_t+:} false; then :
14117  $as_echo_n "(cached) " >&6
14118else
14119  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14120/* end confdefs.h.  */
14121#include <sys/types.h>
14122
14123_ACEOF
14124if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14125  $EGREP "uid_t" >/dev/null 2>&1; then :
14126  ac_cv_type_uid_t=yes
14127else
14128  ac_cv_type_uid_t=no
14129fi
14130rm -f conftest*
14131
14132fi
14133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14134$as_echo "$ac_cv_type_uid_t" >&6; }
14135if test $ac_cv_type_uid_t = no; then
14136
14137$as_echo "@%:@define uid_t int" >>confdefs.h
14138
14139
14140$as_echo "@%:@define gid_t int" >>confdefs.h
14141
14142fi
14143
14144ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
14145case $ac_cv_c_int16_t in #(
14146  no|yes) ;; #(
14147  *)
14148
14149cat >>confdefs.h <<_ACEOF
14150@%:@define int16_t $ac_cv_c_int16_t
14151_ACEOF
14152;;
14153esac
14154
14155ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
14156case $ac_cv_c_int32_t in #(
14157  no|yes) ;; #(
14158  *)
14159
14160cat >>confdefs.h <<_ACEOF
14161@%:@define int32_t $ac_cv_c_int32_t
14162_ACEOF
14163;;
14164esac
14165
14166ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
14167if test "x$ac_cv_type_mode_t" = xyes; then :
14168
14169else
14170
14171cat >>confdefs.h <<_ACEOF
14172@%:@define mode_t int
14173_ACEOF
14174
14175fi
14176
14177ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14178if test "x$ac_cv_type_off_t" = xyes; then :
14179
14180else
14181
14182cat >>confdefs.h <<_ACEOF
14183@%:@define off_t long int
14184_ACEOF
14185
14186fi
14187
14188ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14189if test "x$ac_cv_type_pid_t" = xyes; then :
14190
14191else
14192
14193cat >>confdefs.h <<_ACEOF
14194@%:@define pid_t int
14195_ACEOF
14196
14197fi
14198
14199ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14200if test "x$ac_cv_type_size_t" = xyes; then :
14201
14202else
14203
14204cat >>confdefs.h <<_ACEOF
14205@%:@define size_t unsigned int
14206_ACEOF
14207
14208fi
14209
14210ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
14211if test "x$ac_cv_type_ssize_t" = xyes; then :
14212
14213else
14214
14215cat >>confdefs.h <<_ACEOF
14216@%:@define ssize_t int
14217_ACEOF
14218
14219fi
14220
14221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14222$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14223if ${ac_cv_struct_tm+:} false; then :
14224  $as_echo_n "(cached) " >&6
14225else
14226  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227/* end confdefs.h.  */
14228#include <sys/types.h>
14229#include <time.h>
14230
14231int
14232main ()
14233{
14234struct tm tm;
14235				     int *p = &tm.tm_sec;
14236				     return !p;
14237  ;
14238  return 0;
14239}
14240_ACEOF
14241if ac_fn_c_try_compile "$LINENO"; then :
14242  ac_cv_struct_tm=time.h
14243else
14244  ac_cv_struct_tm=sys/time.h
14245fi
14246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14247fi
14248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14249$as_echo "$ac_cv_struct_tm" >&6; }
14250if test $ac_cv_struct_tm = sys/time.h; then
14251
14252$as_echo "@%:@define TM_IN_SYS_TIME 1" >>confdefs.h
14253
14254fi
14255
14256ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
14257case $ac_cv_c_uint16_t in #(
14258  no|yes) ;; #(
14259  *)
14260
14261
14262cat >>confdefs.h <<_ACEOF
14263@%:@define uint16_t $ac_cv_c_uint16_t
14264_ACEOF
14265;;
14266  esac
14267
14268ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
14269case $ac_cv_c_uint32_t in #(
14270  no|yes) ;; #(
14271  *)
14272
14273$as_echo "@%:@define _UINT32_T 1" >>confdefs.h
14274
14275
14276cat >>confdefs.h <<_ACEOF
14277@%:@define uint32_t $ac_cv_c_uint32_t
14278_ACEOF
14279;;
14280  esac
14281
14282ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
14283case $ac_cv_c_uint64_t in #(
14284  no|yes) ;; #(
14285  *)
14286
14287$as_echo "@%:@define _UINT64_T 1" >>confdefs.h
14288
14289
14290cat >>confdefs.h <<_ACEOF
14291@%:@define uint64_t $ac_cv_c_uint64_t
14292_ACEOF
14293;;
14294  esac
14295
14296ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
14297case $ac_cv_c_uint8_t in #(
14298  no|yes) ;; #(
14299  *)
14300
14301$as_echo "@%:@define _UINT8_T 1" >>confdefs.h
14302
14303
14304cat >>confdefs.h <<_ACEOF
14305@%:@define uint8_t $ac_cv_c_uint8_t
14306_ACEOF
14307;;
14308  esac
14309
14310
14311# Checks for library functions.
14312for ac_header in unistd.h
14313do :
14314  ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14315if test "x$ac_cv_header_unistd_h" = xyes; then :
14316  cat >>confdefs.h <<_ACEOF
14317@%:@define HAVE_UNISTD_H 1
14318_ACEOF
14319
14320fi
14321
14322done
14323
14324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
14325$as_echo_n "checking for working chown... " >&6; }
14326if ${ac_cv_func_chown_works+:} false; then :
14327  $as_echo_n "(cached) " >&6
14328else
14329  if test "$cross_compiling" = yes; then :
14330  ac_cv_func_chown_works=no
14331else
14332  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14333/* end confdefs.h.  */
14334$ac_includes_default
14335#include <fcntl.h>
14336
14337int
14338main ()
14339{
14340  char *f = "conftest.chown";
14341  struct stat before, after;
14342
14343  if (creat (f, 0600) < 0)
14344    return 1;
14345  if (stat (f, &before) < 0)
14346    return 1;
14347  if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
14348    return 1;
14349  if (stat (f, &after) < 0)
14350    return 1;
14351  return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
14352
14353  ;
14354  return 0;
14355}
14356_ACEOF
14357if ac_fn_c_try_run "$LINENO"; then :
14358  ac_cv_func_chown_works=yes
14359else
14360  ac_cv_func_chown_works=no
14361fi
14362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14363  conftest.$ac_objext conftest.beam conftest.$ac_ext
14364fi
14365
14366rm -f conftest.chown
14367
14368fi
14369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
14370$as_echo "$ac_cv_func_chown_works" >&6; }
14371if test $ac_cv_func_chown_works = yes; then
14372
14373$as_echo "@%:@define HAVE_CHOWN 1" >>confdefs.h
14374
14375fi
14376
14377for ac_header in vfork.h
14378do :
14379  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
14380if test "x$ac_cv_header_vfork_h" = xyes; then :
14381  cat >>confdefs.h <<_ACEOF
14382@%:@define HAVE_VFORK_H 1
14383_ACEOF
14384
14385fi
14386
14387done
14388
14389for ac_func in fork vfork
14390do :
14391  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14392ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14393if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14394  cat >>confdefs.h <<_ACEOF
14395@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14396_ACEOF
14397
14398fi
14399done
14400
14401if test "x$ac_cv_func_fork" = xyes; then
14402  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
14403$as_echo_n "checking for working fork... " >&6; }
14404if ${ac_cv_func_fork_works+:} false; then :
14405  $as_echo_n "(cached) " >&6
14406else
14407  if test "$cross_compiling" = yes; then :
14408  ac_cv_func_fork_works=cross
14409else
14410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14411/* end confdefs.h.  */
14412$ac_includes_default
14413int
14414main ()
14415{
14416
14417	  /* By Ruediger Kuhlmann. */
14418	  return fork () < 0;
14419
14420  ;
14421  return 0;
14422}
14423_ACEOF
14424if ac_fn_c_try_run "$LINENO"; then :
14425  ac_cv_func_fork_works=yes
14426else
14427  ac_cv_func_fork_works=no
14428fi
14429rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14430  conftest.$ac_objext conftest.beam conftest.$ac_ext
14431fi
14432
14433fi
14434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
14435$as_echo "$ac_cv_func_fork_works" >&6; }
14436
14437else
14438  ac_cv_func_fork_works=$ac_cv_func_fork
14439fi
14440if test "x$ac_cv_func_fork_works" = xcross; then
14441  case $host in
14442    *-*-amigaos* | *-*-msdosdjgpp*)
14443      # Override, as these systems have only a dummy fork() stub
14444      ac_cv_func_fork_works=no
14445      ;;
14446    *)
14447      ac_cv_func_fork_works=yes
14448      ;;
14449  esac
14450  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
14451$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
14452fi
14453ac_cv_func_vfork_works=$ac_cv_func_vfork
14454if test "x$ac_cv_func_vfork" = xyes; then
14455  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
14456$as_echo_n "checking for working vfork... " >&6; }
14457if ${ac_cv_func_vfork_works+:} false; then :
14458  $as_echo_n "(cached) " >&6
14459else
14460  if test "$cross_compiling" = yes; then :
14461  ac_cv_func_vfork_works=cross
14462else
14463  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14464/* end confdefs.h.  */
14465/* Thanks to Paul Eggert for this test.  */
14466$ac_includes_default
14467#include <sys/wait.h>
14468#ifdef HAVE_VFORK_H
14469# include <vfork.h>
14470#endif
14471/* On some sparc systems, changes by the child to local and incoming
14472   argument registers are propagated back to the parent.  The compiler
14473   is told about this with #include <vfork.h>, but some compilers
14474   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
14475   static variable whose address is put into a register that is
14476   clobbered by the vfork.  */
14477static void
14478#ifdef __cplusplus
14479sparc_address_test (int arg)
14480# else
14481sparc_address_test (arg) int arg;
14482#endif
14483{
14484  static pid_t child;
14485  if (!child) {
14486    child = vfork ();
14487    if (child < 0) {
14488      perror ("vfork");
14489      _exit(2);
14490    }
14491    if (!child) {
14492      arg = getpid();
14493      write(-1, "", 0);
14494      _exit (arg);
14495    }
14496  }
14497}
14498
14499int
14500main ()
14501{
14502  pid_t parent = getpid ();
14503  pid_t child;
14504
14505  sparc_address_test (0);
14506
14507  child = vfork ();
14508
14509  if (child == 0) {
14510    /* Here is another test for sparc vfork register problems.  This
14511       test uses lots of local variables, at least as many local
14512       variables as main has allocated so far including compiler
14513       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
14514       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
14515       reuse the register of parent for one of the local variables,
14516       since it will think that parent can't possibly be used any more
14517       in this routine.  Assigning to the local variable will thus
14518       munge parent in the parent process.  */
14519    pid_t
14520      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
14521      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
14522    /* Convince the compiler that p..p7 are live; otherwise, it might
14523       use the same hardware register for all 8 local variables.  */
14524    if (p != p1 || p != p2 || p != p3 || p != p4
14525	|| p != p5 || p != p6 || p != p7)
14526      _exit(1);
14527
14528    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
14529       from child file descriptors.  If the child closes a descriptor
14530       before it execs or exits, this munges the parent's descriptor
14531       as well.  Test for this by closing stdout in the child.  */
14532    _exit(close(fileno(stdout)) != 0);
14533  } else {
14534    int status;
14535    struct stat st;
14536
14537    while (wait(&status) != child)
14538      ;
14539    return (
14540	 /* Was there some problem with vforking?  */
14541	 child < 0
14542
14543	 /* Did the child fail?  (This shouldn't happen.)  */
14544	 || status
14545
14546	 /* Did the vfork/compiler bug occur?  */
14547	 || parent != getpid()
14548
14549	 /* Did the file descriptor bug occur?  */
14550	 || fstat(fileno(stdout), &st) != 0
14551	 );
14552  }
14553}
14554_ACEOF
14555if ac_fn_c_try_run "$LINENO"; then :
14556  ac_cv_func_vfork_works=yes
14557else
14558  ac_cv_func_vfork_works=no
14559fi
14560rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14561  conftest.$ac_objext conftest.beam conftest.$ac_ext
14562fi
14563
14564fi
14565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14566$as_echo "$ac_cv_func_vfork_works" >&6; }
14567
14568fi;
14569if test "x$ac_cv_func_fork_works" = xcross; then
14570  ac_cv_func_vfork_works=$ac_cv_func_vfork
14571  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14572$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14573fi
14574
14575if test "x$ac_cv_func_vfork_works" = xyes; then
14576
14577$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
14578
14579else
14580
14581$as_echo "@%:@define vfork fork" >>confdefs.h
14582
14583fi
14584if test "x$ac_cv_func_fork_works" = xyes; then
14585
14586$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
14587
14588fi
14589
14590for ac_func in arc4random
14591do :
14592  ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
14593if test "x$ac_cv_func_arc4random" = xyes; then :
14594  cat >>confdefs.h <<_ACEOF
14595@%:@define HAVE_ARC4RANDOM 1
14596_ACEOF
14597
14598fi
14599done
14600
14601for ac_func in arc4random_uniform
14602do :
14603  ac_fn_c_check_func "$LINENO" "arc4random_uniform" "ac_cv_func_arc4random_uniform"
14604if test "x$ac_cv_func_arc4random_uniform" = xyes; then :
14605  cat >>confdefs.h <<_ACEOF
14606@%:@define HAVE_ARC4RANDOM_UNIFORM 1
14607_ACEOF
14608
14609fi
14610done
14611
14612for ac_func in atexit
14613do :
14614  ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
14615if test "x$ac_cv_func_atexit" = xyes; then :
14616  cat >>confdefs.h <<_ACEOF
14617@%:@define HAVE_ATEXIT 1
14618_ACEOF
14619
14620fi
14621done
14622
14623for ac_func in calloc
14624do :
14625  ac_fn_c_check_func "$LINENO" "calloc" "ac_cv_func_calloc"
14626if test "x$ac_cv_func_calloc" = xyes; then :
14627  cat >>confdefs.h <<_ACEOF
14628@%:@define HAVE_CALLOC 1
14629_ACEOF
14630
14631fi
14632done
14633
14634for ac_func in daemon
14635do :
14636  ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
14637if test "x$ac_cv_func_daemon" = xyes; then :
14638  cat >>confdefs.h <<_ACEOF
14639@%:@define HAVE_DAEMON 1
14640_ACEOF
14641
14642fi
14643done
14644
14645for ac_func in endpwent
14646do :
14647  ac_fn_c_check_func "$LINENO" "endpwent" "ac_cv_func_endpwent"
14648if test "x$ac_cv_func_endpwent" = xyes; then :
14649  cat >>confdefs.h <<_ACEOF
14650@%:@define HAVE_ENDPWENT 1
14651_ACEOF
14652
14653fi
14654done
14655
14656for ac_func in epoll_wait
14657do :
14658  ac_fn_c_check_func "$LINENO" "epoll_wait" "ac_cv_func_epoll_wait"
14659if test "x$ac_cv_func_epoll_wait" = xyes; then :
14660  cat >>confdefs.h <<_ACEOF
14661@%:@define HAVE_EPOLL_WAIT 1
14662_ACEOF
14663
14664fi
14665done
14666
14667for ac_func in ftruncate
14668do :
14669  ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
14670if test "x$ac_cv_func_ftruncate" = xyes; then :
14671  cat >>confdefs.h <<_ACEOF
14672@%:@define HAVE_FTRUNCATE 1
14673_ACEOF
14674
14675fi
14676done
14677
14678for ac_func in getdtablesize
14679do :
14680  ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
14681if test "x$ac_cv_func_getdtablesize" = xyes; then :
14682  cat >>confdefs.h <<_ACEOF
14683@%:@define HAVE_GETDTABLESIZE 1
14684_ACEOF
14685
14686fi
14687done
14688
14689for ac_func in gethostname
14690do :
14691  ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
14692if test "x$ac_cv_func_gethostname" = xyes; then :
14693  cat >>confdefs.h <<_ACEOF
14694@%:@define HAVE_GETHOSTNAME 1
14695_ACEOF
14696
14697fi
14698done
14699
14700for ac_func in getifaddrs
14701do :
14702  ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
14703if test "x$ac_cv_func_getifaddrs" = xyes; then :
14704  cat >>confdefs.h <<_ACEOF
14705@%:@define HAVE_GETIFADDRS 1
14706_ACEOF
14707
14708fi
14709done
14710
14711for ac_func in getpagesize
14712do :
14713  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14714if test "x$ac_cv_func_getpagesize" = xyes; then :
14715  cat >>confdefs.h <<_ACEOF
14716@%:@define HAVE_GETPAGESIZE 1
14717_ACEOF
14718
14719fi
14720done
14721
14722for ac_func in gettimeofday
14723do :
14724  ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
14725if test "x$ac_cv_func_gettimeofday" = xyes; then :
14726  cat >>confdefs.h <<_ACEOF
14727@%:@define HAVE_GETTIMEOFDAY 1
14728_ACEOF
14729
14730fi
14731done
14732
14733for ac_func in kqueue
14734do :
14735  ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
14736if test "x$ac_cv_func_kqueue" = xyes; then :
14737  cat >>confdefs.h <<_ACEOF
14738@%:@define HAVE_KQUEUE 1
14739_ACEOF
14740
14741fi
14742done
14743
14744for ac_func in memmove
14745do :
14746  ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
14747if test "x$ac_cv_func_memmove" = xyes; then :
14748  cat >>confdefs.h <<_ACEOF
14749@%:@define HAVE_MEMMOVE 1
14750_ACEOF
14751
14752fi
14753done
14754
14755for ac_func in memset
14756do :
14757  ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset"
14758if test "x$ac_cv_func_memset" = xyes; then :
14759  cat >>confdefs.h <<_ACEOF
14760@%:@define HAVE_MEMSET 1
14761_ACEOF
14762
14763fi
14764done
14765
14766for ac_func in mkdir
14767do :
14768  ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir"
14769if test "x$ac_cv_func_mkdir" = xyes; then :
14770  cat >>confdefs.h <<_ACEOF
14771@%:@define HAVE_MKDIR 1
14772_ACEOF
14773
14774fi
14775done
14776
14777for ac_func in poll
14778do :
14779  ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
14780if test "x$ac_cv_func_poll" = xyes; then :
14781  cat >>confdefs.h <<_ACEOF
14782@%:@define HAVE_POLL 1
14783_ACEOF
14784
14785fi
14786done
14787
14788for ac_func in rmdir
14789do :
14790  ac_fn_c_check_func "$LINENO" "rmdir" "ac_cv_func_rmdir"
14791if test "x$ac_cv_func_rmdir" = xyes; then :
14792  cat >>confdefs.h <<_ACEOF
14793@%:@define HAVE_RMDIR 1
14794_ACEOF
14795
14796fi
14797done
14798
14799for ac_func in select
14800do :
14801  ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select"
14802if test "x$ac_cv_func_select" = xyes; then :
14803  cat >>confdefs.h <<_ACEOF
14804@%:@define HAVE_SELECT 1
14805_ACEOF
14806
14807fi
14808done
14809
14810for ac_func in socket
14811do :
14812  ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14813if test "x$ac_cv_func_socket" = xyes; then :
14814  cat >>confdefs.h <<_ACEOF
14815@%:@define HAVE_SOCKET 1
14816_ACEOF
14817
14818fi
14819done
14820
14821for ac_func in snprintf
14822do :
14823  ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
14824if test "x$ac_cv_func_snprintf" = xyes; then :
14825  cat >>confdefs.h <<_ACEOF
14826@%:@define HAVE_SNPRINTF 1
14827_ACEOF
14828
14829fi
14830done
14831
14832for ac_func in setproctitle
14833do :
14834  ac_fn_c_check_func "$LINENO" "setproctitle" "ac_cv_func_setproctitle"
14835if test "x$ac_cv_func_setproctitle" = xyes; then :
14836  cat >>confdefs.h <<_ACEOF
14837@%:@define HAVE_SETPROCTITLE 1
14838_ACEOF
14839
14840fi
14841done
14842
14843for ac_func in strcasecmp
14844do :
14845  ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
14846if test "x$ac_cv_func_strcasecmp" = xyes; then :
14847  cat >>confdefs.h <<_ACEOF
14848@%:@define HAVE_STRCASECMP 1
14849_ACEOF
14850
14851fi
14852done
14853
14854for ac_func in strcasestr
14855do :
14856  ac_fn_c_check_func "$LINENO" "strcasestr" "ac_cv_func_strcasestr"
14857if test "x$ac_cv_func_strcasestr" = xyes; then :
14858  cat >>confdefs.h <<_ACEOF
14859@%:@define HAVE_STRCASESTR 1
14860_ACEOF
14861
14862fi
14863done
14864
14865for ac_func in strdup
14866do :
14867  ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
14868if test "x$ac_cv_func_strdup" = xyes; then :
14869  cat >>confdefs.h <<_ACEOF
14870@%:@define HAVE_STRDUP 1
14871_ACEOF
14872
14873fi
14874done
14875
14876for ac_func in strerror
14877do :
14878  ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
14879if test "x$ac_cv_func_strerror" = xyes; then :
14880  cat >>confdefs.h <<_ACEOF
14881@%:@define HAVE_STRERROR 1
14882_ACEOF
14883
14884fi
14885done
14886
14887for ac_func in strncasecmp
14888do :
14889  ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp"
14890if test "x$ac_cv_func_strncasecmp" = xyes; then :
14891  cat >>confdefs.h <<_ACEOF
14892@%:@define HAVE_STRNCASECMP 1
14893_ACEOF
14894
14895fi
14896done
14897
14898for ac_func in strtol
14899do :
14900  ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
14901if test "x$ac_cv_func_strtol" = xyes; then :
14902  cat >>confdefs.h <<_ACEOF
14903@%:@define HAVE_STRTOL 1
14904_ACEOF
14905
14906fi
14907done
14908
14909for ac_func in sysctl
14910do :
14911  ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
14912if test "x$ac_cv_func_sysctl" = xyes; then :
14913  cat >>confdefs.h <<_ACEOF
14914@%:@define HAVE_SYSCTL 1
14915_ACEOF
14916
14917fi
14918done
14919
14920for ac_func in uname
14921do :
14922  ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
14923if test "x$ac_cv_func_uname" = xyes; then :
14924  cat >>confdefs.h <<_ACEOF
14925@%:@define HAVE_UNAME 1
14926_ACEOF
14927
14928fi
14929done
14930
14931
14932# The cast to long int works around a bug in the HP C Compiler
14933# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14934# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14935# This bug is HP SR number 8606223364.
14936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14937$as_echo_n "checking size of long... " >&6; }
14938if ${ac_cv_sizeof_long+:} false; then :
14939  $as_echo_n "(cached) " >&6
14940else
14941  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14942
14943else
14944  if test "$ac_cv_type_long" = yes; then
14945     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14947as_fn_error 77 "cannot compute sizeof (long)
14948See \`config.log' for more details" "$LINENO" 5; }
14949   else
14950     ac_cv_sizeof_long=0
14951   fi
14952fi
14953
14954fi
14955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14956$as_echo "$ac_cv_sizeof_long" >&6; }
14957
14958
14959
14960cat >>confdefs.h <<_ACEOF
14961@%:@define SIZEOF_LONG $ac_cv_sizeof_long
14962_ACEOF
14963
14964
14965
14966ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
14967	 #include <sys/socket.h>
14968"
14969if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
14970
14971$as_echo "@%:@define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
14972
14973else
14974  :
14975fi
14976
14977
14978if test "x$ac_cv_header_net_pfvar_h" == xyes; then
14979   ac_fn_c_check_member "$LINENO" "struct pfioc_trans_e" "type" "ac_cv_member_struct_pfioc_trans_e_type" "#include <sys/types.h>
14980	 #include <sys/socket.h>
14981	 #include <netinet/in.h>
14982	 #include <net/if.h>
14983	 #include <net/pfvar.h>
14984"
14985if test "x$ac_cv_member_struct_pfioc_trans_e_type" = xyes; then :
14986
14987$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_TYPE 1" >>confdefs.h
14988
14989else
14990  :
14991fi
14992
14993   ac_fn_c_check_member "$LINENO" "struct pfioc_trans_e" "rs_num" "ac_cv_member_struct_pfioc_trans_e_rs_num" "#include <sys/types.h>
14994	 #include <sys/socket.h>
14995	 #include <netinet/in.h>
14996	 #include <net/if.h>
14997	 #include <net/pfvar.h>
14998"
14999if test "x$ac_cv_member_struct_pfioc_trans_e_rs_num" = xyes; then :
15000
15001$as_echo "@%:@define HAVE_STRUCT_PFIOC_TRANS_E_RS_NUM 1" >>confdefs.h
15002
15003else
15004  :
15005fi
15006
15007   ac_fn_c_check_member "$LINENO" "struct pf_rule" "nat" "ac_cv_member_struct_pf_rule_nat" "#include <sys/types.h>
15008	 #include <sys/socket.h>
15009	 #include <netinet/in.h>
15010	 #include <net/if.h>
15011	 #include <net/pfvar.h>
15012"
15013if test "x$ac_cv_member_struct_pf_rule_nat" = xyes; then :
15014
15015$as_echo "@%:@define HAVE_STRUCT_PF_RULE_NAT 1" >>confdefs.h
15016
15017else
15018  :
15019fi
15020
15021   ac_fn_c_check_member "$LINENO" "struct pf_rule" "rdr" "ac_cv_member_struct_pf_rule_rdr" "#include <sys/types.h>
15022	 #include <sys/socket.h>
15023	 #include <netinet/in.h>
15024	 #include <net/if.h>
15025	 #include <net/pfvar.h>
15026"
15027if test "x$ac_cv_member_struct_pf_rule_rdr" = xyes; then :
15028
15029$as_echo "@%:@define HAVE_STRUCT_PF_RULE_RDR 1" >>confdefs.h
15030
15031else
15032  :
15033fi
15034
15035fi
15036
15037# Check for structs
15038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsghdr" >&5
15039$as_echo_n "checking for struct nlmsghdr... " >&6; }
15040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15041/* end confdefs.h.  */
15042
15043		#include <sys/types.h>
15044		#include <sys/socket.h>
15045		#include <linux/netlink.h>
15046
15047int
15048main ()
15049{
15050
15051		struct nlmsghdr msg;
15052
15053  ;
15054  return 0;
15055}
15056_ACEOF
15057if ac_fn_c_try_compile "$LINENO"; then :
15058
15059		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15060$as_echo "yes" >&6; }
15061
15062cat >>confdefs.h <<_ACEOF
15063@%:@define HAVE_STRUCT_NLMSGHDR 1
15064_ACEOF
15065
15066
15067else
15068
15069		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15070$as_echo "no" >&6; }
15071
15072fi
15073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15074
15075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct nlmsgerr" >&5
15076$as_echo_n "checking for struct nlmsgerr... " >&6; }
15077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15078/* end confdefs.h.  */
15079
15080		#include <sys/types.h>
15081		#include <sys/socket.h>
15082		#include <linux/netlink.h>
15083
15084int
15085main ()
15086{
15087
15088		struct nlmsgerr msgerr;
15089
15090  ;
15091  return 0;
15092}
15093_ACEOF
15094if ac_fn_c_try_compile "$LINENO"; then :
15095
15096		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097$as_echo "yes" >&6; }
15098
15099cat >>confdefs.h <<_ACEOF
15100@%:@define HAVE_STRUCT_NLMSGERR 1
15101_ACEOF
15102
15103
15104else
15105
15106		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15107$as_echo "no" >&6; }
15108
15109fi
15110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15111
15112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_nl" >&5
15113$as_echo_n "checking for struct sockaddr_nl... " >&6; }
15114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h.  */
15116
15117		#include <sys/types.h>
15118		#include <sys/socket.h>
15119		#include <linux/netlink.h>
15120
15121int
15122main ()
15123{
15124
15125		struct sockaddr_nl snl;
15126
15127  ;
15128  return 0;
15129}
15130_ACEOF
15131if ac_fn_c_try_compile "$LINENO"; then :
15132
15133		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134$as_echo "yes" >&6; }
15135
15136cat >>confdefs.h <<_ACEOF
15137@%:@define HAVE_STRUCT_SOCKADDR_NL 1
15138_ACEOF
15139
15140
15141else
15142
15143		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144$as_echo "no" >&6; }
15145
15146fi
15147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15148
15149# These libraries have to be explicitly linked in OpenSolaris
15150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
15151$as_echo_n "checking for library containing getaddrinfo... " >&6; }
15152if ${ac_cv_search_getaddrinfo+:} false; then :
15153  $as_echo_n "(cached) " >&6
15154else
15155  ac_func_search_save_LIBS=$LIBS
15156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15157/* end confdefs.h.  */
15158
15159/* Override any GCC internal prototype to avoid an error.
15160   Use char because int might match the return type of a GCC
15161   builtin and then its argument prototype would still apply.  */
15162#ifdef __cplusplus
15163extern "C"
15164#endif
15165char getaddrinfo ();
15166int
15167main ()
15168{
15169return getaddrinfo ();
15170  ;
15171  return 0;
15172}
15173_ACEOF
15174for ac_lib in '' socket; do
15175  if test -z "$ac_lib"; then
15176    ac_res="none required"
15177  else
15178    ac_res=-l$ac_lib
15179    LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
15180  fi
15181  if ac_fn_c_try_link "$LINENO"; then :
15182  ac_cv_search_getaddrinfo=$ac_res
15183fi
15184rm -f core conftest.err conftest.$ac_objext \
15185    conftest$ac_exeext
15186  if ${ac_cv_search_getaddrinfo+:} false; then :
15187  break
15188fi
15189done
15190if ${ac_cv_search_getaddrinfo+:} false; then :
15191
15192else
15193  ac_cv_search_getaddrinfo=no
15194fi
15195rm conftest.$ac_ext
15196LIBS=$ac_func_search_save_LIBS
15197fi
15198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
15199$as_echo "$ac_cv_search_getaddrinfo" >&6; }
15200ac_res=$ac_cv_search_getaddrinfo
15201if test "$ac_res" != no; then :
15202  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15203
15204fi
15205
15206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
15207$as_echo_n "checking for library containing inet_ntop... " >&6; }
15208if ${ac_cv_search_inet_ntop+:} false; then :
15209  $as_echo_n "(cached) " >&6
15210else
15211  ac_func_search_save_LIBS=$LIBS
15212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213/* end confdefs.h.  */
15214
15215/* Override any GCC internal prototype to avoid an error.
15216   Use char because int might match the return type of a GCC
15217   builtin and then its argument prototype would still apply.  */
15218#ifdef __cplusplus
15219extern "C"
15220#endif
15221char inet_ntop ();
15222int
15223main ()
15224{
15225return inet_ntop ();
15226  ;
15227  return 0;
15228}
15229_ACEOF
15230for ac_lib in '' nsl; do
15231  if test -z "$ac_lib"; then
15232    ac_res="none required"
15233  else
15234    ac_res=-l$ac_lib
15235    LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS"
15236  fi
15237  if ac_fn_c_try_link "$LINENO"; then :
15238  ac_cv_search_inet_ntop=$ac_res
15239fi
15240rm -f core conftest.err conftest.$ac_objext \
15241    conftest$ac_exeext
15242  if ${ac_cv_search_inet_ntop+:} false; then :
15243  break
15244fi
15245done
15246if ${ac_cv_search_inet_ntop+:} false; then :
15247
15248else
15249  ac_cv_search_inet_ntop=no
15250fi
15251rm conftest.$ac_ext
15252LIBS=$ac_func_search_save_LIBS
15253fi
15254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
15255$as_echo "$ac_cv_search_inet_ntop" >&6; }
15256ac_res=$ac_cv_search_inet_ntop
15257if test "$ac_res" != no; then :
15258  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15259
15260fi
15261
15262
15263# Some systems need -lm to use sqrt.
15264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
15265$as_echo_n "checking for library containing sqrt... " >&6; }
15266if ${ac_cv_search_sqrt+:} false; then :
15267  $as_echo_n "(cached) " >&6
15268else
15269  ac_func_search_save_LIBS=$LIBS
15270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271/* end confdefs.h.  */
15272
15273/* Override any GCC internal prototype to avoid an error.
15274   Use char because int might match the return type of a GCC
15275   builtin and then its argument prototype would still apply.  */
15276#ifdef __cplusplus
15277extern "C"
15278#endif
15279char sqrt ();
15280int
15281main ()
15282{
15283return sqrt ();
15284  ;
15285  return 0;
15286}
15287_ACEOF
15288for ac_lib in '' m; do
15289  if test -z "$ac_lib"; then
15290    ac_res="none required"
15291  else
15292    ac_res=-l$ac_lib
15293    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15294  fi
15295  if ac_fn_c_try_link "$LINENO"; then :
15296  ac_cv_search_sqrt=$ac_res
15297fi
15298rm -f core conftest.err conftest.$ac_objext \
15299    conftest$ac_exeext
15300  if ${ac_cv_search_sqrt+:} false; then :
15301  break
15302fi
15303done
15304if ${ac_cv_search_sqrt+:} false; then :
15305
15306else
15307  ac_cv_search_sqrt=no
15308fi
15309rm conftest.$ac_ext
15310LIBS=$ac_func_search_save_LIBS
15311fi
15312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
15313$as_echo "$ac_cv_search_sqrt" >&6; }
15314ac_res=$ac_cv_search_sqrt
15315if test "$ac_res" != no; then :
15316  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15317
15318fi
15319
15320
15321AX_CHECK_OPENSSL(
15322	AC_DEFINE([HAVE_OPENSSL], [1], [Define to 1 if you have OpenSSL])
15323	CFLAGS="$CFLAGS $OPENSSL_INCLUDES"
15324	have_openssl=yes)
15325
15326if test "x$have_openssl" = xyes; then
15327   save_LIBS="$LIBS"
15328   save_LDFLAGS="$LDFLAGS"
15329   LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS"
15330   LIBS="$LIBS $OPENSSL_LIBS"
15331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X509_VERIFY_PARAM_set1_host" >&5
15332$as_echo_n "checking for X509_VERIFY_PARAM_set1_host... " >&6; }
15333   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15334/* end confdefs.h.  */
15335
15336
15337	#include <openssl/bio.h>
15338	#include <openssl/ssl.h>
15339	#include <openssl/err.h>
15340	#include <openssl/x509v3.h>
15341int
15342main ()
15343{
15344
15345	 X509_VERIFY_PARAM *p = X509_VERIFY_PARAM_new();
15346	 X509_VERIFY_PARAM_set_hostflags(p, X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS);
15347	 X509_VERIFY_PARAM_set1_host(p, "localhost", 0);
15348
15349  ;
15350  return 0;
15351}
15352
15353_ACEOF
15354if ac_fn_c_try_link "$LINENO"; then :
15355
15356	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15357$as_echo "yes" >&6; }
15358
15359cat >>confdefs.h <<_ACEOF
15360@%:@define HAVE_X509_VERIFY_PARAM_SET1_HOST 1
15361_ACEOF
15362
15363
15364else
15365
15366	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15367$as_echo "no" >&6; }
15368
15369fi
15370rm -f core conftest.err conftest.$ac_objext \
15371    conftest$ac_exeext conftest.$ac_ext
15372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ASN1_STRING_get0_data" >&5
15373$as_echo_n "checking for ASN1_STRING_get0_data... " >&6; }
15374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15375/* end confdefs.h.  */
15376
15377
15378	#include <openssl/bio.h>
15379	#include <openssl/ssl.h>
15380	#include <openssl/err.h>
15381	#include <openssl/x509v3.h>
15382int
15383main ()
15384{
15385
15386	 ASN1_STRING_get0_data(NULL);
15387
15388  ;
15389  return 0;
15390}
15391
15392_ACEOF
15393if ac_fn_c_try_link "$LINENO"; then :
15394
15395	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15396$as_echo "yes" >&6; }
15397
15398cat >>confdefs.h <<_ACEOF
15399@%:@define HAVE_ASN1_STRING_GET0_DATA 1
15400_ACEOF
15401
15402
15403else
15404
15405	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15406$as_echo "no" >&6; }
15407
15408fi
15409rm -f core conftest.err conftest.$ac_objext \
15410    conftest$ac_exeext conftest.$ac_ext
15411   LDFLAGS="$save_LDFLAGS"
15412   LIBS="$save_LIBS"
15413fi
15414
15415AX_GCC_BUILTIN(__builtin_clz)
15416
15417# No thread support
15418@%:@ Check whether --enable-threads was given.
15419if test "${enable_threads+set}" = set; then :
15420  enableval=$enable_threads;
15421fi
15422
15423
15424if test "x$enable_threads" != xno; then
15425  AX_PTHREAD(
15426	AC_DEFINE([HAVE_PTHREAD], [1], [Define to 1 if you have pthread]))
15427fi
15428
15429ac_config_files="$ac_config_files Makefile scamper/Makefile utils/Makefile utils/sc_ally/Makefile utils/sc_analysis_dump/Makefile utils/sc_attach/Makefile utils/sc_bdrmap/Makefile utils/sc_erosprober/Makefile"
15430
15431
15432if test "x$with_sc_hoiho" != xno; then
15433   ac_config_files="$ac_config_files utils/sc_hoiho/Makefile"
15434
15435fi
15436
15437ac_config_files="$ac_config_files utils/sc_filterpolicy/Makefile utils/sc_ipiddump/Makefile utils/sc_pinger/Makefile utils/sc_prefixscan/Makefile utils/sc_radargun/Makefile utils/sc_remoted/Makefile utils/sc_speedtrap/Makefile utils/sc_tbitblind/Makefile utils/sc_tbitpmtud/Makefile utils/sc_tracediff/Makefile utils/sc_ttlexp/Makefile"
15438
15439
15440if test "x$with_sc_uptime" != xno; then
15441   ac_config_files="$ac_config_files utils/sc_uptime/Makefile"
15442
15443fi
15444
15445ac_config_files="$ac_config_files utils/sc_warts2csv/Makefile utils/sc_warts2json/Makefile utils/sc_warts2pcap/Makefile utils/sc_warts2text/Makefile utils/sc_wartscat/Makefile utils/sc_wartsdump/Makefile utils/sc_wartsfilter/Makefile utils/sc_wartsfix/Makefile"
15446
15447
15448cat >confcache <<\_ACEOF
15449# This file is a shell script that caches the results of configure
15450# tests run on this system so they can be shared between configure
15451# scripts and configure runs, see configure's option --config-cache.
15452# It is not useful on other systems.  If it contains results you don't
15453# want to keep, you may remove or edit it.
15454#
15455# config.status only pays attention to the cache file if you give it
15456# the --recheck option to rerun configure.
15457#
15458# `ac_cv_env_foo' variables (set or unset) will be overridden when
15459# loading this file, other *unset* `ac_cv_foo' will be assigned the
15460# following values.
15461
15462_ACEOF
15463
15464# The following way of writing the cache mishandles newlines in values,
15465# but we know of no workaround that is simple, portable, and efficient.
15466# So, we kill variables containing newlines.
15467# Ultrix sh set writes to stderr and can't be redirected directly,
15468# and sets the high bit in the cache file unless we assign to the vars.
15469(
15470  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15471    eval ac_val=\$$ac_var
15472    case $ac_val in #(
15473    *${as_nl}*)
15474      case $ac_var in #(
15475      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15476$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15477      esac
15478      case $ac_var in #(
15479      _ | IFS | as_nl) ;; #(
15480      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15481      *) { eval $ac_var=; unset $ac_var;} ;;
15482      esac ;;
15483    esac
15484  done
15485
15486  (set) 2>&1 |
15487    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15488    *${as_nl}ac_space=\ *)
15489      # `set' does not quote correctly, so add quotes: double-quote
15490      # substitution turns \\\\ into \\, and sed turns \\ into \.
15491      sed -n \
15492	"s/'/'\\\\''/g;
15493	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15494      ;; #(
15495    *)
15496      # `set' quotes correctly as required by POSIX, so do not add quotes.
15497      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15498      ;;
15499    esac |
15500    sort
15501) |
15502  sed '
15503     /^ac_cv_env_/b end
15504     t clear
15505     :clear
15506     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15507     t end
15508     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15509     :end' >>confcache
15510if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15511  if test -w "$cache_file"; then
15512    if test "x$cache_file" != "x/dev/null"; then
15513      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15514$as_echo "$as_me: updating cache $cache_file" >&6;}
15515      if test ! -f "$cache_file" || test -h "$cache_file"; then
15516	cat confcache >"$cache_file"
15517      else
15518        case $cache_file in #(
15519        */* | ?:*)
15520	  mv -f confcache "$cache_file"$$ &&
15521	  mv -f "$cache_file"$$ "$cache_file" ;; #(
15522        *)
15523	  mv -f confcache "$cache_file" ;;
15524	esac
15525      fi
15526    fi
15527  else
15528    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15529$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15530  fi
15531fi
15532rm -f confcache
15533
15534test "x$prefix" = xNONE && prefix=$ac_default_prefix
15535# Let make expand exec_prefix.
15536test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15537
15538DEFS=-DHAVE_CONFIG_H
15539
15540ac_libobjs=
15541ac_ltlibobjs=
15542U=
15543for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
15544  # 1. Remove the extension, and $U if already installed.
15545  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15546  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15547  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15548  #    will be set to the directory where LIBOBJS objects are built.
15549  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15550  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15551done
15552LIB@&t@OBJS=$ac_libobjs
15553
15554LTLIBOBJS=$ac_ltlibobjs
15555
15556
15557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15558$as_echo_n "checking that generated files are newer than configure... " >&6; }
15559   if test -n "$am_sleep_pid"; then
15560     # Hide warnings about reused PIDs.
15561     wait $am_sleep_pid 2>/dev/null
15562   fi
15563   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15564$as_echo "done" >&6; }
15565 if test -n "$EXEEXT"; then
15566  am__EXEEXT_TRUE=
15567  am__EXEEXT_FALSE='#'
15568else
15569  am__EXEEXT_TRUE='#'
15570  am__EXEEXT_FALSE=
15571fi
15572
15573if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15574  as_fn_error $? "conditional \"AMDEP\" was never defined.
15575Usually this means the macro was only invoked conditionally." "$LINENO" 5
15576fi
15577if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15578  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15579Usually this means the macro was only invoked conditionally." "$LINENO" 5
15580fi
15581if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15582  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15583Usually this means the macro was only invoked conditionally." "$LINENO" 5
15584fi
15585if test -z "${WITH_SC_HOIHO_TRUE}" && test -z "${WITH_SC_HOIHO_FALSE}"; then
15586  as_fn_error $? "conditional \"WITH_SC_HOIHO\" was never defined.
15587Usually this means the macro was only invoked conditionally." "$LINENO" 5
15588fi
15589if test -z "${WITH_SC_UPTIME_TRUE}" && test -z "${WITH_SC_UPTIME_FALSE}"; then
15590  as_fn_error $? "conditional \"WITH_SC_UPTIME\" was never defined.
15591Usually this means the macro was only invoked conditionally." "$LINENO" 5
15592fi
15593
15594: "${CONFIG_STATUS=./config.status}"
15595ac_write_fail=0
15596ac_clean_files_save=$ac_clean_files
15597ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15598{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15599$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15600as_write_fail=0
15601cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15602#! $SHELL
15603# Generated by $as_me.
15604# Run this file to recreate the current configuration.
15605# Compiler output produced by configure, useful for debugging
15606# configure, is in config.log if it exists.
15607
15608debug=false
15609ac_cs_recheck=false
15610ac_cs_silent=false
15611
15612SHELL=\${CONFIG_SHELL-$SHELL}
15613export SHELL
15614_ASEOF
15615cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15616## -------------------- ##
15617## M4sh Initialization. ##
15618## -------------------- ##
15619
15620# Be more Bourne compatible
15621DUALCASE=1; export DUALCASE # for MKS sh
15622if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15623  emulate sh
15624  NULLCMD=:
15625  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15626  # is contrary to our usage.  Disable this feature.
15627  alias -g '${1+"$@"}'='"$@"'
15628  setopt NO_GLOB_SUBST
15629else
15630  case `(set -o) 2>/dev/null` in @%:@(
15631  *posix*) :
15632    set -o posix ;; @%:@(
15633  *) :
15634     ;;
15635esac
15636fi
15637
15638
15639as_nl='
15640'
15641export as_nl
15642# Printing a long string crashes Solaris 7 /usr/bin/printf.
15643as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15644as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15645as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15646# Prefer a ksh shell builtin over an external printf program on Solaris,
15647# but without wasting forks for bash or zsh.
15648if test -z "$BASH_VERSION$ZSH_VERSION" \
15649    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15650  as_echo='print -r --'
15651  as_echo_n='print -rn --'
15652elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15653  as_echo='printf %s\n'
15654  as_echo_n='printf %s'
15655else
15656  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15657    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15658    as_echo_n='/usr/ucb/echo -n'
15659  else
15660    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15661    as_echo_n_body='eval
15662      arg=$1;
15663      case $arg in @%:@(
15664      *"$as_nl"*)
15665	expr "X$arg" : "X\\(.*\\)$as_nl";
15666	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15667      esac;
15668      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15669    '
15670    export as_echo_n_body
15671    as_echo_n='sh -c $as_echo_n_body as_echo'
15672  fi
15673  export as_echo_body
15674  as_echo='sh -c $as_echo_body as_echo'
15675fi
15676
15677# The user is always right.
15678if test "${PATH_SEPARATOR+set}" != set; then
15679  PATH_SEPARATOR=:
15680  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15681    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15682      PATH_SEPARATOR=';'
15683  }
15684fi
15685
15686
15687# IFS
15688# We need space, tab and new line, in precisely that order.  Quoting is
15689# there to prevent editors from complaining about space-tab.
15690# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15691# splitting by setting IFS to empty value.)
15692IFS=" ""	$as_nl"
15693
15694# Find who we are.  Look in the path if we contain no directory separator.
15695as_myself=
15696case $0 in @%:@((
15697  *[\\/]* ) as_myself=$0 ;;
15698  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15699for as_dir in $PATH
15700do
15701  IFS=$as_save_IFS
15702  test -z "$as_dir" && as_dir=.
15703    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15704  done
15705IFS=$as_save_IFS
15706
15707     ;;
15708esac
15709# We did not find ourselves, most probably we were run as `sh COMMAND'
15710# in which case we are not to be found in the path.
15711if test "x$as_myself" = x; then
15712  as_myself=$0
15713fi
15714if test ! -f "$as_myself"; then
15715  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15716  exit 1
15717fi
15718
15719# Unset variables that we do not need and which cause bugs (e.g. in
15720# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15721# suppresses any "Segmentation fault" message there.  '((' could
15722# trigger a bug in pdksh 5.2.14.
15723for as_var in BASH_ENV ENV MAIL MAILPATH
15724do eval test x\${$as_var+set} = xset \
15725  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15726done
15727PS1='$ '
15728PS2='> '
15729PS4='+ '
15730
15731# NLS nuisances.
15732LC_ALL=C
15733export LC_ALL
15734LANGUAGE=C
15735export LANGUAGE
15736
15737# CDPATH.
15738(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15739
15740
15741@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
15742@%:@ ----------------------------------------
15743@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15744@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15745@%:@ script with STATUS, using 1 if that was 0.
15746as_fn_error ()
15747{
15748  as_status=$1; test $as_status -eq 0 && as_status=1
15749  if test "$4"; then
15750    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15751    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15752  fi
15753  $as_echo "$as_me: error: $2" >&2
15754  as_fn_exit $as_status
15755} @%:@ as_fn_error
15756
15757
15758@%:@ as_fn_set_status STATUS
15759@%:@ -----------------------
15760@%:@ Set @S|@? to STATUS, without forking.
15761as_fn_set_status ()
15762{
15763  return $1
15764} @%:@ as_fn_set_status
15765
15766@%:@ as_fn_exit STATUS
15767@%:@ -----------------
15768@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15769as_fn_exit ()
15770{
15771  set +e
15772  as_fn_set_status $1
15773  exit $1
15774} @%:@ as_fn_exit
15775
15776@%:@ as_fn_unset VAR
15777@%:@ ---------------
15778@%:@ Portably unset VAR.
15779as_fn_unset ()
15780{
15781  { eval $1=; unset $1;}
15782}
15783as_unset=as_fn_unset
15784@%:@ as_fn_append VAR VALUE
15785@%:@ ----------------------
15786@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
15787@%:@ advantage of any shell optimizations that allow amortized linear growth over
15788@%:@ repeated appends, instead of the typical quadratic growth present in naive
15789@%:@ implementations.
15790if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15791  eval 'as_fn_append ()
15792  {
15793    eval $1+=\$2
15794  }'
15795else
15796  as_fn_append ()
15797  {
15798    eval $1=\$$1\$2
15799  }
15800fi # as_fn_append
15801
15802@%:@ as_fn_arith ARG...
15803@%:@ ------------------
15804@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
15805@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
15806@%:@ must be portable across @S|@(()) and expr.
15807if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15808  eval 'as_fn_arith ()
15809  {
15810    as_val=$(( $* ))
15811  }'
15812else
15813  as_fn_arith ()
15814  {
15815    as_val=`expr "$@" || test $? -eq 1`
15816  }
15817fi # as_fn_arith
15818
15819
15820if expr a : '\(a\)' >/dev/null 2>&1 &&
15821   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15822  as_expr=expr
15823else
15824  as_expr=false
15825fi
15826
15827if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15828  as_basename=basename
15829else
15830  as_basename=false
15831fi
15832
15833if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15834  as_dirname=dirname
15835else
15836  as_dirname=false
15837fi
15838
15839as_me=`$as_basename -- "$0" ||
15840$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15841	 X"$0" : 'X\(//\)$' \| \
15842	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15843$as_echo X/"$0" |
15844    sed '/^.*\/\([^/][^/]*\)\/*$/{
15845	    s//\1/
15846	    q
15847	  }
15848	  /^X\/\(\/\/\)$/{
15849	    s//\1/
15850	    q
15851	  }
15852	  /^X\/\(\/\).*/{
15853	    s//\1/
15854	    q
15855	  }
15856	  s/.*/./; q'`
15857
15858# Avoid depending upon Character Ranges.
15859as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15860as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15861as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15862as_cr_digits='0123456789'
15863as_cr_alnum=$as_cr_Letters$as_cr_digits
15864
15865ECHO_C= ECHO_N= ECHO_T=
15866case `echo -n x` in @%:@(((((
15867-n*)
15868  case `echo 'xy\c'` in
15869  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15870  xy)  ECHO_C='\c';;
15871  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15872       ECHO_T='	';;
15873  esac;;
15874*)
15875  ECHO_N='-n';;
15876esac
15877
15878rm -f conf$$ conf$$.exe conf$$.file
15879if test -d conf$$.dir; then
15880  rm -f conf$$.dir/conf$$.file
15881else
15882  rm -f conf$$.dir
15883  mkdir conf$$.dir 2>/dev/null
15884fi
15885if (echo >conf$$.file) 2>/dev/null; then
15886  if ln -s conf$$.file conf$$ 2>/dev/null; then
15887    as_ln_s='ln -s'
15888    # ... but there are two gotchas:
15889    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15890    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15891    # In both cases, we have to default to `cp -pR'.
15892    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15893      as_ln_s='cp -pR'
15894  elif ln conf$$.file conf$$ 2>/dev/null; then
15895    as_ln_s=ln
15896  else
15897    as_ln_s='cp -pR'
15898  fi
15899else
15900  as_ln_s='cp -pR'
15901fi
15902rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15903rmdir conf$$.dir 2>/dev/null
15904
15905
15906@%:@ as_fn_mkdir_p
15907@%:@ -------------
15908@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
15909as_fn_mkdir_p ()
15910{
15911
15912  case $as_dir in #(
15913  -*) as_dir=./$as_dir;;
15914  esac
15915  test -d "$as_dir" || eval $as_mkdir_p || {
15916    as_dirs=
15917    while :; do
15918      case $as_dir in #(
15919      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15920      *) as_qdir=$as_dir;;
15921      esac
15922      as_dirs="'$as_qdir' $as_dirs"
15923      as_dir=`$as_dirname -- "$as_dir" ||
15924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15925	 X"$as_dir" : 'X\(//\)[^/]' \| \
15926	 X"$as_dir" : 'X\(//\)$' \| \
15927	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15928$as_echo X"$as_dir" |
15929    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15930	    s//\1/
15931	    q
15932	  }
15933	  /^X\(\/\/\)[^/].*/{
15934	    s//\1/
15935	    q
15936	  }
15937	  /^X\(\/\/\)$/{
15938	    s//\1/
15939	    q
15940	  }
15941	  /^X\(\/\).*/{
15942	    s//\1/
15943	    q
15944	  }
15945	  s/.*/./; q'`
15946      test -d "$as_dir" && break
15947    done
15948    test -z "$as_dirs" || eval "mkdir $as_dirs"
15949  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15950
15951
15952} @%:@ as_fn_mkdir_p
15953if mkdir -p . 2>/dev/null; then
15954  as_mkdir_p='mkdir -p "$as_dir"'
15955else
15956  test -d ./-p && rmdir ./-p
15957  as_mkdir_p=false
15958fi
15959
15960
15961@%:@ as_fn_executable_p FILE
15962@%:@ -----------------------
15963@%:@ Test if FILE is an executable regular file.
15964as_fn_executable_p ()
15965{
15966  test -f "$1" && test -x "$1"
15967} @%:@ as_fn_executable_p
15968as_test_x='test -x'
15969as_executable_p=as_fn_executable_p
15970
15971# Sed expression to map a string onto a valid CPP name.
15972as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15973
15974# Sed expression to map a string onto a valid variable name.
15975as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15976
15977
15978exec 6>&1
15979## ----------------------------------- ##
15980## Main body of $CONFIG_STATUS script. ##
15981## ----------------------------------- ##
15982_ASEOF
15983test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15984
15985cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15986# Save the log message, to keep $0 and so on meaningful, and to
15987# report actual input values of CONFIG_FILES etc. instead of their
15988# values after options handling.
15989ac_log="
15990This file was extended by scamper $as_me 20211026, which was
15991generated by GNU Autoconf 2.69.  Invocation command line was
15992
15993  CONFIG_FILES    = $CONFIG_FILES
15994  CONFIG_HEADERS  = $CONFIG_HEADERS
15995  CONFIG_LINKS    = $CONFIG_LINKS
15996  CONFIG_COMMANDS = $CONFIG_COMMANDS
15997  $ $0 $@
15998
15999on `(hostname || uname -n) 2>/dev/null | sed 1q`
16000"
16001
16002_ACEOF
16003
16004case $ac_config_files in *"
16005"*) set x $ac_config_files; shift; ac_config_files=$*;;
16006esac
16007
16008case $ac_config_headers in *"
16009"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16010esac
16011
16012
16013cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014# Files that config.status was made for.
16015config_files="$ac_config_files"
16016config_headers="$ac_config_headers"
16017config_commands="$ac_config_commands"
16018
16019_ACEOF
16020
16021cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16022ac_cs_usage="\
16023\`$as_me' instantiates files and other configuration actions
16024from templates according to the current configuration.  Unless the files
16025and actions are specified as TAGs, all are instantiated by default.
16026
16027Usage: $0 [OPTION]... [TAG]...
16028
16029  -h, --help       print this help, then exit
16030  -V, --version    print version number and configuration settings, then exit
16031      --config     print configuration, then exit
16032  -q, --quiet, --silent
16033                   do not print progress messages
16034  -d, --debug      don't remove temporary files
16035      --recheck    update $as_me by reconfiguring in the same conditions
16036      --file=FILE[:TEMPLATE]
16037                   instantiate the configuration file FILE
16038      --header=FILE[:TEMPLATE]
16039                   instantiate the configuration header FILE
16040
16041Configuration files:
16042$config_files
16043
16044Configuration headers:
16045$config_headers
16046
16047Configuration commands:
16048$config_commands
16049
16050Report bugs to <mjl@luckie.org.nz>."
16051
16052_ACEOF
16053cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16054ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16055ac_cs_version="\\
16056scamper config.status 20211026
16057configured by $0, generated by GNU Autoconf 2.69,
16058  with options \\"\$ac_cs_config\\"
16059
16060Copyright (C) 2012 Free Software Foundation, Inc.
16061This config.status script is free software; the Free Software Foundation
16062gives unlimited permission to copy, distribute and modify it."
16063
16064ac_pwd='$ac_pwd'
16065srcdir='$srcdir'
16066INSTALL='$INSTALL'
16067MKDIR_P='$MKDIR_P'
16068AWK='$AWK'
16069test -n "\$AWK" || AWK=awk
16070_ACEOF
16071
16072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16073# The default lists apply if the user does not specify any file.
16074ac_need_defaults=:
16075while test $# != 0
16076do
16077  case $1 in
16078  --*=?*)
16079    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16080    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16081    ac_shift=:
16082    ;;
16083  --*=)
16084    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16085    ac_optarg=
16086    ac_shift=:
16087    ;;
16088  *)
16089    ac_option=$1
16090    ac_optarg=$2
16091    ac_shift=shift
16092    ;;
16093  esac
16094
16095  case $ac_option in
16096  # Handling of the options.
16097  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16098    ac_cs_recheck=: ;;
16099  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16100    $as_echo "$ac_cs_version"; exit ;;
16101  --config | --confi | --conf | --con | --co | --c )
16102    $as_echo "$ac_cs_config"; exit ;;
16103  --debug | --debu | --deb | --de | --d | -d )
16104    debug=: ;;
16105  --file | --fil | --fi | --f )
16106    $ac_shift
16107    case $ac_optarg in
16108    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16109    '') as_fn_error $? "missing file argument" ;;
16110    esac
16111    as_fn_append CONFIG_FILES " '$ac_optarg'"
16112    ac_need_defaults=false;;
16113  --header | --heade | --head | --hea )
16114    $ac_shift
16115    case $ac_optarg in
16116    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16117    esac
16118    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16119    ac_need_defaults=false;;
16120  --he | --h)
16121    # Conflict between --help and --header
16122    as_fn_error $? "ambiguous option: \`$1'
16123Try \`$0 --help' for more information.";;
16124  --help | --hel | -h )
16125    $as_echo "$ac_cs_usage"; exit ;;
16126  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16127  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16128    ac_cs_silent=: ;;
16129
16130  # This is an error.
16131  -*) as_fn_error $? "unrecognized option: \`$1'
16132Try \`$0 --help' for more information." ;;
16133
16134  *) as_fn_append ac_config_targets " $1"
16135     ac_need_defaults=false ;;
16136
16137  esac
16138  shift
16139done
16140
16141ac_configure_extra_args=
16142
16143if $ac_cs_silent; then
16144  exec 6>/dev/null
16145  ac_configure_extra_args="$ac_configure_extra_args --silent"
16146fi
16147
16148_ACEOF
16149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16150if \$ac_cs_recheck; then
16151  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16152  shift
16153  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16154  CONFIG_SHELL='$SHELL'
16155  export CONFIG_SHELL
16156  exec "\$@"
16157fi
16158
16159_ACEOF
16160cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16161exec 5>>config.log
16162{
16163  echo
16164  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
16165@%:@@%:@ Running $as_me. @%:@@%:@
16166_ASBOX
16167  $as_echo "$ac_log"
16168} >&5
16169
16170_ACEOF
16171cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16172#
16173# INIT-COMMANDS
16174#
16175AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
16176
16177
16178# The HP-UX ksh and POSIX shell print the target directory to stdout
16179# if CDPATH is set.
16180(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16181
16182sed_quote_subst='$sed_quote_subst'
16183double_quote_subst='$double_quote_subst'
16184delay_variable_subst='$delay_variable_subst'
16185macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16186macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16187enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16188enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16189pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16190enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16191shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
16192SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16193ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16194PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16195host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16196host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16197host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16198build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16199build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16200build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16201SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16202Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16203GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16204EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16205FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16206LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16207NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16208LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16209max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16210ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16211exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16212lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16213lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16214lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16215lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16216lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16217reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16218reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16219OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16220deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16221file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16222file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16223want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16224DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16225sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16226AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16227AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16228archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16229STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16230RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16231old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16232old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16233old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16234lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16235CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16236CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16237compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16238GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16239lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16240lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16241lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
16242lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16243lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
16244lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
16245nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16246lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16247lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
16248objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16249MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16250lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16251lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16252lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16253lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16254lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16255need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16256MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16257DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16258NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16259LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16260OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16261OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16262libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16263shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16264extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16265archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16266enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16267export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16268whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16269compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16270old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16271old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16272archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16273archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16274module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16275module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16276with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16277allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16278no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16279hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16280hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16281hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16282hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16283hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16284hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16285hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16286inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16287link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16288always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16289export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16290exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16291include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16292prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16293postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16294file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16295variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16296need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16297need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16298version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16299runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16300shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16301shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16302libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16303library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16304soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16305install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16306postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16307postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16308finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16309finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16310hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16311sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16312configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
16313configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
16314hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16315enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16316enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16317enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16318old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16319striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16320
16321LTCC='$LTCC'
16322LTCFLAGS='$LTCFLAGS'
16323compiler='$compiler_DEFAULT'
16324
16325# A function that is used when there is no print builtin or printf.
16326func_fallback_echo ()
16327{
16328  eval 'cat <<_LTECHO_EOF
16329\$1
16330_LTECHO_EOF'
16331}
16332
16333# Quote evaled strings.
16334for var in SHELL \
16335ECHO \
16336PATH_SEPARATOR \
16337SED \
16338GREP \
16339EGREP \
16340FGREP \
16341LD \
16342NM \
16343LN_S \
16344lt_SP2NL \
16345lt_NL2SP \
16346reload_flag \
16347OBJDUMP \
16348deplibs_check_method \
16349file_magic_cmd \
16350file_magic_glob \
16351want_nocaseglob \
16352DLLTOOL \
16353sharedlib_from_linklib_cmd \
16354AR \
16355AR_FLAGS \
16356archiver_list_spec \
16357STRIP \
16358RANLIB \
16359CC \
16360CFLAGS \
16361compiler \
16362lt_cv_sys_global_symbol_pipe \
16363lt_cv_sys_global_symbol_to_cdecl \
16364lt_cv_sys_global_symbol_to_import \
16365lt_cv_sys_global_symbol_to_c_name_address \
16366lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16367lt_cv_nm_interface \
16368nm_file_list_spec \
16369lt_cv_truncate_bin \
16370lt_prog_compiler_no_builtin_flag \
16371lt_prog_compiler_pic \
16372lt_prog_compiler_wl \
16373lt_prog_compiler_static \
16374lt_cv_prog_compiler_c_o \
16375need_locks \
16376MANIFEST_TOOL \
16377DSYMUTIL \
16378NMEDIT \
16379LIPO \
16380OTOOL \
16381OTOOL64 \
16382shrext_cmds \
16383export_dynamic_flag_spec \
16384whole_archive_flag_spec \
16385compiler_needs_object \
16386with_gnu_ld \
16387allow_undefined_flag \
16388no_undefined_flag \
16389hardcode_libdir_flag_spec \
16390hardcode_libdir_separator \
16391exclude_expsyms \
16392include_expsyms \
16393file_list_spec \
16394variables_saved_for_relink \
16395libname_spec \
16396library_names_spec \
16397soname_spec \
16398install_override_mode \
16399finish_eval \
16400old_striplib \
16401striplib; do
16402    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16403    *[\\\\\\\`\\"\\\$]*)
16404      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16405      ;;
16406    *)
16407      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16408      ;;
16409    esac
16410done
16411
16412# Double-quote double-evaled strings.
16413for var in reload_cmds \
16414old_postinstall_cmds \
16415old_postuninstall_cmds \
16416old_archive_cmds \
16417extract_expsyms_cmds \
16418old_archive_from_new_cmds \
16419old_archive_from_expsyms_cmds \
16420archive_cmds \
16421archive_expsym_cmds \
16422module_cmds \
16423module_expsym_cmds \
16424export_symbols_cmds \
16425prelink_cmds \
16426postlink_cmds \
16427postinstall_cmds \
16428postuninstall_cmds \
16429finish_cmds \
16430sys_lib_search_path_spec \
16431configure_time_dlsearch_path \
16432configure_time_lt_sys_library_path; do
16433    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16434    *[\\\\\\\`\\"\\\$]*)
16435      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
16436      ;;
16437    *)
16438      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16439      ;;
16440    esac
16441done
16442
16443ac_aux_dir='$ac_aux_dir'
16444
16445# See if we are running on zsh, and set the options that allow our
16446# commands through without removal of \ escapes INIT.
16447if test -n "\${ZSH_VERSION+set}"; then
16448   setopt NO_GLOB_SUBST
16449fi
16450
16451
16452    PACKAGE='$PACKAGE'
16453    VERSION='$VERSION'
16454    RM='$RM'
16455    ofile='$ofile'
16456
16457
16458
16459
16460_ACEOF
16461
16462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16463
16464# Handling of arguments.
16465for ac_config_target in $ac_config_targets
16466do
16467  case $ac_config_target in
16468    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16469    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16470    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16471    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16472    "scamper/Makefile") CONFIG_FILES="$CONFIG_FILES scamper/Makefile" ;;
16473    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
16474    "utils/sc_ally/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ally/Makefile" ;;
16475    "utils/sc_analysis_dump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_analysis_dump/Makefile" ;;
16476    "utils/sc_attach/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_attach/Makefile" ;;
16477    "utils/sc_bdrmap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_bdrmap/Makefile" ;;
16478    "utils/sc_erosprober/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_erosprober/Makefile" ;;
16479    "utils/sc_hoiho/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_hoiho/Makefile" ;;
16480    "utils/sc_filterpolicy/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_filterpolicy/Makefile" ;;
16481    "utils/sc_ipiddump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ipiddump/Makefile" ;;
16482    "utils/sc_pinger/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_pinger/Makefile" ;;
16483    "utils/sc_prefixscan/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_prefixscan/Makefile" ;;
16484    "utils/sc_radargun/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_radargun/Makefile" ;;
16485    "utils/sc_remoted/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_remoted/Makefile" ;;
16486    "utils/sc_speedtrap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_speedtrap/Makefile" ;;
16487    "utils/sc_tbitblind/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitblind/Makefile" ;;
16488    "utils/sc_tbitpmtud/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tbitpmtud/Makefile" ;;
16489    "utils/sc_tracediff/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_tracediff/Makefile" ;;
16490    "utils/sc_ttlexp/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_ttlexp/Makefile" ;;
16491    "utils/sc_uptime/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_uptime/Makefile" ;;
16492    "utils/sc_warts2csv/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2csv/Makefile" ;;
16493    "utils/sc_warts2json/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2json/Makefile" ;;
16494    "utils/sc_warts2pcap/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2pcap/Makefile" ;;
16495    "utils/sc_warts2text/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_warts2text/Makefile" ;;
16496    "utils/sc_wartscat/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartscat/Makefile" ;;
16497    "utils/sc_wartsdump/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsdump/Makefile" ;;
16498    "utils/sc_wartsfilter/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfilter/Makefile" ;;
16499    "utils/sc_wartsfix/Makefile") CONFIG_FILES="$CONFIG_FILES utils/sc_wartsfix/Makefile" ;;
16500
16501  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16502  esac
16503done
16504
16505
16506# If the user did not use the arguments to specify the items to instantiate,
16507# then the envvar interface is used.  Set only those that are not.
16508# We use the long form for the default assignment because of an extremely
16509# bizarre bug on SunOS 4.1.3.
16510if $ac_need_defaults; then
16511  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16512  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16513  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16514fi
16515
16516# Have a temporary directory for convenience.  Make it in the build tree
16517# simply because there is no reason against having it here, and in addition,
16518# creating and moving files from /tmp can sometimes cause problems.
16519# Hook for its removal unless debugging.
16520# Note that there is a small window in which the directory will not be cleaned:
16521# after its creation but before its name has been assigned to `$tmp'.
16522$debug ||
16523{
16524  tmp= ac_tmp=
16525  trap 'exit_status=$?
16526  : "${ac_tmp:=$tmp}"
16527  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16528' 0
16529  trap 'as_fn_exit 1' 1 2 13 15
16530}
16531# Create a (secure) tmp directory for tmp files.
16532
16533{
16534  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16535  test -d "$tmp"
16536}  ||
16537{
16538  tmp=./conf$$-$RANDOM
16539  (umask 077 && mkdir "$tmp")
16540} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16541ac_tmp=$tmp
16542
16543# Set up the scripts for CONFIG_FILES section.
16544# No need to generate them if there are no CONFIG_FILES.
16545# This happens for instance with `./config.status config.h'.
16546if test -n "$CONFIG_FILES"; then
16547
16548
16549ac_cr=`echo X | tr X '\015'`
16550# On cygwin, bash can eat \r inside `` if the user requested igncr.
16551# But we know of no other shell where ac_cr would be empty at this
16552# point, so we can use a bashism as a fallback.
16553if test "x$ac_cr" = x; then
16554  eval ac_cr=\$\'\\r\'
16555fi
16556ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16557if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16558  ac_cs_awk_cr='\\r'
16559else
16560  ac_cs_awk_cr=$ac_cr
16561fi
16562
16563echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16564_ACEOF
16565
16566
16567{
16568  echo "cat >conf$$subs.awk <<_ACEOF" &&
16569  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16570  echo "_ACEOF"
16571} >conf$$subs.sh ||
16572  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16573ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16574ac_delim='%!_!# '
16575for ac_last_try in false false false false false :; do
16576  . ./conf$$subs.sh ||
16577    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16578
16579  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16580  if test $ac_delim_n = $ac_delim_num; then
16581    break
16582  elif $ac_last_try; then
16583    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16584  else
16585    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16586  fi
16587done
16588rm -f conf$$subs.sh
16589
16590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16591cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16592_ACEOF
16593sed -n '
16594h
16595s/^/S["/; s/!.*/"]=/
16596p
16597g
16598s/^[^!]*!//
16599:repl
16600t repl
16601s/'"$ac_delim"'$//
16602t delim
16603:nl
16604h
16605s/\(.\{148\}\)..*/\1/
16606t more1
16607s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16608p
16609n
16610b repl
16611:more1
16612s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16613p
16614g
16615s/.\{148\}//
16616t nl
16617:delim
16618h
16619s/\(.\{148\}\)..*/\1/
16620t more2
16621s/["\\]/\\&/g; s/^/"/; s/$/"/
16622p
16623b
16624:more2
16625s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16626p
16627g
16628s/.\{148\}//
16629t delim
16630' <conf$$subs.awk | sed '
16631/^[^""]/{
16632  N
16633  s/\n//
16634}
16635' >>$CONFIG_STATUS || ac_write_fail=1
16636rm -f conf$$subs.awk
16637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16638_ACAWK
16639cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16640  for (key in S) S_is_set[key] = 1
16641  FS = ""
16642
16643}
16644{
16645  line = $ 0
16646  nfields = split(line, field, "@")
16647  substed = 0
16648  len = length(field[1])
16649  for (i = 2; i < nfields; i++) {
16650    key = field[i]
16651    keylen = length(key)
16652    if (S_is_set[key]) {
16653      value = S[key]
16654      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16655      len += length(value) + length(field[++i])
16656      substed = 1
16657    } else
16658      len += 1 + keylen
16659  }
16660
16661  print line
16662}
16663
16664_ACAWK
16665_ACEOF
16666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16667if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16668  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16669else
16670  cat
16671fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16672  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16673_ACEOF
16674
16675# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16676# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16677# trailing colons and then remove the whole line if VPATH becomes empty
16678# (actually we leave an empty line to preserve line numbers).
16679if test "x$srcdir" = x.; then
16680  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16681h
16682s///
16683s/^/:/
16684s/[	 ]*$/:/
16685s/:\$(srcdir):/:/g
16686s/:\${srcdir}:/:/g
16687s/:@srcdir@:/:/g
16688s/^:*//
16689s/:*$//
16690x
16691s/\(=[	 ]*\).*/\1/
16692G
16693s/\n//
16694s/^[^=]*=[	 ]*$//
16695}'
16696fi
16697
16698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16699fi # test -n "$CONFIG_FILES"
16700
16701# Set up the scripts for CONFIG_HEADERS section.
16702# No need to generate them if there are no CONFIG_HEADERS.
16703# This happens for instance with `./config.status Makefile'.
16704if test -n "$CONFIG_HEADERS"; then
16705cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16706BEGIN {
16707_ACEOF
16708
16709# Transform confdefs.h into an awk script `defines.awk', embedded as
16710# here-document in config.status, that substitutes the proper values into
16711# config.h.in to produce config.h.
16712
16713# Create a delimiter string that does not exist in confdefs.h, to ease
16714# handling of long lines.
16715ac_delim='%!_!# '
16716for ac_last_try in false false :; do
16717  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16718  if test -z "$ac_tt"; then
16719    break
16720  elif $ac_last_try; then
16721    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16722  else
16723    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16724  fi
16725done
16726
16727# For the awk script, D is an array of macro values keyed by name,
16728# likewise P contains macro parameters if any.  Preserve backslash
16729# newline sequences.
16730
16731ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16732sed -n '
16733s/.\{148\}/&'"$ac_delim"'/g
16734t rset
16735:rset
16736s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16737t def
16738d
16739:def
16740s/\\$//
16741t bsnl
16742s/["\\]/\\&/g
16743s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16744D["\1"]=" \3"/p
16745s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16746d
16747:bsnl
16748s/["\\]/\\&/g
16749s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16750D["\1"]=" \3\\\\\\n"\\/p
16751t cont
16752s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16753t cont
16754d
16755:cont
16756n
16757s/.\{148\}/&'"$ac_delim"'/g
16758t clear
16759:clear
16760s/\\$//
16761t bsnlc
16762s/["\\]/\\&/g; s/^/"/; s/$/"/p
16763d
16764:bsnlc
16765s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16766b cont
16767' <confdefs.h | sed '
16768s/'"$ac_delim"'/"\\\
16769"/g' >>$CONFIG_STATUS || ac_write_fail=1
16770
16771cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16772  for (key in D) D_is_set[key] = 1
16773  FS = ""
16774}
16775/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16776  line = \$ 0
16777  split(line, arg, " ")
16778  if (arg[1] == "#") {
16779    defundef = arg[2]
16780    mac1 = arg[3]
16781  } else {
16782    defundef = substr(arg[1], 2)
16783    mac1 = arg[2]
16784  }
16785  split(mac1, mac2, "(") #)
16786  macro = mac2[1]
16787  prefix = substr(line, 1, index(line, defundef) - 1)
16788  if (D_is_set[macro]) {
16789    # Preserve the white space surrounding the "#".
16790    print prefix "define", macro P[macro] D[macro]
16791    next
16792  } else {
16793    # Replace #undef with comments.  This is necessary, for example,
16794    # in the case of _POSIX_SOURCE, which is predefined and required
16795    # on some systems where configure will not decide to define it.
16796    if (defundef == "undef") {
16797      print "/*", prefix defundef, macro, "*/"
16798      next
16799    }
16800  }
16801}
16802{ print }
16803_ACAWK
16804_ACEOF
16805cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16806  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16807fi # test -n "$CONFIG_HEADERS"
16808
16809
16810eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16811shift
16812for ac_tag
16813do
16814  case $ac_tag in
16815  :[FHLC]) ac_mode=$ac_tag; continue;;
16816  esac
16817  case $ac_mode$ac_tag in
16818  :[FHL]*:*);;
16819  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16820  :[FH]-) ac_tag=-:-;;
16821  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16822  esac
16823  ac_save_IFS=$IFS
16824  IFS=:
16825  set x $ac_tag
16826  IFS=$ac_save_IFS
16827  shift
16828  ac_file=$1
16829  shift
16830
16831  case $ac_mode in
16832  :L) ac_source=$1;;
16833  :[FH])
16834    ac_file_inputs=
16835    for ac_f
16836    do
16837      case $ac_f in
16838      -) ac_f="$ac_tmp/stdin";;
16839      *) # Look for the file first in the build tree, then in the source tree
16840	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16841	 # because $ac_f cannot contain `:'.
16842	 test -f "$ac_f" ||
16843	   case $ac_f in
16844	   [\\/$]*) false;;
16845	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16846	   esac ||
16847	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16848      esac
16849      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16850      as_fn_append ac_file_inputs " '$ac_f'"
16851    done
16852
16853    # Let's still pretend it is `configure' which instantiates (i.e., don't
16854    # use $as_me), people would be surprised to read:
16855    #    /* config.h.  Generated by config.status.  */
16856    configure_input='Generated from '`
16857	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16858	`' by configure.'
16859    if test x"$ac_file" != x-; then
16860      configure_input="$ac_file.  $configure_input"
16861      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16862$as_echo "$as_me: creating $ac_file" >&6;}
16863    fi
16864    # Neutralize special characters interpreted by sed in replacement strings.
16865    case $configure_input in #(
16866    *\&* | *\|* | *\\* )
16867       ac_sed_conf_input=`$as_echo "$configure_input" |
16868       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16869    *) ac_sed_conf_input=$configure_input;;
16870    esac
16871
16872    case $ac_tag in
16873    *:-:* | *:-) cat >"$ac_tmp/stdin" \
16874      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16875    esac
16876    ;;
16877  esac
16878
16879  ac_dir=`$as_dirname -- "$ac_file" ||
16880$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16881	 X"$ac_file" : 'X\(//\)[^/]' \| \
16882	 X"$ac_file" : 'X\(//\)$' \| \
16883	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16884$as_echo X"$ac_file" |
16885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16886	    s//\1/
16887	    q
16888	  }
16889	  /^X\(\/\/\)[^/].*/{
16890	    s//\1/
16891	    q
16892	  }
16893	  /^X\(\/\/\)$/{
16894	    s//\1/
16895	    q
16896	  }
16897	  /^X\(\/\).*/{
16898	    s//\1/
16899	    q
16900	  }
16901	  s/.*/./; q'`
16902  as_dir="$ac_dir"; as_fn_mkdir_p
16903  ac_builddir=.
16904
16905case "$ac_dir" in
16906.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16907*)
16908  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16909  # A ".." for each directory in $ac_dir_suffix.
16910  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16911  case $ac_top_builddir_sub in
16912  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16913  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16914  esac ;;
16915esac
16916ac_abs_top_builddir=$ac_pwd
16917ac_abs_builddir=$ac_pwd$ac_dir_suffix
16918# for backward compatibility:
16919ac_top_builddir=$ac_top_build_prefix
16920
16921case $srcdir in
16922  .)  # We are building in place.
16923    ac_srcdir=.
16924    ac_top_srcdir=$ac_top_builddir_sub
16925    ac_abs_top_srcdir=$ac_pwd ;;
16926  [\\/]* | ?:[\\/]* )  # Absolute name.
16927    ac_srcdir=$srcdir$ac_dir_suffix;
16928    ac_top_srcdir=$srcdir
16929    ac_abs_top_srcdir=$srcdir ;;
16930  *) # Relative name.
16931    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16932    ac_top_srcdir=$ac_top_build_prefix$srcdir
16933    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16934esac
16935ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16936
16937
16938  case $ac_mode in
16939  :F)
16940  #
16941  # CONFIG_FILE
16942  #
16943
16944  case $INSTALL in
16945  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16946  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16947  esac
16948  ac_MKDIR_P=$MKDIR_P
16949  case $MKDIR_P in
16950  [\\/$]* | ?:[\\/]* ) ;;
16951  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16952  esac
16953_ACEOF
16954
16955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16956# If the template does not know about datarootdir, expand it.
16957# FIXME: This hack should be removed a few years after 2.60.
16958ac_datarootdir_hack=; ac_datarootdir_seen=
16959ac_sed_dataroot='
16960/datarootdir/ {
16961  p
16962  q
16963}
16964/@datadir@/p
16965/@docdir@/p
16966/@infodir@/p
16967/@localedir@/p
16968/@mandir@/p'
16969case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16970*datarootdir*) ac_datarootdir_seen=yes;;
16971*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16972  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16973$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16974_ACEOF
16975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16976  ac_datarootdir_hack='
16977  s&@datadir@&$datadir&g
16978  s&@docdir@&$docdir&g
16979  s&@infodir@&$infodir&g
16980  s&@localedir@&$localedir&g
16981  s&@mandir@&$mandir&g
16982  s&\\\${datarootdir}&$datarootdir&g' ;;
16983esac
16984_ACEOF
16985
16986# Neutralize VPATH when `$srcdir' = `.'.
16987# Shell code in configure.ac might set extrasub.
16988# FIXME: do we really want to maintain this feature?
16989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16990ac_sed_extra="$ac_vpsub
16991$extrasub
16992_ACEOF
16993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16994:t
16995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16996s|@configure_input@|$ac_sed_conf_input|;t t
16997s&@top_builddir@&$ac_top_builddir_sub&;t t
16998s&@top_build_prefix@&$ac_top_build_prefix&;t t
16999s&@srcdir@&$ac_srcdir&;t t
17000s&@abs_srcdir@&$ac_abs_srcdir&;t t
17001s&@top_srcdir@&$ac_top_srcdir&;t t
17002s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17003s&@builddir@&$ac_builddir&;t t
17004s&@abs_builddir@&$ac_abs_builddir&;t t
17005s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17006s&@INSTALL@&$ac_INSTALL&;t t
17007s&@MKDIR_P@&$ac_MKDIR_P&;t t
17008$ac_datarootdir_hack
17009"
17010eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17011  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17012
17013test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17014  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17015  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
17016      "$ac_tmp/out"`; test -z "$ac_out"; } &&
17017  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17018which seems to be undefined.  Please make sure it is defined" >&5
17019$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17020which seems to be undefined.  Please make sure it is defined" >&2;}
17021
17022  rm -f "$ac_tmp/stdin"
17023  case $ac_file in
17024  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17025  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17026  esac \
17027  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17028 ;;
17029  :H)
17030  #
17031  # CONFIG_HEADER
17032  #
17033  if test x"$ac_file" != x-; then
17034    {
17035      $as_echo "/* $configure_input  */" \
17036      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17037    } >"$ac_tmp/config.h" \
17038      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17039    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17040      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17041$as_echo "$as_me: $ac_file is unchanged" >&6;}
17042    else
17043      rm -f "$ac_file"
17044      mv "$ac_tmp/config.h" "$ac_file" \
17045	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
17046    fi
17047  else
17048    $as_echo "/* $configure_input  */" \
17049      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17050      || as_fn_error $? "could not create -" "$LINENO" 5
17051  fi
17052# Compute "$ac_file"'s index in $config_headers.
17053_am_arg="$ac_file"
17054_am_stamp_count=1
17055for _am_header in $config_headers :; do
17056  case $_am_header in
17057    $_am_arg | $_am_arg:* )
17058      break ;;
17059    * )
17060      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17061  esac
17062done
17063echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17064$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17065	 X"$_am_arg" : 'X\(//\)[^/]' \| \
17066	 X"$_am_arg" : 'X\(//\)$' \| \
17067	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17068$as_echo X"$_am_arg" |
17069    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17070	    s//\1/
17071	    q
17072	  }
17073	  /^X\(\/\/\)[^/].*/{
17074	    s//\1/
17075	    q
17076	  }
17077	  /^X\(\/\/\)$/{
17078	    s//\1/
17079	    q
17080	  }
17081	  /^X\(\/\).*/{
17082	    s//\1/
17083	    q
17084	  }
17085	  s/.*/./; q'`/stamp-h$_am_stamp_count
17086 ;;
17087
17088  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17089$as_echo "$as_me: executing $ac_file commands" >&6;}
17090 ;;
17091  esac
17092
17093
17094  case $ac_file$ac_mode in
17095    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17096  # Older Autoconf quotes --file arguments for eval, but not when files
17097  # are listed without --file.  Let's play safe and only enable the eval
17098  # if we detect the quoting.
17099  # TODO: see whether this extra hack can be removed once we start
17100  # requiring Autoconf 2.70 or later.
17101  case $CONFIG_FILES in @%:@(
17102  *\'*) :
17103    eval set x "$CONFIG_FILES" ;; @%:@(
17104  *) :
17105    set x $CONFIG_FILES ;; @%:@(
17106  *) :
17107     ;;
17108esac
17109  shift
17110  # Used to flag and report bootstrapping failures.
17111  am_rc=0
17112  for am_mf
17113  do
17114    # Strip MF so we end up with the name of the file.
17115    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
17116    # Check whether this is an Automake generated Makefile which includes
17117    # dependency-tracking related rules and includes.
17118    # Grep'ing the whole file directly is not great: AIX grep has a line
17119    # limit of 2048, but all sed's we know have understand at least 4000.
17120    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
17121      || continue
17122    am_dirpart=`$as_dirname -- "$am_mf" ||
17123$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17124	 X"$am_mf" : 'X\(//\)[^/]' \| \
17125	 X"$am_mf" : 'X\(//\)$' \| \
17126	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17127$as_echo X"$am_mf" |
17128    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17129	    s//\1/
17130	    q
17131	  }
17132	  /^X\(\/\/\)[^/].*/{
17133	    s//\1/
17134	    q
17135	  }
17136	  /^X\(\/\/\)$/{
17137	    s//\1/
17138	    q
17139	  }
17140	  /^X\(\/\).*/{
17141	    s//\1/
17142	    q
17143	  }
17144	  s/.*/./; q'`
17145    am_filepart=`$as_basename -- "$am_mf" ||
17146$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
17147	 X"$am_mf" : 'X\(//\)$' \| \
17148	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
17149$as_echo X/"$am_mf" |
17150    sed '/^.*\/\([^/][^/]*\)\/*$/{
17151	    s//\1/
17152	    q
17153	  }
17154	  /^X\/\(\/\/\)$/{
17155	    s//\1/
17156	    q
17157	  }
17158	  /^X\/\(\/\).*/{
17159	    s//\1/
17160	    q
17161	  }
17162	  s/.*/./; q'`
17163    { echo "$as_me:$LINENO: cd "$am_dirpart" \
17164      && sed -e '/# am--include-marker/d' "$am_filepart" \
17165        | $MAKE -f - am--depfiles" >&5
17166   (cd "$am_dirpart" \
17167      && sed -e '/# am--include-marker/d' "$am_filepart" \
17168        | $MAKE -f - am--depfiles) >&5 2>&5
17169   ac_status=$?
17170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171   (exit $ac_status); } || am_rc=$?
17172  done
17173  if test $am_rc -ne 0; then
17174    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17176as_fn_error $? "Something went wrong bootstrapping makefile fragments
17177    for automatic dependency tracking.  If GNU make was not used, consider
17178    re-running the configure script with MAKE=\"gmake\" (or whatever is
17179    necessary).  You can also try re-running configure with the
17180    '--disable-dependency-tracking' option to at least be able to build
17181    the package (albeit without support for automatic dependency tracking).
17182See \`config.log' for more details" "$LINENO" 5; }
17183  fi
17184  { am_dirpart=; unset am_dirpart;}
17185  { am_filepart=; unset am_filepart;}
17186  { am_mf=; unset am_mf;}
17187  { am_rc=; unset am_rc;}
17188  rm -f conftest-deps.mk
17189}
17190 ;;
17191    "libtool":C)
17192
17193    # See if we are running on zsh, and set the options that allow our
17194    # commands through without removal of \ escapes.
17195    if test -n "${ZSH_VERSION+set}"; then
17196      setopt NO_GLOB_SUBST
17197    fi
17198
17199    cfgfile=${ofile}T
17200    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17201    $RM "$cfgfile"
17202
17203    cat <<_LT_EOF >> "$cfgfile"
17204#! $SHELL
17205# Generated automatically by $as_me ($PACKAGE) $VERSION
17206# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17207# NOTE: Changes made to this file will be lost: look at ltmain.sh.
17208
17209# Provide generalized library-building support services.
17210# Written by Gordon Matzigkeit, 1996
17211
17212# Copyright (C) 2014 Free Software Foundation, Inc.
17213# This is free software; see the source for copying conditions.  There is NO
17214# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17215
17216# GNU Libtool is free software; you can redistribute it and/or modify
17217# it under the terms of the GNU General Public License as published by
17218# the Free Software Foundation; either version 2 of of the License, or
17219# (at your option) any later version.
17220#
17221# As a special exception to the GNU General Public License, if you
17222# distribute this file as part of a program or library that is built
17223# using GNU Libtool, you may include this file under the  same
17224# distribution terms that you use for the rest of that program.
17225#
17226# GNU Libtool is distributed in the hope that it will be useful, but
17227# WITHOUT ANY WARRANTY; without even the implied warranty of
17228# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17229# GNU General Public License for more details.
17230#
17231# You should have received a copy of the GNU General Public License
17232# along with this program.  If not, see <http://www.gnu.org/licenses/>.
17233
17234
17235# The names of the tagged configurations supported by this script.
17236available_tags=''
17237
17238# Configured defaults for sys_lib_dlsearch_path munging.
17239: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
17240
17241# ### BEGIN LIBTOOL CONFIG
17242
17243# Which release of libtool.m4 was used?
17244macro_version=$macro_version
17245macro_revision=$macro_revision
17246
17247# Whether or not to build shared libraries.
17248build_libtool_libs=$enable_shared
17249
17250# Whether or not to build static libraries.
17251build_old_libs=$enable_static
17252
17253# What type of objects to build.
17254pic_mode=$pic_mode
17255
17256# Whether or not to optimize for fast installation.
17257fast_install=$enable_fast_install
17258
17259# Shared archive member basename,for filename based shared library versioning on AIX.
17260shared_archive_member_spec=$shared_archive_member_spec
17261
17262# Shell to use when invoking shell scripts.
17263SHELL=$lt_SHELL
17264
17265# An echo program that protects backslashes.
17266ECHO=$lt_ECHO
17267
17268# The PATH separator for the build system.
17269PATH_SEPARATOR=$lt_PATH_SEPARATOR
17270
17271# The host system.
17272host_alias=$host_alias
17273host=$host
17274host_os=$host_os
17275
17276# The build system.
17277build_alias=$build_alias
17278build=$build
17279build_os=$build_os
17280
17281# A sed program that does not truncate output.
17282SED=$lt_SED
17283
17284# Sed that helps us avoid accidentally triggering echo(1) options like -n.
17285Xsed="\$SED -e 1s/^X//"
17286
17287# A grep program that handles long lines.
17288GREP=$lt_GREP
17289
17290# An ERE matcher.
17291EGREP=$lt_EGREP
17292
17293# A literal string matcher.
17294FGREP=$lt_FGREP
17295
17296# A BSD- or MS-compatible name lister.
17297NM=$lt_NM
17298
17299# Whether we need soft or hard links.
17300LN_S=$lt_LN_S
17301
17302# What is the maximum length of a command?
17303max_cmd_len=$max_cmd_len
17304
17305# Object file suffix (normally "o").
17306objext=$ac_objext
17307
17308# Executable file suffix (normally "").
17309exeext=$exeext
17310
17311# whether the shell understands "unset".
17312lt_unset=$lt_unset
17313
17314# turn spaces into newlines.
17315SP2NL=$lt_lt_SP2NL
17316
17317# turn newlines into spaces.
17318NL2SP=$lt_lt_NL2SP
17319
17320# convert \$build file names to \$host format.
17321to_host_file_cmd=$lt_cv_to_host_file_cmd
17322
17323# convert \$build files to toolchain format.
17324to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17325
17326# An object symbol dumper.
17327OBJDUMP=$lt_OBJDUMP
17328
17329# Method to check whether dependent libraries are shared objects.
17330deplibs_check_method=$lt_deplibs_check_method
17331
17332# Command to use when deplibs_check_method = "file_magic".
17333file_magic_cmd=$lt_file_magic_cmd
17334
17335# How to find potential files when deplibs_check_method = "file_magic".
17336file_magic_glob=$lt_file_magic_glob
17337
17338# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17339want_nocaseglob=$lt_want_nocaseglob
17340
17341# DLL creation program.
17342DLLTOOL=$lt_DLLTOOL
17343
17344# Command to associate shared and link libraries.
17345sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17346
17347# The archiver.
17348AR=$lt_AR
17349
17350# Flags to create an archive.
17351AR_FLAGS=$lt_AR_FLAGS
17352
17353# How to feed a file listing to the archiver.
17354archiver_list_spec=$lt_archiver_list_spec
17355
17356# A symbol stripping program.
17357STRIP=$lt_STRIP
17358
17359# Commands used to install an old-style archive.
17360RANLIB=$lt_RANLIB
17361old_postinstall_cmds=$lt_old_postinstall_cmds
17362old_postuninstall_cmds=$lt_old_postuninstall_cmds
17363
17364# Whether to use a lock for old archive extraction.
17365lock_old_archive_extraction=$lock_old_archive_extraction
17366
17367# A C compiler.
17368LTCC=$lt_CC
17369
17370# LTCC compiler flags.
17371LTCFLAGS=$lt_CFLAGS
17372
17373# Take the output of nm and produce a listing of raw symbols and C names.
17374global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17375
17376# Transform the output of nm in a proper C declaration.
17377global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17378
17379# Transform the output of nm into a list of symbols to manually relocate.
17380global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
17381
17382# Transform the output of nm in a C name address pair.
17383global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17384
17385# Transform the output of nm in a C name address pair when lib prefix is needed.
17386global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17387
17388# The name lister interface.
17389nm_interface=$lt_lt_cv_nm_interface
17390
17391# Specify filename containing input files for \$NM.
17392nm_file_list_spec=$lt_nm_file_list_spec
17393
17394# The root where to search for dependent libraries,and where our libraries should be installed.
17395lt_sysroot=$lt_sysroot
17396
17397# Command to truncate a binary pipe.
17398lt_truncate_bin=$lt_lt_cv_truncate_bin
17399
17400# The name of the directory that contains temporary libtool files.
17401objdir=$objdir
17402
17403# Used to examine libraries when file_magic_cmd begins with "file".
17404MAGIC_CMD=$MAGIC_CMD
17405
17406# Must we lock files when doing compilation?
17407need_locks=$lt_need_locks
17408
17409# Manifest tool.
17410MANIFEST_TOOL=$lt_MANIFEST_TOOL
17411
17412# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17413DSYMUTIL=$lt_DSYMUTIL
17414
17415# Tool to change global to local symbols on Mac OS X.
17416NMEDIT=$lt_NMEDIT
17417
17418# Tool to manipulate fat objects and archives on Mac OS X.
17419LIPO=$lt_LIPO
17420
17421# ldd/readelf like tool for Mach-O binaries on Mac OS X.
17422OTOOL=$lt_OTOOL
17423
17424# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17425OTOOL64=$lt_OTOOL64
17426
17427# Old archive suffix (normally "a").
17428libext=$libext
17429
17430# Shared library suffix (normally ".so").
17431shrext_cmds=$lt_shrext_cmds
17432
17433# The commands to extract the exported symbol list from a shared archive.
17434extract_expsyms_cmds=$lt_extract_expsyms_cmds
17435
17436# Variables whose values should be saved in libtool wrapper scripts and
17437# restored at link time.
17438variables_saved_for_relink=$lt_variables_saved_for_relink
17439
17440# Do we need the "lib" prefix for modules?
17441need_lib_prefix=$need_lib_prefix
17442
17443# Do we need a version for libraries?
17444need_version=$need_version
17445
17446# Library versioning type.
17447version_type=$version_type
17448
17449# Shared library runtime path variable.
17450runpath_var=$runpath_var
17451
17452# Shared library path variable.
17453shlibpath_var=$shlibpath_var
17454
17455# Is shlibpath searched before the hard-coded library search path?
17456shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17457
17458# Format of library name prefix.
17459libname_spec=$lt_libname_spec
17460
17461# List of archive names.  First name is the real one, the rest are links.
17462# The last name is the one that the linker finds with -lNAME
17463library_names_spec=$lt_library_names_spec
17464
17465# The coded name of the library, if different from the real name.
17466soname_spec=$lt_soname_spec
17467
17468# Permission mode override for installation of shared libraries.
17469install_override_mode=$lt_install_override_mode
17470
17471# Command to use after installation of a shared archive.
17472postinstall_cmds=$lt_postinstall_cmds
17473
17474# Command to use after uninstallation of a shared archive.
17475postuninstall_cmds=$lt_postuninstall_cmds
17476
17477# Commands used to finish a libtool library installation in a directory.
17478finish_cmds=$lt_finish_cmds
17479
17480# As "finish_cmds", except a single script fragment to be evaled but
17481# not shown.
17482finish_eval=$lt_finish_eval
17483
17484# Whether we should hardcode library paths into libraries.
17485hardcode_into_libs=$hardcode_into_libs
17486
17487# Compile-time system search path for libraries.
17488sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17489
17490# Detected run-time system search path for libraries.
17491sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
17492
17493# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
17494configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
17495
17496# Whether dlopen is supported.
17497dlopen_support=$enable_dlopen
17498
17499# Whether dlopen of programs is supported.
17500dlopen_self=$enable_dlopen_self
17501
17502# Whether dlopen of statically linked programs is supported.
17503dlopen_self_static=$enable_dlopen_self_static
17504
17505# Commands to strip libraries.
17506old_striplib=$lt_old_striplib
17507striplib=$lt_striplib
17508
17509
17510# The linker used to build libraries.
17511LD=$lt_LD
17512
17513# How to create reloadable object files.
17514reload_flag=$lt_reload_flag
17515reload_cmds=$lt_reload_cmds
17516
17517# Commands used to build an old-style archive.
17518old_archive_cmds=$lt_old_archive_cmds
17519
17520# A language specific compiler.
17521CC=$lt_compiler
17522
17523# Is the compiler the GNU compiler?
17524with_gcc=$GCC
17525
17526# Compiler flag to turn off builtin functions.
17527no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17528
17529# Additional compiler flags for building library objects.
17530pic_flag=$lt_lt_prog_compiler_pic
17531
17532# How to pass a linker flag through the compiler.
17533wl=$lt_lt_prog_compiler_wl
17534
17535# Compiler flag to prevent dynamic linking.
17536link_static_flag=$lt_lt_prog_compiler_static
17537
17538# Does compiler simultaneously support -c and -o options?
17539compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17540
17541# Whether or not to add -lc for building shared libraries.
17542build_libtool_need_lc=$archive_cmds_need_lc
17543
17544# Whether or not to disallow shared libs when runtime libs are static.
17545allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17546
17547# Compiler flag to allow reflexive dlopens.
17548export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17549
17550# Compiler flag to generate shared objects directly from archives.
17551whole_archive_flag_spec=$lt_whole_archive_flag_spec
17552
17553# Whether the compiler copes with passing no objects directly.
17554compiler_needs_object=$lt_compiler_needs_object
17555
17556# Create an old-style archive from a shared archive.
17557old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17558
17559# Create a temporary old-style archive to link instead of a shared archive.
17560old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17561
17562# Commands used to build a shared archive.
17563archive_cmds=$lt_archive_cmds
17564archive_expsym_cmds=$lt_archive_expsym_cmds
17565
17566# Commands used to build a loadable module if different from building
17567# a shared archive.
17568module_cmds=$lt_module_cmds
17569module_expsym_cmds=$lt_module_expsym_cmds
17570
17571# Whether we are building with GNU ld or not.
17572with_gnu_ld=$lt_with_gnu_ld
17573
17574# Flag that allows shared libraries with undefined symbols to be built.
17575allow_undefined_flag=$lt_allow_undefined_flag
17576
17577# Flag that enforces no undefined symbols.
17578no_undefined_flag=$lt_no_undefined_flag
17579
17580# Flag to hardcode \$libdir into a binary during linking.
17581# This must work even if \$libdir does not exist
17582hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17583
17584# Whether we need a single "-rpath" flag with a separated argument.
17585hardcode_libdir_separator=$lt_hardcode_libdir_separator
17586
17587# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17588# DIR into the resulting binary.
17589hardcode_direct=$hardcode_direct
17590
17591# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
17592# DIR into the resulting binary and the resulting library dependency is
17593# "absolute",i.e impossible to change by setting \$shlibpath_var if the
17594# library is relocated.
17595hardcode_direct_absolute=$hardcode_direct_absolute
17596
17597# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17598# into the resulting binary.
17599hardcode_minus_L=$hardcode_minus_L
17600
17601# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17602# into the resulting binary.
17603hardcode_shlibpath_var=$hardcode_shlibpath_var
17604
17605# Set to "yes" if building a shared library automatically hardcodes DIR
17606# into the library and all subsequent libraries and executables linked
17607# against it.
17608hardcode_automatic=$hardcode_automatic
17609
17610# Set to yes if linker adds runtime paths of dependent libraries
17611# to runtime path list.
17612inherit_rpath=$inherit_rpath
17613
17614# Whether libtool must link a program against all its dependency libraries.
17615link_all_deplibs=$link_all_deplibs
17616
17617# Set to "yes" if exported symbols are required.
17618always_export_symbols=$always_export_symbols
17619
17620# The commands to list exported symbols.
17621export_symbols_cmds=$lt_export_symbols_cmds
17622
17623# Symbols that should not be listed in the preloaded symbols.
17624exclude_expsyms=$lt_exclude_expsyms
17625
17626# Symbols that must always be exported.
17627include_expsyms=$lt_include_expsyms
17628
17629# Commands necessary for linking programs (against libraries) with templates.
17630prelink_cmds=$lt_prelink_cmds
17631
17632# Commands necessary for finishing linking programs.
17633postlink_cmds=$lt_postlink_cmds
17634
17635# Specify filename containing input files.
17636file_list_spec=$lt_file_list_spec
17637
17638# How to hardcode a shared library path into an executable.
17639hardcode_action=$hardcode_action
17640
17641# ### END LIBTOOL CONFIG
17642
17643_LT_EOF
17644
17645    cat <<'_LT_EOF' >> "$cfgfile"
17646
17647# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
17648
17649# func_munge_path_list VARIABLE PATH
17650# -----------------------------------
17651# VARIABLE is name of variable containing _space_ separated list of
17652# directories to be munged by the contents of PATH, which is string
17653# having a format:
17654# "DIR[:DIR]:"
17655#       string "DIR[ DIR]" will be prepended to VARIABLE
17656# ":DIR[:DIR]"
17657#       string "DIR[ DIR]" will be appended to VARIABLE
17658# "DIRP[:DIRP]::[DIRA:]DIRA"
17659#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
17660#       "DIRA[ DIRA]" will be appended to VARIABLE
17661# "DIR[:DIR]"
17662#       VARIABLE will be replaced by "DIR[ DIR]"
17663func_munge_path_list ()
17664{
17665    case x@S|@2 in
17666    x)
17667        ;;
17668    *:)
17669        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
17670        ;;
17671    x:*)
17672        eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
17673        ;;
17674    *::*)
17675        eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
17676        eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
17677        ;;
17678    *)
17679        eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
17680        ;;
17681    esac
17682}
17683
17684
17685# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
17686func_cc_basename ()
17687{
17688    for cc_temp in @S|@*""; do
17689      case $cc_temp in
17690        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17691        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17692        \-*) ;;
17693        *) break;;
17694      esac
17695    done
17696    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17697}
17698
17699
17700# ### END FUNCTIONS SHARED WITH CONFIGURE
17701
17702_LT_EOF
17703
17704  case $host_os in
17705  aix3*)
17706    cat <<\_LT_EOF >> "$cfgfile"
17707# AIX sometimes has problems with the GCC collect2 program.  For some
17708# reason, if we set the COLLECT_NAMES environment variable, the problems
17709# vanish in a puff of smoke.
17710if test set != "${COLLECT_NAMES+set}"; then
17711  COLLECT_NAMES=
17712  export COLLECT_NAMES
17713fi
17714_LT_EOF
17715    ;;
17716  esac
17717
17718
17719ltmain=$ac_aux_dir/ltmain.sh
17720
17721
17722  # We use sed instead of cat because bash on DJGPP gets confused if
17723  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
17724  # text mode, it properly converts lines to CR/LF.  This bash problem
17725  # is reportedly fixed, but why not run on old versions too?
17726  sed '$q' "$ltmain" >> "$cfgfile" \
17727     || (rm -f "$cfgfile"; exit 1)
17728
17729   mv -f "$cfgfile" "$ofile" ||
17730    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17731  chmod +x "$ofile"
17732
17733 ;;
17734
17735  esac
17736done # for ac_tag
17737
17738
17739as_fn_exit 0
17740_ACEOF
17741ac_clean_files=$ac_clean_files_save
17742
17743test $ac_write_fail = 0 ||
17744  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17745
17746
17747# configure is writing to config.log, and then calls config.status.
17748# config.status does its own redirection, appending to config.log.
17749# Unfortunately, on DOS this fails, as config.log is still kept open
17750# by configure, so config.status won't be able to write to it; its
17751# output is simply discarded.  So we exec the FD to /dev/null,
17752# effectively closing config.log, so it can be properly (re)opened and
17753# appended to by config.status.  When coming back to configure, we
17754# need to make the FD available again.
17755if test "$no_create" != yes; then
17756  ac_cs_success=:
17757  ac_config_status_args=
17758  test "$silent" = yes &&
17759    ac_config_status_args="$ac_config_status_args --quiet"
17760  exec 5>/dev/null
17761  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17762  exec 5>>config.log
17763  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17764  # would make configure fail if this is the last instruction.
17765  $ac_cs_success || as_fn_exit 1
17766fi
17767if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17768  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17769$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17770fi
17771
17772