1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66 for cgi 0.10.
4#
5# Report bugs to <courier-users@lists.sourceforge.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1
177
178  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    PATH=/empty FPATH=/empty; export PATH FPATH
183    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185  if (eval "$as_required") 2>/dev/null; then :
186  as_have_required=yes
187else
188  as_have_required=no
189fi
190  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
191
192else
193  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
194as_found=false
195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
196do
197  IFS=$as_save_IFS
198  test -z "$as_dir" && as_dir=.
199  as_found=:
200  case $as_dir in #(
201	 /*)
202	   for as_base in sh bash ksh sh5; do
203	     # Try only shells that exist, to save several forks.
204	     as_shell=$as_dir/$as_base
205	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  CONFIG_SHELL=$as_shell as_have_required=yes
208		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209  break 2
210fi
211fi
212	   done;;
213       esac
214  as_found=false
215done
216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218  CONFIG_SHELL=$SHELL as_have_required=yes
219fi; }
220IFS=$as_save_IFS
221
222
223      if test "x$CONFIG_SHELL" != x; then :
224  # We cannot yet assume a decent shell, so we have to provide a
225	# neutralization value for shells without unset; and this also
226	# works around shells that cannot unset nonexistent variables.
227	BASH_ENV=/dev/null
228	ENV=/dev/null
229	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
230	export CONFIG_SHELL
231	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232fi
233
234    if test x$as_have_required = xno; then :
235  $as_echo "$0: This script requires a shell more modern than all"
236  $as_echo "$0: the shells that I found on your system."
237  if test x${ZSH_VERSION+set} = xset ; then
238    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240  else
241    $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: courier-users@lists.sourceforge.net about your system,
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246  fi
247  exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265  { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274  return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282  set +e
283  as_fn_set_status $1
284  exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293  case $as_dir in #(
294  -*) as_dir=./$as_dir;;
295  esac
296  test -d "$as_dir" || eval $as_mkdir_p || {
297    as_dirs=
298    while :; do
299      case $as_dir in #(
300      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301      *) as_qdir=$as_dir;;
302      esac
303      as_dirs="'$as_qdir' $as_dirs"
304      as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306	 X"$as_dir" : 'X\(//\)[^/]' \| \
307	 X"$as_dir" : 'X\(//\)$' \| \
308	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\/\)[^/].*/{
315	    s//\1/
316	    q
317	  }
318	  /^X\(\/\/\)$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\).*/{
323	    s//\1/
324	    q
325	  }
326	  s/.*/./; q'`
327      test -d "$as_dir" && break
328    done
329    test -z "$as_dirs" || eval "mkdir $as_dirs"
330  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341  eval 'as_fn_append ()
342  {
343    eval $1+=\$2
344  }'
345else
346  as_fn_append ()
347  {
348    eval $1=\$$1\$2
349  }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358  eval 'as_fn_arith ()
359  {
360    as_val=$(( $* ))
361  }'
362else
363  as_fn_arith ()
364  {
365    as_val=`expr "$@" || test $? -eq 1`
366  }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377  as_status=$1; test $as_status -eq 0 && as_status=1
378  if test "$4"; then
379    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381  fi
382  $as_echo "$as_me: error: $2" >&2
383  as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387   test "X`expr 00001 : '.*\(...\)'`" = X001; then
388  as_expr=expr
389else
390  as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394  as_basename=basename
395else
396  as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400  as_dirname=dirname
401else
402  as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407	 X"$0" : 'X\(//\)$' \| \
408	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410    sed '/^.*\/\([^/][^/]*\)\/*$/{
411	    s//\1/
412	    q
413	  }
414	  /^X\/\(\/\/\)$/{
415	    s//\1/
416	    q
417	  }
418	  /^X\/\(\/\).*/{
419	    s//\1/
420	    q
421	  }
422	  s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432  as_lineno_1=$LINENO as_lineno_1a=$LINENO
433  as_lineno_2=$LINENO as_lineno_2a=$LINENO
434  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
437  sed -n '
438    p
439    /[$]LINENO/=
440  ' <$as_myself |
441    sed '
442      s/[$]LINENO.*/&-/
443      t lineno
444      b
445      :lineno
446      N
447      :loop
448      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449      t loop
450      s/-\n.*//
451    ' >$as_me.lineno &&
452  chmod +x "$as_me.lineno" ||
453    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455  # Don't try to exec as it changes $[0], causing all sort of problems
456  # (the dirname of $[0] is not the place where we might find the
457  # original and so on.  Autoconf is especially sensitive to this).
458  . "./$as_me.lineno"
459  # Exit status is that of the last command.
460  exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466  case `echo 'xy\c'` in
467  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
468  xy)  ECHO_C='\c';;
469  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
470       ECHO_T='	';;
471  esac;;
472*)
473  ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478  rm -f conf$$.dir/conf$$.file
479else
480  rm -f conf$$.dir
481  mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484  if ln -s conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s='ln -s'
486    # ... but there are two gotchas:
487    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489    # In both cases, we have to default to `cp -p'.
490    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491      as_ln_s='cp -p'
492  elif ln conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s=ln
494  else
495    as_ln_s='cp -p'
496  fi
497else
498  as_ln_s='cp -p'
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504  as_mkdir_p='mkdir -p "$as_dir"'
505else
506  test -d ./-p && rmdir ./-p
507  as_mkdir_p=false
508fi
509
510if test -x / >/dev/null 2>&1; then
511  as_test_x='test -x'
512else
513  if ls -dL / >/dev/null 2>&1; then
514    as_ls_L_option=L
515  else
516    as_ls_L_option=
517  fi
518  as_test_x='
519    eval sh -c '\''
520      if test -d "$1"; then
521	test -d "$1/.";
522      else
523	case $1 in #(
524	-*)set "./$1";;
525	esac;
526	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527	???[sx]*):;;*)false;;esac;fi
528    '\'' sh
529  '
530fi
531as_executable_p=$as_test_x
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539SHELL=${CONFIG_SHELL-/bin/sh}
540
541
542test -n "$DJDIR" || exec 7<&0 </dev/null
543exec 6>&1
544
545# Name of the host.
546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547# so uname gets run too.
548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
549
550#
551# Initializations.
552#
553ac_default_prefix=/usr/local
554ac_clean_files=
555ac_config_libobj_dir=.
556LIBOBJS=
557cross_compiling=no
558subdirs=
559MFLAGS=
560MAKEFLAGS=
561
562# Identity of this package.
563PACKAGE_NAME='cgi'
564PACKAGE_TARNAME='cgi'
565PACKAGE_VERSION='0.10'
566PACKAGE_STRING='cgi 0.10'
567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net'
568PACKAGE_URL=''
569
570ac_unique_file="cgi.c"
571# Factoring default headers for most tests.
572ac_includes_default="\
573#include <stdio.h>
574#ifdef HAVE_SYS_TYPES_H
575# include <sys/types.h>
576#endif
577#ifdef HAVE_SYS_STAT_H
578# include <sys/stat.h>
579#endif
580#ifdef STDC_HEADERS
581# include <stdlib.h>
582# include <stddef.h>
583#else
584# ifdef HAVE_STDLIB_H
585#  include <stdlib.h>
586# endif
587#endif
588#ifdef HAVE_STRING_H
589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
590#  include <memory.h>
591# endif
592# include <string.h>
593#endif
594#ifdef HAVE_STRINGS_H
595# include <strings.h>
596#endif
597#ifdef HAVE_INTTYPES_H
598# include <inttypes.h>
599#endif
600#ifdef HAVE_STDINT_H
601# include <stdint.h>
602#endif
603#ifdef HAVE_UNISTD_H
604# include <unistd.h>
605#endif"
606
607ac_subst_vars='am__EXEEXT_FALSE
608am__EXEEXT_TRUE
609LTLIBOBJS
610LIBOBJS
611OTOOL64
612OTOOL
613LIPO
614NMEDIT
615DSYMUTIL
616RANLIB
617AR
618OBJDUMP
619NM
620ac_ct_DUMPBIN
621DUMPBIN
622LD
623FGREP
624SED
625host_os
626host_vendor
627host_cpu
628host
629build_os
630build_vendor
631build_cpu
632build
633LIBTOOL
634LN_S
635EGREP
636GREP
637CPP
638am__fastdepCC_FALSE
639am__fastdepCC_TRUE
640CCDEPMODE
641AMDEPBACKSLASH
642AMDEP_FALSE
643AMDEP_TRUE
644am__quote
645am__include
646DEPDIR
647OBJEXT
648EXEEXT
649ac_ct_CC
650CPPFLAGS
651LDFLAGS
652CFLAGS
653CC
654am__untar
655am__tar
656AMTAR
657am__leading_dot
658SET_MAKE
659AWK
660mkdir_p
661MKDIR_P
662INSTALL_STRIP_PROGRAM
663STRIP
664install_sh
665MAKEINFO
666AUTOHEADER
667AUTOMAKE
668AUTOCONF
669ACLOCAL
670VERSION
671PACKAGE
672CYGPATH_W
673am__isrc
674INSTALL_DATA
675INSTALL_SCRIPT
676INSTALL_PROGRAM
677target_alias
678host_alias
679build_alias
680LIBS
681ECHO_T
682ECHO_N
683ECHO_C
684DEFS
685mandir
686localedir
687libdir
688psdir
689pdfdir
690dvidir
691htmldir
692infodir
693docdir
694oldincludedir
695includedir
696localstatedir
697sharedstatedir
698sysconfdir
699datadir
700datarootdir
701libexecdir
702sbindir
703bindir
704program_transform_name
705prefix
706exec_prefix
707PACKAGE_URL
708PACKAGE_BUGREPORT
709PACKAGE_STRING
710PACKAGE_VERSION
711PACKAGE_TARNAME
712PACKAGE_NAME
713PATH_SEPARATOR
714SHELL'
715ac_subst_files=''
716ac_user_opts='
717enable_option_checking
718enable_dependency_tracking
719enable_shared
720enable_static
721with_pic
722enable_fast_install
723with_gnu_ld
724enable_libtool_lock
725with_formdata
726with_maxargsize
727with_maxformargsize
728'
729      ac_precious_vars='build_alias
730host_alias
731target_alias
732CC
733CFLAGS
734LDFLAGS
735LIBS
736CPPFLAGS
737CPP'
738
739
740# Initialize some variables set by options.
741ac_init_help=
742ac_init_version=false
743ac_unrecognized_opts=
744ac_unrecognized_sep=
745# The variables have the same names as the options, with
746# dashes changed to underlines.
747cache_file=/dev/null
748exec_prefix=NONE
749no_create=
750no_recursion=
751prefix=NONE
752program_prefix=NONE
753program_suffix=NONE
754program_transform_name=s,x,x,
755silent=
756site=
757srcdir=
758verbose=
759x_includes=NONE
760x_libraries=NONE
761
762# Installation directory options.
763# These are left unexpanded so users can "make install exec_prefix=/foo"
764# and all the variables that are supposed to be based on exec_prefix
765# by default will actually change.
766# Use braces instead of parens because sh, perl, etc. also accept them.
767# (The list follows the same order as the GNU Coding Standards.)
768bindir='${exec_prefix}/bin'
769sbindir='${exec_prefix}/sbin'
770libexecdir='${exec_prefix}/libexec'
771datarootdir='${prefix}/share'
772datadir='${datarootdir}'
773sysconfdir='${prefix}/etc'
774sharedstatedir='${prefix}/com'
775localstatedir='${prefix}/var'
776includedir='${prefix}/include'
777oldincludedir='/usr/include'
778docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
779infodir='${datarootdir}/info'
780htmldir='${docdir}'
781dvidir='${docdir}'
782pdfdir='${docdir}'
783psdir='${docdir}'
784libdir='${exec_prefix}/lib'
785localedir='${datarootdir}/locale'
786mandir='${datarootdir}/man'
787
788ac_prev=
789ac_dashdash=
790for ac_option
791do
792  # If the previous option needs an argument, assign it.
793  if test -n "$ac_prev"; then
794    eval $ac_prev=\$ac_option
795    ac_prev=
796    continue
797  fi
798
799  case $ac_option in
800  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
801  *)	ac_optarg=yes ;;
802  esac
803
804  # Accept the important Cygnus configure options, so we can diagnose typos.
805
806  case $ac_dashdash$ac_option in
807  --)
808    ac_dashdash=yes ;;
809
810  -bindir | --bindir | --bindi | --bind | --bin | --bi)
811    ac_prev=bindir ;;
812  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
813    bindir=$ac_optarg ;;
814
815  -build | --build | --buil | --bui | --bu)
816    ac_prev=build_alias ;;
817  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
818    build_alias=$ac_optarg ;;
819
820  -cache-file | --cache-file | --cache-fil | --cache-fi \
821  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
822    ac_prev=cache_file ;;
823  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
824  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
825    cache_file=$ac_optarg ;;
826
827  --config-cache | -C)
828    cache_file=config.cache ;;
829
830  -datadir | --datadir | --datadi | --datad)
831    ac_prev=datadir ;;
832  -datadir=* | --datadir=* | --datadi=* | --datad=*)
833    datadir=$ac_optarg ;;
834
835  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
836  | --dataroo | --dataro | --datar)
837    ac_prev=datarootdir ;;
838  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
839  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
840    datarootdir=$ac_optarg ;;
841
842  -disable-* | --disable-*)
843    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
844    # Reject names that are not valid shell variable names.
845    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
846      as_fn_error $? "invalid feature name: $ac_useropt"
847    ac_useropt_orig=$ac_useropt
848    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
849    case $ac_user_opts in
850      *"
851"enable_$ac_useropt"
852"*) ;;
853      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
854	 ac_unrecognized_sep=', ';;
855    esac
856    eval enable_$ac_useropt=no ;;
857
858  -docdir | --docdir | --docdi | --doc | --do)
859    ac_prev=docdir ;;
860  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861    docdir=$ac_optarg ;;
862
863  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
864    ac_prev=dvidir ;;
865  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866    dvidir=$ac_optarg ;;
867
868  -enable-* | --enable-*)
869    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870    # Reject names that are not valid shell variable names.
871    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872      as_fn_error $? "invalid feature name: $ac_useropt"
873    ac_useropt_orig=$ac_useropt
874    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
875    case $ac_user_opts in
876      *"
877"enable_$ac_useropt"
878"*) ;;
879      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
880	 ac_unrecognized_sep=', ';;
881    esac
882    eval enable_$ac_useropt=\$ac_optarg ;;
883
884  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
885  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
886  | --exec | --exe | --ex)
887    ac_prev=exec_prefix ;;
888  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
889  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
890  | --exec=* | --exe=* | --ex=*)
891    exec_prefix=$ac_optarg ;;
892
893  -gas | --gas | --ga | --g)
894    # Obsolete; use --with-gas.
895    with_gas=yes ;;
896
897  -help | --help | --hel | --he | -h)
898    ac_init_help=long ;;
899  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
900    ac_init_help=recursive ;;
901  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
902    ac_init_help=short ;;
903
904  -host | --host | --hos | --ho)
905    ac_prev=host_alias ;;
906  -host=* | --host=* | --hos=* | --ho=*)
907    host_alias=$ac_optarg ;;
908
909  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
910    ac_prev=htmldir ;;
911  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
912  | --ht=*)
913    htmldir=$ac_optarg ;;
914
915  -includedir | --includedir | --includedi | --included | --include \
916  | --includ | --inclu | --incl | --inc)
917    ac_prev=includedir ;;
918  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
919  | --includ=* | --inclu=* | --incl=* | --inc=*)
920    includedir=$ac_optarg ;;
921
922  -infodir | --infodir | --infodi | --infod | --info | --inf)
923    ac_prev=infodir ;;
924  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
925    infodir=$ac_optarg ;;
926
927  -libdir | --libdir | --libdi | --libd)
928    ac_prev=libdir ;;
929  -libdir=* | --libdir=* | --libdi=* | --libd=*)
930    libdir=$ac_optarg ;;
931
932  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
933  | --libexe | --libex | --libe)
934    ac_prev=libexecdir ;;
935  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
936  | --libexe=* | --libex=* | --libe=*)
937    libexecdir=$ac_optarg ;;
938
939  -localedir | --localedir | --localedi | --localed | --locale)
940    ac_prev=localedir ;;
941  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
942    localedir=$ac_optarg ;;
943
944  -localstatedir | --localstatedir | --localstatedi | --localstated \
945  | --localstate | --localstat | --localsta | --localst | --locals)
946    ac_prev=localstatedir ;;
947  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
948  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
949    localstatedir=$ac_optarg ;;
950
951  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
952    ac_prev=mandir ;;
953  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
954    mandir=$ac_optarg ;;
955
956  -nfp | --nfp | --nf)
957    # Obsolete; use --without-fp.
958    with_fp=no ;;
959
960  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
961  | --no-cr | --no-c | -n)
962    no_create=yes ;;
963
964  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
965  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
966    no_recursion=yes ;;
967
968  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
969  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
970  | --oldin | --oldi | --old | --ol | --o)
971    ac_prev=oldincludedir ;;
972  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
973  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
974  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
975    oldincludedir=$ac_optarg ;;
976
977  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
978    ac_prev=prefix ;;
979  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
980    prefix=$ac_optarg ;;
981
982  -program-prefix | --program-prefix | --program-prefi | --program-pref \
983  | --program-pre | --program-pr | --program-p)
984    ac_prev=program_prefix ;;
985  -program-prefix=* | --program-prefix=* | --program-prefi=* \
986  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
987    program_prefix=$ac_optarg ;;
988
989  -program-suffix | --program-suffix | --program-suffi | --program-suff \
990  | --program-suf | --program-su | --program-s)
991    ac_prev=program_suffix ;;
992  -program-suffix=* | --program-suffix=* | --program-suffi=* \
993  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
994    program_suffix=$ac_optarg ;;
995
996  -program-transform-name | --program-transform-name \
997  | --program-transform-nam | --program-transform-na \
998  | --program-transform-n | --program-transform- \
999  | --program-transform | --program-transfor \
1000  | --program-transfo | --program-transf \
1001  | --program-trans | --program-tran \
1002  | --progr-tra | --program-tr | --program-t)
1003    ac_prev=program_transform_name ;;
1004  -program-transform-name=* | --program-transform-name=* \
1005  | --program-transform-nam=* | --program-transform-na=* \
1006  | --program-transform-n=* | --program-transform-=* \
1007  | --program-transform=* | --program-transfor=* \
1008  | --program-transfo=* | --program-transf=* \
1009  | --program-trans=* | --program-tran=* \
1010  | --progr-tra=* | --program-tr=* | --program-t=*)
1011    program_transform_name=$ac_optarg ;;
1012
1013  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1014    ac_prev=pdfdir ;;
1015  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1016    pdfdir=$ac_optarg ;;
1017
1018  -psdir | --psdir | --psdi | --psd | --ps)
1019    ac_prev=psdir ;;
1020  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1021    psdir=$ac_optarg ;;
1022
1023  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1024  | -silent | --silent | --silen | --sile | --sil)
1025    silent=yes ;;
1026
1027  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1028    ac_prev=sbindir ;;
1029  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1030  | --sbi=* | --sb=*)
1031    sbindir=$ac_optarg ;;
1032
1033  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1034  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1035  | --sharedst | --shareds | --shared | --share | --shar \
1036  | --sha | --sh)
1037    ac_prev=sharedstatedir ;;
1038  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1039  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1040  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1041  | --sha=* | --sh=*)
1042    sharedstatedir=$ac_optarg ;;
1043
1044  -site | --site | --sit)
1045    ac_prev=site ;;
1046  -site=* | --site=* | --sit=*)
1047    site=$ac_optarg ;;
1048
1049  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1050    ac_prev=srcdir ;;
1051  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1052    srcdir=$ac_optarg ;;
1053
1054  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1055  | --syscon | --sysco | --sysc | --sys | --sy)
1056    ac_prev=sysconfdir ;;
1057  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1058  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1059    sysconfdir=$ac_optarg ;;
1060
1061  -target | --target | --targe | --targ | --tar | --ta | --t)
1062    ac_prev=target_alias ;;
1063  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1064    target_alias=$ac_optarg ;;
1065
1066  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1067    verbose=yes ;;
1068
1069  -version | --version | --versio | --versi | --vers | -V)
1070    ac_init_version=: ;;
1071
1072  -with-* | --with-*)
1073    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1074    # Reject names that are not valid shell variable names.
1075    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1076      as_fn_error $? "invalid package name: $ac_useropt"
1077    ac_useropt_orig=$ac_useropt
1078    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079    case $ac_user_opts in
1080      *"
1081"with_$ac_useropt"
1082"*) ;;
1083      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1084	 ac_unrecognized_sep=', ';;
1085    esac
1086    eval with_$ac_useropt=\$ac_optarg ;;
1087
1088  -without-* | --without-*)
1089    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1090    # Reject names that are not valid shell variable names.
1091    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092      as_fn_error $? "invalid package name: $ac_useropt"
1093    ac_useropt_orig=$ac_useropt
1094    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095    case $ac_user_opts in
1096      *"
1097"with_$ac_useropt"
1098"*) ;;
1099      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1100	 ac_unrecognized_sep=', ';;
1101    esac
1102    eval with_$ac_useropt=no ;;
1103
1104  --x)
1105    # Obsolete; use --with-x.
1106    with_x=yes ;;
1107
1108  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1109  | --x-incl | --x-inc | --x-in | --x-i)
1110    ac_prev=x_includes ;;
1111  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1112  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1113    x_includes=$ac_optarg ;;
1114
1115  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1116  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1117    ac_prev=x_libraries ;;
1118  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1119  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1120    x_libraries=$ac_optarg ;;
1121
1122  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1123Try \`$0 --help' for more information"
1124    ;;
1125
1126  *=*)
1127    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1128    # Reject names that are not valid shell variable names.
1129    case $ac_envvar in #(
1130      '' | [0-9]* | *[!_$as_cr_alnum]* )
1131      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1132    esac
1133    eval $ac_envvar=\$ac_optarg
1134    export $ac_envvar ;;
1135
1136  *)
1137    # FIXME: should be removed in autoconf 3.0.
1138    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1139    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1140      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1141    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1142    ;;
1143
1144  esac
1145done
1146
1147if test -n "$ac_prev"; then
1148  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1149  as_fn_error $? "missing argument to $ac_option"
1150fi
1151
1152if test -n "$ac_unrecognized_opts"; then
1153  case $enable_option_checking in
1154    no) ;;
1155    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1156    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1157  esac
1158fi
1159
1160# Check all directory arguments for consistency.
1161for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1162		datadir sysconfdir sharedstatedir localstatedir includedir \
1163		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1164		libdir localedir mandir
1165do
1166  eval ac_val=\$$ac_var
1167  # Remove trailing slashes.
1168  case $ac_val in
1169    */ )
1170      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1171      eval $ac_var=\$ac_val;;
1172  esac
1173  # Be sure to have absolute directory names.
1174  case $ac_val in
1175    [\\/$]* | ?:[\\/]* )  continue;;
1176    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1177  esac
1178  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1179done
1180
1181# There might be people who depend on the old broken behavior: `$host'
1182# used to hold the argument of --host etc.
1183# FIXME: To remove some day.
1184build=$build_alias
1185host=$host_alias
1186target=$target_alias
1187
1188# FIXME: To remove some day.
1189if test "x$host_alias" != x; then
1190  if test "x$build_alias" = x; then
1191    cross_compiling=maybe
1192    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1193    If a cross compiler is detected then cross compile mode will be used" >&2
1194  elif test "x$build_alias" != "x$host_alias"; then
1195    cross_compiling=yes
1196  fi
1197fi
1198
1199ac_tool_prefix=
1200test -n "$host_alias" && ac_tool_prefix=$host_alias-
1201
1202test "$silent" = yes && exec 6>/dev/null
1203
1204
1205ac_pwd=`pwd` && test -n "$ac_pwd" &&
1206ac_ls_di=`ls -di .` &&
1207ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1208  as_fn_error $? "working directory cannot be determined"
1209test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1210  as_fn_error $? "pwd does not report name of working directory"
1211
1212
1213# Find the source files, if location was not specified.
1214if test -z "$srcdir"; then
1215  ac_srcdir_defaulted=yes
1216  # Try the directory containing this script, then the parent directory.
1217  ac_confdir=`$as_dirname -- "$as_myself" ||
1218$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1219	 X"$as_myself" : 'X\(//\)[^/]' \| \
1220	 X"$as_myself" : 'X\(//\)$' \| \
1221	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1222$as_echo X"$as_myself" |
1223    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1224	    s//\1/
1225	    q
1226	  }
1227	  /^X\(\/\/\)[^/].*/{
1228	    s//\1/
1229	    q
1230	  }
1231	  /^X\(\/\/\)$/{
1232	    s//\1/
1233	    q
1234	  }
1235	  /^X\(\/\).*/{
1236	    s//\1/
1237	    q
1238	  }
1239	  s/.*/./; q'`
1240  srcdir=$ac_confdir
1241  if test ! -r "$srcdir/$ac_unique_file"; then
1242    srcdir=..
1243  fi
1244else
1245  ac_srcdir_defaulted=no
1246fi
1247if test ! -r "$srcdir/$ac_unique_file"; then
1248  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1249  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1250fi
1251ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1252ac_abs_confdir=`(
1253	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1254	pwd)`
1255# When building in place, set srcdir=.
1256if test "$ac_abs_confdir" = "$ac_pwd"; then
1257  srcdir=.
1258fi
1259# Remove unnecessary trailing slashes from srcdir.
1260# Double slashes in file names in object file debugging info
1261# mess up M-x gdb in Emacs.
1262case $srcdir in
1263*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1264esac
1265for ac_var in $ac_precious_vars; do
1266  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1267  eval ac_env_${ac_var}_value=\$${ac_var}
1268  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1269  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1270done
1271
1272#
1273# Report the --help message.
1274#
1275if test "$ac_init_help" = "long"; then
1276  # Omit some internal or obsolete options to make the list less imposing.
1277  # This message is too long to be a string in the A/UX 3.1 sh.
1278  cat <<_ACEOF
1279\`configure' configures cgi 0.10 to adapt to many kinds of systems.
1280
1281Usage: $0 [OPTION]... [VAR=VALUE]...
1282
1283To assign environment variables (e.g., CC, CFLAGS...), specify them as
1284VAR=VALUE.  See below for descriptions of some of the useful variables.
1285
1286Defaults for the options are specified in brackets.
1287
1288Configuration:
1289  -h, --help              display this help and exit
1290      --help=short        display options specific to this package
1291      --help=recursive    display the short help of all the included packages
1292  -V, --version           display version information and exit
1293  -q, --quiet, --silent   do not print \`checking ...' messages
1294      --cache-file=FILE   cache test results in FILE [disabled]
1295  -C, --config-cache      alias for \`--cache-file=config.cache'
1296  -n, --no-create         do not create output files
1297      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1298
1299Installation directories:
1300  --prefix=PREFIX         install architecture-independent files in PREFIX
1301                          [$ac_default_prefix]
1302  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1303                          [PREFIX]
1304
1305By default, \`make install' will install all the files in
1306\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1307an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1308for instance \`--prefix=\$HOME'.
1309
1310For better control, use the options below.
1311
1312Fine tuning of the installation directories:
1313  --bindir=DIR            user executables [EPREFIX/bin]
1314  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1315  --libexecdir=DIR        program executables [EPREFIX/libexec]
1316  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1317  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1318  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1319  --libdir=DIR            object code libraries [EPREFIX/lib]
1320  --includedir=DIR        C header files [PREFIX/include]
1321  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1322  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1323  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1324  --infodir=DIR           info documentation [DATAROOTDIR/info]
1325  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1326  --mandir=DIR            man documentation [DATAROOTDIR/man]
1327  --docdir=DIR            documentation root [DATAROOTDIR/doc/cgi]
1328  --htmldir=DIR           html documentation [DOCDIR]
1329  --dvidir=DIR            dvi documentation [DOCDIR]
1330  --pdfdir=DIR            pdf documentation [DOCDIR]
1331  --psdir=DIR             ps documentation [DOCDIR]
1332_ACEOF
1333
1334  cat <<\_ACEOF
1335
1336Program names:
1337  --program-prefix=PREFIX            prepend PREFIX to installed program names
1338  --program-suffix=SUFFIX            append SUFFIX to installed program names
1339  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1340
1341System types:
1342  --build=BUILD     configure for building on BUILD [guessed]
1343  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1344_ACEOF
1345fi
1346
1347if test -n "$ac_init_help"; then
1348  case $ac_init_help in
1349     short | recursive ) echo "Configuration of cgi 0.10:";;
1350   esac
1351  cat <<\_ACEOF
1352
1353Optional Features:
1354  --disable-option-checking  ignore unrecognized --enable/--with options
1355  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1356  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1357  --disable-dependency-tracking  speeds up one-time build
1358  --enable-dependency-tracking   do not reject slow dependency extractors
1359  --enable-shared[=PKGS]  build shared libraries [default=yes]
1360  --enable-static[=PKGS]  build static libraries [default=yes]
1361  --enable-fast-install[=PKGS]
1362                          optimize for fast installation [default=yes]
1363  --disable-libtool-lock  avoid locking (might break parallel builds)
1364
1365Optional Packages:
1366  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1367  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1368  --with-pic              try to use only PIC/non-PIC objects [default=use
1369                          both]
1370  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1371  --with-formdata                Compile support for multipart/formdata
1372  --with-maxargsize=nbytes       Limit maximum size of CGI args
1373  --with-maxformargsize=nbytes   Maximum size of multipart/formdata uploads
1374
1375Some influential environment variables:
1376  CC          C compiler command
1377  CFLAGS      C compiler flags
1378  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1379              nonstandard directory <lib dir>
1380  LIBS        libraries to pass to the linker, e.g. -l<library>
1381  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1382              you have headers in a nonstandard directory <include dir>
1383  CPP         C preprocessor
1384
1385Use these variables to override the choices made by `configure' or to help
1386it to find libraries and programs with nonstandard names/locations.
1387
1388Report bugs to <courier-users@lists.sourceforge.net>.
1389_ACEOF
1390ac_status=$?
1391fi
1392
1393if test "$ac_init_help" = "recursive"; then
1394  # If there are subdirs, report their specific --help.
1395  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1396    test -d "$ac_dir" ||
1397      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1398      continue
1399    ac_builddir=.
1400
1401case "$ac_dir" in
1402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403*)
1404  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1405  # A ".." for each directory in $ac_dir_suffix.
1406  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1407  case $ac_top_builddir_sub in
1408  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410  esac ;;
1411esac
1412ac_abs_top_builddir=$ac_pwd
1413ac_abs_builddir=$ac_pwd$ac_dir_suffix
1414# for backward compatibility:
1415ac_top_builddir=$ac_top_build_prefix
1416
1417case $srcdir in
1418  .)  # We are building in place.
1419    ac_srcdir=.
1420    ac_top_srcdir=$ac_top_builddir_sub
1421    ac_abs_top_srcdir=$ac_pwd ;;
1422  [\\/]* | ?:[\\/]* )  # Absolute name.
1423    ac_srcdir=$srcdir$ac_dir_suffix;
1424    ac_top_srcdir=$srcdir
1425    ac_abs_top_srcdir=$srcdir ;;
1426  *) # Relative name.
1427    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1428    ac_top_srcdir=$ac_top_build_prefix$srcdir
1429    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1430esac
1431ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1432
1433    cd "$ac_dir" || { ac_status=$?; continue; }
1434    # Check for guested configure.
1435    if test -f "$ac_srcdir/configure.gnu"; then
1436      echo &&
1437      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438    elif test -f "$ac_srcdir/configure"; then
1439      echo &&
1440      $SHELL "$ac_srcdir/configure" --help=recursive
1441    else
1442      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443    fi || ac_status=$?
1444    cd "$ac_pwd" || { ac_status=$?; break; }
1445  done
1446fi
1447
1448test -n "$ac_init_help" && exit $ac_status
1449if $ac_init_version; then
1450  cat <<\_ACEOF
1451cgi configure 0.10
1452generated by GNU Autoconf 2.66
1453
1454Copyright (C) 2010 Free Software Foundation, Inc.
1455This configure script is free software; the Free Software Foundation
1456gives unlimited permission to copy, distribute and modify it.
1457_ACEOF
1458  exit
1459fi
1460
1461## ------------------------ ##
1462## Autoconf initialization. ##
1463## ------------------------ ##
1464
1465# ac_fn_c_try_compile LINENO
1466# --------------------------
1467# Try to compile conftest.$ac_ext, and return whether this succeeded.
1468ac_fn_c_try_compile ()
1469{
1470  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1471  rm -f conftest.$ac_objext
1472  if { { ac_try="$ac_compile"
1473case "(($ac_try" in
1474  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1475  *) ac_try_echo=$ac_try;;
1476esac
1477eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1478$as_echo "$ac_try_echo"; } >&5
1479  (eval "$ac_compile") 2>conftest.err
1480  ac_status=$?
1481  if test -s conftest.err; then
1482    grep -v '^ *+' conftest.err >conftest.er1
1483    cat conftest.er1 >&5
1484    mv -f conftest.er1 conftest.err
1485  fi
1486  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1487  test $ac_status = 0; } && {
1488	 test -z "$ac_c_werror_flag" ||
1489	 test ! -s conftest.err
1490       } && test -s conftest.$ac_objext; then :
1491  ac_retval=0
1492else
1493  $as_echo "$as_me: failed program was:" >&5
1494sed 's/^/| /' conftest.$ac_ext >&5
1495
1496	ac_retval=1
1497fi
1498  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1499  as_fn_set_status $ac_retval
1500
1501} # ac_fn_c_try_compile
1502
1503# ac_fn_c_try_cpp LINENO
1504# ----------------------
1505# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1506ac_fn_c_try_cpp ()
1507{
1508  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1509  if { { ac_try="$ac_cpp conftest.$ac_ext"
1510case "(($ac_try" in
1511  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512  *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1517  ac_status=$?
1518  if test -s conftest.err; then
1519    grep -v '^ *+' conftest.err >conftest.er1
1520    cat conftest.er1 >&5
1521    mv -f conftest.er1 conftest.err
1522  fi
1523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524  test $ac_status = 0; } >/dev/null && {
1525	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1526	 test ! -s conftest.err
1527       }; then :
1528  ac_retval=0
1529else
1530  $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533    ac_retval=1
1534fi
1535  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536  as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_cpp
1539
1540# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1541# -------------------------------------------------------
1542# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1543# the include files in INCLUDES and setting the cache variable VAR
1544# accordingly.
1545ac_fn_c_check_header_mongrel ()
1546{
1547  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548  if eval "test \"\${$3+set}\"" = set; then :
1549  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1550$as_echo_n "checking for $2... " >&6; }
1551if eval "test \"\${$3+set}\"" = set; then :
1552  $as_echo_n "(cached) " >&6
1553fi
1554eval ac_res=\$$3
1555	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1556$as_echo "$ac_res" >&6; }
1557else
1558  # Is the header compilable?
1559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1560$as_echo_n "checking $2 usability... " >&6; }
1561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1562/* end confdefs.h.  */
1563$4
1564#include <$2>
1565_ACEOF
1566if ac_fn_c_try_compile "$LINENO"; then :
1567  ac_header_compiler=yes
1568else
1569  ac_header_compiler=no
1570fi
1571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1573$as_echo "$ac_header_compiler" >&6; }
1574
1575# Is the header present?
1576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1577$as_echo_n "checking $2 presence... " >&6; }
1578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1579/* end confdefs.h.  */
1580#include <$2>
1581_ACEOF
1582if ac_fn_c_try_cpp "$LINENO"; then :
1583  ac_header_preproc=yes
1584else
1585  ac_header_preproc=no
1586fi
1587rm -f conftest.err conftest.$ac_ext
1588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1589$as_echo "$ac_header_preproc" >&6; }
1590
1591# So?  What about this header?
1592case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1593  yes:no: )
1594    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1595$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1596    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1598    ;;
1599  no:yes:* )
1600    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1601$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1602    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1603$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1604    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1605$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1606    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1607$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1608    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1609$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1610( $as_echo "## -------------------------------------------------- ##
1611## Report this to courier-users@lists.sourceforge.net ##
1612## -------------------------------------------------- ##"
1613     ) | sed "s/^/$as_me: WARNING:     /" >&2
1614    ;;
1615esac
1616  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617$as_echo_n "checking for $2... " >&6; }
1618if eval "test \"\${$3+set}\"" = set; then :
1619  $as_echo_n "(cached) " >&6
1620else
1621  eval "$3=\$ac_header_compiler"
1622fi
1623eval ac_res=\$$3
1624	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1625$as_echo "$ac_res" >&6; }
1626fi
1627  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1628
1629} # ac_fn_c_check_header_mongrel
1630
1631# ac_fn_c_try_run LINENO
1632# ----------------------
1633# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1634# that executables *can* be run.
1635ac_fn_c_try_run ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  if { { ac_try="$ac_link"
1639case "(($ac_try" in
1640  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641  *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645  (eval "$ac_link") 2>&5
1646  ac_status=$?
1647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1648  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1649  { { case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_try") 2>&5
1656  ac_status=$?
1657  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658  test $ac_status = 0; }; }; then :
1659  ac_retval=0
1660else
1661  $as_echo "$as_me: program exited with status $ac_status" >&5
1662       $as_echo "$as_me: failed program was:" >&5
1663sed 's/^/| /' conftest.$ac_ext >&5
1664
1665       ac_retval=$ac_status
1666fi
1667  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1668  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1669  as_fn_set_status $ac_retval
1670
1671} # ac_fn_c_try_run
1672
1673# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1674# -------------------------------------------------------
1675# Tests whether HEADER exists and can be compiled using the include files in
1676# INCLUDES, setting the cache variable VAR accordingly.
1677ac_fn_c_check_header_compile ()
1678{
1679  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1681$as_echo_n "checking for $2... " >&6; }
1682if eval "test \"\${$3+set}\"" = set; then :
1683  $as_echo_n "(cached) " >&6
1684else
1685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686/* end confdefs.h.  */
1687$4
1688#include <$2>
1689_ACEOF
1690if ac_fn_c_try_compile "$LINENO"; then :
1691  eval "$3=yes"
1692else
1693  eval "$3=no"
1694fi
1695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696fi
1697eval ac_res=\$$3
1698	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1699$as_echo "$ac_res" >&6; }
1700  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701
1702} # ac_fn_c_check_header_compile
1703
1704# ac_fn_c_try_link LINENO
1705# -----------------------
1706# Try to link conftest.$ac_ext, and return whether this succeeded.
1707ac_fn_c_try_link ()
1708{
1709  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710  rm -f conftest.$ac_objext conftest$ac_exeext
1711  if { { ac_try="$ac_link"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_link") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } && {
1727	 test -z "$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       } && test -s conftest$ac_exeext && {
1730	 test "$cross_compiling" = yes ||
1731	 $as_test_x conftest$ac_exeext
1732       }; then :
1733  ac_retval=0
1734else
1735  $as_echo "$as_me: failed program was:" >&5
1736sed 's/^/| /' conftest.$ac_ext >&5
1737
1738	ac_retval=1
1739fi
1740  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1741  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1742  # interfere with the next link command; also delete a directory that is
1743  # left behind by Apple's compiler.  We do this before executing the actions.
1744  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1745  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746  as_fn_set_status $ac_retval
1747
1748} # ac_fn_c_try_link
1749
1750# ac_fn_c_check_func LINENO FUNC VAR
1751# ----------------------------------
1752# Tests whether FUNC exists, setting the cache variable VAR accordingly
1753ac_fn_c_check_func ()
1754{
1755  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1757$as_echo_n "checking for $2... " >&6; }
1758if eval "test \"\${$3+set}\"" = set; then :
1759  $as_echo_n "(cached) " >&6
1760else
1761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762/* end confdefs.h.  */
1763/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1764   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1765#define $2 innocuous_$2
1766
1767/* System header to define __stub macros and hopefully few prototypes,
1768    which can conflict with char $2 (); below.
1769    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1770    <limits.h> exists even on freestanding compilers.  */
1771
1772#ifdef __STDC__
1773# include <limits.h>
1774#else
1775# include <assert.h>
1776#endif
1777
1778#undef $2
1779
1780/* Override any GCC internal prototype to avoid an error.
1781   Use char because int might match the return type of a GCC
1782   builtin and then its argument prototype would still apply.  */
1783#ifdef __cplusplus
1784extern "C"
1785#endif
1786char $2 ();
1787/* The GNU C library defines this for functions which it implements
1788    to always fail with ENOSYS.  Some functions are actually named
1789    something starting with __ and the normal name is an alias.  */
1790#if defined __stub_$2 || defined __stub___$2
1791choke me
1792#endif
1793
1794int
1795main ()
1796{
1797return $2 ();
1798  ;
1799  return 0;
1800}
1801_ACEOF
1802if ac_fn_c_try_link "$LINENO"; then :
1803  eval "$3=yes"
1804else
1805  eval "$3=no"
1806fi
1807rm -f core conftest.err conftest.$ac_objext \
1808    conftest$ac_exeext conftest.$ac_ext
1809fi
1810eval ac_res=\$$3
1811	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1812$as_echo "$ac_res" >&6; }
1813  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1814
1815} # ac_fn_c_check_func
1816
1817# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1818# -------------------------------------------
1819# Tests whether TYPE exists after having included INCLUDES, setting cache
1820# variable VAR accordingly.
1821ac_fn_c_check_type ()
1822{
1823  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1824  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1825$as_echo_n "checking for $2... " >&6; }
1826if eval "test \"\${$3+set}\"" = set; then :
1827  $as_echo_n "(cached) " >&6
1828else
1829  eval "$3=no"
1830  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1831/* end confdefs.h.  */
1832$4
1833int
1834main ()
1835{
1836if (sizeof ($2))
1837	 return 0;
1838  ;
1839  return 0;
1840}
1841_ACEOF
1842if ac_fn_c_try_compile "$LINENO"; then :
1843  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844/* end confdefs.h.  */
1845$4
1846int
1847main ()
1848{
1849if (sizeof (($2)))
1850	    return 0;
1851  ;
1852  return 0;
1853}
1854_ACEOF
1855if ac_fn_c_try_compile "$LINENO"; then :
1856
1857else
1858  eval "$3=yes"
1859fi
1860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1861fi
1862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863fi
1864eval ac_res=\$$3
1865	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866$as_echo "$ac_res" >&6; }
1867  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869} # ac_fn_c_check_type
1870cat >config.log <<_ACEOF
1871This file contains any messages produced by compilers while
1872running configure, to aid debugging if configure makes a mistake.
1873
1874It was created by cgi $as_me 0.10, which was
1875generated by GNU Autoconf 2.66.  Invocation command line was
1876
1877  $ $0 $@
1878
1879_ACEOF
1880exec 5>>config.log
1881{
1882cat <<_ASUNAME
1883## --------- ##
1884## Platform. ##
1885## --------- ##
1886
1887hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1888uname -m = `(uname -m) 2>/dev/null || echo unknown`
1889uname -r = `(uname -r) 2>/dev/null || echo unknown`
1890uname -s = `(uname -s) 2>/dev/null || echo unknown`
1891uname -v = `(uname -v) 2>/dev/null || echo unknown`
1892
1893/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1894/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1895
1896/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1897/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1898/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1899/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1900/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1901/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1902/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1903
1904_ASUNAME
1905
1906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1907for as_dir in $PATH
1908do
1909  IFS=$as_save_IFS
1910  test -z "$as_dir" && as_dir=.
1911    $as_echo "PATH: $as_dir"
1912  done
1913IFS=$as_save_IFS
1914
1915} >&5
1916
1917cat >&5 <<_ACEOF
1918
1919
1920## ----------- ##
1921## Core tests. ##
1922## ----------- ##
1923
1924_ACEOF
1925
1926
1927# Keep a trace of the command line.
1928# Strip out --no-create and --no-recursion so they do not pile up.
1929# Strip out --silent because we don't want to record it for future runs.
1930# Also quote any args containing shell meta-characters.
1931# Make two passes to allow for proper duplicate-argument suppression.
1932ac_configure_args=
1933ac_configure_args0=
1934ac_configure_args1=
1935ac_must_keep_next=false
1936for ac_pass in 1 2
1937do
1938  for ac_arg
1939  do
1940    case $ac_arg in
1941    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1942    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1943    | -silent | --silent | --silen | --sile | --sil)
1944      continue ;;
1945    *\'*)
1946      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947    esac
1948    case $ac_pass in
1949    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1950    2)
1951      as_fn_append ac_configure_args1 " '$ac_arg'"
1952      if test $ac_must_keep_next = true; then
1953	ac_must_keep_next=false # Got value, back to normal.
1954      else
1955	case $ac_arg in
1956	  *=* | --config-cache | -C | -disable-* | --disable-* \
1957	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1958	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1959	  | -with-* | --with-* | -without-* | --without-* | --x)
1960	    case "$ac_configure_args0 " in
1961	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962	    esac
1963	    ;;
1964	  -* ) ac_must_keep_next=true ;;
1965	esac
1966      fi
1967      as_fn_append ac_configure_args " '$ac_arg'"
1968      ;;
1969    esac
1970  done
1971done
1972{ ac_configure_args0=; unset ac_configure_args0;}
1973{ ac_configure_args1=; unset ac_configure_args1;}
1974
1975# When interrupted or exit'd, cleanup temporary files, and complete
1976# config.log.  We remove comments because anyway the quotes in there
1977# would cause problems or look ugly.
1978# WARNING: Use '\'' to represent an apostrophe within the trap.
1979# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1980trap 'exit_status=$?
1981  # Save into config.log some information that might help in debugging.
1982  {
1983    echo
1984
1985    $as_echo "## ---------------- ##
1986## Cache variables. ##
1987## ---------------- ##"
1988    echo
1989    # The following way of writing the cache mishandles newlines in values,
1990(
1991  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1992    eval ac_val=\$$ac_var
1993    case $ac_val in #(
1994    *${as_nl}*)
1995      case $ac_var in #(
1996      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1997$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998      esac
1999      case $ac_var in #(
2000      _ | IFS | as_nl) ;; #(
2001      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2002      *) { eval $ac_var=; unset $ac_var;} ;;
2003      esac ;;
2004    esac
2005  done
2006  (set) 2>&1 |
2007    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2008    *${as_nl}ac_space=\ *)
2009      sed -n \
2010	"s/'\''/'\''\\\\'\'''\''/g;
2011	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012      ;; #(
2013    *)
2014      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2015      ;;
2016    esac |
2017    sort
2018)
2019    echo
2020
2021    $as_echo "## ----------------- ##
2022## Output variables. ##
2023## ----------------- ##"
2024    echo
2025    for ac_var in $ac_subst_vars
2026    do
2027      eval ac_val=\$$ac_var
2028      case $ac_val in
2029      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2030      esac
2031      $as_echo "$ac_var='\''$ac_val'\''"
2032    done | sort
2033    echo
2034
2035    if test -n "$ac_subst_files"; then
2036      $as_echo "## ------------------- ##
2037## File substitutions. ##
2038## ------------------- ##"
2039      echo
2040      for ac_var in $ac_subst_files
2041      do
2042	eval ac_val=\$$ac_var
2043	case $ac_val in
2044	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2045	esac
2046	$as_echo "$ac_var='\''$ac_val'\''"
2047      done | sort
2048      echo
2049    fi
2050
2051    if test -s confdefs.h; then
2052      $as_echo "## ----------- ##
2053## confdefs.h. ##
2054## ----------- ##"
2055      echo
2056      cat confdefs.h
2057      echo
2058    fi
2059    test "$ac_signal" != 0 &&
2060      $as_echo "$as_me: caught signal $ac_signal"
2061    $as_echo "$as_me: exit $exit_status"
2062  } >&5
2063  rm -f core *.core core.conftest.* &&
2064    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065    exit $exit_status
2066' 0
2067for ac_signal in 1 2 13 15; do
2068  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2069done
2070ac_signal=0
2071
2072# confdefs.h avoids OS command line length limits that DEFS can exceed.
2073rm -f -r conftest* confdefs.h
2074
2075$as_echo "/* confdefs.h */" > confdefs.h
2076
2077# Predefined preprocessor variables.
2078
2079cat >>confdefs.h <<_ACEOF
2080#define PACKAGE_NAME "$PACKAGE_NAME"
2081_ACEOF
2082
2083cat >>confdefs.h <<_ACEOF
2084#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085_ACEOF
2086
2087cat >>confdefs.h <<_ACEOF
2088#define PACKAGE_VERSION "$PACKAGE_VERSION"
2089_ACEOF
2090
2091cat >>confdefs.h <<_ACEOF
2092#define PACKAGE_STRING "$PACKAGE_STRING"
2093_ACEOF
2094
2095cat >>confdefs.h <<_ACEOF
2096#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097_ACEOF
2098
2099cat >>confdefs.h <<_ACEOF
2100#define PACKAGE_URL "$PACKAGE_URL"
2101_ACEOF
2102
2103
2104# Let the site file select an alternate cache file if it wants to.
2105# Prefer an explicitly selected file to automatically selected ones.
2106ac_site_file1=NONE
2107ac_site_file2=NONE
2108if test -n "$CONFIG_SITE"; then
2109  # We do not want a PATH search for config.site.
2110  case $CONFIG_SITE in #((
2111    -*)  ac_site_file1=./$CONFIG_SITE;;
2112    */*) ac_site_file1=$CONFIG_SITE;;
2113    *)   ac_site_file1=./$CONFIG_SITE;;
2114  esac
2115elif test "x$prefix" != xNONE; then
2116  ac_site_file1=$prefix/share/config.site
2117  ac_site_file2=$prefix/etc/config.site
2118else
2119  ac_site_file1=$ac_default_prefix/share/config.site
2120  ac_site_file2=$ac_default_prefix/etc/config.site
2121fi
2122for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2123do
2124  test "x$ac_site_file" = xNONE && continue
2125  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2126    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2127$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2128    sed 's/^/| /' "$ac_site_file" >&5
2129    . "$ac_site_file" \
2130      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2131$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2132as_fn_error $? "failed to load site script $ac_site_file
2133See \`config.log' for more details" "$LINENO" 5; }
2134  fi
2135done
2136
2137if test -r "$cache_file"; then
2138  # Some versions of bash will fail to source /dev/null (special files
2139  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2140  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2141    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2142$as_echo "$as_me: loading cache $cache_file" >&6;}
2143    case $cache_file in
2144      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2145      *)                      . "./$cache_file";;
2146    esac
2147  fi
2148else
2149  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2150$as_echo "$as_me: creating cache $cache_file" >&6;}
2151  >$cache_file
2152fi
2153
2154# Check that the precious variables saved in the cache have kept the same
2155# value.
2156ac_cache_corrupted=false
2157for ac_var in $ac_precious_vars; do
2158  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2159  eval ac_new_set=\$ac_env_${ac_var}_set
2160  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2161  eval ac_new_val=\$ac_env_${ac_var}_value
2162  case $ac_old_set,$ac_new_set in
2163    set,)
2164      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2165$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2166      ac_cache_corrupted=: ;;
2167    ,set)
2168      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2169$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2170      ac_cache_corrupted=: ;;
2171    ,);;
2172    *)
2173      if test "x$ac_old_val" != "x$ac_new_val"; then
2174	# differences in whitespace do not lead to failure.
2175	ac_old_val_w=`echo x $ac_old_val`
2176	ac_new_val_w=`echo x $ac_new_val`
2177	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2178	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2179$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2180	  ac_cache_corrupted=:
2181	else
2182	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2183$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2184	  eval $ac_var=\$ac_old_val
2185	fi
2186	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2187$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2188	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2189$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2190      fi;;
2191  esac
2192  # Pass precious variables to config.status.
2193  if test "$ac_new_set" = set; then
2194    case $ac_new_val in
2195    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2196    *) ac_arg=$ac_var=$ac_new_val ;;
2197    esac
2198    case " $ac_configure_args " in
2199      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2200      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2201    esac
2202  fi
2203done
2204if $ac_cache_corrupted; then
2205  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2208$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2209  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2210fi
2211## -------------------- ##
2212## Main body of script. ##
2213## -------------------- ##
2214
2215ac_ext=c
2216ac_cpp='$CPP $CPPFLAGS'
2217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2219ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
2221
2222
2223>confdefs.h  # Kill PACKAGE_ macros
2224
2225
2226am__api_version='1.11'
2227
2228ac_aux_dir=
2229for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2230  if test -f "$ac_dir/install-sh"; then
2231    ac_aux_dir=$ac_dir
2232    ac_install_sh="$ac_aux_dir/install-sh -c"
2233    break
2234  elif test -f "$ac_dir/install.sh"; then
2235    ac_aux_dir=$ac_dir
2236    ac_install_sh="$ac_aux_dir/install.sh -c"
2237    break
2238  elif test -f "$ac_dir/shtool"; then
2239    ac_aux_dir=$ac_dir
2240    ac_install_sh="$ac_aux_dir/shtool install -c"
2241    break
2242  fi
2243done
2244if test -z "$ac_aux_dir"; then
2245  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2246fi
2247
2248# These three variables are undocumented and unsupported,
2249# and are intended to be withdrawn in a future Autoconf release.
2250# They can cause serious problems if a builder's source tree is in a directory
2251# whose full name contains unusual characters.
2252ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2253ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2254ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2255
2256
2257# Find a good install program.  We prefer a C program (faster),
2258# so one script is as good as another.  But avoid the broken or
2259# incompatible versions:
2260# SysV /etc/install, /usr/sbin/install
2261# SunOS /usr/etc/install
2262# IRIX /sbin/install
2263# AIX /bin/install
2264# AmigaOS /C/install, which installs bootblocks on floppy discs
2265# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2266# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2267# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2268# OS/2's system install, which has a completely different semantic
2269# ./install, which can be erroneously created by make from ./install.sh.
2270# Reject install programs that cannot install multiple files.
2271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2272$as_echo_n "checking for a BSD-compatible install... " >&6; }
2273if test -z "$INSTALL"; then
2274if test "${ac_cv_path_install+set}" = set; then :
2275  $as_echo_n "(cached) " >&6
2276else
2277  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278for as_dir in $PATH
2279do
2280  IFS=$as_save_IFS
2281  test -z "$as_dir" && as_dir=.
2282    # Account for people who put trailing slashes in PATH elements.
2283case $as_dir/ in #((
2284  ./ | .// | /[cC]/* | \
2285  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2286  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2287  /usr/ucb/* ) ;;
2288  *)
2289    # OSF1 and SCO ODT 3.0 have their own names for install.
2290    # Don't use installbsd from OSF since it installs stuff as root
2291    # by default.
2292    for ac_prog in ginstall scoinst install; do
2293      for ac_exec_ext in '' $ac_executable_extensions; do
2294	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2295	  if test $ac_prog = install &&
2296	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2297	    # AIX install.  It has an incompatible calling convention.
2298	    :
2299	  elif test $ac_prog = install &&
2300	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2301	    # program-specific install script used by HP pwplus--don't use.
2302	    :
2303	  else
2304	    rm -rf conftest.one conftest.two conftest.dir
2305	    echo one > conftest.one
2306	    echo two > conftest.two
2307	    mkdir conftest.dir
2308	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2309	      test -s conftest.one && test -s conftest.two &&
2310	      test -s conftest.dir/conftest.one &&
2311	      test -s conftest.dir/conftest.two
2312	    then
2313	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2314	      break 3
2315	    fi
2316	  fi
2317	fi
2318      done
2319    done
2320    ;;
2321esac
2322
2323  done
2324IFS=$as_save_IFS
2325
2326rm -rf conftest.one conftest.two conftest.dir
2327
2328fi
2329  if test "${ac_cv_path_install+set}" = set; then
2330    INSTALL=$ac_cv_path_install
2331  else
2332    # As a last resort, use the slow shell script.  Don't cache a
2333    # value for INSTALL within a source directory, because that will
2334    # break other packages using the cache if that directory is
2335    # removed, or if the value is a relative name.
2336    INSTALL=$ac_install_sh
2337  fi
2338fi
2339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2340$as_echo "$INSTALL" >&6; }
2341
2342# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2343# It thinks the first close brace ends the variable substitution.
2344test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2345
2346test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2347
2348test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2349
2350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2351$as_echo_n "checking whether build environment is sane... " >&6; }
2352# Just in case
2353sleep 1
2354echo timestamp > conftest.file
2355# Reject unsafe characters in $srcdir or the absolute working directory
2356# name.  Accept space and tab only in the latter.
2357am_lf='
2358'
2359case `pwd` in
2360  *[\\\"\#\$\&\'\`$am_lf]*)
2361    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2362esac
2363case $srcdir in
2364  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2365    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2366esac
2367
2368# Do `set' in a subshell so we don't clobber the current shell's
2369# arguments.  Must try -L first in case configure is actually a
2370# symlink; some systems play weird games with the mod time of symlinks
2371# (eg FreeBSD returns the mod time of the symlink's containing
2372# directory).
2373if (
2374   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2375   if test "$*" = "X"; then
2376      # -L didn't work.
2377      set X `ls -t "$srcdir/configure" conftest.file`
2378   fi
2379   rm -f conftest.file
2380   if test "$*" != "X $srcdir/configure conftest.file" \
2381      && test "$*" != "X conftest.file $srcdir/configure"; then
2382
2383      # If neither matched, then we have a broken ls.  This can happen
2384      # if, for instance, CONFIG_SHELL is bash and it inherits a
2385      # broken ls alias from the environment.  This has actually
2386      # happened.  Such a system could not be considered "sane".
2387      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2388alias in your environment" "$LINENO" 5
2389   fi
2390
2391   test "$2" = conftest.file
2392   )
2393then
2394   # Ok.
2395   :
2396else
2397   as_fn_error $? "newly created file is older than distributed files!
2398Check your system clock" "$LINENO" 5
2399fi
2400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2401$as_echo "yes" >&6; }
2402test "$program_prefix" != NONE &&
2403  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2404# Use a double $ so make ignores it.
2405test "$program_suffix" != NONE &&
2406  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2407# Double any \ or $.
2408# By default was `s,x,x', remove it if useless.
2409ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2410program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2411
2412# expand $ac_aux_dir to an absolute path
2413am_aux_dir=`cd $ac_aux_dir && pwd`
2414
2415if test x"${MISSING+set}" != xset; then
2416  case $am_aux_dir in
2417  *\ * | *\	*)
2418    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2419  *)
2420    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2421  esac
2422fi
2423# Use eval to expand $SHELL
2424if eval "$MISSING --run true"; then
2425  am_missing_run="$MISSING --run "
2426else
2427  am_missing_run=
2428  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2429$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2430fi
2431
2432if test x"${install_sh}" != xset; then
2433  case $am_aux_dir in
2434  *\ * | *\	*)
2435    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2436  *)
2437    install_sh="\${SHELL} $am_aux_dir/install-sh"
2438  esac
2439fi
2440
2441# Installed binaries are usually stripped using `strip' when the user
2442# run `make install-strip'.  However `strip' might not be the right
2443# tool to use in cross-compilation environments, therefore Automake
2444# will honor the `STRIP' environment variable to overrule this program.
2445if test "$cross_compiling" != no; then
2446  if test -n "$ac_tool_prefix"; then
2447  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2448set dummy ${ac_tool_prefix}strip; ac_word=$2
2449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2450$as_echo_n "checking for $ac_word... " >&6; }
2451if test "${ac_cv_prog_STRIP+set}" = set; then :
2452  $as_echo_n "(cached) " >&6
2453else
2454  if test -n "$STRIP"; then
2455  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2456else
2457as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2458for as_dir in $PATH
2459do
2460  IFS=$as_save_IFS
2461  test -z "$as_dir" && as_dir=.
2462    for ac_exec_ext in '' $ac_executable_extensions; do
2463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2464    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2466    break 2
2467  fi
2468done
2469  done
2470IFS=$as_save_IFS
2471
2472fi
2473fi
2474STRIP=$ac_cv_prog_STRIP
2475if test -n "$STRIP"; then
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2477$as_echo "$STRIP" >&6; }
2478else
2479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2480$as_echo "no" >&6; }
2481fi
2482
2483
2484fi
2485if test -z "$ac_cv_prog_STRIP"; then
2486  ac_ct_STRIP=$STRIP
2487  # Extract the first word of "strip", so it can be a program name with args.
2488set dummy strip; ac_word=$2
2489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2490$as_echo_n "checking for $ac_word... " >&6; }
2491if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2492  $as_echo_n "(cached) " >&6
2493else
2494  if test -n "$ac_ct_STRIP"; then
2495  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2496else
2497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2498for as_dir in $PATH
2499do
2500  IFS=$as_save_IFS
2501  test -z "$as_dir" && as_dir=.
2502    for ac_exec_ext in '' $ac_executable_extensions; do
2503  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2504    ac_cv_prog_ac_ct_STRIP="strip"
2505    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2506    break 2
2507  fi
2508done
2509  done
2510IFS=$as_save_IFS
2511
2512fi
2513fi
2514ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2515if test -n "$ac_ct_STRIP"; then
2516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2517$as_echo "$ac_ct_STRIP" >&6; }
2518else
2519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2520$as_echo "no" >&6; }
2521fi
2522
2523  if test "x$ac_ct_STRIP" = x; then
2524    STRIP=":"
2525  else
2526    case $cross_compiling:$ac_tool_warned in
2527yes:)
2528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2530ac_tool_warned=yes ;;
2531esac
2532    STRIP=$ac_ct_STRIP
2533  fi
2534else
2535  STRIP="$ac_cv_prog_STRIP"
2536fi
2537
2538fi
2539INSTALL_STRIP_PROGRAM="install  -s -m 555 -s"
2540
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2542$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2543if test -z "$MKDIR_P"; then
2544  if test "${ac_cv_path_mkdir+set}" = set; then :
2545  $as_echo_n "(cached) " >&6
2546else
2547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2548for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2549do
2550  IFS=$as_save_IFS
2551  test -z "$as_dir" && as_dir=.
2552    for ac_prog in mkdir gmkdir; do
2553	 for ac_exec_ext in '' $ac_executable_extensions; do
2554	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2555	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2556	     'mkdir (GNU coreutils) '* | \
2557	     'mkdir (coreutils) '* | \
2558	     'mkdir (fileutils) '4.1*)
2559	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2560	       break 3;;
2561	   esac
2562	 done
2563       done
2564  done
2565IFS=$as_save_IFS
2566
2567fi
2568
2569  test -d ./--version && rmdir ./--version
2570  if test "${ac_cv_path_mkdir+set}" = set; then
2571    MKDIR_P="$ac_cv_path_mkdir -p"
2572  else
2573    # As a last resort, use the slow shell script.  Don't cache a
2574    # value for MKDIR_P within a source directory, because that will
2575    # break other packages using the cache if that directory is
2576    # removed, or if the value is a relative name.
2577    MKDIR_P="$ac_install_sh -d"
2578  fi
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2581$as_echo "$MKDIR_P" >&6; }
2582
2583mkdir_p="$MKDIR_P"
2584case $mkdir_p in
2585  [\\/$]* | ?:[\\/]*) ;;
2586  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2587esac
2588
2589for ac_prog in gawk mawk nawk awk
2590do
2591  # Extract the first word of "$ac_prog", so it can be a program name with args.
2592set dummy $ac_prog; ac_word=$2
2593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2594$as_echo_n "checking for $ac_word... " >&6; }
2595if test "${ac_cv_prog_AWK+set}" = set; then :
2596  $as_echo_n "(cached) " >&6
2597else
2598  if test -n "$AWK"; then
2599  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2600else
2601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602for as_dir in $PATH
2603do
2604  IFS=$as_save_IFS
2605  test -z "$as_dir" && as_dir=.
2606    for ac_exec_ext in '' $ac_executable_extensions; do
2607  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2608    ac_cv_prog_AWK="$ac_prog"
2609    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2610    break 2
2611  fi
2612done
2613  done
2614IFS=$as_save_IFS
2615
2616fi
2617fi
2618AWK=$ac_cv_prog_AWK
2619if test -n "$AWK"; then
2620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2621$as_echo "$AWK" >&6; }
2622else
2623  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2624$as_echo "no" >&6; }
2625fi
2626
2627
2628  test -n "$AWK" && break
2629done
2630
2631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2632$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2633set x ${MAKE-make}
2634ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2635if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2636  $as_echo_n "(cached) " >&6
2637else
2638  cat >conftest.make <<\_ACEOF
2639SHELL = /bin/sh
2640all:
2641	@echo '@@@%%%=$(MAKE)=@@@%%%'
2642_ACEOF
2643# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2644case `${MAKE-make} -f conftest.make 2>/dev/null` in
2645  *@@@%%%=?*=@@@%%%*)
2646    eval ac_cv_prog_make_${ac_make}_set=yes;;
2647  *)
2648    eval ac_cv_prog_make_${ac_make}_set=no;;
2649esac
2650rm -f conftest.make
2651fi
2652if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654$as_echo "yes" >&6; }
2655  SET_MAKE=
2656else
2657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658$as_echo "no" >&6; }
2659  SET_MAKE="MAKE=${MAKE-make}"
2660fi
2661
2662rm -rf .tst 2>/dev/null
2663mkdir .tst 2>/dev/null
2664if test -d .tst; then
2665  am__leading_dot=.
2666else
2667  am__leading_dot=_
2668fi
2669rmdir .tst 2>/dev/null
2670
2671if test "`cd $srcdir && pwd`" != "`pwd`"; then
2672  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2673  # is not polluted with repeated "-I."
2674  am__isrc=' -I$(srcdir)'
2675  # test to see if srcdir already configured
2676  if test -f $srcdir/config.status; then
2677    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2678  fi
2679fi
2680
2681# test whether we have cygpath
2682if test -z "$CYGPATH_W"; then
2683  if (cygpath --version) >/dev/null 2>/dev/null; then
2684    CYGPATH_W='cygpath -w'
2685  else
2686    CYGPATH_W=echo
2687  fi
2688fi
2689
2690
2691# Define the identity of the package.
2692 PACKAGE='cgi'
2693 VERSION='0.10'
2694
2695
2696# Some tools Automake needs.
2697
2698ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2699
2700
2701AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2702
2703
2704AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2705
2706
2707AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2708
2709
2710MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2711
2712# We need awk for the "check" target.  The system "awk" is bad on
2713# some platforms.
2714# Always define AMTAR for backward compatibility.
2715
2716AMTAR=${AMTAR-"${am_missing_run}tar"}
2717
2718am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2719
2720
2721
2722
2723
2724
2725ac_config_headers="$ac_config_headers cgi_config.h"
2726
2727
2728DEPDIR="${am__leading_dot}deps"
2729
2730ac_config_commands="$ac_config_commands depfiles"
2731
2732
2733am_make=${MAKE-make}
2734cat > confinc << 'END'
2735am__doit:
2736	@echo this is the am__doit target
2737.PHONY: am__doit
2738END
2739# If we don't find an include directive, just comment out the code.
2740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2741$as_echo_n "checking for style of include used by $am_make... " >&6; }
2742am__include="#"
2743am__quote=
2744_am_result=none
2745# First try GNU make style include.
2746echo "include confinc" > confmf
2747# Ignore all kinds of additional output from `make'.
2748case `$am_make -s -f confmf 2> /dev/null` in #(
2749*the\ am__doit\ target*)
2750  am__include=include
2751  am__quote=
2752  _am_result=GNU
2753  ;;
2754esac
2755# Now try BSD make style include.
2756if test "$am__include" = "#"; then
2757   echo '.include "confinc"' > confmf
2758   case `$am_make -s -f confmf 2> /dev/null` in #(
2759   *the\ am__doit\ target*)
2760     am__include=.include
2761     am__quote="\""
2762     _am_result=BSD
2763     ;;
2764   esac
2765fi
2766
2767
2768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2769$as_echo "$_am_result" >&6; }
2770rm -f confinc confmf
2771
2772# Check whether --enable-dependency-tracking was given.
2773if test "${enable_dependency_tracking+set}" = set; then :
2774  enableval=$enable_dependency_tracking;
2775fi
2776
2777if test "x$enable_dependency_tracking" != xno; then
2778  am_depcomp="$ac_aux_dir/depcomp"
2779  AMDEPBACKSLASH='\'
2780fi
2781 if test "x$enable_dependency_tracking" != xno; then
2782  AMDEP_TRUE=
2783  AMDEP_FALSE='#'
2784else
2785  AMDEP_TRUE='#'
2786  AMDEP_FALSE=
2787fi
2788
2789
2790ac_ext=c
2791ac_cpp='$CPP $CPPFLAGS'
2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2794ac_compiler_gnu=$ac_cv_c_compiler_gnu
2795if test -n "$ac_tool_prefix"; then
2796  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2797set dummy ${ac_tool_prefix}gcc; ac_word=$2
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799$as_echo_n "checking for $ac_word... " >&6; }
2800if test "${ac_cv_prog_CC+set}" = set; then :
2801  $as_echo_n "(cached) " >&6
2802else
2803  if test -n "$CC"; then
2804  ac_cv_prog_CC="$CC" # Let the user override the test.
2805else
2806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2807for as_dir in $PATH
2808do
2809  IFS=$as_save_IFS
2810  test -z "$as_dir" && as_dir=.
2811    for ac_exec_ext in '' $ac_executable_extensions; do
2812  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2813    ac_cv_prog_CC="${ac_tool_prefix}gcc"
2814    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2815    break 2
2816  fi
2817done
2818  done
2819IFS=$as_save_IFS
2820
2821fi
2822fi
2823CC=$ac_cv_prog_CC
2824if test -n "$CC"; then
2825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826$as_echo "$CC" >&6; }
2827else
2828  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829$as_echo "no" >&6; }
2830fi
2831
2832
2833fi
2834if test -z "$ac_cv_prog_CC"; then
2835  ac_ct_CC=$CC
2836  # Extract the first word of "gcc", so it can be a program name with args.
2837set dummy gcc; ac_word=$2
2838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839$as_echo_n "checking for $ac_word... " >&6; }
2840if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2841  $as_echo_n "(cached) " >&6
2842else
2843  if test -n "$ac_ct_CC"; then
2844  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2845else
2846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847for as_dir in $PATH
2848do
2849  IFS=$as_save_IFS
2850  test -z "$as_dir" && as_dir=.
2851    for ac_exec_ext in '' $ac_executable_extensions; do
2852  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2853    ac_cv_prog_ac_ct_CC="gcc"
2854    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855    break 2
2856  fi
2857done
2858  done
2859IFS=$as_save_IFS
2860
2861fi
2862fi
2863ac_ct_CC=$ac_cv_prog_ac_ct_CC
2864if test -n "$ac_ct_CC"; then
2865  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2866$as_echo "$ac_ct_CC" >&6; }
2867else
2868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869$as_echo "no" >&6; }
2870fi
2871
2872  if test "x$ac_ct_CC" = x; then
2873    CC=""
2874  else
2875    case $cross_compiling:$ac_tool_warned in
2876yes:)
2877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2879ac_tool_warned=yes ;;
2880esac
2881    CC=$ac_ct_CC
2882  fi
2883else
2884  CC="$ac_cv_prog_CC"
2885fi
2886
2887if test -z "$CC"; then
2888          if test -n "$ac_tool_prefix"; then
2889    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2890set dummy ${ac_tool_prefix}cc; ac_word=$2
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2892$as_echo_n "checking for $ac_word... " >&6; }
2893if test "${ac_cv_prog_CC+set}" = set; then :
2894  $as_echo_n "(cached) " >&6
2895else
2896  if test -n "$CC"; then
2897  ac_cv_prog_CC="$CC" # Let the user override the test.
2898else
2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2900for as_dir in $PATH
2901do
2902  IFS=$as_save_IFS
2903  test -z "$as_dir" && as_dir=.
2904    for ac_exec_ext in '' $ac_executable_extensions; do
2905  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2906    ac_cv_prog_CC="${ac_tool_prefix}cc"
2907    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908    break 2
2909  fi
2910done
2911  done
2912IFS=$as_save_IFS
2913
2914fi
2915fi
2916CC=$ac_cv_prog_CC
2917if test -n "$CC"; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2919$as_echo "$CC" >&6; }
2920else
2921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922$as_echo "no" >&6; }
2923fi
2924
2925
2926  fi
2927fi
2928if test -z "$CC"; then
2929  # Extract the first word of "cc", so it can be a program name with args.
2930set dummy cc; ac_word=$2
2931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2932$as_echo_n "checking for $ac_word... " >&6; }
2933if test "${ac_cv_prog_CC+set}" = set; then :
2934  $as_echo_n "(cached) " >&6
2935else
2936  if test -n "$CC"; then
2937  ac_cv_prog_CC="$CC" # Let the user override the test.
2938else
2939  ac_prog_rejected=no
2940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941for as_dir in $PATH
2942do
2943  IFS=$as_save_IFS
2944  test -z "$as_dir" && as_dir=.
2945    for ac_exec_ext in '' $ac_executable_extensions; do
2946  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2948       ac_prog_rejected=yes
2949       continue
2950     fi
2951    ac_cv_prog_CC="cc"
2952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953    break 2
2954  fi
2955done
2956  done
2957IFS=$as_save_IFS
2958
2959if test $ac_prog_rejected = yes; then
2960  # We found a bogon in the path, so make sure we never use it.
2961  set dummy $ac_cv_prog_CC
2962  shift
2963  if test $# != 0; then
2964    # We chose a different compiler from the bogus one.
2965    # However, it has the same basename, so the bogon will be chosen
2966    # first if we set CC to just the basename; use the full file name.
2967    shift
2968    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2969  fi
2970fi
2971fi
2972fi
2973CC=$ac_cv_prog_CC
2974if test -n "$CC"; then
2975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2976$as_echo "$CC" >&6; }
2977else
2978  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2979$as_echo "no" >&6; }
2980fi
2981
2982
2983fi
2984if test -z "$CC"; then
2985  if test -n "$ac_tool_prefix"; then
2986  for ac_prog in cl.exe
2987  do
2988    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2991$as_echo_n "checking for $ac_word... " >&6; }
2992if test "${ac_cv_prog_CC+set}" = set; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  if test -n "$CC"; then
2996  ac_cv_prog_CC="$CC" # Let the user override the test.
2997else
2998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2999for as_dir in $PATH
3000do
3001  IFS=$as_save_IFS
3002  test -z "$as_dir" && as_dir=.
3003    for ac_exec_ext in '' $ac_executable_extensions; do
3004  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3005    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3006    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007    break 2
3008  fi
3009done
3010  done
3011IFS=$as_save_IFS
3012
3013fi
3014fi
3015CC=$ac_cv_prog_CC
3016if test -n "$CC"; then
3017  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3018$as_echo "$CC" >&6; }
3019else
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022fi
3023
3024
3025    test -n "$CC" && break
3026  done
3027fi
3028if test -z "$CC"; then
3029  ac_ct_CC=$CC
3030  for ac_prog in cl.exe
3031do
3032  # Extract the first word of "$ac_prog", so it can be a program name with args.
3033set dummy $ac_prog; ac_word=$2
3034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3035$as_echo_n "checking for $ac_word... " >&6; }
3036if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3037  $as_echo_n "(cached) " >&6
3038else
3039  if test -n "$ac_ct_CC"; then
3040  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047    for ac_exec_ext in '' $ac_executable_extensions; do
3048  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3049    ac_cv_prog_ac_ct_CC="$ac_prog"
3050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054  done
3055IFS=$as_save_IFS
3056
3057fi
3058fi
3059ac_ct_CC=$ac_cv_prog_ac_ct_CC
3060if test -n "$ac_ct_CC"; then
3061  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3062$as_echo "$ac_ct_CC" >&6; }
3063else
3064  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3065$as_echo "no" >&6; }
3066fi
3067
3068
3069  test -n "$ac_ct_CC" && break
3070done
3071
3072  if test "x$ac_ct_CC" = x; then
3073    CC=""
3074  else
3075    case $cross_compiling:$ac_tool_warned in
3076yes:)
3077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3079ac_tool_warned=yes ;;
3080esac
3081    CC=$ac_ct_CC
3082  fi
3083fi
3084
3085fi
3086
3087
3088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3090as_fn_error $? "no acceptable C compiler found in \$PATH
3091See \`config.log' for more details" "$LINENO" 5; }
3092
3093# Provide some information about the compiler.
3094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3095set X $ac_compile
3096ac_compiler=$2
3097for ac_option in --version -v -V -qversion; do
3098  { { ac_try="$ac_compiler $ac_option >&5"
3099case "(($ac_try" in
3100  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101  *) ac_try_echo=$ac_try;;
3102esac
3103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3104$as_echo "$ac_try_echo"; } >&5
3105  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3106  ac_status=$?
3107  if test -s conftest.err; then
3108    sed '10a\
3109... rest of stderr output deleted ...
3110         10q' conftest.err >conftest.er1
3111    cat conftest.er1 >&5
3112  fi
3113  rm -f conftest.er1 conftest.err
3114  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115  test $ac_status = 0; }
3116done
3117
3118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119/* end confdefs.h.  */
3120
3121int
3122main ()
3123{
3124
3125  ;
3126  return 0;
3127}
3128_ACEOF
3129ac_clean_files_save=$ac_clean_files
3130ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3131# Try to create an executable without -o first, disregard a.out.
3132# It will help us diagnose broken compilers, and finding out an intuition
3133# of exeext.
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3135$as_echo_n "checking whether the C compiler works... " >&6; }
3136ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3137
3138# The possible output files:
3139ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3140
3141ac_rmfiles=
3142for ac_file in $ac_files
3143do
3144  case $ac_file in
3145    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3146    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3147  esac
3148done
3149rm -f $ac_rmfiles
3150
3151if { { ac_try="$ac_link_default"
3152case "(($ac_try" in
3153  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154  *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158  (eval "$ac_link_default") 2>&5
3159  ac_status=$?
3160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161  test $ac_status = 0; }; then :
3162  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3163# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3164# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3165# so that the user can short-circuit this test for compilers unknown to
3166# Autoconf.
3167for ac_file in $ac_files ''
3168do
3169  test -f "$ac_file" || continue
3170  case $ac_file in
3171    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3172	;;
3173    [ab].out )
3174	# We found the default executable, but exeext='' is most
3175	# certainly right.
3176	break;;
3177    *.* )
3178	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3179	then :; else
3180	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3181	fi
3182	# We set ac_cv_exeext here because the later test for it is not
3183	# safe: cross compilers may not add the suffix if given an `-o'
3184	# argument, so we may need to know it at that point already.
3185	# Even if this section looks crufty: it has the advantage of
3186	# actually working.
3187	break;;
3188    * )
3189	break;;
3190  esac
3191done
3192test "$ac_cv_exeext" = no && ac_cv_exeext=
3193
3194else
3195  ac_file=''
3196fi
3197if test -z "$ac_file"; then :
3198  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3199$as_echo "no" >&6; }
3200$as_echo "$as_me: failed program was:" >&5
3201sed 's/^/| /' conftest.$ac_ext >&5
3202
3203{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3205as_fn_error 77 "C compiler cannot create executables
3206See \`config.log' for more details" "$LINENO" 5; }
3207else
3208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209$as_echo "yes" >&6; }
3210fi
3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3212$as_echo_n "checking for C compiler default output file name... " >&6; }
3213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3214$as_echo "$ac_file" >&6; }
3215ac_exeext=$ac_cv_exeext
3216
3217rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3218ac_clean_files=$ac_clean_files_save
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3220$as_echo_n "checking for suffix of executables... " >&6; }
3221if { { ac_try="$ac_link"
3222case "(($ac_try" in
3223  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224  *) ac_try_echo=$ac_try;;
3225esac
3226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228  (eval "$ac_link") 2>&5
3229  ac_status=$?
3230  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3231  test $ac_status = 0; }; then :
3232  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3233# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3234# work properly (i.e., refer to `conftest.exe'), while it won't with
3235# `rm'.
3236for ac_file in conftest.exe conftest conftest.*; do
3237  test -f "$ac_file" || continue
3238  case $ac_file in
3239    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3240    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3241	  break;;
3242    * ) break;;
3243  esac
3244done
3245else
3246  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3248as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3249See \`config.log' for more details" "$LINENO" 5; }
3250fi
3251rm -f conftest conftest$ac_cv_exeext
3252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3253$as_echo "$ac_cv_exeext" >&6; }
3254
3255rm -f conftest.$ac_ext
3256EXEEXT=$ac_cv_exeext
3257ac_exeext=$EXEEXT
3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3259/* end confdefs.h.  */
3260#include <stdio.h>
3261int
3262main ()
3263{
3264FILE *f = fopen ("conftest.out", "w");
3265 return ferror (f) || fclose (f) != 0;
3266
3267  ;
3268  return 0;
3269}
3270_ACEOF
3271ac_clean_files="$ac_clean_files conftest.out"
3272# Check that the compiler produces executables we can run.  If not, either
3273# the compiler is broken, or we cross compile.
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3275$as_echo_n "checking whether we are cross compiling... " >&6; }
3276if test "$cross_compiling" != yes; then
3277  { { ac_try="$ac_link"
3278case "(($ac_try" in
3279  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280  *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284  (eval "$ac_link") 2>&5
3285  ac_status=$?
3286  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287  test $ac_status = 0; }
3288  if { ac_try='./conftest$ac_cv_exeext'
3289  { { case "(($ac_try" in
3290  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3291  *) ac_try_echo=$ac_try;;
3292esac
3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3294$as_echo "$ac_try_echo"; } >&5
3295  (eval "$ac_try") 2>&5
3296  ac_status=$?
3297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3298  test $ac_status = 0; }; }; then
3299    cross_compiling=no
3300  else
3301    if test "$cross_compiling" = maybe; then
3302	cross_compiling=yes
3303    else
3304	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306as_fn_error $? "cannot run C compiled programs.
3307If you meant to cross compile, use \`--host'.
3308See \`config.log' for more details" "$LINENO" 5; }
3309    fi
3310  fi
3311fi
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3313$as_echo "$cross_compiling" >&6; }
3314
3315rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3316ac_clean_files=$ac_clean_files_save
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3318$as_echo_n "checking for suffix of object files... " >&6; }
3319if test "${ac_cv_objext+set}" = set; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323/* end confdefs.h.  */
3324
3325int
3326main ()
3327{
3328
3329  ;
3330  return 0;
3331}
3332_ACEOF
3333rm -f conftest.o conftest.obj
3334if { { ac_try="$ac_compile"
3335case "(($ac_try" in
3336  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337  *) ac_try_echo=$ac_try;;
3338esac
3339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
3341  (eval "$ac_compile") 2>&5
3342  ac_status=$?
3343  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344  test $ac_status = 0; }; then :
3345  for ac_file in conftest.o conftest.obj conftest.*; do
3346  test -f "$ac_file" || continue;
3347  case $ac_file in
3348    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3349    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3350       break;;
3351  esac
3352done
3353else
3354  $as_echo "$as_me: failed program was:" >&5
3355sed 's/^/| /' conftest.$ac_ext >&5
3356
3357{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error $? "cannot compute suffix of object files: cannot compile
3360See \`config.log' for more details" "$LINENO" 5; }
3361fi
3362rm -f conftest.$ac_cv_objext conftest.$ac_ext
3363fi
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3365$as_echo "$ac_cv_objext" >&6; }
3366OBJEXT=$ac_cv_objext
3367ac_objext=$OBJEXT
3368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3369$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3370if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3371  $as_echo_n "(cached) " >&6
3372else
3373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h.  */
3375
3376int
3377main ()
3378{
3379#ifndef __GNUC__
3380       choke me
3381#endif
3382
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387if ac_fn_c_try_compile "$LINENO"; then :
3388  ac_compiler_gnu=yes
3389else
3390  ac_compiler_gnu=no
3391fi
3392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3393ac_cv_c_compiler_gnu=$ac_compiler_gnu
3394
3395fi
3396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3397$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3398if test $ac_compiler_gnu = yes; then
3399  GCC=yes
3400else
3401  GCC=
3402fi
3403ac_test_CFLAGS=${CFLAGS+set}
3404ac_save_CFLAGS=$CFLAGS
3405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3406$as_echo_n "checking whether $CC accepts -g... " >&6; }
3407if test "${ac_cv_prog_cc_g+set}" = set; then :
3408  $as_echo_n "(cached) " >&6
3409else
3410  ac_save_c_werror_flag=$ac_c_werror_flag
3411   ac_c_werror_flag=yes
3412   ac_cv_prog_cc_g=no
3413   CFLAGS="-g"
3414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415/* end confdefs.h.  */
3416
3417int
3418main ()
3419{
3420
3421  ;
3422  return 0;
3423}
3424_ACEOF
3425if ac_fn_c_try_compile "$LINENO"; then :
3426  ac_cv_prog_cc_g=yes
3427else
3428  CFLAGS=""
3429      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3430/* end confdefs.h.  */
3431
3432int
3433main ()
3434{
3435
3436  ;
3437  return 0;
3438}
3439_ACEOF
3440if ac_fn_c_try_compile "$LINENO"; then :
3441
3442else
3443  ac_c_werror_flag=$ac_save_c_werror_flag
3444	 CFLAGS="-g"
3445	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446/* end confdefs.h.  */
3447
3448int
3449main ()
3450{
3451
3452  ;
3453  return 0;
3454}
3455_ACEOF
3456if ac_fn_c_try_compile "$LINENO"; then :
3457  ac_cv_prog_cc_g=yes
3458fi
3459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3460fi
3461rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3462fi
3463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3464   ac_c_werror_flag=$ac_save_c_werror_flag
3465fi
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3467$as_echo "$ac_cv_prog_cc_g" >&6; }
3468if test "$ac_test_CFLAGS" = set; then
3469  CFLAGS=$ac_save_CFLAGS
3470elif test $ac_cv_prog_cc_g = yes; then
3471  if test "$GCC" = yes; then
3472    CFLAGS="-g -O2"
3473  else
3474    CFLAGS="-g"
3475  fi
3476else
3477  if test "$GCC" = yes; then
3478    CFLAGS="-O2"
3479  else
3480    CFLAGS=
3481  fi
3482fi
3483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3484$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3485if test "${ac_cv_prog_cc_c89+set}" = set; then :
3486  $as_echo_n "(cached) " >&6
3487else
3488  ac_cv_prog_cc_c89=no
3489ac_save_CC=$CC
3490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491/* end confdefs.h.  */
3492#include <stdarg.h>
3493#include <stdio.h>
3494#include <sys/types.h>
3495#include <sys/stat.h>
3496/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3497struct buf { int x; };
3498FILE * (*rcsopen) (struct buf *, struct stat *, int);
3499static char *e (p, i)
3500     char **p;
3501     int i;
3502{
3503  return p[i];
3504}
3505static char *f (char * (*g) (char **, int), char **p, ...)
3506{
3507  char *s;
3508  va_list v;
3509  va_start (v,p);
3510  s = g (p, va_arg (v,int));
3511  va_end (v);
3512  return s;
3513}
3514
3515/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3516   function prototypes and stuff, but not '\xHH' hex character constants.
3517   These don't provoke an error unfortunately, instead are silently treated
3518   as 'x'.  The following induces an error, until -std is added to get
3519   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3520   array size at least.  It's necessary to write '\x00'==0 to get something
3521   that's true only with -std.  */
3522int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3523
3524/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3525   inside strings and character constants.  */
3526#define FOO(x) 'x'
3527int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3528
3529int test (int i, double x);
3530struct s1 {int (*f) (int a);};
3531struct s2 {int (*f) (double a);};
3532int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3533int argc;
3534char **argv;
3535int
3536main ()
3537{
3538return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3539  ;
3540  return 0;
3541}
3542_ACEOF
3543for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3544	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3545do
3546  CC="$ac_save_CC $ac_arg"
3547  if ac_fn_c_try_compile "$LINENO"; then :
3548  ac_cv_prog_cc_c89=$ac_arg
3549fi
3550rm -f core conftest.err conftest.$ac_objext
3551  test "x$ac_cv_prog_cc_c89" != "xno" && break
3552done
3553rm -f conftest.$ac_ext
3554CC=$ac_save_CC
3555
3556fi
3557# AC_CACHE_VAL
3558case "x$ac_cv_prog_cc_c89" in
3559  x)
3560    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3561$as_echo "none needed" >&6; } ;;
3562  xno)
3563    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3564$as_echo "unsupported" >&6; } ;;
3565  *)
3566    CC="$CC $ac_cv_prog_cc_c89"
3567    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3568$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3569esac
3570if test "x$ac_cv_prog_cc_c89" != xno; then :
3571
3572fi
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
3579
3580depcc="$CC"   am_compiler_list=
3581
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3583$as_echo_n "checking dependency style of $depcc... " >&6; }
3584if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3585  $as_echo_n "(cached) " >&6
3586else
3587  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3588  # We make a subdir and do the tests there.  Otherwise we can end up
3589  # making bogus files that we don't know about and never remove.  For
3590  # instance it was reported that on HP-UX the gcc test will end up
3591  # making a dummy file named `D' -- because `-MD' means `put the output
3592  # in D'.
3593  mkdir conftest.dir
3594  # Copy depcomp to subdir because otherwise we won't find it if we're
3595  # using a relative directory.
3596  cp "$am_depcomp" conftest.dir
3597  cd conftest.dir
3598  # We will build objects and dependencies in a subdirectory because
3599  # it helps to detect inapplicable dependency modes.  For instance
3600  # both Tru64's cc and ICC support -MD to output dependencies as a
3601  # side effect of compilation, but ICC will put the dependencies in
3602  # the current directory while Tru64 will put them in the object
3603  # directory.
3604  mkdir sub
3605
3606  am_cv_CC_dependencies_compiler_type=none
3607  if test "$am_compiler_list" = ""; then
3608     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3609  fi
3610  am__universal=false
3611  case " $depcc " in #(
3612     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3613     esac
3614
3615  for depmode in $am_compiler_list; do
3616    # Setup a source with many dependencies, because some compilers
3617    # like to wrap large dependency lists on column 80 (with \), and
3618    # we should not choose a depcomp mode which is confused by this.
3619    #
3620    # We need to recreate these files for each test, as the compiler may
3621    # overwrite some of them when testing with obscure command lines.
3622    # This happens at least with the AIX C compiler.
3623    : > sub/conftest.c
3624    for i in 1 2 3 4 5 6; do
3625      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3626      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3627      # Solaris 8's {/usr,}/bin/sh.
3628      touch sub/conftst$i.h
3629    done
3630    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3631
3632    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3633    # mode.  It turns out that the SunPro C++ compiler does not properly
3634    # handle `-M -o', and we need to detect this.  Also, some Intel
3635    # versions had trouble with output in subdirs
3636    am__obj=sub/conftest.${OBJEXT-o}
3637    am__minus_obj="-o $am__obj"
3638    case $depmode in
3639    gcc)
3640      # This depmode causes a compiler race in universal mode.
3641      test "$am__universal" = false || continue
3642      ;;
3643    nosideeffect)
3644      # after this tag, mechanisms are not by side-effect, so they'll
3645      # only be used when explicitly requested
3646      if test "x$enable_dependency_tracking" = xyes; then
3647	continue
3648      else
3649	break
3650      fi
3651      ;;
3652    msvisualcpp | msvcmsys)
3653      # This compiler won't grok `-c -o', but also, the minuso test has
3654      # not run yet.  These depmodes are late enough in the game, and
3655      # so weak that their functioning should not be impacted.
3656      am__obj=conftest.${OBJEXT-o}
3657      am__minus_obj=
3658      ;;
3659    none) break ;;
3660    esac
3661    if depmode=$depmode \
3662       source=sub/conftest.c object=$am__obj \
3663       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3664       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3665         >/dev/null 2>conftest.err &&
3666       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3667       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3668       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3669       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3670      # icc doesn't choke on unknown options, it will just issue warnings
3671      # or remarks (even with -Werror).  So we grep stderr for any message
3672      # that says an option was ignored or not supported.
3673      # When given -MP, icc 7.0 and 7.1 complain thusly:
3674      #   icc: Command line warning: ignoring option '-M'; no argument required
3675      # The diagnosis changed in icc 8.0:
3676      #   icc: Command line remark: option '-MP' not supported
3677      if (grep 'ignoring option' conftest.err ||
3678          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3679        am_cv_CC_dependencies_compiler_type=$depmode
3680        break
3681      fi
3682    fi
3683  done
3684
3685  cd ..
3686  rm -rf conftest.dir
3687else
3688  am_cv_CC_dependencies_compiler_type=none
3689fi
3690
3691fi
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3693$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3694CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3695
3696 if
3697  test "x$enable_dependency_tracking" != xno \
3698  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3699  am__fastdepCC_TRUE=
3700  am__fastdepCC_FALSE='#'
3701else
3702  am__fastdepCC_TRUE='#'
3703  am__fastdepCC_FALSE=
3704fi
3705
3706
3707
3708ac_ext=c
3709ac_cpp='$CPP $CPPFLAGS'
3710ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3714$as_echo_n "checking how to run the C preprocessor... " >&6; }
3715# On Suns, sometimes $CPP names a directory.
3716if test -n "$CPP" && test -d "$CPP"; then
3717  CPP=
3718fi
3719if test -z "$CPP"; then
3720  if test "${ac_cv_prog_CPP+set}" = set; then :
3721  $as_echo_n "(cached) " >&6
3722else
3723      # Double quotes because CPP needs to be expanded
3724    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3725    do
3726      ac_preproc_ok=false
3727for ac_c_preproc_warn_flag in '' yes
3728do
3729  # Use a header file that comes with gcc, so configuring glibc
3730  # with a fresh cross-compiler works.
3731  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3732  # <limits.h> exists even on freestanding compilers.
3733  # On the NeXT, cc -E runs the code through the compiler's parser,
3734  # not just through cpp. "Syntax error" is here to catch this case.
3735  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736/* end confdefs.h.  */
3737#ifdef __STDC__
3738# include <limits.h>
3739#else
3740# include <assert.h>
3741#endif
3742		     Syntax error
3743_ACEOF
3744if ac_fn_c_try_cpp "$LINENO"; then :
3745
3746else
3747  # Broken: fails on valid input.
3748continue
3749fi
3750rm -f conftest.err conftest.$ac_ext
3751
3752  # OK, works on sane cases.  Now check whether nonexistent headers
3753  # can be detected and how.
3754  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756#include <ac_nonexistent.h>
3757_ACEOF
3758if ac_fn_c_try_cpp "$LINENO"; then :
3759  # Broken: success on invalid input.
3760continue
3761else
3762  # Passes both tests.
3763ac_preproc_ok=:
3764break
3765fi
3766rm -f conftest.err conftest.$ac_ext
3767
3768done
3769# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770rm -f conftest.err conftest.$ac_ext
3771if $ac_preproc_ok; then :
3772  break
3773fi
3774
3775    done
3776    ac_cv_prog_CPP=$CPP
3777
3778fi
3779  CPP=$ac_cv_prog_CPP
3780else
3781  ac_cv_prog_CPP=$CPP
3782fi
3783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3784$as_echo "$CPP" >&6; }
3785ac_preproc_ok=false
3786for ac_c_preproc_warn_flag in '' yes
3787do
3788  # Use a header file that comes with gcc, so configuring glibc
3789  # with a fresh cross-compiler works.
3790  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791  # <limits.h> exists even on freestanding compilers.
3792  # On the NeXT, cc -E runs the code through the compiler's parser,
3793  # not just through cpp. "Syntax error" is here to catch this case.
3794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795/* end confdefs.h.  */
3796#ifdef __STDC__
3797# include <limits.h>
3798#else
3799# include <assert.h>
3800#endif
3801		     Syntax error
3802_ACEOF
3803if ac_fn_c_try_cpp "$LINENO"; then :
3804
3805else
3806  # Broken: fails on valid input.
3807continue
3808fi
3809rm -f conftest.err conftest.$ac_ext
3810
3811  # OK, works on sane cases.  Now check whether nonexistent headers
3812  # can be detected and how.
3813  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814/* end confdefs.h.  */
3815#include <ac_nonexistent.h>
3816_ACEOF
3817if ac_fn_c_try_cpp "$LINENO"; then :
3818  # Broken: success on invalid input.
3819continue
3820else
3821  # Passes both tests.
3822ac_preproc_ok=:
3823break
3824fi
3825rm -f conftest.err conftest.$ac_ext
3826
3827done
3828# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3829rm -f conftest.err conftest.$ac_ext
3830if $ac_preproc_ok; then :
3831
3832else
3833  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3836See \`config.log' for more details" "$LINENO" 5; }
3837fi
3838
3839ac_ext=c
3840ac_cpp='$CPP $CPPFLAGS'
3841ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843ac_compiler_gnu=$ac_cv_c_compiler_gnu
3844
3845
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3847$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3848if test "${ac_cv_path_GREP+set}" = set; then :
3849  $as_echo_n "(cached) " >&6
3850else
3851  if test -z "$GREP"; then
3852  ac_path_GREP_found=false
3853  # Loop through the user's path and test for each of PROGNAME-LIST
3854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3856do
3857  IFS=$as_save_IFS
3858  test -z "$as_dir" && as_dir=.
3859    for ac_prog in grep ggrep; do
3860    for ac_exec_ext in '' $ac_executable_extensions; do
3861      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3862      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3863# Check for GNU ac_path_GREP and select it if it is found.
3864  # Check for GNU $ac_path_GREP
3865case `"$ac_path_GREP" --version 2>&1` in
3866*GNU*)
3867  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3868*)
3869  ac_count=0
3870  $as_echo_n 0123456789 >"conftest.in"
3871  while :
3872  do
3873    cat "conftest.in" "conftest.in" >"conftest.tmp"
3874    mv "conftest.tmp" "conftest.in"
3875    cp "conftest.in" "conftest.nl"
3876    $as_echo 'GREP' >> "conftest.nl"
3877    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3878    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3879    as_fn_arith $ac_count + 1 && ac_count=$as_val
3880    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3881      # Best one so far, save it but keep looking for a better one
3882      ac_cv_path_GREP="$ac_path_GREP"
3883      ac_path_GREP_max=$ac_count
3884    fi
3885    # 10*(2^10) chars as input seems more than enough
3886    test $ac_count -gt 10 && break
3887  done
3888  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3889esac
3890
3891      $ac_path_GREP_found && break 3
3892    done
3893  done
3894  done
3895IFS=$as_save_IFS
3896  if test -z "$ac_cv_path_GREP"; then
3897    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3898  fi
3899else
3900  ac_cv_path_GREP=$GREP
3901fi
3902
3903fi
3904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3905$as_echo "$ac_cv_path_GREP" >&6; }
3906 GREP="$ac_cv_path_GREP"
3907
3908
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3910$as_echo_n "checking for egrep... " >&6; }
3911if test "${ac_cv_path_EGREP+set}" = set; then :
3912  $as_echo_n "(cached) " >&6
3913else
3914  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3915   then ac_cv_path_EGREP="$GREP -E"
3916   else
3917     if test -z "$EGREP"; then
3918  ac_path_EGREP_found=false
3919  # Loop through the user's path and test for each of PROGNAME-LIST
3920  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3922do
3923  IFS=$as_save_IFS
3924  test -z "$as_dir" && as_dir=.
3925    for ac_prog in egrep; do
3926    for ac_exec_ext in '' $ac_executable_extensions; do
3927      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3928      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3929# Check for GNU ac_path_EGREP and select it if it is found.
3930  # Check for GNU $ac_path_EGREP
3931case `"$ac_path_EGREP" --version 2>&1` in
3932*GNU*)
3933  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3934*)
3935  ac_count=0
3936  $as_echo_n 0123456789 >"conftest.in"
3937  while :
3938  do
3939    cat "conftest.in" "conftest.in" >"conftest.tmp"
3940    mv "conftest.tmp" "conftest.in"
3941    cp "conftest.in" "conftest.nl"
3942    $as_echo 'EGREP' >> "conftest.nl"
3943    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3944    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3945    as_fn_arith $ac_count + 1 && ac_count=$as_val
3946    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3947      # Best one so far, save it but keep looking for a better one
3948      ac_cv_path_EGREP="$ac_path_EGREP"
3949      ac_path_EGREP_max=$ac_count
3950    fi
3951    # 10*(2^10) chars as input seems more than enough
3952    test $ac_count -gt 10 && break
3953  done
3954  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3955esac
3956
3957      $ac_path_EGREP_found && break 3
3958    done
3959  done
3960  done
3961IFS=$as_save_IFS
3962  if test -z "$ac_cv_path_EGREP"; then
3963    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3964  fi
3965else
3966  ac_cv_path_EGREP=$EGREP
3967fi
3968
3969   fi
3970fi
3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3972$as_echo "$ac_cv_path_EGREP" >&6; }
3973 EGREP="$ac_cv_path_EGREP"
3974
3975
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3977$as_echo_n "checking for ANSI C header files... " >&6; }
3978if test "${ac_cv_header_stdc+set}" = set; then :
3979  $as_echo_n "(cached) " >&6
3980else
3981  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982/* end confdefs.h.  */
3983#include <stdlib.h>
3984#include <stdarg.h>
3985#include <string.h>
3986#include <float.h>
3987
3988int
3989main ()
3990{
3991
3992  ;
3993  return 0;
3994}
3995_ACEOF
3996if ac_fn_c_try_compile "$LINENO"; then :
3997  ac_cv_header_stdc=yes
3998else
3999  ac_cv_header_stdc=no
4000fi
4001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002
4003if test $ac_cv_header_stdc = yes; then
4004  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006/* end confdefs.h.  */
4007#include <string.h>
4008
4009_ACEOF
4010if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011  $EGREP "memchr" >/dev/null 2>&1; then :
4012
4013else
4014  ac_cv_header_stdc=no
4015fi
4016rm -f conftest*
4017
4018fi
4019
4020if test $ac_cv_header_stdc = yes; then
4021  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4022  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023/* end confdefs.h.  */
4024#include <stdlib.h>
4025
4026_ACEOF
4027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4028  $EGREP "free" >/dev/null 2>&1; then :
4029
4030else
4031  ac_cv_header_stdc=no
4032fi
4033rm -f conftest*
4034
4035fi
4036
4037if test $ac_cv_header_stdc = yes; then
4038  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4039  if test "$cross_compiling" = yes; then :
4040  :
4041else
4042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043/* end confdefs.h.  */
4044#include <ctype.h>
4045#include <stdlib.h>
4046#if ((' ' & 0x0FF) == 0x020)
4047# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4048# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4049#else
4050# define ISLOWER(c) \
4051		   (('a' <= (c) && (c) <= 'i') \
4052		     || ('j' <= (c) && (c) <= 'r') \
4053		     || ('s' <= (c) && (c) <= 'z'))
4054# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4055#endif
4056
4057#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4058int
4059main ()
4060{
4061  int i;
4062  for (i = 0; i < 256; i++)
4063    if (XOR (islower (i), ISLOWER (i))
4064	|| toupper (i) != TOUPPER (i))
4065      return 2;
4066  return 0;
4067}
4068_ACEOF
4069if ac_fn_c_try_run "$LINENO"; then :
4070
4071else
4072  ac_cv_header_stdc=no
4073fi
4074rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4075  conftest.$ac_objext conftest.beam conftest.$ac_ext
4076fi
4077
4078fi
4079fi
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4081$as_echo "$ac_cv_header_stdc" >&6; }
4082if test $ac_cv_header_stdc = yes; then
4083
4084$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4085
4086fi
4087
4088# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4089for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4090		  inttypes.h stdint.h unistd.h
4091do :
4092  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4093ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4094"
4095if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4096  cat >>confdefs.h <<_ACEOF
4097#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4098_ACEOF
4099
4100fi
4101
4102done
4103
4104
4105
4106  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4107if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4108  MINIX=yes
4109else
4110  MINIX=
4111fi
4112
4113
4114  if test "$MINIX" = yes; then
4115
4116$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4117
4118
4119$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4120
4121
4122$as_echo "#define _MINIX 1" >>confdefs.h
4123
4124  fi
4125
4126
4127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4128$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4129if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4130  $as_echo_n "(cached) " >&6
4131else
4132  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133/* end confdefs.h.  */
4134
4135#	  define __EXTENSIONS__ 1
4136	  $ac_includes_default
4137int
4138main ()
4139{
4140
4141  ;
4142  return 0;
4143}
4144_ACEOF
4145if ac_fn_c_try_compile "$LINENO"; then :
4146  ac_cv_safe_to_define___extensions__=yes
4147else
4148  ac_cv_safe_to_define___extensions__=no
4149fi
4150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4153$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4154  test $ac_cv_safe_to_define___extensions__ = yes &&
4155    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4156
4157  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4158
4159  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4160
4161  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4162
4163  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4164
4165
4166ac_ext=c
4167ac_cpp='$CPP $CPPFLAGS'
4168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4170ac_compiler_gnu=$ac_cv_c_compiler_gnu
4171if test -n "$ac_tool_prefix"; then
4172  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4173set dummy ${ac_tool_prefix}gcc; ac_word=$2
4174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4175$as_echo_n "checking for $ac_word... " >&6; }
4176if test "${ac_cv_prog_CC+set}" = set; then :
4177  $as_echo_n "(cached) " >&6
4178else
4179  if test -n "$CC"; then
4180  ac_cv_prog_CC="$CC" # Let the user override the test.
4181else
4182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185  IFS=$as_save_IFS
4186  test -z "$as_dir" && as_dir=.
4187    for ac_exec_ext in '' $ac_executable_extensions; do
4188  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4189    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4190    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191    break 2
4192  fi
4193done
4194  done
4195IFS=$as_save_IFS
4196
4197fi
4198fi
4199CC=$ac_cv_prog_CC
4200if test -n "$CC"; then
4201  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4202$as_echo "$CC" >&6; }
4203else
4204  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4205$as_echo "no" >&6; }
4206fi
4207
4208
4209fi
4210if test -z "$ac_cv_prog_CC"; then
4211  ac_ct_CC=$CC
4212  # Extract the first word of "gcc", so it can be a program name with args.
4213set dummy gcc; ac_word=$2
4214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215$as_echo_n "checking for $ac_word... " >&6; }
4216if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4217  $as_echo_n "(cached) " >&6
4218else
4219  if test -n "$ac_ct_CC"; then
4220  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4221else
4222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223for as_dir in $PATH
4224do
4225  IFS=$as_save_IFS
4226  test -z "$as_dir" && as_dir=.
4227    for ac_exec_ext in '' $ac_executable_extensions; do
4228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4229    ac_cv_prog_ac_ct_CC="gcc"
4230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231    break 2
4232  fi
4233done
4234  done
4235IFS=$as_save_IFS
4236
4237fi
4238fi
4239ac_ct_CC=$ac_cv_prog_ac_ct_CC
4240if test -n "$ac_ct_CC"; then
4241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4242$as_echo "$ac_ct_CC" >&6; }
4243else
4244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245$as_echo "no" >&6; }
4246fi
4247
4248  if test "x$ac_ct_CC" = x; then
4249    CC=""
4250  else
4251    case $cross_compiling:$ac_tool_warned in
4252yes:)
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255ac_tool_warned=yes ;;
4256esac
4257    CC=$ac_ct_CC
4258  fi
4259else
4260  CC="$ac_cv_prog_CC"
4261fi
4262
4263if test -z "$CC"; then
4264          if test -n "$ac_tool_prefix"; then
4265    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4266set dummy ${ac_tool_prefix}cc; ac_word=$2
4267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268$as_echo_n "checking for $ac_word... " >&6; }
4269if test "${ac_cv_prog_CC+set}" = set; then :
4270  $as_echo_n "(cached) " >&6
4271else
4272  if test -n "$CC"; then
4273  ac_cv_prog_CC="$CC" # Let the user override the test.
4274else
4275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276for as_dir in $PATH
4277do
4278  IFS=$as_save_IFS
4279  test -z "$as_dir" && as_dir=.
4280    for ac_exec_ext in '' $ac_executable_extensions; do
4281  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4282    ac_cv_prog_CC="${ac_tool_prefix}cc"
4283    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284    break 2
4285  fi
4286done
4287  done
4288IFS=$as_save_IFS
4289
4290fi
4291fi
4292CC=$ac_cv_prog_CC
4293if test -n "$CC"; then
4294  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4295$as_echo "$CC" >&6; }
4296else
4297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298$as_echo "no" >&6; }
4299fi
4300
4301
4302  fi
4303fi
4304if test -z "$CC"; then
4305  # Extract the first word of "cc", so it can be a program name with args.
4306set dummy cc; ac_word=$2
4307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4308$as_echo_n "checking for $ac_word... " >&6; }
4309if test "${ac_cv_prog_CC+set}" = set; then :
4310  $as_echo_n "(cached) " >&6
4311else
4312  if test -n "$CC"; then
4313  ac_cv_prog_CC="$CC" # Let the user override the test.
4314else
4315  ac_prog_rejected=no
4316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4317for as_dir in $PATH
4318do
4319  IFS=$as_save_IFS
4320  test -z "$as_dir" && as_dir=.
4321    for ac_exec_ext in '' $ac_executable_extensions; do
4322  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4323    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4324       ac_prog_rejected=yes
4325       continue
4326     fi
4327    ac_cv_prog_CC="cc"
4328    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4329    break 2
4330  fi
4331done
4332  done
4333IFS=$as_save_IFS
4334
4335if test $ac_prog_rejected = yes; then
4336  # We found a bogon in the path, so make sure we never use it.
4337  set dummy $ac_cv_prog_CC
4338  shift
4339  if test $# != 0; then
4340    # We chose a different compiler from the bogus one.
4341    # However, it has the same basename, so the bogon will be chosen
4342    # first if we set CC to just the basename; use the full file name.
4343    shift
4344    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4345  fi
4346fi
4347fi
4348fi
4349CC=$ac_cv_prog_CC
4350if test -n "$CC"; then
4351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352$as_echo "$CC" >&6; }
4353else
4354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355$as_echo "no" >&6; }
4356fi
4357
4358
4359fi
4360if test -z "$CC"; then
4361  if test -n "$ac_tool_prefix"; then
4362  for ac_prog in cl.exe
4363  do
4364    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4365set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367$as_echo_n "checking for $ac_word... " >&6; }
4368if test "${ac_cv_prog_CC+set}" = set; then :
4369  $as_echo_n "(cached) " >&6
4370else
4371  if test -n "$CC"; then
4372  ac_cv_prog_CC="$CC" # Let the user override the test.
4373else
4374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375for as_dir in $PATH
4376do
4377  IFS=$as_save_IFS
4378  test -z "$as_dir" && as_dir=.
4379    for ac_exec_ext in '' $ac_executable_extensions; do
4380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383    break 2
4384  fi
4385done
4386  done
4387IFS=$as_save_IFS
4388
4389fi
4390fi
4391CC=$ac_cv_prog_CC
4392if test -n "$CC"; then
4393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4394$as_echo "$CC" >&6; }
4395else
4396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397$as_echo "no" >&6; }
4398fi
4399
4400
4401    test -n "$CC" && break
4402  done
4403fi
4404if test -z "$CC"; then
4405  ac_ct_CC=$CC
4406  for ac_prog in cl.exe
4407do
4408  # Extract the first word of "$ac_prog", so it can be a program name with args.
4409set dummy $ac_prog; ac_word=$2
4410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411$as_echo_n "checking for $ac_word... " >&6; }
4412if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4413  $as_echo_n "(cached) " >&6
4414else
4415  if test -n "$ac_ct_CC"; then
4416  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4417else
4418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419for as_dir in $PATH
4420do
4421  IFS=$as_save_IFS
4422  test -z "$as_dir" && as_dir=.
4423    for ac_exec_ext in '' $ac_executable_extensions; do
4424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4425    ac_cv_prog_ac_ct_CC="$ac_prog"
4426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427    break 2
4428  fi
4429done
4430  done
4431IFS=$as_save_IFS
4432
4433fi
4434fi
4435ac_ct_CC=$ac_cv_prog_ac_ct_CC
4436if test -n "$ac_ct_CC"; then
4437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4438$as_echo "$ac_ct_CC" >&6; }
4439else
4440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441$as_echo "no" >&6; }
4442fi
4443
4444
4445  test -n "$ac_ct_CC" && break
4446done
4447
4448  if test "x$ac_ct_CC" = x; then
4449    CC=""
4450  else
4451    case $cross_compiling:$ac_tool_warned in
4452yes:)
4453{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4454$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4455ac_tool_warned=yes ;;
4456esac
4457    CC=$ac_ct_CC
4458  fi
4459fi
4460
4461fi
4462
4463
4464test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4465$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4466as_fn_error $? "no acceptable C compiler found in \$PATH
4467See \`config.log' for more details" "$LINENO" 5; }
4468
4469# Provide some information about the compiler.
4470$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4471set X $ac_compile
4472ac_compiler=$2
4473for ac_option in --version -v -V -qversion; do
4474  { { ac_try="$ac_compiler $ac_option >&5"
4475case "(($ac_try" in
4476  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4477  *) ac_try_echo=$ac_try;;
4478esac
4479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4480$as_echo "$ac_try_echo"; } >&5
4481  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4482  ac_status=$?
4483  if test -s conftest.err; then
4484    sed '10a\
4485... rest of stderr output deleted ...
4486         10q' conftest.err >conftest.er1
4487    cat conftest.er1 >&5
4488  fi
4489  rm -f conftest.er1 conftest.err
4490  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491  test $ac_status = 0; }
4492done
4493
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4495$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4496if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4497  $as_echo_n "(cached) " >&6
4498else
4499  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4500/* end confdefs.h.  */
4501
4502int
4503main ()
4504{
4505#ifndef __GNUC__
4506       choke me
4507#endif
4508
4509  ;
4510  return 0;
4511}
4512_ACEOF
4513if ac_fn_c_try_compile "$LINENO"; then :
4514  ac_compiler_gnu=yes
4515else
4516  ac_compiler_gnu=no
4517fi
4518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4519ac_cv_c_compiler_gnu=$ac_compiler_gnu
4520
4521fi
4522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4523$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4524if test $ac_compiler_gnu = yes; then
4525  GCC=yes
4526else
4527  GCC=
4528fi
4529ac_test_CFLAGS=${CFLAGS+set}
4530ac_save_CFLAGS=$CFLAGS
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4532$as_echo_n "checking whether $CC accepts -g... " >&6; }
4533if test "${ac_cv_prog_cc_g+set}" = set; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536  ac_save_c_werror_flag=$ac_c_werror_flag
4537   ac_c_werror_flag=yes
4538   ac_cv_prog_cc_g=no
4539   CFLAGS="-g"
4540   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4541/* end confdefs.h.  */
4542
4543int
4544main ()
4545{
4546
4547  ;
4548  return 0;
4549}
4550_ACEOF
4551if ac_fn_c_try_compile "$LINENO"; then :
4552  ac_cv_prog_cc_g=yes
4553else
4554  CFLAGS=""
4555      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556/* end confdefs.h.  */
4557
4558int
4559main ()
4560{
4561
4562  ;
4563  return 0;
4564}
4565_ACEOF
4566if ac_fn_c_try_compile "$LINENO"; then :
4567
4568else
4569  ac_c_werror_flag=$ac_save_c_werror_flag
4570	 CFLAGS="-g"
4571	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572/* end confdefs.h.  */
4573
4574int
4575main ()
4576{
4577
4578  ;
4579  return 0;
4580}
4581_ACEOF
4582if ac_fn_c_try_compile "$LINENO"; then :
4583  ac_cv_prog_cc_g=yes
4584fi
4585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4586fi
4587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4588fi
4589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4590   ac_c_werror_flag=$ac_save_c_werror_flag
4591fi
4592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4593$as_echo "$ac_cv_prog_cc_g" >&6; }
4594if test "$ac_test_CFLAGS" = set; then
4595  CFLAGS=$ac_save_CFLAGS
4596elif test $ac_cv_prog_cc_g = yes; then
4597  if test "$GCC" = yes; then
4598    CFLAGS="-g -O2"
4599  else
4600    CFLAGS="-g"
4601  fi
4602else
4603  if test "$GCC" = yes; then
4604    CFLAGS="-O2"
4605  else
4606    CFLAGS=
4607  fi
4608fi
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4610$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4611if test "${ac_cv_prog_cc_c89+set}" = set; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  ac_cv_prog_cc_c89=no
4615ac_save_CC=$CC
4616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4617/* end confdefs.h.  */
4618#include <stdarg.h>
4619#include <stdio.h>
4620#include <sys/types.h>
4621#include <sys/stat.h>
4622/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4623struct buf { int x; };
4624FILE * (*rcsopen) (struct buf *, struct stat *, int);
4625static char *e (p, i)
4626     char **p;
4627     int i;
4628{
4629  return p[i];
4630}
4631static char *f (char * (*g) (char **, int), char **p, ...)
4632{
4633  char *s;
4634  va_list v;
4635  va_start (v,p);
4636  s = g (p, va_arg (v,int));
4637  va_end (v);
4638  return s;
4639}
4640
4641/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4642   function prototypes and stuff, but not '\xHH' hex character constants.
4643   These don't provoke an error unfortunately, instead are silently treated
4644   as 'x'.  The following induces an error, until -std is added to get
4645   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4646   array size at least.  It's necessary to write '\x00'==0 to get something
4647   that's true only with -std.  */
4648int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4649
4650/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4651   inside strings and character constants.  */
4652#define FOO(x) 'x'
4653int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4654
4655int test (int i, double x);
4656struct s1 {int (*f) (int a);};
4657struct s2 {int (*f) (double a);};
4658int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4659int argc;
4660char **argv;
4661int
4662main ()
4663{
4664return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4665  ;
4666  return 0;
4667}
4668_ACEOF
4669for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4670	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4671do
4672  CC="$ac_save_CC $ac_arg"
4673  if ac_fn_c_try_compile "$LINENO"; then :
4674  ac_cv_prog_cc_c89=$ac_arg
4675fi
4676rm -f core conftest.err conftest.$ac_objext
4677  test "x$ac_cv_prog_cc_c89" != "xno" && break
4678done
4679rm -f conftest.$ac_ext
4680CC=$ac_save_CC
4681
4682fi
4683# AC_CACHE_VAL
4684case "x$ac_cv_prog_cc_c89" in
4685  x)
4686    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4687$as_echo "none needed" >&6; } ;;
4688  xno)
4689    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4690$as_echo "unsupported" >&6; } ;;
4691  *)
4692    CC="$CC $ac_cv_prog_cc_c89"
4693    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4694$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4695esac
4696if test "x$ac_cv_prog_cc_c89" != xno; then :
4697
4698fi
4699
4700ac_ext=c
4701ac_cpp='$CPP $CPPFLAGS'
4702ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704ac_compiler_gnu=$ac_cv_c_compiler_gnu
4705
4706depcc="$CC"   am_compiler_list=
4707
4708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4709$as_echo_n "checking dependency style of $depcc... " >&6; }
4710if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4711  $as_echo_n "(cached) " >&6
4712else
4713  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4714  # We make a subdir and do the tests there.  Otherwise we can end up
4715  # making bogus files that we don't know about and never remove.  For
4716  # instance it was reported that on HP-UX the gcc test will end up
4717  # making a dummy file named `D' -- because `-MD' means `put the output
4718  # in D'.
4719  mkdir conftest.dir
4720  # Copy depcomp to subdir because otherwise we won't find it if we're
4721  # using a relative directory.
4722  cp "$am_depcomp" conftest.dir
4723  cd conftest.dir
4724  # We will build objects and dependencies in a subdirectory because
4725  # it helps to detect inapplicable dependency modes.  For instance
4726  # both Tru64's cc and ICC support -MD to output dependencies as a
4727  # side effect of compilation, but ICC will put the dependencies in
4728  # the current directory while Tru64 will put them in the object
4729  # directory.
4730  mkdir sub
4731
4732  am_cv_CC_dependencies_compiler_type=none
4733  if test "$am_compiler_list" = ""; then
4734     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4735  fi
4736  am__universal=false
4737  case " $depcc " in #(
4738     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4739     esac
4740
4741  for depmode in $am_compiler_list; do
4742    # Setup a source with many dependencies, because some compilers
4743    # like to wrap large dependency lists on column 80 (with \), and
4744    # we should not choose a depcomp mode which is confused by this.
4745    #
4746    # We need to recreate these files for each test, as the compiler may
4747    # overwrite some of them when testing with obscure command lines.
4748    # This happens at least with the AIX C compiler.
4749    : > sub/conftest.c
4750    for i in 1 2 3 4 5 6; do
4751      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4752      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4753      # Solaris 8's {/usr,}/bin/sh.
4754      touch sub/conftst$i.h
4755    done
4756    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4757
4758    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4759    # mode.  It turns out that the SunPro C++ compiler does not properly
4760    # handle `-M -o', and we need to detect this.  Also, some Intel
4761    # versions had trouble with output in subdirs
4762    am__obj=sub/conftest.${OBJEXT-o}
4763    am__minus_obj="-o $am__obj"
4764    case $depmode in
4765    gcc)
4766      # This depmode causes a compiler race in universal mode.
4767      test "$am__universal" = false || continue
4768      ;;
4769    nosideeffect)
4770      # after this tag, mechanisms are not by side-effect, so they'll
4771      # only be used when explicitly requested
4772      if test "x$enable_dependency_tracking" = xyes; then
4773	continue
4774      else
4775	break
4776      fi
4777      ;;
4778    msvisualcpp | msvcmsys)
4779      # This compiler won't grok `-c -o', but also, the minuso test has
4780      # not run yet.  These depmodes are late enough in the game, and
4781      # so weak that their functioning should not be impacted.
4782      am__obj=conftest.${OBJEXT-o}
4783      am__minus_obj=
4784      ;;
4785    none) break ;;
4786    esac
4787    if depmode=$depmode \
4788       source=sub/conftest.c object=$am__obj \
4789       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4790       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4791         >/dev/null 2>conftest.err &&
4792       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4793       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4794       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4795       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4796      # icc doesn't choke on unknown options, it will just issue warnings
4797      # or remarks (even with -Werror).  So we grep stderr for any message
4798      # that says an option was ignored or not supported.
4799      # When given -MP, icc 7.0 and 7.1 complain thusly:
4800      #   icc: Command line warning: ignoring option '-M'; no argument required
4801      # The diagnosis changed in icc 8.0:
4802      #   icc: Command line remark: option '-MP' not supported
4803      if (grep 'ignoring option' conftest.err ||
4804          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4805        am_cv_CC_dependencies_compiler_type=$depmode
4806        break
4807      fi
4808    fi
4809  done
4810
4811  cd ..
4812  rm -rf conftest.dir
4813else
4814  am_cv_CC_dependencies_compiler_type=none
4815fi
4816
4817fi
4818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4819$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4820CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4821
4822 if
4823  test "x$enable_dependency_tracking" != xno \
4824  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4825  am__fastdepCC_TRUE=
4826  am__fastdepCC_FALSE='#'
4827else
4828  am__fastdepCC_TRUE='#'
4829  am__fastdepCC_FALSE=
4830fi
4831
4832
4833for ac_prog in gawk mawk nawk awk
4834do
4835  # Extract the first word of "$ac_prog", so it can be a program name with args.
4836set dummy $ac_prog; ac_word=$2
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4838$as_echo_n "checking for $ac_word... " >&6; }
4839if test "${ac_cv_prog_AWK+set}" = set; then :
4840  $as_echo_n "(cached) " >&6
4841else
4842  if test -n "$AWK"; then
4843  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4844else
4845as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846for as_dir in $PATH
4847do
4848  IFS=$as_save_IFS
4849  test -z "$as_dir" && as_dir=.
4850    for ac_exec_ext in '' $ac_executable_extensions; do
4851  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4852    ac_cv_prog_AWK="$ac_prog"
4853    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4854    break 2
4855  fi
4856done
4857  done
4858IFS=$as_save_IFS
4859
4860fi
4861fi
4862AWK=$ac_cv_prog_AWK
4863if test -n "$AWK"; then
4864  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4865$as_echo "$AWK" >&6; }
4866else
4867  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4868$as_echo "no" >&6; }
4869fi
4870
4871
4872  test -n "$AWK" && break
4873done
4874
4875
4876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4877$as_echo_n "checking whether ln -s works... " >&6; }
4878LN_S=$as_ln_s
4879if test "$LN_S" = "ln -s"; then
4880  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881$as_echo "yes" >&6; }
4882else
4883  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4884$as_echo "no, using $LN_S" >&6; }
4885fi
4886
4887case `pwd` in
4888  *\ * | *\	*)
4889    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4890$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4891esac
4892
4893
4894
4895macro_version='2.2.10'
4896macro_revision='1.3175'
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910ltmain="$ac_aux_dir/ltmain.sh"
4911
4912# Make sure we can run config.sub.
4913$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4914  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4915
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4917$as_echo_n "checking build system type... " >&6; }
4918if test "${ac_cv_build+set}" = set; then :
4919  $as_echo_n "(cached) " >&6
4920else
4921  ac_build_alias=$build_alias
4922test "x$ac_build_alias" = x &&
4923  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4924test "x$ac_build_alias" = x &&
4925  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4926ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4927  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4928
4929fi
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4931$as_echo "$ac_cv_build" >&6; }
4932case $ac_cv_build in
4933*-*-*) ;;
4934*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4935esac
4936build=$ac_cv_build
4937ac_save_IFS=$IFS; IFS='-'
4938set x $ac_cv_build
4939shift
4940build_cpu=$1
4941build_vendor=$2
4942shift; shift
4943# Remember, the first character of IFS is used to create $*,
4944# except with old shells:
4945build_os=$*
4946IFS=$ac_save_IFS
4947case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4948
4949
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4951$as_echo_n "checking host system type... " >&6; }
4952if test "${ac_cv_host+set}" = set; then :
4953  $as_echo_n "(cached) " >&6
4954else
4955  if test "x$host_alias" = x; then
4956  ac_cv_host=$ac_cv_build
4957else
4958  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4959    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4960fi
4961
4962fi
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4964$as_echo "$ac_cv_host" >&6; }
4965case $ac_cv_host in
4966*-*-*) ;;
4967*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4968esac
4969host=$ac_cv_host
4970ac_save_IFS=$IFS; IFS='-'
4971set x $ac_cv_host
4972shift
4973host_cpu=$1
4974host_vendor=$2
4975shift; shift
4976# Remember, the first character of IFS is used to create $*,
4977# except with old shells:
4978host_os=$*
4979IFS=$ac_save_IFS
4980case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4981
4982
4983# Backslashify metacharacters that are still active within
4984# double-quoted strings.
4985sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4986
4987# Same as above, but do not quote variable references.
4988double_quote_subst='s/\(["`\\]\)/\\\1/g'
4989
4990# Sed substitution to delay expansion of an escaped shell variable in a
4991# double_quote_subst'ed string.
4992delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4993
4994# Sed substitution to delay expansion of an escaped single quote.
4995delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4996
4997# Sed substitution to avoid accidental globbing in evaled expressions
4998no_glob_subst='s/\*/\\\*/g'
4999
5000ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5001ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5002ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5005$as_echo_n "checking how to print strings... " >&6; }
5006# Test print first, because it will be a builtin if present.
5007if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5008   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5009  ECHO='print -r --'
5010elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5011  ECHO='printf %s\n'
5012else
5013  # Use this function as a fallback that always works.
5014  func_fallback_echo ()
5015  {
5016    eval 'cat <<_LTECHO_EOF
5017$1
5018_LTECHO_EOF'
5019  }
5020  ECHO='func_fallback_echo'
5021fi
5022
5023# func_echo_all arg...
5024# Invoke $ECHO with all args, space-separated.
5025func_echo_all ()
5026{
5027    $ECHO ""
5028}
5029
5030case "$ECHO" in
5031  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5032$as_echo "printf" >&6; } ;;
5033  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5034$as_echo "print -r" >&6; } ;;
5035  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5036$as_echo "cat" >&6; } ;;
5037esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5053$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5054if test "${ac_cv_path_SED+set}" = set; then :
5055  $as_echo_n "(cached) " >&6
5056else
5057            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5058     for ac_i in 1 2 3 4 5 6 7; do
5059       ac_script="$ac_script$as_nl$ac_script"
5060     done
5061     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5062     { ac_script=; unset ac_script;}
5063     if test -z "$SED"; then
5064  ac_path_SED_found=false
5065  # Loop through the user's path and test for each of PROGNAME-LIST
5066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069  IFS=$as_save_IFS
5070  test -z "$as_dir" && as_dir=.
5071    for ac_prog in sed gsed; do
5072    for ac_exec_ext in '' $ac_executable_extensions; do
5073      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5074      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5075# Check for GNU ac_path_SED and select it if it is found.
5076  # Check for GNU $ac_path_SED
5077case `"$ac_path_SED" --version 2>&1` in
5078*GNU*)
5079  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5080*)
5081  ac_count=0
5082  $as_echo_n 0123456789 >"conftest.in"
5083  while :
5084  do
5085    cat "conftest.in" "conftest.in" >"conftest.tmp"
5086    mv "conftest.tmp" "conftest.in"
5087    cp "conftest.in" "conftest.nl"
5088    $as_echo '' >> "conftest.nl"
5089    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5090    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5091    as_fn_arith $ac_count + 1 && ac_count=$as_val
5092    if test $ac_count -gt ${ac_path_SED_max-0}; then
5093      # Best one so far, save it but keep looking for a better one
5094      ac_cv_path_SED="$ac_path_SED"
5095      ac_path_SED_max=$ac_count
5096    fi
5097    # 10*(2^10) chars as input seems more than enough
5098    test $ac_count -gt 10 && break
5099  done
5100  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5101esac
5102
5103      $ac_path_SED_found && break 3
5104    done
5105  done
5106  done
5107IFS=$as_save_IFS
5108  if test -z "$ac_cv_path_SED"; then
5109    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5110  fi
5111else
5112  ac_cv_path_SED=$SED
5113fi
5114
5115fi
5116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5117$as_echo "$ac_cv_path_SED" >&6; }
5118 SED="$ac_cv_path_SED"
5119  rm -f conftest.sed
5120
5121test -z "$SED" && SED=sed
5122Xsed="$SED -e 1s/^X//"
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5135$as_echo_n "checking for fgrep... " >&6; }
5136if test "${ac_cv_path_FGREP+set}" = set; then :
5137  $as_echo_n "(cached) " >&6
5138else
5139  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5140   then ac_cv_path_FGREP="$GREP -F"
5141   else
5142     if test -z "$FGREP"; then
5143  ac_path_FGREP_found=false
5144  # Loop through the user's path and test for each of PROGNAME-LIST
5145  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5147do
5148  IFS=$as_save_IFS
5149  test -z "$as_dir" && as_dir=.
5150    for ac_prog in fgrep; do
5151    for ac_exec_ext in '' $ac_executable_extensions; do
5152      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5153      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5154# Check for GNU ac_path_FGREP and select it if it is found.
5155  # Check for GNU $ac_path_FGREP
5156case `"$ac_path_FGREP" --version 2>&1` in
5157*GNU*)
5158  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5159*)
5160  ac_count=0
5161  $as_echo_n 0123456789 >"conftest.in"
5162  while :
5163  do
5164    cat "conftest.in" "conftest.in" >"conftest.tmp"
5165    mv "conftest.tmp" "conftest.in"
5166    cp "conftest.in" "conftest.nl"
5167    $as_echo 'FGREP' >> "conftest.nl"
5168    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5169    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5170    as_fn_arith $ac_count + 1 && ac_count=$as_val
5171    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5172      # Best one so far, save it but keep looking for a better one
5173      ac_cv_path_FGREP="$ac_path_FGREP"
5174      ac_path_FGREP_max=$ac_count
5175    fi
5176    # 10*(2^10) chars as input seems more than enough
5177    test $ac_count -gt 10 && break
5178  done
5179  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5180esac
5181
5182      $ac_path_FGREP_found && break 3
5183    done
5184  done
5185  done
5186IFS=$as_save_IFS
5187  if test -z "$ac_cv_path_FGREP"; then
5188    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5189  fi
5190else
5191  ac_cv_path_FGREP=$FGREP
5192fi
5193
5194   fi
5195fi
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5197$as_echo "$ac_cv_path_FGREP" >&6; }
5198 FGREP="$ac_cv_path_FGREP"
5199
5200
5201test -z "$GREP" && GREP=grep
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221# Check whether --with-gnu-ld was given.
5222if test "${with_gnu_ld+set}" = set; then :
5223  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5224else
5225  with_gnu_ld=no
5226fi
5227
5228ac_prog=ld
5229if test "$GCC" = yes; then
5230  # Check if gcc -print-prog-name=ld gives a path.
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5232$as_echo_n "checking for ld used by $CC... " >&6; }
5233  case $host in
5234  *-*-mingw*)
5235    # gcc leaves a trailing carriage return which upsets mingw
5236    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5237  *)
5238    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5239  esac
5240  case $ac_prog in
5241    # Accept absolute paths.
5242    [\\/]* | ?:[\\/]*)
5243      re_direlt='/[^/][^/]*/\.\./'
5244      # Canonicalize the pathname of ld
5245      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5246      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5247	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5248      done
5249      test -z "$LD" && LD="$ac_prog"
5250      ;;
5251  "")
5252    # If it fails, then pretend we aren't using GCC.
5253    ac_prog=ld
5254    ;;
5255  *)
5256    # If it is relative, then search for the first ld in PATH.
5257    with_gnu_ld=unknown
5258    ;;
5259  esac
5260elif test "$with_gnu_ld" = yes; then
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5262$as_echo_n "checking for GNU ld... " >&6; }
5263else
5264  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5265$as_echo_n "checking for non-GNU ld... " >&6; }
5266fi
5267if test "${lt_cv_path_LD+set}" = set; then :
5268  $as_echo_n "(cached) " >&6
5269else
5270  if test -z "$LD"; then
5271  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5272  for ac_dir in $PATH; do
5273    IFS="$lt_save_ifs"
5274    test -z "$ac_dir" && ac_dir=.
5275    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5276      lt_cv_path_LD="$ac_dir/$ac_prog"
5277      # Check to see if the program is GNU ld.  I'd rather use --version,
5278      # but apparently some variants of GNU ld only accept -v.
5279      # Break only if it was the GNU/non-GNU ld that we prefer.
5280      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5281      *GNU* | *'with BFD'*)
5282	test "$with_gnu_ld" != no && break
5283	;;
5284      *)
5285	test "$with_gnu_ld" != yes && break
5286	;;
5287      esac
5288    fi
5289  done
5290  IFS="$lt_save_ifs"
5291else
5292  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5293fi
5294fi
5295
5296LD="$lt_cv_path_LD"
5297if test -n "$LD"; then
5298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5299$as_echo "$LD" >&6; }
5300else
5301  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5302$as_echo "no" >&6; }
5303fi
5304test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5306$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5307if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5308  $as_echo_n "(cached) " >&6
5309else
5310  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5311case `$LD -v 2>&1 </dev/null` in
5312*GNU* | *'with BFD'*)
5313  lt_cv_prog_gnu_ld=yes
5314  ;;
5315*)
5316  lt_cv_prog_gnu_ld=no
5317  ;;
5318esac
5319fi
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5321$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5322with_gnu_ld=$lt_cv_prog_gnu_ld
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5333$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5334if test "${lt_cv_path_NM+set}" = set; then :
5335  $as_echo_n "(cached) " >&6
5336else
5337  if test -n "$NM"; then
5338  # Let the user override the test.
5339  lt_cv_path_NM="$NM"
5340else
5341  lt_nm_to_check="${ac_tool_prefix}nm"
5342  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5343    lt_nm_to_check="$lt_nm_to_check nm"
5344  fi
5345  for lt_tmp_nm in $lt_nm_to_check; do
5346    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5347    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5348      IFS="$lt_save_ifs"
5349      test -z "$ac_dir" && ac_dir=.
5350      tmp_nm="$ac_dir/$lt_tmp_nm"
5351      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5352	# Check to see if the nm accepts a BSD-compat flag.
5353	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5354	#   nm: unknown option "B" ignored
5355	# Tru64's nm complains that /dev/null is an invalid object file
5356	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5357	*/dev/null* | *'Invalid file or object type'*)
5358	  lt_cv_path_NM="$tmp_nm -B"
5359	  break
5360	  ;;
5361	*)
5362	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5363	  */dev/null*)
5364	    lt_cv_path_NM="$tmp_nm -p"
5365	    break
5366	    ;;
5367	  *)
5368	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5369	    continue # so that we can try to find one that supports BSD flags
5370	    ;;
5371	  esac
5372	  ;;
5373	esac
5374      fi
5375    done
5376    IFS="$lt_save_ifs"
5377  done
5378  : ${lt_cv_path_NM=no}
5379fi
5380fi
5381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5382$as_echo "$lt_cv_path_NM" >&6; }
5383if test "$lt_cv_path_NM" != "no"; then
5384  NM="$lt_cv_path_NM"
5385else
5386  # Didn't find any BSD compatible name lister, look for dumpbin.
5387  if test -n "$DUMPBIN"; then :
5388    # Let the user override the test.
5389  else
5390    if test -n "$ac_tool_prefix"; then
5391  for ac_prog in dumpbin "link -dump"
5392  do
5393    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5394set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396$as_echo_n "checking for $ac_word... " >&6; }
5397if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5398  $as_echo_n "(cached) " >&6
5399else
5400  if test -n "$DUMPBIN"; then
5401  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5402else
5403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404for as_dir in $PATH
5405do
5406  IFS=$as_save_IFS
5407  test -z "$as_dir" && as_dir=.
5408    for ac_exec_ext in '' $ac_executable_extensions; do
5409  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5411    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412    break 2
5413  fi
5414done
5415  done
5416IFS=$as_save_IFS
5417
5418fi
5419fi
5420DUMPBIN=$ac_cv_prog_DUMPBIN
5421if test -n "$DUMPBIN"; then
5422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5423$as_echo "$DUMPBIN" >&6; }
5424else
5425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426$as_echo "no" >&6; }
5427fi
5428
5429
5430    test -n "$DUMPBIN" && break
5431  done
5432fi
5433if test -z "$DUMPBIN"; then
5434  ac_ct_DUMPBIN=$DUMPBIN
5435  for ac_prog in dumpbin "link -dump"
5436do
5437  # Extract the first word of "$ac_prog", so it can be a program name with args.
5438set dummy $ac_prog; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
5441if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5442  $as_echo_n "(cached) " >&6
5443else
5444  if test -n "$ac_ct_DUMPBIN"; then
5445  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5446else
5447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5448for as_dir in $PATH
5449do
5450  IFS=$as_save_IFS
5451  test -z "$as_dir" && as_dir=.
5452    for ac_exec_ext in '' $ac_executable_extensions; do
5453  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5455    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5456    break 2
5457  fi
5458done
5459  done
5460IFS=$as_save_IFS
5461
5462fi
5463fi
5464ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5465if test -n "$ac_ct_DUMPBIN"; then
5466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5467$as_echo "$ac_ct_DUMPBIN" >&6; }
5468else
5469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470$as_echo "no" >&6; }
5471fi
5472
5473
5474  test -n "$ac_ct_DUMPBIN" && break
5475done
5476
5477  if test "x$ac_ct_DUMPBIN" = x; then
5478    DUMPBIN=":"
5479  else
5480    case $cross_compiling:$ac_tool_warned in
5481yes:)
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484ac_tool_warned=yes ;;
5485esac
5486    DUMPBIN=$ac_ct_DUMPBIN
5487  fi
5488fi
5489
5490    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5491    *COFF*)
5492      DUMPBIN="$DUMPBIN -symbols"
5493      ;;
5494    *)
5495      DUMPBIN=:
5496      ;;
5497    esac
5498  fi
5499
5500  if test "$DUMPBIN" != ":"; then
5501    NM="$DUMPBIN"
5502  fi
5503fi
5504test -z "$NM" && NM=nm
5505
5506
5507
5508
5509
5510
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5512$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5513if test "${lt_cv_nm_interface+set}" = set; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  lt_cv_nm_interface="BSD nm"
5517  echo "int some_variable = 0;" > conftest.$ac_ext
5518  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5519  (eval "$ac_compile" 2>conftest.err)
5520  cat conftest.err >&5
5521  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5522  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5523  cat conftest.err >&5
5524  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5525  cat conftest.out >&5
5526  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5527    lt_cv_nm_interface="MS dumpbin"
5528  fi
5529  rm -f conftest*
5530fi
5531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5532$as_echo "$lt_cv_nm_interface" >&6; }
5533
5534# find the maximum length of command line arguments
5535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5536$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5537if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5538  $as_echo_n "(cached) " >&6
5539else
5540    i=0
5541  teststring="ABCD"
5542
5543  case $build_os in
5544  msdosdjgpp*)
5545    # On DJGPP, this test can blow up pretty badly due to problems in libc
5546    # (any single argument exceeding 2000 bytes causes a buffer overrun
5547    # during glob expansion).  Even if it were fixed, the result of this
5548    # check would be larger than it should be.
5549    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5550    ;;
5551
5552  gnu*)
5553    # Under GNU Hurd, this test is not required because there is
5554    # no limit to the length of command line arguments.
5555    # Libtool will interpret -1 as no limit whatsoever
5556    lt_cv_sys_max_cmd_len=-1;
5557    ;;
5558
5559  cygwin* | mingw* | cegcc*)
5560    # On Win9x/ME, this test blows up -- it succeeds, but takes
5561    # about 5 minutes as the teststring grows exponentially.
5562    # Worse, since 9x/ME are not pre-emptively multitasking,
5563    # you end up with a "frozen" computer, even though with patience
5564    # the test eventually succeeds (with a max line length of 256k).
5565    # Instead, let's just punt: use the minimum linelength reported by
5566    # all of the supported platforms: 8192 (on NT/2K/XP).
5567    lt_cv_sys_max_cmd_len=8192;
5568    ;;
5569
5570  mint*)
5571    # On MiNT this can take a long time and run out of memory.
5572    lt_cv_sys_max_cmd_len=8192;
5573    ;;
5574
5575  amigaos*)
5576    # On AmigaOS with pdksh, this test takes hours, literally.
5577    # So we just punt and use a minimum line length of 8192.
5578    lt_cv_sys_max_cmd_len=8192;
5579    ;;
5580
5581  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5582    # This has been around since 386BSD, at least.  Likely further.
5583    if test -x /sbin/sysctl; then
5584      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5585    elif test -x /usr/sbin/sysctl; then
5586      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5587    else
5588      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5589    fi
5590    # And add a safety zone
5591    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5592    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5593    ;;
5594
5595  interix*)
5596    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5597    lt_cv_sys_max_cmd_len=196608
5598    ;;
5599
5600  osf*)
5601    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5602    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5603    # nice to cause kernel panics so lets avoid the loop below.
5604    # First set a reasonable default.
5605    lt_cv_sys_max_cmd_len=16384
5606    #
5607    if test -x /sbin/sysconfig; then
5608      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5609        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5610      esac
5611    fi
5612    ;;
5613  sco3.2v5*)
5614    lt_cv_sys_max_cmd_len=102400
5615    ;;
5616  sysv5* | sco5v6* | sysv4.2uw2*)
5617    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5618    if test -n "$kargmax"; then
5619      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5620    else
5621      lt_cv_sys_max_cmd_len=32768
5622    fi
5623    ;;
5624  *)
5625    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5626    if test -n "$lt_cv_sys_max_cmd_len"; then
5627      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5628      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5629    else
5630      # Make teststring a little bigger before we do anything with it.
5631      # a 1K string should be a reasonable start.
5632      for i in 1 2 3 4 5 6 7 8 ; do
5633        teststring=$teststring$teststring
5634      done
5635      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5636      # If test is not a shell built-in, we'll probably end up computing a
5637      # maximum length that is only half of the actual maximum length, but
5638      # we can't tell.
5639      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5640	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5641	      test $i != 17 # 1/2 MB should be enough
5642      do
5643        i=`expr $i + 1`
5644        teststring=$teststring$teststring
5645      done
5646      # Only check the string length outside the loop.
5647      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5648      teststring=
5649      # Add a significant safety factor because C++ compilers can tack on
5650      # massive amounts of additional arguments before passing them to the
5651      # linker.  It appears as though 1/2 is a usable value.
5652      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5653    fi
5654    ;;
5655  esac
5656
5657fi
5658
5659if test -n $lt_cv_sys_max_cmd_len ; then
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5661$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5662else
5663  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5664$as_echo "none" >&6; }
5665fi
5666max_cmd_len=$lt_cv_sys_max_cmd_len
5667
5668
5669
5670
5671
5672
5673: ${CP="cp -f"}
5674: ${MV="mv -f"}
5675: ${RM="rm -f"}
5676
5677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5678$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5679# Try some XSI features
5680xsi_shell=no
5681( _lt_dummy="a/b/c"
5682  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5683      = c,a/b,, \
5684    && eval 'test $(( 1 + 1 )) -eq 2 \
5685    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5686  && xsi_shell=yes
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5688$as_echo "$xsi_shell" >&6; }
5689
5690
5691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5692$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5693lt_shell_append=no
5694( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5695    >/dev/null 2>&1 \
5696  && lt_shell_append=yes
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5698$as_echo "$lt_shell_append" >&6; }
5699
5700
5701if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5702  lt_unset=unset
5703else
5704  lt_unset=false
5705fi
5706
5707
5708
5709
5710
5711# test EBCDIC or ASCII
5712case `echo X|tr X '\101'` in
5713 A) # ASCII based system
5714    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5715  lt_SP2NL='tr \040 \012'
5716  lt_NL2SP='tr \015\012 \040\040'
5717  ;;
5718 *) # EBCDIC based system
5719  lt_SP2NL='tr \100 \n'
5720  lt_NL2SP='tr \r\n \100\100'
5721  ;;
5722esac
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5733$as_echo_n "checking for $LD option to reload object files... " >&6; }
5734if test "${lt_cv_ld_reload_flag+set}" = set; then :
5735  $as_echo_n "(cached) " >&6
5736else
5737  lt_cv_ld_reload_flag='-r'
5738fi
5739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5740$as_echo "$lt_cv_ld_reload_flag" >&6; }
5741reload_flag=$lt_cv_ld_reload_flag
5742case $reload_flag in
5743"" | " "*) ;;
5744*) reload_flag=" $reload_flag" ;;
5745esac
5746reload_cmds='$LD$reload_flag -o $output$reload_objs'
5747case $host_os in
5748  darwin*)
5749    if test "$GCC" = yes; then
5750      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5751    else
5752      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5753    fi
5754    ;;
5755esac
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765if test -n "$ac_tool_prefix"; then
5766  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5767set dummy ${ac_tool_prefix}objdump; ac_word=$2
5768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769$as_echo_n "checking for $ac_word... " >&6; }
5770if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5771  $as_echo_n "(cached) " >&6
5772else
5773  if test -n "$OBJDUMP"; then
5774  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5775else
5776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777for as_dir in $PATH
5778do
5779  IFS=$as_save_IFS
5780  test -z "$as_dir" && as_dir=.
5781    for ac_exec_ext in '' $ac_executable_extensions; do
5782  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5784    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785    break 2
5786  fi
5787done
5788  done
5789IFS=$as_save_IFS
5790
5791fi
5792fi
5793OBJDUMP=$ac_cv_prog_OBJDUMP
5794if test -n "$OBJDUMP"; then
5795  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5796$as_echo "$OBJDUMP" >&6; }
5797else
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799$as_echo "no" >&6; }
5800fi
5801
5802
5803fi
5804if test -z "$ac_cv_prog_OBJDUMP"; then
5805  ac_ct_OBJDUMP=$OBJDUMP
5806  # Extract the first word of "objdump", so it can be a program name with args.
5807set dummy objdump; ac_word=$2
5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809$as_echo_n "checking for $ac_word... " >&6; }
5810if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5811  $as_echo_n "(cached) " >&6
5812else
5813  if test -n "$ac_ct_OBJDUMP"; then
5814  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5815else
5816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817for as_dir in $PATH
5818do
5819  IFS=$as_save_IFS
5820  test -z "$as_dir" && as_dir=.
5821    for ac_exec_ext in '' $ac_executable_extensions; do
5822  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5823    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5824    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5825    break 2
5826  fi
5827done
5828  done
5829IFS=$as_save_IFS
5830
5831fi
5832fi
5833ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5834if test -n "$ac_ct_OBJDUMP"; then
5835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5836$as_echo "$ac_ct_OBJDUMP" >&6; }
5837else
5838  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839$as_echo "no" >&6; }
5840fi
5841
5842  if test "x$ac_ct_OBJDUMP" = x; then
5843    OBJDUMP="false"
5844  else
5845    case $cross_compiling:$ac_tool_warned in
5846yes:)
5847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5849ac_tool_warned=yes ;;
5850esac
5851    OBJDUMP=$ac_ct_OBJDUMP
5852  fi
5853else
5854  OBJDUMP="$ac_cv_prog_OBJDUMP"
5855fi
5856
5857test -z "$OBJDUMP" && OBJDUMP=objdump
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5868$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5869if test "${lt_cv_deplibs_check_method+set}" = set; then :
5870  $as_echo_n "(cached) " >&6
5871else
5872  lt_cv_file_magic_cmd='$MAGIC_CMD'
5873lt_cv_file_magic_test_file=
5874lt_cv_deplibs_check_method='unknown'
5875# Need to set the preceding variable on all platforms that support
5876# interlibrary dependencies.
5877# 'none' -- dependencies not supported.
5878# `unknown' -- same as none, but documents that we really don't know.
5879# 'pass_all' -- all dependencies passed with no checks.
5880# 'test_compile' -- check by making test program.
5881# 'file_magic [[regex]]' -- check by looking for files in library path
5882# which responds to the $file_magic_cmd with a given extended regex.
5883# If you have `file' or equivalent on your system and you're not sure
5884# whether `pass_all' will *always* work, you probably want this one.
5885
5886case $host_os in
5887aix[4-9]*)
5888  lt_cv_deplibs_check_method=pass_all
5889  ;;
5890
5891beos*)
5892  lt_cv_deplibs_check_method=pass_all
5893  ;;
5894
5895bsdi[45]*)
5896  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5897  lt_cv_file_magic_cmd='/usr/bin/file -L'
5898  lt_cv_file_magic_test_file=/shlib/libc.so
5899  ;;
5900
5901cygwin*)
5902  # func_win32_libid is a shell function defined in ltmain.sh
5903  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5904  lt_cv_file_magic_cmd='func_win32_libid'
5905  ;;
5906
5907mingw* | pw32*)
5908  # Base MSYS/MinGW do not provide the 'file' command needed by
5909  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5910  # unless we find 'file', for example because we are cross-compiling.
5911  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5912  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5913    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5914    lt_cv_file_magic_cmd='func_win32_libid'
5915  else
5916    # Keep this pattern in sync with the one in func_win32_libid.
5917    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5918    lt_cv_file_magic_cmd='$OBJDUMP -f'
5919  fi
5920  ;;
5921
5922cegcc*)
5923  # use the weaker test based on 'objdump'. See mingw*.
5924  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5925  lt_cv_file_magic_cmd='$OBJDUMP -f'
5926  ;;
5927
5928darwin* | rhapsody*)
5929  lt_cv_deplibs_check_method=pass_all
5930  ;;
5931
5932freebsd* | dragonfly*)
5933  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5934    case $host_cpu in
5935    i*86 )
5936      # Not sure whether the presence of OpenBSD here was a mistake.
5937      # Let's accept both of them until this is cleared up.
5938      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5939      lt_cv_file_magic_cmd=/usr/bin/file
5940      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5941      ;;
5942    esac
5943  else
5944    lt_cv_deplibs_check_method=pass_all
5945  fi
5946  ;;
5947
5948gnu*)
5949  lt_cv_deplibs_check_method=pass_all
5950  ;;
5951
5952haiku*)
5953  lt_cv_deplibs_check_method=pass_all
5954  ;;
5955
5956hpux10.20* | hpux11*)
5957  lt_cv_file_magic_cmd=/usr/bin/file
5958  case $host_cpu in
5959  ia64*)
5960    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5961    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5962    ;;
5963  hppa*64*)
5964    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]'
5965    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5966    ;;
5967  *)
5968    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5969    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5970    ;;
5971  esac
5972  ;;
5973
5974interix[3-9]*)
5975  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5976  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5977  ;;
5978
5979irix5* | irix6* | nonstopux*)
5980  case $LD in
5981  *-32|*"-32 ") libmagic=32-bit;;
5982  *-n32|*"-n32 ") libmagic=N32;;
5983  *-64|*"-64 ") libmagic=64-bit;;
5984  *) libmagic=never-match;;
5985  esac
5986  lt_cv_deplibs_check_method=pass_all
5987  ;;
5988
5989# This must be Linux ELF.
5990linux* | k*bsd*-gnu | kopensolaris*-gnu)
5991  lt_cv_deplibs_check_method=pass_all
5992  ;;
5993
5994netbsd*)
5995  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5996    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5997  else
5998    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5999  fi
6000  ;;
6001
6002newos6*)
6003  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6004  lt_cv_file_magic_cmd=/usr/bin/file
6005  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6006  ;;
6007
6008*nto* | *qnx*)
6009  lt_cv_deplibs_check_method=pass_all
6010  ;;
6011
6012openbsd*)
6013  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6014    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6015  else
6016    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6017  fi
6018  ;;
6019
6020osf3* | osf4* | osf5*)
6021  lt_cv_deplibs_check_method=pass_all
6022  ;;
6023
6024rdos*)
6025  lt_cv_deplibs_check_method=pass_all
6026  ;;
6027
6028solaris*)
6029  lt_cv_deplibs_check_method=pass_all
6030  ;;
6031
6032sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6033  lt_cv_deplibs_check_method=pass_all
6034  ;;
6035
6036sysv4 | sysv4.3*)
6037  case $host_vendor in
6038  motorola)
6039    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]'
6040    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6041    ;;
6042  ncr)
6043    lt_cv_deplibs_check_method=pass_all
6044    ;;
6045  sequent)
6046    lt_cv_file_magic_cmd='/bin/file'
6047    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6048    ;;
6049  sni)
6050    lt_cv_file_magic_cmd='/bin/file'
6051    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6052    lt_cv_file_magic_test_file=/lib/libc.so
6053    ;;
6054  siemens)
6055    lt_cv_deplibs_check_method=pass_all
6056    ;;
6057  pc)
6058    lt_cv_deplibs_check_method=pass_all
6059    ;;
6060  esac
6061  ;;
6062
6063tpf*)
6064  lt_cv_deplibs_check_method=pass_all
6065  ;;
6066esac
6067
6068fi
6069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6070$as_echo "$lt_cv_deplibs_check_method" >&6; }
6071file_magic_cmd=$lt_cv_file_magic_cmd
6072deplibs_check_method=$lt_cv_deplibs_check_method
6073test -z "$deplibs_check_method" && deplibs_check_method=unknown
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086if test -n "$ac_tool_prefix"; then
6087  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6088set dummy ${ac_tool_prefix}ar; ac_word=$2
6089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6090$as_echo_n "checking for $ac_word... " >&6; }
6091if test "${ac_cv_prog_AR+set}" = set; then :
6092  $as_echo_n "(cached) " >&6
6093else
6094  if test -n "$AR"; then
6095  ac_cv_prog_AR="$AR" # Let the user override the test.
6096else
6097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098for as_dir in $PATH
6099do
6100  IFS=$as_save_IFS
6101  test -z "$as_dir" && as_dir=.
6102    for ac_exec_ext in '' $ac_executable_extensions; do
6103  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6104    ac_cv_prog_AR="${ac_tool_prefix}ar"
6105    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6106    break 2
6107  fi
6108done
6109  done
6110IFS=$as_save_IFS
6111
6112fi
6113fi
6114AR=$ac_cv_prog_AR
6115if test -n "$AR"; then
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6117$as_echo "$AR" >&6; }
6118else
6119  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6120$as_echo "no" >&6; }
6121fi
6122
6123
6124fi
6125if test -z "$ac_cv_prog_AR"; then
6126  ac_ct_AR=$AR
6127  # Extract the first word of "ar", so it can be a program name with args.
6128set dummy ar; ac_word=$2
6129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130$as_echo_n "checking for $ac_word... " >&6; }
6131if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6132  $as_echo_n "(cached) " >&6
6133else
6134  if test -n "$ac_ct_AR"; then
6135  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6136else
6137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140  IFS=$as_save_IFS
6141  test -z "$as_dir" && as_dir=.
6142    for ac_exec_ext in '' $ac_executable_extensions; do
6143  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144    ac_cv_prog_ac_ct_AR="ar"
6145    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146    break 2
6147  fi
6148done
6149  done
6150IFS=$as_save_IFS
6151
6152fi
6153fi
6154ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155if test -n "$ac_ct_AR"; then
6156  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6157$as_echo "$ac_ct_AR" >&6; }
6158else
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160$as_echo "no" >&6; }
6161fi
6162
6163  if test "x$ac_ct_AR" = x; then
6164    AR="false"
6165  else
6166    case $cross_compiling:$ac_tool_warned in
6167yes:)
6168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6170ac_tool_warned=yes ;;
6171esac
6172    AR=$ac_ct_AR
6173  fi
6174else
6175  AR="$ac_cv_prog_AR"
6176fi
6177
6178test -z "$AR" && AR=ar
6179test -z "$AR_FLAGS" && AR_FLAGS=cru
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191if test -n "$ac_tool_prefix"; then
6192  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6193set dummy ${ac_tool_prefix}strip; ac_word=$2
6194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195$as_echo_n "checking for $ac_word... " >&6; }
6196if test "${ac_cv_prog_STRIP+set}" = set; then :
6197  $as_echo_n "(cached) " >&6
6198else
6199  if test -n "$STRIP"; then
6200  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6201else
6202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203for as_dir in $PATH
6204do
6205  IFS=$as_save_IFS
6206  test -z "$as_dir" && as_dir=.
6207    for ac_exec_ext in '' $ac_executable_extensions; do
6208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6210    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211    break 2
6212  fi
6213done
6214  done
6215IFS=$as_save_IFS
6216
6217fi
6218fi
6219STRIP=$ac_cv_prog_STRIP
6220if test -n "$STRIP"; then
6221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6222$as_echo "$STRIP" >&6; }
6223else
6224  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225$as_echo "no" >&6; }
6226fi
6227
6228
6229fi
6230if test -z "$ac_cv_prog_STRIP"; then
6231  ac_ct_STRIP=$STRIP
6232  # Extract the first word of "strip", so it can be a program name with args.
6233set dummy strip; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  if test -n "$ac_ct_STRIP"; then
6240  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  test -z "$as_dir" && as_dir=.
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249    ac_cv_prog_ac_ct_STRIP="strip"
6250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251    break 2
6252  fi
6253done
6254  done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6260if test -n "$ac_ct_STRIP"; then
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6262$as_echo "$ac_ct_STRIP" >&6; }
6263else
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268  if test "x$ac_ct_STRIP" = x; then
6269    STRIP=":"
6270  else
6271    case $cross_compiling:$ac_tool_warned in
6272yes:)
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275ac_tool_warned=yes ;;
6276esac
6277    STRIP=$ac_ct_STRIP
6278  fi
6279else
6280  STRIP="$ac_cv_prog_STRIP"
6281fi
6282
6283test -z "$STRIP" && STRIP=:
6284
6285
6286
6287
6288
6289
6290if test -n "$ac_tool_prefix"; then
6291  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6292set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294$as_echo_n "checking for $ac_word... " >&6; }
6295if test "${ac_cv_prog_RANLIB+set}" = set; then :
6296  $as_echo_n "(cached) " >&6
6297else
6298  if test -n "$RANLIB"; then
6299  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306    for ac_exec_ext in '' $ac_executable_extensions; do
6307  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6308    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6309    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313  done
6314IFS=$as_save_IFS
6315
6316fi
6317fi
6318RANLIB=$ac_cv_prog_RANLIB
6319if test -n "$RANLIB"; then
6320  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6321$as_echo "$RANLIB" >&6; }
6322else
6323  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6324$as_echo "no" >&6; }
6325fi
6326
6327
6328fi
6329if test -z "$ac_cv_prog_RANLIB"; then
6330  ac_ct_RANLIB=$RANLIB
6331  # Extract the first word of "ranlib", so it can be a program name with args.
6332set dummy ranlib; ac_word=$2
6333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334$as_echo_n "checking for $ac_word... " >&6; }
6335if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6336  $as_echo_n "(cached) " >&6
6337else
6338  if test -n "$ac_ct_RANLIB"; then
6339  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6340else
6341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342for as_dir in $PATH
6343do
6344  IFS=$as_save_IFS
6345  test -z "$as_dir" && as_dir=.
6346    for ac_exec_ext in '' $ac_executable_extensions; do
6347  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348    ac_cv_prog_ac_ct_RANLIB="ranlib"
6349    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350    break 2
6351  fi
6352done
6353  done
6354IFS=$as_save_IFS
6355
6356fi
6357fi
6358ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6359if test -n "$ac_ct_RANLIB"; then
6360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6361$as_echo "$ac_ct_RANLIB" >&6; }
6362else
6363  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364$as_echo "no" >&6; }
6365fi
6366
6367  if test "x$ac_ct_RANLIB" = x; then
6368    RANLIB=":"
6369  else
6370    case $cross_compiling:$ac_tool_warned in
6371yes:)
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6373$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6374ac_tool_warned=yes ;;
6375esac
6376    RANLIB=$ac_ct_RANLIB
6377  fi
6378else
6379  RANLIB="$ac_cv_prog_RANLIB"
6380fi
6381
6382test -z "$RANLIB" && RANLIB=:
6383
6384
6385
6386
6387
6388
6389# Determine commands to create old-style static archives.
6390old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6391old_postinstall_cmds='chmod 644 $oldlib'
6392old_postuninstall_cmds=
6393
6394if test -n "$RANLIB"; then
6395  case $host_os in
6396  openbsd*)
6397    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6398    ;;
6399  *)
6400    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6401    ;;
6402  esac
6403  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6404fi
6405
6406case $host_os in
6407  darwin*)
6408    lock_old_archive_extraction=yes ;;
6409  *)
6410    lock_old_archive_extraction=no ;;
6411esac
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451# If no C compiler was specified, use CC.
6452LTCC=${LTCC-"$CC"}
6453
6454# If no C compiler flags were specified, use CFLAGS.
6455LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6456
6457# Allow CC to be a program name with arguments.
6458compiler=$CC
6459
6460
6461# Check for command to grab the raw symbol name followed by C symbol from nm.
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6463$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6464if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6465  $as_echo_n "(cached) " >&6
6466else
6467
6468# These are sane defaults that work on at least a few old systems.
6469# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6470
6471# Character class describing NM global symbol codes.
6472symcode='[BCDEGRST]'
6473
6474# Regexp to match symbols that can be accessed directly from C.
6475sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6476
6477# Define system-specific variables.
6478case $host_os in
6479aix*)
6480  symcode='[BCDT]'
6481  ;;
6482cygwin* | mingw* | pw32* | cegcc*)
6483  symcode='[ABCDGISTW]'
6484  ;;
6485hpux*)
6486  if test "$host_cpu" = ia64; then
6487    symcode='[ABCDEGRST]'
6488  fi
6489  ;;
6490irix* | nonstopux*)
6491  symcode='[BCDEGRST]'
6492  ;;
6493osf*)
6494  symcode='[BCDEGQRST]'
6495  ;;
6496solaris*)
6497  symcode='[BDRT]'
6498  ;;
6499sco3.2v5*)
6500  symcode='[DT]'
6501  ;;
6502sysv4.2uw2*)
6503  symcode='[DT]'
6504  ;;
6505sysv5* | sco5v6* | unixware* | OpenUNIX*)
6506  symcode='[ABDT]'
6507  ;;
6508sysv4)
6509  symcode='[DFNSTU]'
6510  ;;
6511esac
6512
6513# If we're using GNU nm, then use its standard symbol codes.
6514case `$NM -V 2>&1` in
6515*GNU* | *'with BFD'*)
6516  symcode='[ABCDGIRSTW]' ;;
6517esac
6518
6519# Transform an extracted symbol line into a proper C declaration.
6520# Some systems (esp. on ia64) link data and code symbols differently,
6521# so use this general approach.
6522lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6523
6524# Transform an extracted symbol line into symbol name and symbol address
6525lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6526lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6527
6528# Handle CRLF in mingw tool chain
6529opt_cr=
6530case $build_os in
6531mingw*)
6532  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6533  ;;
6534esac
6535
6536# Try without a prefix underscore, then with it.
6537for ac_symprfx in "" "_"; do
6538
6539  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6540  symxfrm="\\1 $ac_symprfx\\2 \\2"
6541
6542  # Write the raw and C identifiers.
6543  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6544    # Fake it for dumpbin and say T for any non-static function
6545    # and D for any global variable.
6546    # Also find C++ and __fastcall symbols from MSVC++,
6547    # which start with @ or ?.
6548    lt_cv_sys_global_symbol_pipe="$AWK '"\
6549"     {last_section=section; section=\$ 3};"\
6550"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6551"     \$ 0!~/External *\|/{next};"\
6552"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6553"     {if(hide[section]) next};"\
6554"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6555"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6556"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6557"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6558"     ' prfx=^$ac_symprfx"
6559  else
6560    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6561  fi
6562
6563  # Check to see that the pipe works correctly.
6564  pipe_works=no
6565
6566  rm -f conftest*
6567  cat > conftest.$ac_ext <<_LT_EOF
6568#ifdef __cplusplus
6569extern "C" {
6570#endif
6571char nm_test_var;
6572void nm_test_func(void);
6573void nm_test_func(void){}
6574#ifdef __cplusplus
6575}
6576#endif
6577int main(){nm_test_var='a';nm_test_func();return(0);}
6578_LT_EOF
6579
6580  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6581  (eval $ac_compile) 2>&5
6582  ac_status=$?
6583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584  test $ac_status = 0; }; then
6585    # Now try to grab the symbols.
6586    nlist=conftest.nm
6587    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6588  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6589  ac_status=$?
6590  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591  test $ac_status = 0; } && test -s "$nlist"; then
6592      # Try sorting and uniquifying the output.
6593      if sort "$nlist" | uniq > "$nlist"T; then
6594	mv -f "$nlist"T "$nlist"
6595      else
6596	rm -f "$nlist"T
6597      fi
6598
6599      # Make sure that we snagged all the symbols we need.
6600      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6601	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6602	  cat <<_LT_EOF > conftest.$ac_ext
6603#ifdef __cplusplus
6604extern "C" {
6605#endif
6606
6607_LT_EOF
6608	  # Now generate the symbol file.
6609	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6610
6611	  cat <<_LT_EOF >> conftest.$ac_ext
6612
6613/* The mapping between symbol names and symbols.  */
6614const struct {
6615  const char *name;
6616  void       *address;
6617}
6618lt__PROGRAM__LTX_preloaded_symbols[] =
6619{
6620  { "@PROGRAM@", (void *) 0 },
6621_LT_EOF
6622	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6623	  cat <<\_LT_EOF >> conftest.$ac_ext
6624  {0, (void *) 0}
6625};
6626
6627/* This works around a problem in FreeBSD linker */
6628#ifdef FREEBSD_WORKAROUND
6629static const void *lt_preloaded_setup() {
6630  return lt__PROGRAM__LTX_preloaded_symbols;
6631}
6632#endif
6633
6634#ifdef __cplusplus
6635}
6636#endif
6637_LT_EOF
6638	  # Now try linking the two files.
6639	  mv conftest.$ac_objext conftstm.$ac_objext
6640	  lt_save_LIBS="$LIBS"
6641	  lt_save_CFLAGS="$CFLAGS"
6642	  LIBS="conftstm.$ac_objext"
6643	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6644	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6645  (eval $ac_link) 2>&5
6646  ac_status=$?
6647  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6648  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6649	    pipe_works=yes
6650	  fi
6651	  LIBS="$lt_save_LIBS"
6652	  CFLAGS="$lt_save_CFLAGS"
6653	else
6654	  echo "cannot find nm_test_func in $nlist" >&5
6655	fi
6656      else
6657	echo "cannot find nm_test_var in $nlist" >&5
6658      fi
6659    else
6660      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6661    fi
6662  else
6663    echo "$progname: failed program was:" >&5
6664    cat conftest.$ac_ext >&5
6665  fi
6666  rm -rf conftest* conftst*
6667
6668  # Do not use the global_symbol_pipe unless it works.
6669  if test "$pipe_works" = yes; then
6670    break
6671  else
6672    lt_cv_sys_global_symbol_pipe=
6673  fi
6674done
6675
6676fi
6677
6678if test -z "$lt_cv_sys_global_symbol_pipe"; then
6679  lt_cv_sys_global_symbol_to_cdecl=
6680fi
6681if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6683$as_echo "failed" >&6; }
6684else
6685  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6686$as_echo "ok" >&6; }
6687fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710# Check whether --enable-libtool-lock was given.
6711if test "${enable_libtool_lock+set}" = set; then :
6712  enableval=$enable_libtool_lock;
6713fi
6714
6715test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6716
6717# Some flags need to be propagated to the compiler or linker for good
6718# libtool support.
6719case $host in
6720ia64-*-hpux*)
6721  # Find out which ABI we are using.
6722  echo 'int i;' > conftest.$ac_ext
6723  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6724  (eval $ac_compile) 2>&5
6725  ac_status=$?
6726  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6727  test $ac_status = 0; }; then
6728    case `/usr/bin/file conftest.$ac_objext` in
6729      *ELF-32*)
6730	HPUX_IA64_MODE="32"
6731	;;
6732      *ELF-64*)
6733	HPUX_IA64_MODE="64"
6734	;;
6735    esac
6736  fi
6737  rm -rf conftest*
6738  ;;
6739*-*-irix6*)
6740  # Find out which ABI we are using.
6741  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6742  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6743  (eval $ac_compile) 2>&5
6744  ac_status=$?
6745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6746  test $ac_status = 0; }; then
6747    if test "$lt_cv_prog_gnu_ld" = yes; then
6748      case `/usr/bin/file conftest.$ac_objext` in
6749	*32-bit*)
6750	  LD="${LD-ld} -melf32bsmip"
6751	  ;;
6752	*N32*)
6753	  LD="${LD-ld} -melf32bmipn32"
6754	  ;;
6755	*64-bit*)
6756	  LD="${LD-ld} -melf64bmip"
6757	;;
6758      esac
6759    else
6760      case `/usr/bin/file conftest.$ac_objext` in
6761	*32-bit*)
6762	  LD="${LD-ld} -32"
6763	  ;;
6764	*N32*)
6765	  LD="${LD-ld} -n32"
6766	  ;;
6767	*64-bit*)
6768	  LD="${LD-ld} -64"
6769	  ;;
6770      esac
6771    fi
6772  fi
6773  rm -rf conftest*
6774  ;;
6775
6776x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6777s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6778  # Find out which ABI we are using.
6779  echo 'int i;' > conftest.$ac_ext
6780  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6781  (eval $ac_compile) 2>&5
6782  ac_status=$?
6783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6784  test $ac_status = 0; }; then
6785    case `/usr/bin/file conftest.o` in
6786      *32-bit*)
6787	case $host in
6788	  x86_64-*kfreebsd*-gnu)
6789	    LD="${LD-ld} -m elf_i386_fbsd"
6790	    ;;
6791	  x86_64-*linux*)
6792	    LD="${LD-ld} -m elf_i386"
6793	    ;;
6794	  ppc64-*linux*|powerpc64-*linux*)
6795	    LD="${LD-ld} -m elf32ppclinux"
6796	    ;;
6797	  s390x-*linux*)
6798	    LD="${LD-ld} -m elf_s390"
6799	    ;;
6800	  sparc64-*linux*)
6801	    LD="${LD-ld} -m elf32_sparc"
6802	    ;;
6803	esac
6804	;;
6805      *64-bit*)
6806	case $host in
6807	  x86_64-*kfreebsd*-gnu)
6808	    LD="${LD-ld} -m elf_x86_64_fbsd"
6809	    ;;
6810	  x86_64-*linux*)
6811	    LD="${LD-ld} -m elf_x86_64"
6812	    ;;
6813	  ppc*-*linux*|powerpc*-*linux*)
6814	    LD="${LD-ld} -m elf64ppc"
6815	    ;;
6816	  s390*-*linux*|s390*-*tpf*)
6817	    LD="${LD-ld} -m elf64_s390"
6818	    ;;
6819	  sparc*-*linux*)
6820	    LD="${LD-ld} -m elf64_sparc"
6821	    ;;
6822	esac
6823	;;
6824    esac
6825  fi
6826  rm -rf conftest*
6827  ;;
6828
6829*-*-sco3.2v5*)
6830  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6831  SAVE_CFLAGS="$CFLAGS"
6832  CFLAGS="$CFLAGS -belf"
6833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6834$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6835if test "${lt_cv_cc_needs_belf+set}" = set; then :
6836  $as_echo_n "(cached) " >&6
6837else
6838  ac_ext=c
6839ac_cpp='$CPP $CPPFLAGS'
6840ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842ac_compiler_gnu=$ac_cv_c_compiler_gnu
6843
6844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845/* end confdefs.h.  */
6846
6847int
6848main ()
6849{
6850
6851  ;
6852  return 0;
6853}
6854_ACEOF
6855if ac_fn_c_try_link "$LINENO"; then :
6856  lt_cv_cc_needs_belf=yes
6857else
6858  lt_cv_cc_needs_belf=no
6859fi
6860rm -f core conftest.err conftest.$ac_objext \
6861    conftest$ac_exeext conftest.$ac_ext
6862     ac_ext=c
6863ac_cpp='$CPP $CPPFLAGS'
6864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866ac_compiler_gnu=$ac_cv_c_compiler_gnu
6867
6868fi
6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6870$as_echo "$lt_cv_cc_needs_belf" >&6; }
6871  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6872    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6873    CFLAGS="$SAVE_CFLAGS"
6874  fi
6875  ;;
6876sparc*-*solaris*)
6877  # Find out which ABI we are using.
6878  echo 'int i;' > conftest.$ac_ext
6879  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880  (eval $ac_compile) 2>&5
6881  ac_status=$?
6882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883  test $ac_status = 0; }; then
6884    case `/usr/bin/file conftest.o` in
6885    *64-bit*)
6886      case $lt_cv_prog_gnu_ld in
6887      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6888      *)
6889	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6890	  LD="${LD-ld} -64"
6891	fi
6892	;;
6893      esac
6894      ;;
6895    esac
6896  fi
6897  rm -rf conftest*
6898  ;;
6899esac
6900
6901need_locks="$enable_libtool_lock"
6902
6903
6904  case $host_os in
6905    rhapsody* | darwin*)
6906    if test -n "$ac_tool_prefix"; then
6907  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6908set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910$as_echo_n "checking for $ac_word... " >&6; }
6911if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6912  $as_echo_n "(cached) " >&6
6913else
6914  if test -n "$DSYMUTIL"; then
6915  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6916else
6917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918for as_dir in $PATH
6919do
6920  IFS=$as_save_IFS
6921  test -z "$as_dir" && as_dir=.
6922    for ac_exec_ext in '' $ac_executable_extensions; do
6923  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6925    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926    break 2
6927  fi
6928done
6929  done
6930IFS=$as_save_IFS
6931
6932fi
6933fi
6934DSYMUTIL=$ac_cv_prog_DSYMUTIL
6935if test -n "$DSYMUTIL"; then
6936  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6937$as_echo "$DSYMUTIL" >&6; }
6938else
6939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940$as_echo "no" >&6; }
6941fi
6942
6943
6944fi
6945if test -z "$ac_cv_prog_DSYMUTIL"; then
6946  ac_ct_DSYMUTIL=$DSYMUTIL
6947  # Extract the first word of "dsymutil", so it can be a program name with args.
6948set dummy dsymutil; ac_word=$2
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950$as_echo_n "checking for $ac_word... " >&6; }
6951if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6952  $as_echo_n "(cached) " >&6
6953else
6954  if test -n "$ac_ct_DSYMUTIL"; then
6955  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6956else
6957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958for as_dir in $PATH
6959do
6960  IFS=$as_save_IFS
6961  test -z "$as_dir" && as_dir=.
6962    for ac_exec_ext in '' $ac_executable_extensions; do
6963  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6965    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966    break 2
6967  fi
6968done
6969  done
6970IFS=$as_save_IFS
6971
6972fi
6973fi
6974ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6975if test -n "$ac_ct_DSYMUTIL"; then
6976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6977$as_echo "$ac_ct_DSYMUTIL" >&6; }
6978else
6979  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980$as_echo "no" >&6; }
6981fi
6982
6983  if test "x$ac_ct_DSYMUTIL" = x; then
6984    DSYMUTIL=":"
6985  else
6986    case $cross_compiling:$ac_tool_warned in
6987yes:)
6988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990ac_tool_warned=yes ;;
6991esac
6992    DSYMUTIL=$ac_ct_DSYMUTIL
6993  fi
6994else
6995  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6996fi
6997
6998    if test -n "$ac_tool_prefix"; then
6999  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7000set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002$as_echo_n "checking for $ac_word... " >&6; }
7003if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7004  $as_echo_n "(cached) " >&6
7005else
7006  if test -n "$NMEDIT"; then
7007  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7008else
7009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH
7011do
7012  IFS=$as_save_IFS
7013  test -z "$as_dir" && as_dir=.
7014    for ac_exec_ext in '' $ac_executable_extensions; do
7015  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7017    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018    break 2
7019  fi
7020done
7021  done
7022IFS=$as_save_IFS
7023
7024fi
7025fi
7026NMEDIT=$ac_cv_prog_NMEDIT
7027if test -n "$NMEDIT"; then
7028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7029$as_echo "$NMEDIT" >&6; }
7030else
7031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032$as_echo "no" >&6; }
7033fi
7034
7035
7036fi
7037if test -z "$ac_cv_prog_NMEDIT"; then
7038  ac_ct_NMEDIT=$NMEDIT
7039  # Extract the first word of "nmedit", so it can be a program name with args.
7040set dummy nmedit; ac_word=$2
7041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042$as_echo_n "checking for $ac_word... " >&6; }
7043if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7044  $as_echo_n "(cached) " >&6
7045else
7046  if test -n "$ac_ct_NMEDIT"; then
7047  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7048else
7049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050for as_dir in $PATH
7051do
7052  IFS=$as_save_IFS
7053  test -z "$as_dir" && as_dir=.
7054    for ac_exec_ext in '' $ac_executable_extensions; do
7055  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7057    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058    break 2
7059  fi
7060done
7061  done
7062IFS=$as_save_IFS
7063
7064fi
7065fi
7066ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7067if test -n "$ac_ct_NMEDIT"; then
7068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7069$as_echo "$ac_ct_NMEDIT" >&6; }
7070else
7071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072$as_echo "no" >&6; }
7073fi
7074
7075  if test "x$ac_ct_NMEDIT" = x; then
7076    NMEDIT=":"
7077  else
7078    case $cross_compiling:$ac_tool_warned in
7079yes:)
7080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082ac_tool_warned=yes ;;
7083esac
7084    NMEDIT=$ac_ct_NMEDIT
7085  fi
7086else
7087  NMEDIT="$ac_cv_prog_NMEDIT"
7088fi
7089
7090    if test -n "$ac_tool_prefix"; then
7091  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7092set dummy ${ac_tool_prefix}lipo; ac_word=$2
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094$as_echo_n "checking for $ac_word... " >&6; }
7095if test "${ac_cv_prog_LIPO+set}" = set; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  if test -n "$LIPO"; then
7099  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7100else
7101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102for as_dir in $PATH
7103do
7104  IFS=$as_save_IFS
7105  test -z "$as_dir" && as_dir=.
7106    for ac_exec_ext in '' $ac_executable_extensions; do
7107  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7108    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7109    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110    break 2
7111  fi
7112done
7113  done
7114IFS=$as_save_IFS
7115
7116fi
7117fi
7118LIPO=$ac_cv_prog_LIPO
7119if test -n "$LIPO"; then
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7121$as_echo "$LIPO" >&6; }
7122else
7123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124$as_echo "no" >&6; }
7125fi
7126
7127
7128fi
7129if test -z "$ac_cv_prog_LIPO"; then
7130  ac_ct_LIPO=$LIPO
7131  # Extract the first word of "lipo", so it can be a program name with args.
7132set dummy lipo; ac_word=$2
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134$as_echo_n "checking for $ac_word... " >&6; }
7135if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7136  $as_echo_n "(cached) " >&6
7137else
7138  if test -n "$ac_ct_LIPO"; then
7139  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7140else
7141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142for as_dir in $PATH
7143do
7144  IFS=$as_save_IFS
7145  test -z "$as_dir" && as_dir=.
7146    for ac_exec_ext in '' $ac_executable_extensions; do
7147  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7148    ac_cv_prog_ac_ct_LIPO="lipo"
7149    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7150    break 2
7151  fi
7152done
7153  done
7154IFS=$as_save_IFS
7155
7156fi
7157fi
7158ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7159if test -n "$ac_ct_LIPO"; then
7160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7161$as_echo "$ac_ct_LIPO" >&6; }
7162else
7163  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7164$as_echo "no" >&6; }
7165fi
7166
7167  if test "x$ac_ct_LIPO" = x; then
7168    LIPO=":"
7169  else
7170    case $cross_compiling:$ac_tool_warned in
7171yes:)
7172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7174ac_tool_warned=yes ;;
7175esac
7176    LIPO=$ac_ct_LIPO
7177  fi
7178else
7179  LIPO="$ac_cv_prog_LIPO"
7180fi
7181
7182    if test -n "$ac_tool_prefix"; then
7183  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7184set dummy ${ac_tool_prefix}otool; ac_word=$2
7185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7186$as_echo_n "checking for $ac_word... " >&6; }
7187if test "${ac_cv_prog_OTOOL+set}" = set; then :
7188  $as_echo_n "(cached) " >&6
7189else
7190  if test -n "$OTOOL"; then
7191  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7192else
7193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7194for as_dir in $PATH
7195do
7196  IFS=$as_save_IFS
7197  test -z "$as_dir" && as_dir=.
7198    for ac_exec_ext in '' $ac_executable_extensions; do
7199  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7200    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7201    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202    break 2
7203  fi
7204done
7205  done
7206IFS=$as_save_IFS
7207
7208fi
7209fi
7210OTOOL=$ac_cv_prog_OTOOL
7211if test -n "$OTOOL"; then
7212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7213$as_echo "$OTOOL" >&6; }
7214else
7215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216$as_echo "no" >&6; }
7217fi
7218
7219
7220fi
7221if test -z "$ac_cv_prog_OTOOL"; then
7222  ac_ct_OTOOL=$OTOOL
7223  # Extract the first word of "otool", so it can be a program name with args.
7224set dummy otool; ac_word=$2
7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7226$as_echo_n "checking for $ac_word... " >&6; }
7227if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7228  $as_echo_n "(cached) " >&6
7229else
7230  if test -n "$ac_ct_OTOOL"; then
7231  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7232else
7233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234for as_dir in $PATH
7235do
7236  IFS=$as_save_IFS
7237  test -z "$as_dir" && as_dir=.
7238    for ac_exec_ext in '' $ac_executable_extensions; do
7239  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7240    ac_cv_prog_ac_ct_OTOOL="otool"
7241    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7242    break 2
7243  fi
7244done
7245  done
7246IFS=$as_save_IFS
7247
7248fi
7249fi
7250ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7251if test -n "$ac_ct_OTOOL"; then
7252  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7253$as_echo "$ac_ct_OTOOL" >&6; }
7254else
7255  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7256$as_echo "no" >&6; }
7257fi
7258
7259  if test "x$ac_ct_OTOOL" = x; then
7260    OTOOL=":"
7261  else
7262    case $cross_compiling:$ac_tool_warned in
7263yes:)
7264{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7265$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7266ac_tool_warned=yes ;;
7267esac
7268    OTOOL=$ac_ct_OTOOL
7269  fi
7270else
7271  OTOOL="$ac_cv_prog_OTOOL"
7272fi
7273
7274    if test -n "$ac_tool_prefix"; then
7275  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7276set dummy ${ac_tool_prefix}otool64; ac_word=$2
7277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7278$as_echo_n "checking for $ac_word... " >&6; }
7279if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7280  $as_echo_n "(cached) " >&6
7281else
7282  if test -n "$OTOOL64"; then
7283  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7284else
7285as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7286for as_dir in $PATH
7287do
7288  IFS=$as_save_IFS
7289  test -z "$as_dir" && as_dir=.
7290    for ac_exec_ext in '' $ac_executable_extensions; do
7291  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7292    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7293    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7294    break 2
7295  fi
7296done
7297  done
7298IFS=$as_save_IFS
7299
7300fi
7301fi
7302OTOOL64=$ac_cv_prog_OTOOL64
7303if test -n "$OTOOL64"; then
7304  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7305$as_echo "$OTOOL64" >&6; }
7306else
7307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7308$as_echo "no" >&6; }
7309fi
7310
7311
7312fi
7313if test -z "$ac_cv_prog_OTOOL64"; then
7314  ac_ct_OTOOL64=$OTOOL64
7315  # Extract the first word of "otool64", so it can be a program name with args.
7316set dummy otool64; ac_word=$2
7317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7318$as_echo_n "checking for $ac_word... " >&6; }
7319if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7320  $as_echo_n "(cached) " >&6
7321else
7322  if test -n "$ac_ct_OTOOL64"; then
7323  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7324else
7325as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326for as_dir in $PATH
7327do
7328  IFS=$as_save_IFS
7329  test -z "$as_dir" && as_dir=.
7330    for ac_exec_ext in '' $ac_executable_extensions; do
7331  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7332    ac_cv_prog_ac_ct_OTOOL64="otool64"
7333    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7334    break 2
7335  fi
7336done
7337  done
7338IFS=$as_save_IFS
7339
7340fi
7341fi
7342ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7343if test -n "$ac_ct_OTOOL64"; then
7344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7345$as_echo "$ac_ct_OTOOL64" >&6; }
7346else
7347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348$as_echo "no" >&6; }
7349fi
7350
7351  if test "x$ac_ct_OTOOL64" = x; then
7352    OTOOL64=":"
7353  else
7354    case $cross_compiling:$ac_tool_warned in
7355yes:)
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7357$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7358ac_tool_warned=yes ;;
7359esac
7360    OTOOL64=$ac_ct_OTOOL64
7361  fi
7362else
7363  OTOOL64="$ac_cv_prog_OTOOL64"
7364fi
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391
7392    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7393$as_echo_n "checking for -single_module linker flag... " >&6; }
7394if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7395  $as_echo_n "(cached) " >&6
7396else
7397  lt_cv_apple_cc_single_mod=no
7398      if test -z "${LT_MULTI_MODULE}"; then
7399	# By default we will add the -single_module flag. You can override
7400	# by either setting the environment variable LT_MULTI_MODULE
7401	# non-empty at configure time, or by adding -multi_module to the
7402	# link flags.
7403	rm -rf libconftest.dylib*
7404	echo "int foo(void){return 1;}" > conftest.c
7405	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7406-dynamiclib -Wl,-single_module conftest.c" >&5
7407	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7408	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7409        _lt_result=$?
7410	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7411	  lt_cv_apple_cc_single_mod=yes
7412	else
7413	  cat conftest.err >&5
7414	fi
7415	rm -rf libconftest.dylib*
7416	rm -f conftest.*
7417      fi
7418fi
7419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7420$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7421    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7422$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7423if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7424  $as_echo_n "(cached) " >&6
7425else
7426  lt_cv_ld_exported_symbols_list=no
7427      save_LDFLAGS=$LDFLAGS
7428      echo "_main" > conftest.sym
7429      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7430      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431/* end confdefs.h.  */
7432
7433int
7434main ()
7435{
7436
7437  ;
7438  return 0;
7439}
7440_ACEOF
7441if ac_fn_c_try_link "$LINENO"; then :
7442  lt_cv_ld_exported_symbols_list=yes
7443else
7444  lt_cv_ld_exported_symbols_list=no
7445fi
7446rm -f core conftest.err conftest.$ac_objext \
7447    conftest$ac_exeext conftest.$ac_ext
7448	LDFLAGS="$save_LDFLAGS"
7449
7450fi
7451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7452$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7453    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7454$as_echo_n "checking for -force_load linker flag... " >&6; }
7455if test "${lt_cv_ld_force_load+set}" = set; then :
7456  $as_echo_n "(cached) " >&6
7457else
7458  lt_cv_ld_force_load=no
7459      cat > conftest.c << _LT_EOF
7460int forced_loaded() { return 2;}
7461_LT_EOF
7462      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7463      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7464      echo "$AR cru libconftest.a conftest.o" >&5
7465      $AR cru libconftest.a conftest.o 2>&5
7466      echo "$RANLIB libconftest.a" >&5
7467      $RANLIB libconftest.a 2>&5
7468      cat > conftest.c << _LT_EOF
7469int main() { return 0;}
7470_LT_EOF
7471      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7472      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7473      _lt_result=$?
7474      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7475	lt_cv_ld_force_load=yes
7476      else
7477	cat conftest.err >&5
7478      fi
7479        rm -f conftest.err libconftest.a conftest conftest.c
7480        rm -rf conftest.dSYM
7481
7482fi
7483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7484$as_echo "$lt_cv_ld_force_load" >&6; }
7485    case $host_os in
7486    rhapsody* | darwin1.[012])
7487      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7488    darwin1.*)
7489      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7490    darwin*) # darwin 5.x on
7491      # if running on 10.5 or later, the deployment target defaults
7492      # to the OS version, if on x86, and 10.4, the deployment
7493      # target defaults to 10.4. Don't you love it?
7494      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7495	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7496	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7497	10.[012]*)
7498	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7499	10.*)
7500	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7501      esac
7502    ;;
7503  esac
7504    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7505      _lt_dar_single_mod='$single_module'
7506    fi
7507    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7508      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7509    else
7510      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7511    fi
7512    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7513      _lt_dsymutil='~$DSYMUTIL $lib || :'
7514    else
7515      _lt_dsymutil=
7516    fi
7517    ;;
7518  esac
7519
7520for ac_header in dlfcn.h
7521do :
7522  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7523"
7524if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7525  cat >>confdefs.h <<_ACEOF
7526#define HAVE_DLFCN_H 1
7527_ACEOF
7528
7529fi
7530
7531done
7532
7533
7534
7535
7536
7537# Set options
7538
7539
7540
7541        enable_dlopen=no
7542
7543
7544  enable_win32_dll=no
7545
7546
7547            # Check whether --enable-shared was given.
7548if test "${enable_shared+set}" = set; then :
7549  enableval=$enable_shared; p=${PACKAGE-default}
7550    case $enableval in
7551    yes) enable_shared=yes ;;
7552    no) enable_shared=no ;;
7553    *)
7554      enable_shared=no
7555      # Look at the argument we got.  We use all the common list separators.
7556      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7557      for pkg in $enableval; do
7558	IFS="$lt_save_ifs"
7559	if test "X$pkg" = "X$p"; then
7560	  enable_shared=yes
7561	fi
7562      done
7563      IFS="$lt_save_ifs"
7564      ;;
7565    esac
7566else
7567  enable_shared=yes
7568fi
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578  # Check whether --enable-static was given.
7579if test "${enable_static+set}" = set; then :
7580  enableval=$enable_static; p=${PACKAGE-default}
7581    case $enableval in
7582    yes) enable_static=yes ;;
7583    no) enable_static=no ;;
7584    *)
7585     enable_static=no
7586      # Look at the argument we got.  We use all the common list separators.
7587      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7588      for pkg in $enableval; do
7589	IFS="$lt_save_ifs"
7590	if test "X$pkg" = "X$p"; then
7591	  enable_static=yes
7592	fi
7593      done
7594      IFS="$lt_save_ifs"
7595      ;;
7596    esac
7597else
7598  enable_static=yes
7599fi
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610# Check whether --with-pic was given.
7611if test "${with_pic+set}" = set; then :
7612  withval=$with_pic; pic_mode="$withval"
7613else
7614  pic_mode=default
7615fi
7616
7617
7618test -z "$pic_mode" && pic_mode=default
7619
7620
7621
7622
7623
7624
7625
7626  # Check whether --enable-fast-install was given.
7627if test "${enable_fast_install+set}" = set; then :
7628  enableval=$enable_fast_install; p=${PACKAGE-default}
7629    case $enableval in
7630    yes) enable_fast_install=yes ;;
7631    no) enable_fast_install=no ;;
7632    *)
7633      enable_fast_install=no
7634      # Look at the argument we got.  We use all the common list separators.
7635      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7636      for pkg in $enableval; do
7637	IFS="$lt_save_ifs"
7638	if test "X$pkg" = "X$p"; then
7639	  enable_fast_install=yes
7640	fi
7641      done
7642      IFS="$lt_save_ifs"
7643      ;;
7644    esac
7645else
7646  enable_fast_install=yes
7647fi
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659# This can be used to rebuild libtool when needed
7660LIBTOOL_DEPS="$ltmain"
7661
7662# Always use our own libtool.
7663LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690test -z "$LN_S" && LN_S="ln -s"
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705if test -n "${ZSH_VERSION+set}" ; then
7706   setopt NO_GLOB_SUBST
7707fi
7708
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7710$as_echo_n "checking for objdir... " >&6; }
7711if test "${lt_cv_objdir+set}" = set; then :
7712  $as_echo_n "(cached) " >&6
7713else
7714  rm -f .libs 2>/dev/null
7715mkdir .libs 2>/dev/null
7716if test -d .libs; then
7717  lt_cv_objdir=.libs
7718else
7719  # MS-DOS does not allow filenames that begin with a dot.
7720  lt_cv_objdir=_libs
7721fi
7722rmdir .libs 2>/dev/null
7723fi
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7725$as_echo "$lt_cv_objdir" >&6; }
7726objdir=$lt_cv_objdir
7727
7728
7729
7730
7731
7732cat >>confdefs.h <<_ACEOF
7733#define LT_OBJDIR "$lt_cv_objdir/"
7734_ACEOF
7735
7736
7737
7738
7739case $host_os in
7740aix3*)
7741  # AIX sometimes has problems with the GCC collect2 program.  For some
7742  # reason, if we set the COLLECT_NAMES environment variable, the problems
7743  # vanish in a puff of smoke.
7744  if test "X${COLLECT_NAMES+set}" != Xset; then
7745    COLLECT_NAMES=
7746    export COLLECT_NAMES
7747  fi
7748  ;;
7749esac
7750
7751# Global variables:
7752ofile=libtool
7753can_build_shared=yes
7754
7755# All known linkers require a `.a' archive for static linking (except MSVC,
7756# which needs '.lib').
7757libext=a
7758
7759with_gnu_ld="$lt_cv_prog_gnu_ld"
7760
7761old_CC="$CC"
7762old_CFLAGS="$CFLAGS"
7763
7764# Set sane defaults for various variables
7765test -z "$CC" && CC=cc
7766test -z "$LTCC" && LTCC=$CC
7767test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7768test -z "$LD" && LD=ld
7769test -z "$ac_objext" && ac_objext=o
7770
7771for cc_temp in $compiler""; do
7772  case $cc_temp in
7773    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7774    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7775    \-*) ;;
7776    *) break;;
7777  esac
7778done
7779cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7780
7781
7782# Only perform the check for file, if the check method requires it
7783test -z "$MAGIC_CMD" && MAGIC_CMD=file
7784case $deplibs_check_method in
7785file_magic*)
7786  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7787    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7788$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7789if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7790  $as_echo_n "(cached) " >&6
7791else
7792  case $MAGIC_CMD in
7793[\\/*] |  ?:[\\/]*)
7794  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7795  ;;
7796*)
7797  lt_save_MAGIC_CMD="$MAGIC_CMD"
7798  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7799  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7800  for ac_dir in $ac_dummy; do
7801    IFS="$lt_save_ifs"
7802    test -z "$ac_dir" && ac_dir=.
7803    if test -f $ac_dir/${ac_tool_prefix}file; then
7804      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7805      if test -n "$file_magic_test_file"; then
7806	case $deplibs_check_method in
7807	"file_magic "*)
7808	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7809	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7810	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7811	    $EGREP "$file_magic_regex" > /dev/null; then
7812	    :
7813	  else
7814	    cat <<_LT_EOF 1>&2
7815
7816*** Warning: the command libtool uses to detect shared libraries,
7817*** $file_magic_cmd, produces output that libtool cannot recognize.
7818*** The result is that libtool may fail to recognize shared libraries
7819*** as such.  This will affect the creation of libtool libraries that
7820*** depend on shared libraries, but programs linked with such libtool
7821*** libraries will work regardless of this problem.  Nevertheless, you
7822*** may want to report the problem to your system manager and/or to
7823*** bug-libtool@gnu.org
7824
7825_LT_EOF
7826	  fi ;;
7827	esac
7828      fi
7829      break
7830    fi
7831  done
7832  IFS="$lt_save_ifs"
7833  MAGIC_CMD="$lt_save_MAGIC_CMD"
7834  ;;
7835esac
7836fi
7837
7838MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7839if test -n "$MAGIC_CMD"; then
7840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7841$as_echo "$MAGIC_CMD" >&6; }
7842else
7843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7844$as_echo "no" >&6; }
7845fi
7846
7847
7848
7849
7850
7851if test -z "$lt_cv_path_MAGIC_CMD"; then
7852  if test -n "$ac_tool_prefix"; then
7853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7854$as_echo_n "checking for file... " >&6; }
7855if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  case $MAGIC_CMD in
7859[\\/*] |  ?:[\\/]*)
7860  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7861  ;;
7862*)
7863  lt_save_MAGIC_CMD="$MAGIC_CMD"
7864  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7865  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7866  for ac_dir in $ac_dummy; do
7867    IFS="$lt_save_ifs"
7868    test -z "$ac_dir" && ac_dir=.
7869    if test -f $ac_dir/file; then
7870      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7871      if test -n "$file_magic_test_file"; then
7872	case $deplibs_check_method in
7873	"file_magic "*)
7874	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7875	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7876	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7877	    $EGREP "$file_magic_regex" > /dev/null; then
7878	    :
7879	  else
7880	    cat <<_LT_EOF 1>&2
7881
7882*** Warning: the command libtool uses to detect shared libraries,
7883*** $file_magic_cmd, produces output that libtool cannot recognize.
7884*** The result is that libtool may fail to recognize shared libraries
7885*** as such.  This will affect the creation of libtool libraries that
7886*** depend on shared libraries, but programs linked with such libtool
7887*** libraries will work regardless of this problem.  Nevertheless, you
7888*** may want to report the problem to your system manager and/or to
7889*** bug-libtool@gnu.org
7890
7891_LT_EOF
7892	  fi ;;
7893	esac
7894      fi
7895      break
7896    fi
7897  done
7898  IFS="$lt_save_ifs"
7899  MAGIC_CMD="$lt_save_MAGIC_CMD"
7900  ;;
7901esac
7902fi
7903
7904MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7905if test -n "$MAGIC_CMD"; then
7906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7907$as_echo "$MAGIC_CMD" >&6; }
7908else
7909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7910$as_echo "no" >&6; }
7911fi
7912
7913
7914  else
7915    MAGIC_CMD=:
7916  fi
7917fi
7918
7919  fi
7920  ;;
7921esac
7922
7923# Use C for the default configuration in the libtool script
7924
7925lt_save_CC="$CC"
7926ac_ext=c
7927ac_cpp='$CPP $CPPFLAGS'
7928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7930ac_compiler_gnu=$ac_cv_c_compiler_gnu
7931
7932
7933# Source file extension for C test sources.
7934ac_ext=c
7935
7936# Object file extension for compiled C test sources.
7937objext=o
7938objext=$objext
7939
7940# Code to be used in simple compile tests
7941lt_simple_compile_test_code="int some_variable = 0;"
7942
7943# Code to be used in simple link tests
7944lt_simple_link_test_code='int main(){return(0);}'
7945
7946
7947
7948
7949
7950
7951
7952# If no C compiler was specified, use CC.
7953LTCC=${LTCC-"$CC"}
7954
7955# If no C compiler flags were specified, use CFLAGS.
7956LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7957
7958# Allow CC to be a program name with arguments.
7959compiler=$CC
7960
7961# Save the default compiler, since it gets overwritten when the other
7962# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7963compiler_DEFAULT=$CC
7964
7965# save warnings/boilerplate of simple test code
7966ac_outfile=conftest.$ac_objext
7967echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7968eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7969_lt_compiler_boilerplate=`cat conftest.err`
7970$RM conftest*
7971
7972ac_outfile=conftest.$ac_objext
7973echo "$lt_simple_link_test_code" >conftest.$ac_ext
7974eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7975_lt_linker_boilerplate=`cat conftest.err`
7976$RM -r conftest*
7977
7978
7979if test -n "$compiler"; then
7980
7981lt_prog_compiler_no_builtin_flag=
7982
7983if test "$GCC" = yes; then
7984  case $cc_basename in
7985  nvcc*)
7986    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7987  *)
7988    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7989  esac
7990
7991  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7992$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7993if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7994  $as_echo_n "(cached) " >&6
7995else
7996  lt_cv_prog_compiler_rtti_exceptions=no
7997   ac_outfile=conftest.$ac_objext
7998   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7999   lt_compiler_flag="-fno-rtti -fno-exceptions"
8000   # Insert the option either (1) after the last *FLAGS variable, or
8001   # (2) before a word containing "conftest.", or (3) at the end.
8002   # Note that $ac_compile itself does not contain backslashes and begins
8003   # with a dollar sign (not a hyphen), so the echo should work correctly.
8004   # The option is referenced via a variable to avoid confusing sed.
8005   lt_compile=`echo "$ac_compile" | $SED \
8006   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8007   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8008   -e 's:$: $lt_compiler_flag:'`
8009   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8010   (eval "$lt_compile" 2>conftest.err)
8011   ac_status=$?
8012   cat conftest.err >&5
8013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014   if (exit $ac_status) && test -s "$ac_outfile"; then
8015     # The compiler can only warn and ignore the option if not recognized
8016     # So say no if there are warnings other than the usual output.
8017     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8018     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8019     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8020       lt_cv_prog_compiler_rtti_exceptions=yes
8021     fi
8022   fi
8023   $RM conftest*
8024
8025fi
8026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8027$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8028
8029if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8030    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8031else
8032    :
8033fi
8034
8035fi
8036
8037
8038
8039
8040
8041
8042  lt_prog_compiler_wl=
8043lt_prog_compiler_pic=
8044lt_prog_compiler_static=
8045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8047$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8048
8049  if test "$GCC" = yes; then
8050    lt_prog_compiler_wl='-Wl,'
8051    lt_prog_compiler_static='-static'
8052
8053    case $host_os in
8054      aix*)
8055      # All AIX code is PIC.
8056      if test "$host_cpu" = ia64; then
8057	# AIX 5 now supports IA64 processor
8058	lt_prog_compiler_static='-Bstatic'
8059      fi
8060      ;;
8061
8062    amigaos*)
8063      case $host_cpu in
8064      powerpc)
8065            # see comment about AmigaOS4 .so support
8066            lt_prog_compiler_pic='-fPIC'
8067        ;;
8068      m68k)
8069            # FIXME: we need at least 68020 code to build shared libraries, but
8070            # adding the `-m68020' flag to GCC prevents building anything better,
8071            # like `-m68040'.
8072            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8073        ;;
8074      esac
8075      ;;
8076
8077    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8078      # PIC is the default for these OSes.
8079      ;;
8080
8081    mingw* | cygwin* | pw32* | os2* | cegcc*)
8082      # This hack is so that the source file can tell whether it is being
8083      # built for inclusion in a dll (and should export symbols for example).
8084      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8085      # (--disable-auto-import) libraries
8086      lt_prog_compiler_pic='-DDLL_EXPORT'
8087      ;;
8088
8089    darwin* | rhapsody*)
8090      # PIC is the default on this platform
8091      # Common symbols not allowed in MH_DYLIB files
8092      lt_prog_compiler_pic='-fno-common'
8093      ;;
8094
8095    haiku*)
8096      # PIC is the default for Haiku.
8097      # The "-static" flag exists, but is broken.
8098      lt_prog_compiler_static=
8099      ;;
8100
8101    hpux*)
8102      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8103      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8104      # sets the default TLS model and affects inlining.
8105      case $host_cpu in
8106      hppa*64*)
8107	# +Z the default
8108	;;
8109      *)
8110	lt_prog_compiler_pic='-fPIC'
8111	;;
8112      esac
8113      ;;
8114
8115    interix[3-9]*)
8116      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8117      # Instead, we relocate shared libraries at runtime.
8118      ;;
8119
8120    msdosdjgpp*)
8121      # Just because we use GCC doesn't mean we suddenly get shared libraries
8122      # on systems that don't support them.
8123      lt_prog_compiler_can_build_shared=no
8124      enable_shared=no
8125      ;;
8126
8127    *nto* | *qnx*)
8128      # QNX uses GNU C++, but need to define -shared option too, otherwise
8129      # it will coredump.
8130      lt_prog_compiler_pic='-fPIC -shared'
8131      ;;
8132
8133    sysv4*MP*)
8134      if test -d /usr/nec; then
8135	lt_prog_compiler_pic=-Kconform_pic
8136      fi
8137      ;;
8138
8139    *)
8140      lt_prog_compiler_pic='-fPIC'
8141      ;;
8142    esac
8143
8144    case $cc_basename in
8145    nvcc*) # Cuda Compiler Driver 2.2
8146      lt_prog_compiler_wl='-Xlinker '
8147      lt_prog_compiler_pic='-Xcompiler -fPIC'
8148      ;;
8149    esac
8150  else
8151    # PORTME Check for flag to pass linker flags through the system compiler.
8152    case $host_os in
8153    aix*)
8154      lt_prog_compiler_wl='-Wl,'
8155      if test "$host_cpu" = ia64; then
8156	# AIX 5 now supports IA64 processor
8157	lt_prog_compiler_static='-Bstatic'
8158      else
8159	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8160      fi
8161      ;;
8162
8163    mingw* | cygwin* | pw32* | os2* | cegcc*)
8164      # This hack is so that the source file can tell whether it is being
8165      # built for inclusion in a dll (and should export symbols for example).
8166      lt_prog_compiler_pic='-DDLL_EXPORT'
8167      ;;
8168
8169    hpux9* | hpux10* | hpux11*)
8170      lt_prog_compiler_wl='-Wl,'
8171      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8172      # not for PA HP-UX.
8173      case $host_cpu in
8174      hppa*64*|ia64*)
8175	# +Z the default
8176	;;
8177      *)
8178	lt_prog_compiler_pic='+Z'
8179	;;
8180      esac
8181      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8182      lt_prog_compiler_static='${wl}-a ${wl}archive'
8183      ;;
8184
8185    irix5* | irix6* | nonstopux*)
8186      lt_prog_compiler_wl='-Wl,'
8187      # PIC (with -KPIC) is the default.
8188      lt_prog_compiler_static='-non_shared'
8189      ;;
8190
8191    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8192      case $cc_basename in
8193      # old Intel for x86_64 which still supported -KPIC.
8194      ecc*)
8195	lt_prog_compiler_wl='-Wl,'
8196	lt_prog_compiler_pic='-KPIC'
8197	lt_prog_compiler_static='-static'
8198        ;;
8199      # icc used to be incompatible with GCC.
8200      # ICC 10 doesn't accept -KPIC any more.
8201      icc* | ifort*)
8202	lt_prog_compiler_wl='-Wl,'
8203	lt_prog_compiler_pic='-fPIC'
8204	lt_prog_compiler_static='-static'
8205        ;;
8206      # Lahey Fortran 8.1.
8207      lf95*)
8208	lt_prog_compiler_wl='-Wl,'
8209	lt_prog_compiler_pic='--shared'
8210	lt_prog_compiler_static='--static'
8211	;;
8212      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8213        # Portland Group compilers (*not* the Pentium gcc compiler,
8214	# which looks to be a dead project)
8215	lt_prog_compiler_wl='-Wl,'
8216	lt_prog_compiler_pic='-fpic'
8217	lt_prog_compiler_static='-Bstatic'
8218        ;;
8219      ccc*)
8220        lt_prog_compiler_wl='-Wl,'
8221        # All Alpha code is PIC.
8222        lt_prog_compiler_static='-non_shared'
8223        ;;
8224      xl* | bgxl* | bgf* | mpixl*)
8225	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8226	lt_prog_compiler_wl='-Wl,'
8227	lt_prog_compiler_pic='-qpic'
8228	lt_prog_compiler_static='-qstaticlink'
8229	;;
8230      *)
8231	case `$CC -V 2>&1 | sed 5q` in
8232	*Sun\ F* | *Sun*Fortran*)
8233	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8234	  lt_prog_compiler_pic='-KPIC'
8235	  lt_prog_compiler_static='-Bstatic'
8236	  lt_prog_compiler_wl=''
8237	  ;;
8238	*Sun\ C*)
8239	  # Sun C 5.9
8240	  lt_prog_compiler_pic='-KPIC'
8241	  lt_prog_compiler_static='-Bstatic'
8242	  lt_prog_compiler_wl='-Wl,'
8243	  ;;
8244	esac
8245	;;
8246      esac
8247      ;;
8248
8249    newsos6)
8250      lt_prog_compiler_pic='-KPIC'
8251      lt_prog_compiler_static='-Bstatic'
8252      ;;
8253
8254    *nto* | *qnx*)
8255      # QNX uses GNU C++, but need to define -shared option too, otherwise
8256      # it will coredump.
8257      lt_prog_compiler_pic='-fPIC -shared'
8258      ;;
8259
8260    osf3* | osf4* | osf5*)
8261      lt_prog_compiler_wl='-Wl,'
8262      # All OSF/1 code is PIC.
8263      lt_prog_compiler_static='-non_shared'
8264      ;;
8265
8266    rdos*)
8267      lt_prog_compiler_static='-non_shared'
8268      ;;
8269
8270    solaris*)
8271      lt_prog_compiler_pic='-KPIC'
8272      lt_prog_compiler_static='-Bstatic'
8273      case $cc_basename in
8274      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8275	lt_prog_compiler_wl='-Qoption ld ';;
8276      *)
8277	lt_prog_compiler_wl='-Wl,';;
8278      esac
8279      ;;
8280
8281    sunos4*)
8282      lt_prog_compiler_wl='-Qoption ld '
8283      lt_prog_compiler_pic='-PIC'
8284      lt_prog_compiler_static='-Bstatic'
8285      ;;
8286
8287    sysv4 | sysv4.2uw2* | sysv4.3*)
8288      lt_prog_compiler_wl='-Wl,'
8289      lt_prog_compiler_pic='-KPIC'
8290      lt_prog_compiler_static='-Bstatic'
8291      ;;
8292
8293    sysv4*MP*)
8294      if test -d /usr/nec ;then
8295	lt_prog_compiler_pic='-Kconform_pic'
8296	lt_prog_compiler_static='-Bstatic'
8297      fi
8298      ;;
8299
8300    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8301      lt_prog_compiler_wl='-Wl,'
8302      lt_prog_compiler_pic='-KPIC'
8303      lt_prog_compiler_static='-Bstatic'
8304      ;;
8305
8306    unicos*)
8307      lt_prog_compiler_wl='-Wl,'
8308      lt_prog_compiler_can_build_shared=no
8309      ;;
8310
8311    uts4*)
8312      lt_prog_compiler_pic='-pic'
8313      lt_prog_compiler_static='-Bstatic'
8314      ;;
8315
8316    *)
8317      lt_prog_compiler_can_build_shared=no
8318      ;;
8319    esac
8320  fi
8321
8322case $host_os in
8323  # For platforms which do not support PIC, -DPIC is meaningless:
8324  *djgpp*)
8325    lt_prog_compiler_pic=
8326    ;;
8327  *)
8328    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8329    ;;
8330esac
8331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8332$as_echo "$lt_prog_compiler_pic" >&6; }
8333
8334
8335
8336
8337
8338
8339#
8340# Check to make sure the PIC flag actually works.
8341#
8342if test -n "$lt_prog_compiler_pic"; then
8343  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8344$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8345if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8346  $as_echo_n "(cached) " >&6
8347else
8348  lt_cv_prog_compiler_pic_works=no
8349   ac_outfile=conftest.$ac_objext
8350   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8352   # Insert the option either (1) after the last *FLAGS variable, or
8353   # (2) before a word containing "conftest.", or (3) at the end.
8354   # Note that $ac_compile itself does not contain backslashes and begins
8355   # with a dollar sign (not a hyphen), so the echo should work correctly.
8356   # The option is referenced via a variable to avoid confusing sed.
8357   lt_compile=`echo "$ac_compile" | $SED \
8358   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360   -e 's:$: $lt_compiler_flag:'`
8361   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8362   (eval "$lt_compile" 2>conftest.err)
8363   ac_status=$?
8364   cat conftest.err >&5
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   if (exit $ac_status) && test -s "$ac_outfile"; then
8367     # The compiler can only warn and ignore the option if not recognized
8368     # So say no if there are warnings other than the usual output.
8369     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8370     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8372       lt_cv_prog_compiler_pic_works=yes
8373     fi
8374   fi
8375   $RM conftest*
8376
8377fi
8378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8379$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8380
8381if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8382    case $lt_prog_compiler_pic in
8383     "" | " "*) ;;
8384     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8385     esac
8386else
8387    lt_prog_compiler_pic=
8388     lt_prog_compiler_can_build_shared=no
8389fi
8390
8391fi
8392
8393
8394
8395
8396
8397
8398#
8399# Check to make sure the static flag actually works.
8400#
8401wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8403$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8404if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8405  $as_echo_n "(cached) " >&6
8406else
8407  lt_cv_prog_compiler_static_works=no
8408   save_LDFLAGS="$LDFLAGS"
8409   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8410   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8411   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8412     # The linker can only warn and ignore the option if not recognized
8413     # So say no if there are warnings
8414     if test -s conftest.err; then
8415       # Append any errors to the config.log.
8416       cat conftest.err 1>&5
8417       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8418       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8419       if diff conftest.exp conftest.er2 >/dev/null; then
8420         lt_cv_prog_compiler_static_works=yes
8421       fi
8422     else
8423       lt_cv_prog_compiler_static_works=yes
8424     fi
8425   fi
8426   $RM -r conftest*
8427   LDFLAGS="$save_LDFLAGS"
8428
8429fi
8430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8431$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8432
8433if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8434    :
8435else
8436    lt_prog_compiler_static=
8437fi
8438
8439
8440
8441
8442
8443
8444
8445  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8446$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8447if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8448  $as_echo_n "(cached) " >&6
8449else
8450  lt_cv_prog_compiler_c_o=no
8451   $RM -r conftest 2>/dev/null
8452   mkdir conftest
8453   cd conftest
8454   mkdir out
8455   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8456
8457   lt_compiler_flag="-o out/conftest2.$ac_objext"
8458   # Insert the option either (1) after the last *FLAGS variable, or
8459   # (2) before a word containing "conftest.", or (3) at the end.
8460   # Note that $ac_compile itself does not contain backslashes and begins
8461   # with a dollar sign (not a hyphen), so the echo should work correctly.
8462   lt_compile=`echo "$ac_compile" | $SED \
8463   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8464   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8465   -e 's:$: $lt_compiler_flag:'`
8466   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8467   (eval "$lt_compile" 2>out/conftest.err)
8468   ac_status=$?
8469   cat out/conftest.err >&5
8470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8472   then
8473     # The compiler can only warn and ignore the option if not recognized
8474     # So say no if there are warnings
8475     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8476     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8477     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8478       lt_cv_prog_compiler_c_o=yes
8479     fi
8480   fi
8481   chmod u+w . 2>&5
8482   $RM conftest*
8483   # SGI C++ compiler will create directory out/ii_files/ for
8484   # template instantiation
8485   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8486   $RM out/* && rmdir out
8487   cd ..
8488   $RM -r conftest
8489   $RM conftest*
8490
8491fi
8492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8493$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8494
8495
8496
8497
8498
8499
8500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8501$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8502if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8503  $as_echo_n "(cached) " >&6
8504else
8505  lt_cv_prog_compiler_c_o=no
8506   $RM -r conftest 2>/dev/null
8507   mkdir conftest
8508   cd conftest
8509   mkdir out
8510   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8511
8512   lt_compiler_flag="-o out/conftest2.$ac_objext"
8513   # Insert the option either (1) after the last *FLAGS variable, or
8514   # (2) before a word containing "conftest.", or (3) at the end.
8515   # Note that $ac_compile itself does not contain backslashes and begins
8516   # with a dollar sign (not a hyphen), so the echo should work correctly.
8517   lt_compile=`echo "$ac_compile" | $SED \
8518   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8519   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8520   -e 's:$: $lt_compiler_flag:'`
8521   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8522   (eval "$lt_compile" 2>out/conftest.err)
8523   ac_status=$?
8524   cat out/conftest.err >&5
8525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8527   then
8528     # The compiler can only warn and ignore the option if not recognized
8529     # So say no if there are warnings
8530     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8531     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8532     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8533       lt_cv_prog_compiler_c_o=yes
8534     fi
8535   fi
8536   chmod u+w . 2>&5
8537   $RM conftest*
8538   # SGI C++ compiler will create directory out/ii_files/ for
8539   # template instantiation
8540   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8541   $RM out/* && rmdir out
8542   cd ..
8543   $RM -r conftest
8544   $RM conftest*
8545
8546fi
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8548$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8549
8550
8551
8552
8553hard_links="nottested"
8554if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8555  # do not overwrite the value of need_locks provided by the user
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8557$as_echo_n "checking if we can lock with hard links... " >&6; }
8558  hard_links=yes
8559  $RM conftest*
8560  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8561  touch conftest.a
8562  ln conftest.a conftest.b 2>&5 || hard_links=no
8563  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8565$as_echo "$hard_links" >&6; }
8566  if test "$hard_links" = no; then
8567    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8568$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8569    need_locks=warn
8570  fi
8571else
8572  need_locks=no
8573fi
8574
8575
8576
8577
8578
8579
8580  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8581$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8582
8583  runpath_var=
8584  allow_undefined_flag=
8585  always_export_symbols=no
8586  archive_cmds=
8587  archive_expsym_cmds=
8588  compiler_needs_object=no
8589  enable_shared_with_static_runtimes=no
8590  export_dynamic_flag_spec=
8591  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8592  hardcode_automatic=no
8593  hardcode_direct=no
8594  hardcode_direct_absolute=no
8595  hardcode_libdir_flag_spec=
8596  hardcode_libdir_flag_spec_ld=
8597  hardcode_libdir_separator=
8598  hardcode_minus_L=no
8599  hardcode_shlibpath_var=unsupported
8600  inherit_rpath=no
8601  link_all_deplibs=unknown
8602  module_cmds=
8603  module_expsym_cmds=
8604  old_archive_from_new_cmds=
8605  old_archive_from_expsyms_cmds=
8606  thread_safe_flag_spec=
8607  whole_archive_flag_spec=
8608  # include_expsyms should be a list of space-separated symbols to be *always*
8609  # included in the symbol list
8610  include_expsyms=
8611  # exclude_expsyms can be an extended regexp of symbols to exclude
8612  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8613  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8614  # as well as any symbol that contains `d'.
8615  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8616  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8617  # platforms (ab)use it in PIC code, but their linkers get confused if
8618  # the symbol is explicitly referenced.  Since portable code cannot
8619  # rely on this symbol name, it's probably fine to never include it in
8620  # preloaded symbol tables.
8621  # Exclude shared library initialization/finalization symbols.
8622  extract_expsyms_cmds=
8623
8624  case $host_os in
8625  cygwin* | mingw* | pw32* | cegcc*)
8626    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8627    # When not using gcc, we currently assume that we are using
8628    # Microsoft Visual C++.
8629    if test "$GCC" != yes; then
8630      with_gnu_ld=no
8631    fi
8632    ;;
8633  interix*)
8634    # we just hope/assume this is gcc and not c89 (= MSVC++)
8635    with_gnu_ld=yes
8636    ;;
8637  openbsd*)
8638    with_gnu_ld=no
8639    ;;
8640  esac
8641
8642  ld_shlibs=yes
8643
8644  # On some targets, GNU ld is compatible enough with the native linker
8645  # that we're better off using the native interface for both.
8646  lt_use_gnu_ld_interface=no
8647  if test "$with_gnu_ld" = yes; then
8648    case $host_os in
8649      aix*)
8650	# The AIX port of GNU ld has always aspired to compatibility
8651	# with the native linker.  However, as the warning in the GNU ld
8652	# block says, versions before 2.19.5* couldn't really create working
8653	# shared libraries, regardless of the interface used.
8654	case `$LD -v 2>&1` in
8655	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8656	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8657	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8658	  *)
8659	    lt_use_gnu_ld_interface=yes
8660	    ;;
8661	esac
8662	;;
8663      *)
8664	lt_use_gnu_ld_interface=yes
8665	;;
8666    esac
8667  fi
8668
8669  if test "$lt_use_gnu_ld_interface" = yes; then
8670    # If archive_cmds runs LD, not CC, wlarc should be empty
8671    wlarc='${wl}'
8672
8673    # Set some defaults for GNU ld with shared library support. These
8674    # are reset later if shared libraries are not supported. Putting them
8675    # here allows them to be overridden if necessary.
8676    runpath_var=LD_RUN_PATH
8677    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8678    export_dynamic_flag_spec='${wl}--export-dynamic'
8679    # ancient GNU ld didn't support --whole-archive et. al.
8680    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8681      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8682    else
8683      whole_archive_flag_spec=
8684    fi
8685    supports_anon_versioning=no
8686    case `$LD -v 2>&1` in
8687      *GNU\ gold*) supports_anon_versioning=yes ;;
8688      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8689      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8690      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8691      *\ 2.11.*) ;; # other 2.11 versions
8692      *) supports_anon_versioning=yes ;;
8693    esac
8694
8695    # See if GNU ld supports shared libraries.
8696    case $host_os in
8697    aix[3-9]*)
8698      # On AIX/PPC, the GNU linker is very broken
8699      if test "$host_cpu" != ia64; then
8700	ld_shlibs=no
8701	cat <<_LT_EOF 1>&2
8702
8703*** Warning: the GNU linker, at least up to release 2.19, is reported
8704*** to be unable to reliably create shared libraries on AIX.
8705*** Therefore, libtool is disabling shared libraries support.  If you
8706*** really care for shared libraries, you may want to install binutils
8707*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8708*** You will then need to restart the configuration process.
8709
8710_LT_EOF
8711      fi
8712      ;;
8713
8714    amigaos*)
8715      case $host_cpu in
8716      powerpc)
8717            # see comment about AmigaOS4 .so support
8718            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719            archive_expsym_cmds=''
8720        ;;
8721      m68k)
8722            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)'
8723            hardcode_libdir_flag_spec='-L$libdir'
8724            hardcode_minus_L=yes
8725        ;;
8726      esac
8727      ;;
8728
8729    beos*)
8730      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8731	allow_undefined_flag=unsupported
8732	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8733	# support --undefined.  This deserves some investigation.  FIXME
8734	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8735      else
8736	ld_shlibs=no
8737      fi
8738      ;;
8739
8740    cygwin* | mingw* | pw32* | cegcc*)
8741      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8742      # as there is no search path for DLLs.
8743      hardcode_libdir_flag_spec='-L$libdir'
8744      export_dynamic_flag_spec='${wl}--export-all-symbols'
8745      allow_undefined_flag=unsupported
8746      always_export_symbols=no
8747      enable_shared_with_static_runtimes=yes
8748      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8749
8750      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8751        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8752	# If the export-symbols file already is a .def file (1st line
8753	# is EXPORTS), use it as is; otherwise, prepend...
8754	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8755	  cp $export_symbols $output_objdir/$soname.def;
8756	else
8757	  echo EXPORTS > $output_objdir/$soname.def;
8758	  cat $export_symbols >> $output_objdir/$soname.def;
8759	fi~
8760	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8761      else
8762	ld_shlibs=no
8763      fi
8764      ;;
8765
8766    haiku*)
8767      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8768      link_all_deplibs=yes
8769      ;;
8770
8771    interix[3-9]*)
8772      hardcode_direct=no
8773      hardcode_shlibpath_var=no
8774      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8775      export_dynamic_flag_spec='${wl}-E'
8776      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8777      # Instead, shared libraries are loaded at an image base (0x10000000 by
8778      # default) and relocated if they conflict, which is a slow very memory
8779      # consuming and fragmenting process.  To avoid this, we pick a random,
8780      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8781      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8782      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8783      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'
8784      ;;
8785
8786    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8787      tmp_diet=no
8788      if test "$host_os" = linux-dietlibc; then
8789	case $cc_basename in
8790	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8791	esac
8792      fi
8793      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8794	 && test "$tmp_diet" = no
8795      then
8796	tmp_addflag=
8797	tmp_sharedflag='-shared'
8798	case $cc_basename,$host_cpu in
8799        pgcc*)				# Portland Group C compiler
8800	  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'
8801	  tmp_addflag=' $pic_flag'
8802	  ;;
8803	pgf77* | pgf90* | pgf95* | pgfortran*)
8804					# Portland Group f77 and f90 compilers
8805	  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'
8806	  tmp_addflag=' $pic_flag -Mnomain' ;;
8807	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8808	  tmp_addflag=' -i_dynamic' ;;
8809	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8810	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8811	ifc* | ifort*)			# Intel Fortran compiler
8812	  tmp_addflag=' -nofor_main' ;;
8813	lf95*)				# Lahey Fortran 8.1
8814	  whole_archive_flag_spec=
8815	  tmp_sharedflag='--shared' ;;
8816	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8817	  tmp_sharedflag='-qmkshrobj'
8818	  tmp_addflag= ;;
8819	nvcc*)	# Cuda Compiler Driver 2.2
8820	  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'
8821	  compiler_needs_object=yes
8822	  ;;
8823	esac
8824	case `$CC -V 2>&1 | sed 5q` in
8825	*Sun\ C*)			# Sun C 5.9
8826	  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'
8827	  compiler_needs_object=yes
8828	  tmp_sharedflag='-G' ;;
8829	*Sun\ F*)			# Sun Fortran 8.3
8830	  tmp_sharedflag='-G' ;;
8831	esac
8832	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8833
8834        if test "x$supports_anon_versioning" = xyes; then
8835          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8836	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8837	    echo "local: *; };" >> $output_objdir/$libname.ver~
8838	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8839        fi
8840
8841	case $cc_basename in
8842	xlf* | bgf* | bgxlf* | mpixlf*)
8843	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8844	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8845	  hardcode_libdir_flag_spec=
8846	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8847	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8848	  if test "x$supports_anon_versioning" = xyes; then
8849	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8850	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8851	      echo "local: *; };" >> $output_objdir/$libname.ver~
8852	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8853	  fi
8854	  ;;
8855	esac
8856      else
8857        ld_shlibs=no
8858      fi
8859      ;;
8860
8861    netbsd*)
8862      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8863	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8864	wlarc=
8865      else
8866	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8867	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8868      fi
8869      ;;
8870
8871    solaris*)
8872      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8873	ld_shlibs=no
8874	cat <<_LT_EOF 1>&2
8875
8876*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8877*** create shared libraries on Solaris systems.  Therefore, libtool
8878*** is disabling shared libraries support.  We urge you to upgrade GNU
8879*** binutils to release 2.9.1 or newer.  Another option is to modify
8880*** your PATH or compiler configuration so that the native linker is
8881*** used, and then restart.
8882
8883_LT_EOF
8884      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8885	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8886	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8887      else
8888	ld_shlibs=no
8889      fi
8890      ;;
8891
8892    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8893      case `$LD -v 2>&1` in
8894        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8895	ld_shlibs=no
8896	cat <<_LT_EOF 1>&2
8897
8898*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8899*** reliably create shared libraries on SCO systems.  Therefore, libtool
8900*** is disabling shared libraries support.  We urge you to upgrade GNU
8901*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8902*** your PATH or compiler configuration so that the native linker is
8903*** used, and then restart.
8904
8905_LT_EOF
8906	;;
8907	*)
8908	  # For security reasons, it is highly recommended that you always
8909	  # use absolute paths for naming shared libraries, and exclude the
8910	  # DT_RUNPATH tag from executables and libraries.  But doing so
8911	  # requires that you compile everything twice, which is a pain.
8912	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8913	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8914	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8915	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8916	  else
8917	    ld_shlibs=no
8918	  fi
8919	;;
8920      esac
8921      ;;
8922
8923    sunos4*)
8924      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8925      wlarc=
8926      hardcode_direct=yes
8927      hardcode_shlibpath_var=no
8928      ;;
8929
8930    *)
8931      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8932	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8933	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8934      else
8935	ld_shlibs=no
8936      fi
8937      ;;
8938    esac
8939
8940    if test "$ld_shlibs" = no; then
8941      runpath_var=
8942      hardcode_libdir_flag_spec=
8943      export_dynamic_flag_spec=
8944      whole_archive_flag_spec=
8945    fi
8946  else
8947    # PORTME fill in a description of your system's linker (not GNU ld)
8948    case $host_os in
8949    aix3*)
8950      allow_undefined_flag=unsupported
8951      always_export_symbols=yes
8952      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'
8953      # Note: this linker hardcodes the directories in LIBPATH if there
8954      # are no directories specified by -L.
8955      hardcode_minus_L=yes
8956      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8957	# Neither direct hardcoding nor static linking is supported with a
8958	# broken collect2.
8959	hardcode_direct=unsupported
8960      fi
8961      ;;
8962
8963    aix[4-9]*)
8964      if test "$host_cpu" = ia64; then
8965	# On IA64, the linker does run time linking by default, so we don't
8966	# have to do anything special.
8967	aix_use_runtimelinking=no
8968	exp_sym_flag='-Bexport'
8969	no_entry_flag=""
8970      else
8971	# If we're using GNU nm, then we don't want the "-C" option.
8972	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8973	# Also, AIX nm treats weak defined symbols like other global
8974	# defined symbols, whereas GNU nm marks them as "W".
8975	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8976	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8977	else
8978	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8979	fi
8980	aix_use_runtimelinking=no
8981
8982	# Test if we are trying to use run time linking or normal
8983	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8984	# need to do runtime linking.
8985	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8986	  for ld_flag in $LDFLAGS; do
8987	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8988	    aix_use_runtimelinking=yes
8989	    break
8990	  fi
8991	  done
8992	  ;;
8993	esac
8994
8995	exp_sym_flag='-bexport'
8996	no_entry_flag='-bnoentry'
8997      fi
8998
8999      # When large executables or shared objects are built, AIX ld can
9000      # have problems creating the table of contents.  If linking a library
9001      # or program results in "error TOC overflow" add -mminimal-toc to
9002      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9003      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9004
9005      archive_cmds=''
9006      hardcode_direct=yes
9007      hardcode_direct_absolute=yes
9008      hardcode_libdir_separator=':'
9009      link_all_deplibs=yes
9010      file_list_spec='${wl}-f,'
9011
9012      if test "$GCC" = yes; then
9013	case $host_os in aix4.[012]|aix4.[012].*)
9014	# We only want to do this on AIX 4.2 and lower, the check
9015	# below for broken collect2 doesn't work under 4.3+
9016	  collect2name=`${CC} -print-prog-name=collect2`
9017	  if test -f "$collect2name" &&
9018	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9019	  then
9020	  # We have reworked collect2
9021	  :
9022	  else
9023	  # We have old collect2
9024	  hardcode_direct=unsupported
9025	  # It fails to find uninstalled libraries when the uninstalled
9026	  # path is not listed in the libpath.  Setting hardcode_minus_L
9027	  # to unsupported forces relinking
9028	  hardcode_minus_L=yes
9029	  hardcode_libdir_flag_spec='-L$libdir'
9030	  hardcode_libdir_separator=
9031	  fi
9032	  ;;
9033	esac
9034	shared_flag='-shared'
9035	if test "$aix_use_runtimelinking" = yes; then
9036	  shared_flag="$shared_flag "'${wl}-G'
9037	fi
9038      else
9039	# not using gcc
9040	if test "$host_cpu" = ia64; then
9041	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9042	# chokes on -Wl,-G. The following line is correct:
9043	  shared_flag='-G'
9044	else
9045	  if test "$aix_use_runtimelinking" = yes; then
9046	    shared_flag='${wl}-G'
9047	  else
9048	    shared_flag='${wl}-bM:SRE'
9049	  fi
9050	fi
9051      fi
9052
9053      export_dynamic_flag_spec='${wl}-bexpall'
9054      # It seems that -bexpall does not export symbols beginning with
9055      # underscore (_), so it is better to generate a list of symbols to export.
9056      always_export_symbols=yes
9057      if test "$aix_use_runtimelinking" = yes; then
9058	# Warning - without using the other runtime loading flags (-brtl),
9059	# -berok will link without error, but may produce a broken library.
9060	allow_undefined_flag='-berok'
9061        # Determine the default libpath from the value encoded in an
9062        # empty executable.
9063        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064/* end confdefs.h.  */
9065
9066int
9067main ()
9068{
9069
9070  ;
9071  return 0;
9072}
9073_ACEOF
9074if ac_fn_c_try_link "$LINENO"; then :
9075
9076lt_aix_libpath_sed='
9077    /Import File Strings/,/^$/ {
9078	/^0/ {
9079	    s/^0  *\(.*\)$/\1/
9080	    p
9081	}
9082    }'
9083aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9084# Check for a 64-bit object if we didn't find anything.
9085if test -z "$aix_libpath"; then
9086  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9087fi
9088fi
9089rm -f core conftest.err conftest.$ac_objext \
9090    conftest$ac_exeext conftest.$ac_ext
9091if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9092
9093        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9094        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9095      else
9096	if test "$host_cpu" = ia64; then
9097	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9098	  allow_undefined_flag="-z nodefs"
9099	  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"
9100	else
9101	 # Determine the default libpath from the value encoded in an
9102	 # empty executable.
9103	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h.  */
9105
9106int
9107main ()
9108{
9109
9110  ;
9111  return 0;
9112}
9113_ACEOF
9114if ac_fn_c_try_link "$LINENO"; then :
9115
9116lt_aix_libpath_sed='
9117    /Import File Strings/,/^$/ {
9118	/^0/ {
9119	    s/^0  *\(.*\)$/\1/
9120	    p
9121	}
9122    }'
9123aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9124# Check for a 64-bit object if we didn't find anything.
9125if test -z "$aix_libpath"; then
9126  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9127fi
9128fi
9129rm -f core conftest.err conftest.$ac_objext \
9130    conftest$ac_exeext conftest.$ac_ext
9131if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9132
9133	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9134	  # Warning - without using the other run time loading flags,
9135	  # -berok will link without error, but may produce a broken library.
9136	  no_undefined_flag=' ${wl}-bernotok'
9137	  allow_undefined_flag=' ${wl}-berok'
9138	  if test "$with_gnu_ld" = yes; then
9139	    # We only use this code for GNU lds that support --whole-archive.
9140	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9141	  else
9142	    # Exported symbols can be pulled into shared objects from archives
9143	    whole_archive_flag_spec='$convenience'
9144	  fi
9145	  archive_cmds_need_lc=yes
9146	  # This is similar to how AIX traditionally builds its shared libraries.
9147	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9148	fi
9149      fi
9150      ;;
9151
9152    amigaos*)
9153      case $host_cpu in
9154      powerpc)
9155            # see comment about AmigaOS4 .so support
9156            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157            archive_expsym_cmds=''
9158        ;;
9159      m68k)
9160            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)'
9161            hardcode_libdir_flag_spec='-L$libdir'
9162            hardcode_minus_L=yes
9163        ;;
9164      esac
9165      ;;
9166
9167    bsdi[45]*)
9168      export_dynamic_flag_spec=-rdynamic
9169      ;;
9170
9171    cygwin* | mingw* | pw32* | cegcc*)
9172      # When not using gcc, we currently assume that we are using
9173      # Microsoft Visual C++.
9174      # hardcode_libdir_flag_spec is actually meaningless, as there is
9175      # no search path for DLLs.
9176      hardcode_libdir_flag_spec=' '
9177      allow_undefined_flag=unsupported
9178      # Tell ltmain to make .lib files, not .a files.
9179      libext=lib
9180      # Tell ltmain to make .dll files, not .so files.
9181      shrext_cmds=".dll"
9182      # FIXME: Setting linknames here is a bad hack.
9183      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9184      # The linker will automatically build a .lib file if we build a DLL.
9185      old_archive_from_new_cmds='true'
9186      # FIXME: Should let the user specify the lib program.
9187      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9188      fix_srcfile_path='`cygpath -w "$srcfile"`'
9189      enable_shared_with_static_runtimes=yes
9190      ;;
9191
9192    darwin* | rhapsody*)
9193
9194
9195  archive_cmds_need_lc=no
9196  hardcode_direct=no
9197  hardcode_automatic=yes
9198  hardcode_shlibpath_var=unsupported
9199  if test "$lt_cv_ld_force_load" = "yes"; then
9200    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\"`'
9201  else
9202    whole_archive_flag_spec=''
9203  fi
9204  link_all_deplibs=yes
9205  allow_undefined_flag="$_lt_dar_allow_undefined"
9206  case $cc_basename in
9207     ifort*) _lt_dar_can_shared=yes ;;
9208     *) _lt_dar_can_shared=$GCC ;;
9209  esac
9210  if test "$_lt_dar_can_shared" = "yes"; then
9211    output_verbose_link_cmd=func_echo_all
9212    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9213    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9214    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}"
9215    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}"
9216
9217  else
9218  ld_shlibs=no
9219  fi
9220
9221      ;;
9222
9223    dgux*)
9224      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225      hardcode_libdir_flag_spec='-L$libdir'
9226      hardcode_shlibpath_var=no
9227      ;;
9228
9229    freebsd1*)
9230      ld_shlibs=no
9231      ;;
9232
9233    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9234    # support.  Future versions do this automatically, but an explicit c++rt0.o
9235    # does not break anything, and helps significantly (at the cost of a little
9236    # extra space).
9237    freebsd2.2*)
9238      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9239      hardcode_libdir_flag_spec='-R$libdir'
9240      hardcode_direct=yes
9241      hardcode_shlibpath_var=no
9242      ;;
9243
9244    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9245    freebsd2*)
9246      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9247      hardcode_direct=yes
9248      hardcode_minus_L=yes
9249      hardcode_shlibpath_var=no
9250      ;;
9251
9252    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9253    freebsd* | dragonfly*)
9254      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9255      hardcode_libdir_flag_spec='-R$libdir'
9256      hardcode_direct=yes
9257      hardcode_shlibpath_var=no
9258      ;;
9259
9260    hpux9*)
9261      if test "$GCC" = yes; then
9262	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9263      else
9264	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9265      fi
9266      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9267      hardcode_libdir_separator=:
9268      hardcode_direct=yes
9269
9270      # hardcode_minus_L: Not really in the search PATH,
9271      # but as the default location of the library.
9272      hardcode_minus_L=yes
9273      export_dynamic_flag_spec='${wl}-E'
9274      ;;
9275
9276    hpux10*)
9277      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9278	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9279      else
9280	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9281      fi
9282      if test "$with_gnu_ld" = no; then
9283	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9284	hardcode_libdir_flag_spec_ld='+b $libdir'
9285	hardcode_libdir_separator=:
9286	hardcode_direct=yes
9287	hardcode_direct_absolute=yes
9288	export_dynamic_flag_spec='${wl}-E'
9289	# hardcode_minus_L: Not really in the search PATH,
9290	# but as the default location of the library.
9291	hardcode_minus_L=yes
9292      fi
9293      ;;
9294
9295    hpux11*)
9296      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9297	case $host_cpu in
9298	hppa*64*)
9299	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9300	  ;;
9301	ia64*)
9302	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9303	  ;;
9304	*)
9305	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9306	  ;;
9307	esac
9308      else
9309	case $host_cpu in
9310	hppa*64*)
9311	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9312	  ;;
9313	ia64*)
9314	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9315	  ;;
9316	*)
9317
9318	  # Older versions of the 11.00 compiler do not understand -b yet
9319	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9320	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9321$as_echo_n "checking if $CC understands -b... " >&6; }
9322if test "${lt_cv_prog_compiler__b+set}" = set; then :
9323  $as_echo_n "(cached) " >&6
9324else
9325  lt_cv_prog_compiler__b=no
9326   save_LDFLAGS="$LDFLAGS"
9327   LDFLAGS="$LDFLAGS -b"
9328   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9329   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9330     # The linker can only warn and ignore the option if not recognized
9331     # So say no if there are warnings
9332     if test -s conftest.err; then
9333       # Append any errors to the config.log.
9334       cat conftest.err 1>&5
9335       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9336       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9337       if diff conftest.exp conftest.er2 >/dev/null; then
9338         lt_cv_prog_compiler__b=yes
9339       fi
9340     else
9341       lt_cv_prog_compiler__b=yes
9342     fi
9343   fi
9344   $RM -r conftest*
9345   LDFLAGS="$save_LDFLAGS"
9346
9347fi
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9349$as_echo "$lt_cv_prog_compiler__b" >&6; }
9350
9351if test x"$lt_cv_prog_compiler__b" = xyes; then
9352    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9353else
9354    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9355fi
9356
9357	  ;;
9358	esac
9359      fi
9360      if test "$with_gnu_ld" = no; then
9361	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9362	hardcode_libdir_separator=:
9363
9364	case $host_cpu in
9365	hppa*64*|ia64*)
9366	  hardcode_direct=no
9367	  hardcode_shlibpath_var=no
9368	  ;;
9369	*)
9370	  hardcode_direct=yes
9371	  hardcode_direct_absolute=yes
9372	  export_dynamic_flag_spec='${wl}-E'
9373
9374	  # hardcode_minus_L: Not really in the search PATH,
9375	  # but as the default location of the library.
9376	  hardcode_minus_L=yes
9377	  ;;
9378	esac
9379      fi
9380      ;;
9381
9382    irix5* | irix6* | nonstopux*)
9383      if test "$GCC" = yes; then
9384	archive_cmds='$CC -shared $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'
9385	# Try to use the -exported_symbol ld option, if it does not
9386	# work, assume that -exports_file does not work either and
9387	# implicitly export all symbols.
9388        save_LDFLAGS="$LDFLAGS"
9389        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9390        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9391/* end confdefs.h.  */
9392int foo(void) {}
9393_ACEOF
9394if ac_fn_c_try_link "$LINENO"; then :
9395  archive_expsym_cmds='$CC -shared $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'
9396
9397fi
9398rm -f core conftest.err conftest.$ac_objext \
9399    conftest$ac_exeext conftest.$ac_ext
9400        LDFLAGS="$save_LDFLAGS"
9401      else
9402	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'
9403	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'
9404      fi
9405      archive_cmds_need_lc='no'
9406      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9407      hardcode_libdir_separator=:
9408      inherit_rpath=yes
9409      link_all_deplibs=yes
9410      ;;
9411
9412    netbsd*)
9413      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9414	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9415      else
9416	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9417      fi
9418      hardcode_libdir_flag_spec='-R$libdir'
9419      hardcode_direct=yes
9420      hardcode_shlibpath_var=no
9421      ;;
9422
9423    newsos6)
9424      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9425      hardcode_direct=yes
9426      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427      hardcode_libdir_separator=:
9428      hardcode_shlibpath_var=no
9429      ;;
9430
9431    *nto* | *qnx*)
9432      ;;
9433
9434    openbsd*)
9435      if test -f /usr/libexec/ld.so; then
9436	hardcode_direct=yes
9437	hardcode_shlibpath_var=no
9438	hardcode_direct_absolute=yes
9439	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9440	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9441	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9442	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9443	  export_dynamic_flag_spec='${wl}-E'
9444	else
9445	  case $host_os in
9446	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9447	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9448	     hardcode_libdir_flag_spec='-R$libdir'
9449	     ;;
9450	   *)
9451	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9452	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9453	     ;;
9454	  esac
9455	fi
9456      else
9457	ld_shlibs=no
9458      fi
9459      ;;
9460
9461    os2*)
9462      hardcode_libdir_flag_spec='-L$libdir'
9463      hardcode_minus_L=yes
9464      allow_undefined_flag=unsupported
9465      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9466      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9467      ;;
9468
9469    osf3*)
9470      if test "$GCC" = yes; then
9471	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9472	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'
9473      else
9474	allow_undefined_flag=' -expect_unresolved \*'
9475	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'
9476      fi
9477      archive_cmds_need_lc='no'
9478      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9479      hardcode_libdir_separator=:
9480      ;;
9481
9482    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9483      if test "$GCC" = yes; then
9484	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9485	archive_cmds='$CC -shared${allow_undefined_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'
9486	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487      else
9488	allow_undefined_flag=' -expect_unresolved \*'
9489	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'
9490	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~
9491	$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'
9492
9493	# Both c and cxx compiler support -rpath directly
9494	hardcode_libdir_flag_spec='-rpath $libdir'
9495      fi
9496      archive_cmds_need_lc='no'
9497      hardcode_libdir_separator=:
9498      ;;
9499
9500    solaris*)
9501      no_undefined_flag=' -z defs'
9502      if test "$GCC" = yes; then
9503	wlarc='${wl}'
9504	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9505	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9506	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9507      else
9508	case `$CC -V 2>&1` in
9509	*"Compilers 5.0"*)
9510	  wlarc=''
9511	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9512	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9513	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9514	  ;;
9515	*)
9516	  wlarc='${wl}'
9517	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9518	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9519	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9520	  ;;
9521	esac
9522      fi
9523      hardcode_libdir_flag_spec='-R$libdir'
9524      hardcode_shlibpath_var=no
9525      case $host_os in
9526      solaris2.[0-5] | solaris2.[0-5].*) ;;
9527      *)
9528	# The compiler driver will combine and reorder linker options,
9529	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9530	# but is careful enough not to reorder.
9531	# Supported since Solaris 2.6 (maybe 2.5.1?)
9532	if test "$GCC" = yes; then
9533	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9534	else
9535	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9536	fi
9537	;;
9538      esac
9539      link_all_deplibs=yes
9540      ;;
9541
9542    sunos4*)
9543      if test "x$host_vendor" = xsequent; then
9544	# Use $CC to link under sequent, because it throws in some extra .o
9545	# files that make .init and .fini sections work.
9546	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9547      else
9548	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9549      fi
9550      hardcode_libdir_flag_spec='-L$libdir'
9551      hardcode_direct=yes
9552      hardcode_minus_L=yes
9553      hardcode_shlibpath_var=no
9554      ;;
9555
9556    sysv4)
9557      case $host_vendor in
9558	sni)
9559	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9560	  hardcode_direct=yes # is this really true???
9561	;;
9562	siemens)
9563	  ## LD is ld it makes a PLAMLIB
9564	  ## CC just makes a GrossModule.
9565	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9566	  reload_cmds='$CC -r -o $output$reload_objs'
9567	  hardcode_direct=no
9568        ;;
9569	motorola)
9570	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9571	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9572	;;
9573      esac
9574      runpath_var='LD_RUN_PATH'
9575      hardcode_shlibpath_var=no
9576      ;;
9577
9578    sysv4.3*)
9579      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9580      hardcode_shlibpath_var=no
9581      export_dynamic_flag_spec='-Bexport'
9582      ;;
9583
9584    sysv4*MP*)
9585      if test -d /usr/nec; then
9586	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9587	hardcode_shlibpath_var=no
9588	runpath_var=LD_RUN_PATH
9589	hardcode_runpath_var=yes
9590	ld_shlibs=yes
9591      fi
9592      ;;
9593
9594    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9595      no_undefined_flag='${wl}-z,text'
9596      archive_cmds_need_lc=no
9597      hardcode_shlibpath_var=no
9598      runpath_var='LD_RUN_PATH'
9599
9600      if test "$GCC" = yes; then
9601	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9602	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9603      else
9604	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9605	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9606      fi
9607      ;;
9608
9609    sysv5* | sco3.2v5* | sco5v6*)
9610      # Note: We can NOT use -z defs as we might desire, because we do not
9611      # link with -lc, and that would cause any symbols used from libc to
9612      # always be unresolved, which means just about no library would
9613      # ever link correctly.  If we're not using GNU ld we use -z text
9614      # though, which does catch some bad symbols but isn't as heavy-handed
9615      # as -z defs.
9616      no_undefined_flag='${wl}-z,text'
9617      allow_undefined_flag='${wl}-z,nodefs'
9618      archive_cmds_need_lc=no
9619      hardcode_shlibpath_var=no
9620      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9621      hardcode_libdir_separator=':'
9622      link_all_deplibs=yes
9623      export_dynamic_flag_spec='${wl}-Bexport'
9624      runpath_var='LD_RUN_PATH'
9625
9626      if test "$GCC" = yes; then
9627	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9628	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9629      else
9630	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9631	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9632      fi
9633      ;;
9634
9635    uts4*)
9636      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637      hardcode_libdir_flag_spec='-L$libdir'
9638      hardcode_shlibpath_var=no
9639      ;;
9640
9641    *)
9642      ld_shlibs=no
9643      ;;
9644    esac
9645
9646    if test x$host_vendor = xsni; then
9647      case $host in
9648      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9649	export_dynamic_flag_spec='${wl}-Blargedynsym'
9650	;;
9651      esac
9652    fi
9653  fi
9654
9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9656$as_echo "$ld_shlibs" >&6; }
9657test "$ld_shlibs" = no && can_build_shared=no
9658
9659with_gnu_ld=$with_gnu_ld
9660
9661
9662
9663
9664
9665
9666
9667
9668
9669
9670
9671
9672
9673
9674
9675#
9676# Do we need to explicitly link libc?
9677#
9678case "x$archive_cmds_need_lc" in
9679x|xyes)
9680  # Assume -lc should be added
9681  archive_cmds_need_lc=yes
9682
9683  if test "$enable_shared" = yes && test "$GCC" = yes; then
9684    case $archive_cmds in
9685    *'~'*)
9686      # FIXME: we may have to deal with multi-command sequences.
9687      ;;
9688    '$CC '*)
9689      # Test whether the compiler implicitly links with -lc since on some
9690      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9691      # to ld, don't add -lc before -lgcc.
9692      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9693$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9694if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9695  $as_echo_n "(cached) " >&6
9696else
9697  $RM conftest*
9698	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9699
9700	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9701  (eval $ac_compile) 2>&5
9702  ac_status=$?
9703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9704  test $ac_status = 0; } 2>conftest.err; then
9705	  soname=conftest
9706	  lib=conftest
9707	  libobjs=conftest.$ac_objext
9708	  deplibs=
9709	  wl=$lt_prog_compiler_wl
9710	  pic_flag=$lt_prog_compiler_pic
9711	  compiler_flags=-v
9712	  linker_flags=-v
9713	  verstring=
9714	  output_objdir=.
9715	  libname=conftest
9716	  lt_save_allow_undefined_flag=$allow_undefined_flag
9717	  allow_undefined_flag=
9718	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9719  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9720  ac_status=$?
9721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9722  test $ac_status = 0; }
9723	  then
9724	    lt_cv_archive_cmds_need_lc=no
9725	  else
9726	    lt_cv_archive_cmds_need_lc=yes
9727	  fi
9728	  allow_undefined_flag=$lt_save_allow_undefined_flag
9729	else
9730	  cat conftest.err 1>&5
9731	fi
9732	$RM conftest*
9733
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9736$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9737      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9738      ;;
9739    esac
9740  fi
9741  ;;
9742esac
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899
9900  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9901$as_echo_n "checking dynamic linker characteristics... " >&6; }
9902
9903if test "$GCC" = yes; then
9904  case $host_os in
9905    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9906    *) lt_awk_arg="/^libraries:/" ;;
9907  esac
9908  case $host_os in
9909    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9910    *) lt_sed_strip_eq="s,=/,/,g" ;;
9911  esac
9912  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9913  case $lt_search_path_spec in
9914  *\;*)
9915    # if the path contains ";" then we assume it to be the separator
9916    # otherwise default to the standard path separator (i.e. ":") - it is
9917    # assumed that no part of a normal pathname contains ";" but that should
9918    # okay in the real world where ";" in dirpaths is itself problematic.
9919    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9920    ;;
9921  *)
9922    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9923    ;;
9924  esac
9925  # Ok, now we have the path, separated by spaces, we can step through it
9926  # and add multilib dir if necessary.
9927  lt_tmp_lt_search_path_spec=
9928  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9929  for lt_sys_path in $lt_search_path_spec; do
9930    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9931      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9932    else
9933      test -d "$lt_sys_path" && \
9934	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9935    fi
9936  done
9937  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9938BEGIN {RS=" "; FS="/|\n";} {
9939  lt_foo="";
9940  lt_count=0;
9941  for (lt_i = NF; lt_i > 0; lt_i--) {
9942    if ($lt_i != "" && $lt_i != ".") {
9943      if ($lt_i == "..") {
9944        lt_count++;
9945      } else {
9946        if (lt_count == 0) {
9947          lt_foo="/" $lt_i lt_foo;
9948        } else {
9949          lt_count--;
9950        }
9951      }
9952    }
9953  }
9954  if (lt_foo != "") { lt_freq[lt_foo]++; }
9955  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9956}'`
9957  # AWK program above erroneously prepends '/' to C:/dos/paths
9958  # for these hosts.
9959  case $host_os in
9960    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9961      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9962  esac
9963  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9964else
9965  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9966fi
9967library_names_spec=
9968libname_spec='lib$name'
9969soname_spec=
9970shrext_cmds=".so"
9971postinstall_cmds=
9972postuninstall_cmds=
9973finish_cmds=
9974finish_eval=
9975shlibpath_var=
9976shlibpath_overrides_runpath=unknown
9977version_type=none
9978dynamic_linker="$host_os ld.so"
9979sys_lib_dlsearch_path_spec="/lib /usr/lib"
9980need_lib_prefix=unknown
9981hardcode_into_libs=no
9982
9983# when you set need_version to no, make sure it does not cause -set_version
9984# flags to be left without arguments
9985need_version=unknown
9986
9987case $host_os in
9988aix3*)
9989  version_type=linux
9990  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9991  shlibpath_var=LIBPATH
9992
9993  # AIX 3 has no versioning support, so we append a major version to the name.
9994  soname_spec='${libname}${release}${shared_ext}$major'
9995  ;;
9996
9997aix[4-9]*)
9998  version_type=linux
9999  need_lib_prefix=no
10000  need_version=no
10001  hardcode_into_libs=yes
10002  if test "$host_cpu" = ia64; then
10003    # AIX 5 supports IA64
10004    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10005    shlibpath_var=LD_LIBRARY_PATH
10006  else
10007    # With GCC up to 2.95.x, collect2 would create an import file
10008    # for dependence libraries.  The import file would start with
10009    # the line `#! .'.  This would cause the generated library to
10010    # depend on `.', always an invalid library.  This was fixed in
10011    # development snapshots of GCC prior to 3.0.
10012    case $host_os in
10013      aix4 | aix4.[01] | aix4.[01].*)
10014      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10015	   echo ' yes '
10016	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10017	:
10018      else
10019	can_build_shared=no
10020      fi
10021      ;;
10022    esac
10023    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10024    # soname into executable. Probably we can add versioning support to
10025    # collect2, so additional links can be useful in future.
10026    if test "$aix_use_runtimelinking" = yes; then
10027      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10028      # instead of lib<name>.a to let people know that these are not
10029      # typical AIX shared libraries.
10030      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031    else
10032      # We preserve .a as extension for shared libraries through AIX4.2
10033      # and later when we are not doing run time linking.
10034      library_names_spec='${libname}${release}.a $libname.a'
10035      soname_spec='${libname}${release}${shared_ext}$major'
10036    fi
10037    shlibpath_var=LIBPATH
10038  fi
10039  ;;
10040
10041amigaos*)
10042  case $host_cpu in
10043  powerpc)
10044    # Since July 2007 AmigaOS4 officially supports .so libraries.
10045    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10046    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047    ;;
10048  m68k)
10049    library_names_spec='$libname.ixlibrary $libname.a'
10050    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10051    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10052    ;;
10053  esac
10054  ;;
10055
10056beos*)
10057  library_names_spec='${libname}${shared_ext}'
10058  dynamic_linker="$host_os ld.so"
10059  shlibpath_var=LIBRARY_PATH
10060  ;;
10061
10062bsdi[45]*)
10063  version_type=linux
10064  need_version=no
10065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066  soname_spec='${libname}${release}${shared_ext}$major'
10067  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10068  shlibpath_var=LD_LIBRARY_PATH
10069  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10070  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10071  # the default ld.so.conf also contains /usr/contrib/lib and
10072  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10073  # libtool to hard-code these into programs
10074  ;;
10075
10076cygwin* | mingw* | pw32* | cegcc*)
10077  version_type=windows
10078  shrext_cmds=".dll"
10079  need_version=no
10080  need_lib_prefix=no
10081
10082  case $GCC,$host_os in
10083  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10084    library_names_spec='$libname.dll.a'
10085    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10086    postinstall_cmds='base_file=`basename \${file}`~
10087      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10088      dldir=$destdir/`dirname \$dlpath`~
10089      test -d \$dldir || mkdir -p \$dldir~
10090      $install_prog $dir/$dlname \$dldir/$dlname~
10091      chmod a+x \$dldir/$dlname~
10092      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10093        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10094      fi'
10095    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10096      dlpath=$dir/\$dldll~
10097       $RM \$dlpath'
10098    shlibpath_overrides_runpath=yes
10099
10100    case $host_os in
10101    cygwin*)
10102      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10103      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10104
10105      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10106      ;;
10107    mingw* | cegcc*)
10108      # MinGW DLLs use traditional 'lib' prefix
10109      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10110      ;;
10111    pw32*)
10112      # pw32 DLLs use 'pw' prefix rather than 'lib'
10113      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10114      ;;
10115    esac
10116    ;;
10117
10118  *)
10119    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10120    ;;
10121  esac
10122  dynamic_linker='Win32 ld.exe'
10123  # FIXME: first we should search . and the directory the executable is in
10124  shlibpath_var=PATH
10125  ;;
10126
10127darwin* | rhapsody*)
10128  dynamic_linker="$host_os dyld"
10129  version_type=darwin
10130  need_lib_prefix=no
10131  need_version=no
10132  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10133  soname_spec='${libname}${release}${major}$shared_ext'
10134  shlibpath_overrides_runpath=yes
10135  shlibpath_var=DYLD_LIBRARY_PATH
10136  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10137
10138  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10139  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10140  ;;
10141
10142dgux*)
10143  version_type=linux
10144  need_lib_prefix=no
10145  need_version=no
10146  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10147  soname_spec='${libname}${release}${shared_ext}$major'
10148  shlibpath_var=LD_LIBRARY_PATH
10149  ;;
10150
10151freebsd1*)
10152  dynamic_linker=no
10153  ;;
10154
10155freebsd* | dragonfly*)
10156  # DragonFly does not have aout.  When/if they implement a new
10157  # versioning mechanism, adjust this.
10158  if test -x /usr/bin/objformat; then
10159    objformat=`/usr/bin/objformat`
10160  else
10161    case $host_os in
10162    freebsd[123]*) objformat=aout ;;
10163    *) objformat=elf ;;
10164    esac
10165  fi
10166  version_type=freebsd-$objformat
10167  case $version_type in
10168    freebsd-elf*)
10169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10170      need_version=no
10171      need_lib_prefix=no
10172      ;;
10173    freebsd-*)
10174      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10175      need_version=yes
10176      ;;
10177  esac
10178  shlibpath_var=LD_LIBRARY_PATH
10179  case $host_os in
10180  freebsd2*)
10181    shlibpath_overrides_runpath=yes
10182    ;;
10183  freebsd3.[01]* | freebsdelf3.[01]*)
10184    shlibpath_overrides_runpath=yes
10185    hardcode_into_libs=yes
10186    ;;
10187  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10188  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10189    shlibpath_overrides_runpath=no
10190    hardcode_into_libs=yes
10191    ;;
10192  *) # from 4.6 on, and DragonFly
10193    shlibpath_overrides_runpath=yes
10194    hardcode_into_libs=yes
10195    ;;
10196  esac
10197  ;;
10198
10199gnu*)
10200  version_type=linux
10201  need_lib_prefix=no
10202  need_version=no
10203  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10204  soname_spec='${libname}${release}${shared_ext}$major'
10205  shlibpath_var=LD_LIBRARY_PATH
10206  hardcode_into_libs=yes
10207  ;;
10208
10209haiku*)
10210  version_type=linux
10211  need_lib_prefix=no
10212  need_version=no
10213  dynamic_linker="$host_os runtime_loader"
10214  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10215  soname_spec='${libname}${release}${shared_ext}$major'
10216  shlibpath_var=LIBRARY_PATH
10217  shlibpath_overrides_runpath=yes
10218  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10219  hardcode_into_libs=yes
10220  ;;
10221
10222hpux9* | hpux10* | hpux11*)
10223  # Give a soname corresponding to the major version so that dld.sl refuses to
10224  # link against other versions.
10225  version_type=sunos
10226  need_lib_prefix=no
10227  need_version=no
10228  case $host_cpu in
10229  ia64*)
10230    shrext_cmds='.so'
10231    hardcode_into_libs=yes
10232    dynamic_linker="$host_os dld.so"
10233    shlibpath_var=LD_LIBRARY_PATH
10234    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10235    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236    soname_spec='${libname}${release}${shared_ext}$major'
10237    if test "X$HPUX_IA64_MODE" = X32; then
10238      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10239    else
10240      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10241    fi
10242    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10243    ;;
10244  hppa*64*)
10245    shrext_cmds='.sl'
10246    hardcode_into_libs=yes
10247    dynamic_linker="$host_os dld.sl"
10248    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10249    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10250    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251    soname_spec='${libname}${release}${shared_ext}$major'
10252    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10253    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10254    ;;
10255  *)
10256    shrext_cmds='.sl'
10257    dynamic_linker="$host_os dld.sl"
10258    shlibpath_var=SHLIB_PATH
10259    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10260    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261    soname_spec='${libname}${release}${shared_ext}$major'
10262    ;;
10263  esac
10264  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10265  postinstall_cmds='chmod 555 $lib'
10266  # or fails outright, so override atomically:
10267  install_override_mode=555
10268  ;;
10269
10270interix[3-9]*)
10271  version_type=linux
10272  need_lib_prefix=no
10273  need_version=no
10274  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10275  soname_spec='${libname}${release}${shared_ext}$major'
10276  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10277  shlibpath_var=LD_LIBRARY_PATH
10278  shlibpath_overrides_runpath=no
10279  hardcode_into_libs=yes
10280  ;;
10281
10282irix5* | irix6* | nonstopux*)
10283  case $host_os in
10284    nonstopux*) version_type=nonstopux ;;
10285    *)
10286	if test "$lt_cv_prog_gnu_ld" = yes; then
10287		version_type=linux
10288	else
10289		version_type=irix
10290	fi ;;
10291  esac
10292  need_lib_prefix=no
10293  need_version=no
10294  soname_spec='${libname}${release}${shared_ext}$major'
10295  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10296  case $host_os in
10297  irix5* | nonstopux*)
10298    libsuff= shlibsuff=
10299    ;;
10300  *)
10301    case $LD in # libtool.m4 will add one of these switches to LD
10302    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10303      libsuff= shlibsuff= libmagic=32-bit;;
10304    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10305      libsuff=32 shlibsuff=N32 libmagic=N32;;
10306    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10307      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10308    *) libsuff= shlibsuff= libmagic=never-match;;
10309    esac
10310    ;;
10311  esac
10312  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10313  shlibpath_overrides_runpath=no
10314  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10315  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10316  hardcode_into_libs=yes
10317  ;;
10318
10319# No shared lib support for Linux oldld, aout, or coff.
10320linux*oldld* | linux*aout* | linux*coff*)
10321  dynamic_linker=no
10322  ;;
10323
10324# This must be Linux ELF.
10325linux* | k*bsd*-gnu | kopensolaris*-gnu)
10326  version_type=linux
10327  need_lib_prefix=no
10328  need_version=no
10329  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330  soname_spec='${libname}${release}${shared_ext}$major'
10331  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10332  shlibpath_var=LD_LIBRARY_PATH
10333  shlibpath_overrides_runpath=no
10334
10335  # Some binutils ld are patched to set DT_RUNPATH
10336  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10337  $as_echo_n "(cached) " >&6
10338else
10339  lt_cv_shlibpath_overrides_runpath=no
10340    save_LDFLAGS=$LDFLAGS
10341    save_libdir=$libdir
10342    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10343	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10345/* end confdefs.h.  */
10346
10347int
10348main ()
10349{
10350
10351  ;
10352  return 0;
10353}
10354_ACEOF
10355if ac_fn_c_try_link "$LINENO"; then :
10356  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10357  lt_cv_shlibpath_overrides_runpath=yes
10358fi
10359fi
10360rm -f core conftest.err conftest.$ac_objext \
10361    conftest$ac_exeext conftest.$ac_ext
10362    LDFLAGS=$save_LDFLAGS
10363    libdir=$save_libdir
10364
10365fi
10366
10367  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10368
10369  # This implies no fast_install, which is unacceptable.
10370  # Some rework will be needed to allow for fast_install
10371  # before this can be enabled.
10372  hardcode_into_libs=yes
10373
10374  # Add ABI-specific directories to the system library path.
10375  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10376
10377  # Append ld.so.conf contents to the search path
10378  if test -f /etc/ld.so.conf; then
10379    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' ' '`
10380    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10381
10382  fi
10383
10384  # We used to test for /lib/ld.so.1 and disable shared libraries on
10385  # powerpc, because MkLinux only supported shared libraries with the
10386  # GNU dynamic linker.  Since this was broken with cross compilers,
10387  # most powerpc-linux boxes support dynamic linking these days and
10388  # people can always --disable-shared, the test was removed, and we
10389  # assume the GNU/Linux dynamic linker is in use.
10390  dynamic_linker='GNU/Linux ld.so'
10391  ;;
10392
10393netbsd*)
10394  version_type=sunos
10395  need_lib_prefix=no
10396  need_version=no
10397  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10398    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10399    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10400    dynamic_linker='NetBSD (a.out) ld.so'
10401  else
10402    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10403    soname_spec='${libname}${release}${shared_ext}$major'
10404    dynamic_linker='NetBSD ld.elf_so'
10405  fi
10406  shlibpath_var=LD_LIBRARY_PATH
10407  shlibpath_overrides_runpath=yes
10408  hardcode_into_libs=yes
10409  ;;
10410
10411newsos6)
10412  version_type=linux
10413  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10414  shlibpath_var=LD_LIBRARY_PATH
10415  shlibpath_overrides_runpath=yes
10416  ;;
10417
10418*nto* | *qnx*)
10419  version_type=qnx
10420  need_lib_prefix=no
10421  need_version=no
10422  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423  soname_spec='${libname}${release}${shared_ext}$major'
10424  shlibpath_var=LD_LIBRARY_PATH
10425  shlibpath_overrides_runpath=no
10426  hardcode_into_libs=yes
10427  dynamic_linker='ldqnx.so'
10428  ;;
10429
10430openbsd*)
10431  version_type=sunos
10432  sys_lib_dlsearch_path_spec="/usr/lib"
10433  need_lib_prefix=no
10434  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10435  case $host_os in
10436    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10437    *)				need_version=no  ;;
10438  esac
10439  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10440  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10441  shlibpath_var=LD_LIBRARY_PATH
10442  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10443    case $host_os in
10444      openbsd2.[89] | openbsd2.[89].*)
10445	shlibpath_overrides_runpath=no
10446	;;
10447      *)
10448	shlibpath_overrides_runpath=yes
10449	;;
10450      esac
10451  else
10452    shlibpath_overrides_runpath=yes
10453  fi
10454  ;;
10455
10456os2*)
10457  libname_spec='$name'
10458  shrext_cmds=".dll"
10459  need_lib_prefix=no
10460  library_names_spec='$libname${shared_ext} $libname.a'
10461  dynamic_linker='OS/2 ld.exe'
10462  shlibpath_var=LIBPATH
10463  ;;
10464
10465osf3* | osf4* | osf5*)
10466  version_type=osf
10467  need_lib_prefix=no
10468  need_version=no
10469  soname_spec='${libname}${release}${shared_ext}$major'
10470  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10471  shlibpath_var=LD_LIBRARY_PATH
10472  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10473  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10474  ;;
10475
10476rdos*)
10477  dynamic_linker=no
10478  ;;
10479
10480solaris*)
10481  version_type=linux
10482  need_lib_prefix=no
10483  need_version=no
10484  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10485  soname_spec='${libname}${release}${shared_ext}$major'
10486  shlibpath_var=LD_LIBRARY_PATH
10487  shlibpath_overrides_runpath=yes
10488  hardcode_into_libs=yes
10489  # ldd complains unless libraries are executable
10490  postinstall_cmds='chmod +x $lib'
10491  ;;
10492
10493sunos4*)
10494  version_type=sunos
10495  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10496  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10497  shlibpath_var=LD_LIBRARY_PATH
10498  shlibpath_overrides_runpath=yes
10499  if test "$with_gnu_ld" = yes; then
10500    need_lib_prefix=no
10501  fi
10502  need_version=yes
10503  ;;
10504
10505sysv4 | sysv4.3*)
10506  version_type=linux
10507  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508  soname_spec='${libname}${release}${shared_ext}$major'
10509  shlibpath_var=LD_LIBRARY_PATH
10510  case $host_vendor in
10511    sni)
10512      shlibpath_overrides_runpath=no
10513      need_lib_prefix=no
10514      runpath_var=LD_RUN_PATH
10515      ;;
10516    siemens)
10517      need_lib_prefix=no
10518      ;;
10519    motorola)
10520      need_lib_prefix=no
10521      need_version=no
10522      shlibpath_overrides_runpath=no
10523      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10524      ;;
10525  esac
10526  ;;
10527
10528sysv4*MP*)
10529  if test -d /usr/nec ;then
10530    version_type=linux
10531    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10532    soname_spec='$libname${shared_ext}.$major'
10533    shlibpath_var=LD_LIBRARY_PATH
10534  fi
10535  ;;
10536
10537sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10538  version_type=freebsd-elf
10539  need_lib_prefix=no
10540  need_version=no
10541  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10542  soname_spec='${libname}${release}${shared_ext}$major'
10543  shlibpath_var=LD_LIBRARY_PATH
10544  shlibpath_overrides_runpath=yes
10545  hardcode_into_libs=yes
10546  if test "$with_gnu_ld" = yes; then
10547    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10548  else
10549    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10550    case $host_os in
10551      sco3.2v5*)
10552        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10553	;;
10554    esac
10555  fi
10556  sys_lib_dlsearch_path_spec='/usr/lib'
10557  ;;
10558
10559tpf*)
10560  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10561  version_type=linux
10562  need_lib_prefix=no
10563  need_version=no
10564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10565  shlibpath_var=LD_LIBRARY_PATH
10566  shlibpath_overrides_runpath=no
10567  hardcode_into_libs=yes
10568  ;;
10569
10570uts4*)
10571  version_type=linux
10572  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573  soname_spec='${libname}${release}${shared_ext}$major'
10574  shlibpath_var=LD_LIBRARY_PATH
10575  ;;
10576
10577*)
10578  dynamic_linker=no
10579  ;;
10580esac
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10582$as_echo "$dynamic_linker" >&6; }
10583test "$dynamic_linker" = no && can_build_shared=no
10584
10585variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10586if test "$GCC" = yes; then
10587  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10588fi
10589
10590if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10591  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10592fi
10593if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10594  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10595fi
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10689$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10690hardcode_action=
10691if test -n "$hardcode_libdir_flag_spec" ||
10692   test -n "$runpath_var" ||
10693   test "X$hardcode_automatic" = "Xyes" ; then
10694
10695  # We can hardcode non-existent directories.
10696  if test "$hardcode_direct" != no &&
10697     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10698     # have to relink, otherwise we might link with an installed library
10699     # when we should be linking with a yet-to-be-installed one
10700     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10701     test "$hardcode_minus_L" != no; then
10702    # Linking always hardcodes the temporary library directory.
10703    hardcode_action=relink
10704  else
10705    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10706    hardcode_action=immediate
10707  fi
10708else
10709  # We cannot hardcode anything, or else we can only hardcode existing
10710  # directories.
10711  hardcode_action=unsupported
10712fi
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10714$as_echo "$hardcode_action" >&6; }
10715
10716if test "$hardcode_action" = relink ||
10717   test "$inherit_rpath" = yes; then
10718  # Fast installation is not supported
10719  enable_fast_install=no
10720elif test "$shlibpath_overrides_runpath" = yes ||
10721     test "$enable_shared" = no; then
10722  # Fast installation is not necessary
10723  enable_fast_install=needless
10724fi
10725
10726
10727
10728
10729
10730
10731  if test "x$enable_dlopen" != xyes; then
10732  enable_dlopen=unknown
10733  enable_dlopen_self=unknown
10734  enable_dlopen_self_static=unknown
10735else
10736  lt_cv_dlopen=no
10737  lt_cv_dlopen_libs=
10738
10739  case $host_os in
10740  beos*)
10741    lt_cv_dlopen="load_add_on"
10742    lt_cv_dlopen_libs=
10743    lt_cv_dlopen_self=yes
10744    ;;
10745
10746  mingw* | pw32* | cegcc*)
10747    lt_cv_dlopen="LoadLibrary"
10748    lt_cv_dlopen_libs=
10749    ;;
10750
10751  cygwin*)
10752    lt_cv_dlopen="dlopen"
10753    lt_cv_dlopen_libs=
10754    ;;
10755
10756  darwin*)
10757  # if libdl is installed we need to link against it
10758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10759$as_echo_n "checking for dlopen in -ldl... " >&6; }
10760if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10761  $as_echo_n "(cached) " >&6
10762else
10763  ac_check_lib_save_LIBS=$LIBS
10764LIBS="-ldl  $LIBS"
10765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766/* end confdefs.h.  */
10767
10768/* Override any GCC internal prototype to avoid an error.
10769   Use char because int might match the return type of a GCC
10770   builtin and then its argument prototype would still apply.  */
10771#ifdef __cplusplus
10772extern "C"
10773#endif
10774char dlopen ();
10775int
10776main ()
10777{
10778return dlopen ();
10779  ;
10780  return 0;
10781}
10782_ACEOF
10783if ac_fn_c_try_link "$LINENO"; then :
10784  ac_cv_lib_dl_dlopen=yes
10785else
10786  ac_cv_lib_dl_dlopen=no
10787fi
10788rm -f core conftest.err conftest.$ac_objext \
10789    conftest$ac_exeext conftest.$ac_ext
10790LIBS=$ac_check_lib_save_LIBS
10791fi
10792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10793$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10794if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10795  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10796else
10797
10798    lt_cv_dlopen="dyld"
10799    lt_cv_dlopen_libs=
10800    lt_cv_dlopen_self=yes
10801
10802fi
10803
10804    ;;
10805
10806  *)
10807    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10808if test "x$ac_cv_func_shl_load" = x""yes; then :
10809  lt_cv_dlopen="shl_load"
10810else
10811  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10812$as_echo_n "checking for shl_load in -ldld... " >&6; }
10813if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10814  $as_echo_n "(cached) " >&6
10815else
10816  ac_check_lib_save_LIBS=$LIBS
10817LIBS="-ldld  $LIBS"
10818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10819/* end confdefs.h.  */
10820
10821/* Override any GCC internal prototype to avoid an error.
10822   Use char because int might match the return type of a GCC
10823   builtin and then its argument prototype would still apply.  */
10824#ifdef __cplusplus
10825extern "C"
10826#endif
10827char shl_load ();
10828int
10829main ()
10830{
10831return shl_load ();
10832  ;
10833  return 0;
10834}
10835_ACEOF
10836if ac_fn_c_try_link "$LINENO"; then :
10837  ac_cv_lib_dld_shl_load=yes
10838else
10839  ac_cv_lib_dld_shl_load=no
10840fi
10841rm -f core conftest.err conftest.$ac_objext \
10842    conftest$ac_exeext conftest.$ac_ext
10843LIBS=$ac_check_lib_save_LIBS
10844fi
10845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10846$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10847if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10848  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10849else
10850  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10851if test "x$ac_cv_func_dlopen" = x""yes; then :
10852  lt_cv_dlopen="dlopen"
10853else
10854  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10855$as_echo_n "checking for dlopen in -ldl... " >&6; }
10856if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10857  $as_echo_n "(cached) " >&6
10858else
10859  ac_check_lib_save_LIBS=$LIBS
10860LIBS="-ldl  $LIBS"
10861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862/* end confdefs.h.  */
10863
10864/* Override any GCC internal prototype to avoid an error.
10865   Use char because int might match the return type of a GCC
10866   builtin and then its argument prototype would still apply.  */
10867#ifdef __cplusplus
10868extern "C"
10869#endif
10870char dlopen ();
10871int
10872main ()
10873{
10874return dlopen ();
10875  ;
10876  return 0;
10877}
10878_ACEOF
10879if ac_fn_c_try_link "$LINENO"; then :
10880  ac_cv_lib_dl_dlopen=yes
10881else
10882  ac_cv_lib_dl_dlopen=no
10883fi
10884rm -f core conftest.err conftest.$ac_objext \
10885    conftest$ac_exeext conftest.$ac_ext
10886LIBS=$ac_check_lib_save_LIBS
10887fi
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10889$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10890if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10891  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10892else
10893  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10894$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10895if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10896  $as_echo_n "(cached) " >&6
10897else
10898  ac_check_lib_save_LIBS=$LIBS
10899LIBS="-lsvld  $LIBS"
10900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10901/* end confdefs.h.  */
10902
10903/* Override any GCC internal prototype to avoid an error.
10904   Use char because int might match the return type of a GCC
10905   builtin and then its argument prototype would still apply.  */
10906#ifdef __cplusplus
10907extern "C"
10908#endif
10909char dlopen ();
10910int
10911main ()
10912{
10913return dlopen ();
10914  ;
10915  return 0;
10916}
10917_ACEOF
10918if ac_fn_c_try_link "$LINENO"; then :
10919  ac_cv_lib_svld_dlopen=yes
10920else
10921  ac_cv_lib_svld_dlopen=no
10922fi
10923rm -f core conftest.err conftest.$ac_objext \
10924    conftest$ac_exeext conftest.$ac_ext
10925LIBS=$ac_check_lib_save_LIBS
10926fi
10927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10928$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10929if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10930  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10931else
10932  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10933$as_echo_n "checking for dld_link in -ldld... " >&6; }
10934if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10935  $as_echo_n "(cached) " >&6
10936else
10937  ac_check_lib_save_LIBS=$LIBS
10938LIBS="-ldld  $LIBS"
10939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10940/* end confdefs.h.  */
10941
10942/* Override any GCC internal prototype to avoid an error.
10943   Use char because int might match the return type of a GCC
10944   builtin and then its argument prototype would still apply.  */
10945#ifdef __cplusplus
10946extern "C"
10947#endif
10948char dld_link ();
10949int
10950main ()
10951{
10952return dld_link ();
10953  ;
10954  return 0;
10955}
10956_ACEOF
10957if ac_fn_c_try_link "$LINENO"; then :
10958  ac_cv_lib_dld_dld_link=yes
10959else
10960  ac_cv_lib_dld_dld_link=no
10961fi
10962rm -f core conftest.err conftest.$ac_objext \
10963    conftest$ac_exeext conftest.$ac_ext
10964LIBS=$ac_check_lib_save_LIBS
10965fi
10966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10967$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10968if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10969  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10970fi
10971
10972
10973fi
10974
10975
10976fi
10977
10978
10979fi
10980
10981
10982fi
10983
10984
10985fi
10986
10987    ;;
10988  esac
10989
10990  if test "x$lt_cv_dlopen" != xno; then
10991    enable_dlopen=yes
10992  else
10993    enable_dlopen=no
10994  fi
10995
10996  case $lt_cv_dlopen in
10997  dlopen)
10998    save_CPPFLAGS="$CPPFLAGS"
10999    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11000
11001    save_LDFLAGS="$LDFLAGS"
11002    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11003
11004    save_LIBS="$LIBS"
11005    LIBS="$lt_cv_dlopen_libs $LIBS"
11006
11007    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11008$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11009if test "${lt_cv_dlopen_self+set}" = set; then :
11010  $as_echo_n "(cached) " >&6
11011else
11012  	  if test "$cross_compiling" = yes; then :
11013  lt_cv_dlopen_self=cross
11014else
11015  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11016  lt_status=$lt_dlunknown
11017  cat > conftest.$ac_ext <<_LT_EOF
11018#line $LINENO "configure"
11019#include "confdefs.h"
11020
11021#if HAVE_DLFCN_H
11022#include <dlfcn.h>
11023#endif
11024
11025#include <stdio.h>
11026
11027#ifdef RTLD_GLOBAL
11028#  define LT_DLGLOBAL		RTLD_GLOBAL
11029#else
11030#  ifdef DL_GLOBAL
11031#    define LT_DLGLOBAL		DL_GLOBAL
11032#  else
11033#    define LT_DLGLOBAL		0
11034#  endif
11035#endif
11036
11037/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11038   find out it does not work in some platform. */
11039#ifndef LT_DLLAZY_OR_NOW
11040#  ifdef RTLD_LAZY
11041#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11042#  else
11043#    ifdef DL_LAZY
11044#      define LT_DLLAZY_OR_NOW		DL_LAZY
11045#    else
11046#      ifdef RTLD_NOW
11047#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11048#      else
11049#        ifdef DL_NOW
11050#          define LT_DLLAZY_OR_NOW	DL_NOW
11051#        else
11052#          define LT_DLLAZY_OR_NOW	0
11053#        endif
11054#      endif
11055#    endif
11056#  endif
11057#endif
11058
11059/* When -fvisbility=hidden is used, assume the code has been annotated
11060   correspondingly for the symbols needed.  */
11061#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11062void fnord () __attribute__((visibility("default")));
11063#endif
11064
11065void fnord () { int i=42; }
11066int main ()
11067{
11068  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11069  int status = $lt_dlunknown;
11070
11071  if (self)
11072    {
11073      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11074      else
11075        {
11076	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11077          else puts (dlerror ());
11078	}
11079      /* dlclose (self); */
11080    }
11081  else
11082    puts (dlerror ());
11083
11084  return status;
11085}
11086_LT_EOF
11087  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11088  (eval $ac_link) 2>&5
11089  ac_status=$?
11090  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11091  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11092    (./conftest; exit; ) >&5 2>/dev/null
11093    lt_status=$?
11094    case x$lt_status in
11095      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11096      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11097      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11098    esac
11099  else :
11100    # compilation failed
11101    lt_cv_dlopen_self=no
11102  fi
11103fi
11104rm -fr conftest*
11105
11106
11107fi
11108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11109$as_echo "$lt_cv_dlopen_self" >&6; }
11110
11111    if test "x$lt_cv_dlopen_self" = xyes; then
11112      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11113      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11114$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11115if test "${lt_cv_dlopen_self_static+set}" = set; then :
11116  $as_echo_n "(cached) " >&6
11117else
11118  	  if test "$cross_compiling" = yes; then :
11119  lt_cv_dlopen_self_static=cross
11120else
11121  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11122  lt_status=$lt_dlunknown
11123  cat > conftest.$ac_ext <<_LT_EOF
11124#line $LINENO "configure"
11125#include "confdefs.h"
11126
11127#if HAVE_DLFCN_H
11128#include <dlfcn.h>
11129#endif
11130
11131#include <stdio.h>
11132
11133#ifdef RTLD_GLOBAL
11134#  define LT_DLGLOBAL		RTLD_GLOBAL
11135#else
11136#  ifdef DL_GLOBAL
11137#    define LT_DLGLOBAL		DL_GLOBAL
11138#  else
11139#    define LT_DLGLOBAL		0
11140#  endif
11141#endif
11142
11143/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11144   find out it does not work in some platform. */
11145#ifndef LT_DLLAZY_OR_NOW
11146#  ifdef RTLD_LAZY
11147#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11148#  else
11149#    ifdef DL_LAZY
11150#      define LT_DLLAZY_OR_NOW		DL_LAZY
11151#    else
11152#      ifdef RTLD_NOW
11153#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11154#      else
11155#        ifdef DL_NOW
11156#          define LT_DLLAZY_OR_NOW	DL_NOW
11157#        else
11158#          define LT_DLLAZY_OR_NOW	0
11159#        endif
11160#      endif
11161#    endif
11162#  endif
11163#endif
11164
11165/* When -fvisbility=hidden is used, assume the code has been annotated
11166   correspondingly for the symbols needed.  */
11167#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11168void fnord () __attribute__((visibility("default")));
11169#endif
11170
11171void fnord () { int i=42; }
11172int main ()
11173{
11174  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11175  int status = $lt_dlunknown;
11176
11177  if (self)
11178    {
11179      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11180      else
11181        {
11182	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11183          else puts (dlerror ());
11184	}
11185      /* dlclose (self); */
11186    }
11187  else
11188    puts (dlerror ());
11189
11190  return status;
11191}
11192_LT_EOF
11193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11194  (eval $ac_link) 2>&5
11195  ac_status=$?
11196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11197  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11198    (./conftest; exit; ) >&5 2>/dev/null
11199    lt_status=$?
11200    case x$lt_status in
11201      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11202      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11203      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11204    esac
11205  else :
11206    # compilation failed
11207    lt_cv_dlopen_self_static=no
11208  fi
11209fi
11210rm -fr conftest*
11211
11212
11213fi
11214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11215$as_echo "$lt_cv_dlopen_self_static" >&6; }
11216    fi
11217
11218    CPPFLAGS="$save_CPPFLAGS"
11219    LDFLAGS="$save_LDFLAGS"
11220    LIBS="$save_LIBS"
11221    ;;
11222  esac
11223
11224  case $lt_cv_dlopen_self in
11225  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11226  *) enable_dlopen_self=unknown ;;
11227  esac
11228
11229  case $lt_cv_dlopen_self_static in
11230  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11231  *) enable_dlopen_self_static=unknown ;;
11232  esac
11233fi
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251striplib=
11252old_striplib=
11253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11254$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11255if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11256  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11257  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11259$as_echo "yes" >&6; }
11260else
11261# FIXME - insert some real tests, host_os isn't really good enough
11262  case $host_os in
11263  darwin*)
11264    if test -n "$STRIP" ; then
11265      striplib="$STRIP -x"
11266      old_striplib="$STRIP -S"
11267      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11268$as_echo "yes" >&6; }
11269    else
11270      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271$as_echo "no" >&6; }
11272    fi
11273    ;;
11274  *)
11275    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11276$as_echo "no" >&6; }
11277    ;;
11278  esac
11279fi
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292  # Report which library types will actually be built
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11294$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11296$as_echo "$can_build_shared" >&6; }
11297
11298  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11299$as_echo_n "checking whether to build shared libraries... " >&6; }
11300  test "$can_build_shared" = "no" && enable_shared=no
11301
11302  # On AIX, shared libraries and static libraries use the same namespace, and
11303  # are all built from PIC.
11304  case $host_os in
11305  aix3*)
11306    test "$enable_shared" = yes && enable_static=no
11307    if test -n "$RANLIB"; then
11308      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11309      postinstall_cmds='$RANLIB $lib'
11310    fi
11311    ;;
11312
11313  aix[4-9]*)
11314    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11315      test "$enable_shared" = yes && enable_static=no
11316    fi
11317    ;;
11318  esac
11319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11320$as_echo "$enable_shared" >&6; }
11321
11322  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11323$as_echo_n "checking whether to build static libraries... " >&6; }
11324  # Make sure either enable_shared or enable_static is yes.
11325  test "$enable_shared" = yes || enable_static=yes
11326  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11327$as_echo "$enable_static" >&6; }
11328
11329
11330
11331
11332fi
11333ac_ext=c
11334ac_cpp='$CPP $CPPFLAGS'
11335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11337ac_compiler_gnu=$ac_cv_c_compiler_gnu
11338
11339CC="$lt_save_CC"
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353        ac_config_commands="$ac_config_commands libtool"
11354
11355
11356
11357
11358# Only expand once:
11359
11360
11361
11362
11363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11364$as_echo_n "checking for ANSI C header files... " >&6; }
11365if test "${ac_cv_header_stdc+set}" = set; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369/* end confdefs.h.  */
11370#include <stdlib.h>
11371#include <stdarg.h>
11372#include <string.h>
11373#include <float.h>
11374
11375int
11376main ()
11377{
11378
11379  ;
11380  return 0;
11381}
11382_ACEOF
11383if ac_fn_c_try_compile "$LINENO"; then :
11384  ac_cv_header_stdc=yes
11385else
11386  ac_cv_header_stdc=no
11387fi
11388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11389
11390if test $ac_cv_header_stdc = yes; then
11391  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393/* end confdefs.h.  */
11394#include <string.h>
11395
11396_ACEOF
11397if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11398  $EGREP "memchr" >/dev/null 2>&1; then :
11399
11400else
11401  ac_cv_header_stdc=no
11402fi
11403rm -f conftest*
11404
11405fi
11406
11407if test $ac_cv_header_stdc = yes; then
11408  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11409  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410/* end confdefs.h.  */
11411#include <stdlib.h>
11412
11413_ACEOF
11414if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11415  $EGREP "free" >/dev/null 2>&1; then :
11416
11417else
11418  ac_cv_header_stdc=no
11419fi
11420rm -f conftest*
11421
11422fi
11423
11424if test $ac_cv_header_stdc = yes; then
11425  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11426  if test "$cross_compiling" = yes; then :
11427  :
11428else
11429  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430/* end confdefs.h.  */
11431#include <ctype.h>
11432#include <stdlib.h>
11433#if ((' ' & 0x0FF) == 0x020)
11434# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11435# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11436#else
11437# define ISLOWER(c) \
11438		   (('a' <= (c) && (c) <= 'i') \
11439		     || ('j' <= (c) && (c) <= 'r') \
11440		     || ('s' <= (c) && (c) <= 'z'))
11441# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11442#endif
11443
11444#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11445int
11446main ()
11447{
11448  int i;
11449  for (i = 0; i < 256; i++)
11450    if (XOR (islower (i), ISLOWER (i))
11451	|| toupper (i) != TOUPPER (i))
11452      return 2;
11453  return 0;
11454}
11455_ACEOF
11456if ac_fn_c_try_run "$LINENO"; then :
11457
11458else
11459  ac_cv_header_stdc=no
11460fi
11461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11462  conftest.$ac_objext conftest.beam conftest.$ac_ext
11463fi
11464
11465fi
11466fi
11467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11468$as_echo "$ac_cv_header_stdc" >&6; }
11469if test $ac_cv_header_stdc = yes; then
11470
11471$as_echo "#define STDC_HEADERS 1" >>confdefs.h
11472
11473fi
11474
11475for ac_header in fcntl.h sys/time.h sys/wait.h sys/select.h sys/uio.h unistd.h
11476do :
11477  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11478ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11479if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11480  cat >>confdefs.h <<_ACEOF
11481#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11482_ACEOF
11483
11484fi
11485
11486done
11487
11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11489$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11490if test "${ac_cv_header_time+set}" = set; then :
11491  $as_echo_n "(cached) " >&6
11492else
11493  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11494/* end confdefs.h.  */
11495#include <sys/types.h>
11496#include <sys/time.h>
11497#include <time.h>
11498
11499int
11500main ()
11501{
11502if ((struct tm *) 0)
11503return 0;
11504  ;
11505  return 0;
11506}
11507_ACEOF
11508if ac_fn_c_try_compile "$LINENO"; then :
11509  ac_cv_header_time=yes
11510else
11511  ac_cv_header_time=no
11512fi
11513rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11514fi
11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11516$as_echo "$ac_cv_header_time" >&6; }
11517if test $ac_cv_header_time = yes; then
11518
11519$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11520
11521fi
11522
11523
11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
11525$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
11526if test "${ac_cv_c_const+set}" = set; then :
11527  $as_echo_n "(cached) " >&6
11528else
11529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11530/* end confdefs.h.  */
11531
11532int
11533main ()
11534{
11535/* FIXME: Include the comments suggested by Paul. */
11536#ifndef __cplusplus
11537  /* Ultrix mips cc rejects this.  */
11538  typedef int charset[2];
11539  const charset cs;
11540  /* SunOS 4.1.1 cc rejects this.  */
11541  char const *const *pcpcc;
11542  char **ppc;
11543  /* NEC SVR4.0.2 mips cc rejects this.  */
11544  struct point {int x, y;};
11545  static struct point const zero = {0,0};
11546  /* AIX XL C 1.02.0.0 rejects this.
11547     It does not let you subtract one const X* pointer from another in
11548     an arm of an if-expression whose if-part is not a constant
11549     expression */
11550  const char *g = "string";
11551  pcpcc = &g + (g ? g-g : 0);
11552  /* HPUX 7.0 cc rejects these. */
11553  ++pcpcc;
11554  ppc = (char**) pcpcc;
11555  pcpcc = (char const *const *) ppc;
11556  { /* SCO 3.2v4 cc rejects this.  */
11557    char *t;
11558    char const *s = 0 ? (char *) 0 : (char const *) 0;
11559
11560    *t++ = 0;
11561    if (s) return 0;
11562  }
11563  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
11564    int x[] = {25, 17};
11565    const int *foo = &x[0];
11566    ++foo;
11567  }
11568  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11569    typedef const int *iptr;
11570    iptr p = 0;
11571    ++p;
11572  }
11573  { /* AIX XL C 1.02.0.0 rejects this saying
11574       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11575    struct s { int j; const int *ap[3]; };
11576    struct s *b; b->j = 5;
11577  }
11578  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11579    const int foo = 10;
11580    if (!foo) return 0;
11581  }
11582  return !cs[0] && !zero.x;
11583#endif
11584
11585  ;
11586  return 0;
11587}
11588_ACEOF
11589if ac_fn_c_try_compile "$LINENO"; then :
11590  ac_cv_c_const=yes
11591else
11592  ac_cv_c_const=no
11593fi
11594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595fi
11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
11597$as_echo "$ac_cv_c_const" >&6; }
11598if test $ac_cv_c_const = no; then
11599
11600$as_echo "#define const /**/" >>confdefs.h
11601
11602fi
11603
11604ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11605if test "x$ac_cv_type_size_t" = x""yes; then :
11606
11607else
11608
11609cat >>confdefs.h <<_ACEOF
11610#define size_t unsigned int
11611_ACEOF
11612
11613fi
11614
11615
11616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
11617$as_echo_n "checking for socklen_t... " >&6; }
11618if test "${cgi_cv_hassocklen_t+set}" = set; then :
11619  $as_echo_n "(cached) " >&6
11620else
11621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11622/* end confdefs.h.  */
11623
11624#include <sys/types.h>
11625#include <sys/socket.h>
11626
11627socklen_t sl_t;
11628
11629_ACEOF
11630if ac_fn_c_try_compile "$LINENO"; then :
11631  cgi_cv_hassocklen_t=yes
11632else
11633  cgi_cv_hassocklen_t=no
11634fi
11635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11636
11637fi
11638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cgi_cv_hassocklen_t" >&5
11639$as_echo "$cgi_cv_hassocklen_t" >&6; }
11640
11641socklen_t="int"
11642
11643if test $cgi_cv_hassocklen_t = yes
11644then
11645	:
11646else
11647
11648cat >>confdefs.h <<_ACEOF
11649#define socklen_t int
11650_ACEOF
11651
11652fi
11653
11654
11655for ac_func in strdup strncasecmp
11656do :
11657  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11658ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11659if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11660  cat >>confdefs.h <<_ACEOF
11661#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11662_ACEOF
11663
11664fi
11665done
11666
11667
11668
11669
11670# Check whether --with-formdata was given.
11671if test "${with_formdata+set}" = set; then :
11672  withval=$with_formdata;
11673cat >>confdefs.h <<_ACEOF
11674#define CGIFORMDATA 1
11675_ACEOF
11676
11677fi
11678
11679
11680
11681# Check whether --with-maxargsize was given.
11682if test "${with_maxargsize+set}" = set; then :
11683  withval=$with_maxargsize; CFLAGS="$CFLAGS -DCGIMAXARG=$withval"
11684fi
11685
11686
11687
11688# Check whether --with-maxformargsize was given.
11689if test "${with_maxformargsize+set}" = set; then :
11690  withval=$with_maxformargsize; CFLAGS="$CFLAGS -DCGIMAXFORMDATAARG=$withval"
11691fi
11692
11693
11694if test "$cross_compiling" = yes; then :
11695
11696		MAXLONGSIZE=60
11697		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZE" >&5
11698$as_echo "$as_me: WARNING: Cross compiling, setting MAXLONGSIZE to $MAXLONGSIZE" >&2;}
11699
11700
11701else
11702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703/* end confdefs.h.  */
11704
11705
11706#include	<stdio.h>
11707#include	<stdlib.h>
11708#include	<limits.h>
11709
11710int main()
11711{
11712FILE	*fp=fopen("conftestval", "w");
11713
11714	if (!fp)	exit(1);
11715	fprintf(fp, "-%lu\n", ULONG_MAX);
11716	fclose(fp);
11717	return (0);
11718}
11719
11720
11721_ACEOF
11722if ac_fn_c_try_run "$LINENO"; then :
11723   MAXLONGSIZE=`wc -c conftestval | awk ' { print $1 } '  `
11724else
11725
11726		as_fn_error $? "Unable to run test program." "$LINENO" 5
11727
11728fi
11729rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11730  conftest.$ac_objext conftest.beam conftest.$ac_ext
11731fi
11732
11733
11734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to pass file descriptors" >&5
11735$as_echo_n "checking how to pass file descriptors... " >&6; }
11736if test "${ac_cv_sqwebmail_passfd+set}" = set; then :
11737  $as_echo_n "(cached) " >&6
11738else
11739  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740/* end confdefs.h.  */
11741
11742#include <sys/types.h>
11743#include <sys/socket.h>
11744#include <sys/uio.h>
11745
11746int fd; struct msghdr msg;
11747int
11748main ()
11749{
11750
11751	msg.msg_accrights=(caddr_t)fd;
11752	msg.msg_accrightslen=sizeof(fd);
11753
11754  ;
11755  return 0;
11756}
11757_ACEOF
11758if ac_fn_c_try_compile "$LINENO"; then :
11759  ac_cv_sqwebmail_passfd=msg_accrights
11760else
11761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11762/* end confdefs.h.  */
11763
11764#include <sys/types.h>
11765#include <sys/socket.h>
11766#include <sys/uio.h>
11767
11768struct msghdr msg; struct cmsghdr cmsg; char buf;
11769
11770int
11771main ()
11772{
11773
11774              msg.msg_control = &buf;
11775              msg.msg_controllen = 1;
11776
11777  ;
11778  return 0;
11779}
11780_ACEOF
11781if ac_fn_c_try_compile "$LINENO"; then :
11782  ac_cv_sqwebmail_passfd=msg_control
11783else
11784  ac_cv_sqwebmail_passfd=none
11785fi
11786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11787fi
11788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11789fi
11790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sqwebmail_passfd" >&5
11791$as_echo "$ac_cv_sqwebmail_passfd" >&6; }
11792
11793if test "$ac_cv_sqwebmail_passfd" = "msg_accrights"
11794then
11795
11796cat >>confdefs.h <<_ACEOF
11797#define CGI_PASSFD_MSGACCRIGHTS 1
11798_ACEOF
11799
11800fi
11801
11802if test "$ac_cv_sqwebmail_passfd" = "msg_control"
11803then
11804
11805cat >>confdefs.h <<_ACEOF
11806#define CGI_PASSFD_MSGCONTROL 1
11807_ACEOF
11808
11809fi
11810
11811
11812if test "$GCC" = yes ; then
11813        CFLAGS="$CFLAGS -Wall"
11814fi
11815
11816CFLAGS="$CFLAGS -I.. -I$srcdir/.."
11817
11818
11819cat >>confdefs.h <<_ACEOF
11820#define MAXLONGSIZE $MAXLONGSIZE
11821_ACEOF
11822
11823ac_config_files="$ac_config_files Makefile"
11824
11825cat >confcache <<\_ACEOF
11826# This file is a shell script that caches the results of configure
11827# tests run on this system so they can be shared between configure
11828# scripts and configure runs, see configure's option --config-cache.
11829# It is not useful on other systems.  If it contains results you don't
11830# want to keep, you may remove or edit it.
11831#
11832# config.status only pays attention to the cache file if you give it
11833# the --recheck option to rerun configure.
11834#
11835# `ac_cv_env_foo' variables (set or unset) will be overridden when
11836# loading this file, other *unset* `ac_cv_foo' will be assigned the
11837# following values.
11838
11839_ACEOF
11840
11841# The following way of writing the cache mishandles newlines in values,
11842# but we know of no workaround that is simple, portable, and efficient.
11843# So, we kill variables containing newlines.
11844# Ultrix sh set writes to stderr and can't be redirected directly,
11845# and sets the high bit in the cache file unless we assign to the vars.
11846(
11847  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11848    eval ac_val=\$$ac_var
11849    case $ac_val in #(
11850    *${as_nl}*)
11851      case $ac_var in #(
11852      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11853$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11854      esac
11855      case $ac_var in #(
11856      _ | IFS | as_nl) ;; #(
11857      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11858      *) { eval $ac_var=; unset $ac_var;} ;;
11859      esac ;;
11860    esac
11861  done
11862
11863  (set) 2>&1 |
11864    case $as_nl`(ac_space=' '; set) 2>&1` in #(
11865    *${as_nl}ac_space=\ *)
11866      # `set' does not quote correctly, so add quotes: double-quote
11867      # substitution turns \\\\ into \\, and sed turns \\ into \.
11868      sed -n \
11869	"s/'/'\\\\''/g;
11870	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11871      ;; #(
11872    *)
11873      # `set' quotes correctly as required by POSIX, so do not add quotes.
11874      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11875      ;;
11876    esac |
11877    sort
11878) |
11879  sed '
11880     /^ac_cv_env_/b end
11881     t clear
11882     :clear
11883     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11884     t end
11885     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11886     :end' >>confcache
11887if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11888  if test -w "$cache_file"; then
11889    test "x$cache_file" != "x/dev/null" &&
11890      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11891$as_echo "$as_me: updating cache $cache_file" >&6;}
11892    cat confcache >$cache_file
11893  else
11894    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11895$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11896  fi
11897fi
11898rm -f confcache
11899
11900test "x$prefix" = xNONE && prefix=$ac_default_prefix
11901# Let make expand exec_prefix.
11902test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11903
11904DEFS=-DHAVE_CONFIG_H
11905
11906ac_libobjs=
11907ac_ltlibobjs=
11908U=
11909for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11910  # 1. Remove the extension, and $U if already installed.
11911  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11912  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11913  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11914  #    will be set to the directory where LIBOBJS objects are built.
11915  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11916  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11917done
11918LIBOBJS=$ac_libobjs
11919
11920LTLIBOBJS=$ac_ltlibobjs
11921
11922
11923 if test -n "$EXEEXT"; then
11924  am__EXEEXT_TRUE=
11925  am__EXEEXT_FALSE='#'
11926else
11927  am__EXEEXT_TRUE='#'
11928  am__EXEEXT_FALSE=
11929fi
11930
11931if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11932  as_fn_error $? "conditional \"AMDEP\" was never defined.
11933Usually this means the macro was only invoked conditionally." "$LINENO" 5
11934fi
11935if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11936  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11937Usually this means the macro was only invoked conditionally." "$LINENO" 5
11938fi
11939if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11940  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11941Usually this means the macro was only invoked conditionally." "$LINENO" 5
11942fi
11943
11944: ${CONFIG_STATUS=./config.status}
11945ac_write_fail=0
11946ac_clean_files_save=$ac_clean_files
11947ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11948{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11949$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11950as_write_fail=0
11951cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11952#! $SHELL
11953# Generated by $as_me.
11954# Run this file to recreate the current configuration.
11955# Compiler output produced by configure, useful for debugging
11956# configure, is in config.log if it exists.
11957
11958debug=false
11959ac_cs_recheck=false
11960ac_cs_silent=false
11961
11962SHELL=\${CONFIG_SHELL-$SHELL}
11963export SHELL
11964_ASEOF
11965cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11966## -------------------- ##
11967## M4sh Initialization. ##
11968## -------------------- ##
11969
11970# Be more Bourne compatible
11971DUALCASE=1; export DUALCASE # for MKS sh
11972if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11973  emulate sh
11974  NULLCMD=:
11975  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11976  # is contrary to our usage.  Disable this feature.
11977  alias -g '${1+"$@"}'='"$@"'
11978  setopt NO_GLOB_SUBST
11979else
11980  case `(set -o) 2>/dev/null` in #(
11981  *posix*) :
11982    set -o posix ;; #(
11983  *) :
11984     ;;
11985esac
11986fi
11987
11988
11989as_nl='
11990'
11991export as_nl
11992# Printing a long string crashes Solaris 7 /usr/bin/printf.
11993as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11994as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11995as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11996# Prefer a ksh shell builtin over an external printf program on Solaris,
11997# but without wasting forks for bash or zsh.
11998if test -z "$BASH_VERSION$ZSH_VERSION" \
11999    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12000  as_echo='print -r --'
12001  as_echo_n='print -rn --'
12002elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12003  as_echo='printf %s\n'
12004  as_echo_n='printf %s'
12005else
12006  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12007    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12008    as_echo_n='/usr/ucb/echo -n'
12009  else
12010    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12011    as_echo_n_body='eval
12012      arg=$1;
12013      case $arg in #(
12014      *"$as_nl"*)
12015	expr "X$arg" : "X\\(.*\\)$as_nl";
12016	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12017      esac;
12018      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12019    '
12020    export as_echo_n_body
12021    as_echo_n='sh -c $as_echo_n_body as_echo'
12022  fi
12023  export as_echo_body
12024  as_echo='sh -c $as_echo_body as_echo'
12025fi
12026
12027# The user is always right.
12028if test "${PATH_SEPARATOR+set}" != set; then
12029  PATH_SEPARATOR=:
12030  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12031    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12032      PATH_SEPARATOR=';'
12033  }
12034fi
12035
12036
12037# IFS
12038# We need space, tab and new line, in precisely that order.  Quoting is
12039# there to prevent editors from complaining about space-tab.
12040# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12041# splitting by setting IFS to empty value.)
12042IFS=" ""	$as_nl"
12043
12044# Find who we are.  Look in the path if we contain no directory separator.
12045case $0 in #((
12046  *[\\/]* ) as_myself=$0 ;;
12047  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048for as_dir in $PATH
12049do
12050  IFS=$as_save_IFS
12051  test -z "$as_dir" && as_dir=.
12052    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12053  done
12054IFS=$as_save_IFS
12055
12056     ;;
12057esac
12058# We did not find ourselves, most probably we were run as `sh COMMAND'
12059# in which case we are not to be found in the path.
12060if test "x$as_myself" = x; then
12061  as_myself=$0
12062fi
12063if test ! -f "$as_myself"; then
12064  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12065  exit 1
12066fi
12067
12068# Unset variables that we do not need and which cause bugs (e.g. in
12069# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12070# suppresses any "Segmentation fault" message there.  '((' could
12071# trigger a bug in pdksh 5.2.14.
12072for as_var in BASH_ENV ENV MAIL MAILPATH
12073do eval test x\${$as_var+set} = xset \
12074  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12075done
12076PS1='$ '
12077PS2='> '
12078PS4='+ '
12079
12080# NLS nuisances.
12081LC_ALL=C
12082export LC_ALL
12083LANGUAGE=C
12084export LANGUAGE
12085
12086# CDPATH.
12087(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12088
12089
12090# as_fn_error STATUS ERROR [LINENO LOG_FD]
12091# ----------------------------------------
12092# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12093# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12094# script with STATUS, using 1 if that was 0.
12095as_fn_error ()
12096{
12097  as_status=$1; test $as_status -eq 0 && as_status=1
12098  if test "$4"; then
12099    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12100    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12101  fi
12102  $as_echo "$as_me: error: $2" >&2
12103  as_fn_exit $as_status
12104} # as_fn_error
12105
12106
12107# as_fn_set_status STATUS
12108# -----------------------
12109# Set $? to STATUS, without forking.
12110as_fn_set_status ()
12111{
12112  return $1
12113} # as_fn_set_status
12114
12115# as_fn_exit STATUS
12116# -----------------
12117# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12118as_fn_exit ()
12119{
12120  set +e
12121  as_fn_set_status $1
12122  exit $1
12123} # as_fn_exit
12124
12125# as_fn_unset VAR
12126# ---------------
12127# Portably unset VAR.
12128as_fn_unset ()
12129{
12130  { eval $1=; unset $1;}
12131}
12132as_unset=as_fn_unset
12133# as_fn_append VAR VALUE
12134# ----------------------
12135# Append the text in VALUE to the end of the definition contained in VAR. Take
12136# advantage of any shell optimizations that allow amortized linear growth over
12137# repeated appends, instead of the typical quadratic growth present in naive
12138# implementations.
12139if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12140  eval 'as_fn_append ()
12141  {
12142    eval $1+=\$2
12143  }'
12144else
12145  as_fn_append ()
12146  {
12147    eval $1=\$$1\$2
12148  }
12149fi # as_fn_append
12150
12151# as_fn_arith ARG...
12152# ------------------
12153# Perform arithmetic evaluation on the ARGs, and store the result in the
12154# global $as_val. Take advantage of shells that can avoid forks. The arguments
12155# must be portable across $(()) and expr.
12156if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12157  eval 'as_fn_arith ()
12158  {
12159    as_val=$(( $* ))
12160  }'
12161else
12162  as_fn_arith ()
12163  {
12164    as_val=`expr "$@" || test $? -eq 1`
12165  }
12166fi # as_fn_arith
12167
12168
12169if expr a : '\(a\)' >/dev/null 2>&1 &&
12170   test "X`expr 00001 : '.*\(...\)'`" = X001; then
12171  as_expr=expr
12172else
12173  as_expr=false
12174fi
12175
12176if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12177  as_basename=basename
12178else
12179  as_basename=false
12180fi
12181
12182if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12183  as_dirname=dirname
12184else
12185  as_dirname=false
12186fi
12187
12188as_me=`$as_basename -- "$0" ||
12189$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12190	 X"$0" : 'X\(//\)$' \| \
12191	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12192$as_echo X/"$0" |
12193    sed '/^.*\/\([^/][^/]*\)\/*$/{
12194	    s//\1/
12195	    q
12196	  }
12197	  /^X\/\(\/\/\)$/{
12198	    s//\1/
12199	    q
12200	  }
12201	  /^X\/\(\/\).*/{
12202	    s//\1/
12203	    q
12204	  }
12205	  s/.*/./; q'`
12206
12207# Avoid depending upon Character Ranges.
12208as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12209as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12210as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12211as_cr_digits='0123456789'
12212as_cr_alnum=$as_cr_Letters$as_cr_digits
12213
12214ECHO_C= ECHO_N= ECHO_T=
12215case `echo -n x` in #(((((
12216-n*)
12217  case `echo 'xy\c'` in
12218  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
12219  xy)  ECHO_C='\c';;
12220  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12221       ECHO_T='	';;
12222  esac;;
12223*)
12224  ECHO_N='-n';;
12225esac
12226
12227rm -f conf$$ conf$$.exe conf$$.file
12228if test -d conf$$.dir; then
12229  rm -f conf$$.dir/conf$$.file
12230else
12231  rm -f conf$$.dir
12232  mkdir conf$$.dir 2>/dev/null
12233fi
12234if (echo >conf$$.file) 2>/dev/null; then
12235  if ln -s conf$$.file conf$$ 2>/dev/null; then
12236    as_ln_s='ln -s'
12237    # ... but there are two gotchas:
12238    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12239    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12240    # In both cases, we have to default to `cp -p'.
12241    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12242      as_ln_s='cp -p'
12243  elif ln conf$$.file conf$$ 2>/dev/null; then
12244    as_ln_s=ln
12245  else
12246    as_ln_s='cp -p'
12247  fi
12248else
12249  as_ln_s='cp -p'
12250fi
12251rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12252rmdir conf$$.dir 2>/dev/null
12253
12254
12255# as_fn_mkdir_p
12256# -------------
12257# Create "$as_dir" as a directory, including parents if necessary.
12258as_fn_mkdir_p ()
12259{
12260
12261  case $as_dir in #(
12262  -*) as_dir=./$as_dir;;
12263  esac
12264  test -d "$as_dir" || eval $as_mkdir_p || {
12265    as_dirs=
12266    while :; do
12267      case $as_dir in #(
12268      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12269      *) as_qdir=$as_dir;;
12270      esac
12271      as_dirs="'$as_qdir' $as_dirs"
12272      as_dir=`$as_dirname -- "$as_dir" ||
12273$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12274	 X"$as_dir" : 'X\(//\)[^/]' \| \
12275	 X"$as_dir" : 'X\(//\)$' \| \
12276	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12277$as_echo X"$as_dir" |
12278    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12279	    s//\1/
12280	    q
12281	  }
12282	  /^X\(\/\/\)[^/].*/{
12283	    s//\1/
12284	    q
12285	  }
12286	  /^X\(\/\/\)$/{
12287	    s//\1/
12288	    q
12289	  }
12290	  /^X\(\/\).*/{
12291	    s//\1/
12292	    q
12293	  }
12294	  s/.*/./; q'`
12295      test -d "$as_dir" && break
12296    done
12297    test -z "$as_dirs" || eval "mkdir $as_dirs"
12298  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12299
12300
12301} # as_fn_mkdir_p
12302if mkdir -p . 2>/dev/null; then
12303  as_mkdir_p='mkdir -p "$as_dir"'
12304else
12305  test -d ./-p && rmdir ./-p
12306  as_mkdir_p=false
12307fi
12308
12309if test -x / >/dev/null 2>&1; then
12310  as_test_x='test -x'
12311else
12312  if ls -dL / >/dev/null 2>&1; then
12313    as_ls_L_option=L
12314  else
12315    as_ls_L_option=
12316  fi
12317  as_test_x='
12318    eval sh -c '\''
12319      if test -d "$1"; then
12320	test -d "$1/.";
12321      else
12322	case $1 in #(
12323	-*)set "./$1";;
12324	esac;
12325	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12326	???[sx]*):;;*)false;;esac;fi
12327    '\'' sh
12328  '
12329fi
12330as_executable_p=$as_test_x
12331
12332# Sed expression to map a string onto a valid CPP name.
12333as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12334
12335# Sed expression to map a string onto a valid variable name.
12336as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12337
12338
12339exec 6>&1
12340## ----------------------------------- ##
12341## Main body of $CONFIG_STATUS script. ##
12342## ----------------------------------- ##
12343_ASEOF
12344test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12345
12346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12347# Save the log message, to keep $0 and so on meaningful, and to
12348# report actual input values of CONFIG_FILES etc. instead of their
12349# values after options handling.
12350ac_log="
12351This file was extended by cgi $as_me 0.10, which was
12352generated by GNU Autoconf 2.66.  Invocation command line was
12353
12354  CONFIG_FILES    = $CONFIG_FILES
12355  CONFIG_HEADERS  = $CONFIG_HEADERS
12356  CONFIG_LINKS    = $CONFIG_LINKS
12357  CONFIG_COMMANDS = $CONFIG_COMMANDS
12358  $ $0 $@
12359
12360on `(hostname || uname -n) 2>/dev/null | sed 1q`
12361"
12362
12363_ACEOF
12364
12365case $ac_config_files in *"
12366"*) set x $ac_config_files; shift; ac_config_files=$*;;
12367esac
12368
12369case $ac_config_headers in *"
12370"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12371esac
12372
12373
12374cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12375# Files that config.status was made for.
12376config_files="$ac_config_files"
12377config_headers="$ac_config_headers"
12378config_commands="$ac_config_commands"
12379
12380_ACEOF
12381
12382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12383ac_cs_usage="\
12384\`$as_me' instantiates files and other configuration actions
12385from templates according to the current configuration.  Unless the files
12386and actions are specified as TAGs, all are instantiated by default.
12387
12388Usage: $0 [OPTION]... [TAG]...
12389
12390  -h, --help       print this help, then exit
12391  -V, --version    print version number and configuration settings, then exit
12392      --config     print configuration, then exit
12393  -q, --quiet, --silent
12394                   do not print progress messages
12395  -d, --debug      don't remove temporary files
12396      --recheck    update $as_me by reconfiguring in the same conditions
12397      --file=FILE[:TEMPLATE]
12398                   instantiate the configuration file FILE
12399      --header=FILE[:TEMPLATE]
12400                   instantiate the configuration header FILE
12401
12402Configuration files:
12403$config_files
12404
12405Configuration headers:
12406$config_headers
12407
12408Configuration commands:
12409$config_commands
12410
12411Report bugs to <courier-users@lists.sourceforge.net>."
12412
12413_ACEOF
12414cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12415ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12416ac_cs_version="\\
12417cgi config.status 0.10
12418configured by $0, generated by GNU Autoconf 2.66,
12419  with options \\"\$ac_cs_config\\"
12420
12421Copyright (C) 2010 Free Software Foundation, Inc.
12422This config.status script is free software; the Free Software Foundation
12423gives unlimited permission to copy, distribute and modify it."
12424
12425ac_pwd='$ac_pwd'
12426srcdir='$srcdir'
12427INSTALL='$INSTALL'
12428MKDIR_P='$MKDIR_P'
12429AWK='$AWK'
12430test -n "\$AWK" || AWK=awk
12431_ACEOF
12432
12433cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12434# The default lists apply if the user does not specify any file.
12435ac_need_defaults=:
12436while test $# != 0
12437do
12438  case $1 in
12439  --*=*)
12440    ac_option=`expr "X$1" : 'X\([^=]*\)='`
12441    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12442    ac_shift=:
12443    ;;
12444  *)
12445    ac_option=$1
12446    ac_optarg=$2
12447    ac_shift=shift
12448    ;;
12449  esac
12450
12451  case $ac_option in
12452  # Handling of the options.
12453  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12454    ac_cs_recheck=: ;;
12455  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12456    $as_echo "$ac_cs_version"; exit ;;
12457  --config | --confi | --conf | --con | --co | --c )
12458    $as_echo "$ac_cs_config"; exit ;;
12459  --debug | --debu | --deb | --de | --d | -d )
12460    debug=: ;;
12461  --file | --fil | --fi | --f )
12462    $ac_shift
12463    case $ac_optarg in
12464    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12465    esac
12466    as_fn_append CONFIG_FILES " '$ac_optarg'"
12467    ac_need_defaults=false;;
12468  --header | --heade | --head | --hea )
12469    $ac_shift
12470    case $ac_optarg in
12471    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12472    esac
12473    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12474    ac_need_defaults=false;;
12475  --he | --h)
12476    # Conflict between --help and --header
12477    as_fn_error $? "ambiguous option: \`$1'
12478Try \`$0 --help' for more information.";;
12479  --help | --hel | -h )
12480    $as_echo "$ac_cs_usage"; exit ;;
12481  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12482  | -silent | --silent | --silen | --sile | --sil | --si | --s)
12483    ac_cs_silent=: ;;
12484
12485  # This is an error.
12486  -*) as_fn_error $? "unrecognized option: \`$1'
12487Try \`$0 --help' for more information." ;;
12488
12489  *) as_fn_append ac_config_targets " $1"
12490     ac_need_defaults=false ;;
12491
12492  esac
12493  shift
12494done
12495
12496ac_configure_extra_args=
12497
12498if $ac_cs_silent; then
12499  exec 6>/dev/null
12500  ac_configure_extra_args="$ac_configure_extra_args --silent"
12501fi
12502
12503_ACEOF
12504cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12505if \$ac_cs_recheck; then
12506  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12507  shift
12508  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12509  CONFIG_SHELL='$SHELL'
12510  export CONFIG_SHELL
12511  exec "\$@"
12512fi
12513
12514_ACEOF
12515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12516exec 5>>config.log
12517{
12518  echo
12519  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12520## Running $as_me. ##
12521_ASBOX
12522  $as_echo "$ac_log"
12523} >&5
12524
12525_ACEOF
12526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12527#
12528# INIT-COMMANDS
12529#
12530AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12531
12532
12533# The HP-UX ksh and POSIX shell print the target directory to stdout
12534# if CDPATH is set.
12535(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12536
12537sed_quote_subst='$sed_quote_subst'
12538double_quote_subst='$double_quote_subst'
12539delay_variable_subst='$delay_variable_subst'
12540macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
12541macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
12542enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
12543enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
12544pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
12545enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
12546SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
12547ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
12548host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
12549host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
12550host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
12551build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
12552build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
12553build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
12554SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
12555Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
12556GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
12557EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
12558FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
12559LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
12560NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
12561LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
12562max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
12563ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
12564exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
12565lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
12566lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
12567lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
12568reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
12569reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
12570OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
12571deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
12572file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
12573AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
12574AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
12575STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
12576RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
12577old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12578old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12579old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
12580lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
12581CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
12582CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
12583compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
12584GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
12585lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
12586lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
12587lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
12588lt_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"`'
12589objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
12590MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
12591lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
12592lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
12593lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
12594lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
12595lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
12596need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
12597DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
12598NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
12599LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
12600OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
12601OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
12602libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
12603shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
12604extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12605archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
12606enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
12607export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
12608whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
12609compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
12610old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
12611old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
12612archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
12613archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12614module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
12615module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
12616with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
12617allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
12618no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
12619hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
12620hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12621hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12622hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12623hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12624hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12625hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12626hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12627inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12628link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12629fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12630always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12631export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12632exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12633include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12634prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12635file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12636variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12637need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12638need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12639version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12640runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12641shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12642shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12643libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12644library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12645soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12646install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12647postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12648postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12649finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12650finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12651hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12652sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12653sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12654hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12655enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12656enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12657enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12658old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12659striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12660
12661LTCC='$LTCC'
12662LTCFLAGS='$LTCFLAGS'
12663compiler='$compiler_DEFAULT'
12664
12665# A function that is used when there is no print builtin or printf.
12666func_fallback_echo ()
12667{
12668  eval 'cat <<_LTECHO_EOF
12669\$1
12670_LTECHO_EOF'
12671}
12672
12673# Quote evaled strings.
12674for var in SHELL \
12675ECHO \
12676SED \
12677GREP \
12678EGREP \
12679FGREP \
12680LD \
12681NM \
12682LN_S \
12683lt_SP2NL \
12684lt_NL2SP \
12685reload_flag \
12686OBJDUMP \
12687deplibs_check_method \
12688file_magic_cmd \
12689AR \
12690AR_FLAGS \
12691STRIP \
12692RANLIB \
12693CC \
12694CFLAGS \
12695compiler \
12696lt_cv_sys_global_symbol_pipe \
12697lt_cv_sys_global_symbol_to_cdecl \
12698lt_cv_sys_global_symbol_to_c_name_address \
12699lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12700lt_prog_compiler_no_builtin_flag \
12701lt_prog_compiler_wl \
12702lt_prog_compiler_pic \
12703lt_prog_compiler_static \
12704lt_cv_prog_compiler_c_o \
12705need_locks \
12706DSYMUTIL \
12707NMEDIT \
12708LIPO \
12709OTOOL \
12710OTOOL64 \
12711shrext_cmds \
12712export_dynamic_flag_spec \
12713whole_archive_flag_spec \
12714compiler_needs_object \
12715with_gnu_ld \
12716allow_undefined_flag \
12717no_undefined_flag \
12718hardcode_libdir_flag_spec \
12719hardcode_libdir_flag_spec_ld \
12720hardcode_libdir_separator \
12721fix_srcfile_path \
12722exclude_expsyms \
12723include_expsyms \
12724file_list_spec \
12725variables_saved_for_relink \
12726libname_spec \
12727library_names_spec \
12728soname_spec \
12729install_override_mode \
12730finish_eval \
12731old_striplib \
12732striplib; do
12733    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12734    *[\\\\\\\`\\"\\\$]*)
12735      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12736      ;;
12737    *)
12738      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12739      ;;
12740    esac
12741done
12742
12743# Double-quote double-evaled strings.
12744for var in reload_cmds \
12745old_postinstall_cmds \
12746old_postuninstall_cmds \
12747old_archive_cmds \
12748extract_expsyms_cmds \
12749old_archive_from_new_cmds \
12750old_archive_from_expsyms_cmds \
12751archive_cmds \
12752archive_expsym_cmds \
12753module_cmds \
12754module_expsym_cmds \
12755export_symbols_cmds \
12756prelink_cmds \
12757postinstall_cmds \
12758postuninstall_cmds \
12759finish_cmds \
12760sys_lib_search_path_spec \
12761sys_lib_dlsearch_path_spec; do
12762    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12763    *[\\\\\\\`\\"\\\$]*)
12764      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12765      ;;
12766    *)
12767      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12768      ;;
12769    esac
12770done
12771
12772ac_aux_dir='$ac_aux_dir'
12773xsi_shell='$xsi_shell'
12774lt_shell_append='$lt_shell_append'
12775
12776# See if we are running on zsh, and set the options which allow our
12777# commands through without removal of \ escapes INIT.
12778if test -n "\${ZSH_VERSION+set}" ; then
12779   setopt NO_GLOB_SUBST
12780fi
12781
12782
12783    PACKAGE='$PACKAGE'
12784    VERSION='$VERSION'
12785    TIMESTAMP='$TIMESTAMP'
12786    RM='$RM'
12787    ofile='$ofile'
12788
12789
12790
12791
12792_ACEOF
12793
12794cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12795
12796# Handling of arguments.
12797for ac_config_target in $ac_config_targets
12798do
12799  case $ac_config_target in
12800    "cgi_config.h") CONFIG_HEADERS="$CONFIG_HEADERS cgi_config.h" ;;
12801    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12802    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12803    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12804
12805  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12806  esac
12807done
12808
12809
12810# If the user did not use the arguments to specify the items to instantiate,
12811# then the envvar interface is used.  Set only those that are not.
12812# We use the long form for the default assignment because of an extremely
12813# bizarre bug on SunOS 4.1.3.
12814if $ac_need_defaults; then
12815  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12816  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12817  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12818fi
12819
12820# Have a temporary directory for convenience.  Make it in the build tree
12821# simply because there is no reason against having it here, and in addition,
12822# creating and moving files from /tmp can sometimes cause problems.
12823# Hook for its removal unless debugging.
12824# Note that there is a small window in which the directory will not be cleaned:
12825# after its creation but before its name has been assigned to `$tmp'.
12826$debug ||
12827{
12828  tmp=
12829  trap 'exit_status=$?
12830  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12831' 0
12832  trap 'as_fn_exit 1' 1 2 13 15
12833}
12834# Create a (secure) tmp directory for tmp files.
12835
12836{
12837  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12838  test -n "$tmp" && test -d "$tmp"
12839}  ||
12840{
12841  tmp=./conf$$-$RANDOM
12842  (umask 077 && mkdir "$tmp")
12843} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12844
12845# Set up the scripts for CONFIG_FILES section.
12846# No need to generate them if there are no CONFIG_FILES.
12847# This happens for instance with `./config.status config.h'.
12848if test -n "$CONFIG_FILES"; then
12849
12850
12851ac_cr=`echo X | tr X '\015'`
12852# On cygwin, bash can eat \r inside `` if the user requested igncr.
12853# But we know of no other shell where ac_cr would be empty at this
12854# point, so we can use a bashism as a fallback.
12855if test "x$ac_cr" = x; then
12856  eval ac_cr=\$\'\\r\'
12857fi
12858ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12859if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12860  ac_cs_awk_cr='\\r'
12861else
12862  ac_cs_awk_cr=$ac_cr
12863fi
12864
12865echo 'BEGIN {' >"$tmp/subs1.awk" &&
12866_ACEOF
12867
12868
12869{
12870  echo "cat >conf$$subs.awk <<_ACEOF" &&
12871  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12872  echo "_ACEOF"
12873} >conf$$subs.sh ||
12874  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12875ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12876ac_delim='%!_!# '
12877for ac_last_try in false false false false false :; do
12878  . ./conf$$subs.sh ||
12879    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12880
12881  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12882  if test $ac_delim_n = $ac_delim_num; then
12883    break
12884  elif $ac_last_try; then
12885    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12886  else
12887    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12888  fi
12889done
12890rm -f conf$$subs.sh
12891
12892cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12893cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12894_ACEOF
12895sed -n '
12896h
12897s/^/S["/; s/!.*/"]=/
12898p
12899g
12900s/^[^!]*!//
12901:repl
12902t repl
12903s/'"$ac_delim"'$//
12904t delim
12905:nl
12906h
12907s/\(.\{148\}\)..*/\1/
12908t more1
12909s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12910p
12911n
12912b repl
12913:more1
12914s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12915p
12916g
12917s/.\{148\}//
12918t nl
12919:delim
12920h
12921s/\(.\{148\}\)..*/\1/
12922t more2
12923s/["\\]/\\&/g; s/^/"/; s/$/"/
12924p
12925b
12926:more2
12927s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12928p
12929g
12930s/.\{148\}//
12931t delim
12932' <conf$$subs.awk | sed '
12933/^[^""]/{
12934  N
12935  s/\n//
12936}
12937' >>$CONFIG_STATUS || ac_write_fail=1
12938rm -f conf$$subs.awk
12939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12940_ACAWK
12941cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12942  for (key in S) S_is_set[key] = 1
12943  FS = ""
12944
12945}
12946{
12947  line = $ 0
12948  nfields = split(line, field, "@")
12949  substed = 0
12950  len = length(field[1])
12951  for (i = 2; i < nfields; i++) {
12952    key = field[i]
12953    keylen = length(key)
12954    if (S_is_set[key]) {
12955      value = S[key]
12956      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12957      len += length(value) + length(field[++i])
12958      substed = 1
12959    } else
12960      len += 1 + keylen
12961  }
12962
12963  print line
12964}
12965
12966_ACAWK
12967_ACEOF
12968cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12970  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12971else
12972  cat
12973fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12974  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12975_ACEOF
12976
12977# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12978# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12979# trailing colons and then remove the whole line if VPATH becomes empty
12980# (actually we leave an empty line to preserve line numbers).
12981if test "x$srcdir" = x.; then
12982  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
12983h
12984s///
12985s/^/:/
12986s/[	 ]*$/:/
12987s/:\$(srcdir):/:/g
12988s/:\${srcdir}:/:/g
12989s/:@srcdir@:/:/g
12990s/^:*//
12991s/:*$//
12992x
12993s/\(=[	 ]*\).*/\1/
12994G
12995s/\n//
12996s/^[^=]*=[	 ]*$//
12997}'
12998fi
12999
13000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001fi # test -n "$CONFIG_FILES"
13002
13003# Set up the scripts for CONFIG_HEADERS section.
13004# No need to generate them if there are no CONFIG_HEADERS.
13005# This happens for instance with `./config.status Makefile'.
13006if test -n "$CONFIG_HEADERS"; then
13007cat >"$tmp/defines.awk" <<\_ACAWK ||
13008BEGIN {
13009_ACEOF
13010
13011# Transform confdefs.h into an awk script `defines.awk', embedded as
13012# here-document in config.status, that substitutes the proper values into
13013# config.h.in to produce config.h.
13014
13015# Create a delimiter string that does not exist in confdefs.h, to ease
13016# handling of long lines.
13017ac_delim='%!_!# '
13018for ac_last_try in false false :; do
13019  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13020  if test -z "$ac_t"; then
13021    break
13022  elif $ac_last_try; then
13023    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13024  else
13025    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13026  fi
13027done
13028
13029# For the awk script, D is an array of macro values keyed by name,
13030# likewise P contains macro parameters if any.  Preserve backslash
13031# newline sequences.
13032
13033ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13034sed -n '
13035s/.\{148\}/&'"$ac_delim"'/g
13036t rset
13037:rset
13038s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
13039t def
13040d
13041:def
13042s/\\$//
13043t bsnl
13044s/["\\]/\\&/g
13045s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13046D["\1"]=" \3"/p
13047s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
13048d
13049:bsnl
13050s/["\\]/\\&/g
13051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
13052D["\1"]=" \3\\\\\\n"\\/p
13053t cont
13054s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13055t cont
13056d
13057:cont
13058n
13059s/.\{148\}/&'"$ac_delim"'/g
13060t clear
13061:clear
13062s/\\$//
13063t bsnlc
13064s/["\\]/\\&/g; s/^/"/; s/$/"/p
13065d
13066:bsnlc
13067s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13068b cont
13069' <confdefs.h | sed '
13070s/'"$ac_delim"'/"\\\
13071"/g' >>$CONFIG_STATUS || ac_write_fail=1
13072
13073cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13074  for (key in D) D_is_set[key] = 1
13075  FS = ""
13076}
13077/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13078  line = \$ 0
13079  split(line, arg, " ")
13080  if (arg[1] == "#") {
13081    defundef = arg[2]
13082    mac1 = arg[3]
13083  } else {
13084    defundef = substr(arg[1], 2)
13085    mac1 = arg[2]
13086  }
13087  split(mac1, mac2, "(") #)
13088  macro = mac2[1]
13089  prefix = substr(line, 1, index(line, defundef) - 1)
13090  if (D_is_set[macro]) {
13091    # Preserve the white space surrounding the "#".
13092    print prefix "define", macro P[macro] D[macro]
13093    next
13094  } else {
13095    # Replace #undef with comments.  This is necessary, for example,
13096    # in the case of _POSIX_SOURCE, which is predefined and required
13097    # on some systems where configure will not decide to define it.
13098    if (defundef == "undef") {
13099      print "/*", prefix defundef, macro, "*/"
13100      next
13101    }
13102  }
13103}
13104{ print }
13105_ACAWK
13106_ACEOF
13107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13108  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13109fi # test -n "$CONFIG_HEADERS"
13110
13111
13112eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
13113shift
13114for ac_tag
13115do
13116  case $ac_tag in
13117  :[FHLC]) ac_mode=$ac_tag; continue;;
13118  esac
13119  case $ac_mode$ac_tag in
13120  :[FHL]*:*);;
13121  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13122  :[FH]-) ac_tag=-:-;;
13123  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13124  esac
13125  ac_save_IFS=$IFS
13126  IFS=:
13127  set x $ac_tag
13128  IFS=$ac_save_IFS
13129  shift
13130  ac_file=$1
13131  shift
13132
13133  case $ac_mode in
13134  :L) ac_source=$1;;
13135  :[FH])
13136    ac_file_inputs=
13137    for ac_f
13138    do
13139      case $ac_f in
13140      -) ac_f="$tmp/stdin";;
13141      *) # Look for the file first in the build tree, then in the source tree
13142	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
13143	 # because $ac_f cannot contain `:'.
13144	 test -f "$ac_f" ||
13145	   case $ac_f in
13146	   [\\/$]*) false;;
13147	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13148	   esac ||
13149	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13150      esac
13151      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13152      as_fn_append ac_file_inputs " '$ac_f'"
13153    done
13154
13155    # Let's still pretend it is `configure' which instantiates (i.e., don't
13156    # use $as_me), people would be surprised to read:
13157    #    /* config.h.  Generated by config.status.  */
13158    configure_input='Generated from '`
13159	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13160	`' by configure.'
13161    if test x"$ac_file" != x-; then
13162      configure_input="$ac_file.  $configure_input"
13163      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13164$as_echo "$as_me: creating $ac_file" >&6;}
13165    fi
13166    # Neutralize special characters interpreted by sed in replacement strings.
13167    case $configure_input in #(
13168    *\&* | *\|* | *\\* )
13169       ac_sed_conf_input=`$as_echo "$configure_input" |
13170       sed 's/[\\\\&|]/\\\\&/g'`;; #(
13171    *) ac_sed_conf_input=$configure_input;;
13172    esac
13173
13174    case $ac_tag in
13175    *:-:* | *:-) cat >"$tmp/stdin" \
13176      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13177    esac
13178    ;;
13179  esac
13180
13181  ac_dir=`$as_dirname -- "$ac_file" ||
13182$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13183	 X"$ac_file" : 'X\(//\)[^/]' \| \
13184	 X"$ac_file" : 'X\(//\)$' \| \
13185	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13186$as_echo X"$ac_file" |
13187    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13188	    s//\1/
13189	    q
13190	  }
13191	  /^X\(\/\/\)[^/].*/{
13192	    s//\1/
13193	    q
13194	  }
13195	  /^X\(\/\/\)$/{
13196	    s//\1/
13197	    q
13198	  }
13199	  /^X\(\/\).*/{
13200	    s//\1/
13201	    q
13202	  }
13203	  s/.*/./; q'`
13204  as_dir="$ac_dir"; as_fn_mkdir_p
13205  ac_builddir=.
13206
13207case "$ac_dir" in
13208.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13209*)
13210  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13211  # A ".." for each directory in $ac_dir_suffix.
13212  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13213  case $ac_top_builddir_sub in
13214  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13215  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13216  esac ;;
13217esac
13218ac_abs_top_builddir=$ac_pwd
13219ac_abs_builddir=$ac_pwd$ac_dir_suffix
13220# for backward compatibility:
13221ac_top_builddir=$ac_top_build_prefix
13222
13223case $srcdir in
13224  .)  # We are building in place.
13225    ac_srcdir=.
13226    ac_top_srcdir=$ac_top_builddir_sub
13227    ac_abs_top_srcdir=$ac_pwd ;;
13228  [\\/]* | ?:[\\/]* )  # Absolute name.
13229    ac_srcdir=$srcdir$ac_dir_suffix;
13230    ac_top_srcdir=$srcdir
13231    ac_abs_top_srcdir=$srcdir ;;
13232  *) # Relative name.
13233    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13234    ac_top_srcdir=$ac_top_build_prefix$srcdir
13235    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13236esac
13237ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13238
13239
13240  case $ac_mode in
13241  :F)
13242  #
13243  # CONFIG_FILE
13244  #
13245
13246  case $INSTALL in
13247  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13248  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13249  esac
13250  ac_MKDIR_P=$MKDIR_P
13251  case $MKDIR_P in
13252  [\\/$]* | ?:[\\/]* ) ;;
13253  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13254  esac
13255_ACEOF
13256
13257cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13258# If the template does not know about datarootdir, expand it.
13259# FIXME: This hack should be removed a few years after 2.60.
13260ac_datarootdir_hack=; ac_datarootdir_seen=
13261ac_sed_dataroot='
13262/datarootdir/ {
13263  p
13264  q
13265}
13266/@datadir@/p
13267/@docdir@/p
13268/@infodir@/p
13269/@localedir@/p
13270/@mandir@/p'
13271case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13272*datarootdir*) ac_datarootdir_seen=yes;;
13273*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13274  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13275$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13276_ACEOF
13277cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13278  ac_datarootdir_hack='
13279  s&@datadir@&$datadir&g
13280  s&@docdir@&$docdir&g
13281  s&@infodir@&$infodir&g
13282  s&@localedir@&$localedir&g
13283  s&@mandir@&$mandir&g
13284  s&\\\${datarootdir}&$datarootdir&g' ;;
13285esac
13286_ACEOF
13287
13288# Neutralize VPATH when `$srcdir' = `.'.
13289# Shell code in configure.ac might set extrasub.
13290# FIXME: do we really want to maintain this feature?
13291cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13292ac_sed_extra="$ac_vpsub
13293$extrasub
13294_ACEOF
13295cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13296:t
13297/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13298s|@configure_input@|$ac_sed_conf_input|;t t
13299s&@top_builddir@&$ac_top_builddir_sub&;t t
13300s&@top_build_prefix@&$ac_top_build_prefix&;t t
13301s&@srcdir@&$ac_srcdir&;t t
13302s&@abs_srcdir@&$ac_abs_srcdir&;t t
13303s&@top_srcdir@&$ac_top_srcdir&;t t
13304s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13305s&@builddir@&$ac_builddir&;t t
13306s&@abs_builddir@&$ac_abs_builddir&;t t
13307s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13308s&@INSTALL@&$ac_INSTALL&;t t
13309s&@MKDIR_P@&$ac_MKDIR_P&;t t
13310$ac_datarootdir_hack
13311"
13312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13313  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13314
13315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13316  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13317  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13318  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13319which seems to be undefined.  Please make sure it is defined" >&5
13320$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13321which seems to be undefined.  Please make sure it is defined" >&2;}
13322
13323  rm -f "$tmp/stdin"
13324  case $ac_file in
13325  -) cat "$tmp/out" && rm -f "$tmp/out";;
13326  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13327  esac \
13328  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13329 ;;
13330  :H)
13331  #
13332  # CONFIG_HEADER
13333  #
13334  if test x"$ac_file" != x-; then
13335    {
13336      $as_echo "/* $configure_input  */" \
13337      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13338    } >"$tmp/config.h" \
13339      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13340    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13341      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13342$as_echo "$as_me: $ac_file is unchanged" >&6;}
13343    else
13344      rm -f "$ac_file"
13345      mv "$tmp/config.h" "$ac_file" \
13346	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13347    fi
13348  else
13349    $as_echo "/* $configure_input  */" \
13350      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13351      || as_fn_error $? "could not create -" "$LINENO" 5
13352  fi
13353# Compute "$ac_file"'s index in $config_headers.
13354_am_arg="$ac_file"
13355_am_stamp_count=1
13356for _am_header in $config_headers :; do
13357  case $_am_header in
13358    $_am_arg | $_am_arg:* )
13359      break ;;
13360    * )
13361      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
13362  esac
13363done
13364echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
13365$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13366	 X"$_am_arg" : 'X\(//\)[^/]' \| \
13367	 X"$_am_arg" : 'X\(//\)$' \| \
13368	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
13369$as_echo X"$_am_arg" |
13370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13371	    s//\1/
13372	    q
13373	  }
13374	  /^X\(\/\/\)[^/].*/{
13375	    s//\1/
13376	    q
13377	  }
13378	  /^X\(\/\/\)$/{
13379	    s//\1/
13380	    q
13381	  }
13382	  /^X\(\/\).*/{
13383	    s//\1/
13384	    q
13385	  }
13386	  s/.*/./; q'`/stamp-h$_am_stamp_count
13387 ;;
13388
13389  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13390$as_echo "$as_me: executing $ac_file commands" >&6;}
13391 ;;
13392  esac
13393
13394
13395  case $ac_file$ac_mode in
13396    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13397  # Autoconf 2.62 quotes --file arguments for eval, but not when files
13398  # are listed without --file.  Let's play safe and only enable the eval
13399  # if we detect the quoting.
13400  case $CONFIG_FILES in
13401  *\'*) eval set x "$CONFIG_FILES" ;;
13402  *)   set x $CONFIG_FILES ;;
13403  esac
13404  shift
13405  for mf
13406  do
13407    # Strip MF so we end up with the name of the file.
13408    mf=`echo "$mf" | sed -e 's/:.*$//'`
13409    # Check whether this is an Automake generated Makefile or not.
13410    # We used to match only the files named `Makefile.in', but
13411    # some people rename them; so instead we look at the file content.
13412    # Grep'ing the first line is not enough: some people post-process
13413    # each Makefile.in and add a new line on top of each file to say so.
13414    # Grep'ing the whole file is not good either: AIX grep has a line
13415    # limit of 2048, but all sed's we know have understand at least 4000.
13416    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13417      dirpart=`$as_dirname -- "$mf" ||
13418$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13419	 X"$mf" : 'X\(//\)[^/]' \| \
13420	 X"$mf" : 'X\(//\)$' \| \
13421	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13422$as_echo X"$mf" |
13423    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13424	    s//\1/
13425	    q
13426	  }
13427	  /^X\(\/\/\)[^/].*/{
13428	    s//\1/
13429	    q
13430	  }
13431	  /^X\(\/\/\)$/{
13432	    s//\1/
13433	    q
13434	  }
13435	  /^X\(\/\).*/{
13436	    s//\1/
13437	    q
13438	  }
13439	  s/.*/./; q'`
13440    else
13441      continue
13442    fi
13443    # Extract the definition of DEPDIR, am__include, and am__quote
13444    # from the Makefile without running `make'.
13445    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13446    test -z "$DEPDIR" && continue
13447    am__include=`sed -n 's/^am__include = //p' < "$mf"`
13448    test -z "am__include" && continue
13449    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13450    # When using ansi2knr, U may be empty or an underscore; expand it
13451    U=`sed -n 's/^U = //p' < "$mf"`
13452    # Find all dependency output files, they are included files with
13453    # $(DEPDIR) in their names.  We invoke sed twice because it is the
13454    # simplest approach to changing $(DEPDIR) to its actual value in the
13455    # expansion.
13456    for file in `sed -n "
13457      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13458	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13459      # Make sure the directory exists.
13460      test -f "$dirpart/$file" && continue
13461      fdir=`$as_dirname -- "$file" ||
13462$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13463	 X"$file" : 'X\(//\)[^/]' \| \
13464	 X"$file" : 'X\(//\)$' \| \
13465	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13466$as_echo X"$file" |
13467    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13468	    s//\1/
13469	    q
13470	  }
13471	  /^X\(\/\/\)[^/].*/{
13472	    s//\1/
13473	    q
13474	  }
13475	  /^X\(\/\/\)$/{
13476	    s//\1/
13477	    q
13478	  }
13479	  /^X\(\/\).*/{
13480	    s//\1/
13481	    q
13482	  }
13483	  s/.*/./; q'`
13484      as_dir=$dirpart/$fdir; as_fn_mkdir_p
13485      # echo "creating $dirpart/$file"
13486      echo '# dummy' > "$dirpart/$file"
13487    done
13488  done
13489}
13490 ;;
13491    "libtool":C)
13492
13493    # See if we are running on zsh, and set the options which allow our
13494    # commands through without removal of \ escapes.
13495    if test -n "${ZSH_VERSION+set}" ; then
13496      setopt NO_GLOB_SUBST
13497    fi
13498
13499    cfgfile="${ofile}T"
13500    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13501    $RM "$cfgfile"
13502
13503    cat <<_LT_EOF >> "$cfgfile"
13504#! $SHELL
13505
13506# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13507# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13508# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13509# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13510#
13511#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13512#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
13513#                 Inc.
13514#   Written by Gordon Matzigkeit, 1996
13515#
13516#   This file is part of GNU Libtool.
13517#
13518# GNU Libtool is free software; you can redistribute it and/or
13519# modify it under the terms of the GNU General Public License as
13520# published by the Free Software Foundation; either version 2 of
13521# the License, or (at your option) any later version.
13522#
13523# As a special exception to the GNU General Public License,
13524# if you distribute this file as part of a program or library that
13525# is built using GNU Libtool, you may include this file under the
13526# same distribution terms that you use for the rest of that program.
13527#
13528# GNU Libtool is distributed in the hope that it will be useful,
13529# but WITHOUT ANY WARRANTY; without even the implied warranty of
13530# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13531# GNU General Public License for more details.
13532#
13533# You should have received a copy of the GNU General Public License
13534# along with GNU Libtool; see the file COPYING.  If not, a copy
13535# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13536# obtained by writing to the Free Software Foundation, Inc.,
13537# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13538
13539
13540# The names of the tagged configurations supported by this script.
13541available_tags=""
13542
13543# ### BEGIN LIBTOOL CONFIG
13544
13545# Which release of libtool.m4 was used?
13546macro_version=$macro_version
13547macro_revision=$macro_revision
13548
13549# Whether or not to build shared libraries.
13550build_libtool_libs=$enable_shared
13551
13552# Whether or not to build static libraries.
13553build_old_libs=$enable_static
13554
13555# What type of objects to build.
13556pic_mode=$pic_mode
13557
13558# Whether or not to optimize for fast installation.
13559fast_install=$enable_fast_install
13560
13561# Shell to use when invoking shell scripts.
13562SHELL=$lt_SHELL
13563
13564# An echo program that protects backslashes.
13565ECHO=$lt_ECHO
13566
13567# The host system.
13568host_alias=$host_alias
13569host=$host
13570host_os=$host_os
13571
13572# The build system.
13573build_alias=$build_alias
13574build=$build
13575build_os=$build_os
13576
13577# A sed program that does not truncate output.
13578SED=$lt_SED
13579
13580# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13581Xsed="\$SED -e 1s/^X//"
13582
13583# A grep program that handles long lines.
13584GREP=$lt_GREP
13585
13586# An ERE matcher.
13587EGREP=$lt_EGREP
13588
13589# A literal string matcher.
13590FGREP=$lt_FGREP
13591
13592# A BSD- or MS-compatible name lister.
13593NM=$lt_NM
13594
13595# Whether we need soft or hard links.
13596LN_S=$lt_LN_S
13597
13598# What is the maximum length of a command?
13599max_cmd_len=$max_cmd_len
13600
13601# Object file suffix (normally "o").
13602objext=$ac_objext
13603
13604# Executable file suffix (normally "").
13605exeext=$exeext
13606
13607# whether the shell understands "unset".
13608lt_unset=$lt_unset
13609
13610# turn spaces into newlines.
13611SP2NL=$lt_lt_SP2NL
13612
13613# turn newlines into spaces.
13614NL2SP=$lt_lt_NL2SP
13615
13616# An object symbol dumper.
13617OBJDUMP=$lt_OBJDUMP
13618
13619# Method to check whether dependent libraries are shared objects.
13620deplibs_check_method=$lt_deplibs_check_method
13621
13622# Command to use when deplibs_check_method == "file_magic".
13623file_magic_cmd=$lt_file_magic_cmd
13624
13625# The archiver.
13626AR=$lt_AR
13627AR_FLAGS=$lt_AR_FLAGS
13628
13629# A symbol stripping program.
13630STRIP=$lt_STRIP
13631
13632# Commands used to install an old-style archive.
13633RANLIB=$lt_RANLIB
13634old_postinstall_cmds=$lt_old_postinstall_cmds
13635old_postuninstall_cmds=$lt_old_postuninstall_cmds
13636
13637# Whether to use a lock for old archive extraction.
13638lock_old_archive_extraction=$lock_old_archive_extraction
13639
13640# A C compiler.
13641LTCC=$lt_CC
13642
13643# LTCC compiler flags.
13644LTCFLAGS=$lt_CFLAGS
13645
13646# Take the output of nm and produce a listing of raw symbols and C names.
13647global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13648
13649# Transform the output of nm in a proper C declaration.
13650global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13651
13652# Transform the output of nm in a C name address pair.
13653global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13654
13655# Transform the output of nm in a C name address pair when lib prefix is needed.
13656global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13657
13658# The name of the directory that contains temporary libtool files.
13659objdir=$objdir
13660
13661# Used to examine libraries when file_magic_cmd begins with "file".
13662MAGIC_CMD=$MAGIC_CMD
13663
13664# Must we lock files when doing compilation?
13665need_locks=$lt_need_locks
13666
13667# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13668DSYMUTIL=$lt_DSYMUTIL
13669
13670# Tool to change global to local symbols on Mac OS X.
13671NMEDIT=$lt_NMEDIT
13672
13673# Tool to manipulate fat objects and archives on Mac OS X.
13674LIPO=$lt_LIPO
13675
13676# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13677OTOOL=$lt_OTOOL
13678
13679# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13680OTOOL64=$lt_OTOOL64
13681
13682# Old archive suffix (normally "a").
13683libext=$libext
13684
13685# Shared library suffix (normally ".so").
13686shrext_cmds=$lt_shrext_cmds
13687
13688# The commands to extract the exported symbol list from a shared archive.
13689extract_expsyms_cmds=$lt_extract_expsyms_cmds
13690
13691# Variables whose values should be saved in libtool wrapper scripts and
13692# restored at link time.
13693variables_saved_for_relink=$lt_variables_saved_for_relink
13694
13695# Do we need the "lib" prefix for modules?
13696need_lib_prefix=$need_lib_prefix
13697
13698# Do we need a version for libraries?
13699need_version=$need_version
13700
13701# Library versioning type.
13702version_type=$version_type
13703
13704# Shared library runtime path variable.
13705runpath_var=$runpath_var
13706
13707# Shared library path variable.
13708shlibpath_var=$shlibpath_var
13709
13710# Is shlibpath searched before the hard-coded library search path?
13711shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13712
13713# Format of library name prefix.
13714libname_spec=$lt_libname_spec
13715
13716# List of archive names.  First name is the real one, the rest are links.
13717# The last name is the one that the linker finds with -lNAME
13718library_names_spec=$lt_library_names_spec
13719
13720# The coded name of the library, if different from the real name.
13721soname_spec=$lt_soname_spec
13722
13723# Permission mode override for installation of shared libraries.
13724install_override_mode=$lt_install_override_mode
13725
13726# Command to use after installation of a shared archive.
13727postinstall_cmds=$lt_postinstall_cmds
13728
13729# Command to use after uninstallation of a shared archive.
13730postuninstall_cmds=$lt_postuninstall_cmds
13731
13732# Commands used to finish a libtool library installation in a directory.
13733finish_cmds=$lt_finish_cmds
13734
13735# As "finish_cmds", except a single script fragment to be evaled but
13736# not shown.
13737finish_eval=$lt_finish_eval
13738
13739# Whether we should hardcode library paths into libraries.
13740hardcode_into_libs=$hardcode_into_libs
13741
13742# Compile-time system search path for libraries.
13743sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13744
13745# Run-time system search path for libraries.
13746sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13747
13748# Whether dlopen is supported.
13749dlopen_support=$enable_dlopen
13750
13751# Whether dlopen of programs is supported.
13752dlopen_self=$enable_dlopen_self
13753
13754# Whether dlopen of statically linked programs is supported.
13755dlopen_self_static=$enable_dlopen_self_static
13756
13757# Commands to strip libraries.
13758old_striplib=$lt_old_striplib
13759striplib=$lt_striplib
13760
13761
13762# The linker used to build libraries.
13763LD=$lt_LD
13764
13765# How to create reloadable object files.
13766reload_flag=$lt_reload_flag
13767reload_cmds=$lt_reload_cmds
13768
13769# Commands used to build an old-style archive.
13770old_archive_cmds=$lt_old_archive_cmds
13771
13772# A language specific compiler.
13773CC=$lt_compiler
13774
13775# Is the compiler the GNU compiler?
13776with_gcc=$GCC
13777
13778# Compiler flag to turn off builtin functions.
13779no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13780
13781# How to pass a linker flag through the compiler.
13782wl=$lt_lt_prog_compiler_wl
13783
13784# Additional compiler flags for building library objects.
13785pic_flag=$lt_lt_prog_compiler_pic
13786
13787# Compiler flag to prevent dynamic linking.
13788link_static_flag=$lt_lt_prog_compiler_static
13789
13790# Does compiler simultaneously support -c and -o options?
13791compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13792
13793# Whether or not to add -lc for building shared libraries.
13794build_libtool_need_lc=$archive_cmds_need_lc
13795
13796# Whether or not to disallow shared libs when runtime libs are static.
13797allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13798
13799# Compiler flag to allow reflexive dlopens.
13800export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13801
13802# Compiler flag to generate shared objects directly from archives.
13803whole_archive_flag_spec=$lt_whole_archive_flag_spec
13804
13805# Whether the compiler copes with passing no objects directly.
13806compiler_needs_object=$lt_compiler_needs_object
13807
13808# Create an old-style archive from a shared archive.
13809old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13810
13811# Create a temporary old-style archive to link instead of a shared archive.
13812old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13813
13814# Commands used to build a shared archive.
13815archive_cmds=$lt_archive_cmds
13816archive_expsym_cmds=$lt_archive_expsym_cmds
13817
13818# Commands used to build a loadable module if different from building
13819# a shared archive.
13820module_cmds=$lt_module_cmds
13821module_expsym_cmds=$lt_module_expsym_cmds
13822
13823# Whether we are building with GNU ld or not.
13824with_gnu_ld=$lt_with_gnu_ld
13825
13826# Flag that allows shared libraries with undefined symbols to be built.
13827allow_undefined_flag=$lt_allow_undefined_flag
13828
13829# Flag that enforces no undefined symbols.
13830no_undefined_flag=$lt_no_undefined_flag
13831
13832# Flag to hardcode \$libdir into a binary during linking.
13833# This must work even if \$libdir does not exist
13834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13835
13836# If ld is used when linking, flag to hardcode \$libdir into a binary
13837# during linking.  This must work even if \$libdir does not exist.
13838hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13839
13840# Whether we need a single "-rpath" flag with a separated argument.
13841hardcode_libdir_separator=$lt_hardcode_libdir_separator
13842
13843# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13844# DIR into the resulting binary.
13845hardcode_direct=$hardcode_direct
13846
13847# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13848# DIR into the resulting binary and the resulting library dependency is
13849# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13850# library is relocated.
13851hardcode_direct_absolute=$hardcode_direct_absolute
13852
13853# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13854# into the resulting binary.
13855hardcode_minus_L=$hardcode_minus_L
13856
13857# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13858# into the resulting binary.
13859hardcode_shlibpath_var=$hardcode_shlibpath_var
13860
13861# Set to "yes" if building a shared library automatically hardcodes DIR
13862# into the library and all subsequent libraries and executables linked
13863# against it.
13864hardcode_automatic=$hardcode_automatic
13865
13866# Set to yes if linker adds runtime paths of dependent libraries
13867# to runtime path list.
13868inherit_rpath=$inherit_rpath
13869
13870# Whether libtool must link a program against all its dependency libraries.
13871link_all_deplibs=$link_all_deplibs
13872
13873# Fix the shell variable \$srcfile for the compiler.
13874fix_srcfile_path=$lt_fix_srcfile_path
13875
13876# Set to "yes" if exported symbols are required.
13877always_export_symbols=$always_export_symbols
13878
13879# The commands to list exported symbols.
13880export_symbols_cmds=$lt_export_symbols_cmds
13881
13882# Symbols that should not be listed in the preloaded symbols.
13883exclude_expsyms=$lt_exclude_expsyms
13884
13885# Symbols that must always be exported.
13886include_expsyms=$lt_include_expsyms
13887
13888# Commands necessary for linking programs (against libraries) with templates.
13889prelink_cmds=$lt_prelink_cmds
13890
13891# Specify filename containing input files.
13892file_list_spec=$lt_file_list_spec
13893
13894# How to hardcode a shared library path into an executable.
13895hardcode_action=$hardcode_action
13896
13897# ### END LIBTOOL CONFIG
13898
13899_LT_EOF
13900
13901  case $host_os in
13902  aix3*)
13903    cat <<\_LT_EOF >> "$cfgfile"
13904# AIX sometimes has problems with the GCC collect2 program.  For some
13905# reason, if we set the COLLECT_NAMES environment variable, the problems
13906# vanish in a puff of smoke.
13907if test "X${COLLECT_NAMES+set}" != Xset; then
13908  COLLECT_NAMES=
13909  export COLLECT_NAMES
13910fi
13911_LT_EOF
13912    ;;
13913  esac
13914
13915
13916ltmain="$ac_aux_dir/ltmain.sh"
13917
13918
13919  # We use sed instead of cat because bash on DJGPP gets confused if
13920  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13921  # text mode, it properly converts lines to CR/LF.  This bash problem
13922  # is reportedly fixed, but why not run on old versions too?
13923  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13924    || (rm -f "$cfgfile"; exit 1)
13925
13926  case $xsi_shell in
13927  yes)
13928    cat << \_LT_EOF >> "$cfgfile"
13929
13930# func_dirname file append nondir_replacement
13931# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
13932# otherwise set result to NONDIR_REPLACEMENT.
13933func_dirname ()
13934{
13935  case ${1} in
13936    */*) func_dirname_result="${1%/*}${2}" ;;
13937    *  ) func_dirname_result="${3}" ;;
13938  esac
13939}
13940
13941# func_basename file
13942func_basename ()
13943{
13944  func_basename_result="${1##*/}"
13945}
13946
13947# func_dirname_and_basename file append nondir_replacement
13948# perform func_basename and func_dirname in a single function
13949# call:
13950#   dirname:  Compute the dirname of FILE.  If nonempty,
13951#             add APPEND to the result, otherwise set result
13952#             to NONDIR_REPLACEMENT.
13953#             value returned in "$func_dirname_result"
13954#   basename: Compute filename of FILE.
13955#             value retuned in "$func_basename_result"
13956# Implementation must be kept synchronized with func_dirname
13957# and func_basename. For efficiency, we do not delegate to
13958# those functions but instead duplicate the functionality here.
13959func_dirname_and_basename ()
13960{
13961  case ${1} in
13962    */*) func_dirname_result="${1%/*}${2}" ;;
13963    *  ) func_dirname_result="${3}" ;;
13964  esac
13965  func_basename_result="${1##*/}"
13966}
13967
13968# func_stripname prefix suffix name
13969# strip PREFIX and SUFFIX off of NAME.
13970# PREFIX and SUFFIX must not contain globbing or regex special
13971# characters, hashes, percent signs, but SUFFIX may contain a leading
13972# dot (in which case that matches only a dot).
13973func_stripname ()
13974{
13975  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13976  # positional parameters, so assign one to ordinary parameter first.
13977  func_stripname_result=${3}
13978  func_stripname_result=${func_stripname_result#"${1}"}
13979  func_stripname_result=${func_stripname_result%"${2}"}
13980}
13981
13982# func_opt_split
13983func_opt_split ()
13984{
13985  func_opt_split_opt=${1%%=*}
13986  func_opt_split_arg=${1#*=}
13987}
13988
13989# func_lo2o object
13990func_lo2o ()
13991{
13992  case ${1} in
13993    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13994    *)    func_lo2o_result=${1} ;;
13995  esac
13996}
13997
13998# func_xform libobj-or-source
13999func_xform ()
14000{
14001  func_xform_result=${1%.*}.lo
14002}
14003
14004# func_arith arithmetic-term...
14005func_arith ()
14006{
14007  func_arith_result=$(( $* ))
14008}
14009
14010# func_len string
14011# STRING may not start with a hyphen.
14012func_len ()
14013{
14014  func_len_result=${#1}
14015}
14016
14017_LT_EOF
14018    ;;
14019  *) # Bourne compatible functions.
14020    cat << \_LT_EOF >> "$cfgfile"
14021
14022# func_dirname file append nondir_replacement
14023# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14024# otherwise set result to NONDIR_REPLACEMENT.
14025func_dirname ()
14026{
14027  # Extract subdirectory from the argument.
14028  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
14029  if test "X$func_dirname_result" = "X${1}"; then
14030    func_dirname_result="${3}"
14031  else
14032    func_dirname_result="$func_dirname_result${2}"
14033  fi
14034}
14035
14036# func_basename file
14037func_basename ()
14038{
14039  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
14040}
14041
14042
14043# func_stripname prefix suffix name
14044# strip PREFIX and SUFFIX off of NAME.
14045# PREFIX and SUFFIX must not contain globbing or regex special
14046# characters, hashes, percent signs, but SUFFIX may contain a leading
14047# dot (in which case that matches only a dot).
14048# func_strip_suffix prefix name
14049func_stripname ()
14050{
14051  case ${2} in
14052    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
14053    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
14054  esac
14055}
14056
14057# sed scripts:
14058my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14059my_sed_long_arg='1s/^-[^=]*=//'
14060
14061# func_opt_split
14062func_opt_split ()
14063{
14064  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
14065  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
14066}
14067
14068# func_lo2o object
14069func_lo2o ()
14070{
14071  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
14072}
14073
14074# func_xform libobj-or-source
14075func_xform ()
14076{
14077  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
14078}
14079
14080# func_arith arithmetic-term...
14081func_arith ()
14082{
14083  func_arith_result=`expr "$@"`
14084}
14085
14086# func_len string
14087# STRING may not start with a hyphen.
14088func_len ()
14089{
14090  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14091}
14092
14093_LT_EOF
14094esac
14095
14096case $lt_shell_append in
14097  yes)
14098    cat << \_LT_EOF >> "$cfgfile"
14099
14100# func_append var value
14101# Append VALUE to the end of shell variable VAR.
14102func_append ()
14103{
14104  eval "$1+=\$2"
14105}
14106_LT_EOF
14107    ;;
14108  *)
14109    cat << \_LT_EOF >> "$cfgfile"
14110
14111# func_append var value
14112# Append VALUE to the end of shell variable VAR.
14113func_append ()
14114{
14115  eval "$1=\$$1\$2"
14116}
14117
14118_LT_EOF
14119    ;;
14120  esac
14121
14122
14123  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14124    || (rm -f "$cfgfile"; exit 1)
14125
14126  mv -f "$cfgfile" "$ofile" ||
14127    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14128  chmod +x "$ofile"
14129
14130 ;;
14131
14132  esac
14133done # for ac_tag
14134
14135
14136as_fn_exit 0
14137_ACEOF
14138ac_clean_files=$ac_clean_files_save
14139
14140test $ac_write_fail = 0 ||
14141  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14142
14143
14144# configure is writing to config.log, and then calls config.status.
14145# config.status does its own redirection, appending to config.log.
14146# Unfortunately, on DOS this fails, as config.log is still kept open
14147# by configure, so config.status won't be able to write to it; its
14148# output is simply discarded.  So we exec the FD to /dev/null,
14149# effectively closing config.log, so it can be properly (re)opened and
14150# appended to by config.status.  When coming back to configure, we
14151# need to make the FD available again.
14152if test "$no_create" != yes; then
14153  ac_cs_success=:
14154  ac_config_status_args=
14155  test "$silent" = yes &&
14156    ac_config_status_args="$ac_config_status_args --quiet"
14157  exec 5>/dev/null
14158  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14159  exec 5>>config.log
14160  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14161  # would make configure fail if this is the last instruction.
14162  $ac_cs_success || as_fn_exit 1
14163fi
14164if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14165  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14166$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14167fi
14168
14169