xref: /netbsd-src/crypto/external/cpl/trousers/dist/configure (revision 9ddb6ab554e70fb9bbd90c3d96b812bc57755a14)
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for trousers 0.3.8.
4#
5# Report bugs to <trousers-tech@lists.sf.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  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: trousers-tech@lists.sf.net about your system, including
235$0: any error possibly output before this message. Then
236$0: install a modern shell, or manually run the script
237$0: under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532
533# Check that we are running under the correct shell.
534SHELL=${CONFIG_SHELL-/bin/sh}
535
536case X$lt_ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543ECHO=${lt_ECHO-echo}
544if test "X$1" = X--no-reexec; then
545  # Discard the --no-reexec flag, and continue.
546  shift
547elif test "X$1" = X--fallback-echo; then
548  # Avoid inline document here, it may be left over
549  :
550elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551  # Yippee, $ECHO works!
552  :
553else
554  # Restart under the correct shell.
555  exec $SHELL "$0" --no-reexec ${1+"$@"}
556fi
557
558if test "X$1" = X--fallback-echo; then
559  # used as fallback echo
560  shift
561  cat <<_LT_EOF
562$*
563_LT_EOF
564  exit 0
565fi
566
567# The HP-UX ksh and POSIX shell print the target directory to stdout
568# if CDPATH is set.
569(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570
571if test -z "$lt_ECHO"; then
572  if test "X${echo_test_string+set}" != Xset; then
573    # find a string as large as possible, as long as the shell can cope with it
574    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578      then
579        break
580      fi
581    done
582  fi
583
584  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586     test "X$echo_testing_string" = "X$echo_test_string"; then
587    :
588  else
589    # The Solaris, AIX, and Digital Unix default echo programs unquote
590    # backslashes.  This makes it impossible to quote backslashes using
591    #   echo "$something" | sed 's/\\/\\\\/g'
592    #
593    # So, first we look for a working echo in the user's PATH.
594
595    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596    for dir in $PATH /usr/ucb; do
597      IFS="$lt_save_ifs"
598      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601         test "X$echo_testing_string" = "X$echo_test_string"; then
602        ECHO="$dir/echo"
603        break
604      fi
605    done
606    IFS="$lt_save_ifs"
607
608    if test "X$ECHO" = Xecho; then
609      # We didn't find a better echo, so look for alternatives.
610      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612         test "X$echo_testing_string" = "X$echo_test_string"; then
613        # This shell has a builtin print -r that does the trick.
614        ECHO='print -r'
615      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616	   test "X$CONFIG_SHELL" != X/bin/ksh; then
617        # If we have ksh, try running configure again with it.
618        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619        export ORIGINAL_CONFIG_SHELL
620        CONFIG_SHELL=/bin/ksh
621        export CONFIG_SHELL
622        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623      else
624        # Try using printf.
625        ECHO='printf %s\n'
626        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628	   test "X$echo_testing_string" = "X$echo_test_string"; then
629	  # Cool, printf works
630	  :
631        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632	     test "X$echo_testing_string" = 'X\t' &&
633	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634	     test "X$echo_testing_string" = "X$echo_test_string"; then
635	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636	  export CONFIG_SHELL
637	  SHELL="$CONFIG_SHELL"
638	  export SHELL
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641	     test "X$echo_testing_string" = 'X\t' &&
642	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643	     test "X$echo_testing_string" = "X$echo_test_string"; then
644	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
645        else
646	  # maybe with a smaller string...
647	  prev=:
648
649	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651	    then
652	      break
653	    fi
654	    prev="$cmd"
655	  done
656
657	  if test "$prev" != 'sed 50q "$0"'; then
658	    echo_test_string=`eval $prev`
659	    export echo_test_string
660	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661	  else
662	    # Oops.  We lost completely, so just stick with echo.
663	    ECHO=echo
664	  fi
665        fi
666      fi
667    fi
668  fi
669fi
670
671# Copy echo and quote the copy suitably for passing to libtool from
672# the Makefile, instead of quoting the original, which is used later.
673lt_ECHO=$ECHO
674if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676fi
677
678
679
680
681test -n "$DJDIR" || exec 7<&0 </dev/null
682exec 6>&1
683
684# Name of the host.
685# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686# so uname gets run too.
687ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688
689#
690# Initializations.
691#
692ac_default_prefix=/usr/local
693ac_clean_files=
694ac_config_libobj_dir=.
695LIBOBJS=
696cross_compiling=no
697subdirs=
698MFLAGS=
699MAKEFLAGS=
700
701# Identity of this package.
702PACKAGE_NAME='trousers'
703PACKAGE_TARNAME='trousers'
704PACKAGE_VERSION='0.3.8'
705PACKAGE_STRING='trousers 0.3.8'
706PACKAGE_BUGREPORT='trousers-tech@lists.sf.net'
707PACKAGE_URL=''
708
709# Factoring default headers for most tests.
710ac_includes_default="\
711#include <stdio.h>
712#ifdef HAVE_SYS_TYPES_H
713# include <sys/types.h>
714#endif
715#ifdef HAVE_SYS_STAT_H
716# include <sys/stat.h>
717#endif
718#ifdef STDC_HEADERS
719# include <stdlib.h>
720# include <stddef.h>
721#else
722# ifdef HAVE_STDLIB_H
723#  include <stdlib.h>
724# endif
725#endif
726#ifdef HAVE_STRING_H
727# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728#  include <memory.h>
729# endif
730# include <string.h>
731#endif
732#ifdef HAVE_STRINGS_H
733# include <strings.h>
734#endif
735#ifdef HAVE_INTTYPES_H
736# include <inttypes.h>
737#endif
738#ifdef HAVE_STDINT_H
739# include <stdint.h>
740#endif
741#ifdef HAVE_UNISTD_H
742# include <unistd.h>
743#endif"
744
745ac_subst_vars='am__EXEEXT_FALSE
746am__EXEEXT_TRUE
747LTLIBOBJS
748LIBOBJS
749OTOOL64
750OTOOL
751LIPO
752NMEDIT
753DSYMUTIL
754lt_ECHO
755RANLIB
756AR
757OBJDUMP
758LN_S
759NM
760ac_ct_DUMPBIN
761DUMPBIN
762LD
763FGREP
764SED
765LIBTOOL
766TSS_BUILD_SYM_CRYPTO_FALSE
767TSS_BUILD_SYM_CRYPTO_TRUE
768TSS_BUILD_ASYM_CRYPTO_FALSE
769TSS_BUILD_ASYM_CRYPTO_TRUE
770TSS_BUILD_AUTH_FALSE
771TSS_BUILD_AUTH_TRUE
772TSS_BUILD_RSAKEY_LIST_FALSE
773TSS_BUILD_RSAKEY_LIST_TRUE
774TSS_BUILD_ENCDATA_LIST_FALSE
775TSS_BUILD_ENCDATA_LIST_TRUE
776TSS_BUILD_HASH_LIST_FALSE
777TSS_BUILD_HASH_LIST_TRUE
778TSS_BUILD_PCRS_LIST_FALSE
779TSS_BUILD_PCRS_LIST_TRUE
780TSS_BUILD_GET_FLAGS_FALSE
781TSS_BUILD_GET_FLAGS_TRUE
782TSS_BUILD_NV_SUPPORT_FALSE
783TSS_BUILD_NV_SUPPORT_TRUE
784TSS_BUILD_NV_LIST_FALSE
785TSS_BUILD_NV_LIST_TRUE
786TSS_BUILD_CMK_FALSE
787TSS_BUILD_CMK_TRUE
788TSS_BUILD_QUOTE2_FALSE
789TSS_BUILD_QUOTE2_TRUE
790TSS_BUILD_DELEGATION_FALSE
791TSS_BUILD_DELEGATION_TRUE
792TSS_BUILD_SEALX_FALSE
793TSS_BUILD_SEALX_TRUE
794TSS_BUILD_AUDIT_FALSE
795TSS_BUILD_AUDIT_TRUE
796TSS_BUILD_NV_FALSE
797TSS_BUILD_NV_TRUE
798TSS_BUILD_ASN1_FALSE
799TSS_BUILD_ASN1_TRUE
800TSS_BUILD_TRANSPORT_FALSE
801TSS_BUILD_TRANSPORT_TRUE
802TSS_BUILD_TICK_FALSE
803TSS_BUILD_TICK_TRUE
804TSS_BUILD_COUNTER_FALSE
805TSS_BUILD_COUNTER_TRUE
806TSS_BUILD_PCR_COMP12_FALSE
807TSS_BUILD_PCR_COMP12_TRUE
808TSS_BUILD_DAA_FALSE
809TSS_BUILD_DAA_TRUE
810TSS_BUILD_TSS12_FALSE
811TSS_BUILD_TSS12_TRUE
812TSS_BUILD_SELFTEST_FALSE
813TSS_BUILD_SELFTEST_TRUE
814TSS_BUILD_PCR_EXTEND_FALSE
815TSS_BUILD_PCR_EXTEND_TRUE
816TSS_BUILD_KEY_FALSE
817TSS_BUILD_KEY_TRUE
818TSS_BUILD_MIGRATION_FALSE
819TSS_BUILD_MIGRATION_TRUE
820TSS_BUILD_MAINT_FALSE
821TSS_BUILD_MAINT_TRUE
822TSS_BUILD_CERTIFY_FALSE
823TSS_BUILD_CERTIFY_TRUE
824TSS_BUILD_AIK_FALSE
825TSS_BUILD_AIK_TRUE
826TSS_BUILD_ADMIN_FALSE
827TSS_BUILD_ADMIN_TRUE
828TSS_BUILD_PS_FALSE
829TSS_BUILD_PS_TRUE
830TSS_BUILD_EK_FALSE
831TSS_BUILD_EK_TRUE
832TSS_BUILD_OWN_FALSE
833TSS_BUILD_OWN_TRUE
834TSS_BUILD_BIND_FALSE
835TSS_BUILD_BIND_TRUE
836TSS_BUILD_CHANGEAUTH_FALSE
837TSS_BUILD_CHANGEAUTH_TRUE
838TSS_BUILD_SEAL_FALSE
839TSS_BUILD_SEAL_TRUE
840TSS_BUILD_PCR_COMP_FALSE
841TSS_BUILD_PCR_COMP_TRUE
842TSS_BUILD_QUOTE_FALSE
843TSS_BUILD_QUOTE_TRUE
844TSS_BUILD_SIGN_FALSE
845TSS_BUILD_SIGN_TRUE
846TSS_BUILD_PCR_EVENTS_FALSE
847TSS_BUILD_PCR_EVENTS_TRUE
848TSS_BUILD_DIR_FALSE
849TSS_BUILD_DIR_TRUE
850TSS_BUILD_POLICY_FALSE
851TSS_BUILD_POLICY_TRUE
852TSS_BUILD_CAPS_TPM_FALSE
853TSS_BUILD_CAPS_TPM_TRUE
854TSS_BUILD_CAPS_FALSE
855TSS_BUILD_CAPS_TRUE
856TSS_BUILD_RANDOM_FALSE
857TSS_BUILD_RANDOM_TRUE
858TSS_BUILD_GETSET_FALSE
859TSS_BUILD_GETSET_TRUE
860TSS_BUILD_HASH_FALSE
861TSS_BUILD_HASH_TRUE
862RPC
863TCSD_DEFAULT_PORT
864OPENSSL_UI_FALSE
865OPENSSL_UI_TRUE
866GTK_LIBS
867GTK_CFLAGS
868PKG_CONFIG_LIBDIR
869PKG_CONFIG_PATH
870PKG_CONFIG
871HAVE_GTK_FALSE
872HAVE_GTK_TRUE
873EGREP
874GREP
875CPP
876CRYPTOLIB
877CRYPTO_PACKAGE
878am__fastdepCC_FALSE
879am__fastdepCC_TRUE
880CCDEPMODE
881AMDEPBACKSLASH
882AMDEP_FALSE
883AMDEP_TRUE
884am__quote
885am__include
886DEPDIR
887OBJEXT
888EXEEXT
889ac_ct_CC
890CPPFLAGS
891LDFLAGS
892CFLAGS
893CC
894OPENSSL_LIB_DIR
895am__untar
896am__tar
897AMTAR
898am__leading_dot
899SET_MAKE
900AWK
901mkdir_p
902MKDIR_P
903INSTALL_STRIP_PROGRAM
904STRIP
905install_sh
906MAKEINFO
907AUTOHEADER
908AUTOMAKE
909AUTOCONF
910ACLOCAL
911VERSION
912PACKAGE
913CYGPATH_W
914am__isrc
915INSTALL_DATA
916INSTALL_SCRIPT
917INSTALL_PROGRAM
918target_os
919target_vendor
920target_cpu
921target
922host_os
923host_vendor
924host_cpu
925host
926build_os
927build_vendor
928build_cpu
929build
930target_alias
931host_alias
932build_alias
933LIBS
934ECHO_T
935ECHO_N
936ECHO_C
937DEFS
938mandir
939localedir
940libdir
941psdir
942pdfdir
943dvidir
944htmldir
945infodir
946docdir
947oldincludedir
948includedir
949localstatedir
950sharedstatedir
951sysconfdir
952datadir
953datarootdir
954libexecdir
955sbindir
956bindir
957program_transform_name
958prefix
959exec_prefix
960PACKAGE_URL
961PACKAGE_BUGREPORT
962PACKAGE_STRING
963PACKAGE_VERSION
964PACKAGE_TARNAME
965PACKAGE_NAME
966PATH_SEPARATOR
967SHELL'
968ac_subst_files=''
969ac_user_opts='
970enable_option_checking
971enable_debug
972with_openssl
973enable_dependency_tracking
974enable_gcov
975enable_gprof
976enable_strict_spec_compliance
977with_gmp
978with_gui
979with_api
980enable_static
981enable_shared
982with_pic
983enable_fast_install
984with_gnu_ld
985enable_libtool_lock
986'
987      ac_precious_vars='build_alias
988host_alias
989target_alias
990CC
991CFLAGS
992LDFLAGS
993LIBS
994CPPFLAGS
995CPP
996PKG_CONFIG
997PKG_CONFIG_PATH
998PKG_CONFIG_LIBDIR
999GTK_CFLAGS
1000GTK_LIBS'
1001
1002
1003# Initialize some variables set by options.
1004ac_init_help=
1005ac_init_version=false
1006ac_unrecognized_opts=
1007ac_unrecognized_sep=
1008# The variables have the same names as the options, with
1009# dashes changed to underlines.
1010cache_file=/dev/null
1011exec_prefix=NONE
1012no_create=
1013no_recursion=
1014prefix=NONE
1015program_prefix=NONE
1016program_suffix=NONE
1017program_transform_name=s,x,x,
1018silent=
1019site=
1020srcdir=
1021verbose=
1022x_includes=NONE
1023x_libraries=NONE
1024
1025# Installation directory options.
1026# These are left unexpanded so users can "make install exec_prefix=/foo"
1027# and all the variables that are supposed to be based on exec_prefix
1028# by default will actually change.
1029# Use braces instead of parens because sh, perl, etc. also accept them.
1030# (The list follows the same order as the GNU Coding Standards.)
1031bindir='${exec_prefix}/bin'
1032sbindir='${exec_prefix}/sbin'
1033libexecdir='${exec_prefix}/libexec'
1034datarootdir='${prefix}/share'
1035datadir='${datarootdir}'
1036sysconfdir='${prefix}/etc'
1037sharedstatedir='${prefix}/com'
1038localstatedir='${prefix}/var'
1039includedir='${prefix}/include'
1040oldincludedir='/usr/include'
1041docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1042infodir='${datarootdir}/info'
1043htmldir='${docdir}'
1044dvidir='${docdir}'
1045pdfdir='${docdir}'
1046psdir='${docdir}'
1047libdir='${exec_prefix}/lib'
1048localedir='${datarootdir}/locale'
1049mandir='${datarootdir}/man'
1050
1051ac_prev=
1052ac_dashdash=
1053for ac_option
1054do
1055  # If the previous option needs an argument, assign it.
1056  if test -n "$ac_prev"; then
1057    eval $ac_prev=\$ac_option
1058    ac_prev=
1059    continue
1060  fi
1061
1062  case $ac_option in
1063  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1064  *=)   ac_optarg= ;;
1065  *)    ac_optarg=yes ;;
1066  esac
1067
1068  # Accept the important Cygnus configure options, so we can diagnose typos.
1069
1070  case $ac_dashdash$ac_option in
1071  --)
1072    ac_dashdash=yes ;;
1073
1074  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1075    ac_prev=bindir ;;
1076  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1077    bindir=$ac_optarg ;;
1078
1079  -build | --build | --buil | --bui | --bu)
1080    ac_prev=build_alias ;;
1081  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1082    build_alias=$ac_optarg ;;
1083
1084  -cache-file | --cache-file | --cache-fil | --cache-fi \
1085  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1086    ac_prev=cache_file ;;
1087  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1088  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1089    cache_file=$ac_optarg ;;
1090
1091  --config-cache | -C)
1092    cache_file=config.cache ;;
1093
1094  -datadir | --datadir | --datadi | --datad)
1095    ac_prev=datadir ;;
1096  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1097    datadir=$ac_optarg ;;
1098
1099  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1100  | --dataroo | --dataro | --datar)
1101    ac_prev=datarootdir ;;
1102  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1103  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1104    datarootdir=$ac_optarg ;;
1105
1106  -disable-* | --disable-*)
1107    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1108    # Reject names that are not valid shell variable names.
1109    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110      as_fn_error $? "invalid feature name: $ac_useropt"
1111    ac_useropt_orig=$ac_useropt
1112    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113    case $ac_user_opts in
1114      *"
1115"enable_$ac_useropt"
1116"*) ;;
1117      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1118	 ac_unrecognized_sep=', ';;
1119    esac
1120    eval enable_$ac_useropt=no ;;
1121
1122  -docdir | --docdir | --docdi | --doc | --do)
1123    ac_prev=docdir ;;
1124  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1125    docdir=$ac_optarg ;;
1126
1127  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1128    ac_prev=dvidir ;;
1129  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1130    dvidir=$ac_optarg ;;
1131
1132  -enable-* | --enable-*)
1133    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1134    # Reject names that are not valid shell variable names.
1135    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136      as_fn_error $? "invalid feature name: $ac_useropt"
1137    ac_useropt_orig=$ac_useropt
1138    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139    case $ac_user_opts in
1140      *"
1141"enable_$ac_useropt"
1142"*) ;;
1143      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1144	 ac_unrecognized_sep=', ';;
1145    esac
1146    eval enable_$ac_useropt=\$ac_optarg ;;
1147
1148  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1149  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1150  | --exec | --exe | --ex)
1151    ac_prev=exec_prefix ;;
1152  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1153  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1154  | --exec=* | --exe=* | --ex=*)
1155    exec_prefix=$ac_optarg ;;
1156
1157  -gas | --gas | --ga | --g)
1158    # Obsolete; use --with-gas.
1159    with_gas=yes ;;
1160
1161  -help | --help | --hel | --he | -h)
1162    ac_init_help=long ;;
1163  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1164    ac_init_help=recursive ;;
1165  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1166    ac_init_help=short ;;
1167
1168  -host | --host | --hos | --ho)
1169    ac_prev=host_alias ;;
1170  -host=* | --host=* | --hos=* | --ho=*)
1171    host_alias=$ac_optarg ;;
1172
1173  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1174    ac_prev=htmldir ;;
1175  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1176  | --ht=*)
1177    htmldir=$ac_optarg ;;
1178
1179  -includedir | --includedir | --includedi | --included | --include \
1180  | --includ | --inclu | --incl | --inc)
1181    ac_prev=includedir ;;
1182  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1183  | --includ=* | --inclu=* | --incl=* | --inc=*)
1184    includedir=$ac_optarg ;;
1185
1186  -infodir | --infodir | --infodi | --infod | --info | --inf)
1187    ac_prev=infodir ;;
1188  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1189    infodir=$ac_optarg ;;
1190
1191  -libdir | --libdir | --libdi | --libd)
1192    ac_prev=libdir ;;
1193  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1194    libdir=$ac_optarg ;;
1195
1196  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1197  | --libexe | --libex | --libe)
1198    ac_prev=libexecdir ;;
1199  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1200  | --libexe=* | --libex=* | --libe=*)
1201    libexecdir=$ac_optarg ;;
1202
1203  -localedir | --localedir | --localedi | --localed | --locale)
1204    ac_prev=localedir ;;
1205  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1206    localedir=$ac_optarg ;;
1207
1208  -localstatedir | --localstatedir | --localstatedi | --localstated \
1209  | --localstate | --localstat | --localsta | --localst | --locals)
1210    ac_prev=localstatedir ;;
1211  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1212  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1213    localstatedir=$ac_optarg ;;
1214
1215  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1216    ac_prev=mandir ;;
1217  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1218    mandir=$ac_optarg ;;
1219
1220  -nfp | --nfp | --nf)
1221    # Obsolete; use --without-fp.
1222    with_fp=no ;;
1223
1224  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1225  | --no-cr | --no-c | -n)
1226    no_create=yes ;;
1227
1228  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1230    no_recursion=yes ;;
1231
1232  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1233  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1234  | --oldin | --oldi | --old | --ol | --o)
1235    ac_prev=oldincludedir ;;
1236  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1237  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1238  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1239    oldincludedir=$ac_optarg ;;
1240
1241  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1242    ac_prev=prefix ;;
1243  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1244    prefix=$ac_optarg ;;
1245
1246  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1247  | --program-pre | --program-pr | --program-p)
1248    ac_prev=program_prefix ;;
1249  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1250  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1251    program_prefix=$ac_optarg ;;
1252
1253  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1254  | --program-suf | --program-su | --program-s)
1255    ac_prev=program_suffix ;;
1256  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1257  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1258    program_suffix=$ac_optarg ;;
1259
1260  -program-transform-name | --program-transform-name \
1261  | --program-transform-nam | --program-transform-na \
1262  | --program-transform-n | --program-transform- \
1263  | --program-transform | --program-transfor \
1264  | --program-transfo | --program-transf \
1265  | --program-trans | --program-tran \
1266  | --progr-tra | --program-tr | --program-t)
1267    ac_prev=program_transform_name ;;
1268  -program-transform-name=* | --program-transform-name=* \
1269  | --program-transform-nam=* | --program-transform-na=* \
1270  | --program-transform-n=* | --program-transform-=* \
1271  | --program-transform=* | --program-transfor=* \
1272  | --program-transfo=* | --program-transf=* \
1273  | --program-trans=* | --program-tran=* \
1274  | --progr-tra=* | --program-tr=* | --program-t=*)
1275    program_transform_name=$ac_optarg ;;
1276
1277  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1278    ac_prev=pdfdir ;;
1279  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1280    pdfdir=$ac_optarg ;;
1281
1282  -psdir | --psdir | --psdi | --psd | --ps)
1283    ac_prev=psdir ;;
1284  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1285    psdir=$ac_optarg ;;
1286
1287  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1288  | -silent | --silent | --silen | --sile | --sil)
1289    silent=yes ;;
1290
1291  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1292    ac_prev=sbindir ;;
1293  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1294  | --sbi=* | --sb=*)
1295    sbindir=$ac_optarg ;;
1296
1297  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1298  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1299  | --sharedst | --shareds | --shared | --share | --shar \
1300  | --sha | --sh)
1301    ac_prev=sharedstatedir ;;
1302  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1303  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1304  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1305  | --sha=* | --sh=*)
1306    sharedstatedir=$ac_optarg ;;
1307
1308  -site | --site | --sit)
1309    ac_prev=site ;;
1310  -site=* | --site=* | --sit=*)
1311    site=$ac_optarg ;;
1312
1313  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1314    ac_prev=srcdir ;;
1315  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1316    srcdir=$ac_optarg ;;
1317
1318  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1319  | --syscon | --sysco | --sysc | --sys | --sy)
1320    ac_prev=sysconfdir ;;
1321  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1322  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1323    sysconfdir=$ac_optarg ;;
1324
1325  -target | --target | --targe | --targ | --tar | --ta | --t)
1326    ac_prev=target_alias ;;
1327  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1328    target_alias=$ac_optarg ;;
1329
1330  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1331    verbose=yes ;;
1332
1333  -version | --version | --versio | --versi | --vers | -V)
1334    ac_init_version=: ;;
1335
1336  -with-* | --with-*)
1337    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1338    # Reject names that are not valid shell variable names.
1339    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340      as_fn_error $? "invalid package name: $ac_useropt"
1341    ac_useropt_orig=$ac_useropt
1342    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343    case $ac_user_opts in
1344      *"
1345"with_$ac_useropt"
1346"*) ;;
1347      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1348	 ac_unrecognized_sep=', ';;
1349    esac
1350    eval with_$ac_useropt=\$ac_optarg ;;
1351
1352  -without-* | --without-*)
1353    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1354    # Reject names that are not valid shell variable names.
1355    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1356      as_fn_error $? "invalid package name: $ac_useropt"
1357    ac_useropt_orig=$ac_useropt
1358    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1359    case $ac_user_opts in
1360      *"
1361"with_$ac_useropt"
1362"*) ;;
1363      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1364	 ac_unrecognized_sep=', ';;
1365    esac
1366    eval with_$ac_useropt=no ;;
1367
1368  --x)
1369    # Obsolete; use --with-x.
1370    with_x=yes ;;
1371
1372  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1373  | --x-incl | --x-inc | --x-in | --x-i)
1374    ac_prev=x_includes ;;
1375  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1376  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1377    x_includes=$ac_optarg ;;
1378
1379  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1380  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1381    ac_prev=x_libraries ;;
1382  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1383  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1384    x_libraries=$ac_optarg ;;
1385
1386  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1387Try \`$0 --help' for more information"
1388    ;;
1389
1390  *=*)
1391    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1392    # Reject names that are not valid shell variable names.
1393    case $ac_envvar in #(
1394      '' | [0-9]* | *[!_$as_cr_alnum]* )
1395      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1396    esac
1397    eval $ac_envvar=\$ac_optarg
1398    export $ac_envvar ;;
1399
1400  *)
1401    # FIXME: should be removed in autoconf 3.0.
1402    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1403    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1404      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1405    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1406    ;;
1407
1408  esac
1409done
1410
1411if test -n "$ac_prev"; then
1412  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1413  as_fn_error $? "missing argument to $ac_option"
1414fi
1415
1416if test -n "$ac_unrecognized_opts"; then
1417  case $enable_option_checking in
1418    no) ;;
1419    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1420    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1421  esac
1422fi
1423
1424# Check all directory arguments for consistency.
1425for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1426		datadir sysconfdir sharedstatedir localstatedir includedir \
1427		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1428		libdir localedir mandir
1429do
1430  eval ac_val=\$$ac_var
1431  # Remove trailing slashes.
1432  case $ac_val in
1433    */ )
1434      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1435      eval $ac_var=\$ac_val;;
1436  esac
1437  # Be sure to have absolute directory names.
1438  case $ac_val in
1439    [\\/$]* | ?:[\\/]* )  continue;;
1440    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1441  esac
1442  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1443done
1444
1445# There might be people who depend on the old broken behavior: `$host'
1446# used to hold the argument of --host etc.
1447# FIXME: To remove some day.
1448build=$build_alias
1449host=$host_alias
1450target=$target_alias
1451
1452# FIXME: To remove some day.
1453if test "x$host_alias" != x; then
1454  if test "x$build_alias" = x; then
1455    cross_compiling=maybe
1456    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1457    If a cross compiler is detected then cross compile mode will be used" >&2
1458  elif test "x$build_alias" != "x$host_alias"; then
1459    cross_compiling=yes
1460  fi
1461fi
1462
1463ac_tool_prefix=
1464test -n "$host_alias" && ac_tool_prefix=$host_alias-
1465
1466test "$silent" = yes && exec 6>/dev/null
1467
1468
1469ac_pwd=`pwd` && test -n "$ac_pwd" &&
1470ac_ls_di=`ls -di .` &&
1471ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1472  as_fn_error $? "working directory cannot be determined"
1473test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1474  as_fn_error $? "pwd does not report name of working directory"
1475
1476
1477# Find the source files, if location was not specified.
1478if test -z "$srcdir"; then
1479  ac_srcdir_defaulted=yes
1480  # Try the directory containing this script, then the parent directory.
1481  ac_confdir=`$as_dirname -- "$as_myself" ||
1482$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1483	 X"$as_myself" : 'X\(//\)[^/]' \| \
1484	 X"$as_myself" : 'X\(//\)$' \| \
1485	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1486$as_echo X"$as_myself" |
1487    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1488	    s//\1/
1489	    q
1490	  }
1491	  /^X\(\/\/\)[^/].*/{
1492	    s//\1/
1493	    q
1494	  }
1495	  /^X\(\/\/\)$/{
1496	    s//\1/
1497	    q
1498	  }
1499	  /^X\(\/\).*/{
1500	    s//\1/
1501	    q
1502	  }
1503	  s/.*/./; q'`
1504  srcdir=$ac_confdir
1505  if test ! -r "$srcdir/$ac_unique_file"; then
1506    srcdir=..
1507  fi
1508else
1509  ac_srcdir_defaulted=no
1510fi
1511if test ! -r "$srcdir/$ac_unique_file"; then
1512  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1513  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1514fi
1515ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1516ac_abs_confdir=`(
1517	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1518	pwd)`
1519# When building in place, set srcdir=.
1520if test "$ac_abs_confdir" = "$ac_pwd"; then
1521  srcdir=.
1522fi
1523# Remove unnecessary trailing slashes from srcdir.
1524# Double slashes in file names in object file debugging info
1525# mess up M-x gdb in Emacs.
1526case $srcdir in
1527*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1528esac
1529for ac_var in $ac_precious_vars; do
1530  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1531  eval ac_env_${ac_var}_value=\$${ac_var}
1532  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1533  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1534done
1535
1536#
1537# Report the --help message.
1538#
1539if test "$ac_init_help" = "long"; then
1540  # Omit some internal or obsolete options to make the list less imposing.
1541  # This message is too long to be a string in the A/UX 3.1 sh.
1542  cat <<_ACEOF
1543\`configure' configures trousers 0.3.8 to adapt to many kinds of systems.
1544
1545Usage: $0 [OPTION]... [VAR=VALUE]...
1546
1547To assign environment variables (e.g., CC, CFLAGS...), specify them as
1548VAR=VALUE.  See below for descriptions of some of the useful variables.
1549
1550Defaults for the options are specified in brackets.
1551
1552Configuration:
1553  -h, --help              display this help and exit
1554      --help=short        display options specific to this package
1555      --help=recursive    display the short help of all the included packages
1556  -V, --version           display version information and exit
1557  -q, --quiet, --silent   do not print \`checking ...' messages
1558      --cache-file=FILE   cache test results in FILE [disabled]
1559  -C, --config-cache      alias for \`--cache-file=config.cache'
1560  -n, --no-create         do not create output files
1561      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1562
1563Installation directories:
1564  --prefix=PREFIX         install architecture-independent files in PREFIX
1565                          [$ac_default_prefix]
1566  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1567                          [PREFIX]
1568
1569By default, \`make install' will install all the files in
1570\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1571an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1572for instance \`--prefix=\$HOME'.
1573
1574For better control, use the options below.
1575
1576Fine tuning of the installation directories:
1577  --bindir=DIR            user executables [EPREFIX/bin]
1578  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1579  --libexecdir=DIR        program executables [EPREFIX/libexec]
1580  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1581  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1582  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1583  --libdir=DIR            object code libraries [EPREFIX/lib]
1584  --includedir=DIR        C header files [PREFIX/include]
1585  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1586  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1587  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1588  --infodir=DIR           info documentation [DATAROOTDIR/info]
1589  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1590  --mandir=DIR            man documentation [DATAROOTDIR/man]
1591  --docdir=DIR            documentation root [DATAROOTDIR/doc/trousers]
1592  --htmldir=DIR           html documentation [DOCDIR]
1593  --dvidir=DIR            dvi documentation [DOCDIR]
1594  --pdfdir=DIR            pdf documentation [DOCDIR]
1595  --psdir=DIR             ps documentation [DOCDIR]
1596_ACEOF
1597
1598  cat <<\_ACEOF
1599
1600Program names:
1601  --program-prefix=PREFIX            prepend PREFIX to installed program names
1602  --program-suffix=SUFFIX            append SUFFIX to installed program names
1603  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1604
1605System types:
1606  --build=BUILD     configure for building on BUILD [guessed]
1607  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1608  --target=TARGET   configure for building compilers for TARGET [HOST]
1609_ACEOF
1610fi
1611
1612if test -n "$ac_init_help"; then
1613  case $ac_init_help in
1614     short | recursive ) echo "Configuration of trousers 0.3.8:";;
1615   esac
1616  cat <<\_ACEOF
1617
1618Optional Features:
1619  --disable-option-checking  ignore unrecognized --enable/--with options
1620  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1621  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1622  --enable-debug          turn on all trousers debugging flags [default=off]
1623  --disable-dependency-tracking  speeds up one-time build
1624  --enable-dependency-tracking   do not reject slow dependency extractors
1625  --enable-gcov           turn on gcov code coverage flags [default=off]
1626  --enable-gprof          enable profiling with gprof [default=off]
1627  --enable-strict-spec-compliance
1628                          build TrouSerS as strictly spec compliant
1629                          [default=off]
1630  --enable-static[=PKGS]  build static libraries [default=no]
1631  --enable-shared[=PKGS]  build shared libraries [default=yes]
1632  --enable-fast-install[=PKGS]
1633                          optimize for fast installation [default=yes]
1634  --disable-libtool-lock  avoid locking (might break parallel builds)
1635
1636Optional Packages:
1637  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1638  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1639  --with-openssl=PATH     Location of openssl libs/includes
1640  --with-gmp              build TrouSerS with the GMP math lib (used in DAA)
1641  --with-gui              type of gui popup (gtk/none) [default=gtk]
1642  --with-api              Version of the TSS API to build [default=1.2]
1643  --with-pic              try to use only PIC/non-PIC objects [default=use
1644                          both]
1645  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1646
1647Some influential environment variables:
1648  CC          C compiler command
1649  CFLAGS      C compiler flags
1650  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1651              nonstandard directory <lib dir>
1652  LIBS        libraries to pass to the linker, e.g. -l<library>
1653  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654              you have headers in a nonstandard directory <include dir>
1655  CPP         C preprocessor
1656  PKG_CONFIG  path to pkg-config utility
1657  PKG_CONFIG_PATH
1658              directories to add to pkg-config's search path
1659  PKG_CONFIG_LIBDIR
1660              path overriding pkg-config's built-in search path
1661  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1662  GTK_LIBS    linker flags for GTK, overriding pkg-config
1663
1664Use these variables to override the choices made by `configure' or to help
1665it to find libraries and programs with nonstandard names/locations.
1666
1667Report bugs to <trousers-tech@lists.sf.net>.
1668_ACEOF
1669ac_status=$?
1670fi
1671
1672if test "$ac_init_help" = "recursive"; then
1673  # If there are subdirs, report their specific --help.
1674  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1675    test -d "$ac_dir" ||
1676      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1677      continue
1678    ac_builddir=.
1679
1680case "$ac_dir" in
1681.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1682*)
1683  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1684  # A ".." for each directory in $ac_dir_suffix.
1685  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1686  case $ac_top_builddir_sub in
1687  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1688  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1689  esac ;;
1690esac
1691ac_abs_top_builddir=$ac_pwd
1692ac_abs_builddir=$ac_pwd$ac_dir_suffix
1693# for backward compatibility:
1694ac_top_builddir=$ac_top_build_prefix
1695
1696case $srcdir in
1697  .)  # We are building in place.
1698    ac_srcdir=.
1699    ac_top_srcdir=$ac_top_builddir_sub
1700    ac_abs_top_srcdir=$ac_pwd ;;
1701  [\\/]* | ?:[\\/]* )  # Absolute name.
1702    ac_srcdir=$srcdir$ac_dir_suffix;
1703    ac_top_srcdir=$srcdir
1704    ac_abs_top_srcdir=$srcdir ;;
1705  *) # Relative name.
1706    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1707    ac_top_srcdir=$ac_top_build_prefix$srcdir
1708    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1709esac
1710ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1711
1712    cd "$ac_dir" || { ac_status=$?; continue; }
1713    # Check for guested configure.
1714    if test -f "$ac_srcdir/configure.gnu"; then
1715      echo &&
1716      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1717    elif test -f "$ac_srcdir/configure"; then
1718      echo &&
1719      $SHELL "$ac_srcdir/configure" --help=recursive
1720    else
1721      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1722    fi || ac_status=$?
1723    cd "$ac_pwd" || { ac_status=$?; break; }
1724  done
1725fi
1726
1727test -n "$ac_init_help" && exit $ac_status
1728if $ac_init_version; then
1729  cat <<\_ACEOF
1730trousers configure 0.3.8
1731generated by GNU Autoconf 2.67
1732
1733Copyright (C) 2010 Free Software Foundation, Inc.
1734This configure script is free software; the Free Software Foundation
1735gives unlimited permission to copy, distribute and modify it.
1736_ACEOF
1737  exit
1738fi
1739
1740## ------------------------ ##
1741## Autoconf initialization. ##
1742## ------------------------ ##
1743
1744# ac_fn_c_try_compile LINENO
1745# --------------------------
1746# Try to compile conftest.$ac_ext, and return whether this succeeded.
1747ac_fn_c_try_compile ()
1748{
1749  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750  rm -f conftest.$ac_objext
1751  if { { ac_try="$ac_compile"
1752case "(($ac_try" in
1753  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754  *) ac_try_echo=$ac_try;;
1755esac
1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757$as_echo "$ac_try_echo"; } >&5
1758  (eval "$ac_compile") 2>conftest.err
1759  ac_status=$?
1760  if test -s conftest.err; then
1761    grep -v '^ *+' conftest.err >conftest.er1
1762    cat conftest.er1 >&5
1763    mv -f conftest.er1 conftest.err
1764  fi
1765  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1766  test $ac_status = 0; } && {
1767	 test -z "$ac_c_werror_flag" ||
1768	 test ! -s conftest.err
1769       } && test -s conftest.$ac_objext; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: failed program was:" >&5
1773sed 's/^/| /' conftest.$ac_ext >&5
1774
1775	ac_retval=1
1776fi
1777  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1778  as_fn_set_status $ac_retval
1779
1780} # ac_fn_c_try_compile
1781
1782# ac_fn_c_try_link LINENO
1783# -----------------------
1784# Try to link conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_link ()
1786{
1787  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788  rm -f conftest.$ac_objext conftest$ac_exeext
1789  if { { ac_try="$ac_link"
1790case "(($ac_try" in
1791  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792  *) ac_try_echo=$ac_try;;
1793esac
1794eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795$as_echo "$ac_try_echo"; } >&5
1796  (eval "$ac_link") 2>conftest.err
1797  ac_status=$?
1798  if test -s conftest.err; then
1799    grep -v '^ *+' conftest.err >conftest.er1
1800    cat conftest.er1 >&5
1801    mv -f conftest.er1 conftest.err
1802  fi
1803  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804  test $ac_status = 0; } && {
1805	 test -z "$ac_c_werror_flag" ||
1806	 test ! -s conftest.err
1807       } && test -s conftest$ac_exeext && {
1808	 test "$cross_compiling" = yes ||
1809	 $as_test_x conftest$ac_exeext
1810       }; then :
1811  ac_retval=0
1812else
1813  $as_echo "$as_me: failed program was:" >&5
1814sed 's/^/| /' conftest.$ac_ext >&5
1815
1816	ac_retval=1
1817fi
1818  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1819  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1820  # interfere with the next link command; also delete a directory that is
1821  # left behind by Apple's compiler.  We do this before executing the actions.
1822  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1823  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824  as_fn_set_status $ac_retval
1825
1826} # ac_fn_c_try_link
1827
1828# ac_fn_c_try_cpp LINENO
1829# ----------------------
1830# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1831ac_fn_c_try_cpp ()
1832{
1833  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834  if { { ac_try="$ac_cpp conftest.$ac_ext"
1835case "(($ac_try" in
1836  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837  *) ac_try_echo=$ac_try;;
1838esac
1839eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840$as_echo "$ac_try_echo"; } >&5
1841  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1842  ac_status=$?
1843  if test -s conftest.err; then
1844    grep -v '^ *+' conftest.err >conftest.er1
1845    cat conftest.er1 >&5
1846    mv -f conftest.er1 conftest.err
1847  fi
1848  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849  test $ac_status = 0; } > conftest.i && {
1850	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1851	 test ! -s conftest.err
1852       }; then :
1853  ac_retval=0
1854else
1855  $as_echo "$as_me: failed program was:" >&5
1856sed 's/^/| /' conftest.$ac_ext >&5
1857
1858    ac_retval=1
1859fi
1860  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1861  as_fn_set_status $ac_retval
1862
1863} # ac_fn_c_try_cpp
1864
1865# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1866# -------------------------------------------------------
1867# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1868# the include files in INCLUDES and setting the cache variable VAR
1869# accordingly.
1870ac_fn_c_check_header_mongrel ()
1871{
1872  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873  if eval "test \"\${$3+set}\"" = set; then :
1874  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
1876if eval "test \"\${$3+set}\"" = set; then :
1877  $as_echo_n "(cached) " >&6
1878fi
1879eval ac_res=\$$3
1880	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882else
1883  # Is the header compilable?
1884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1885$as_echo_n "checking $2 usability... " >&6; }
1886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1887/* end confdefs.h.  */
1888$4
1889#include <$2>
1890_ACEOF
1891if ac_fn_c_try_compile "$LINENO"; then :
1892  ac_header_compiler=yes
1893else
1894  ac_header_compiler=no
1895fi
1896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1898$as_echo "$ac_header_compiler" >&6; }
1899
1900# Is the header present?
1901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1902$as_echo_n "checking $2 presence... " >&6; }
1903cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1904/* end confdefs.h.  */
1905#include <$2>
1906_ACEOF
1907if ac_fn_c_try_cpp "$LINENO"; then :
1908  ac_header_preproc=yes
1909else
1910  ac_header_preproc=no
1911fi
1912rm -f conftest.err conftest.i conftest.$ac_ext
1913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1914$as_echo "$ac_header_preproc" >&6; }
1915
1916# So?  What about this header?
1917case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1918  yes:no: )
1919    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1920$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1921    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1922$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1923    ;;
1924  no:yes:* )
1925    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1926$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1927    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1928$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1929    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1930$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1931    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1932$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1933    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1934$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1935( $as_echo "## ----------------------------------------- ##
1936## Report this to trousers-tech@lists.sf.net ##
1937## ----------------------------------------- ##"
1938     ) | sed "s/^/$as_me: WARNING:     /" >&2
1939    ;;
1940esac
1941  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1942$as_echo_n "checking for $2... " >&6; }
1943if eval "test \"\${$3+set}\"" = set; then :
1944  $as_echo_n "(cached) " >&6
1945else
1946  eval "$3=\$ac_header_compiler"
1947fi
1948eval ac_res=\$$3
1949	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951fi
1952  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953
1954} # ac_fn_c_check_header_mongrel
1955
1956# ac_fn_c_try_run LINENO
1957# ----------------------
1958# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1959# that executables *can* be run.
1960ac_fn_c_try_run ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  if { { ac_try="$ac_link"
1964case "(($ac_try" in
1965  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966  *) ac_try_echo=$ac_try;;
1967esac
1968eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969$as_echo "$ac_try_echo"; } >&5
1970  (eval "$ac_link") 2>&5
1971  ac_status=$?
1972  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1973  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1974  { { case "(($ac_try" in
1975  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1976  *) ac_try_echo=$ac_try;;
1977esac
1978eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1979$as_echo "$ac_try_echo"; } >&5
1980  (eval "$ac_try") 2>&5
1981  ac_status=$?
1982  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983  test $ac_status = 0; }; }; then :
1984  ac_retval=0
1985else
1986  $as_echo "$as_me: program exited with status $ac_status" >&5
1987       $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5
1989
1990       ac_retval=$ac_status
1991fi
1992  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1993  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1994  as_fn_set_status $ac_retval
1995
1996} # ac_fn_c_try_run
1997
1998# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1999# -------------------------------------------------------
2000# Tests whether HEADER exists and can be compiled using the include files in
2001# INCLUDES, setting the cache variable VAR accordingly.
2002ac_fn_c_check_header_compile ()
2003{
2004  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
2007if eval "test \"\${$3+set}\"" = set; then :
2008  $as_echo_n "(cached) " >&6
2009else
2010  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h.  */
2012$4
2013#include <$2>
2014_ACEOF
2015if ac_fn_c_try_compile "$LINENO"; then :
2016  eval "$3=yes"
2017else
2018  eval "$3=no"
2019fi
2020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021fi
2022eval ac_res=\$$3
2023	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024$as_echo "$ac_res" >&6; }
2025  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2026
2027} # ac_fn_c_check_header_compile
2028
2029# ac_fn_c_check_func LINENO FUNC VAR
2030# ----------------------------------
2031# Tests whether FUNC exists, setting the cache variable VAR accordingly
2032ac_fn_c_check_func ()
2033{
2034  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036$as_echo_n "checking for $2... " >&6; }
2037if eval "test \"\${$3+set}\"" = set; then :
2038  $as_echo_n "(cached) " >&6
2039else
2040  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041/* end confdefs.h.  */
2042/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2044#define $2 innocuous_$2
2045
2046/* System header to define __stub macros and hopefully few prototypes,
2047    which can conflict with char $2 (); below.
2048    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049    <limits.h> exists even on freestanding compilers.  */
2050
2051#ifdef __STDC__
2052# include <limits.h>
2053#else
2054# include <assert.h>
2055#endif
2056
2057#undef $2
2058
2059/* Override any GCC internal prototype to avoid an error.
2060   Use char because int might match the return type of a GCC
2061   builtin and then its argument prototype would still apply.  */
2062#ifdef __cplusplus
2063extern "C"
2064#endif
2065char $2 ();
2066/* The GNU C library defines this for functions which it implements
2067    to always fail with ENOSYS.  Some functions are actually named
2068    something starting with __ and the normal name is an alias.  */
2069#if defined __stub_$2 || defined __stub___$2
2070choke me
2071#endif
2072
2073int
2074main ()
2075{
2076return $2 ();
2077  ;
2078  return 0;
2079}
2080_ACEOF
2081if ac_fn_c_try_link "$LINENO"; then :
2082  eval "$3=yes"
2083else
2084  eval "$3=no"
2085fi
2086rm -f core conftest.err conftest.$ac_objext \
2087    conftest$ac_exeext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094} # ac_fn_c_check_func
2095
2096# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2097# ---------------------------------------------
2098# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2099# accordingly.
2100ac_fn_c_check_decl ()
2101{
2102  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103  as_decl_name=`echo $2|sed 's/ *(.*//'`
2104  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2105  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2106$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2107if eval "test \"\${$3+set}\"" = set; then :
2108  $as_echo_n "(cached) " >&6
2109else
2110  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h.  */
2112$4
2113int
2114main ()
2115{
2116#ifndef $as_decl_name
2117#ifdef __cplusplus
2118  (void) $as_decl_use;
2119#else
2120  (void) $as_decl_name;
2121#endif
2122#endif
2123
2124  ;
2125  return 0;
2126}
2127_ACEOF
2128if ac_fn_c_try_compile "$LINENO"; then :
2129  eval "$3=yes"
2130else
2131  eval "$3=no"
2132fi
2133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2134fi
2135eval ac_res=\$$3
2136	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2137$as_echo "$ac_res" >&6; }
2138  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2139
2140} # ac_fn_c_check_decl
2141cat >config.log <<_ACEOF
2142This file contains any messages produced by compilers while
2143running configure, to aid debugging if configure makes a mistake.
2144
2145It was created by trousers $as_me 0.3.8, which was
2146generated by GNU Autoconf 2.67.  Invocation command line was
2147
2148  $ $0 $@
2149
2150_ACEOF
2151exec 5>>config.log
2152{
2153cat <<_ASUNAME
2154## --------- ##
2155## Platform. ##
2156## --------- ##
2157
2158hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2159uname -m = `(uname -m) 2>/dev/null || echo unknown`
2160uname -r = `(uname -r) 2>/dev/null || echo unknown`
2161uname -s = `(uname -s) 2>/dev/null || echo unknown`
2162uname -v = `(uname -v) 2>/dev/null || echo unknown`
2163
2164/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2165/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2166
2167/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2168/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2169/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2170/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2171/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2172/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2173/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2174
2175_ASUNAME
2176
2177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180  IFS=$as_save_IFS
2181  test -z "$as_dir" && as_dir=.
2182    $as_echo "PATH: $as_dir"
2183  done
2184IFS=$as_save_IFS
2185
2186} >&5
2187
2188cat >&5 <<_ACEOF
2189
2190
2191## ----------- ##
2192## Core tests. ##
2193## ----------- ##
2194
2195_ACEOF
2196
2197
2198# Keep a trace of the command line.
2199# Strip out --no-create and --no-recursion so they do not pile up.
2200# Strip out --silent because we don't want to record it for future runs.
2201# Also quote any args containing shell meta-characters.
2202# Make two passes to allow for proper duplicate-argument suppression.
2203ac_configure_args=
2204ac_configure_args0=
2205ac_configure_args1=
2206ac_must_keep_next=false
2207for ac_pass in 1 2
2208do
2209  for ac_arg
2210  do
2211    case $ac_arg in
2212    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2213    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2214    | -silent | --silent | --silen | --sile | --sil)
2215      continue ;;
2216    *\'*)
2217      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2218    esac
2219    case $ac_pass in
2220    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2221    2)
2222      as_fn_append ac_configure_args1 " '$ac_arg'"
2223      if test $ac_must_keep_next = true; then
2224	ac_must_keep_next=false # Got value, back to normal.
2225      else
2226	case $ac_arg in
2227	  *=* | --config-cache | -C | -disable-* | --disable-* \
2228	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2229	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2230	  | -with-* | --with-* | -without-* | --without-* | --x)
2231	    case "$ac_configure_args0 " in
2232	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2233	    esac
2234	    ;;
2235	  -* ) ac_must_keep_next=true ;;
2236	esac
2237      fi
2238      as_fn_append ac_configure_args " '$ac_arg'"
2239      ;;
2240    esac
2241  done
2242done
2243{ ac_configure_args0=; unset ac_configure_args0;}
2244{ ac_configure_args1=; unset ac_configure_args1;}
2245
2246# When interrupted or exit'd, cleanup temporary files, and complete
2247# config.log.  We remove comments because anyway the quotes in there
2248# would cause problems or look ugly.
2249# WARNING: Use '\'' to represent an apostrophe within the trap.
2250# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2251trap 'exit_status=$?
2252  # Save into config.log some information that might help in debugging.
2253  {
2254    echo
2255
2256    $as_echo "## ---------------- ##
2257## Cache variables. ##
2258## ---------------- ##"
2259    echo
2260    # The following way of writing the cache mishandles newlines in values,
2261(
2262  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2263    eval ac_val=\$$ac_var
2264    case $ac_val in #(
2265    *${as_nl}*)
2266      case $ac_var in #(
2267      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2269      esac
2270      case $ac_var in #(
2271      _ | IFS | as_nl) ;; #(
2272      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2273      *) { eval $ac_var=; unset $ac_var;} ;;
2274      esac ;;
2275    esac
2276  done
2277  (set) 2>&1 |
2278    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2279    *${as_nl}ac_space=\ *)
2280      sed -n \
2281	"s/'\''/'\''\\\\'\'''\''/g;
2282	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2283      ;; #(
2284    *)
2285      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2286      ;;
2287    esac |
2288    sort
2289)
2290    echo
2291
2292    $as_echo "## ----------------- ##
2293## Output variables. ##
2294## ----------------- ##"
2295    echo
2296    for ac_var in $ac_subst_vars
2297    do
2298      eval ac_val=\$$ac_var
2299      case $ac_val in
2300      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2301      esac
2302      $as_echo "$ac_var='\''$ac_val'\''"
2303    done | sort
2304    echo
2305
2306    if test -n "$ac_subst_files"; then
2307      $as_echo "## ------------------- ##
2308## File substitutions. ##
2309## ------------------- ##"
2310      echo
2311      for ac_var in $ac_subst_files
2312      do
2313	eval ac_val=\$$ac_var
2314	case $ac_val in
2315	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316	esac
2317	$as_echo "$ac_var='\''$ac_val'\''"
2318      done | sort
2319      echo
2320    fi
2321
2322    if test -s confdefs.h; then
2323      $as_echo "## ----------- ##
2324## confdefs.h. ##
2325## ----------- ##"
2326      echo
2327      cat confdefs.h
2328      echo
2329    fi
2330    test "$ac_signal" != 0 &&
2331      $as_echo "$as_me: caught signal $ac_signal"
2332    $as_echo "$as_me: exit $exit_status"
2333  } >&5
2334  rm -f core *.core core.conftest.* &&
2335    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336    exit $exit_status
2337' 0
2338for ac_signal in 1 2 13 15; do
2339  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340done
2341ac_signal=0
2342
2343# confdefs.h avoids OS command line length limits that DEFS can exceed.
2344rm -f -r conftest* confdefs.h
2345
2346$as_echo "/* confdefs.h */" > confdefs.h
2347
2348# Predefined preprocessor variables.
2349
2350cat >>confdefs.h <<_ACEOF
2351#define PACKAGE_NAME "$PACKAGE_NAME"
2352_ACEOF
2353
2354cat >>confdefs.h <<_ACEOF
2355#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356_ACEOF
2357
2358cat >>confdefs.h <<_ACEOF
2359#define PACKAGE_VERSION "$PACKAGE_VERSION"
2360_ACEOF
2361
2362cat >>confdefs.h <<_ACEOF
2363#define PACKAGE_STRING "$PACKAGE_STRING"
2364_ACEOF
2365
2366cat >>confdefs.h <<_ACEOF
2367#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368_ACEOF
2369
2370cat >>confdefs.h <<_ACEOF
2371#define PACKAGE_URL "$PACKAGE_URL"
2372_ACEOF
2373
2374
2375# Let the site file select an alternate cache file if it wants to.
2376# Prefer an explicitly selected file to automatically selected ones.
2377ac_site_file1=NONE
2378ac_site_file2=NONE
2379if test -n "$CONFIG_SITE"; then
2380  # We do not want a PATH search for config.site.
2381  case $CONFIG_SITE in #((
2382    -*)  ac_site_file1=./$CONFIG_SITE;;
2383    */*) ac_site_file1=$CONFIG_SITE;;
2384    *)   ac_site_file1=./$CONFIG_SITE;;
2385  esac
2386elif test "x$prefix" != xNONE; then
2387  ac_site_file1=$prefix/share/config.site
2388  ac_site_file2=$prefix/etc/config.site
2389else
2390  ac_site_file1=$ac_default_prefix/share/config.site
2391  ac_site_file2=$ac_default_prefix/etc/config.site
2392fi
2393for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2394do
2395  test "x$ac_site_file" = xNONE && continue
2396  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2397    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2398$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2399    sed 's/^/| /' "$ac_site_file" >&5
2400    . "$ac_site_file" \
2401      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2403as_fn_error $? "failed to load site script $ac_site_file
2404See \`config.log' for more details" "$LINENO" 5 ; }
2405  fi
2406done
2407
2408if test -r "$cache_file"; then
2409  # Some versions of bash will fail to source /dev/null (special files
2410  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2411  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2412    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2413$as_echo "$as_me: loading cache $cache_file" >&6;}
2414    case $cache_file in
2415      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2416      *)                      . "./$cache_file";;
2417    esac
2418  fi
2419else
2420  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2421$as_echo "$as_me: creating cache $cache_file" >&6;}
2422  >$cache_file
2423fi
2424
2425# Check that the precious variables saved in the cache have kept the same
2426# value.
2427ac_cache_corrupted=false
2428for ac_var in $ac_precious_vars; do
2429  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2430  eval ac_new_set=\$ac_env_${ac_var}_set
2431  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2432  eval ac_new_val=\$ac_env_${ac_var}_value
2433  case $ac_old_set,$ac_new_set in
2434    set,)
2435      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2436$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2437      ac_cache_corrupted=: ;;
2438    ,set)
2439      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2440$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441      ac_cache_corrupted=: ;;
2442    ,);;
2443    *)
2444      if test "x$ac_old_val" != "x$ac_new_val"; then
2445	# differences in whitespace do not lead to failure.
2446	ac_old_val_w=`echo x $ac_old_val`
2447	ac_new_val_w=`echo x $ac_new_val`
2448	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2449	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2450$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2451	  ac_cache_corrupted=:
2452	else
2453	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2454$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2455	  eval $ac_var=\$ac_old_val
2456	fi
2457	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2458$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2459	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2460$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2461      fi;;
2462  esac
2463  # Pass precious variables to config.status.
2464  if test "$ac_new_set" = set; then
2465    case $ac_new_val in
2466    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2467    *) ac_arg=$ac_var=$ac_new_val ;;
2468    esac
2469    case " $ac_configure_args " in
2470      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2471      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2472    esac
2473  fi
2474done
2475if $ac_cache_corrupted; then
2476  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2477$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2479$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2480  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2481fi
2482## -------------------- ##
2483## Main body of script. ##
2484## -------------------- ##
2485
2486ac_ext=c
2487ac_cpp='$CPP $CPPFLAGS'
2488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2490ac_compiler_gnu=$ac_cv_c_compiler_gnu
2491
2492
2493
2494TSS_SPEC_MAJOR=1
2495TSS_SPEC_MINOR=2
2496TSS_VER_MAJOR=0
2497TSS_VER_MINOR=3
2498
2499# compute $target
2500ac_aux_dir=
2501for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2502  if test -f "$ac_dir/install-sh"; then
2503    ac_aux_dir=$ac_dir
2504    ac_install_sh="$ac_aux_dir/install-sh -c"
2505    break
2506  elif test -f "$ac_dir/install.sh"; then
2507    ac_aux_dir=$ac_dir
2508    ac_install_sh="$ac_aux_dir/install.sh -c"
2509    break
2510  elif test -f "$ac_dir/shtool"; then
2511    ac_aux_dir=$ac_dir
2512    ac_install_sh="$ac_aux_dir/shtool install -c"
2513    break
2514  fi
2515done
2516if test -z "$ac_aux_dir"; then
2517  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2518fi
2519
2520# These three variables are undocumented and unsupported,
2521# and are intended to be withdrawn in a future Autoconf release.
2522# They can cause serious problems if a builder's source tree is in a directory
2523# whose full name contains unusual characters.
2524ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2525ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2526ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2527
2528
2529# Make sure we can run config.sub.
2530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2531  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2532
2533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2534$as_echo_n "checking build system type... " >&6; }
2535if test "${ac_cv_build+set}" = set; then :
2536  $as_echo_n "(cached) " >&6
2537else
2538  ac_build_alias=$build_alias
2539test "x$ac_build_alias" = x &&
2540  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2541test "x$ac_build_alias" = x &&
2542  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2544  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2545
2546fi
2547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2548$as_echo "$ac_cv_build" >&6; }
2549case $ac_cv_build in
2550*-*-*) ;;
2551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2552esac
2553build=$ac_cv_build
2554ac_save_IFS=$IFS; IFS='-'
2555set x $ac_cv_build
2556shift
2557build_cpu=$1
2558build_vendor=$2
2559shift; shift
2560# Remember, the first character of IFS is used to create $*,
2561# except with old shells:
2562build_os=$*
2563IFS=$ac_save_IFS
2564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2565
2566
2567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2568$as_echo_n "checking host system type... " >&6; }
2569if test "${ac_cv_host+set}" = set; then :
2570  $as_echo_n "(cached) " >&6
2571else
2572  if test "x$host_alias" = x; then
2573  ac_cv_host=$ac_cv_build
2574else
2575  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2576    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2577fi
2578
2579fi
2580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2581$as_echo "$ac_cv_host" >&6; }
2582case $ac_cv_host in
2583*-*-*) ;;
2584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2585esac
2586host=$ac_cv_host
2587ac_save_IFS=$IFS; IFS='-'
2588set x $ac_cv_host
2589shift
2590host_cpu=$1
2591host_vendor=$2
2592shift; shift
2593# Remember, the first character of IFS is used to create $*,
2594# except with old shells:
2595host_os=$*
2596IFS=$ac_save_IFS
2597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2598
2599
2600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2601$as_echo_n "checking target system type... " >&6; }
2602if test "${ac_cv_target+set}" = set; then :
2603  $as_echo_n "(cached) " >&6
2604else
2605  if test "x$target_alias" = x; then
2606  ac_cv_target=$ac_cv_host
2607else
2608  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2609    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2610fi
2611
2612fi
2613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2614$as_echo "$ac_cv_target" >&6; }
2615case $ac_cv_target in
2616*-*-*) ;;
2617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2618esac
2619target=$ac_cv_target
2620ac_save_IFS=$IFS; IFS='-'
2621set x $ac_cv_target
2622shift
2623target_cpu=$1
2624target_vendor=$2
2625shift; shift
2626# Remember, the first character of IFS is used to create $*,
2627# except with old shells:
2628target_os=$*
2629IFS=$ac_save_IFS
2630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2631
2632
2633# The aliases save the names the user supplied, while $host etc.
2634# will get canonicalized.
2635test -n "$target_alias" &&
2636  test "$program_prefix$program_suffix$program_transform_name" = \
2637    NONENONEs,x,x, &&
2638  program_prefix=${target_alias}-
2639am__api_version='1.11'
2640
2641# Find a good install program.  We prefer a C program (faster),
2642# so one script is as good as another.  But avoid the broken or
2643# incompatible versions:
2644# SysV /etc/install, /usr/sbin/install
2645# SunOS /usr/etc/install
2646# IRIX /sbin/install
2647# AIX /bin/install
2648# AmigaOS /C/install, which installs bootblocks on floppy discs
2649# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2650# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2651# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2652# OS/2's system install, which has a completely different semantic
2653# ./install, which can be erroneously created by make from ./install.sh.
2654# Reject install programs that cannot install multiple files.
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2656$as_echo_n "checking for a BSD-compatible install... " >&6; }
2657if test -z "$INSTALL"; then
2658if test "${ac_cv_path_install+set}" = set; then :
2659  $as_echo_n "(cached) " >&6
2660else
2661  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2662for as_dir in $PATH
2663do
2664  IFS=$as_save_IFS
2665  test -z "$as_dir" && as_dir=.
2666    # Account for people who put trailing slashes in PATH elements.
2667case $as_dir/ in #((
2668  ./ | .// | /[cC]/* | \
2669  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2670  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2671  /usr/ucb/* ) ;;
2672  *)
2673    # OSF1 and SCO ODT 3.0 have their own names for install.
2674    # Don't use installbsd from OSF since it installs stuff as root
2675    # by default.
2676    for ac_prog in ginstall scoinst install; do
2677      for ac_exec_ext in '' $ac_executable_extensions; do
2678	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2679	  if test $ac_prog = install &&
2680	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2681	    # AIX install.  It has an incompatible calling convention.
2682	    :
2683	  elif test $ac_prog = install &&
2684	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2685	    # program-specific install script used by HP pwplus--don't use.
2686	    :
2687	  else
2688	    rm -rf conftest.one conftest.two conftest.dir
2689	    echo one > conftest.one
2690	    echo two > conftest.two
2691	    mkdir conftest.dir
2692	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2693	      test -s conftest.one && test -s conftest.two &&
2694	      test -s conftest.dir/conftest.one &&
2695	      test -s conftest.dir/conftest.two
2696	    then
2697	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2698	      break 3
2699	    fi
2700	  fi
2701	fi
2702      done
2703    done
2704    ;;
2705esac
2706
2707  done
2708IFS=$as_save_IFS
2709
2710rm -rf conftest.one conftest.two conftest.dir
2711
2712fi
2713  if test "${ac_cv_path_install+set}" = set; then
2714    INSTALL=$ac_cv_path_install
2715  else
2716    # As a last resort, use the slow shell script.  Don't cache a
2717    # value for INSTALL within a source directory, because that will
2718    # break other packages using the cache if that directory is
2719    # removed, or if the value is a relative name.
2720    INSTALL=$ac_install_sh
2721  fi
2722fi
2723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2724$as_echo "$INSTALL" >&6; }
2725
2726# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2727# It thinks the first close brace ends the variable substitution.
2728test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2729
2730test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2731
2732test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2733
2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2735$as_echo_n "checking whether build environment is sane... " >&6; }
2736# Just in case
2737sleep 1
2738echo timestamp > conftest.file
2739# Reject unsafe characters in $srcdir or the absolute working directory
2740# name.  Accept space and tab only in the latter.
2741am_lf='
2742'
2743case `pwd` in
2744  *[\\\"\#\$\&\'\`$am_lf]*)
2745    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2746esac
2747case $srcdir in
2748  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2749    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2750esac
2751
2752# Do `set' in a subshell so we don't clobber the current shell's
2753# arguments.  Must try -L first in case configure is actually a
2754# symlink; some systems play weird games with the mod time of symlinks
2755# (eg FreeBSD returns the mod time of the symlink's containing
2756# directory).
2757if (
2758   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2759   if test "$*" = "X"; then
2760      # -L didn't work.
2761      set X `ls -t "$srcdir/configure" conftest.file`
2762   fi
2763   rm -f conftest.file
2764   if test "$*" != "X $srcdir/configure conftest.file" \
2765      && test "$*" != "X conftest.file $srcdir/configure"; then
2766
2767      # If neither matched, then we have a broken ls.  This can happen
2768      # if, for instance, CONFIG_SHELL is bash and it inherits a
2769      # broken ls alias from the environment.  This has actually
2770      # happened.  Such a system could not be considered "sane".
2771      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2772alias in your environment" "$LINENO" 5
2773   fi
2774
2775   test "$2" = conftest.file
2776   )
2777then
2778   # Ok.
2779   :
2780else
2781   as_fn_error $? "newly created file is older than distributed files!
2782Check your system clock" "$LINENO" 5
2783fi
2784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2785$as_echo "yes" >&6; }
2786test "$program_prefix" != NONE &&
2787  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2788# Use a double $ so make ignores it.
2789test "$program_suffix" != NONE &&
2790  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2791# Double any \ or $.
2792# By default was `s,x,x', remove it if useless.
2793ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2794program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2795
2796# expand $ac_aux_dir to an absolute path
2797am_aux_dir=`cd $ac_aux_dir && pwd`
2798
2799if test x"${MISSING+set}" != xset; then
2800  case $am_aux_dir in
2801  *\ * | *\	*)
2802    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2803  *)
2804    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2805  esac
2806fi
2807# Use eval to expand $SHELL
2808if eval "$MISSING --run true"; then
2809  am_missing_run="$MISSING --run "
2810else
2811  am_missing_run=
2812  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2813$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2814fi
2815
2816if test x"${install_sh}" != xset; then
2817  case $am_aux_dir in
2818  *\ * | *\	*)
2819    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2820  *)
2821    install_sh="\${SHELL} $am_aux_dir/install-sh"
2822  esac
2823fi
2824
2825# Installed binaries are usually stripped using `strip' when the user
2826# run `make install-strip'.  However `strip' might not be the right
2827# tool to use in cross-compilation environments, therefore Automake
2828# will honor the `STRIP' environment variable to overrule this program.
2829if test "$cross_compiling" != no; then
2830  if test -n "$ac_tool_prefix"; then
2831  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2832set dummy ${ac_tool_prefix}strip; ac_word=$2
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2834$as_echo_n "checking for $ac_word... " >&6; }
2835if test "${ac_cv_prog_STRIP+set}" = set; then :
2836  $as_echo_n "(cached) " >&6
2837else
2838  if test -n "$STRIP"; then
2839  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2840else
2841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2842for as_dir in $PATH
2843do
2844  IFS=$as_save_IFS
2845  test -z "$as_dir" && as_dir=.
2846    for ac_exec_ext in '' $ac_executable_extensions; do
2847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2848    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850    break 2
2851  fi
2852done
2853  done
2854IFS=$as_save_IFS
2855
2856fi
2857fi
2858STRIP=$ac_cv_prog_STRIP
2859if test -n "$STRIP"; then
2860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2861$as_echo "$STRIP" >&6; }
2862else
2863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2864$as_echo "no" >&6; }
2865fi
2866
2867
2868fi
2869if test -z "$ac_cv_prog_STRIP"; then
2870  ac_ct_STRIP=$STRIP
2871  # Extract the first word of "strip", so it can be a program name with args.
2872set dummy strip; ac_word=$2
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2874$as_echo_n "checking for $ac_word... " >&6; }
2875if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2876  $as_echo_n "(cached) " >&6
2877else
2878  if test -n "$ac_ct_STRIP"; then
2879  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2880else
2881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884  IFS=$as_save_IFS
2885  test -z "$as_dir" && as_dir=.
2886    for ac_exec_ext in '' $ac_executable_extensions; do
2887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2888    ac_cv_prog_ac_ct_STRIP="strip"
2889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2890    break 2
2891  fi
2892done
2893  done
2894IFS=$as_save_IFS
2895
2896fi
2897fi
2898ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2899if test -n "$ac_ct_STRIP"; then
2900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2901$as_echo "$ac_ct_STRIP" >&6; }
2902else
2903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904$as_echo "no" >&6; }
2905fi
2906
2907  if test "x$ac_ct_STRIP" = x; then
2908    STRIP=":"
2909  else
2910    case $cross_compiling:$ac_tool_warned in
2911yes:)
2912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2914ac_tool_warned=yes ;;
2915esac
2916    STRIP=$ac_ct_STRIP
2917  fi
2918else
2919  STRIP="$ac_cv_prog_STRIP"
2920fi
2921
2922fi
2923INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2924
2925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2926$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2927if test -z "$MKDIR_P"; then
2928  if test "${ac_cv_path_mkdir+set}" = set; then :
2929  $as_echo_n "(cached) " >&6
2930else
2931  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2932for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2933do
2934  IFS=$as_save_IFS
2935  test -z "$as_dir" && as_dir=.
2936    for ac_prog in mkdir gmkdir; do
2937	 for ac_exec_ext in '' $ac_executable_extensions; do
2938	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2939	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2940	     'mkdir (GNU coreutils) '* | \
2941	     'mkdir (coreutils) '* | \
2942	     'mkdir (fileutils) '4.1*)
2943	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2944	       break 3;;
2945	   esac
2946	 done
2947       done
2948  done
2949IFS=$as_save_IFS
2950
2951fi
2952
2953  test -d ./--version && rmdir ./--version
2954  if test "${ac_cv_path_mkdir+set}" = set; then
2955    MKDIR_P="$ac_cv_path_mkdir -p"
2956  else
2957    # As a last resort, use the slow shell script.  Don't cache a
2958    # value for MKDIR_P within a source directory, because that will
2959    # break other packages using the cache if that directory is
2960    # removed, or if the value is a relative name.
2961    MKDIR_P="$ac_install_sh -d"
2962  fi
2963fi
2964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2965$as_echo "$MKDIR_P" >&6; }
2966
2967mkdir_p="$MKDIR_P"
2968case $mkdir_p in
2969  [\\/$]* | ?:[\\/]*) ;;
2970  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2971esac
2972
2973for ac_prog in gawk mawk nawk awk
2974do
2975  # Extract the first word of "$ac_prog", so it can be a program name with args.
2976set dummy $ac_prog; ac_word=$2
2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2978$as_echo_n "checking for $ac_word... " >&6; }
2979if test "${ac_cv_prog_AWK+set}" = set; then :
2980  $as_echo_n "(cached) " >&6
2981else
2982  if test -n "$AWK"; then
2983  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2984else
2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986for as_dir in $PATH
2987do
2988  IFS=$as_save_IFS
2989  test -z "$as_dir" && as_dir=.
2990    for ac_exec_ext in '' $ac_executable_extensions; do
2991  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992    ac_cv_prog_AWK="$ac_prog"
2993    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2994    break 2
2995  fi
2996done
2997  done
2998IFS=$as_save_IFS
2999
3000fi
3001fi
3002AWK=$ac_cv_prog_AWK
3003if test -n "$AWK"; then
3004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3005$as_echo "$AWK" >&6; }
3006else
3007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3008$as_echo "no" >&6; }
3009fi
3010
3011
3012  test -n "$AWK" && break
3013done
3014
3015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3016$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3017set x ${MAKE-make}
3018ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3019if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3020  $as_echo_n "(cached) " >&6
3021else
3022  cat >conftest.make <<\_ACEOF
3023SHELL = /bin/sh
3024all:
3025	@echo '@@@%%%=$(MAKE)=@@@%%%'
3026_ACEOF
3027# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3028case `${MAKE-make} -f conftest.make 2>/dev/null` in
3029  *@@@%%%=?*=@@@%%%*)
3030    eval ac_cv_prog_make_${ac_make}_set=yes;;
3031  *)
3032    eval ac_cv_prog_make_${ac_make}_set=no;;
3033esac
3034rm -f conftest.make
3035fi
3036if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3038$as_echo "yes" >&6; }
3039  SET_MAKE=
3040else
3041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3042$as_echo "no" >&6; }
3043  SET_MAKE="MAKE=${MAKE-make}"
3044fi
3045
3046rm -rf .tst 2>/dev/null
3047mkdir .tst 2>/dev/null
3048if test -d .tst; then
3049  am__leading_dot=.
3050else
3051  am__leading_dot=_
3052fi
3053rmdir .tst 2>/dev/null
3054
3055if test "`cd $srcdir && pwd`" != "`pwd`"; then
3056  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3057  # is not polluted with repeated "-I."
3058  am__isrc=' -I$(srcdir)'
3059  # test to see if srcdir already configured
3060  if test -f $srcdir/config.status; then
3061    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3062  fi
3063fi
3064
3065# test whether we have cygpath
3066if test -z "$CYGPATH_W"; then
3067  if (cygpath --version) >/dev/null 2>/dev/null; then
3068    CYGPATH_W='cygpath -w'
3069  else
3070    CYGPATH_W=echo
3071  fi
3072fi
3073
3074
3075# Define the identity of the package.
3076 PACKAGE='trousers'
3077 VERSION='0.3.8'
3078
3079
3080cat >>confdefs.h <<_ACEOF
3081#define PACKAGE "$PACKAGE"
3082_ACEOF
3083
3084
3085cat >>confdefs.h <<_ACEOF
3086#define VERSION "$VERSION"
3087_ACEOF
3088
3089# Some tools Automake needs.
3090
3091ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3092
3093
3094AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3095
3096
3097AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3098
3099
3100AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3101
3102
3103MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3104
3105# We need awk for the "check" target.  The system "awk" is bad on
3106# some platforms.
3107# Always define AMTAR for backward compatibility.
3108
3109AMTAR=${AMTAR-"${am_missing_run}tar"}
3110
3111am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3112
3113
3114
3115
3116
3117
3118# Debugging support
3119# Check whether --enable-debug was given.
3120if test "${enable_debug+set}" = set; then :
3121  enableval=$enable_debug; { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Enabling debugging at user request ***" >&5
3122$as_echo "*** Enabling debugging at user request ***" >&6; }
3123fi
3124
3125
3126# If the user has not set CFLAGS, do something appropriate
3127test_CFLAGS=${CFLAGS+set}
3128if test "$test_CFLAGS" != set; then
3129	if test "x$enable_debug" = "xyes"; then
3130		CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type"
3131#		CFLAGS="-O0 -g -DTSS_DEBUG -Wreturn-type -DTCSD_SINGLE_THREAD_DEBUG"
3132	else
3133		CFLAGS="-O2"
3134	fi
3135else
3136	if test "x$enable_debug" = "xyes"; then
3137		CFLAGS="${CFLAGS} -O0 -g -DTSS_DEBUG -Wreturn-type"
3138	fi
3139fi
3140
3141# Arch specific stuff
3142case $target in
3143        *ppc64* | *powerpc64* | *x86_64*)
3144		CFLAGS="$CFLAGS -m64"
3145		;;
3146	*solaris*)
3147		CFLAGS="$CFLAGS -DSOLARIS"
3148		;;
3149        *)
3150                ;;
3151esac
3152
3153# Non-standard OpenSSL location
3154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Non-standard OpenSSL location" >&5
3155$as_echo_n "checking Non-standard OpenSSL location... " >&6; }
3156
3157# Check whether --with-openssl was given.
3158if test "${with_openssl+set}" = set; then :
3159  withval=$with_openssl; OPENSSL_INCLUDE_DIR="$withval/include"
3160	 OPENSSL_LIB_DIR="$withval/lib"
3161	 if [ ! -d $OPENSSL_INCLUDE_DIR -o ! -d $OPENSSL_LIB_DIR ]; then
3162		as_fn_error $? "$OPENSSL_INCLUDE_DIR or $OPENSSL_LIB_DIR doen't exist!" "$LINENO" 5
3163	 else
3164		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3165$as_echo "yes" >&6; }
3166		CFLAGS="$CFLAGS -L$OPENSSL_LIB_DIR -I$OPENSSL_INCLUDE_DIR"
3167
3168	 fi
3169else
3170  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171$as_echo "no" >&6; }
3172
3173fi
3174
3175
3176# The tspi Makefile will look for trspi/crypto/@CRYPTO_PACKAGE@/crypto.c
3177# Future crypto packages can go in their own subdir of trspi/crypto
3178# and a check for them should be made here
3179DEPDIR="${am__leading_dot}deps"
3180
3181ac_config_commands="$ac_config_commands depfiles"
3182
3183
3184am_make=${MAKE-make}
3185cat > confinc << 'END'
3186am__doit:
3187	@echo this is the am__doit target
3188.PHONY: am__doit
3189END
3190# If we don't find an include directive, just comment out the code.
3191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3192$as_echo_n "checking for style of include used by $am_make... " >&6; }
3193am__include="#"
3194am__quote=
3195_am_result=none
3196# First try GNU make style include.
3197echo "include confinc" > confmf
3198# Ignore all kinds of additional output from `make'.
3199case `$am_make -s -f confmf 2> /dev/null` in #(
3200*the\ am__doit\ target*)
3201  am__include=include
3202  am__quote=
3203  _am_result=GNU
3204  ;;
3205esac
3206# Now try BSD make style include.
3207if test "$am__include" = "#"; then
3208   echo '.include "confinc"' > confmf
3209   case `$am_make -s -f confmf 2> /dev/null` in #(
3210   *the\ am__doit\ target*)
3211     am__include=.include
3212     am__quote="\""
3213     _am_result=BSD
3214     ;;
3215   esac
3216fi
3217
3218
3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3220$as_echo "$_am_result" >&6; }
3221rm -f confinc confmf
3222
3223# Check whether --enable-dependency-tracking was given.
3224if test "${enable_dependency_tracking+set}" = set; then :
3225  enableval=$enable_dependency_tracking;
3226fi
3227
3228if test "x$enable_dependency_tracking" != xno; then
3229  am_depcomp="$ac_aux_dir/depcomp"
3230  AMDEPBACKSLASH='\'
3231fi
3232 if test "x$enable_dependency_tracking" != xno; then
3233  AMDEP_TRUE=
3234  AMDEP_FALSE='#'
3235else
3236  AMDEP_TRUE='#'
3237  AMDEP_FALSE=
3238fi
3239
3240
3241ac_ext=c
3242ac_cpp='$CPP $CPPFLAGS'
3243ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3244ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3245ac_compiler_gnu=$ac_cv_c_compiler_gnu
3246if test -n "$ac_tool_prefix"; then
3247  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3248set dummy ${ac_tool_prefix}gcc; ac_word=$2
3249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250$as_echo_n "checking for $ac_word... " >&6; }
3251if test "${ac_cv_prog_CC+set}" = set; then :
3252  $as_echo_n "(cached) " >&6
3253else
3254  if test -n "$CC"; then
3255  ac_cv_prog_CC="$CC" # Let the user override the test.
3256else
3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258for as_dir in $PATH
3259do
3260  IFS=$as_save_IFS
3261  test -z "$as_dir" && as_dir=.
3262    for ac_exec_ext in '' $ac_executable_extensions; do
3263  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3265    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266    break 2
3267  fi
3268done
3269  done
3270IFS=$as_save_IFS
3271
3272fi
3273fi
3274CC=$ac_cv_prog_CC
3275if test -n "$CC"; then
3276  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3277$as_echo "$CC" >&6; }
3278else
3279  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280$as_echo "no" >&6; }
3281fi
3282
3283
3284fi
3285if test -z "$ac_cv_prog_CC"; then
3286  ac_ct_CC=$CC
3287  # Extract the first word of "gcc", so it can be a program name with args.
3288set dummy gcc; ac_word=$2
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3290$as_echo_n "checking for $ac_word... " >&6; }
3291if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3292  $as_echo_n "(cached) " >&6
3293else
3294  if test -n "$ac_ct_CC"; then
3295  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3296else
3297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3298for as_dir in $PATH
3299do
3300  IFS=$as_save_IFS
3301  test -z "$as_dir" && as_dir=.
3302    for ac_exec_ext in '' $ac_executable_extensions; do
3303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304    ac_cv_prog_ac_ct_CC="gcc"
3305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3306    break 2
3307  fi
3308done
3309  done
3310IFS=$as_save_IFS
3311
3312fi
3313fi
3314ac_ct_CC=$ac_cv_prog_ac_ct_CC
3315if test -n "$ac_ct_CC"; then
3316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3317$as_echo "$ac_ct_CC" >&6; }
3318else
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320$as_echo "no" >&6; }
3321fi
3322
3323  if test "x$ac_ct_CC" = x; then
3324    CC=""
3325  else
3326    case $cross_compiling:$ac_tool_warned in
3327yes:)
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3329$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3330ac_tool_warned=yes ;;
3331esac
3332    CC=$ac_ct_CC
3333  fi
3334else
3335  CC="$ac_cv_prog_CC"
3336fi
3337
3338if test -z "$CC"; then
3339          if test -n "$ac_tool_prefix"; then
3340    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3341set dummy ${ac_tool_prefix}cc; ac_word=$2
3342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3343$as_echo_n "checking for $ac_word... " >&6; }
3344if test "${ac_cv_prog_CC+set}" = set; then :
3345  $as_echo_n "(cached) " >&6
3346else
3347  if test -n "$CC"; then
3348  ac_cv_prog_CC="$CC" # Let the user override the test.
3349else
3350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3351for as_dir in $PATH
3352do
3353  IFS=$as_save_IFS
3354  test -z "$as_dir" && as_dir=.
3355    for ac_exec_ext in '' $ac_executable_extensions; do
3356  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3357    ac_cv_prog_CC="${ac_tool_prefix}cc"
3358    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359    break 2
3360  fi
3361done
3362  done
3363IFS=$as_save_IFS
3364
3365fi
3366fi
3367CC=$ac_cv_prog_CC
3368if test -n "$CC"; then
3369  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3370$as_echo "$CC" >&6; }
3371else
3372  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3373$as_echo "no" >&6; }
3374fi
3375
3376
3377  fi
3378fi
3379if test -z "$CC"; then
3380  # Extract the first word of "cc", so it can be a program name with args.
3381set dummy cc; ac_word=$2
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383$as_echo_n "checking for $ac_word... " >&6; }
3384if test "${ac_cv_prog_CC+set}" = set; then :
3385  $as_echo_n "(cached) " >&6
3386else
3387  if test -n "$CC"; then
3388  ac_cv_prog_CC="$CC" # Let the user override the test.
3389else
3390  ac_prog_rejected=no
3391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3392for as_dir in $PATH
3393do
3394  IFS=$as_save_IFS
3395  test -z "$as_dir" && as_dir=.
3396    for ac_exec_ext in '' $ac_executable_extensions; do
3397  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3398    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3399       ac_prog_rejected=yes
3400       continue
3401     fi
3402    ac_cv_prog_CC="cc"
3403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3404    break 2
3405  fi
3406done
3407  done
3408IFS=$as_save_IFS
3409
3410if test $ac_prog_rejected = yes; then
3411  # We found a bogon in the path, so make sure we never use it.
3412  set dummy $ac_cv_prog_CC
3413  shift
3414  if test $# != 0; then
3415    # We chose a different compiler from the bogus one.
3416    # However, it has the same basename, so the bogon will be chosen
3417    # first if we set CC to just the basename; use the full file name.
3418    shift
3419    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3420  fi
3421fi
3422fi
3423fi
3424CC=$ac_cv_prog_CC
3425if test -n "$CC"; then
3426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3427$as_echo "$CC" >&6; }
3428else
3429  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430$as_echo "no" >&6; }
3431fi
3432
3433
3434fi
3435if test -z "$CC"; then
3436  if test -n "$ac_tool_prefix"; then
3437  for ac_prog in cl.exe
3438  do
3439    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3440set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442$as_echo_n "checking for $ac_word... " >&6; }
3443if test "${ac_cv_prog_CC+set}" = set; then :
3444  $as_echo_n "(cached) " >&6
3445else
3446  if test -n "$CC"; then
3447  ac_cv_prog_CC="$CC" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452  IFS=$as_save_IFS
3453  test -z "$as_dir" && as_dir=.
3454    for ac_exec_ext in '' $ac_executable_extensions; do
3455  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3456    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3457    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458    break 2
3459  fi
3460done
3461  done
3462IFS=$as_save_IFS
3463
3464fi
3465fi
3466CC=$ac_cv_prog_CC
3467if test -n "$CC"; then
3468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3469$as_echo "$CC" >&6; }
3470else
3471  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3472$as_echo "no" >&6; }
3473fi
3474
3475
3476    test -n "$CC" && break
3477  done
3478fi
3479if test -z "$CC"; then
3480  ac_ct_CC=$CC
3481  for ac_prog in cl.exe
3482do
3483  # Extract the first word of "$ac_prog", so it can be a program name with args.
3484set dummy $ac_prog; ac_word=$2
3485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486$as_echo_n "checking for $ac_word... " >&6; }
3487if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3488  $as_echo_n "(cached) " >&6
3489else
3490  if test -n "$ac_ct_CC"; then
3491  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3492else
3493as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494for as_dir in $PATH
3495do
3496  IFS=$as_save_IFS
3497  test -z "$as_dir" && as_dir=.
3498    for ac_exec_ext in '' $ac_executable_extensions; do
3499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500    ac_cv_prog_ac_ct_CC="$ac_prog"
3501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502    break 2
3503  fi
3504done
3505  done
3506IFS=$as_save_IFS
3507
3508fi
3509fi
3510ac_ct_CC=$ac_cv_prog_ac_ct_CC
3511if test -n "$ac_ct_CC"; then
3512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3513$as_echo "$ac_ct_CC" >&6; }
3514else
3515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516$as_echo "no" >&6; }
3517fi
3518
3519
3520  test -n "$ac_ct_CC" && break
3521done
3522
3523  if test "x$ac_ct_CC" = x; then
3524    CC=""
3525  else
3526    case $cross_compiling:$ac_tool_warned in
3527yes:)
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3529$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3530ac_tool_warned=yes ;;
3531esac
3532    CC=$ac_ct_CC
3533  fi
3534fi
3535
3536fi
3537
3538
3539test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3540$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3541as_fn_error $? "no acceptable C compiler found in \$PATH
3542See \`config.log' for more details" "$LINENO" 5 ; }
3543
3544# Provide some information about the compiler.
3545$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3546set X $ac_compile
3547ac_compiler=$2
3548for ac_option in --version -v -V -qversion; do
3549  { { ac_try="$ac_compiler $ac_option >&5"
3550case "(($ac_try" in
3551  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552  *) ac_try_echo=$ac_try;;
3553esac
3554eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555$as_echo "$ac_try_echo"; } >&5
3556  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3557  ac_status=$?
3558  if test -s conftest.err; then
3559    sed '10a\
3560... rest of stderr output deleted ...
3561         10q' conftest.err >conftest.er1
3562    cat conftest.er1 >&5
3563  fi
3564  rm -f conftest.er1 conftest.err
3565  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566  test $ac_status = 0; }
3567done
3568
3569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570/* end confdefs.h.  */
3571
3572int
3573main ()
3574{
3575
3576  ;
3577  return 0;
3578}
3579_ACEOF
3580ac_clean_files_save=$ac_clean_files
3581ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3582# Try to create an executable without -o first, disregard a.out.
3583# It will help us diagnose broken compilers, and finding out an intuition
3584# of exeext.
3585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3586$as_echo_n "checking whether the C compiler works... " >&6; }
3587ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3588
3589# The possible output files:
3590ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3591
3592ac_rmfiles=
3593for ac_file in $ac_files
3594do
3595  case $ac_file in
3596    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3597    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3598  esac
3599done
3600rm -f $ac_rmfiles
3601
3602if { { ac_try="$ac_link_default"
3603case "(($ac_try" in
3604  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3605  *) ac_try_echo=$ac_try;;
3606esac
3607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3608$as_echo "$ac_try_echo"; } >&5
3609  (eval "$ac_link_default") 2>&5
3610  ac_status=$?
3611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3612  test $ac_status = 0; }; then :
3613  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3614# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3615# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3616# so that the user can short-circuit this test for compilers unknown to
3617# Autoconf.
3618for ac_file in $ac_files ''
3619do
3620  test -f "$ac_file" || continue
3621  case $ac_file in
3622    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3623	;;
3624    [ab].out )
3625	# We found the default executable, but exeext='' is most
3626	# certainly right.
3627	break;;
3628    *.* )
3629	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3630	then :; else
3631	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3632	fi
3633	# We set ac_cv_exeext here because the later test for it is not
3634	# safe: cross compilers may not add the suffix if given an `-o'
3635	# argument, so we may need to know it at that point already.
3636	# Even if this section looks crufty: it has the advantage of
3637	# actually working.
3638	break;;
3639    * )
3640	break;;
3641  esac
3642done
3643test "$ac_cv_exeext" = no && ac_cv_exeext=
3644
3645else
3646  ac_file=''
3647fi
3648if test -z "$ac_file"; then :
3649  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3650$as_echo "no" >&6; }
3651$as_echo "$as_me: failed program was:" >&5
3652sed 's/^/| /' conftest.$ac_ext >&5
3653
3654{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656as_fn_error 77 "C compiler cannot create executables
3657See \`config.log' for more details" "$LINENO" 5 ; }
3658else
3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660$as_echo "yes" >&6; }
3661fi
3662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3663$as_echo_n "checking for C compiler default output file name... " >&6; }
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3665$as_echo "$ac_file" >&6; }
3666ac_exeext=$ac_cv_exeext
3667
3668rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3669ac_clean_files=$ac_clean_files_save
3670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3671$as_echo_n "checking for suffix of executables... " >&6; }
3672if { { ac_try="$ac_link"
3673case "(($ac_try" in
3674  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675  *) ac_try_echo=$ac_try;;
3676esac
3677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678$as_echo "$ac_try_echo"; } >&5
3679  (eval "$ac_link") 2>&5
3680  ac_status=$?
3681  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682  test $ac_status = 0; }; then :
3683  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3684# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3685# work properly (i.e., refer to `conftest.exe'), while it won't with
3686# `rm'.
3687for ac_file in conftest.exe conftest conftest.*; do
3688  test -f "$ac_file" || continue
3689  case $ac_file in
3690    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3691    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692	  break;;
3693    * ) break;;
3694  esac
3695done
3696else
3697  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3700See \`config.log' for more details" "$LINENO" 5 ; }
3701fi
3702rm -f conftest conftest$ac_cv_exeext
3703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3704$as_echo "$ac_cv_exeext" >&6; }
3705
3706rm -f conftest.$ac_ext
3707EXEEXT=$ac_cv_exeext
3708ac_exeext=$EXEEXT
3709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710/* end confdefs.h.  */
3711#include <stdio.h>
3712int
3713main ()
3714{
3715FILE *f = fopen ("conftest.out", "w");
3716 return ferror (f) || fclose (f) != 0;
3717
3718  ;
3719  return 0;
3720}
3721_ACEOF
3722ac_clean_files="$ac_clean_files conftest.out"
3723# Check that the compiler produces executables we can run.  If not, either
3724# the compiler is broken, or we cross compile.
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3726$as_echo_n "checking whether we are cross compiling... " >&6; }
3727if test "$cross_compiling" != yes; then
3728  { { ac_try="$ac_link"
3729case "(($ac_try" in
3730  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731  *) ac_try_echo=$ac_try;;
3732esac
3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3734$as_echo "$ac_try_echo"; } >&5
3735  (eval "$ac_link") 2>&5
3736  ac_status=$?
3737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3738  test $ac_status = 0; }
3739  if { ac_try='./conftest$ac_cv_exeext'
3740  { { case "(($ac_try" in
3741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742  *) ac_try_echo=$ac_try;;
3743esac
3744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3745$as_echo "$ac_try_echo"; } >&5
3746  (eval "$ac_try") 2>&5
3747  ac_status=$?
3748  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3749  test $ac_status = 0; }; }; then
3750    cross_compiling=no
3751  else
3752    if test "$cross_compiling" = maybe; then
3753	cross_compiling=yes
3754    else
3755	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3757as_fn_error $? "cannot run C compiled programs.
3758If you meant to cross compile, use \`--host'.
3759See \`config.log' for more details" "$LINENO" 5 ; }
3760    fi
3761  fi
3762fi
3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3764$as_echo "$cross_compiling" >&6; }
3765
3766rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3767ac_clean_files=$ac_clean_files_save
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3769$as_echo_n "checking for suffix of object files... " >&6; }
3770if test "${ac_cv_objext+set}" = set; then :
3771  $as_echo_n "(cached) " >&6
3772else
3773  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774/* end confdefs.h.  */
3775
3776int
3777main ()
3778{
3779
3780  ;
3781  return 0;
3782}
3783_ACEOF
3784rm -f conftest.o conftest.obj
3785if { { ac_try="$ac_compile"
3786case "(($ac_try" in
3787  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788  *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3791$as_echo "$ac_try_echo"; } >&5
3792  (eval "$ac_compile") 2>&5
3793  ac_status=$?
3794  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3795  test $ac_status = 0; }; then :
3796  for ac_file in conftest.o conftest.obj conftest.*; do
3797  test -f "$ac_file" || continue;
3798  case $ac_file in
3799    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3800    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3801       break;;
3802  esac
3803done
3804else
3805  $as_echo "$as_me: failed program was:" >&5
3806sed 's/^/| /' conftest.$ac_ext >&5
3807
3808{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3809$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3810as_fn_error $? "cannot compute suffix of object files: cannot compile
3811See \`config.log' for more details" "$LINENO" 5 ; }
3812fi
3813rm -f conftest.$ac_cv_objext conftest.$ac_ext
3814fi
3815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3816$as_echo "$ac_cv_objext" >&6; }
3817OBJEXT=$ac_cv_objext
3818ac_objext=$OBJEXT
3819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3820$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3821if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3822  $as_echo_n "(cached) " >&6
3823else
3824  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3825/* end confdefs.h.  */
3826
3827int
3828main ()
3829{
3830#ifndef __GNUC__
3831       choke me
3832#endif
3833
3834  ;
3835  return 0;
3836}
3837_ACEOF
3838if ac_fn_c_try_compile "$LINENO"; then :
3839  ac_compiler_gnu=yes
3840else
3841  ac_compiler_gnu=no
3842fi
3843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3844ac_cv_c_compiler_gnu=$ac_compiler_gnu
3845
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3848$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3849if test $ac_compiler_gnu = yes; then
3850  GCC=yes
3851else
3852  GCC=
3853fi
3854ac_test_CFLAGS=${CFLAGS+set}
3855ac_save_CFLAGS=$CFLAGS
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3857$as_echo_n "checking whether $CC accepts -g... " >&6; }
3858if test "${ac_cv_prog_cc_g+set}" = set; then :
3859  $as_echo_n "(cached) " >&6
3860else
3861  ac_save_c_werror_flag=$ac_c_werror_flag
3862   ac_c_werror_flag=yes
3863   ac_cv_prog_cc_g=no
3864   CFLAGS="-g"
3865   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866/* end confdefs.h.  */
3867
3868int
3869main ()
3870{
3871
3872  ;
3873  return 0;
3874}
3875_ACEOF
3876if ac_fn_c_try_compile "$LINENO"; then :
3877  ac_cv_prog_cc_g=yes
3878else
3879  CFLAGS=""
3880      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881/* end confdefs.h.  */
3882
3883int
3884main ()
3885{
3886
3887  ;
3888  return 0;
3889}
3890_ACEOF
3891if ac_fn_c_try_compile "$LINENO"; then :
3892
3893else
3894  ac_c_werror_flag=$ac_save_c_werror_flag
3895	 CFLAGS="-g"
3896	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897/* end confdefs.h.  */
3898
3899int
3900main ()
3901{
3902
3903  ;
3904  return 0;
3905}
3906_ACEOF
3907if ac_fn_c_try_compile "$LINENO"; then :
3908  ac_cv_prog_cc_g=yes
3909fi
3910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3911fi
3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3913fi
3914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3915   ac_c_werror_flag=$ac_save_c_werror_flag
3916fi
3917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3918$as_echo "$ac_cv_prog_cc_g" >&6; }
3919if test "$ac_test_CFLAGS" = set; then
3920  CFLAGS=$ac_save_CFLAGS
3921elif test $ac_cv_prog_cc_g = yes; then
3922  if test "$GCC" = yes; then
3923    CFLAGS="-g -O2"
3924  else
3925    CFLAGS="-g"
3926  fi
3927else
3928  if test "$GCC" = yes; then
3929    CFLAGS="-O2"
3930  else
3931    CFLAGS=
3932  fi
3933fi
3934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3935$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3936if test "${ac_cv_prog_cc_c89+set}" = set; then :
3937  $as_echo_n "(cached) " >&6
3938else
3939  ac_cv_prog_cc_c89=no
3940ac_save_CC=$CC
3941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943#include <stdarg.h>
3944#include <stdio.h>
3945#include <sys/types.h>
3946#include <sys/stat.h>
3947/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3948struct buf { int x; };
3949FILE * (*rcsopen) (struct buf *, struct stat *, int);
3950static char *e (p, i)
3951     char **p;
3952     int i;
3953{
3954  return p[i];
3955}
3956static char *f (char * (*g) (char **, int), char **p, ...)
3957{
3958  char *s;
3959  va_list v;
3960  va_start (v,p);
3961  s = g (p, va_arg (v,int));
3962  va_end (v);
3963  return s;
3964}
3965
3966/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3967   function prototypes and stuff, but not '\xHH' hex character constants.
3968   These don't provoke an error unfortunately, instead are silently treated
3969   as 'x'.  The following induces an error, until -std is added to get
3970   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3971   array size at least.  It's necessary to write '\x00'==0 to get something
3972   that's true only with -std.  */
3973int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3974
3975/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3976   inside strings and character constants.  */
3977#define FOO(x) 'x'
3978int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3979
3980int test (int i, double x);
3981struct s1 {int (*f) (int a);};
3982struct s2 {int (*f) (double a);};
3983int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3984int argc;
3985char **argv;
3986int
3987main ()
3988{
3989return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3990  ;
3991  return 0;
3992}
3993_ACEOF
3994for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3995	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3996do
3997  CC="$ac_save_CC $ac_arg"
3998  if ac_fn_c_try_compile "$LINENO"; then :
3999  ac_cv_prog_cc_c89=$ac_arg
4000fi
4001rm -f core conftest.err conftest.$ac_objext
4002  test "x$ac_cv_prog_cc_c89" != "xno" && break
4003done
4004rm -f conftest.$ac_ext
4005CC=$ac_save_CC
4006
4007fi
4008# AC_CACHE_VAL
4009case "x$ac_cv_prog_cc_c89" in
4010  x)
4011    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4012$as_echo "none needed" >&6; } ;;
4013  xno)
4014    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4015$as_echo "unsupported" >&6; } ;;
4016  *)
4017    CC="$CC $ac_cv_prog_cc_c89"
4018    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4019$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4020esac
4021if test "x$ac_cv_prog_cc_c89" != xno; then :
4022
4023fi
4024
4025ac_ext=c
4026ac_cpp='$CPP $CPPFLAGS'
4027ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029ac_compiler_gnu=$ac_cv_c_compiler_gnu
4030
4031depcc="$CC"   am_compiler_list=
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4034$as_echo_n "checking dependency style of $depcc... " >&6; }
4035if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4036  $as_echo_n "(cached) " >&6
4037else
4038  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4039  # We make a subdir and do the tests there.  Otherwise we can end up
4040  # making bogus files that we don't know about and never remove.  For
4041  # instance it was reported that on HP-UX the gcc test will end up
4042  # making a dummy file named `D' -- because `-MD' means `put the output
4043  # in D'.
4044  mkdir conftest.dir
4045  # Copy depcomp to subdir because otherwise we won't find it if we're
4046  # using a relative directory.
4047  cp "$am_depcomp" conftest.dir
4048  cd conftest.dir
4049  # We will build objects and dependencies in a subdirectory because
4050  # it helps to detect inapplicable dependency modes.  For instance
4051  # both Tru64's cc and ICC support -MD to output dependencies as a
4052  # side effect of compilation, but ICC will put the dependencies in
4053  # the current directory while Tru64 will put them in the object
4054  # directory.
4055  mkdir sub
4056
4057  am_cv_CC_dependencies_compiler_type=none
4058  if test "$am_compiler_list" = ""; then
4059     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4060  fi
4061  am__universal=false
4062  case " $depcc " in #(
4063     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4064     esac
4065
4066  for depmode in $am_compiler_list; do
4067    # Setup a source with many dependencies, because some compilers
4068    # like to wrap large dependency lists on column 80 (with \), and
4069    # we should not choose a depcomp mode which is confused by this.
4070    #
4071    # We need to recreate these files for each test, as the compiler may
4072    # overwrite some of them when testing with obscure command lines.
4073    # This happens at least with the AIX C compiler.
4074    : > sub/conftest.c
4075    for i in 1 2 3 4 5 6; do
4076      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4077      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4078      # Solaris 8's {/usr,}/bin/sh.
4079      touch sub/conftst$i.h
4080    done
4081    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4082
4083    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4084    # mode.  It turns out that the SunPro C++ compiler does not properly
4085    # handle `-M -o', and we need to detect this.  Also, some Intel
4086    # versions had trouble with output in subdirs
4087    am__obj=sub/conftest.${OBJEXT-o}
4088    am__minus_obj="-o $am__obj"
4089    case $depmode in
4090    gcc)
4091      # This depmode causes a compiler race in universal mode.
4092      test "$am__universal" = false || continue
4093      ;;
4094    nosideeffect)
4095      # after this tag, mechanisms are not by side-effect, so they'll
4096      # only be used when explicitly requested
4097      if test "x$enable_dependency_tracking" = xyes; then
4098	continue
4099      else
4100	break
4101      fi
4102      ;;
4103    msvisualcpp | msvcmsys)
4104      # This compiler won't grok `-c -o', but also, the minuso test has
4105      # not run yet.  These depmodes are late enough in the game, and
4106      # so weak that their functioning should not be impacted.
4107      am__obj=conftest.${OBJEXT-o}
4108      am__minus_obj=
4109      ;;
4110    none) break ;;
4111    esac
4112    if depmode=$depmode \
4113       source=sub/conftest.c object=$am__obj \
4114       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4115       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4116         >/dev/null 2>conftest.err &&
4117       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4118       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4119       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4120       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4121      # icc doesn't choke on unknown options, it will just issue warnings
4122      # or remarks (even with -Werror).  So we grep stderr for any message
4123      # that says an option was ignored or not supported.
4124      # When given -MP, icc 7.0 and 7.1 complain thusly:
4125      #   icc: Command line warning: ignoring option '-M'; no argument required
4126      # The diagnosis changed in icc 8.0:
4127      #   icc: Command line remark: option '-MP' not supported
4128      if (grep 'ignoring option' conftest.err ||
4129          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4130        am_cv_CC_dependencies_compiler_type=$depmode
4131        break
4132      fi
4133    fi
4134  done
4135
4136  cd ..
4137  rm -rf conftest.dir
4138else
4139  am_cv_CC_dependencies_compiler_type=none
4140fi
4141
4142fi
4143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4144$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4145CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4146
4147 if
4148  test "x$enable_dependency_tracking" != xno \
4149  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4150  am__fastdepCC_TRUE=
4151  am__fastdepCC_FALSE='#'
4152else
4153  am__fastdepCC_TRUE='#'
4154  am__fastdepCC_FALSE=
4155fi
4156
4157
4158
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_DigestUpdate in -lcrypto" >&5
4160$as_echo_n "checking for EVP_DigestUpdate in -lcrypto... " >&6; }
4161if test "${ac_cv_lib_crypto_EVP_DigestUpdate+set}" = set; then :
4162  $as_echo_n "(cached) " >&6
4163else
4164  ac_check_lib_save_LIBS=$LIBS
4165LIBS="-lcrypto  $LIBS"
4166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4167/* end confdefs.h.  */
4168
4169/* Override any GCC internal prototype to avoid an error.
4170   Use char because int might match the return type of a GCC
4171   builtin and then its argument prototype would still apply.  */
4172#ifdef __cplusplus
4173extern "C"
4174#endif
4175char EVP_DigestUpdate ();
4176int
4177main ()
4178{
4179return EVP_DigestUpdate ();
4180  ;
4181  return 0;
4182}
4183_ACEOF
4184if ac_fn_c_try_link "$LINENO"; then :
4185  ac_cv_lib_crypto_EVP_DigestUpdate=yes
4186else
4187  ac_cv_lib_crypto_EVP_DigestUpdate=no
4188fi
4189rm -f core conftest.err conftest.$ac_objext \
4190    conftest$ac_exeext conftest.$ac_ext
4191LIBS=$ac_check_lib_save_LIBS
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_DigestUpdate" >&5
4194$as_echo "$ac_cv_lib_crypto_EVP_DigestUpdate" >&6; }
4195if test "x$ac_cv_lib_crypto_EVP_DigestUpdate" = x""yes; then :
4196  CRYPTO_PACKAGE='openssl'
4197else
4198  as_fn_error $? "openssl is currently the only supported crypto library for trousers. Please install openssl from http://www.openssl.org or the -devel package from your distro" "$LINENO" 5
4199fi
4200
4201
4202CRYPTOLIB=-lcrypto
4203
4204
4205# Check whether --enable-gcov was given.
4206if test "${enable_gcov+set}" = set; then :
4207  enableval=$enable_gcov; CFLAGS="$CFLAGS -ftest-coverage -fprofile-arcs"
4208		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Enabling gcov at user request ***" >&5
4209$as_echo "*** Enabling gcov at user request ***" >&6; }
4210fi
4211
4212
4213# profiling support
4214# Check whether --enable-gprof was given.
4215if test "${enable_gprof+set}" = set; then :
4216  enableval=$enable_gprof; CFLAGS="$CFLAGS -pg"
4217		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Enabling profiling at user request ***" >&5
4218$as_echo "*** Enabling profiling at user request ***" >&6; }
4219fi
4220
4221
4222SPEC_COMP=0
4223# strict spec compliance
4224# Check whether --enable-strict-spec-compliance was given.
4225if test "${enable_strict_spec_compliance+set}" = set; then :
4226  enableval=$enable_strict_spec_compliance; CFLAGS="$CFLAGS -DTSS_SPEC_COMPLIANCE"
4227		 SPEC_COMP=1
4228		 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Enabling spec compliance at user request ***" >&5
4229$as_echo "*** Enabling spec compliance at user request ***" >&6; }
4230fi
4231
4232
4233# daa math lib: gmp or openssl (default openssl)
4234MATH_DEFINE=BI_OPENSSL
4235ac_ext=c
4236ac_cpp='$CPP $CPPFLAGS'
4237ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4238ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4239ac_compiler_gnu=$ac_cv_c_compiler_gnu
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4241$as_echo_n "checking how to run the C preprocessor... " >&6; }
4242# On Suns, sometimes $CPP names a directory.
4243if test -n "$CPP" && test -d "$CPP"; then
4244  CPP=
4245fi
4246if test -z "$CPP"; then
4247  if test "${ac_cv_prog_CPP+set}" = set; then :
4248  $as_echo_n "(cached) " >&6
4249else
4250      # Double quotes because CPP needs to be expanded
4251    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4252    do
4253      ac_preproc_ok=false
4254for ac_c_preproc_warn_flag in '' yes
4255do
4256  # Use a header file that comes with gcc, so configuring glibc
4257  # with a fresh cross-compiler works.
4258  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259  # <limits.h> exists even on freestanding compilers.
4260  # On the NeXT, cc -E runs the code through the compiler's parser,
4261  # not just through cpp. "Syntax error" is here to catch this case.
4262  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263/* end confdefs.h.  */
4264#ifdef __STDC__
4265# include <limits.h>
4266#else
4267# include <assert.h>
4268#endif
4269		     Syntax error
4270_ACEOF
4271if ac_fn_c_try_cpp "$LINENO"; then :
4272
4273else
4274  # Broken: fails on valid input.
4275continue
4276fi
4277rm -f conftest.err conftest.i conftest.$ac_ext
4278
4279  # OK, works on sane cases.  Now check whether nonexistent headers
4280  # can be detected and how.
4281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h.  */
4283#include <ac_nonexistent.h>
4284_ACEOF
4285if ac_fn_c_try_cpp "$LINENO"; then :
4286  # Broken: success on invalid input.
4287continue
4288else
4289  # Passes both tests.
4290ac_preproc_ok=:
4291break
4292fi
4293rm -f conftest.err conftest.i conftest.$ac_ext
4294
4295done
4296# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4297rm -f conftest.i conftest.err conftest.$ac_ext
4298if $ac_preproc_ok; then :
4299  break
4300fi
4301
4302    done
4303    ac_cv_prog_CPP=$CPP
4304
4305fi
4306  CPP=$ac_cv_prog_CPP
4307else
4308  ac_cv_prog_CPP=$CPP
4309fi
4310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4311$as_echo "$CPP" >&6; }
4312ac_preproc_ok=false
4313for ac_c_preproc_warn_flag in '' yes
4314do
4315  # Use a header file that comes with gcc, so configuring glibc
4316  # with a fresh cross-compiler works.
4317  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318  # <limits.h> exists even on freestanding compilers.
4319  # On the NeXT, cc -E runs the code through the compiler's parser,
4320  # not just through cpp. "Syntax error" is here to catch this case.
4321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h.  */
4323#ifdef __STDC__
4324# include <limits.h>
4325#else
4326# include <assert.h>
4327#endif
4328		     Syntax error
4329_ACEOF
4330if ac_fn_c_try_cpp "$LINENO"; then :
4331
4332else
4333  # Broken: fails on valid input.
4334continue
4335fi
4336rm -f conftest.err conftest.i conftest.$ac_ext
4337
4338  # OK, works on sane cases.  Now check whether nonexistent headers
4339  # can be detected and how.
4340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341/* end confdefs.h.  */
4342#include <ac_nonexistent.h>
4343_ACEOF
4344if ac_fn_c_try_cpp "$LINENO"; then :
4345  # Broken: success on invalid input.
4346continue
4347else
4348  # Passes both tests.
4349ac_preproc_ok=:
4350break
4351fi
4352rm -f conftest.err conftest.i conftest.$ac_ext
4353
4354done
4355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4356rm -f conftest.i conftest.err conftest.$ac_ext
4357if $ac_preproc_ok; then :
4358
4359else
4360  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4362as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4363See \`config.log' for more details" "$LINENO" 5 ; }
4364fi
4365
4366ac_ext=c
4367ac_cpp='$CPP $CPPFLAGS'
4368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4370ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371
4372
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4374$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4375if test "${ac_cv_path_GREP+set}" = set; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  if test -z "$GREP"; then
4379  ac_path_GREP_found=false
4380  # Loop through the user's path and test for each of PROGNAME-LIST
4381  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4382for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383do
4384  IFS=$as_save_IFS
4385  test -z "$as_dir" && as_dir=.
4386    for ac_prog in grep ggrep; do
4387    for ac_exec_ext in '' $ac_executable_extensions; do
4388      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4389      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4390# Check for GNU ac_path_GREP and select it if it is found.
4391  # Check for GNU $ac_path_GREP
4392case `"$ac_path_GREP" --version 2>&1` in
4393*GNU*)
4394  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4395*)
4396  ac_count=0
4397  $as_echo_n 0123456789 >"conftest.in"
4398  while :
4399  do
4400    cat "conftest.in" "conftest.in" >"conftest.tmp"
4401    mv "conftest.tmp" "conftest.in"
4402    cp "conftest.in" "conftest.nl"
4403    $as_echo 'GREP' >> "conftest.nl"
4404    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4405    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4406    as_fn_arith $ac_count + 1 && ac_count=$as_val
4407    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4408      # Best one so far, save it but keep looking for a better one
4409      ac_cv_path_GREP="$ac_path_GREP"
4410      ac_path_GREP_max=$ac_count
4411    fi
4412    # 10*(2^10) chars as input seems more than enough
4413    test $ac_count -gt 10 && break
4414  done
4415  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4416esac
4417
4418      $ac_path_GREP_found && break 3
4419    done
4420  done
4421  done
4422IFS=$as_save_IFS
4423  if test -z "$ac_cv_path_GREP"; then
4424    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425  fi
4426else
4427  ac_cv_path_GREP=$GREP
4428fi
4429
4430fi
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4432$as_echo "$ac_cv_path_GREP" >&6; }
4433 GREP="$ac_cv_path_GREP"
4434
4435
4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4437$as_echo_n "checking for egrep... " >&6; }
4438if test "${ac_cv_path_EGREP+set}" = set; then :
4439  $as_echo_n "(cached) " >&6
4440else
4441  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4442   then ac_cv_path_EGREP="$GREP -E"
4443   else
4444     if test -z "$EGREP"; then
4445  ac_path_EGREP_found=false
4446  # Loop through the user's path and test for each of PROGNAME-LIST
4447  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4449do
4450  IFS=$as_save_IFS
4451  test -z "$as_dir" && as_dir=.
4452    for ac_prog in egrep; do
4453    for ac_exec_ext in '' $ac_executable_extensions; do
4454      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4455      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4456# Check for GNU ac_path_EGREP and select it if it is found.
4457  # Check for GNU $ac_path_EGREP
4458case `"$ac_path_EGREP" --version 2>&1` in
4459*GNU*)
4460  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4461*)
4462  ac_count=0
4463  $as_echo_n 0123456789 >"conftest.in"
4464  while :
4465  do
4466    cat "conftest.in" "conftest.in" >"conftest.tmp"
4467    mv "conftest.tmp" "conftest.in"
4468    cp "conftest.in" "conftest.nl"
4469    $as_echo 'EGREP' >> "conftest.nl"
4470    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4471    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4472    as_fn_arith $ac_count + 1 && ac_count=$as_val
4473    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4474      # Best one so far, save it but keep looking for a better one
4475      ac_cv_path_EGREP="$ac_path_EGREP"
4476      ac_path_EGREP_max=$ac_count
4477    fi
4478    # 10*(2^10) chars as input seems more than enough
4479    test $ac_count -gt 10 && break
4480  done
4481  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482esac
4483
4484      $ac_path_EGREP_found && break 3
4485    done
4486  done
4487  done
4488IFS=$as_save_IFS
4489  if test -z "$ac_cv_path_EGREP"; then
4490    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4491  fi
4492else
4493  ac_cv_path_EGREP=$EGREP
4494fi
4495
4496   fi
4497fi
4498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4499$as_echo "$ac_cv_path_EGREP" >&6; }
4500 EGREP="$ac_cv_path_EGREP"
4501
4502
4503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4504$as_echo_n "checking for ANSI C header files... " >&6; }
4505if test "${ac_cv_header_stdc+set}" = set; then :
4506  $as_echo_n "(cached) " >&6
4507else
4508  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509/* end confdefs.h.  */
4510#include <stdlib.h>
4511#include <stdarg.h>
4512#include <string.h>
4513#include <float.h>
4514
4515int
4516main ()
4517{
4518
4519  ;
4520  return 0;
4521}
4522_ACEOF
4523if ac_fn_c_try_compile "$LINENO"; then :
4524  ac_cv_header_stdc=yes
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4529
4530if test $ac_cv_header_stdc = yes; then
4531  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533/* end confdefs.h.  */
4534#include <string.h>
4535
4536_ACEOF
4537if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538  $EGREP "memchr" >/dev/null 2>&1; then :
4539
4540else
4541  ac_cv_header_stdc=no
4542fi
4543rm -f conftest*
4544
4545fi
4546
4547if test $ac_cv_header_stdc = yes; then
4548  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4549  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h.  */
4551#include <stdlib.h>
4552
4553_ACEOF
4554if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4555  $EGREP "free" >/dev/null 2>&1; then :
4556
4557else
4558  ac_cv_header_stdc=no
4559fi
4560rm -f conftest*
4561
4562fi
4563
4564if test $ac_cv_header_stdc = yes; then
4565  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4566  if test "$cross_compiling" = yes; then :
4567  :
4568else
4569  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4570/* end confdefs.h.  */
4571#include <ctype.h>
4572#include <stdlib.h>
4573#if ((' ' & 0x0FF) == 0x020)
4574# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4575# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4576#else
4577# define ISLOWER(c) \
4578		   (('a' <= (c) && (c) <= 'i') \
4579		     || ('j' <= (c) && (c) <= 'r') \
4580		     || ('s' <= (c) && (c) <= 'z'))
4581# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4582#endif
4583
4584#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4585int
4586main ()
4587{
4588  int i;
4589  for (i = 0; i < 256; i++)
4590    if (XOR (islower (i), ISLOWER (i))
4591	|| toupper (i) != TOUPPER (i))
4592      return 2;
4593  return 0;
4594}
4595_ACEOF
4596if ac_fn_c_try_run "$LINENO"; then :
4597
4598else
4599  ac_cv_header_stdc=no
4600fi
4601rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4602  conftest.$ac_objext conftest.beam conftest.$ac_ext
4603fi
4604
4605fi
4606fi
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4608$as_echo "$ac_cv_header_stdc" >&6; }
4609if test $ac_cv_header_stdc = yes; then
4610
4611$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4612
4613fi
4614
4615# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4616for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4617		  inttypes.h stdint.h unistd.h
4618do :
4619  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4620ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4621"
4622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4623  cat >>confdefs.h <<_ACEOF
4624#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4625_ACEOF
4626
4627fi
4628
4629done
4630
4631
4632
4633# Check whether --with-gmp was given.
4634if test "${with_gmp+set}" = set; then :
4635  withval=$with_gmp; { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmp_rand in -lgmp" >&5
4636$as_echo_n "checking for __gmp_rand in -lgmp... " >&6; }
4637if test "${ac_cv_lib_gmp___gmp_rand+set}" = set; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640  ac_check_lib_save_LIBS=$LIBS
4641LIBS="-lgmp  $LIBS"
4642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4643/* end confdefs.h.  */
4644
4645/* Override any GCC internal prototype to avoid an error.
4646   Use char because int might match the return type of a GCC
4647   builtin and then its argument prototype would still apply.  */
4648#ifdef __cplusplus
4649extern "C"
4650#endif
4651char __gmp_rand ();
4652int
4653main ()
4654{
4655return __gmp_rand ();
4656  ;
4657  return 0;
4658}
4659_ACEOF
4660if ac_fn_c_try_link "$LINENO"; then :
4661  ac_cv_lib_gmp___gmp_rand=yes
4662else
4663  ac_cv_lib_gmp___gmp_rand=no
4664fi
4665rm -f core conftest.err conftest.$ac_objext \
4666    conftest$ac_exeext conftest.$ac_ext
4667LIBS=$ac_check_lib_save_LIBS
4668fi
4669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmp_rand" >&5
4670$as_echo "$ac_cv_lib_gmp___gmp_rand" >&6; }
4671if test "x$ac_cv_lib_gmp___gmp_rand" = x""yes; then :
4672  cat >>confdefs.h <<_ACEOF
4673#define HAVE_LIBGMP 1
4674_ACEOF
4675
4676  LIBS="-lgmp $LIBS"
4677
4678fi
4679
4680		for ac_header in gmp.h
4681do :
4682  ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
4683if test "x$ac_cv_header_gmp_h" = x""yes; then :
4684  cat >>confdefs.h <<_ACEOF
4685#define HAVE_GMP_H 1
4686_ACEOF
4687
4688fi
4689
4690done
4691
4692	    MATH_DEFINE=BI_GMP
4693		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Enabling GMP lib at user request ***" >&5
4694$as_echo "*** Enabling GMP lib at user request ***" >&6; }
4695
4696fi
4697
4698
4699case "$MATH_DEFINE" in
4700BI_OPENSSL)
4701	for ac_header in  openssl/bn.h openssl/engine.h
4702do :
4703  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4704ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4706  cat >>confdefs.h <<_ACEOF
4707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4708_ACEOF
4709
4710fi
4711
4712done
4713
4714	;;
4715esac
4716CFLAGS="$CFLAGS -D$MATH_DEFINE"
4717
4718GUI=openssl
4719
4720# Check whether --with-gui was given.
4721if test "${with_gui+set}" = set; then :
4722  withval=$with_gui; GUI=$withval
4723fi
4724
4725
4726if test "x$GUI" = "xgtk"; then
4727	# section imported from Glade compile
4728	pkg_modules="gtk+-2.0 >= 2.0.0"
4729
4730
4731
4732
4733
4734
4735if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4736	if test -n "$ac_tool_prefix"; then
4737  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4738set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4740$as_echo_n "checking for $ac_word... " >&6; }
4741if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
4742  $as_echo_n "(cached) " >&6
4743else
4744  case $PKG_CONFIG in
4745  [\\/]* | ?:[\\/]*)
4746  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4747  ;;
4748  *)
4749  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4750for as_dir in $PATH
4751do
4752  IFS=$as_save_IFS
4753  test -z "$as_dir" && as_dir=.
4754    for ac_exec_ext in '' $ac_executable_extensions; do
4755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4756    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4758    break 2
4759  fi
4760done
4761  done
4762IFS=$as_save_IFS
4763
4764  ;;
4765esac
4766fi
4767PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4768if test -n "$PKG_CONFIG"; then
4769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4770$as_echo "$PKG_CONFIG" >&6; }
4771else
4772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4773$as_echo "no" >&6; }
4774fi
4775
4776
4777fi
4778if test -z "$ac_cv_path_PKG_CONFIG"; then
4779  ac_pt_PKG_CONFIG=$PKG_CONFIG
4780  # Extract the first word of "pkg-config", so it can be a program name with args.
4781set dummy pkg-config; ac_word=$2
4782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4783$as_echo_n "checking for $ac_word... " >&6; }
4784if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
4785  $as_echo_n "(cached) " >&6
4786else
4787  case $ac_pt_PKG_CONFIG in
4788  [\\/]* | ?:[\\/]*)
4789  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4790  ;;
4791  *)
4792  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4793for as_dir in $PATH
4794do
4795  IFS=$as_save_IFS
4796  test -z "$as_dir" && as_dir=.
4797    for ac_exec_ext in '' $ac_executable_extensions; do
4798  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4799    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4801    break 2
4802  fi
4803done
4804  done
4805IFS=$as_save_IFS
4806
4807  ;;
4808esac
4809fi
4810ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4811if test -n "$ac_pt_PKG_CONFIG"; then
4812  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4813$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4814else
4815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816$as_echo "no" >&6; }
4817fi
4818
4819  if test "x$ac_pt_PKG_CONFIG" = x; then
4820    PKG_CONFIG=""
4821  else
4822    case $cross_compiling:$ac_tool_warned in
4823yes:)
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4826ac_tool_warned=yes ;;
4827esac
4828    PKG_CONFIG=$ac_pt_PKG_CONFIG
4829  fi
4830else
4831  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4832fi
4833
4834fi
4835if test -n "$PKG_CONFIG"; then
4836	_pkg_min_version=0.9.0
4837	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4838$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4839	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4840		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4841$as_echo "yes" >&6; }
4842	else
4843		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844$as_echo "no" >&6; }
4845		PKG_CONFIG=""
4846	fi
4847fi
4848
4849pkg_failed=no
4850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
4851$as_echo_n "checking for GTK... " >&6; }
4852
4853if test -n "$GTK_CFLAGS"; then
4854    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
4855 elif test -n "$PKG_CONFIG"; then
4856    if test -n "$PKG_CONFIG" && \
4857    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
4858  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
4859  ac_status=$?
4860  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4861  test $ac_status = 0; }; then
4862  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null`
4863else
4864  pkg_failed=yes
4865fi
4866 else
4867    pkg_failed=untried
4868fi
4869if test -n "$GTK_LIBS"; then
4870    pkg_cv_GTK_LIBS="$GTK_LIBS"
4871 elif test -n "$PKG_CONFIG"; then
4872    if test -n "$PKG_CONFIG" && \
4873    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\""; } >&5
4874  ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5
4875  ac_status=$?
4876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4877  test $ac_status = 0; }; then
4878  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null`
4879else
4880  pkg_failed=yes
4881fi
4882 else
4883    pkg_failed=untried
4884fi
4885
4886
4887
4888if test $pkg_failed = yes; then
4889   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4890$as_echo "no" >&6; }
4891
4892if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4893        _pkg_short_errors_supported=yes
4894else
4895        _pkg_short_errors_supported=no
4896fi
4897        if test $_pkg_short_errors_supported = yes; then
4898	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$pkg_modules" 2>&1`
4899        else
4900	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "$pkg_modules" 2>&1`
4901        fi
4902	# Put the nasty error message in config.log where it belongs
4903	echo "$GTK_PKG_ERRORS" >&5
4904
4905	 if false; then
4906  HAVE_GTK_TRUE=
4907  HAVE_GTK_FALSE='#'
4908else
4909  HAVE_GTK_TRUE='#'
4910  HAVE_GTK_FALSE=
4911fi
4912
4913		as_fn_error $? "Please install the gtk2-devel package for your distro or select another gui option." "$LINENO" 5
4914elif test $pkg_failed = untried; then
4915     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4916$as_echo "no" >&6; }
4917	 if false; then
4918  HAVE_GTK_TRUE=
4919  HAVE_GTK_FALSE='#'
4920else
4921  HAVE_GTK_TRUE='#'
4922  HAVE_GTK_FALSE=
4923fi
4924
4925		as_fn_error $? "Please install the gtk2-devel package for your distro or select another gui option." "$LINENO" 5
4926else
4927	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
4928	GTK_LIBS=$pkg_cv_GTK_LIBS
4929        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4930$as_echo "yes" >&6; }
4931	 if true; then
4932  HAVE_GTK_TRUE=
4933  HAVE_GTK_FALSE='#'
4934else
4935  HAVE_GTK_TRUE='#'
4936  HAVE_GTK_FALSE=
4937fi
4938
4939fi
4940	 if false; then
4941  OPENSSL_UI_TRUE=
4942  OPENSSL_UI_FALSE='#'
4943else
4944  OPENSSL_UI_TRUE='#'
4945  OPENSSL_UI_FALSE=
4946fi
4947
4948
4949
4950elif test "x$GUI" = "xopenssl"; then
4951	# We know we have OpenSSL
4952	 if true; then
4953  OPENSSL_UI_TRUE=
4954  OPENSSL_UI_FALSE='#'
4955else
4956  OPENSSL_UI_TRUE='#'
4957  OPENSSL_UI_FALSE=
4958fi
4959
4960	 if false; then
4961  HAVE_GTK_TRUE=
4962  HAVE_GTK_FALSE='#'
4963else
4964  HAVE_GTK_TRUE='#'
4965  HAVE_GTK_FALSE=
4966fi
4967
4968elif test "x$GUI" = "xnone"; then
4969	if test $SPEC_COMP -eq 1; then
4970		as_fn_error $? "Popups must be enabled in strict spec compliance mode" "$LINENO" 5
4971	fi
4972	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Disabling GUI popups at user request ***" >&5
4973$as_echo "*** Disabling GUI popups at user request ***" >&6; }
4974	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** WARNING: This may break apps! ***" >&5
4975$as_echo "*** WARNING: This may break apps! ***" >&6; }
4976	CFLAGS="$CFLAGS -DTSS_NO_GUI"
4977	 if false; then
4978  HAVE_GTK_TRUE=
4979  HAVE_GTK_FALSE='#'
4980else
4981  HAVE_GTK_TRUE='#'
4982  HAVE_GTK_FALSE=
4983fi
4984
4985	 if false; then
4986  OPENSSL_UI_TRUE=
4987  OPENSSL_UI_FALSE='#'
4988else
4989  OPENSSL_UI_TRUE='#'
4990  OPENSSL_UI_FALSE=
4991fi
4992
4993else
4994	as_fn_error $? "\"gtk\", \"openssl\" and \"none\" are the only supported gui options for trousers" "$LINENO" 5
4995fi
4996
4997#
4998# The default port that the TCS daemon listens on
4999#
5000TCSD_DEFAULT_PORT=30003
5001
5002#
5003# The RPC mechanism to build into both libtspi and the tcsd
5004#
5005# AC_SUBST(RPC, "soap")
5006RPC="tcstp"
5007
5008
5009#
5010# API= The TSS API level to build by default.
5011#
5012# To build a 1.1 TSS, set API=1.1 (./configure --with-api=1.1)
5013# To build a 1.2 TSS, set API=1.2 (./configure --with-api=1.2)
5014#
5015# In order to build a custom TSS API, set API to the lowest API level that
5016# contains the APIs you need. For instance, if you need only APIs that are
5017# a subset of the TSS 1.1 API, set this to 1.1. If you need any of the 1.2
5018# APIs, you'll need to set this to 1.2. Send mail to trousers-tech@lists.sf.net
5019# if you have questions.
5020#
5021API=1.2
5022
5023# Check whether --with-api was given.
5024if test "${with_api+set}" = set; then :
5025  withval=$with_api; API=$withval
5026fi
5027
5028
5029if test "x$API" != "x1.1" && test "x$API" != "x1.2"; then
5030	as_fn_error $? "\"1.1\" and \"1.2\" are the only supported API versions for trousers.
5031		      Custom API build options are available by editing 'configure.in'." "$LINENO" 5
5032fi
5033
5034if test "x$API" = "x1.1" || test "x$API" = "x1.2"; then
5035	# Tspi_Hash_GetHashValue,SetHashValue,UpdateHashValue
5036	 if true; then
5037  TSS_BUILD_HASH_TRUE=
5038  TSS_BUILD_HASH_FALSE='#'
5039else
5040  TSS_BUILD_HASH_TRUE='#'
5041  TSS_BUILD_HASH_FALSE=
5042fi
5043
5044	# Tspi_{Get|Set}Attribdata,{Get|Set}AttribUint32
5045	 if true; then
5046  TSS_BUILD_GETSET_TRUE=
5047  TSS_BUILD_GETSET_FALSE='#'
5048else
5049  TSS_BUILD_GETSET_TRUE='#'
5050  TSS_BUILD_GETSET_FALSE=
5051fi
5052
5053	# Tspi_TPM_GetRandom,StirRandom
5054	 if true; then
5055  TSS_BUILD_RANDOM_TRUE=
5056  TSS_BUILD_RANDOM_FALSE='#'
5057else
5058  TSS_BUILD_RANDOM_TRUE='#'
5059  TSS_BUILD_RANDOM_FALSE=
5060fi
5061
5062	# Tspi_GetCapability (for TSP and TCS capabilities)
5063	 if true; then
5064  TSS_BUILD_CAPS_TRUE=
5065  TSS_BUILD_CAPS_FALSE='#'
5066else
5067  TSS_BUILD_CAPS_TRUE='#'
5068  TSS_BUILD_CAPS_FALSE=
5069fi
5070
5071	# Tspi_TPM_GetCapability (for TPM chip capabilities)
5072	 if true; then
5073  TSS_BUILD_CAPS_TPM_TRUE=
5074  TSS_BUILD_CAPS_TPM_FALSE='#'
5075else
5076  TSS_BUILD_CAPS_TPM_TRUE='#'
5077  TSS_BUILD_CAPS_TPM_FALSE=
5078fi
5079
5080	# Tspi_GetPolicyObject, Tspi_Policy_SetSecret,FlushSecret,AssignToObject
5081	 if true; then
5082  TSS_BUILD_POLICY_TRUE=
5083  TSS_BUILD_POLICY_FALSE='#'
5084else
5085  TSS_BUILD_POLICY_TRUE='#'
5086  TSS_BUILD_POLICY_FALSE=
5087fi
5088
5089	# Tspi_TPM_DirWrite,DirRead
5090	 if true; then
5091  TSS_BUILD_DIR_TRUE=
5092  TSS_BUILD_DIR_FALSE='#'
5093else
5094  TSS_BUILD_DIR_TRUE='#'
5095  TSS_BUILD_DIR_FALSE=
5096fi
5097
5098	# Tspi_TPM_GetEvent,GetEvents,GetEventLog
5099	 if true; then
5100  TSS_BUILD_PCR_EVENTS_TRUE=
5101  TSS_BUILD_PCR_EVENTS_FALSE='#'
5102else
5103  TSS_BUILD_PCR_EVENTS_TRUE='#'
5104  TSS_BUILD_PCR_EVENTS_FALSE=
5105fi
5106
5107	# Tspi_Hash_Sign,VerifySignature
5108	 if true; then
5109  TSS_BUILD_SIGN_TRUE=
5110  TSS_BUILD_SIGN_FALSE='#'
5111else
5112  TSS_BUILD_SIGN_TRUE='#'
5113  TSS_BUILD_SIGN_FALSE=
5114fi
5115
5116	# Tspi_TPM_Quote
5117	 if true; then
5118  TSS_BUILD_QUOTE_TRUE=
5119  TSS_BUILD_QUOTE_FALSE='#'
5120else
5121  TSS_BUILD_QUOTE_TRUE='#'
5122  TSS_BUILD_QUOTE_FALSE=
5123fi
5124
5125	# Tspi_PcrComposite_{Set|Get}PcrValue,SelectPcrIndex
5126	 if true; then
5127  TSS_BUILD_PCR_COMP_TRUE=
5128  TSS_BUILD_PCR_COMP_FALSE='#'
5129else
5130  TSS_BUILD_PCR_COMP_TRUE='#'
5131  TSS_BUILD_PCR_COMP_FALSE=
5132fi
5133
5134	# Tspi_Data_Seal,Unseal
5135	 if true; then
5136  TSS_BUILD_SEAL_TRUE=
5137  TSS_BUILD_SEAL_FALSE='#'
5138else
5139  TSS_BUILD_SEAL_TRUE='#'
5140  TSS_BUILD_SEAL_FALSE=
5141fi
5142
5143	# Tspi_ChangeAuth,ChangeAuthAsym
5144	 if true; then
5145  TSS_BUILD_CHANGEAUTH_TRUE=
5146  TSS_BUILD_CHANGEAUTH_FALSE='#'
5147else
5148  TSS_BUILD_CHANGEAUTH_TRUE='#'
5149  TSS_BUILD_CHANGEAUTH_FALSE=
5150fi
5151
5152	# Tspi_Data_Bind,Unbind
5153	 if true; then
5154  TSS_BUILD_BIND_TRUE=
5155  TSS_BUILD_BIND_FALSE='#'
5156else
5157  TSS_BUILD_BIND_TRUE='#'
5158  TSS_BUILD_BIND_FALSE=
5159fi
5160
5161	# Tspi_TPM_TakeOwnership,ClearOwner (REQ: EK)
5162	 if true; then
5163  TSS_BUILD_OWN_TRUE=
5164  TSS_BUILD_OWN_FALSE='#'
5165else
5166  TSS_BUILD_OWN_TRUE='#'
5167  TSS_BUILD_OWN_FALSE=
5168fi
5169
5170	# Tspi_TPM_CreateEndorsementKey,GetPubEndorsementKey
5171	 if true; then
5172  TSS_BUILD_EK_TRUE=
5173  TSS_BUILD_EK_FALSE='#'
5174else
5175  TSS_BUILD_EK_TRUE='#'
5176  TSS_BUILD_EK_FALSE=
5177fi
5178
5179	# Tspi_Context_RegisterKey,UnregisterKey,LoadKeyByUUID,GetKeyByUUID,GetKeyByPublicInfo,
5180	# GetRegisteredKeysByUUID
5181	 if true; then
5182  TSS_BUILD_PS_TRUE=
5183  TSS_BUILD_PS_FALSE='#'
5184else
5185  TSS_BUILD_PS_TRUE='#'
5186  TSS_BUILD_PS_FALSE=
5187fi
5188
5189	# Tspi_TPM_{Set|Get}Status
5190	 if true; then
5191  TSS_BUILD_ADMIN_TRUE=
5192  TSS_BUILD_ADMIN_FALSE='#'
5193else
5194  TSS_BUILD_ADMIN_TRUE='#'
5195  TSS_BUILD_ADMIN_FALSE=
5196fi
5197
5198	# Tspi_TPM_CollateIdentityRequest,ActivateIdentity
5199	 if true; then
5200  TSS_BUILD_AIK_TRUE=
5201  TSS_BUILD_AIK_FALSE='#'
5202else
5203  TSS_BUILD_AIK_TRUE='#'
5204  TSS_BUILD_AIK_FALSE=
5205fi
5206
5207	# Tspi_Key_CertifyKey
5208	 if true; then
5209  TSS_BUILD_CERTIFY_TRUE=
5210  TSS_BUILD_CERTIFY_FALSE='#'
5211else
5212  TSS_BUILD_CERTIFY_TRUE='#'
5213  TSS_BUILD_CERTIFY_FALSE=
5214fi
5215
5216	# Tspi_TPM_CreateMaintenanceArchive,KillMaintenanceFeature,LoadMaintenancePubKey,
5217	# CheckMaintenancePubKey
5218	 if true; then
5219  TSS_BUILD_MAINT_TRUE=
5220  TSS_BUILD_MAINT_FALSE='#'
5221else
5222  TSS_BUILD_MAINT_TRUE='#'
5223  TSS_BUILD_MAINT_FALSE=
5224fi
5225
5226	# Tspi_TPM_AuthorizeMigrationTicket,Key_CreateMigrationBlob,ConvertMigrationBlob
5227	 if true; then
5228  TSS_BUILD_MIGRATION_TRUE=
5229  TSS_BUILD_MIGRATION_FALSE='#'
5230else
5231  TSS_BUILD_MIGRATION_TRUE='#'
5232  TSS_BUILD_MIGRATION_FALSE=
5233fi
5234
5235	# Tspi_Context_LoadKeyByBlob,Key_LoadKey,UnloadKey,CreateKey,WrapKey,GetPubKey
5236	 if true; then
5237  TSS_BUILD_KEY_TRUE=
5238  TSS_BUILD_KEY_FALSE='#'
5239else
5240  TSS_BUILD_KEY_TRUE='#'
5241  TSS_BUILD_KEY_FALSE=
5242fi
5243
5244	# Tspi_TPM_PcrExtend,PcrRead,PcrReset
5245	 if true; then
5246  TSS_BUILD_PCR_EXTEND_TRUE=
5247  TSS_BUILD_PCR_EXTEND_FALSE='#'
5248else
5249  TSS_BUILD_PCR_EXTEND_TRUE='#'
5250  TSS_BUILD_PCR_EXTEND_FALSE=
5251fi
5252
5253	# Tspi_TPM_SelfTestFull,CertifySelfTest,GetTestResult
5254	 if true; then
5255  TSS_BUILD_SELFTEST_TRUE=
5256  TSS_BUILD_SELFTEST_FALSE='#'
5257else
5258  TSS_BUILD_SELFTEST_TRUE='#'
5259  TSS_BUILD_SELFTEST_FALSE=
5260fi
5261
5262fi
5263
5264if test "x$API" = "x1.2"; then
5265	 if true; then
5266  TSS_BUILD_TSS12_TRUE=
5267  TSS_BUILD_TSS12_FALSE='#'
5268else
5269  TSS_BUILD_TSS12_TRUE='#'
5270  TSS_BUILD_TSS12_FALSE=
5271fi
5272
5273	# Don't build DAA until the API is fixed - KEY
5274	 if false; then
5275  TSS_BUILD_DAA_TRUE=
5276  TSS_BUILD_DAA_FALSE='#'
5277else
5278  TSS_BUILD_DAA_TRUE='#'
5279  TSS_BUILD_DAA_FALSE=
5280fi
5281
5282	 if true; then
5283  TSS_BUILD_PCR_COMP12_TRUE=
5284  TSS_BUILD_PCR_COMP12_FALSE='#'
5285else
5286  TSS_BUILD_PCR_COMP12_TRUE='#'
5287  TSS_BUILD_PCR_COMP12_FALSE=
5288fi
5289
5290	 if true; then
5291  TSS_BUILD_COUNTER_TRUE=
5292  TSS_BUILD_COUNTER_FALSE='#'
5293else
5294  TSS_BUILD_COUNTER_TRUE='#'
5295  TSS_BUILD_COUNTER_FALSE=
5296fi
5297
5298	 if true; then
5299  TSS_BUILD_TICK_TRUE=
5300  TSS_BUILD_TICK_FALSE='#'
5301else
5302  TSS_BUILD_TICK_TRUE='#'
5303  TSS_BUILD_TICK_FALSE=
5304fi
5305
5306	 if true; then
5307  TSS_BUILD_TRANSPORT_TRUE=
5308  TSS_BUILD_TRANSPORT_FALSE='#'
5309else
5310  TSS_BUILD_TRANSPORT_TRUE='#'
5311  TSS_BUILD_TRANSPORT_FALSE=
5312fi
5313
5314	 if true; then
5315  TSS_BUILD_ASN1_TRUE=
5316  TSS_BUILD_ASN1_FALSE='#'
5317else
5318  TSS_BUILD_ASN1_TRUE='#'
5319  TSS_BUILD_ASN1_FALSE=
5320fi
5321
5322	 if true; then
5323  TSS_BUILD_NV_TRUE=
5324  TSS_BUILD_NV_FALSE='#'
5325else
5326  TSS_BUILD_NV_TRUE='#'
5327  TSS_BUILD_NV_FALSE=
5328fi
5329
5330	 if true; then
5331  TSS_BUILD_AUDIT_TRUE=
5332  TSS_BUILD_AUDIT_FALSE='#'
5333else
5334  TSS_BUILD_AUDIT_TRUE='#'
5335  TSS_BUILD_AUDIT_FALSE=
5336fi
5337
5338	 if true; then
5339  TSS_BUILD_SEALX_TRUE=
5340  TSS_BUILD_SEALX_FALSE='#'
5341else
5342  TSS_BUILD_SEALX_TRUE='#'
5343  TSS_BUILD_SEALX_FALSE=
5344fi
5345
5346	 if true; then
5347  TSS_BUILD_DELEGATION_TRUE=
5348  TSS_BUILD_DELEGATION_FALSE='#'
5349else
5350  TSS_BUILD_DELEGATION_TRUE='#'
5351  TSS_BUILD_DELEGATION_FALSE=
5352fi
5353
5354	 if true; then
5355  TSS_BUILD_QUOTE2_TRUE=
5356  TSS_BUILD_QUOTE2_FALSE='#'
5357else
5358  TSS_BUILD_QUOTE2_TRUE='#'
5359  TSS_BUILD_QUOTE2_FALSE=
5360fi
5361
5362	# CMK depends on MIGRATION
5363	 if true; then
5364  TSS_BUILD_CMK_TRUE=
5365  TSS_BUILD_CMK_FALSE='#'
5366else
5367  TSS_BUILD_CMK_TRUE='#'
5368  TSS_BUILD_CMK_FALSE=
5369fi
5370
5371else
5372	 if false; then
5373  TSS_BUILD_TSS12_TRUE=
5374  TSS_BUILD_TSS12_FALSE='#'
5375else
5376  TSS_BUILD_TSS12_TRUE='#'
5377  TSS_BUILD_TSS12_FALSE=
5378fi
5379
5380	 if false; then
5381  TSS_BUILD_DAA_TRUE=
5382  TSS_BUILD_DAA_FALSE='#'
5383else
5384  TSS_BUILD_DAA_TRUE='#'
5385  TSS_BUILD_DAA_FALSE=
5386fi
5387
5388	 if false; then
5389  TSS_BUILD_PCR_COMP12_TRUE=
5390  TSS_BUILD_PCR_COMP12_FALSE='#'
5391else
5392  TSS_BUILD_PCR_COMP12_TRUE='#'
5393  TSS_BUILD_PCR_COMP12_FALSE=
5394fi
5395
5396	 if false; then
5397  TSS_BUILD_COUNTER_TRUE=
5398  TSS_BUILD_COUNTER_FALSE='#'
5399else
5400  TSS_BUILD_COUNTER_TRUE='#'
5401  TSS_BUILD_COUNTER_FALSE=
5402fi
5403
5404	 if false; then
5405  TSS_BUILD_TICK_TRUE=
5406  TSS_BUILD_TICK_FALSE='#'
5407else
5408  TSS_BUILD_TICK_TRUE='#'
5409  TSS_BUILD_TICK_FALSE=
5410fi
5411
5412	 if false; then
5413  TSS_BUILD_TRANSPORT_TRUE=
5414  TSS_BUILD_TRANSPORT_FALSE='#'
5415else
5416  TSS_BUILD_TRANSPORT_TRUE='#'
5417  TSS_BUILD_TRANSPORT_FALSE=
5418fi
5419
5420	 if false; then
5421  TSS_BUILD_ASN1_TRUE=
5422  TSS_BUILD_ASN1_FALSE='#'
5423else
5424  TSS_BUILD_ASN1_TRUE='#'
5425  TSS_BUILD_ASN1_FALSE=
5426fi
5427
5428	 if false; then
5429  TSS_BUILD_NV_TRUE=
5430  TSS_BUILD_NV_FALSE='#'
5431else
5432  TSS_BUILD_NV_TRUE='#'
5433  TSS_BUILD_NV_FALSE=
5434fi
5435
5436	 if false; then
5437  TSS_BUILD_AUDIT_TRUE=
5438  TSS_BUILD_AUDIT_FALSE='#'
5439else
5440  TSS_BUILD_AUDIT_TRUE='#'
5441  TSS_BUILD_AUDIT_FALSE=
5442fi
5443
5444	 if false; then
5445  TSS_BUILD_SEALX_TRUE=
5446  TSS_BUILD_SEALX_FALSE='#'
5447else
5448  TSS_BUILD_SEALX_TRUE='#'
5449  TSS_BUILD_SEALX_FALSE=
5450fi
5451
5452	 if false; then
5453  TSS_BUILD_DELEGATION_TRUE=
5454  TSS_BUILD_DELEGATION_FALSE='#'
5455else
5456  TSS_BUILD_DELEGATION_TRUE='#'
5457  TSS_BUILD_DELEGATION_FALSE=
5458fi
5459
5460	 if false; then
5461  TSS_BUILD_QUOTE2_TRUE=
5462  TSS_BUILD_QUOTE2_FALSE='#'
5463else
5464  TSS_BUILD_QUOTE2_TRUE='#'
5465  TSS_BUILD_QUOTE2_FALSE=
5466fi
5467
5468	 if false; then
5469  TSS_BUILD_CMK_TRUE=
5470  TSS_BUILD_CMK_FALSE='#'
5471else
5472  TSS_BUILD_CMK_TRUE='#'
5473  TSS_BUILD_CMK_FALSE=
5474fi
5475
5476fi
5477
5478#
5479# There's no need to edit anything below, these conditionals control the building
5480# of files that support the files above, which all contain TSS APIs
5481#
5482 if test -z $TSS_BUILD_NV_TRUE; then
5483  TSS_BUILD_NV_LIST_TRUE=
5484  TSS_BUILD_NV_LIST_FALSE='#'
5485else
5486  TSS_BUILD_NV_LIST_TRUE='#'
5487  TSS_BUILD_NV_LIST_FALSE=
5488fi
5489
5490 if test -z $TSS_BUILD_NV_TRUE; then
5491  TSS_BUILD_NV_SUPPORT_TRUE=
5492  TSS_BUILD_NV_SUPPORT_FALSE='#'
5493else
5494  TSS_BUILD_NV_SUPPORT_TRUE='#'
5495  TSS_BUILD_NV_SUPPORT_FALSE=
5496fi
5497
5498 if test -z $TSS_BUILD_ADMIN_TRUE || \
5499				    test -z $TSS_BUILD_CAPS_TPM_TRUE; then
5500  TSS_BUILD_GET_FLAGS_TRUE=
5501  TSS_BUILD_GET_FLAGS_FALSE='#'
5502else
5503  TSS_BUILD_GET_FLAGS_TRUE='#'
5504  TSS_BUILD_GET_FLAGS_FALSE=
5505fi
5506
5507 if test -z $TSS_BUILD_SEAL_TRUE || \
5508				    test -z $TSS_BUILD_QUOTE_TRUE || \
5509				    test -z $TSS_BUILD_PCRS_TRUE || \
5510				    test -z $TSS_BUILD_PCR_COMP_TRUE || \
5511				    test -z $TSS_BUILD_SEALX_TRUE; then
5512  TSS_BUILD_PCRS_LIST_TRUE=
5513  TSS_BUILD_PCRS_LIST_FALSE='#'
5514else
5515  TSS_BUILD_PCRS_LIST_TRUE='#'
5516  TSS_BUILD_PCRS_LIST_FALSE=
5517fi
5518
5519 if test -z $TSS_BUILD_SIGN_TRUE || test -z $TSS_BUILD_HASH_TRUE; then
5520  TSS_BUILD_HASH_LIST_TRUE=
5521  TSS_BUILD_HASH_LIST_FALSE='#'
5522else
5523  TSS_BUILD_HASH_LIST_TRUE='#'
5524  TSS_BUILD_HASH_LIST_FALSE=
5525fi
5526
5527 if test -z $TSS_BUILD_SEAL_TRUE || \
5528				       test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5529				       test -z $TSS_BUILD_BIND_TRUE || \
5530				       test -z $TSS_BUILD_SEALX_TRUE; then
5531  TSS_BUILD_ENCDATA_LIST_TRUE=
5532  TSS_BUILD_ENCDATA_LIST_FALSE='#'
5533else
5534  TSS_BUILD_ENCDATA_LIST_TRUE='#'
5535  TSS_BUILD_ENCDATA_LIST_FALSE=
5536fi
5537
5538 if test -z $TSS_BUILD_ADMIN_TRUE || \
5539				      test -z $TSS_BUILD_EK_TRUE || \
5540				      test -z $TSS_BUILD_MIGRATION_TRUE || \
5541				      test -z $TSS_BUILD_MAINT_TRUE || \
5542				      test -z $TSS_BUILD_CERTIFY_TRUE || \
5543				      test -z $TSS_BUILD_AIK_TRUE || \
5544				      test -z $TSS_BUILD_QUOTE_TRUE || \
5545				      test -z $TSS_BUILD_BIND_TRUE || \
5546				      test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5547				      test -z $TSS_BUILD_OWN_TRUE || \
5548				      test -z $TSS_BUILD_SIGN_TRUE || \
5549				      test -z $TSS_BUILD_PS_TRUE || \
5550				      test -z $TSS_BUILD_SEAL_TRUE || \
5551				      test -z $TSS_BUILD_DAA_TRUE || \
5552				      test -z $TSS_BUILD_KEY_TRUE || \
5553				      test -z $TSS_BUILD_SEALX_TRUE; then
5554  TSS_BUILD_RSAKEY_LIST_TRUE=
5555  TSS_BUILD_RSAKEY_LIST_FALSE='#'
5556else
5557  TSS_BUILD_RSAKEY_LIST_TRUE='#'
5558  TSS_BUILD_RSAKEY_LIST_FALSE=
5559fi
5560
5561 if test -z $TSS_BUILD_HASH_TRUE || \
5562			       test -z $TSS_BUILD_CAPS_TRUE || \
5563			       test -z $TSS_BUILD_CAPS_TPM_TRUE || \
5564			       test -z $TSS_BUILD_POLICY_TRUE || \
5565			       test -z $TSS_BUILD_DIR_TRUE || \
5566			       test -z $TSS_BUILD_PCR_EVENTS_TRUE || \
5567			       test -z $TSS_BUILD_SIGN_TRUE || \
5568			       test -z $TSS_BUILD_QUOTE_TRUE || \
5569			       test -z $TSS_BUILD_PCR_COMP_TRUE || \
5570			       test -z $TSS_BUILD_SEAL_TRUE || \
5571			       test -z $TSS_BUILD_SEALX_TRUE || \
5572			       test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5573			       test -z $TSS_BUILD_BIND_TRUE || \
5574			       test -z $TSS_BUILD_OWN_TRUE || \
5575			       test -z $TSS_BUILD_PS_TRUE || \
5576			       test -z $TSS_BUILD_ADMIN_TRUE || \
5577			       test -z $TSS_BUILD_AIK_TRUE || \
5578			       test -z $TSS_BUILD_EK_TRUE || \
5579			       test -z $TSS_BUILD_CERTIFY_TRUE || \
5580			       test -z $TSS_BUILD_MAINT_TRUE || \
5581			       test -z $TSS_BUILD_MIGRATION_TRUE || \
5582			       test -z $TSS_BUILD_KEY_TRUE || \
5583			       test -z $TSS_BUILD_PCR_EXTEND_TRUE || \
5584			       test -z $TSS_BUILD_SELFTEST_TRUE || \
5585			       test -z $TSS_BUILD_DAA_TRUE; then
5586  TSS_BUILD_AUTH_TRUE=
5587  TSS_BUILD_AUTH_FALSE='#'
5588else
5589  TSS_BUILD_AUTH_TRUE='#'
5590  TSS_BUILD_AUTH_FALSE=
5591fi
5592
5593 if test -z $TSS_BUILD_AIK_TRUE || \
5594				      test -z $TSS_BUILD_CERTIFY_TRUE || \
5595				      test -z $TSS_BUILD_QUOTE_TRUE || \
5596				      test -z $TSS_BUILD_EK_TRUE || \
5597				      test -z $TSS_BUILD_CHANGEAUTH_TRUE || \
5598				      test -z $TSS_BUILD_BIND_TRUE || \
5599				      test -z $TSS_BUILD_OWN_TRUE || \
5600				      test -z $TSS_BUILD_SELFTEST_TRUE || \
5601				      test -z $TSS_BUILD_SIGN_TRUE || \
5602				      test -z $TSS_BUILD_KEY_TRUE || \
5603				      test -z $TSS_BUILD_DAA_TRUE; then
5604  TSS_BUILD_ASYM_CRYPTO_TRUE=
5605  TSS_BUILD_ASYM_CRYPTO_FALSE='#'
5606else
5607  TSS_BUILD_ASYM_CRYPTO_TRUE='#'
5608  TSS_BUILD_ASYM_CRYPTO_FALSE=
5609fi
5610
5611 if test -z $TSS_BUILD_AIK_TRUE || \
5612				     test -z $TSS_BUILD_TRANSPORT_TRUE; then
5613  TSS_BUILD_SYM_CRYPTO_TRUE=
5614  TSS_BUILD_SYM_CRYPTO_FALSE='#'
5615else
5616  TSS_BUILD_SYM_CRYPTO_TRUE='#'
5617  TSS_BUILD_SYM_CRYPTO_FALSE=
5618fi
5619
5620
5621#GETTEXT_PACKAGE=trousers
5622#AC_SUBST(GETTEXT_PACKAGE)
5623#AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE")
5624
5625#ALL_LINGUAS=""
5626#AM_GLIB_GNU_GETTEXT
5627
5628# end Glade section
5629
5630ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
5631if test "x$ac_cv_header_pthread_h" = x""yes; then :
5632
5633$as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
5634
5635fi
5636
5637
5638
5639# Check whether --enable-static was given.
5640if test "${enable_static+set}" = set; then :
5641  enableval=$enable_static; p=${PACKAGE-default}
5642    case $enableval in
5643    yes) enable_static=yes ;;
5644    no) enable_static=no ;;
5645    *)
5646     enable_static=no
5647      # Look at the argument we got.  We use all the common list separators.
5648      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5649      for pkg in $enableval; do
5650	IFS="$lt_save_ifs"
5651	if test "X$pkg" = "X$p"; then
5652	  enable_static=yes
5653	fi
5654      done
5655      IFS="$lt_save_ifs"
5656      ;;
5657    esac
5658else
5659  enable_static=no
5660fi
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670ac_ext=c
5671ac_cpp='$CPP $CPPFLAGS'
5672ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674ac_compiler_gnu=$ac_cv_c_compiler_gnu
5675if test -n "$ac_tool_prefix"; then
5676  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5677set dummy ${ac_tool_prefix}gcc; ac_word=$2
5678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5679$as_echo_n "checking for $ac_word... " >&6; }
5680if test "${ac_cv_prog_CC+set}" = set; then :
5681  $as_echo_n "(cached) " >&6
5682else
5683  if test -n "$CC"; then
5684  ac_cv_prog_CC="$CC" # Let the user override the test.
5685else
5686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5687for as_dir in $PATH
5688do
5689  IFS=$as_save_IFS
5690  test -z "$as_dir" && as_dir=.
5691    for ac_exec_ext in '' $ac_executable_extensions; do
5692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5693    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695    break 2
5696  fi
5697done
5698  done
5699IFS=$as_save_IFS
5700
5701fi
5702fi
5703CC=$ac_cv_prog_CC
5704if test -n "$CC"; then
5705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5706$as_echo "$CC" >&6; }
5707else
5708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709$as_echo "no" >&6; }
5710fi
5711
5712
5713fi
5714if test -z "$ac_cv_prog_CC"; then
5715  ac_ct_CC=$CC
5716  # Extract the first word of "gcc", so it can be a program name with args.
5717set dummy gcc; ac_word=$2
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719$as_echo_n "checking for $ac_word... " >&6; }
5720if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5721  $as_echo_n "(cached) " >&6
5722else
5723  if test -n "$ac_ct_CC"; then
5724  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5725else
5726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727for as_dir in $PATH
5728do
5729  IFS=$as_save_IFS
5730  test -z "$as_dir" && as_dir=.
5731    for ac_exec_ext in '' $ac_executable_extensions; do
5732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733    ac_cv_prog_ac_ct_CC="gcc"
5734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735    break 2
5736  fi
5737done
5738  done
5739IFS=$as_save_IFS
5740
5741fi
5742fi
5743ac_ct_CC=$ac_cv_prog_ac_ct_CC
5744if test -n "$ac_ct_CC"; then
5745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5746$as_echo "$ac_ct_CC" >&6; }
5747else
5748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749$as_echo "no" >&6; }
5750fi
5751
5752  if test "x$ac_ct_CC" = x; then
5753    CC=""
5754  else
5755    case $cross_compiling:$ac_tool_warned in
5756yes:)
5757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5759ac_tool_warned=yes ;;
5760esac
5761    CC=$ac_ct_CC
5762  fi
5763else
5764  CC="$ac_cv_prog_CC"
5765fi
5766
5767if test -z "$CC"; then
5768          if test -n "$ac_tool_prefix"; then
5769    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5770set dummy ${ac_tool_prefix}cc; ac_word=$2
5771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5772$as_echo_n "checking for $ac_word... " >&6; }
5773if test "${ac_cv_prog_CC+set}" = set; then :
5774  $as_echo_n "(cached) " >&6
5775else
5776  if test -n "$CC"; then
5777  ac_cv_prog_CC="$CC" # Let the user override the test.
5778else
5779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780for as_dir in $PATH
5781do
5782  IFS=$as_save_IFS
5783  test -z "$as_dir" && as_dir=.
5784    for ac_exec_ext in '' $ac_executable_extensions; do
5785  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786    ac_cv_prog_CC="${ac_tool_prefix}cc"
5787    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788    break 2
5789  fi
5790done
5791  done
5792IFS=$as_save_IFS
5793
5794fi
5795fi
5796CC=$ac_cv_prog_CC
5797if test -n "$CC"; then
5798  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5799$as_echo "$CC" >&6; }
5800else
5801  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5802$as_echo "no" >&6; }
5803fi
5804
5805
5806  fi
5807fi
5808if test -z "$CC"; then
5809  # Extract the first word of "cc", so it can be a program name with args.
5810set dummy cc; ac_word=$2
5811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5812$as_echo_n "checking for $ac_word... " >&6; }
5813if test "${ac_cv_prog_CC+set}" = set; then :
5814  $as_echo_n "(cached) " >&6
5815else
5816  if test -n "$CC"; then
5817  ac_cv_prog_CC="$CC" # Let the user override the test.
5818else
5819  ac_prog_rejected=no
5820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821for as_dir in $PATH
5822do
5823  IFS=$as_save_IFS
5824  test -z "$as_dir" && as_dir=.
5825    for ac_exec_ext in '' $ac_executable_extensions; do
5826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5828       ac_prog_rejected=yes
5829       continue
5830     fi
5831    ac_cv_prog_CC="cc"
5832    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833    break 2
5834  fi
5835done
5836  done
5837IFS=$as_save_IFS
5838
5839if test $ac_prog_rejected = yes; then
5840  # We found a bogon in the path, so make sure we never use it.
5841  set dummy $ac_cv_prog_CC
5842  shift
5843  if test $# != 0; then
5844    # We chose a different compiler from the bogus one.
5845    # However, it has the same basename, so the bogon will be chosen
5846    # first if we set CC to just the basename; use the full file name.
5847    shift
5848    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5849  fi
5850fi
5851fi
5852fi
5853CC=$ac_cv_prog_CC
5854if test -n "$CC"; then
5855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5856$as_echo "$CC" >&6; }
5857else
5858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5859$as_echo "no" >&6; }
5860fi
5861
5862
5863fi
5864if test -z "$CC"; then
5865  if test -n "$ac_tool_prefix"; then
5866  for ac_prog in cl.exe
5867  do
5868    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5869set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5871$as_echo_n "checking for $ac_word... " >&6; }
5872if test "${ac_cv_prog_CC+set}" = set; then :
5873  $as_echo_n "(cached) " >&6
5874else
5875  if test -n "$CC"; then
5876  ac_cv_prog_CC="$CC" # Let the user override the test.
5877else
5878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879for as_dir in $PATH
5880do
5881  IFS=$as_save_IFS
5882  test -z "$as_dir" && as_dir=.
5883    for ac_exec_ext in '' $ac_executable_extensions; do
5884  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5885    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5886    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5887    break 2
5888  fi
5889done
5890  done
5891IFS=$as_save_IFS
5892
5893fi
5894fi
5895CC=$ac_cv_prog_CC
5896if test -n "$CC"; then
5897  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5898$as_echo "$CC" >&6; }
5899else
5900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5901$as_echo "no" >&6; }
5902fi
5903
5904
5905    test -n "$CC" && break
5906  done
5907fi
5908if test -z "$CC"; then
5909  ac_ct_CC=$CC
5910  for ac_prog in cl.exe
5911do
5912  # Extract the first word of "$ac_prog", so it can be a program name with args.
5913set dummy $ac_prog; ac_word=$2
5914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915$as_echo_n "checking for $ac_word... " >&6; }
5916if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5917  $as_echo_n "(cached) " >&6
5918else
5919  if test -n "$ac_ct_CC"; then
5920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5921else
5922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923for as_dir in $PATH
5924do
5925  IFS=$as_save_IFS
5926  test -z "$as_dir" && as_dir=.
5927    for ac_exec_ext in '' $ac_executable_extensions; do
5928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5929    ac_cv_prog_ac_ct_CC="$ac_prog"
5930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931    break 2
5932  fi
5933done
5934  done
5935IFS=$as_save_IFS
5936
5937fi
5938fi
5939ac_ct_CC=$ac_cv_prog_ac_ct_CC
5940if test -n "$ac_ct_CC"; then
5941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5942$as_echo "$ac_ct_CC" >&6; }
5943else
5944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945$as_echo "no" >&6; }
5946fi
5947
5948
5949  test -n "$ac_ct_CC" && break
5950done
5951
5952  if test "x$ac_ct_CC" = x; then
5953    CC=""
5954  else
5955    case $cross_compiling:$ac_tool_warned in
5956yes:)
5957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5959ac_tool_warned=yes ;;
5960esac
5961    CC=$ac_ct_CC
5962  fi
5963fi
5964
5965fi
5966
5967
5968test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5970as_fn_error $? "no acceptable C compiler found in \$PATH
5971See \`config.log' for more details" "$LINENO" 5 ; }
5972
5973# Provide some information about the compiler.
5974$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5975set X $ac_compile
5976ac_compiler=$2
5977for ac_option in --version -v -V -qversion; do
5978  { { ac_try="$ac_compiler $ac_option >&5"
5979case "(($ac_try" in
5980  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981  *) ac_try_echo=$ac_try;;
5982esac
5983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5984$as_echo "$ac_try_echo"; } >&5
5985  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5986  ac_status=$?
5987  if test -s conftest.err; then
5988    sed '10a\
5989... rest of stderr output deleted ...
5990         10q' conftest.err >conftest.er1
5991    cat conftest.er1 >&5
5992  fi
5993  rm -f conftest.er1 conftest.err
5994  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5995  test $ac_status = 0; }
5996done
5997
5998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5999$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6000if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6001  $as_echo_n "(cached) " >&6
6002else
6003  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6004/* end confdefs.h.  */
6005
6006int
6007main ()
6008{
6009#ifndef __GNUC__
6010       choke me
6011#endif
6012
6013  ;
6014  return 0;
6015}
6016_ACEOF
6017if ac_fn_c_try_compile "$LINENO"; then :
6018  ac_compiler_gnu=yes
6019else
6020  ac_compiler_gnu=no
6021fi
6022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6023ac_cv_c_compiler_gnu=$ac_compiler_gnu
6024
6025fi
6026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6027$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6028if test $ac_compiler_gnu = yes; then
6029  GCC=yes
6030else
6031  GCC=
6032fi
6033ac_test_CFLAGS=${CFLAGS+set}
6034ac_save_CFLAGS=$CFLAGS
6035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6036$as_echo_n "checking whether $CC accepts -g... " >&6; }
6037if test "${ac_cv_prog_cc_g+set}" = set; then :
6038  $as_echo_n "(cached) " >&6
6039else
6040  ac_save_c_werror_flag=$ac_c_werror_flag
6041   ac_c_werror_flag=yes
6042   ac_cv_prog_cc_g=no
6043   CFLAGS="-g"
6044   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045/* end confdefs.h.  */
6046
6047int
6048main ()
6049{
6050
6051  ;
6052  return 0;
6053}
6054_ACEOF
6055if ac_fn_c_try_compile "$LINENO"; then :
6056  ac_cv_prog_cc_g=yes
6057else
6058  CFLAGS=""
6059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6060/* end confdefs.h.  */
6061
6062int
6063main ()
6064{
6065
6066  ;
6067  return 0;
6068}
6069_ACEOF
6070if ac_fn_c_try_compile "$LINENO"; then :
6071
6072else
6073  ac_c_werror_flag=$ac_save_c_werror_flag
6074	 CFLAGS="-g"
6075	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076/* end confdefs.h.  */
6077
6078int
6079main ()
6080{
6081
6082  ;
6083  return 0;
6084}
6085_ACEOF
6086if ac_fn_c_try_compile "$LINENO"; then :
6087  ac_cv_prog_cc_g=yes
6088fi
6089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092fi
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094   ac_c_werror_flag=$ac_save_c_werror_flag
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6097$as_echo "$ac_cv_prog_cc_g" >&6; }
6098if test "$ac_test_CFLAGS" = set; then
6099  CFLAGS=$ac_save_CFLAGS
6100elif test $ac_cv_prog_cc_g = yes; then
6101  if test "$GCC" = yes; then
6102    CFLAGS="-g -O2"
6103  else
6104    CFLAGS="-g"
6105  fi
6106else
6107  if test "$GCC" = yes; then
6108    CFLAGS="-O2"
6109  else
6110    CFLAGS=
6111  fi
6112fi
6113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6114$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6115if test "${ac_cv_prog_cc_c89+set}" = set; then :
6116  $as_echo_n "(cached) " >&6
6117else
6118  ac_cv_prog_cc_c89=no
6119ac_save_CC=$CC
6120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121/* end confdefs.h.  */
6122#include <stdarg.h>
6123#include <stdio.h>
6124#include <sys/types.h>
6125#include <sys/stat.h>
6126/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6127struct buf { int x; };
6128FILE * (*rcsopen) (struct buf *, struct stat *, int);
6129static char *e (p, i)
6130     char **p;
6131     int i;
6132{
6133  return p[i];
6134}
6135static char *f (char * (*g) (char **, int), char **p, ...)
6136{
6137  char *s;
6138  va_list v;
6139  va_start (v,p);
6140  s = g (p, va_arg (v,int));
6141  va_end (v);
6142  return s;
6143}
6144
6145/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6146   function prototypes and stuff, but not '\xHH' hex character constants.
6147   These don't provoke an error unfortunately, instead are silently treated
6148   as 'x'.  The following induces an error, until -std is added to get
6149   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6150   array size at least.  It's necessary to write '\x00'==0 to get something
6151   that's true only with -std.  */
6152int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6153
6154/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6155   inside strings and character constants.  */
6156#define FOO(x) 'x'
6157int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6158
6159int test (int i, double x);
6160struct s1 {int (*f) (int a);};
6161struct s2 {int (*f) (double a);};
6162int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6163int argc;
6164char **argv;
6165int
6166main ()
6167{
6168return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6169  ;
6170  return 0;
6171}
6172_ACEOF
6173for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6174	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6175do
6176  CC="$ac_save_CC $ac_arg"
6177  if ac_fn_c_try_compile "$LINENO"; then :
6178  ac_cv_prog_cc_c89=$ac_arg
6179fi
6180rm -f core conftest.err conftest.$ac_objext
6181  test "x$ac_cv_prog_cc_c89" != "xno" && break
6182done
6183rm -f conftest.$ac_ext
6184CC=$ac_save_CC
6185
6186fi
6187# AC_CACHE_VAL
6188case "x$ac_cv_prog_cc_c89" in
6189  x)
6190    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6191$as_echo "none needed" >&6; } ;;
6192  xno)
6193    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6194$as_echo "unsupported" >&6; } ;;
6195  *)
6196    CC="$CC $ac_cv_prog_cc_c89"
6197    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6198$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6199esac
6200if test "x$ac_cv_prog_cc_c89" != xno; then :
6201
6202fi
6203
6204ac_ext=c
6205ac_cpp='$CPP $CPPFLAGS'
6206ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208ac_compiler_gnu=$ac_cv_c_compiler_gnu
6209
6210depcc="$CC"   am_compiler_list=
6211
6212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6213$as_echo_n "checking dependency style of $depcc... " >&6; }
6214if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6215  $as_echo_n "(cached) " >&6
6216else
6217  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6218  # We make a subdir and do the tests there.  Otherwise we can end up
6219  # making bogus files that we don't know about and never remove.  For
6220  # instance it was reported that on HP-UX the gcc test will end up
6221  # making a dummy file named `D' -- because `-MD' means `put the output
6222  # in D'.
6223  mkdir conftest.dir
6224  # Copy depcomp to subdir because otherwise we won't find it if we're
6225  # using a relative directory.
6226  cp "$am_depcomp" conftest.dir
6227  cd conftest.dir
6228  # We will build objects and dependencies in a subdirectory because
6229  # it helps to detect inapplicable dependency modes.  For instance
6230  # both Tru64's cc and ICC support -MD to output dependencies as a
6231  # side effect of compilation, but ICC will put the dependencies in
6232  # the current directory while Tru64 will put them in the object
6233  # directory.
6234  mkdir sub
6235
6236  am_cv_CC_dependencies_compiler_type=none
6237  if test "$am_compiler_list" = ""; then
6238     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6239  fi
6240  am__universal=false
6241  case " $depcc " in #(
6242     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6243     esac
6244
6245  for depmode in $am_compiler_list; do
6246    # Setup a source with many dependencies, because some compilers
6247    # like to wrap large dependency lists on column 80 (with \), and
6248    # we should not choose a depcomp mode which is confused by this.
6249    #
6250    # We need to recreate these files for each test, as the compiler may
6251    # overwrite some of them when testing with obscure command lines.
6252    # This happens at least with the AIX C compiler.
6253    : > sub/conftest.c
6254    for i in 1 2 3 4 5 6; do
6255      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6256      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6257      # Solaris 8's {/usr,}/bin/sh.
6258      touch sub/conftst$i.h
6259    done
6260    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6261
6262    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6263    # mode.  It turns out that the SunPro C++ compiler does not properly
6264    # handle `-M -o', and we need to detect this.  Also, some Intel
6265    # versions had trouble with output in subdirs
6266    am__obj=sub/conftest.${OBJEXT-o}
6267    am__minus_obj="-o $am__obj"
6268    case $depmode in
6269    gcc)
6270      # This depmode causes a compiler race in universal mode.
6271      test "$am__universal" = false || continue
6272      ;;
6273    nosideeffect)
6274      # after this tag, mechanisms are not by side-effect, so they'll
6275      # only be used when explicitly requested
6276      if test "x$enable_dependency_tracking" = xyes; then
6277	continue
6278      else
6279	break
6280      fi
6281      ;;
6282    msvisualcpp | msvcmsys)
6283      # This compiler won't grok `-c -o', but also, the minuso test has
6284      # not run yet.  These depmodes are late enough in the game, and
6285      # so weak that their functioning should not be impacted.
6286      am__obj=conftest.${OBJEXT-o}
6287      am__minus_obj=
6288      ;;
6289    none) break ;;
6290    esac
6291    if depmode=$depmode \
6292       source=sub/conftest.c object=$am__obj \
6293       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6294       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6295         >/dev/null 2>conftest.err &&
6296       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6297       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6298       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6299       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6300      # icc doesn't choke on unknown options, it will just issue warnings
6301      # or remarks (even with -Werror).  So we grep stderr for any message
6302      # that says an option was ignored or not supported.
6303      # When given -MP, icc 7.0 and 7.1 complain thusly:
6304      #   icc: Command line warning: ignoring option '-M'; no argument required
6305      # The diagnosis changed in icc 8.0:
6306      #   icc: Command line remark: option '-MP' not supported
6307      if (grep 'ignoring option' conftest.err ||
6308          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6309        am_cv_CC_dependencies_compiler_type=$depmode
6310        break
6311      fi
6312    fi
6313  done
6314
6315  cd ..
6316  rm -rf conftest.dir
6317else
6318  am_cv_CC_dependencies_compiler_type=none
6319fi
6320
6321fi
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6323$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6324CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6325
6326 if
6327  test "x$enable_dependency_tracking" != xno \
6328  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6329  am__fastdepCC_TRUE=
6330  am__fastdepCC_FALSE='#'
6331else
6332  am__fastdepCC_TRUE='#'
6333  am__fastdepCC_FALSE=
6334fi
6335
6336
6337case `pwd` in
6338  *\ * | *\	*)
6339    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6340$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6341esac
6342
6343
6344
6345macro_version='2.2.6b'
6346macro_revision='1.3017'
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360ltmain="$ac_aux_dir/ltmain.sh"
6361
6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6363$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6364if test "${ac_cv_path_SED+set}" = set; then :
6365  $as_echo_n "(cached) " >&6
6366else
6367            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6368     for ac_i in 1 2 3 4 5 6 7; do
6369       ac_script="$ac_script$as_nl$ac_script"
6370     done
6371     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6372     { ac_script=; unset ac_script;}
6373     if test -z "$SED"; then
6374  ac_path_SED_found=false
6375  # Loop through the user's path and test for each of PROGNAME-LIST
6376  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379  IFS=$as_save_IFS
6380  test -z "$as_dir" && as_dir=.
6381    for ac_prog in sed gsed; do
6382    for ac_exec_ext in '' $ac_executable_extensions; do
6383      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6384      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6385# Check for GNU ac_path_SED and select it if it is found.
6386  # Check for GNU $ac_path_SED
6387case `"$ac_path_SED" --version 2>&1` in
6388*GNU*)
6389  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6390*)
6391  ac_count=0
6392  $as_echo_n 0123456789 >"conftest.in"
6393  while :
6394  do
6395    cat "conftest.in" "conftest.in" >"conftest.tmp"
6396    mv "conftest.tmp" "conftest.in"
6397    cp "conftest.in" "conftest.nl"
6398    $as_echo '' >> "conftest.nl"
6399    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6400    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6401    as_fn_arith $ac_count + 1 && ac_count=$as_val
6402    if test $ac_count -gt ${ac_path_SED_max-0}; then
6403      # Best one so far, save it but keep looking for a better one
6404      ac_cv_path_SED="$ac_path_SED"
6405      ac_path_SED_max=$ac_count
6406    fi
6407    # 10*(2^10) chars as input seems more than enough
6408    test $ac_count -gt 10 && break
6409  done
6410  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6411esac
6412
6413      $ac_path_SED_found && break 3
6414    done
6415  done
6416  done
6417IFS=$as_save_IFS
6418  if test -z "$ac_cv_path_SED"; then
6419    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6420  fi
6421else
6422  ac_cv_path_SED=$SED
6423fi
6424
6425fi
6426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6427$as_echo "$ac_cv_path_SED" >&6; }
6428 SED="$ac_cv_path_SED"
6429  rm -f conftest.sed
6430
6431test -z "$SED" && SED=sed
6432Xsed="$SED -e 1s/^X//"
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6445$as_echo_n "checking for fgrep... " >&6; }
6446if test "${ac_cv_path_FGREP+set}" = set; then :
6447  $as_echo_n "(cached) " >&6
6448else
6449  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6450   then ac_cv_path_FGREP="$GREP -F"
6451   else
6452     if test -z "$FGREP"; then
6453  ac_path_FGREP_found=false
6454  # Loop through the user's path and test for each of PROGNAME-LIST
6455  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6457do
6458  IFS=$as_save_IFS
6459  test -z "$as_dir" && as_dir=.
6460    for ac_prog in fgrep; do
6461    for ac_exec_ext in '' $ac_executable_extensions; do
6462      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6463      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6464# Check for GNU ac_path_FGREP and select it if it is found.
6465  # Check for GNU $ac_path_FGREP
6466case `"$ac_path_FGREP" --version 2>&1` in
6467*GNU*)
6468  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6469*)
6470  ac_count=0
6471  $as_echo_n 0123456789 >"conftest.in"
6472  while :
6473  do
6474    cat "conftest.in" "conftest.in" >"conftest.tmp"
6475    mv "conftest.tmp" "conftest.in"
6476    cp "conftest.in" "conftest.nl"
6477    $as_echo 'FGREP' >> "conftest.nl"
6478    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6479    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6480    as_fn_arith $ac_count + 1 && ac_count=$as_val
6481    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6482      # Best one so far, save it but keep looking for a better one
6483      ac_cv_path_FGREP="$ac_path_FGREP"
6484      ac_path_FGREP_max=$ac_count
6485    fi
6486    # 10*(2^10) chars as input seems more than enough
6487    test $ac_count -gt 10 && break
6488  done
6489  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6490esac
6491
6492      $ac_path_FGREP_found && break 3
6493    done
6494  done
6495  done
6496IFS=$as_save_IFS
6497  if test -z "$ac_cv_path_FGREP"; then
6498    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6499  fi
6500else
6501  ac_cv_path_FGREP=$FGREP
6502fi
6503
6504   fi
6505fi
6506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6507$as_echo "$ac_cv_path_FGREP" >&6; }
6508 FGREP="$ac_cv_path_FGREP"
6509
6510
6511test -z "$GREP" && GREP=grep
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531# Check whether --with-gnu-ld was given.
6532if test "${with_gnu_ld+set}" = set; then :
6533  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6534else
6535  with_gnu_ld=no
6536fi
6537
6538ac_prog=ld
6539if test "$GCC" = yes; then
6540  # Check if gcc -print-prog-name=ld gives a path.
6541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6542$as_echo_n "checking for ld used by $CC... " >&6; }
6543  case $host in
6544  *-*-mingw*)
6545    # gcc leaves a trailing carriage return which upsets mingw
6546    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6547  *)
6548    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6549  esac
6550  case $ac_prog in
6551    # Accept absolute paths.
6552    [\\/]* | ?:[\\/]*)
6553      re_direlt='/[^/][^/]*/\.\./'
6554      # Canonicalize the pathname of ld
6555      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6556      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6557	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6558      done
6559      test -z "$LD" && LD="$ac_prog"
6560      ;;
6561  "")
6562    # If it fails, then pretend we aren't using GCC.
6563    ac_prog=ld
6564    ;;
6565  *)
6566    # If it is relative, then search for the first ld in PATH.
6567    with_gnu_ld=unknown
6568    ;;
6569  esac
6570elif test "$with_gnu_ld" = yes; then
6571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6572$as_echo_n "checking for GNU ld... " >&6; }
6573else
6574  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6575$as_echo_n "checking for non-GNU ld... " >&6; }
6576fi
6577if test "${lt_cv_path_LD+set}" = set; then :
6578  $as_echo_n "(cached) " >&6
6579else
6580  if test -z "$LD"; then
6581  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6582  for ac_dir in $PATH; do
6583    IFS="$lt_save_ifs"
6584    test -z "$ac_dir" && ac_dir=.
6585    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6586      lt_cv_path_LD="$ac_dir/$ac_prog"
6587      # Check to see if the program is GNU ld.  I'd rather use --version,
6588      # but apparently some variants of GNU ld only accept -v.
6589      # Break only if it was the GNU/non-GNU ld that we prefer.
6590      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6591      *GNU* | *'with BFD'*)
6592	test "$with_gnu_ld" != no && break
6593	;;
6594      *)
6595	test "$with_gnu_ld" != yes && break
6596	;;
6597      esac
6598    fi
6599  done
6600  IFS="$lt_save_ifs"
6601else
6602  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6603fi
6604fi
6605
6606LD="$lt_cv_path_LD"
6607if test -n "$LD"; then
6608  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6609$as_echo "$LD" >&6; }
6610else
6611  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6616$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6617if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6618  $as_echo_n "(cached) " >&6
6619else
6620  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6621case `$LD -v 2>&1 </dev/null` in
6622*GNU* | *'with BFD'*)
6623  lt_cv_prog_gnu_ld=yes
6624  ;;
6625*)
6626  lt_cv_prog_gnu_ld=no
6627  ;;
6628esac
6629fi
6630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6631$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6632with_gnu_ld=$lt_cv_prog_gnu_ld
6633
6634
6635
6636
6637
6638
6639
6640
6641
6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6643$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6644if test "${lt_cv_path_NM+set}" = set; then :
6645  $as_echo_n "(cached) " >&6
6646else
6647  if test -n "$NM"; then
6648  # Let the user override the test.
6649  lt_cv_path_NM="$NM"
6650else
6651  lt_nm_to_check="${ac_tool_prefix}nm"
6652  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6653    lt_nm_to_check="$lt_nm_to_check nm"
6654  fi
6655  for lt_tmp_nm in $lt_nm_to_check; do
6656    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6657    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6658      IFS="$lt_save_ifs"
6659      test -z "$ac_dir" && ac_dir=.
6660      tmp_nm="$ac_dir/$lt_tmp_nm"
6661      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6662	# Check to see if the nm accepts a BSD-compat flag.
6663	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6664	#   nm: unknown option "B" ignored
6665	# Tru64's nm complains that /dev/null is an invalid object file
6666	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6667	*/dev/null* | *'Invalid file or object type'*)
6668	  lt_cv_path_NM="$tmp_nm -B"
6669	  break
6670	  ;;
6671	*)
6672	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6673	  */dev/null*)
6674	    lt_cv_path_NM="$tmp_nm -p"
6675	    break
6676	    ;;
6677	  *)
6678	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6679	    continue # so that we can try to find one that supports BSD flags
6680	    ;;
6681	  esac
6682	  ;;
6683	esac
6684      fi
6685    done
6686    IFS="$lt_save_ifs"
6687  done
6688  : ${lt_cv_path_NM=no}
6689fi
6690fi
6691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6692$as_echo "$lt_cv_path_NM" >&6; }
6693if test "$lt_cv_path_NM" != "no"; then
6694  NM="$lt_cv_path_NM"
6695else
6696  # Didn't find any BSD compatible name lister, look for dumpbin.
6697  if test -n "$ac_tool_prefix"; then
6698  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6699  do
6700    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6703$as_echo_n "checking for $ac_word... " >&6; }
6704if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6705  $as_echo_n "(cached) " >&6
6706else
6707  if test -n "$DUMPBIN"; then
6708  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6709else
6710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6711for as_dir in $PATH
6712do
6713  IFS=$as_save_IFS
6714  test -z "$as_dir" && as_dir=.
6715    for ac_exec_ext in '' $ac_executable_extensions; do
6716  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6717    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6718    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6719    break 2
6720  fi
6721done
6722  done
6723IFS=$as_save_IFS
6724
6725fi
6726fi
6727DUMPBIN=$ac_cv_prog_DUMPBIN
6728if test -n "$DUMPBIN"; then
6729  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6730$as_echo "$DUMPBIN" >&6; }
6731else
6732  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6733$as_echo "no" >&6; }
6734fi
6735
6736
6737    test -n "$DUMPBIN" && break
6738  done
6739fi
6740if test -z "$DUMPBIN"; then
6741  ac_ct_DUMPBIN=$DUMPBIN
6742  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6743do
6744  # Extract the first word of "$ac_prog", so it can be a program name with args.
6745set dummy $ac_prog; ac_word=$2
6746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6747$as_echo_n "checking for $ac_word... " >&6; }
6748if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6749  $as_echo_n "(cached) " >&6
6750else
6751  if test -n "$ac_ct_DUMPBIN"; then
6752  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6753else
6754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759    for ac_exec_ext in '' $ac_executable_extensions; do
6760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766  done
6767IFS=$as_save_IFS
6768
6769fi
6770fi
6771ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6772if test -n "$ac_ct_DUMPBIN"; then
6773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6774$as_echo "$ac_ct_DUMPBIN" >&6; }
6775else
6776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777$as_echo "no" >&6; }
6778fi
6779
6780
6781  test -n "$ac_ct_DUMPBIN" && break
6782done
6783
6784  if test "x$ac_ct_DUMPBIN" = x; then
6785    DUMPBIN=":"
6786  else
6787    case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793    DUMPBIN=$ac_ct_DUMPBIN
6794  fi
6795fi
6796
6797
6798  if test "$DUMPBIN" != ":"; then
6799    NM="$DUMPBIN"
6800  fi
6801fi
6802test -z "$NM" && NM=nm
6803
6804
6805
6806
6807
6808
6809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6810$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6811if test "${lt_cv_nm_interface+set}" = set; then :
6812  $as_echo_n "(cached) " >&6
6813else
6814  lt_cv_nm_interface="BSD nm"
6815  echo "int some_variable = 0;" > conftest.$ac_ext
6816  (eval echo "\"\$as_me:6816: $ac_compile\"" >&5)
6817  (eval "$ac_compile" 2>conftest.err)
6818  cat conftest.err >&5
6819  (eval echo "\"\$as_me:6819: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6820  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6821  cat conftest.err >&5
6822  (eval echo "\"\$as_me:6822: output\"" >&5)
6823  cat conftest.out >&5
6824  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6825    lt_cv_nm_interface="MS dumpbin"
6826  fi
6827  rm -f conftest*
6828fi
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6830$as_echo "$lt_cv_nm_interface" >&6; }
6831
6832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6833$as_echo_n "checking whether ln -s works... " >&6; }
6834LN_S=$as_ln_s
6835if test "$LN_S" = "ln -s"; then
6836  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6837$as_echo "yes" >&6; }
6838else
6839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6840$as_echo "no, using $LN_S" >&6; }
6841fi
6842
6843# find the maximum length of command line arguments
6844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6845$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6846if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6847  $as_echo_n "(cached) " >&6
6848else
6849    i=0
6850  teststring="ABCD"
6851
6852  case $build_os in
6853  msdosdjgpp*)
6854    # On DJGPP, this test can blow up pretty badly due to problems in libc
6855    # (any single argument exceeding 2000 bytes causes a buffer overrun
6856    # during glob expansion).  Even if it were fixed, the result of this
6857    # check would be larger than it should be.
6858    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6859    ;;
6860
6861  gnu*)
6862    # Under GNU Hurd, this test is not required because there is
6863    # no limit to the length of command line arguments.
6864    # Libtool will interpret -1 as no limit whatsoever
6865    lt_cv_sys_max_cmd_len=-1;
6866    ;;
6867
6868  cygwin* | mingw* | cegcc*)
6869    # On Win9x/ME, this test blows up -- it succeeds, but takes
6870    # about 5 minutes as the teststring grows exponentially.
6871    # Worse, since 9x/ME are not pre-emptively multitasking,
6872    # you end up with a "frozen" computer, even though with patience
6873    # the test eventually succeeds (with a max line length of 256k).
6874    # Instead, let's just punt: use the minimum linelength reported by
6875    # all of the supported platforms: 8192 (on NT/2K/XP).
6876    lt_cv_sys_max_cmd_len=8192;
6877    ;;
6878
6879  amigaos*)
6880    # On AmigaOS with pdksh, this test takes hours, literally.
6881    # So we just punt and use a minimum line length of 8192.
6882    lt_cv_sys_max_cmd_len=8192;
6883    ;;
6884
6885  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6886    # This has been around since 386BSD, at least.  Likely further.
6887    if test -x /sbin/sysctl; then
6888      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6889    elif test -x /usr/sbin/sysctl; then
6890      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6891    else
6892      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6893    fi
6894    # And add a safety zone
6895    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6896    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6897    ;;
6898
6899  interix*)
6900    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6901    lt_cv_sys_max_cmd_len=196608
6902    ;;
6903
6904  osf*)
6905    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6906    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6907    # nice to cause kernel panics so lets avoid the loop below.
6908    # First set a reasonable default.
6909    lt_cv_sys_max_cmd_len=16384
6910    #
6911    if test -x /sbin/sysconfig; then
6912      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6913        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6914      esac
6915    fi
6916    ;;
6917  sco3.2v5*)
6918    lt_cv_sys_max_cmd_len=102400
6919    ;;
6920  sysv5* | sco5v6* | sysv4.2uw2*)
6921    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6922    if test -n "$kargmax"; then
6923      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6924    else
6925      lt_cv_sys_max_cmd_len=32768
6926    fi
6927    ;;
6928  *)
6929    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6930    if test -n "$lt_cv_sys_max_cmd_len"; then
6931      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6932      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6933    else
6934      # Make teststring a little bigger before we do anything with it.
6935      # a 1K string should be a reasonable start.
6936      for i in 1 2 3 4 5 6 7 8 ; do
6937        teststring=$teststring$teststring
6938      done
6939      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6940      # If test is not a shell built-in, we'll probably end up computing a
6941      # maximum length that is only half of the actual maximum length, but
6942      # we can't tell.
6943      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6944	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6945	      test $i != 17 # 1/2 MB should be enough
6946      do
6947        i=`expr $i + 1`
6948        teststring=$teststring$teststring
6949      done
6950      # Only check the string length outside the loop.
6951      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6952      teststring=
6953      # Add a significant safety factor because C++ compilers can tack on
6954      # massive amounts of additional arguments before passing them to the
6955      # linker.  It appears as though 1/2 is a usable value.
6956      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6957    fi
6958    ;;
6959  esac
6960
6961fi
6962
6963if test -n $lt_cv_sys_max_cmd_len ; then
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6965$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6966else
6967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6968$as_echo "none" >&6; }
6969fi
6970max_cmd_len=$lt_cv_sys_max_cmd_len
6971
6972
6973
6974
6975
6976
6977: ${CP="cp -f"}
6978: ${MV="mv -f"}
6979: ${RM="rm -f"}
6980
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6982$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6983# Try some XSI features
6984xsi_shell=no
6985( _lt_dummy="a/b/c"
6986  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6987      = c,a/b,, \
6988    && eval 'test $(( 1 + 1 )) -eq 2 \
6989    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6990  && xsi_shell=yes
6991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6992$as_echo "$xsi_shell" >&6; }
6993
6994
6995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6996$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6997lt_shell_append=no
6998( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6999    >/dev/null 2>&1 \
7000  && lt_shell_append=yes
7001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7002$as_echo "$lt_shell_append" >&6; }
7003
7004
7005if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7006  lt_unset=unset
7007else
7008  lt_unset=false
7009fi
7010
7011
7012
7013
7014
7015# test EBCDIC or ASCII
7016case `echo X|tr X '\101'` in
7017 A) # ASCII based system
7018    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7019  lt_SP2NL='tr \040 \012'
7020  lt_NL2SP='tr \015\012 \040\040'
7021  ;;
7022 *) # EBCDIC based system
7023  lt_SP2NL='tr \100 \n'
7024  lt_NL2SP='tr \r\n \100\100'
7025  ;;
7026esac
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7037$as_echo_n "checking for $LD option to reload object files... " >&6; }
7038if test "${lt_cv_ld_reload_flag+set}" = set; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  lt_cv_ld_reload_flag='-r'
7042fi
7043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7044$as_echo "$lt_cv_ld_reload_flag" >&6; }
7045reload_flag=$lt_cv_ld_reload_flag
7046case $reload_flag in
7047"" | " "*) ;;
7048*) reload_flag=" $reload_flag" ;;
7049esac
7050reload_cmds='$LD$reload_flag -o $output$reload_objs'
7051case $host_os in
7052  darwin*)
7053    if test "$GCC" = yes; then
7054      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7055    else
7056      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7057    fi
7058    ;;
7059esac
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069if test -n "$ac_tool_prefix"; then
7070  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7071set dummy ${ac_tool_prefix}objdump; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  if test -n "$OBJDUMP"; then
7078  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  test -z "$as_dir" && as_dir=.
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7087    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097OBJDUMP=$ac_cv_prog_OBJDUMP
7098if test -n "$OBJDUMP"; then
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7100$as_echo "$OBJDUMP" >&6; }
7101else
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106
7107fi
7108if test -z "$ac_cv_prog_OBJDUMP"; then
7109  ac_ct_OBJDUMP=$OBJDUMP
7110  # Extract the first word of "objdump", so it can be a program name with args.
7111set dummy objdump; ac_word=$2
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113$as_echo_n "checking for $ac_word... " >&6; }
7114if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7115  $as_echo_n "(cached) " >&6
7116else
7117  if test -n "$ac_ct_OBJDUMP"; then
7118  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123  IFS=$as_save_IFS
7124  test -z "$as_dir" && as_dir=.
7125    for ac_exec_ext in '' $ac_executable_extensions; do
7126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7127    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129    break 2
7130  fi
7131done
7132  done
7133IFS=$as_save_IFS
7134
7135fi
7136fi
7137ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7138if test -n "$ac_ct_OBJDUMP"; then
7139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7140$as_echo "$ac_ct_OBJDUMP" >&6; }
7141else
7142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143$as_echo "no" >&6; }
7144fi
7145
7146  if test "x$ac_ct_OBJDUMP" = x; then
7147    OBJDUMP="false"
7148  else
7149    case $cross_compiling:$ac_tool_warned in
7150yes:)
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153ac_tool_warned=yes ;;
7154esac
7155    OBJDUMP=$ac_ct_OBJDUMP
7156  fi
7157else
7158  OBJDUMP="$ac_cv_prog_OBJDUMP"
7159fi
7160
7161test -z "$OBJDUMP" && OBJDUMP=objdump
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7172$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7173if test "${lt_cv_deplibs_check_method+set}" = set; then :
7174  $as_echo_n "(cached) " >&6
7175else
7176  lt_cv_file_magic_cmd='$MAGIC_CMD'
7177lt_cv_file_magic_test_file=
7178lt_cv_deplibs_check_method='unknown'
7179# Need to set the preceding variable on all platforms that support
7180# interlibrary dependencies.
7181# 'none' -- dependencies not supported.
7182# `unknown' -- same as none, but documents that we really don't know.
7183# 'pass_all' -- all dependencies passed with no checks.
7184# 'test_compile' -- check by making test program.
7185# 'file_magic [[regex]]' -- check by looking for files in library path
7186# which responds to the $file_magic_cmd with a given extended regex.
7187# If you have `file' or equivalent on your system and you're not sure
7188# whether `pass_all' will *always* work, you probably want this one.
7189
7190case $host_os in
7191aix[4-9]*)
7192  lt_cv_deplibs_check_method=pass_all
7193  ;;
7194
7195beos*)
7196  lt_cv_deplibs_check_method=pass_all
7197  ;;
7198
7199bsdi[45]*)
7200  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7201  lt_cv_file_magic_cmd='/usr/bin/file -L'
7202  lt_cv_file_magic_test_file=/shlib/libc.so
7203  ;;
7204
7205cygwin*)
7206  # func_win32_libid is a shell function defined in ltmain.sh
7207  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7208  lt_cv_file_magic_cmd='func_win32_libid'
7209  ;;
7210
7211mingw* | pw32*)
7212  # Base MSYS/MinGW do not provide the 'file' command needed by
7213  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7214  # unless we find 'file', for example because we are cross-compiling.
7215  if ( file / ) >/dev/null 2>&1; then
7216    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7217    lt_cv_file_magic_cmd='func_win32_libid'
7218  else
7219    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7220    lt_cv_file_magic_cmd='$OBJDUMP -f'
7221  fi
7222  ;;
7223
7224cegcc)
7225  # use the weaker test based on 'objdump'. See mingw*.
7226  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7227  lt_cv_file_magic_cmd='$OBJDUMP -f'
7228  ;;
7229
7230darwin* | rhapsody*)
7231  lt_cv_deplibs_check_method=pass_all
7232  ;;
7233
7234freebsd* | dragonfly*)
7235  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7236    case $host_cpu in
7237    i*86 )
7238      # Not sure whether the presence of OpenBSD here was a mistake.
7239      # Let's accept both of them until this is cleared up.
7240      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7241      lt_cv_file_magic_cmd=/usr/bin/file
7242      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7243      ;;
7244    esac
7245  else
7246    lt_cv_deplibs_check_method=pass_all
7247  fi
7248  ;;
7249
7250gnu*)
7251  lt_cv_deplibs_check_method=pass_all
7252  ;;
7253
7254hpux10.20* | hpux11*)
7255  lt_cv_file_magic_cmd=/usr/bin/file
7256  case $host_cpu in
7257  ia64*)
7258    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7259    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7260    ;;
7261  hppa*64*)
7262    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7263    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7264    ;;
7265  *)
7266    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7267    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7268    ;;
7269  esac
7270  ;;
7271
7272interix[3-9]*)
7273  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7274  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7275  ;;
7276
7277irix5* | irix6* | nonstopux*)
7278  case $LD in
7279  *-32|*"-32 ") libmagic=32-bit;;
7280  *-n32|*"-n32 ") libmagic=N32;;
7281  *-64|*"-64 ") libmagic=64-bit;;
7282  *) libmagic=never-match;;
7283  esac
7284  lt_cv_deplibs_check_method=pass_all
7285  ;;
7286
7287# This must be Linux ELF.
7288linux* | k*bsd*-gnu | kopensolaris*-gnu)
7289  lt_cv_deplibs_check_method=pass_all
7290  ;;
7291
7292netbsd* | netbsdelf*-gnu)
7293  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7294    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7295  else
7296    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7297  fi
7298  ;;
7299
7300newos6*)
7301  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7302  lt_cv_file_magic_cmd=/usr/bin/file
7303  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7304  ;;
7305
7306*nto* | *qnx*)
7307  lt_cv_deplibs_check_method=pass_all
7308  ;;
7309
7310openbsd*)
7311  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7312    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7313  else
7314    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7315  fi
7316  ;;
7317
7318osf3* | osf4* | osf5*)
7319  lt_cv_deplibs_check_method=pass_all
7320  ;;
7321
7322rdos*)
7323  lt_cv_deplibs_check_method=pass_all
7324  ;;
7325
7326solaris*)
7327  lt_cv_deplibs_check_method=pass_all
7328  ;;
7329
7330sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7331  lt_cv_deplibs_check_method=pass_all
7332  ;;
7333
7334sysv4 | sysv4.3*)
7335  case $host_vendor in
7336  motorola)
7337    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]'
7338    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7339    ;;
7340  ncr)
7341    lt_cv_deplibs_check_method=pass_all
7342    ;;
7343  sequent)
7344    lt_cv_file_magic_cmd='/bin/file'
7345    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7346    ;;
7347  sni)
7348    lt_cv_file_magic_cmd='/bin/file'
7349    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7350    lt_cv_file_magic_test_file=/lib/libc.so
7351    ;;
7352  siemens)
7353    lt_cv_deplibs_check_method=pass_all
7354    ;;
7355  pc)
7356    lt_cv_deplibs_check_method=pass_all
7357    ;;
7358  esac
7359  ;;
7360
7361tpf*)
7362  lt_cv_deplibs_check_method=pass_all
7363  ;;
7364esac
7365
7366fi
7367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7368$as_echo "$lt_cv_deplibs_check_method" >&6; }
7369file_magic_cmd=$lt_cv_file_magic_cmd
7370deplibs_check_method=$lt_cv_deplibs_check_method
7371test -z "$deplibs_check_method" && deplibs_check_method=unknown
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384if test -n "$ac_tool_prefix"; then
7385  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7386set dummy ${ac_tool_prefix}ar; ac_word=$2
7387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388$as_echo_n "checking for $ac_word... " >&6; }
7389if test "${ac_cv_prog_AR+set}" = set; then :
7390  $as_echo_n "(cached) " >&6
7391else
7392  if test -n "$AR"; then
7393  ac_cv_prog_AR="$AR" # Let the user override the test.
7394else
7395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7396for as_dir in $PATH
7397do
7398  IFS=$as_save_IFS
7399  test -z "$as_dir" && as_dir=.
7400    for ac_exec_ext in '' $ac_executable_extensions; do
7401  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402    ac_cv_prog_AR="${ac_tool_prefix}ar"
7403    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7404    break 2
7405  fi
7406done
7407  done
7408IFS=$as_save_IFS
7409
7410fi
7411fi
7412AR=$ac_cv_prog_AR
7413if test -n "$AR"; then
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7415$as_echo "$AR" >&6; }
7416else
7417  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418$as_echo "no" >&6; }
7419fi
7420
7421
7422fi
7423if test -z "$ac_cv_prog_AR"; then
7424  ac_ct_AR=$AR
7425  # Extract the first word of "ar", so it can be a program name with args.
7426set dummy ar; ac_word=$2
7427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7428$as_echo_n "checking for $ac_word... " >&6; }
7429if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7430  $as_echo_n "(cached) " >&6
7431else
7432  if test -n "$ac_ct_AR"; then
7433  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7434else
7435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7436for as_dir in $PATH
7437do
7438  IFS=$as_save_IFS
7439  test -z "$as_dir" && as_dir=.
7440    for ac_exec_ext in '' $ac_executable_extensions; do
7441  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7442    ac_cv_prog_ac_ct_AR="ar"
7443    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7444    break 2
7445  fi
7446done
7447  done
7448IFS=$as_save_IFS
7449
7450fi
7451fi
7452ac_ct_AR=$ac_cv_prog_ac_ct_AR
7453if test -n "$ac_ct_AR"; then
7454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7455$as_echo "$ac_ct_AR" >&6; }
7456else
7457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458$as_echo "no" >&6; }
7459fi
7460
7461  if test "x$ac_ct_AR" = x; then
7462    AR="false"
7463  else
7464    case $cross_compiling:$ac_tool_warned in
7465yes:)
7466{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7467$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7468ac_tool_warned=yes ;;
7469esac
7470    AR=$ac_ct_AR
7471  fi
7472else
7473  AR="$ac_cv_prog_AR"
7474fi
7475
7476test -z "$AR" && AR=ar
7477test -z "$AR_FLAGS" && AR_FLAGS=cru
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489if test -n "$ac_tool_prefix"; then
7490  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7491set dummy ${ac_tool_prefix}strip; ac_word=$2
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7493$as_echo_n "checking for $ac_word... " >&6; }
7494if test "${ac_cv_prog_STRIP+set}" = set; then :
7495  $as_echo_n "(cached) " >&6
7496else
7497  if test -n "$STRIP"; then
7498  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7499else
7500as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501for as_dir in $PATH
7502do
7503  IFS=$as_save_IFS
7504  test -z "$as_dir" && as_dir=.
7505    for ac_exec_ext in '' $ac_executable_extensions; do
7506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7507    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7509    break 2
7510  fi
7511done
7512  done
7513IFS=$as_save_IFS
7514
7515fi
7516fi
7517STRIP=$ac_cv_prog_STRIP
7518if test -n "$STRIP"; then
7519  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7520$as_echo "$STRIP" >&6; }
7521else
7522  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7523$as_echo "no" >&6; }
7524fi
7525
7526
7527fi
7528if test -z "$ac_cv_prog_STRIP"; then
7529  ac_ct_STRIP=$STRIP
7530  # Extract the first word of "strip", so it can be a program name with args.
7531set dummy strip; ac_word=$2
7532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7533$as_echo_n "checking for $ac_word... " >&6; }
7534if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7535  $as_echo_n "(cached) " >&6
7536else
7537  if test -n "$ac_ct_STRIP"; then
7538  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7539else
7540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547    ac_cv_prog_ac_ct_STRIP="strip"
7548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552  done
7553IFS=$as_save_IFS
7554
7555fi
7556fi
7557ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7558if test -n "$ac_ct_STRIP"; then
7559  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7560$as_echo "$ac_ct_STRIP" >&6; }
7561else
7562  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563$as_echo "no" >&6; }
7564fi
7565
7566  if test "x$ac_ct_STRIP" = x; then
7567    STRIP=":"
7568  else
7569    case $cross_compiling:$ac_tool_warned in
7570yes:)
7571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7573ac_tool_warned=yes ;;
7574esac
7575    STRIP=$ac_ct_STRIP
7576  fi
7577else
7578  STRIP="$ac_cv_prog_STRIP"
7579fi
7580
7581test -z "$STRIP" && STRIP=:
7582
7583
7584
7585
7586
7587
7588if test -n "$ac_tool_prefix"; then
7589  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7590set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7592$as_echo_n "checking for $ac_word... " >&6; }
7593if test "${ac_cv_prog_RANLIB+set}" = set; then :
7594  $as_echo_n "(cached) " >&6
7595else
7596  if test -n "$RANLIB"; then
7597  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7598else
7599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7600for as_dir in $PATH
7601do
7602  IFS=$as_save_IFS
7603  test -z "$as_dir" && as_dir=.
7604    for ac_exec_ext in '' $ac_executable_extensions; do
7605  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7606    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7607    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608    break 2
7609  fi
7610done
7611  done
7612IFS=$as_save_IFS
7613
7614fi
7615fi
7616RANLIB=$ac_cv_prog_RANLIB
7617if test -n "$RANLIB"; then
7618  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7619$as_echo "$RANLIB" >&6; }
7620else
7621  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623fi
7624
7625
7626fi
7627if test -z "$ac_cv_prog_RANLIB"; then
7628  ac_ct_RANLIB=$RANLIB
7629  # Extract the first word of "ranlib", so it can be a program name with args.
7630set dummy ranlib; ac_word=$2
7631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7632$as_echo_n "checking for $ac_word... " >&6; }
7633if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7634  $as_echo_n "(cached) " >&6
7635else
7636  if test -n "$ac_ct_RANLIB"; then
7637  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7638else
7639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640for as_dir in $PATH
7641do
7642  IFS=$as_save_IFS
7643  test -z "$as_dir" && as_dir=.
7644    for ac_exec_ext in '' $ac_executable_extensions; do
7645  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7646    ac_cv_prog_ac_ct_RANLIB="ranlib"
7647    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7648    break 2
7649  fi
7650done
7651  done
7652IFS=$as_save_IFS
7653
7654fi
7655fi
7656ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7657if test -n "$ac_ct_RANLIB"; then
7658  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7659$as_echo "$ac_ct_RANLIB" >&6; }
7660else
7661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662$as_echo "no" >&6; }
7663fi
7664
7665  if test "x$ac_ct_RANLIB" = x; then
7666    RANLIB=":"
7667  else
7668    case $cross_compiling:$ac_tool_warned in
7669yes:)
7670{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7671$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7672ac_tool_warned=yes ;;
7673esac
7674    RANLIB=$ac_ct_RANLIB
7675  fi
7676else
7677  RANLIB="$ac_cv_prog_RANLIB"
7678fi
7679
7680test -z "$RANLIB" && RANLIB=:
7681
7682
7683
7684
7685
7686
7687# Determine commands to create old-style static archives.
7688old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7689old_postinstall_cmds='chmod 644 $oldlib'
7690old_postuninstall_cmds=
7691
7692if test -n "$RANLIB"; then
7693  case $host_os in
7694  openbsd*)
7695    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7696    ;;
7697  *)
7698    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7699    ;;
7700  esac
7701  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7702fi
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737# If no C compiler was specified, use CC.
7738LTCC=${LTCC-"$CC"}
7739
7740# If no C compiler flags were specified, use CFLAGS.
7741LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7742
7743# Allow CC to be a program name with arguments.
7744compiler=$CC
7745
7746
7747# Check for command to grab the raw symbol name followed by C symbol from nm.
7748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7749$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7750if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7751  $as_echo_n "(cached) " >&6
7752else
7753
7754# These are sane defaults that work on at least a few old systems.
7755# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7756
7757# Character class describing NM global symbol codes.
7758symcode='[BCDEGRST]'
7759
7760# Regexp to match symbols that can be accessed directly from C.
7761sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7762
7763# Define system-specific variables.
7764case $host_os in
7765aix*)
7766  symcode='[BCDT]'
7767  ;;
7768cygwin* | mingw* | pw32* | cegcc*)
7769  symcode='[ABCDGISTW]'
7770  ;;
7771hpux*)
7772  if test "$host_cpu" = ia64; then
7773    symcode='[ABCDEGRST]'
7774  fi
7775  ;;
7776irix* | nonstopux*)
7777  symcode='[BCDEGRST]'
7778  ;;
7779osf*)
7780  symcode='[BCDEGQRST]'
7781  ;;
7782solaris*)
7783  symcode='[BDRT]'
7784  ;;
7785sco3.2v5*)
7786  symcode='[DT]'
7787  ;;
7788sysv4.2uw2*)
7789  symcode='[DT]'
7790  ;;
7791sysv5* | sco5v6* | unixware* | OpenUNIX*)
7792  symcode='[ABDT]'
7793  ;;
7794sysv4)
7795  symcode='[DFNSTU]'
7796  ;;
7797esac
7798
7799# If we're using GNU nm, then use its standard symbol codes.
7800case `$NM -V 2>&1` in
7801*GNU* | *'with BFD'*)
7802  symcode='[ABCDGIRSTW]' ;;
7803esac
7804
7805# Transform an extracted symbol line into a proper C declaration.
7806# Some systems (esp. on ia64) link data and code symbols differently,
7807# so use this general approach.
7808lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7809
7810# Transform an extracted symbol line into symbol name and symbol address
7811lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7812lt_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'"
7813
7814# Handle CRLF in mingw tool chain
7815opt_cr=
7816case $build_os in
7817mingw*)
7818  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7819  ;;
7820esac
7821
7822# Try without a prefix underscore, then with it.
7823for ac_symprfx in "" "_"; do
7824
7825  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7826  symxfrm="\\1 $ac_symprfx\\2 \\2"
7827
7828  # Write the raw and C identifiers.
7829  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7830    # Fake it for dumpbin and say T for any non-static function
7831    # and D for any global variable.
7832    # Also find C++ and __fastcall symbols from MSVC++,
7833    # which start with @ or ?.
7834    lt_cv_sys_global_symbol_pipe="$AWK '"\
7835"     {last_section=section; section=\$ 3};"\
7836"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7837"     \$ 0!~/External *\|/{next};"\
7838"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7839"     {if(hide[section]) next};"\
7840"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7841"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7842"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7843"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7844"     ' prfx=^$ac_symprfx"
7845  else
7846    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7847  fi
7848
7849  # Check to see that the pipe works correctly.
7850  pipe_works=no
7851
7852  rm -f conftest*
7853  cat > conftest.$ac_ext <<_LT_EOF
7854#ifdef __cplusplus
7855extern "C" {
7856#endif
7857char nm_test_var;
7858void nm_test_func(void);
7859void nm_test_func(void){}
7860#ifdef __cplusplus
7861}
7862#endif
7863int main(){nm_test_var='a';nm_test_func();return(0);}
7864_LT_EOF
7865
7866  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7867  (eval $ac_compile) 2>&5
7868  ac_status=$?
7869  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870  test $ac_status = 0; }; then
7871    # Now try to grab the symbols.
7872    nlist=conftest.nm
7873    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7874  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7875  ac_status=$?
7876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877  test $ac_status = 0; } && test -s "$nlist"; then
7878      # Try sorting and uniquifying the output.
7879      if sort "$nlist" | uniq > "$nlist"T; then
7880	mv -f "$nlist"T "$nlist"
7881      else
7882	rm -f "$nlist"T
7883      fi
7884
7885      # Make sure that we snagged all the symbols we need.
7886      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7887	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7888	  cat <<_LT_EOF > conftest.$ac_ext
7889#ifdef __cplusplus
7890extern "C" {
7891#endif
7892
7893_LT_EOF
7894	  # Now generate the symbol file.
7895	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7896
7897	  cat <<_LT_EOF >> conftest.$ac_ext
7898
7899/* The mapping between symbol names and symbols.  */
7900const struct {
7901  const char *name;
7902  void       *address;
7903}
7904lt__PROGRAM__LTX_preloaded_symbols[] =
7905{
7906  { "@PROGRAM@", (void *) 0 },
7907_LT_EOF
7908	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7909	  cat <<\_LT_EOF >> conftest.$ac_ext
7910  {0, (void *) 0}
7911};
7912
7913/* This works around a problem in FreeBSD linker */
7914#ifdef FREEBSD_WORKAROUND
7915static const void *lt_preloaded_setup() {
7916  return lt__PROGRAM__LTX_preloaded_symbols;
7917}
7918#endif
7919
7920#ifdef __cplusplus
7921}
7922#endif
7923_LT_EOF
7924	  # Now try linking the two files.
7925	  mv conftest.$ac_objext conftstm.$ac_objext
7926	  lt_save_LIBS="$LIBS"
7927	  lt_save_CFLAGS="$CFLAGS"
7928	  LIBS="conftstm.$ac_objext"
7929	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7930	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7931  (eval $ac_link) 2>&5
7932  ac_status=$?
7933  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7934  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7935	    pipe_works=yes
7936	  fi
7937	  LIBS="$lt_save_LIBS"
7938	  CFLAGS="$lt_save_CFLAGS"
7939	else
7940	  echo "cannot find nm_test_func in $nlist" >&5
7941	fi
7942      else
7943	echo "cannot find nm_test_var in $nlist" >&5
7944      fi
7945    else
7946      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7947    fi
7948  else
7949    echo "$progname: failed program was:" >&5
7950    cat conftest.$ac_ext >&5
7951  fi
7952  rm -rf conftest* conftst*
7953
7954  # Do not use the global_symbol_pipe unless it works.
7955  if test "$pipe_works" = yes; then
7956    break
7957  else
7958    lt_cv_sys_global_symbol_pipe=
7959  fi
7960done
7961
7962fi
7963
7964if test -z "$lt_cv_sys_global_symbol_pipe"; then
7965  lt_cv_sys_global_symbol_to_cdecl=
7966fi
7967if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7969$as_echo "failed" >&6; }
7970else
7971  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7972$as_echo "ok" >&6; }
7973fi
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996# Check whether --enable-libtool-lock was given.
7997if test "${enable_libtool_lock+set}" = set; then :
7998  enableval=$enable_libtool_lock;
7999fi
8000
8001test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8002
8003# Some flags need to be propagated to the compiler or linker for good
8004# libtool support.
8005case $host in
8006ia64-*-hpux*)
8007  # Find out which ABI we are using.
8008  echo 'int i;' > conftest.$ac_ext
8009  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8010  (eval $ac_compile) 2>&5
8011  ac_status=$?
8012  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8013  test $ac_status = 0; }; then
8014    case `/usr/bin/file conftest.$ac_objext` in
8015      *ELF-32*)
8016	HPUX_IA64_MODE="32"
8017	;;
8018      *ELF-64*)
8019	HPUX_IA64_MODE="64"
8020	;;
8021    esac
8022  fi
8023  rm -rf conftest*
8024  ;;
8025*-*-irix6*)
8026  # Find out which ABI we are using.
8027  echo '#line 8027 "configure"' > conftest.$ac_ext
8028  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8029  (eval $ac_compile) 2>&5
8030  ac_status=$?
8031  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8032  test $ac_status = 0; }; then
8033    if test "$lt_cv_prog_gnu_ld" = yes; then
8034      case `/usr/bin/file conftest.$ac_objext` in
8035	*32-bit*)
8036	  LD="${LD-ld} -melf32bsmip"
8037	  ;;
8038	*N32*)
8039	  LD="${LD-ld} -melf32bmipn32"
8040	  ;;
8041	*64-bit*)
8042	  LD="${LD-ld} -melf64bmip"
8043	;;
8044      esac
8045    else
8046      case `/usr/bin/file conftest.$ac_objext` in
8047	*32-bit*)
8048	  LD="${LD-ld} -32"
8049	  ;;
8050	*N32*)
8051	  LD="${LD-ld} -n32"
8052	  ;;
8053	*64-bit*)
8054	  LD="${LD-ld} -64"
8055	  ;;
8056      esac
8057    fi
8058  fi
8059  rm -rf conftest*
8060  ;;
8061
8062x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8063s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8064  # Find out which ABI we are using.
8065  echo 'int i;' > conftest.$ac_ext
8066  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8067  (eval $ac_compile) 2>&5
8068  ac_status=$?
8069  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8070  test $ac_status = 0; }; then
8071    case `/usr/bin/file conftest.o` in
8072      *32-bit*)
8073	case $host in
8074	  x86_64-*kfreebsd*-gnu)
8075	    LD="${LD-ld} -m elf_i386_fbsd"
8076	    ;;
8077	  x86_64-*linux*)
8078	    LD="${LD-ld} -m elf_i386"
8079	    ;;
8080	  ppc64-*linux*|powerpc64-*linux*)
8081	    LD="${LD-ld} -m elf32ppclinux"
8082	    ;;
8083	  s390x-*linux*)
8084	    LD="${LD-ld} -m elf_s390"
8085	    ;;
8086	  sparc64-*linux*)
8087	    LD="${LD-ld} -m elf32_sparc"
8088	    ;;
8089	esac
8090	;;
8091      *64-bit*)
8092	case $host in
8093	  x86_64-*kfreebsd*-gnu)
8094	    LD="${LD-ld} -m elf_x86_64_fbsd"
8095	    ;;
8096	  x86_64-*linux*)
8097	    LD="${LD-ld} -m elf_x86_64"
8098	    ;;
8099	  ppc*-*linux*|powerpc*-*linux*)
8100	    LD="${LD-ld} -m elf64ppc"
8101	    ;;
8102	  s390*-*linux*|s390*-*tpf*)
8103	    LD="${LD-ld} -m elf64_s390"
8104	    ;;
8105	  sparc*-*linux*)
8106	    LD="${LD-ld} -m elf64_sparc"
8107	    ;;
8108	esac
8109	;;
8110    esac
8111  fi
8112  rm -rf conftest*
8113  ;;
8114
8115*-*-sco3.2v5*)
8116  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8117  SAVE_CFLAGS="$CFLAGS"
8118  CFLAGS="$CFLAGS -belf"
8119  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8120$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8121if test "${lt_cv_cc_needs_belf+set}" = set; then :
8122  $as_echo_n "(cached) " >&6
8123else
8124  ac_ext=c
8125ac_cpp='$CPP $CPPFLAGS'
8126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8128ac_compiler_gnu=$ac_cv_c_compiler_gnu
8129
8130     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8131/* end confdefs.h.  */
8132
8133int
8134main ()
8135{
8136
8137  ;
8138  return 0;
8139}
8140_ACEOF
8141if ac_fn_c_try_link "$LINENO"; then :
8142  lt_cv_cc_needs_belf=yes
8143else
8144  lt_cv_cc_needs_belf=no
8145fi
8146rm -f core conftest.err conftest.$ac_objext \
8147    conftest$ac_exeext conftest.$ac_ext
8148     ac_ext=c
8149ac_cpp='$CPP $CPPFLAGS'
8150ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8151ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8152ac_compiler_gnu=$ac_cv_c_compiler_gnu
8153
8154fi
8155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8156$as_echo "$lt_cv_cc_needs_belf" >&6; }
8157  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8158    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8159    CFLAGS="$SAVE_CFLAGS"
8160  fi
8161  ;;
8162sparc*-*solaris*)
8163  # Find out which ABI we are using.
8164  echo 'int i;' > conftest.$ac_ext
8165  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8166  (eval $ac_compile) 2>&5
8167  ac_status=$?
8168  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8169  test $ac_status = 0; }; then
8170    case `/usr/bin/file conftest.o` in
8171    *64-bit*)
8172      case $lt_cv_prog_gnu_ld in
8173      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8174      *)
8175	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8176	  LD="${LD-ld} -64"
8177	fi
8178	;;
8179      esac
8180      ;;
8181    esac
8182  fi
8183  rm -rf conftest*
8184  ;;
8185esac
8186
8187need_locks="$enable_libtool_lock"
8188
8189
8190  case $host_os in
8191    rhapsody* | darwin*)
8192    if test -n "$ac_tool_prefix"; then
8193  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8194set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196$as_echo_n "checking for $ac_word... " >&6; }
8197if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8198  $as_echo_n "(cached) " >&6
8199else
8200  if test -n "$DSYMUTIL"; then
8201  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8202else
8203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204for as_dir in $PATH
8205do
8206  IFS=$as_save_IFS
8207  test -z "$as_dir" && as_dir=.
8208    for ac_exec_ext in '' $ac_executable_extensions; do
8209  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8211    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212    break 2
8213  fi
8214done
8215  done
8216IFS=$as_save_IFS
8217
8218fi
8219fi
8220DSYMUTIL=$ac_cv_prog_DSYMUTIL
8221if test -n "$DSYMUTIL"; then
8222  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8223$as_echo "$DSYMUTIL" >&6; }
8224else
8225  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226$as_echo "no" >&6; }
8227fi
8228
8229
8230fi
8231if test -z "$ac_cv_prog_DSYMUTIL"; then
8232  ac_ct_DSYMUTIL=$DSYMUTIL
8233  # Extract the first word of "dsymutil", so it can be a program name with args.
8234set dummy dsymutil; ac_word=$2
8235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236$as_echo_n "checking for $ac_word... " >&6; }
8237if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8238  $as_echo_n "(cached) " >&6
8239else
8240  if test -n "$ac_ct_DSYMUTIL"; then
8241  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8242else
8243as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244for as_dir in $PATH
8245do
8246  IFS=$as_save_IFS
8247  test -z "$as_dir" && as_dir=.
8248    for ac_exec_ext in '' $ac_executable_extensions; do
8249  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8251    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252    break 2
8253  fi
8254done
8255  done
8256IFS=$as_save_IFS
8257
8258fi
8259fi
8260ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8261if test -n "$ac_ct_DSYMUTIL"; then
8262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8263$as_echo "$ac_ct_DSYMUTIL" >&6; }
8264else
8265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266$as_echo "no" >&6; }
8267fi
8268
8269  if test "x$ac_ct_DSYMUTIL" = x; then
8270    DSYMUTIL=":"
8271  else
8272    case $cross_compiling:$ac_tool_warned in
8273yes:)
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276ac_tool_warned=yes ;;
8277esac
8278    DSYMUTIL=$ac_ct_DSYMUTIL
8279  fi
8280else
8281  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8282fi
8283
8284    if test -n "$ac_tool_prefix"; then
8285  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8286set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288$as_echo_n "checking for $ac_word... " >&6; }
8289if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8290  $as_echo_n "(cached) " >&6
8291else
8292  if test -n "$NMEDIT"; then
8293  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8294else
8295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296for as_dir in $PATH
8297do
8298  IFS=$as_save_IFS
8299  test -z "$as_dir" && as_dir=.
8300    for ac_exec_ext in '' $ac_executable_extensions; do
8301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304    break 2
8305  fi
8306done
8307  done
8308IFS=$as_save_IFS
8309
8310fi
8311fi
8312NMEDIT=$ac_cv_prog_NMEDIT
8313if test -n "$NMEDIT"; then
8314  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8315$as_echo "$NMEDIT" >&6; }
8316else
8317  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318$as_echo "no" >&6; }
8319fi
8320
8321
8322fi
8323if test -z "$ac_cv_prog_NMEDIT"; then
8324  ac_ct_NMEDIT=$NMEDIT
8325  # Extract the first word of "nmedit", so it can be a program name with args.
8326set dummy nmedit; ac_word=$2
8327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328$as_echo_n "checking for $ac_word... " >&6; }
8329if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8330  $as_echo_n "(cached) " >&6
8331else
8332  if test -n "$ac_ct_NMEDIT"; then
8333  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8334else
8335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336for as_dir in $PATH
8337do
8338  IFS=$as_save_IFS
8339  test -z "$as_dir" && as_dir=.
8340    for ac_exec_ext in '' $ac_executable_extensions; do
8341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344    break 2
8345  fi
8346done
8347  done
8348IFS=$as_save_IFS
8349
8350fi
8351fi
8352ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8353if test -n "$ac_ct_NMEDIT"; then
8354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8355$as_echo "$ac_ct_NMEDIT" >&6; }
8356else
8357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358$as_echo "no" >&6; }
8359fi
8360
8361  if test "x$ac_ct_NMEDIT" = x; then
8362    NMEDIT=":"
8363  else
8364    case $cross_compiling:$ac_tool_warned in
8365yes:)
8366{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368ac_tool_warned=yes ;;
8369esac
8370    NMEDIT=$ac_ct_NMEDIT
8371  fi
8372else
8373  NMEDIT="$ac_cv_prog_NMEDIT"
8374fi
8375
8376    if test -n "$ac_tool_prefix"; then
8377  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8378set dummy ${ac_tool_prefix}lipo; ac_word=$2
8379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380$as_echo_n "checking for $ac_word... " >&6; }
8381if test "${ac_cv_prog_LIPO+set}" = set; then :
8382  $as_echo_n "(cached) " >&6
8383else
8384  if test -n "$LIPO"; then
8385  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8386else
8387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388for as_dir in $PATH
8389do
8390  IFS=$as_save_IFS
8391  test -z "$as_dir" && as_dir=.
8392    for ac_exec_ext in '' $ac_executable_extensions; do
8393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8394    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396    break 2
8397  fi
8398done
8399  done
8400IFS=$as_save_IFS
8401
8402fi
8403fi
8404LIPO=$ac_cv_prog_LIPO
8405if test -n "$LIPO"; then
8406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8407$as_echo "$LIPO" >&6; }
8408else
8409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410$as_echo "no" >&6; }
8411fi
8412
8413
8414fi
8415if test -z "$ac_cv_prog_LIPO"; then
8416  ac_ct_LIPO=$LIPO
8417  # Extract the first word of "lipo", so it can be a program name with args.
8418set dummy lipo; ac_word=$2
8419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420$as_echo_n "checking for $ac_word... " >&6; }
8421if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8422  $as_echo_n "(cached) " >&6
8423else
8424  if test -n "$ac_ct_LIPO"; then
8425  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8426else
8427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428for as_dir in $PATH
8429do
8430  IFS=$as_save_IFS
8431  test -z "$as_dir" && as_dir=.
8432    for ac_exec_ext in '' $ac_executable_extensions; do
8433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8434    ac_cv_prog_ac_ct_LIPO="lipo"
8435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436    break 2
8437  fi
8438done
8439  done
8440IFS=$as_save_IFS
8441
8442fi
8443fi
8444ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8445if test -n "$ac_ct_LIPO"; then
8446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8447$as_echo "$ac_ct_LIPO" >&6; }
8448else
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450$as_echo "no" >&6; }
8451fi
8452
8453  if test "x$ac_ct_LIPO" = x; then
8454    LIPO=":"
8455  else
8456    case $cross_compiling:$ac_tool_warned in
8457yes:)
8458{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460ac_tool_warned=yes ;;
8461esac
8462    LIPO=$ac_ct_LIPO
8463  fi
8464else
8465  LIPO="$ac_cv_prog_LIPO"
8466fi
8467
8468    if test -n "$ac_tool_prefix"; then
8469  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8470set dummy ${ac_tool_prefix}otool; ac_word=$2
8471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472$as_echo_n "checking for $ac_word... " >&6; }
8473if test "${ac_cv_prog_OTOOL+set}" = set; then :
8474  $as_echo_n "(cached) " >&6
8475else
8476  if test -n "$OTOOL"; then
8477  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8478else
8479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480for as_dir in $PATH
8481do
8482  IFS=$as_save_IFS
8483  test -z "$as_dir" && as_dir=.
8484    for ac_exec_ext in '' $ac_executable_extensions; do
8485  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8486    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8487    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488    break 2
8489  fi
8490done
8491  done
8492IFS=$as_save_IFS
8493
8494fi
8495fi
8496OTOOL=$ac_cv_prog_OTOOL
8497if test -n "$OTOOL"; then
8498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8499$as_echo "$OTOOL" >&6; }
8500else
8501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502$as_echo "no" >&6; }
8503fi
8504
8505
8506fi
8507if test -z "$ac_cv_prog_OTOOL"; then
8508  ac_ct_OTOOL=$OTOOL
8509  # Extract the first word of "otool", so it can be a program name with args.
8510set dummy otool; ac_word=$2
8511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512$as_echo_n "checking for $ac_word... " >&6; }
8513if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8514  $as_echo_n "(cached) " >&6
8515else
8516  if test -n "$ac_ct_OTOOL"; then
8517  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8518else
8519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520for as_dir in $PATH
8521do
8522  IFS=$as_save_IFS
8523  test -z "$as_dir" && as_dir=.
8524    for ac_exec_ext in '' $ac_executable_extensions; do
8525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526    ac_cv_prog_ac_ct_OTOOL="otool"
8527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528    break 2
8529  fi
8530done
8531  done
8532IFS=$as_save_IFS
8533
8534fi
8535fi
8536ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8537if test -n "$ac_ct_OTOOL"; then
8538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8539$as_echo "$ac_ct_OTOOL" >&6; }
8540else
8541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542$as_echo "no" >&6; }
8543fi
8544
8545  if test "x$ac_ct_OTOOL" = x; then
8546    OTOOL=":"
8547  else
8548    case $cross_compiling:$ac_tool_warned in
8549yes:)
8550{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552ac_tool_warned=yes ;;
8553esac
8554    OTOOL=$ac_ct_OTOOL
8555  fi
8556else
8557  OTOOL="$ac_cv_prog_OTOOL"
8558fi
8559
8560    if test -n "$ac_tool_prefix"; then
8561  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8562set dummy ${ac_tool_prefix}otool64; ac_word=$2
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564$as_echo_n "checking for $ac_word... " >&6; }
8565if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8566  $as_echo_n "(cached) " >&6
8567else
8568  if test -n "$OTOOL64"; then
8569  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8570else
8571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572for as_dir in $PATH
8573do
8574  IFS=$as_save_IFS
8575  test -z "$as_dir" && as_dir=.
8576    for ac_exec_ext in '' $ac_executable_extensions; do
8577  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8578    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8579    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580    break 2
8581  fi
8582done
8583  done
8584IFS=$as_save_IFS
8585
8586fi
8587fi
8588OTOOL64=$ac_cv_prog_OTOOL64
8589if test -n "$OTOOL64"; then
8590  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8591$as_echo "$OTOOL64" >&6; }
8592else
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594$as_echo "no" >&6; }
8595fi
8596
8597
8598fi
8599if test -z "$ac_cv_prog_OTOOL64"; then
8600  ac_ct_OTOOL64=$OTOOL64
8601  # Extract the first word of "otool64", so it can be a program name with args.
8602set dummy otool64; ac_word=$2
8603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604$as_echo_n "checking for $ac_word... " >&6; }
8605if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8606  $as_echo_n "(cached) " >&6
8607else
8608  if test -n "$ac_ct_OTOOL64"; then
8609  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8610else
8611as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612for as_dir in $PATH
8613do
8614  IFS=$as_save_IFS
8615  test -z "$as_dir" && as_dir=.
8616    for ac_exec_ext in '' $ac_executable_extensions; do
8617  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8618    ac_cv_prog_ac_ct_OTOOL64="otool64"
8619    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620    break 2
8621  fi
8622done
8623  done
8624IFS=$as_save_IFS
8625
8626fi
8627fi
8628ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8629if test -n "$ac_ct_OTOOL64"; then
8630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8631$as_echo "$ac_ct_OTOOL64" >&6; }
8632else
8633  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634$as_echo "no" >&6; }
8635fi
8636
8637  if test "x$ac_ct_OTOOL64" = x; then
8638    OTOOL64=":"
8639  else
8640    case $cross_compiling:$ac_tool_warned in
8641yes:)
8642{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644ac_tool_warned=yes ;;
8645esac
8646    OTOOL64=$ac_ct_OTOOL64
8647  fi
8648else
8649  OTOOL64="$ac_cv_prog_OTOOL64"
8650fi
8651
8652
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8679$as_echo_n "checking for -single_module linker flag... " >&6; }
8680if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8681  $as_echo_n "(cached) " >&6
8682else
8683  lt_cv_apple_cc_single_mod=no
8684      if test -z "${LT_MULTI_MODULE}"; then
8685	# By default we will add the -single_module flag. You can override
8686	# by either setting the environment variable LT_MULTI_MODULE
8687	# non-empty at configure time, or by adding -multi_module to the
8688	# link flags.
8689	rm -rf libconftest.dylib*
8690	echo "int foo(void){return 1;}" > conftest.c
8691	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8692-dynamiclib -Wl,-single_module conftest.c" >&5
8693	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8695        _lt_result=$?
8696	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8697	  lt_cv_apple_cc_single_mod=yes
8698	else
8699	  cat conftest.err >&5
8700	fi
8701	rm -rf libconftest.dylib*
8702	rm -f conftest.*
8703      fi
8704fi
8705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8706$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8707    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8708$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8709if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8710  $as_echo_n "(cached) " >&6
8711else
8712  lt_cv_ld_exported_symbols_list=no
8713      save_LDFLAGS=$LDFLAGS
8714      echo "_main" > conftest.sym
8715      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8716      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8717/* end confdefs.h.  */
8718
8719int
8720main ()
8721{
8722
8723  ;
8724  return 0;
8725}
8726_ACEOF
8727if ac_fn_c_try_link "$LINENO"; then :
8728  lt_cv_ld_exported_symbols_list=yes
8729else
8730  lt_cv_ld_exported_symbols_list=no
8731fi
8732rm -f core conftest.err conftest.$ac_objext \
8733    conftest$ac_exeext conftest.$ac_ext
8734	LDFLAGS="$save_LDFLAGS"
8735
8736fi
8737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8738$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8739    case $host_os in
8740    rhapsody* | darwin1.[012])
8741      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8742    darwin1.*)
8743      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8744    darwin*) # darwin 5.x on
8745      # if running on 10.5 or later, the deployment target defaults
8746      # to the OS version, if on x86, and 10.4, the deployment
8747      # target defaults to 10.4. Don't you love it?
8748      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8749	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8750	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8751	10.[012]*)
8752	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8753	10.*)
8754	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8755      esac
8756    ;;
8757  esac
8758    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8759      _lt_dar_single_mod='$single_module'
8760    fi
8761    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8762      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8763    else
8764      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8765    fi
8766    if test "$DSYMUTIL" != ":"; then
8767      _lt_dsymutil='~$DSYMUTIL $lib || :'
8768    else
8769      _lt_dsymutil=
8770    fi
8771    ;;
8772  esac
8773
8774for ac_header in dlfcn.h
8775do :
8776  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8777"
8778if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8779  cat >>confdefs.h <<_ACEOF
8780#define HAVE_DLFCN_H 1
8781_ACEOF
8782
8783fi
8784
8785done
8786
8787
8788
8789# Set options
8790
8791
8792
8793        enable_dlopen=no
8794
8795
8796  enable_win32_dll=no
8797
8798
8799            # Check whether --enable-shared was given.
8800if test "${enable_shared+set}" = set; then :
8801  enableval=$enable_shared; p=${PACKAGE-default}
8802    case $enableval in
8803    yes) enable_shared=yes ;;
8804    no) enable_shared=no ;;
8805    *)
8806      enable_shared=no
8807      # Look at the argument we got.  We use all the common list separators.
8808      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8809      for pkg in $enableval; do
8810	IFS="$lt_save_ifs"
8811	if test "X$pkg" = "X$p"; then
8812	  enable_shared=yes
8813	fi
8814      done
8815      IFS="$lt_save_ifs"
8816      ;;
8817    esac
8818else
8819  enable_shared=yes
8820fi
8821
8822
8823
8824
8825
8826
8827
8828
8829
8830
8831
8832# Check whether --with-pic was given.
8833if test "${with_pic+set}" = set; then :
8834  withval=$with_pic; pic_mode="$withval"
8835else
8836  pic_mode=default
8837fi
8838
8839
8840test -z "$pic_mode" && pic_mode=default
8841
8842
8843
8844
8845
8846
8847
8848  # Check whether --enable-fast-install was given.
8849if test "${enable_fast_install+set}" = set; then :
8850  enableval=$enable_fast_install; p=${PACKAGE-default}
8851    case $enableval in
8852    yes) enable_fast_install=yes ;;
8853    no) enable_fast_install=no ;;
8854    *)
8855      enable_fast_install=no
8856      # Look at the argument we got.  We use all the common list separators.
8857      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8858      for pkg in $enableval; do
8859	IFS="$lt_save_ifs"
8860	if test "X$pkg" = "X$p"; then
8861	  enable_fast_install=yes
8862	fi
8863      done
8864      IFS="$lt_save_ifs"
8865      ;;
8866    esac
8867else
8868  enable_fast_install=yes
8869fi
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881# This can be used to rebuild libtool when needed
8882LIBTOOL_DEPS="$ltmain"
8883
8884# Always use our own libtool.
8885LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911test -z "$LN_S" && LN_S="ln -s"
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926if test -n "${ZSH_VERSION+set}" ; then
8927   setopt NO_GLOB_SUBST
8928fi
8929
8930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8931$as_echo_n "checking for objdir... " >&6; }
8932if test "${lt_cv_objdir+set}" = set; then :
8933  $as_echo_n "(cached) " >&6
8934else
8935  rm -f .libs 2>/dev/null
8936mkdir .libs 2>/dev/null
8937if test -d .libs; then
8938  lt_cv_objdir=.libs
8939else
8940  # MS-DOS does not allow filenames that begin with a dot.
8941  lt_cv_objdir=_libs
8942fi
8943rmdir .libs 2>/dev/null
8944fi
8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8946$as_echo "$lt_cv_objdir" >&6; }
8947objdir=$lt_cv_objdir
8948
8949
8950
8951
8952
8953cat >>confdefs.h <<_ACEOF
8954#define LT_OBJDIR "$lt_cv_objdir/"
8955_ACEOF
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973case $host_os in
8974aix3*)
8975  # AIX sometimes has problems with the GCC collect2 program.  For some
8976  # reason, if we set the COLLECT_NAMES environment variable, the problems
8977  # vanish in a puff of smoke.
8978  if test "X${COLLECT_NAMES+set}" != Xset; then
8979    COLLECT_NAMES=
8980    export COLLECT_NAMES
8981  fi
8982  ;;
8983esac
8984
8985# Sed substitution that helps us do robust quoting.  It backslashifies
8986# metacharacters that are still active within double-quoted strings.
8987sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8988
8989# Same as above, but do not quote variable references.
8990double_quote_subst='s/\(["`\\]\)/\\\1/g'
8991
8992# Sed substitution to delay expansion of an escaped shell variable in a
8993# double_quote_subst'ed string.
8994delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8995
8996# Sed substitution to delay expansion of an escaped single quote.
8997delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8998
8999# Sed substitution to avoid accidental globbing in evaled expressions
9000no_glob_subst='s/\*/\\\*/g'
9001
9002# Global variables:
9003ofile=libtool
9004can_build_shared=yes
9005
9006# All known linkers require a `.a' archive for static linking (except MSVC,
9007# which needs '.lib').
9008libext=a
9009
9010with_gnu_ld="$lt_cv_prog_gnu_ld"
9011
9012old_CC="$CC"
9013old_CFLAGS="$CFLAGS"
9014
9015# Set sane defaults for various variables
9016test -z "$CC" && CC=cc
9017test -z "$LTCC" && LTCC=$CC
9018test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9019test -z "$LD" && LD=ld
9020test -z "$ac_objext" && ac_objext=o
9021
9022for cc_temp in $compiler""; do
9023  case $cc_temp in
9024    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9025    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9026    \-*) ;;
9027    *) break;;
9028  esac
9029done
9030cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9031
9032
9033# Only perform the check for file, if the check method requires it
9034test -z "$MAGIC_CMD" && MAGIC_CMD=file
9035case $deplibs_check_method in
9036file_magic*)
9037  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9038    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9039$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9040if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9041  $as_echo_n "(cached) " >&6
9042else
9043  case $MAGIC_CMD in
9044[\\/*] |  ?:[\\/]*)
9045  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9046  ;;
9047*)
9048  lt_save_MAGIC_CMD="$MAGIC_CMD"
9049  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9050  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9051  for ac_dir in $ac_dummy; do
9052    IFS="$lt_save_ifs"
9053    test -z "$ac_dir" && ac_dir=.
9054    if test -f $ac_dir/${ac_tool_prefix}file; then
9055      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9056      if test -n "$file_magic_test_file"; then
9057	case $deplibs_check_method in
9058	"file_magic "*)
9059	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9060	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9061	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9062	    $EGREP "$file_magic_regex" > /dev/null; then
9063	    :
9064	  else
9065	    cat <<_LT_EOF 1>&2
9066
9067*** Warning: the command libtool uses to detect shared libraries,
9068*** $file_magic_cmd, produces output that libtool cannot recognize.
9069*** The result is that libtool may fail to recognize shared libraries
9070*** as such.  This will affect the creation of libtool libraries that
9071*** depend on shared libraries, but programs linked with such libtool
9072*** libraries will work regardless of this problem.  Nevertheless, you
9073*** may want to report the problem to your system manager and/or to
9074*** bug-libtool@gnu.org
9075
9076_LT_EOF
9077	  fi ;;
9078	esac
9079      fi
9080      break
9081    fi
9082  done
9083  IFS="$lt_save_ifs"
9084  MAGIC_CMD="$lt_save_MAGIC_CMD"
9085  ;;
9086esac
9087fi
9088
9089MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9090if test -n "$MAGIC_CMD"; then
9091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9092$as_echo "$MAGIC_CMD" >&6; }
9093else
9094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095$as_echo "no" >&6; }
9096fi
9097
9098
9099
9100
9101
9102if test -z "$lt_cv_path_MAGIC_CMD"; then
9103  if test -n "$ac_tool_prefix"; then
9104    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9105$as_echo_n "checking for file... " >&6; }
9106if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9107  $as_echo_n "(cached) " >&6
9108else
9109  case $MAGIC_CMD in
9110[\\/*] |  ?:[\\/]*)
9111  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9112  ;;
9113*)
9114  lt_save_MAGIC_CMD="$MAGIC_CMD"
9115  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9116  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9117  for ac_dir in $ac_dummy; do
9118    IFS="$lt_save_ifs"
9119    test -z "$ac_dir" && ac_dir=.
9120    if test -f $ac_dir/file; then
9121      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9122      if test -n "$file_magic_test_file"; then
9123	case $deplibs_check_method in
9124	"file_magic "*)
9125	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9126	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9127	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9128	    $EGREP "$file_magic_regex" > /dev/null; then
9129	    :
9130	  else
9131	    cat <<_LT_EOF 1>&2
9132
9133*** Warning: the command libtool uses to detect shared libraries,
9134*** $file_magic_cmd, produces output that libtool cannot recognize.
9135*** The result is that libtool may fail to recognize shared libraries
9136*** as such.  This will affect the creation of libtool libraries that
9137*** depend on shared libraries, but programs linked with such libtool
9138*** libraries will work regardless of this problem.  Nevertheless, you
9139*** may want to report the problem to your system manager and/or to
9140*** bug-libtool@gnu.org
9141
9142_LT_EOF
9143	  fi ;;
9144	esac
9145      fi
9146      break
9147    fi
9148  done
9149  IFS="$lt_save_ifs"
9150  MAGIC_CMD="$lt_save_MAGIC_CMD"
9151  ;;
9152esac
9153fi
9154
9155MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9156if test -n "$MAGIC_CMD"; then
9157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9158$as_echo "$MAGIC_CMD" >&6; }
9159else
9160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161$as_echo "no" >&6; }
9162fi
9163
9164
9165  else
9166    MAGIC_CMD=:
9167  fi
9168fi
9169
9170  fi
9171  ;;
9172esac
9173
9174# Use C for the default configuration in the libtool script
9175
9176lt_save_CC="$CC"
9177ac_ext=c
9178ac_cpp='$CPP $CPPFLAGS'
9179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9181ac_compiler_gnu=$ac_cv_c_compiler_gnu
9182
9183
9184# Source file extension for C test sources.
9185ac_ext=c
9186
9187# Object file extension for compiled C test sources.
9188objext=o
9189objext=$objext
9190
9191# Code to be used in simple compile tests
9192lt_simple_compile_test_code="int some_variable = 0;"
9193
9194# Code to be used in simple link tests
9195lt_simple_link_test_code='int main(){return(0);}'
9196
9197
9198
9199
9200
9201
9202
9203# If no C compiler was specified, use CC.
9204LTCC=${LTCC-"$CC"}
9205
9206# If no C compiler flags were specified, use CFLAGS.
9207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9208
9209# Allow CC to be a program name with arguments.
9210compiler=$CC
9211
9212# Save the default compiler, since it gets overwritten when the other
9213# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9214compiler_DEFAULT=$CC
9215
9216# save warnings/boilerplate of simple test code
9217ac_outfile=conftest.$ac_objext
9218echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9219eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9220_lt_compiler_boilerplate=`cat conftest.err`
9221$RM conftest*
9222
9223ac_outfile=conftest.$ac_objext
9224echo "$lt_simple_link_test_code" >conftest.$ac_ext
9225eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9226_lt_linker_boilerplate=`cat conftest.err`
9227$RM -r conftest*
9228
9229
9230if test -n "$compiler"; then
9231
9232lt_prog_compiler_no_builtin_flag=
9233
9234if test "$GCC" = yes; then
9235  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9236
9237  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9238$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9239if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9240  $as_echo_n "(cached) " >&6
9241else
9242  lt_cv_prog_compiler_rtti_exceptions=no
9243   ac_outfile=conftest.$ac_objext
9244   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9245   lt_compiler_flag="-fno-rtti -fno-exceptions"
9246   # Insert the option either (1) after the last *FLAGS variable, or
9247   # (2) before a word containing "conftest.", or (3) at the end.
9248   # Note that $ac_compile itself does not contain backslashes and begins
9249   # with a dollar sign (not a hyphen), so the echo should work correctly.
9250   # The option is referenced via a variable to avoid confusing sed.
9251   lt_compile=`echo "$ac_compile" | $SED \
9252   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9253   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9254   -e 's:$: $lt_compiler_flag:'`
9255   (eval echo "\"\$as_me:9255: $lt_compile\"" >&5)
9256   (eval "$lt_compile" 2>conftest.err)
9257   ac_status=$?
9258   cat conftest.err >&5
9259   echo "$as_me:9259: \$? = $ac_status" >&5
9260   if (exit $ac_status) && test -s "$ac_outfile"; then
9261     # The compiler can only warn and ignore the option if not recognized
9262     # So say no if there are warnings other than the usual output.
9263     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9264     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9265     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9266       lt_cv_prog_compiler_rtti_exceptions=yes
9267     fi
9268   fi
9269   $RM conftest*
9270
9271fi
9272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9273$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9274
9275if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9276    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9277else
9278    :
9279fi
9280
9281fi
9282
9283
9284
9285
9286
9287
9288  lt_prog_compiler_wl=
9289lt_prog_compiler_pic=
9290lt_prog_compiler_static=
9291
9292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9293$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9294
9295  if test "$GCC" = yes; then
9296    lt_prog_compiler_wl='-Wl,'
9297    lt_prog_compiler_static='-static'
9298
9299    case $host_os in
9300      aix*)
9301      # All AIX code is PIC.
9302      if test "$host_cpu" = ia64; then
9303	# AIX 5 now supports IA64 processor
9304	lt_prog_compiler_static='-Bstatic'
9305      fi
9306      ;;
9307
9308    amigaos*)
9309      case $host_cpu in
9310      powerpc)
9311            # see comment about AmigaOS4 .so support
9312            lt_prog_compiler_pic='-fPIC'
9313        ;;
9314      m68k)
9315            # FIXME: we need at least 68020 code to build shared libraries, but
9316            # adding the `-m68020' flag to GCC prevents building anything better,
9317            # like `-m68040'.
9318            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9319        ;;
9320      esac
9321      ;;
9322
9323    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9324      # PIC is the default for these OSes.
9325      ;;
9326
9327    mingw* | cygwin* | pw32* | os2* | cegcc*)
9328      # This hack is so that the source file can tell whether it is being
9329      # built for inclusion in a dll (and should export symbols for example).
9330      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9331      # (--disable-auto-import) libraries
9332      lt_prog_compiler_pic='-DDLL_EXPORT'
9333      ;;
9334
9335    darwin* | rhapsody*)
9336      # PIC is the default on this platform
9337      # Common symbols not allowed in MH_DYLIB files
9338      lt_prog_compiler_pic='-fno-common'
9339      ;;
9340
9341    hpux*)
9342      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9343      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9344      # sets the default TLS model and affects inlining.
9345      case $host_cpu in
9346      hppa*64*)
9347	# +Z the default
9348	;;
9349      *)
9350	lt_prog_compiler_pic='-fPIC'
9351	;;
9352      esac
9353      ;;
9354
9355    interix[3-9]*)
9356      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9357      # Instead, we relocate shared libraries at runtime.
9358      ;;
9359
9360    msdosdjgpp*)
9361      # Just because we use GCC doesn't mean we suddenly get shared libraries
9362      # on systems that don't support them.
9363      lt_prog_compiler_can_build_shared=no
9364      enable_shared=no
9365      ;;
9366
9367    *nto* | *qnx*)
9368      # QNX uses GNU C++, but need to define -shared option too, otherwise
9369      # it will coredump.
9370      lt_prog_compiler_pic='-fPIC -shared'
9371      ;;
9372
9373    sysv4*MP*)
9374      if test -d /usr/nec; then
9375	lt_prog_compiler_pic=-Kconform_pic
9376      fi
9377      ;;
9378
9379    *)
9380      lt_prog_compiler_pic='-fPIC'
9381      ;;
9382    esac
9383  else
9384    # PORTME Check for flag to pass linker flags through the system compiler.
9385    case $host_os in
9386    aix*)
9387      lt_prog_compiler_wl='-Wl,'
9388      if test "$host_cpu" = ia64; then
9389	# AIX 5 now supports IA64 processor
9390	lt_prog_compiler_static='-Bstatic'
9391      else
9392	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9393      fi
9394      ;;
9395
9396    mingw* | cygwin* | pw32* | os2* | cegcc*)
9397      # This hack is so that the source file can tell whether it is being
9398      # built for inclusion in a dll (and should export symbols for example).
9399      lt_prog_compiler_pic='-DDLL_EXPORT'
9400      ;;
9401
9402    hpux9* | hpux10* | hpux11*)
9403      lt_prog_compiler_wl='-Wl,'
9404      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9405      # not for PA HP-UX.
9406      case $host_cpu in
9407      hppa*64*|ia64*)
9408	# +Z the default
9409	;;
9410      *)
9411	lt_prog_compiler_pic='+Z'
9412	;;
9413      esac
9414      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9415      lt_prog_compiler_static='${wl}-a ${wl}archive'
9416      ;;
9417
9418    irix5* | irix6* | nonstopux*)
9419      lt_prog_compiler_wl='-Wl,'
9420      # PIC (with -KPIC) is the default.
9421      lt_prog_compiler_static='-non_shared'
9422      ;;
9423
9424    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9425      case $cc_basename in
9426      # old Intel for x86_64 which still supported -KPIC.
9427      ecc*)
9428	lt_prog_compiler_wl='-Wl,'
9429	lt_prog_compiler_pic='-KPIC'
9430	lt_prog_compiler_static='-static'
9431        ;;
9432      # icc used to be incompatible with GCC.
9433      # ICC 10 doesn't accept -KPIC any more.
9434      icc* | ifort*)
9435	lt_prog_compiler_wl='-Wl,'
9436	lt_prog_compiler_pic='-fPIC'
9437	lt_prog_compiler_static='-static'
9438        ;;
9439      # Lahey Fortran 8.1.
9440      lf95*)
9441	lt_prog_compiler_wl='-Wl,'
9442	lt_prog_compiler_pic='--shared'
9443	lt_prog_compiler_static='--static'
9444	;;
9445      pgcc* | pgf77* | pgf90* | pgf95*)
9446        # Portland Group compilers (*not* the Pentium gcc compiler,
9447	# which looks to be a dead project)
9448	lt_prog_compiler_wl='-Wl,'
9449	lt_prog_compiler_pic='-fpic'
9450	lt_prog_compiler_static='-Bstatic'
9451        ;;
9452      ccc*)
9453        lt_prog_compiler_wl='-Wl,'
9454        # All Alpha code is PIC.
9455        lt_prog_compiler_static='-non_shared'
9456        ;;
9457      xl*)
9458	# IBM XL C 8.0/Fortran 10.1 on PPC
9459	lt_prog_compiler_wl='-Wl,'
9460	lt_prog_compiler_pic='-qpic'
9461	lt_prog_compiler_static='-qstaticlink'
9462	;;
9463      *)
9464	case `$CC -V 2>&1 | sed 5q` in
9465	*Sun\ C*)
9466	  # Sun C 5.9
9467	  lt_prog_compiler_pic='-KPIC'
9468	  lt_prog_compiler_static='-Bstatic'
9469	  lt_prog_compiler_wl='-Wl,'
9470	  ;;
9471	*Sun\ F*)
9472	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9473	  lt_prog_compiler_pic='-KPIC'
9474	  lt_prog_compiler_static='-Bstatic'
9475	  lt_prog_compiler_wl=''
9476	  ;;
9477	esac
9478	;;
9479      esac
9480      ;;
9481
9482    newsos6)
9483      lt_prog_compiler_pic='-KPIC'
9484      lt_prog_compiler_static='-Bstatic'
9485      ;;
9486
9487    *nto* | *qnx*)
9488      # QNX uses GNU C++, but need to define -shared option too, otherwise
9489      # it will coredump.
9490      lt_prog_compiler_pic='-fPIC -shared'
9491      ;;
9492
9493    osf3* | osf4* | osf5*)
9494      lt_prog_compiler_wl='-Wl,'
9495      # All OSF/1 code is PIC.
9496      lt_prog_compiler_static='-non_shared'
9497      ;;
9498
9499    rdos*)
9500      lt_prog_compiler_static='-non_shared'
9501      ;;
9502
9503    solaris*)
9504      lt_prog_compiler_pic='-KPIC'
9505      lt_prog_compiler_static='-Bstatic'
9506      case $cc_basename in
9507      f77* | f90* | f95*)
9508	lt_prog_compiler_wl='-Qoption ld ';;
9509      *)
9510	lt_prog_compiler_wl='-Wl,';;
9511      esac
9512      ;;
9513
9514    sunos4*)
9515      lt_prog_compiler_wl='-Qoption ld '
9516      lt_prog_compiler_pic='-PIC'
9517      lt_prog_compiler_static='-Bstatic'
9518      ;;
9519
9520    sysv4 | sysv4.2uw2* | sysv4.3*)
9521      lt_prog_compiler_wl='-Wl,'
9522      lt_prog_compiler_pic='-KPIC'
9523      lt_prog_compiler_static='-Bstatic'
9524      ;;
9525
9526    sysv4*MP*)
9527      if test -d /usr/nec ;then
9528	lt_prog_compiler_pic='-Kconform_pic'
9529	lt_prog_compiler_static='-Bstatic'
9530      fi
9531      ;;
9532
9533    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9534      lt_prog_compiler_wl='-Wl,'
9535      lt_prog_compiler_pic='-KPIC'
9536      lt_prog_compiler_static='-Bstatic'
9537      ;;
9538
9539    unicos*)
9540      lt_prog_compiler_wl='-Wl,'
9541      lt_prog_compiler_can_build_shared=no
9542      ;;
9543
9544    uts4*)
9545      lt_prog_compiler_pic='-pic'
9546      lt_prog_compiler_static='-Bstatic'
9547      ;;
9548
9549    *)
9550      lt_prog_compiler_can_build_shared=no
9551      ;;
9552    esac
9553  fi
9554
9555case $host_os in
9556  # For platforms which do not support PIC, -DPIC is meaningless:
9557  *djgpp*)
9558    lt_prog_compiler_pic=
9559    ;;
9560  *)
9561    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9562    ;;
9563esac
9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9565$as_echo "$lt_prog_compiler_pic" >&6; }
9566
9567
9568
9569
9570
9571
9572#
9573# Check to make sure the PIC flag actually works.
9574#
9575if test -n "$lt_prog_compiler_pic"; then
9576  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9577$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9578if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9579  $as_echo_n "(cached) " >&6
9580else
9581  lt_cv_prog_compiler_pic_works=no
9582   ac_outfile=conftest.$ac_objext
9583   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9584   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9585   # Insert the option either (1) after the last *FLAGS variable, or
9586   # (2) before a word containing "conftest.", or (3) at the end.
9587   # Note that $ac_compile itself does not contain backslashes and begins
9588   # with a dollar sign (not a hyphen), so the echo should work correctly.
9589   # The option is referenced via a variable to avoid confusing sed.
9590   lt_compile=`echo "$ac_compile" | $SED \
9591   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9592   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9593   -e 's:$: $lt_compiler_flag:'`
9594   (eval echo "\"\$as_me:9594: $lt_compile\"" >&5)
9595   (eval "$lt_compile" 2>conftest.err)
9596   ac_status=$?
9597   cat conftest.err >&5
9598   echo "$as_me:9598: \$? = $ac_status" >&5
9599   if (exit $ac_status) && test -s "$ac_outfile"; then
9600     # The compiler can only warn and ignore the option if not recognized
9601     # So say no if there are warnings other than the usual output.
9602     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9603     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9604     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9605       lt_cv_prog_compiler_pic_works=yes
9606     fi
9607   fi
9608   $RM conftest*
9609
9610fi
9611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9612$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9613
9614if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9615    case $lt_prog_compiler_pic in
9616     "" | " "*) ;;
9617     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9618     esac
9619else
9620    lt_prog_compiler_pic=
9621     lt_prog_compiler_can_build_shared=no
9622fi
9623
9624fi
9625
9626
9627
9628
9629
9630
9631#
9632# Check to make sure the static flag actually works.
9633#
9634wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9636$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9637if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9638  $as_echo_n "(cached) " >&6
9639else
9640  lt_cv_prog_compiler_static_works=no
9641   save_LDFLAGS="$LDFLAGS"
9642   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9643   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9644   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9645     # The linker can only warn and ignore the option if not recognized
9646     # So say no if there are warnings
9647     if test -s conftest.err; then
9648       # Append any errors to the config.log.
9649       cat conftest.err 1>&5
9650       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9651       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9652       if diff conftest.exp conftest.er2 >/dev/null; then
9653         lt_cv_prog_compiler_static_works=yes
9654       fi
9655     else
9656       lt_cv_prog_compiler_static_works=yes
9657     fi
9658   fi
9659   $RM -r conftest*
9660   LDFLAGS="$save_LDFLAGS"
9661
9662fi
9663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9664$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9665
9666if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9667    :
9668else
9669    lt_prog_compiler_static=
9670fi
9671
9672
9673
9674
9675
9676
9677
9678  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9679$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9680if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  lt_cv_prog_compiler_c_o=no
9684   $RM -r conftest 2>/dev/null
9685   mkdir conftest
9686   cd conftest
9687   mkdir out
9688   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9689
9690   lt_compiler_flag="-o out/conftest2.$ac_objext"
9691   # Insert the option either (1) after the last *FLAGS variable, or
9692   # (2) before a word containing "conftest.", or (3) at the end.
9693   # Note that $ac_compile itself does not contain backslashes and begins
9694   # with a dollar sign (not a hyphen), so the echo should work correctly.
9695   lt_compile=`echo "$ac_compile" | $SED \
9696   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9697   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9698   -e 's:$: $lt_compiler_flag:'`
9699   (eval echo "\"\$as_me:9699: $lt_compile\"" >&5)
9700   (eval "$lt_compile" 2>out/conftest.err)
9701   ac_status=$?
9702   cat out/conftest.err >&5
9703   echo "$as_me:9703: \$? = $ac_status" >&5
9704   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9705   then
9706     # The compiler can only warn and ignore the option if not recognized
9707     # So say no if there are warnings
9708     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9709     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9710     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9711       lt_cv_prog_compiler_c_o=yes
9712     fi
9713   fi
9714   chmod u+w . 2>&5
9715   $RM conftest*
9716   # SGI C++ compiler will create directory out/ii_files/ for
9717   # template instantiation
9718   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9719   $RM out/* && rmdir out
9720   cd ..
9721   $RM -r conftest
9722   $RM conftest*
9723
9724fi
9725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9726$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9727
9728
9729
9730
9731
9732
9733  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9734$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9735if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9736  $as_echo_n "(cached) " >&6
9737else
9738  lt_cv_prog_compiler_c_o=no
9739   $RM -r conftest 2>/dev/null
9740   mkdir conftest
9741   cd conftest
9742   mkdir out
9743   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9744
9745   lt_compiler_flag="-o out/conftest2.$ac_objext"
9746   # Insert the option either (1) after the last *FLAGS variable, or
9747   # (2) before a word containing "conftest.", or (3) at the end.
9748   # Note that $ac_compile itself does not contain backslashes and begins
9749   # with a dollar sign (not a hyphen), so the echo should work correctly.
9750   lt_compile=`echo "$ac_compile" | $SED \
9751   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9752   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9753   -e 's:$: $lt_compiler_flag:'`
9754   (eval echo "\"\$as_me:9754: $lt_compile\"" >&5)
9755   (eval "$lt_compile" 2>out/conftest.err)
9756   ac_status=$?
9757   cat out/conftest.err >&5
9758   echo "$as_me:9758: \$? = $ac_status" >&5
9759   if (exit $ac_status) && test -s out/conftest2.$ac_objext
9760   then
9761     # The compiler can only warn and ignore the option if not recognized
9762     # So say no if there are warnings
9763     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9764     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9765     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9766       lt_cv_prog_compiler_c_o=yes
9767     fi
9768   fi
9769   chmod u+w . 2>&5
9770   $RM conftest*
9771   # SGI C++ compiler will create directory out/ii_files/ for
9772   # template instantiation
9773   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9774   $RM out/* && rmdir out
9775   cd ..
9776   $RM -r conftest
9777   $RM conftest*
9778
9779fi
9780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9781$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9782
9783
9784
9785
9786hard_links="nottested"
9787if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9788  # do not overwrite the value of need_locks provided by the user
9789  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9790$as_echo_n "checking if we can lock with hard links... " >&6; }
9791  hard_links=yes
9792  $RM conftest*
9793  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9794  touch conftest.a
9795  ln conftest.a conftest.b 2>&5 || hard_links=no
9796  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9798$as_echo "$hard_links" >&6; }
9799  if test "$hard_links" = no; then
9800    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9801$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9802    need_locks=warn
9803  fi
9804else
9805  need_locks=no
9806fi
9807
9808
9809
9810
9811
9812
9813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9814$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9815
9816  runpath_var=
9817  allow_undefined_flag=
9818  always_export_symbols=no
9819  archive_cmds=
9820  archive_expsym_cmds=
9821  compiler_needs_object=no
9822  enable_shared_with_static_runtimes=no
9823  export_dynamic_flag_spec=
9824  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9825  hardcode_automatic=no
9826  hardcode_direct=no
9827  hardcode_direct_absolute=no
9828  hardcode_libdir_flag_spec=
9829  hardcode_libdir_flag_spec_ld=
9830  hardcode_libdir_separator=
9831  hardcode_minus_L=no
9832  hardcode_shlibpath_var=unsupported
9833  inherit_rpath=no
9834  link_all_deplibs=unknown
9835  module_cmds=
9836  module_expsym_cmds=
9837  old_archive_from_new_cmds=
9838  old_archive_from_expsyms_cmds=
9839  thread_safe_flag_spec=
9840  whole_archive_flag_spec=
9841  # include_expsyms should be a list of space-separated symbols to be *always*
9842  # included in the symbol list
9843  include_expsyms=
9844  # exclude_expsyms can be an extended regexp of symbols to exclude
9845  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9846  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9847  # as well as any symbol that contains `d'.
9848  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9849  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9850  # platforms (ab)use it in PIC code, but their linkers get confused if
9851  # the symbol is explicitly referenced.  Since portable code cannot
9852  # rely on this symbol name, it's probably fine to never include it in
9853  # preloaded symbol tables.
9854  # Exclude shared library initialization/finalization symbols.
9855  extract_expsyms_cmds=
9856
9857  case $host_os in
9858  cygwin* | mingw* | pw32* | cegcc*)
9859    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9860    # When not using gcc, we currently assume that we are using
9861    # Microsoft Visual C++.
9862    if test "$GCC" != yes; then
9863      with_gnu_ld=no
9864    fi
9865    ;;
9866  interix*)
9867    # we just hope/assume this is gcc and not c89 (= MSVC++)
9868    with_gnu_ld=yes
9869    ;;
9870  openbsd*)
9871    with_gnu_ld=no
9872    ;;
9873  linux* | k*bsd*-gnu)
9874    link_all_deplibs=no
9875    ;;
9876  esac
9877
9878  ld_shlibs=yes
9879  if test "$with_gnu_ld" = yes; then
9880    # If archive_cmds runs LD, not CC, wlarc should be empty
9881    wlarc='${wl}'
9882
9883    # Set some defaults for GNU ld with shared library support. These
9884    # are reset later if shared libraries are not supported. Putting them
9885    # here allows them to be overridden if necessary.
9886    runpath_var=LD_RUN_PATH
9887    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9888    export_dynamic_flag_spec='${wl}--export-dynamic'
9889    # ancient GNU ld didn't support --whole-archive et. al.
9890    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9891      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9892    else
9893      whole_archive_flag_spec=
9894    fi
9895    supports_anon_versioning=no
9896    case `$LD -v 2>&1` in
9897      *GNU\ gold*) supports_anon_versioning=yes ;;
9898      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9899      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9900      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9901      *\ 2.11.*) ;; # other 2.11 versions
9902      *) supports_anon_versioning=yes ;;
9903    esac
9904
9905    # See if GNU ld supports shared libraries.
9906    case $host_os in
9907    aix[3-9]*)
9908      # On AIX/PPC, the GNU linker is very broken
9909      if test "$host_cpu" != ia64; then
9910	ld_shlibs=no
9911	cat <<_LT_EOF 1>&2
9912
9913*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9914*** to be unable to reliably create shared libraries on AIX.
9915*** Therefore, libtool is disabling shared libraries support.  If you
9916*** really care for shared libraries, you may want to modify your PATH
9917*** so that a non-GNU linker is found, and then restart.
9918
9919_LT_EOF
9920      fi
9921      ;;
9922
9923    amigaos*)
9924      case $host_cpu in
9925      powerpc)
9926            # see comment about AmigaOS4 .so support
9927            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9928            archive_expsym_cmds=''
9929        ;;
9930      m68k)
9931            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)'
9932            hardcode_libdir_flag_spec='-L$libdir'
9933            hardcode_minus_L=yes
9934        ;;
9935      esac
9936      ;;
9937
9938    beos*)
9939      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9940	allow_undefined_flag=unsupported
9941	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9942	# support --undefined.  This deserves some investigation.  FIXME
9943	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9944      else
9945	ld_shlibs=no
9946      fi
9947      ;;
9948
9949    cygwin* | mingw* | pw32* | cegcc*)
9950      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9951      # as there is no search path for DLLs.
9952      hardcode_libdir_flag_spec='-L$libdir'
9953      allow_undefined_flag=unsupported
9954      always_export_symbols=no
9955      enable_shared_with_static_runtimes=yes
9956      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9957
9958      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9959        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9960	# If the export-symbols file already is a .def file (1st line
9961	# is EXPORTS), use it as is; otherwise, prepend...
9962	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9963	  cp $export_symbols $output_objdir/$soname.def;
9964	else
9965	  echo EXPORTS > $output_objdir/$soname.def;
9966	  cat $export_symbols >> $output_objdir/$soname.def;
9967	fi~
9968	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9969      else
9970	ld_shlibs=no
9971      fi
9972      ;;
9973
9974    interix[3-9]*)
9975      hardcode_direct=no
9976      hardcode_shlibpath_var=no
9977      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9978      export_dynamic_flag_spec='${wl}-E'
9979      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9980      # Instead, shared libraries are loaded at an image base (0x10000000 by
9981      # default) and relocated if they conflict, which is a slow very memory
9982      # consuming and fragmenting process.  To avoid this, we pick a random,
9983      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9984      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9985      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9986      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'
9987      ;;
9988
9989    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9990      tmp_diet=no
9991      if test "$host_os" = linux-dietlibc; then
9992	case $cc_basename in
9993	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9994	esac
9995      fi
9996      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9997	 && test "$tmp_diet" = no
9998      then
9999	tmp_addflag=
10000	tmp_sharedflag='-shared'
10001	case $cc_basename,$host_cpu in
10002        pgcc*)				# Portland Group C compiler
10003	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10004	  tmp_addflag=' $pic_flag'
10005	  ;;
10006	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
10007	  whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10008	  tmp_addflag=' $pic_flag -Mnomain' ;;
10009	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10010	  tmp_addflag=' -i_dynamic' ;;
10011	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10012	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10013	ifc* | ifort*)			# Intel Fortran compiler
10014	  tmp_addflag=' -nofor_main' ;;
10015	lf95*)				# Lahey Fortran 8.1
10016	  whole_archive_flag_spec=
10017	  tmp_sharedflag='--shared' ;;
10018	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
10019	  tmp_sharedflag='-qmkshrobj'
10020	  tmp_addflag= ;;
10021	esac
10022	case `$CC -V 2>&1 | sed 5q` in
10023	*Sun\ C*)			# Sun C 5.9
10024	  whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10025	  compiler_needs_object=yes
10026	  tmp_sharedflag='-G' ;;
10027	*Sun\ F*)			# Sun Fortran 8.3
10028	  tmp_sharedflag='-G' ;;
10029	esac
10030	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10031
10032        if test "x$supports_anon_versioning" = xyes; then
10033          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10034	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10035	    echo "local: *; };" >> $output_objdir/$libname.ver~
10036	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10037        fi
10038
10039	case $cc_basename in
10040	xlf*)
10041	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10042	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10043	  hardcode_libdir_flag_spec=
10044	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10045	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10046	  if test "x$supports_anon_versioning" = xyes; then
10047	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10048	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10049	      echo "local: *; };" >> $output_objdir/$libname.ver~
10050	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10051	  fi
10052	  ;;
10053	esac
10054      else
10055        ld_shlibs=no
10056      fi
10057      ;;
10058
10059    netbsd* | netbsdelf*-gnu)
10060      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10061	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10062	wlarc=
10063      else
10064	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10065	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10066      fi
10067      ;;
10068
10069    solaris*)
10070      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10071	ld_shlibs=no
10072	cat <<_LT_EOF 1>&2
10073
10074*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10075*** create shared libraries on Solaris systems.  Therefore, libtool
10076*** is disabling shared libraries support.  We urge you to upgrade GNU
10077*** binutils to release 2.9.1 or newer.  Another option is to modify
10078*** your PATH or compiler configuration so that the native linker is
10079*** used, and then restart.
10080
10081_LT_EOF
10082      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10083	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10084	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10085      else
10086	ld_shlibs=no
10087      fi
10088      ;;
10089
10090    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10091      case `$LD -v 2>&1` in
10092        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10093	ld_shlibs=no
10094	cat <<_LT_EOF 1>&2
10095
10096*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10097*** reliably create shared libraries on SCO systems.  Therefore, libtool
10098*** is disabling shared libraries support.  We urge you to upgrade GNU
10099*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10100*** your PATH or compiler configuration so that the native linker is
10101*** used, and then restart.
10102
10103_LT_EOF
10104	;;
10105	*)
10106	  # For security reasons, it is highly recommended that you always
10107	  # use absolute paths for naming shared libraries, and exclude the
10108	  # DT_RUNPATH tag from executables and libraries.  But doing so
10109	  # requires that you compile everything twice, which is a pain.
10110	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10111	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10112	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10113	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10114	  else
10115	    ld_shlibs=no
10116	  fi
10117	;;
10118      esac
10119      ;;
10120
10121    sunos4*)
10122      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10123      wlarc=
10124      hardcode_direct=yes
10125      hardcode_shlibpath_var=no
10126      ;;
10127
10128    *)
10129      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10130	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10131	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10132      else
10133	ld_shlibs=no
10134      fi
10135      ;;
10136    esac
10137
10138    if test "$ld_shlibs" = no; then
10139      runpath_var=
10140      hardcode_libdir_flag_spec=
10141      export_dynamic_flag_spec=
10142      whole_archive_flag_spec=
10143    fi
10144  else
10145    # PORTME fill in a description of your system's linker (not GNU ld)
10146    case $host_os in
10147    aix3*)
10148      allow_undefined_flag=unsupported
10149      always_export_symbols=yes
10150      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'
10151      # Note: this linker hardcodes the directories in LIBPATH if there
10152      # are no directories specified by -L.
10153      hardcode_minus_L=yes
10154      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10155	# Neither direct hardcoding nor static linking is supported with a
10156	# broken collect2.
10157	hardcode_direct=unsupported
10158      fi
10159      ;;
10160
10161    aix[4-9]*)
10162      if test "$host_cpu" = ia64; then
10163	# On IA64, the linker does run time linking by default, so we don't
10164	# have to do anything special.
10165	aix_use_runtimelinking=no
10166	exp_sym_flag='-Bexport'
10167	no_entry_flag=""
10168      else
10169	# If we're using GNU nm, then we don't want the "-C" option.
10170	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10171	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10172	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10173	else
10174	  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'
10175	fi
10176	aix_use_runtimelinking=no
10177
10178	# Test if we are trying to use run time linking or normal
10179	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10180	# need to do runtime linking.
10181	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10182	  for ld_flag in $LDFLAGS; do
10183	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10184	    aix_use_runtimelinking=yes
10185	    break
10186	  fi
10187	  done
10188	  ;;
10189	esac
10190
10191	exp_sym_flag='-bexport'
10192	no_entry_flag='-bnoentry'
10193      fi
10194
10195      # When large executables or shared objects are built, AIX ld can
10196      # have problems creating the table of contents.  If linking a library
10197      # or program results in "error TOC overflow" add -mminimal-toc to
10198      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10199      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10200
10201      archive_cmds=''
10202      hardcode_direct=yes
10203      hardcode_direct_absolute=yes
10204      hardcode_libdir_separator=':'
10205      link_all_deplibs=yes
10206      file_list_spec='${wl}-f,'
10207
10208      if test "$GCC" = yes; then
10209	case $host_os in aix4.[012]|aix4.[012].*)
10210	# We only want to do this on AIX 4.2 and lower, the check
10211	# below for broken collect2 doesn't work under 4.3+
10212	  collect2name=`${CC} -print-prog-name=collect2`
10213	  if test -f "$collect2name" &&
10214	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10215	  then
10216	  # We have reworked collect2
10217	  :
10218	  else
10219	  # We have old collect2
10220	  hardcode_direct=unsupported
10221	  # It fails to find uninstalled libraries when the uninstalled
10222	  # path is not listed in the libpath.  Setting hardcode_minus_L
10223	  # to unsupported forces relinking
10224	  hardcode_minus_L=yes
10225	  hardcode_libdir_flag_spec='-L$libdir'
10226	  hardcode_libdir_separator=
10227	  fi
10228	  ;;
10229	esac
10230	shared_flag='-shared'
10231	if test "$aix_use_runtimelinking" = yes; then
10232	  shared_flag="$shared_flag "'${wl}-G'
10233	fi
10234	link_all_deplibs=no
10235      else
10236	# not using gcc
10237	if test "$host_cpu" = ia64; then
10238	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10239	# chokes on -Wl,-G. The following line is correct:
10240	  shared_flag='-G'
10241	else
10242	  if test "$aix_use_runtimelinking" = yes; then
10243	    shared_flag='${wl}-G'
10244	  else
10245	    shared_flag='${wl}-bM:SRE'
10246	  fi
10247	fi
10248      fi
10249
10250      export_dynamic_flag_spec='${wl}-bexpall'
10251      # It seems that -bexpall does not export symbols beginning with
10252      # underscore (_), so it is better to generate a list of symbols to export.
10253      always_export_symbols=yes
10254      if test "$aix_use_runtimelinking" = yes; then
10255	# Warning - without using the other runtime loading flags (-brtl),
10256	# -berok will link without error, but may produce a broken library.
10257	allow_undefined_flag='-berok'
10258        # Determine the default libpath from the value encoded in an
10259        # empty executable.
10260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10261/* end confdefs.h.  */
10262
10263int
10264main ()
10265{
10266
10267  ;
10268  return 0;
10269}
10270_ACEOF
10271if ac_fn_c_try_link "$LINENO"; then :
10272
10273lt_aix_libpath_sed='
10274    /Import File Strings/,/^$/ {
10275	/^0/ {
10276	    s/^0  *\(.*\)$/\1/
10277	    p
10278	}
10279    }'
10280aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281# Check for a 64-bit object if we didn't find anything.
10282if test -z "$aix_libpath"; then
10283  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10284fi
10285fi
10286rm -f core conftest.err conftest.$ac_objext \
10287    conftest$ac_exeext conftest.$ac_ext
10288if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10289
10290        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10291        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10292      else
10293	if test "$host_cpu" = ia64; then
10294	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10295	  allow_undefined_flag="-z nodefs"
10296	  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"
10297	else
10298	 # Determine the default libpath from the value encoded in an
10299	 # empty executable.
10300	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301/* end confdefs.h.  */
10302
10303int
10304main ()
10305{
10306
10307  ;
10308  return 0;
10309}
10310_ACEOF
10311if ac_fn_c_try_link "$LINENO"; then :
10312
10313lt_aix_libpath_sed='
10314    /Import File Strings/,/^$/ {
10315	/^0/ {
10316	    s/^0  *\(.*\)$/\1/
10317	    p
10318	}
10319    }'
10320aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10321# Check for a 64-bit object if we didn't find anything.
10322if test -z "$aix_libpath"; then
10323  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10324fi
10325fi
10326rm -f core conftest.err conftest.$ac_objext \
10327    conftest$ac_exeext conftest.$ac_ext
10328if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10329
10330	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10331	  # Warning - without using the other run time loading flags,
10332	  # -berok will link without error, but may produce a broken library.
10333	  no_undefined_flag=' ${wl}-bernotok'
10334	  allow_undefined_flag=' ${wl}-berok'
10335	  # Exported symbols can be pulled into shared objects from archives
10336	  whole_archive_flag_spec='$convenience'
10337	  archive_cmds_need_lc=yes
10338	  # This is similar to how AIX traditionally builds its shared libraries.
10339	  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'
10340	fi
10341      fi
10342      ;;
10343
10344    amigaos*)
10345      case $host_cpu in
10346      powerpc)
10347            # see comment about AmigaOS4 .so support
10348            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10349            archive_expsym_cmds=''
10350        ;;
10351      m68k)
10352            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)'
10353            hardcode_libdir_flag_spec='-L$libdir'
10354            hardcode_minus_L=yes
10355        ;;
10356      esac
10357      ;;
10358
10359    bsdi[45]*)
10360      export_dynamic_flag_spec=-rdynamic
10361      ;;
10362
10363    cygwin* | mingw* | pw32* | cegcc*)
10364      # When not using gcc, we currently assume that we are using
10365      # Microsoft Visual C++.
10366      # hardcode_libdir_flag_spec is actually meaningless, as there is
10367      # no search path for DLLs.
10368      hardcode_libdir_flag_spec=' '
10369      allow_undefined_flag=unsupported
10370      # Tell ltmain to make .lib files, not .a files.
10371      libext=lib
10372      # Tell ltmain to make .dll files, not .so files.
10373      shrext_cmds=".dll"
10374      # FIXME: Setting linknames here is a bad hack.
10375      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10376      # The linker will automatically build a .lib file if we build a DLL.
10377      old_archive_from_new_cmds='true'
10378      # FIXME: Should let the user specify the lib program.
10379      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10380      fix_srcfile_path='`cygpath -w "$srcfile"`'
10381      enable_shared_with_static_runtimes=yes
10382      ;;
10383
10384    darwin* | rhapsody*)
10385
10386
10387  archive_cmds_need_lc=no
10388  hardcode_direct=no
10389  hardcode_automatic=yes
10390  hardcode_shlibpath_var=unsupported
10391  whole_archive_flag_spec=''
10392  link_all_deplibs=yes
10393  allow_undefined_flag="$_lt_dar_allow_undefined"
10394  case $cc_basename in
10395     ifort*) _lt_dar_can_shared=yes ;;
10396     *) _lt_dar_can_shared=$GCC ;;
10397  esac
10398  if test "$_lt_dar_can_shared" = "yes"; then
10399    output_verbose_link_cmd=echo
10400    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10401    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10402    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}"
10403    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}"
10404
10405  else
10406  ld_shlibs=no
10407  fi
10408
10409      ;;
10410
10411    dgux*)
10412      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10413      hardcode_libdir_flag_spec='-L$libdir'
10414      hardcode_shlibpath_var=no
10415      ;;
10416
10417    freebsd1*)
10418      ld_shlibs=no
10419      ;;
10420
10421    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10422    # support.  Future versions do this automatically, but an explicit c++rt0.o
10423    # does not break anything, and helps significantly (at the cost of a little
10424    # extra space).
10425    freebsd2.2*)
10426      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10427      hardcode_libdir_flag_spec='-R$libdir'
10428      hardcode_direct=yes
10429      hardcode_shlibpath_var=no
10430      ;;
10431
10432    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10433    freebsd2*)
10434      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10435      hardcode_direct=yes
10436      hardcode_minus_L=yes
10437      hardcode_shlibpath_var=no
10438      ;;
10439
10440    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10441    freebsd* | dragonfly*)
10442      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10443      hardcode_libdir_flag_spec='-R$libdir'
10444      hardcode_direct=yes
10445      hardcode_shlibpath_var=no
10446      ;;
10447
10448    hpux9*)
10449      if test "$GCC" = yes; then
10450	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'
10451      else
10452	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'
10453      fi
10454      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10455      hardcode_libdir_separator=:
10456      hardcode_direct=yes
10457
10458      # hardcode_minus_L: Not really in the search PATH,
10459      # but as the default location of the library.
10460      hardcode_minus_L=yes
10461      export_dynamic_flag_spec='${wl}-E'
10462      ;;
10463
10464    hpux10*)
10465      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10466	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10467      else
10468	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10469      fi
10470      if test "$with_gnu_ld" = no; then
10471	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10472	hardcode_libdir_flag_spec_ld='+b $libdir'
10473	hardcode_libdir_separator=:
10474	hardcode_direct=yes
10475	hardcode_direct_absolute=yes
10476	export_dynamic_flag_spec='${wl}-E'
10477	# hardcode_minus_L: Not really in the search PATH,
10478	# but as the default location of the library.
10479	hardcode_minus_L=yes
10480      fi
10481      ;;
10482
10483    hpux11*)
10484      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10485	case $host_cpu in
10486	hppa*64*)
10487	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10488	  ;;
10489	ia64*)
10490	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10491	  ;;
10492	*)
10493	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10494	  ;;
10495	esac
10496      else
10497	case $host_cpu in
10498	hppa*64*)
10499	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10500	  ;;
10501	ia64*)
10502	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10503	  ;;
10504	*)
10505	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10506	  ;;
10507	esac
10508      fi
10509      if test "$with_gnu_ld" = no; then
10510	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10511	hardcode_libdir_separator=:
10512
10513	case $host_cpu in
10514	hppa*64*|ia64*)
10515	  hardcode_direct=no
10516	  hardcode_shlibpath_var=no
10517	  ;;
10518	*)
10519	  hardcode_direct=yes
10520	  hardcode_direct_absolute=yes
10521	  export_dynamic_flag_spec='${wl}-E'
10522
10523	  # hardcode_minus_L: Not really in the search PATH,
10524	  # but as the default location of the library.
10525	  hardcode_minus_L=yes
10526	  ;;
10527	esac
10528      fi
10529      ;;
10530
10531    irix5* | irix6* | nonstopux*)
10532      if test "$GCC" = yes; then
10533	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10534	# Try to use the -exported_symbol ld option, if it does not
10535	# work, assume that -exports_file does not work either and
10536	# implicitly export all symbols.
10537        save_LDFLAGS="$LDFLAGS"
10538        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10539        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10540/* end confdefs.h.  */
10541int foo(void) {}
10542_ACEOF
10543if ac_fn_c_try_link "$LINENO"; then :
10544  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10545
10546fi
10547rm -f core conftest.err conftest.$ac_objext \
10548    conftest$ac_exeext conftest.$ac_ext
10549        LDFLAGS="$save_LDFLAGS"
10550      else
10551	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10552	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10553      fi
10554      archive_cmds_need_lc='no'
10555      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10556      hardcode_libdir_separator=:
10557      inherit_rpath=yes
10558      link_all_deplibs=yes
10559      ;;
10560
10561    netbsd* | netbsdelf*-gnu)
10562      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10563	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10564      else
10565	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10566      fi
10567      hardcode_libdir_flag_spec='-R$libdir'
10568      hardcode_direct=yes
10569      hardcode_shlibpath_var=no
10570      ;;
10571
10572    newsos6)
10573      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10574      hardcode_direct=yes
10575      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10576      hardcode_libdir_separator=:
10577      hardcode_shlibpath_var=no
10578      ;;
10579
10580    *nto* | *qnx*)
10581      ;;
10582
10583    openbsd*)
10584      if test -f /usr/libexec/ld.so; then
10585	hardcode_direct=yes
10586	hardcode_shlibpath_var=no
10587	hardcode_direct_absolute=yes
10588	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10589	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10590	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10591	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10592	  export_dynamic_flag_spec='${wl}-E'
10593	else
10594	  case $host_os in
10595	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10596	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10597	     hardcode_libdir_flag_spec='-R$libdir'
10598	     ;;
10599	   *)
10600	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10601	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10602	     ;;
10603	  esac
10604	fi
10605      else
10606	ld_shlibs=no
10607      fi
10608      ;;
10609
10610    os2*)
10611      hardcode_libdir_flag_spec='-L$libdir'
10612      hardcode_minus_L=yes
10613      allow_undefined_flag=unsupported
10614      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'
10615      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10616      ;;
10617
10618    osf3*)
10619      if test "$GCC" = yes; then
10620	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10621	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10622      else
10623	allow_undefined_flag=' -expect_unresolved \*'
10624	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10625      fi
10626      archive_cmds_need_lc='no'
10627      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10628      hardcode_libdir_separator=:
10629      ;;
10630
10631    osf4* | osf5*)	# as osf3* with the addition of -msym flag
10632      if test "$GCC" = yes; then
10633	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10634	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10635	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10636      else
10637	allow_undefined_flag=' -expect_unresolved \*'
10638	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10639	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~
10640	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10641
10642	# Both c and cxx compiler support -rpath directly
10643	hardcode_libdir_flag_spec='-rpath $libdir'
10644      fi
10645      archive_cmds_need_lc='no'
10646      hardcode_libdir_separator=:
10647      ;;
10648
10649    solaris*)
10650      no_undefined_flag=' -z defs'
10651      if test "$GCC" = yes; then
10652	wlarc='${wl}'
10653	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10654	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10655	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10656      else
10657	case `$CC -V 2>&1` in
10658	*"Compilers 5.0"*)
10659	  wlarc=''
10660	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10661	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10662	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10663	  ;;
10664	*)
10665	  wlarc='${wl}'
10666	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10667	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10668	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10669	  ;;
10670	esac
10671      fi
10672      hardcode_libdir_flag_spec='-R$libdir'
10673      hardcode_shlibpath_var=no
10674      case $host_os in
10675      solaris2.[0-5] | solaris2.[0-5].*) ;;
10676      *)
10677	# The compiler driver will combine and reorder linker options,
10678	# but understands `-z linker_flag'.  GCC discards it without `$wl',
10679	# but is careful enough not to reorder.
10680	# Supported since Solaris 2.6 (maybe 2.5.1?)
10681	if test "$GCC" = yes; then
10682	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10683	else
10684	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10685	fi
10686	;;
10687      esac
10688      link_all_deplibs=yes
10689      ;;
10690
10691    sunos4*)
10692      if test "x$host_vendor" = xsequent; then
10693	# Use $CC to link under sequent, because it throws in some extra .o
10694	# files that make .init and .fini sections work.
10695	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10696      else
10697	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10698      fi
10699      hardcode_libdir_flag_spec='-L$libdir'
10700      hardcode_direct=yes
10701      hardcode_minus_L=yes
10702      hardcode_shlibpath_var=no
10703      ;;
10704
10705    sysv4)
10706      case $host_vendor in
10707	sni)
10708	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10709	  hardcode_direct=yes # is this really true???
10710	;;
10711	siemens)
10712	  ## LD is ld it makes a PLAMLIB
10713	  ## CC just makes a GrossModule.
10714	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10715	  reload_cmds='$CC -r -o $output$reload_objs'
10716	  hardcode_direct=no
10717        ;;
10718	motorola)
10719	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10720	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10721	;;
10722      esac
10723      runpath_var='LD_RUN_PATH'
10724      hardcode_shlibpath_var=no
10725      ;;
10726
10727    sysv4.3*)
10728      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10729      hardcode_shlibpath_var=no
10730      export_dynamic_flag_spec='-Bexport'
10731      ;;
10732
10733    sysv4*MP*)
10734      if test -d /usr/nec; then
10735	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10736	hardcode_shlibpath_var=no
10737	runpath_var=LD_RUN_PATH
10738	hardcode_runpath_var=yes
10739	ld_shlibs=yes
10740      fi
10741      ;;
10742
10743    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10744      no_undefined_flag='${wl}-z,text'
10745      archive_cmds_need_lc=no
10746      hardcode_shlibpath_var=no
10747      runpath_var='LD_RUN_PATH'
10748
10749      if test "$GCC" = yes; then
10750	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10751	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10752      else
10753	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10754	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10755      fi
10756      ;;
10757
10758    sysv5* | sco3.2v5* | sco5v6*)
10759      # Note: We can NOT use -z defs as we might desire, because we do not
10760      # link with -lc, and that would cause any symbols used from libc to
10761      # always be unresolved, which means just about no library would
10762      # ever link correctly.  If we're not using GNU ld we use -z text
10763      # though, which does catch some bad symbols but isn't as heavy-handed
10764      # as -z defs.
10765      no_undefined_flag='${wl}-z,text'
10766      allow_undefined_flag='${wl}-z,nodefs'
10767      archive_cmds_need_lc=no
10768      hardcode_shlibpath_var=no
10769      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10770      hardcode_libdir_separator=':'
10771      link_all_deplibs=yes
10772      export_dynamic_flag_spec='${wl}-Bexport'
10773      runpath_var='LD_RUN_PATH'
10774
10775      if test "$GCC" = yes; then
10776	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10778      else
10779	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10780	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10781      fi
10782      ;;
10783
10784    uts4*)
10785      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10786      hardcode_libdir_flag_spec='-L$libdir'
10787      hardcode_shlibpath_var=no
10788      ;;
10789
10790    *)
10791      ld_shlibs=no
10792      ;;
10793    esac
10794
10795    if test x$host_vendor = xsni; then
10796      case $host in
10797      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10798	export_dynamic_flag_spec='${wl}-Blargedynsym'
10799	;;
10800      esac
10801    fi
10802  fi
10803
10804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10805$as_echo "$ld_shlibs" >&6; }
10806test "$ld_shlibs" = no && can_build_shared=no
10807
10808with_gnu_ld=$with_gnu_ld
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824#
10825# Do we need to explicitly link libc?
10826#
10827case "x$archive_cmds_need_lc" in
10828x|xyes)
10829  # Assume -lc should be added
10830  archive_cmds_need_lc=yes
10831
10832  if test "$enable_shared" = yes && test "$GCC" = yes; then
10833    case $archive_cmds in
10834    *'~'*)
10835      # FIXME: we may have to deal with multi-command sequences.
10836      ;;
10837    '$CC '*)
10838      # Test whether the compiler implicitly links with -lc since on some
10839      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10840      # to ld, don't add -lc before -lgcc.
10841      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10842$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10843      $RM conftest*
10844      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10845
10846      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10847  (eval $ac_compile) 2>&5
10848  ac_status=$?
10849  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10850  test $ac_status = 0; } 2>conftest.err; then
10851        soname=conftest
10852        lib=conftest
10853        libobjs=conftest.$ac_objext
10854        deplibs=
10855        wl=$lt_prog_compiler_wl
10856	pic_flag=$lt_prog_compiler_pic
10857        compiler_flags=-v
10858        linker_flags=-v
10859        verstring=
10860        output_objdir=.
10861        libname=conftest
10862        lt_save_allow_undefined_flag=$allow_undefined_flag
10863        allow_undefined_flag=
10864        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10865  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10866  ac_status=$?
10867  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10868  test $ac_status = 0; }
10869        then
10870	  archive_cmds_need_lc=no
10871        else
10872	  archive_cmds_need_lc=yes
10873        fi
10874        allow_undefined_flag=$lt_save_allow_undefined_flag
10875      else
10876        cat conftest.err 1>&5
10877      fi
10878      $RM conftest*
10879      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10880$as_echo "$archive_cmds_need_lc" >&6; }
10881      ;;
10882    esac
10883  fi
10884  ;;
10885esac
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11044$as_echo_n "checking dynamic linker characteristics... " >&6; }
11045
11046if test "$GCC" = yes; then
11047  case $host_os in
11048    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11049    *) lt_awk_arg="/^libraries:/" ;;
11050  esac
11051  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11052  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11053    # if the path contains ";" then we assume it to be the separator
11054    # otherwise default to the standard path separator (i.e. ":") - it is
11055    # assumed that no part of a normal pathname contains ";" but that should
11056    # okay in the real world where ";" in dirpaths is itself problematic.
11057    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11058  else
11059    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11060  fi
11061  # Ok, now we have the path, separated by spaces, we can step through it
11062  # and add multilib dir if necessary.
11063  lt_tmp_lt_search_path_spec=
11064  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11065  for lt_sys_path in $lt_search_path_spec; do
11066    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11067      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11068    else
11069      test -d "$lt_sys_path" && \
11070	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11071    fi
11072  done
11073  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11074BEGIN {RS=" "; FS="/|\n";} {
11075  lt_foo="";
11076  lt_count=0;
11077  for (lt_i = NF; lt_i > 0; lt_i--) {
11078    if ($lt_i != "" && $lt_i != ".") {
11079      if ($lt_i == "..") {
11080        lt_count++;
11081      } else {
11082        if (lt_count == 0) {
11083          lt_foo="/" $lt_i lt_foo;
11084        } else {
11085          lt_count--;
11086        }
11087      }
11088    }
11089  }
11090  if (lt_foo != "") { lt_freq[lt_foo]++; }
11091  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11092}'`
11093  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11094else
11095  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11096fi
11097library_names_spec=
11098libname_spec='lib$name'
11099soname_spec=
11100shrext_cmds=".so"
11101postinstall_cmds=
11102postuninstall_cmds=
11103finish_cmds=
11104finish_eval=
11105shlibpath_var=
11106shlibpath_overrides_runpath=unknown
11107version_type=none
11108dynamic_linker="$host_os ld.so"
11109sys_lib_dlsearch_path_spec="/lib /usr/lib"
11110need_lib_prefix=unknown
11111hardcode_into_libs=no
11112
11113# when you set need_version to no, make sure it does not cause -set_version
11114# flags to be left without arguments
11115need_version=unknown
11116
11117case $host_os in
11118aix3*)
11119  version_type=linux
11120  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11121  shlibpath_var=LIBPATH
11122
11123  # AIX 3 has no versioning support, so we append a major version to the name.
11124  soname_spec='${libname}${release}${shared_ext}$major'
11125  ;;
11126
11127aix[4-9]*)
11128  version_type=linux
11129  need_lib_prefix=no
11130  need_version=no
11131  hardcode_into_libs=yes
11132  if test "$host_cpu" = ia64; then
11133    # AIX 5 supports IA64
11134    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11135    shlibpath_var=LD_LIBRARY_PATH
11136  else
11137    # With GCC up to 2.95.x, collect2 would create an import file
11138    # for dependence libraries.  The import file would start with
11139    # the line `#! .'.  This would cause the generated library to
11140    # depend on `.', always an invalid library.  This was fixed in
11141    # development snapshots of GCC prior to 3.0.
11142    case $host_os in
11143      aix4 | aix4.[01] | aix4.[01].*)
11144      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11145	   echo ' yes '
11146	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11147	:
11148      else
11149	can_build_shared=no
11150      fi
11151      ;;
11152    esac
11153    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11154    # soname into executable. Probably we can add versioning support to
11155    # collect2, so additional links can be useful in future.
11156    if test "$aix_use_runtimelinking" = yes; then
11157      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11158      # instead of lib<name>.a to let people know that these are not
11159      # typical AIX shared libraries.
11160      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161    else
11162      # We preserve .a as extension for shared libraries through AIX4.2
11163      # and later when we are not doing run time linking.
11164      library_names_spec='${libname}${release}.a $libname.a'
11165      soname_spec='${libname}${release}${shared_ext}$major'
11166    fi
11167    shlibpath_var=LIBPATH
11168  fi
11169  ;;
11170
11171amigaos*)
11172  case $host_cpu in
11173  powerpc)
11174    # Since July 2007 AmigaOS4 officially supports .so libraries.
11175    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11176    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11177    ;;
11178  m68k)
11179    library_names_spec='$libname.ixlibrary $libname.a'
11180    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11181    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11182    ;;
11183  esac
11184  ;;
11185
11186beos*)
11187  library_names_spec='${libname}${shared_ext}'
11188  dynamic_linker="$host_os ld.so"
11189  shlibpath_var=LIBRARY_PATH
11190  ;;
11191
11192bsdi[45]*)
11193  version_type=linux
11194  need_version=no
11195  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11196  soname_spec='${libname}${release}${shared_ext}$major'
11197  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11198  shlibpath_var=LD_LIBRARY_PATH
11199  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11200  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11201  # the default ld.so.conf also contains /usr/contrib/lib and
11202  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11203  # libtool to hard-code these into programs
11204  ;;
11205
11206cygwin* | mingw* | pw32* | cegcc*)
11207  version_type=windows
11208  shrext_cmds=".dll"
11209  need_version=no
11210  need_lib_prefix=no
11211
11212  case $GCC,$host_os in
11213  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11214    library_names_spec='$libname.dll.a'
11215    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11216    postinstall_cmds='base_file=`basename \${file}`~
11217      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11218      dldir=$destdir/`dirname \$dlpath`~
11219      test -d \$dldir || mkdir -p \$dldir~
11220      $install_prog $dir/$dlname \$dldir/$dlname~
11221      chmod a+x \$dldir/$dlname~
11222      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11223        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11224      fi'
11225    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11226      dlpath=$dir/\$dldll~
11227       $RM \$dlpath'
11228    shlibpath_overrides_runpath=yes
11229
11230    case $host_os in
11231    cygwin*)
11232      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11233      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11234      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11235      ;;
11236    mingw* | cegcc*)
11237      # MinGW DLLs use traditional 'lib' prefix
11238      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11239      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11240      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11241        # It is most probably a Windows format PATH printed by
11242        # mingw gcc, but we are running on Cygwin. Gcc prints its search
11243        # path with ; separators, and with drive letters. We can handle the
11244        # drive letters (cygwin fileutils understands them), so leave them,
11245        # especially as we might pass files found there to a mingw objdump,
11246        # which wouldn't understand a cygwinified path. Ahh.
11247        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11248      else
11249        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11250      fi
11251      ;;
11252    pw32*)
11253      # pw32 DLLs use 'pw' prefix rather than 'lib'
11254      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11255      ;;
11256    esac
11257    ;;
11258
11259  *)
11260    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11261    ;;
11262  esac
11263  dynamic_linker='Win32 ld.exe'
11264  # FIXME: first we should search . and the directory the executable is in
11265  shlibpath_var=PATH
11266  ;;
11267
11268darwin* | rhapsody*)
11269  dynamic_linker="$host_os dyld"
11270  version_type=darwin
11271  need_lib_prefix=no
11272  need_version=no
11273  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11274  soname_spec='${libname}${release}${major}$shared_ext'
11275  shlibpath_overrides_runpath=yes
11276  shlibpath_var=DYLD_LIBRARY_PATH
11277  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11278
11279  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11280  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11281  ;;
11282
11283dgux*)
11284  version_type=linux
11285  need_lib_prefix=no
11286  need_version=no
11287  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11288  soname_spec='${libname}${release}${shared_ext}$major'
11289  shlibpath_var=LD_LIBRARY_PATH
11290  ;;
11291
11292freebsd1*)
11293  dynamic_linker=no
11294  ;;
11295
11296freebsd* | dragonfly*)
11297  # DragonFly does not have aout.  When/if they implement a new
11298  # versioning mechanism, adjust this.
11299  if test -x /usr/bin/objformat; then
11300    objformat=`/usr/bin/objformat`
11301  else
11302    case $host_os in
11303    freebsd[123]*) objformat=aout ;;
11304    *) objformat=elf ;;
11305    esac
11306  fi
11307  version_type=freebsd-$objformat
11308  case $version_type in
11309    freebsd-elf*)
11310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11311      need_version=no
11312      need_lib_prefix=no
11313      ;;
11314    freebsd-*)
11315      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11316      need_version=yes
11317      ;;
11318  esac
11319  shlibpath_var=LD_LIBRARY_PATH
11320  case $host_os in
11321  freebsd2*)
11322    shlibpath_overrides_runpath=yes
11323    ;;
11324  freebsd3.[01]* | freebsdelf3.[01]*)
11325    shlibpath_overrides_runpath=yes
11326    hardcode_into_libs=yes
11327    ;;
11328  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11329  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11330    shlibpath_overrides_runpath=no
11331    hardcode_into_libs=yes
11332    ;;
11333  *) # from 4.6 on, and DragonFly
11334    shlibpath_overrides_runpath=yes
11335    hardcode_into_libs=yes
11336    ;;
11337  esac
11338  ;;
11339
11340gnu*)
11341  version_type=linux
11342  need_lib_prefix=no
11343  need_version=no
11344  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11345  soname_spec='${libname}${release}${shared_ext}$major'
11346  shlibpath_var=LD_LIBRARY_PATH
11347  hardcode_into_libs=yes
11348  ;;
11349
11350hpux9* | hpux10* | hpux11*)
11351  # Give a soname corresponding to the major version so that dld.sl refuses to
11352  # link against other versions.
11353  version_type=sunos
11354  need_lib_prefix=no
11355  need_version=no
11356  case $host_cpu in
11357  ia64*)
11358    shrext_cmds='.so'
11359    hardcode_into_libs=yes
11360    dynamic_linker="$host_os dld.so"
11361    shlibpath_var=LD_LIBRARY_PATH
11362    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11363    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11364    soname_spec='${libname}${release}${shared_ext}$major'
11365    if test "X$HPUX_IA64_MODE" = X32; then
11366      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11367    else
11368      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11369    fi
11370    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11371    ;;
11372  hppa*64*)
11373    shrext_cmds='.sl'
11374    hardcode_into_libs=yes
11375    dynamic_linker="$host_os dld.sl"
11376    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11377    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11378    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379    soname_spec='${libname}${release}${shared_ext}$major'
11380    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11381    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11382    ;;
11383  *)
11384    shrext_cmds='.sl'
11385    dynamic_linker="$host_os dld.sl"
11386    shlibpath_var=SHLIB_PATH
11387    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11388    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11389    soname_spec='${libname}${release}${shared_ext}$major'
11390    ;;
11391  esac
11392  # HP-UX runs *really* slowly unless shared libraries are mode 555.
11393  postinstall_cmds='chmod 555 $lib'
11394  ;;
11395
11396interix[3-9]*)
11397  version_type=linux
11398  need_lib_prefix=no
11399  need_version=no
11400  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11401  soname_spec='${libname}${release}${shared_ext}$major'
11402  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11403  shlibpath_var=LD_LIBRARY_PATH
11404  shlibpath_overrides_runpath=no
11405  hardcode_into_libs=yes
11406  ;;
11407
11408irix5* | irix6* | nonstopux*)
11409  case $host_os in
11410    nonstopux*) version_type=nonstopux ;;
11411    *)
11412	if test "$lt_cv_prog_gnu_ld" = yes; then
11413		version_type=linux
11414	else
11415		version_type=irix
11416	fi ;;
11417  esac
11418  need_lib_prefix=no
11419  need_version=no
11420  soname_spec='${libname}${release}${shared_ext}$major'
11421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11422  case $host_os in
11423  irix5* | nonstopux*)
11424    libsuff= shlibsuff=
11425    ;;
11426  *)
11427    case $LD in # libtool.m4 will add one of these switches to LD
11428    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11429      libsuff= shlibsuff= libmagic=32-bit;;
11430    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11431      libsuff=32 shlibsuff=N32 libmagic=N32;;
11432    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11433      libsuff=64 shlibsuff=64 libmagic=64-bit;;
11434    *) libsuff= shlibsuff= libmagic=never-match;;
11435    esac
11436    ;;
11437  esac
11438  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11439  shlibpath_overrides_runpath=no
11440  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11441  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11442  hardcode_into_libs=yes
11443  ;;
11444
11445# No shared lib support for Linux oldld, aout, or coff.
11446linux*oldld* | linux*aout* | linux*coff*)
11447  dynamic_linker=no
11448  ;;
11449
11450# This must be Linux ELF.
11451linux* | k*bsd*-gnu | kopensolaris*-gnu)
11452  version_type=linux
11453  need_lib_prefix=no
11454  need_version=no
11455  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11456  soname_spec='${libname}${release}${shared_ext}$major'
11457  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11458  shlibpath_var=LD_LIBRARY_PATH
11459  shlibpath_overrides_runpath=no
11460  # Some binutils ld are patched to set DT_RUNPATH
11461  save_LDFLAGS=$LDFLAGS
11462  save_libdir=$libdir
11463  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11464       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11465  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11466/* end confdefs.h.  */
11467
11468int
11469main ()
11470{
11471
11472  ;
11473  return 0;
11474}
11475_ACEOF
11476if ac_fn_c_try_link "$LINENO"; then :
11477  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11478  shlibpath_overrides_runpath=yes
11479fi
11480fi
11481rm -f core conftest.err conftest.$ac_objext \
11482    conftest$ac_exeext conftest.$ac_ext
11483  LDFLAGS=$save_LDFLAGS
11484  libdir=$save_libdir
11485
11486  # This implies no fast_install, which is unacceptable.
11487  # Some rework will be needed to allow for fast_install
11488  # before this can be enabled.
11489  hardcode_into_libs=yes
11490
11491  # Append ld.so.conf contents to the search path
11492  if test -f /etc/ld.so.conf; then
11493    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
11494    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11495  fi
11496
11497  # We used to test for /lib/ld.so.1 and disable shared libraries on
11498  # powerpc, because MkLinux only supported shared libraries with the
11499  # GNU dynamic linker.  Since this was broken with cross compilers,
11500  # most powerpc-linux boxes support dynamic linking these days and
11501  # people can always --disable-shared, the test was removed, and we
11502  # assume the GNU/Linux dynamic linker is in use.
11503  dynamic_linker='GNU/Linux ld.so'
11504  ;;
11505
11506netbsdelf*-gnu)
11507  version_type=linux
11508  need_lib_prefix=no
11509  need_version=no
11510  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11511  soname_spec='${libname}${release}${shared_ext}$major'
11512  shlibpath_var=LD_LIBRARY_PATH
11513  shlibpath_overrides_runpath=no
11514  hardcode_into_libs=yes
11515  dynamic_linker='NetBSD ld.elf_so'
11516  ;;
11517
11518netbsd*)
11519  version_type=sunos
11520  need_lib_prefix=no
11521  need_version=no
11522  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11523    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11524    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11525    dynamic_linker='NetBSD (a.out) ld.so'
11526  else
11527    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11528    soname_spec='${libname}${release}${shared_ext}$major'
11529    dynamic_linker='NetBSD ld.elf_so'
11530  fi
11531  shlibpath_var=LD_LIBRARY_PATH
11532  shlibpath_overrides_runpath=yes
11533  hardcode_into_libs=yes
11534  ;;
11535
11536newsos6)
11537  version_type=linux
11538  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11539  shlibpath_var=LD_LIBRARY_PATH
11540  shlibpath_overrides_runpath=yes
11541  ;;
11542
11543*nto* | *qnx*)
11544  version_type=qnx
11545  need_lib_prefix=no
11546  need_version=no
11547  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11548  soname_spec='${libname}${release}${shared_ext}$major'
11549  shlibpath_var=LD_LIBRARY_PATH
11550  shlibpath_overrides_runpath=no
11551  hardcode_into_libs=yes
11552  dynamic_linker='ldqnx.so'
11553  ;;
11554
11555openbsd*)
11556  version_type=sunos
11557  sys_lib_dlsearch_path_spec="/usr/lib"
11558  need_lib_prefix=no
11559  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11560  case $host_os in
11561    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
11562    *)				need_version=no  ;;
11563  esac
11564  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11565  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11566  shlibpath_var=LD_LIBRARY_PATH
11567  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11568    case $host_os in
11569      openbsd2.[89] | openbsd2.[89].*)
11570	shlibpath_overrides_runpath=no
11571	;;
11572      *)
11573	shlibpath_overrides_runpath=yes
11574	;;
11575      esac
11576  else
11577    shlibpath_overrides_runpath=yes
11578  fi
11579  ;;
11580
11581os2*)
11582  libname_spec='$name'
11583  shrext_cmds=".dll"
11584  need_lib_prefix=no
11585  library_names_spec='$libname${shared_ext} $libname.a'
11586  dynamic_linker='OS/2 ld.exe'
11587  shlibpath_var=LIBPATH
11588  ;;
11589
11590osf3* | osf4* | osf5*)
11591  version_type=osf
11592  need_lib_prefix=no
11593  need_version=no
11594  soname_spec='${libname}${release}${shared_ext}$major'
11595  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11596  shlibpath_var=LD_LIBRARY_PATH
11597  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11598  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11599  ;;
11600
11601rdos*)
11602  dynamic_linker=no
11603  ;;
11604
11605solaris*)
11606  version_type=linux
11607  need_lib_prefix=no
11608  need_version=no
11609  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610  soname_spec='${libname}${release}${shared_ext}$major'
11611  shlibpath_var=LD_LIBRARY_PATH
11612  shlibpath_overrides_runpath=yes
11613  hardcode_into_libs=yes
11614  # ldd complains unless libraries are executable
11615  postinstall_cmds='chmod +x $lib'
11616  ;;
11617
11618sunos4*)
11619  version_type=sunos
11620  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11622  shlibpath_var=LD_LIBRARY_PATH
11623  shlibpath_overrides_runpath=yes
11624  if test "$with_gnu_ld" = yes; then
11625    need_lib_prefix=no
11626  fi
11627  need_version=yes
11628  ;;
11629
11630sysv4 | sysv4.3*)
11631  version_type=linux
11632  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11633  soname_spec='${libname}${release}${shared_ext}$major'
11634  shlibpath_var=LD_LIBRARY_PATH
11635  case $host_vendor in
11636    sni)
11637      shlibpath_overrides_runpath=no
11638      need_lib_prefix=no
11639      runpath_var=LD_RUN_PATH
11640      ;;
11641    siemens)
11642      need_lib_prefix=no
11643      ;;
11644    motorola)
11645      need_lib_prefix=no
11646      need_version=no
11647      shlibpath_overrides_runpath=no
11648      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11649      ;;
11650  esac
11651  ;;
11652
11653sysv4*MP*)
11654  if test -d /usr/nec ;then
11655    version_type=linux
11656    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11657    soname_spec='$libname${shared_ext}.$major'
11658    shlibpath_var=LD_LIBRARY_PATH
11659  fi
11660  ;;
11661
11662sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11663  version_type=freebsd-elf
11664  need_lib_prefix=no
11665  need_version=no
11666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11667  soname_spec='${libname}${release}${shared_ext}$major'
11668  shlibpath_var=LD_LIBRARY_PATH
11669  shlibpath_overrides_runpath=yes
11670  hardcode_into_libs=yes
11671  if test "$with_gnu_ld" = yes; then
11672    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11673  else
11674    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11675    case $host_os in
11676      sco3.2v5*)
11677        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11678	;;
11679    esac
11680  fi
11681  sys_lib_dlsearch_path_spec='/usr/lib'
11682  ;;
11683
11684tpf*)
11685  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11686  version_type=linux
11687  need_lib_prefix=no
11688  need_version=no
11689  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11690  shlibpath_var=LD_LIBRARY_PATH
11691  shlibpath_overrides_runpath=no
11692  hardcode_into_libs=yes
11693  ;;
11694
11695uts4*)
11696  version_type=linux
11697  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11698  soname_spec='${libname}${release}${shared_ext}$major'
11699  shlibpath_var=LD_LIBRARY_PATH
11700  ;;
11701
11702*)
11703  dynamic_linker=no
11704  ;;
11705esac
11706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11707$as_echo "$dynamic_linker" >&6; }
11708test "$dynamic_linker" = no && can_build_shared=no
11709
11710variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11711if test "$GCC" = yes; then
11712  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11713fi
11714
11715if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11716  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11717fi
11718if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11719  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11720fi
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11809$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11810hardcode_action=
11811if test -n "$hardcode_libdir_flag_spec" ||
11812   test -n "$runpath_var" ||
11813   test "X$hardcode_automatic" = "Xyes" ; then
11814
11815  # We can hardcode non-existent directories.
11816  if test "$hardcode_direct" != no &&
11817     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11818     # have to relink, otherwise we might link with an installed library
11819     # when we should be linking with a yet-to-be-installed one
11820     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11821     test "$hardcode_minus_L" != no; then
11822    # Linking always hardcodes the temporary library directory.
11823    hardcode_action=relink
11824  else
11825    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11826    hardcode_action=immediate
11827  fi
11828else
11829  # We cannot hardcode anything, or else we can only hardcode existing
11830  # directories.
11831  hardcode_action=unsupported
11832fi
11833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11834$as_echo "$hardcode_action" >&6; }
11835
11836if test "$hardcode_action" = relink ||
11837   test "$inherit_rpath" = yes; then
11838  # Fast installation is not supported
11839  enable_fast_install=no
11840elif test "$shlibpath_overrides_runpath" = yes ||
11841     test "$enable_shared" = no; then
11842  # Fast installation is not necessary
11843  enable_fast_install=needless
11844fi
11845
11846
11847
11848
11849
11850
11851  if test "x$enable_dlopen" != xyes; then
11852  enable_dlopen=unknown
11853  enable_dlopen_self=unknown
11854  enable_dlopen_self_static=unknown
11855else
11856  lt_cv_dlopen=no
11857  lt_cv_dlopen_libs=
11858
11859  case $host_os in
11860  beos*)
11861    lt_cv_dlopen="load_add_on"
11862    lt_cv_dlopen_libs=
11863    lt_cv_dlopen_self=yes
11864    ;;
11865
11866  mingw* | pw32* | cegcc*)
11867    lt_cv_dlopen="LoadLibrary"
11868    lt_cv_dlopen_libs=
11869    ;;
11870
11871  cygwin*)
11872    lt_cv_dlopen="dlopen"
11873    lt_cv_dlopen_libs=
11874    ;;
11875
11876  darwin*)
11877  # if libdl is installed we need to link against it
11878    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879$as_echo_n "checking for dlopen in -ldl... " >&6; }
11880if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11881  $as_echo_n "(cached) " >&6
11882else
11883  ac_check_lib_save_LIBS=$LIBS
11884LIBS="-ldl  $LIBS"
11885cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886/* end confdefs.h.  */
11887
11888/* Override any GCC internal prototype to avoid an error.
11889   Use char because int might match the return type of a GCC
11890   builtin and then its argument prototype would still apply.  */
11891#ifdef __cplusplus
11892extern "C"
11893#endif
11894char dlopen ();
11895int
11896main ()
11897{
11898return dlopen ();
11899  ;
11900  return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
11904  ac_cv_lib_dl_dlopen=yes
11905else
11906  ac_cv_lib_dl_dlopen=no
11907fi
11908rm -f core conftest.err conftest.$ac_objext \
11909    conftest$ac_exeext conftest.$ac_ext
11910LIBS=$ac_check_lib_save_LIBS
11911fi
11912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11915  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11916else
11917
11918    lt_cv_dlopen="dyld"
11919    lt_cv_dlopen_libs=
11920    lt_cv_dlopen_self=yes
11921
11922fi
11923
11924    ;;
11925
11926  *)
11927    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11928if test "x$ac_cv_func_shl_load" = x""yes; then :
11929  lt_cv_dlopen="shl_load"
11930else
11931  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11932$as_echo_n "checking for shl_load in -ldld... " >&6; }
11933if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11934  $as_echo_n "(cached) " >&6
11935else
11936  ac_check_lib_save_LIBS=$LIBS
11937LIBS="-ldld  $LIBS"
11938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11939/* end confdefs.h.  */
11940
11941/* Override any GCC internal prototype to avoid an error.
11942   Use char because int might match the return type of a GCC
11943   builtin and then its argument prototype would still apply.  */
11944#ifdef __cplusplus
11945extern "C"
11946#endif
11947char shl_load ();
11948int
11949main ()
11950{
11951return shl_load ();
11952  ;
11953  return 0;
11954}
11955_ACEOF
11956if ac_fn_c_try_link "$LINENO"; then :
11957  ac_cv_lib_dld_shl_load=yes
11958else
11959  ac_cv_lib_dld_shl_load=no
11960fi
11961rm -f core conftest.err conftest.$ac_objext \
11962    conftest$ac_exeext conftest.$ac_ext
11963LIBS=$ac_check_lib_save_LIBS
11964fi
11965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11966$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11967if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11968  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11969else
11970  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11971if test "x$ac_cv_func_dlopen" = x""yes; then :
11972  lt_cv_dlopen="dlopen"
11973else
11974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11975$as_echo_n "checking for dlopen in -ldl... " >&6; }
11976if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11977  $as_echo_n "(cached) " >&6
11978else
11979  ac_check_lib_save_LIBS=$LIBS
11980LIBS="-ldl  $LIBS"
11981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11982/* end confdefs.h.  */
11983
11984/* Override any GCC internal prototype to avoid an error.
11985   Use char because int might match the return type of a GCC
11986   builtin and then its argument prototype would still apply.  */
11987#ifdef __cplusplus
11988extern "C"
11989#endif
11990char dlopen ();
11991int
11992main ()
11993{
11994return dlopen ();
11995  ;
11996  return 0;
11997}
11998_ACEOF
11999if ac_fn_c_try_link "$LINENO"; then :
12000  ac_cv_lib_dl_dlopen=yes
12001else
12002  ac_cv_lib_dl_dlopen=no
12003fi
12004rm -f core conftest.err conftest.$ac_objext \
12005    conftest$ac_exeext conftest.$ac_ext
12006LIBS=$ac_check_lib_save_LIBS
12007fi
12008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12009$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12010if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12011  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12012else
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12014$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12015if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12016  $as_echo_n "(cached) " >&6
12017else
12018  ac_check_lib_save_LIBS=$LIBS
12019LIBS="-lsvld  $LIBS"
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021/* end confdefs.h.  */
12022
12023/* Override any GCC internal prototype to avoid an error.
12024   Use char because int might match the return type of a GCC
12025   builtin and then its argument prototype would still apply.  */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029char dlopen ();
12030int
12031main ()
12032{
12033return dlopen ();
12034  ;
12035  return 0;
12036}
12037_ACEOF
12038if ac_fn_c_try_link "$LINENO"; then :
12039  ac_cv_lib_svld_dlopen=yes
12040else
12041  ac_cv_lib_svld_dlopen=no
12042fi
12043rm -f core conftest.err conftest.$ac_objext \
12044    conftest$ac_exeext conftest.$ac_ext
12045LIBS=$ac_check_lib_save_LIBS
12046fi
12047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12048$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12049if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12050  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12051else
12052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12053$as_echo_n "checking for dld_link in -ldld... " >&6; }
12054if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12055  $as_echo_n "(cached) " >&6
12056else
12057  ac_check_lib_save_LIBS=$LIBS
12058LIBS="-ldld  $LIBS"
12059cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12060/* end confdefs.h.  */
12061
12062/* Override any GCC internal prototype to avoid an error.
12063   Use char because int might match the return type of a GCC
12064   builtin and then its argument prototype would still apply.  */
12065#ifdef __cplusplus
12066extern "C"
12067#endif
12068char dld_link ();
12069int
12070main ()
12071{
12072return dld_link ();
12073  ;
12074  return 0;
12075}
12076_ACEOF
12077if ac_fn_c_try_link "$LINENO"; then :
12078  ac_cv_lib_dld_dld_link=yes
12079else
12080  ac_cv_lib_dld_dld_link=no
12081fi
12082rm -f core conftest.err conftest.$ac_objext \
12083    conftest$ac_exeext conftest.$ac_ext
12084LIBS=$ac_check_lib_save_LIBS
12085fi
12086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12087$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12088if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12089  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12090fi
12091
12092
12093fi
12094
12095
12096fi
12097
12098
12099fi
12100
12101
12102fi
12103
12104
12105fi
12106
12107    ;;
12108  esac
12109
12110  if test "x$lt_cv_dlopen" != xno; then
12111    enable_dlopen=yes
12112  else
12113    enable_dlopen=no
12114  fi
12115
12116  case $lt_cv_dlopen in
12117  dlopen)
12118    save_CPPFLAGS="$CPPFLAGS"
12119    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12120
12121    save_LDFLAGS="$LDFLAGS"
12122    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12123
12124    save_LIBS="$LIBS"
12125    LIBS="$lt_cv_dlopen_libs $LIBS"
12126
12127    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12128$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12129if test "${lt_cv_dlopen_self+set}" = set; then :
12130  $as_echo_n "(cached) " >&6
12131else
12132  	  if test "$cross_compiling" = yes; then :
12133  lt_cv_dlopen_self=cross
12134else
12135  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12136  lt_status=$lt_dlunknown
12137  cat > conftest.$ac_ext <<_LT_EOF
12138#line 12138 "configure"
12139#include "confdefs.h"
12140
12141#if HAVE_DLFCN_H
12142#include <dlfcn.h>
12143#endif
12144
12145#include <stdio.h>
12146
12147#ifdef RTLD_GLOBAL
12148#  define LT_DLGLOBAL		RTLD_GLOBAL
12149#else
12150#  ifdef DL_GLOBAL
12151#    define LT_DLGLOBAL		DL_GLOBAL
12152#  else
12153#    define LT_DLGLOBAL		0
12154#  endif
12155#endif
12156
12157/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12158   find out it does not work in some platform. */
12159#ifndef LT_DLLAZY_OR_NOW
12160#  ifdef RTLD_LAZY
12161#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12162#  else
12163#    ifdef DL_LAZY
12164#      define LT_DLLAZY_OR_NOW		DL_LAZY
12165#    else
12166#      ifdef RTLD_NOW
12167#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12168#      else
12169#        ifdef DL_NOW
12170#          define LT_DLLAZY_OR_NOW	DL_NOW
12171#        else
12172#          define LT_DLLAZY_OR_NOW	0
12173#        endif
12174#      endif
12175#    endif
12176#  endif
12177#endif
12178
12179void fnord() { int i=42;}
12180int main ()
12181{
12182  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12183  int status = $lt_dlunknown;
12184
12185  if (self)
12186    {
12187      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12188      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189      /* dlclose (self); */
12190    }
12191  else
12192    puts (dlerror ());
12193
12194  return status;
12195}
12196_LT_EOF
12197  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12198  (eval $ac_link) 2>&5
12199  ac_status=$?
12200  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12201  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12202    (./conftest; exit; ) >&5 2>/dev/null
12203    lt_status=$?
12204    case x$lt_status in
12205      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12206      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12207      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12208    esac
12209  else :
12210    # compilation failed
12211    lt_cv_dlopen_self=no
12212  fi
12213fi
12214rm -fr conftest*
12215
12216
12217fi
12218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12219$as_echo "$lt_cv_dlopen_self" >&6; }
12220
12221    if test "x$lt_cv_dlopen_self" = xyes; then
12222      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12223      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12224$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12225if test "${lt_cv_dlopen_self_static+set}" = set; then :
12226  $as_echo_n "(cached) " >&6
12227else
12228  	  if test "$cross_compiling" = yes; then :
12229  lt_cv_dlopen_self_static=cross
12230else
12231  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12232  lt_status=$lt_dlunknown
12233  cat > conftest.$ac_ext <<_LT_EOF
12234#line 12234 "configure"
12235#include "confdefs.h"
12236
12237#if HAVE_DLFCN_H
12238#include <dlfcn.h>
12239#endif
12240
12241#include <stdio.h>
12242
12243#ifdef RTLD_GLOBAL
12244#  define LT_DLGLOBAL		RTLD_GLOBAL
12245#else
12246#  ifdef DL_GLOBAL
12247#    define LT_DLGLOBAL		DL_GLOBAL
12248#  else
12249#    define LT_DLGLOBAL		0
12250#  endif
12251#endif
12252
12253/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12254   find out it does not work in some platform. */
12255#ifndef LT_DLLAZY_OR_NOW
12256#  ifdef RTLD_LAZY
12257#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12258#  else
12259#    ifdef DL_LAZY
12260#      define LT_DLLAZY_OR_NOW		DL_LAZY
12261#    else
12262#      ifdef RTLD_NOW
12263#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12264#      else
12265#        ifdef DL_NOW
12266#          define LT_DLLAZY_OR_NOW	DL_NOW
12267#        else
12268#          define LT_DLLAZY_OR_NOW	0
12269#        endif
12270#      endif
12271#    endif
12272#  endif
12273#endif
12274
12275void fnord() { int i=42;}
12276int main ()
12277{
12278  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12279  int status = $lt_dlunknown;
12280
12281  if (self)
12282    {
12283      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12284      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12285      /* dlclose (self); */
12286    }
12287  else
12288    puts (dlerror ());
12289
12290  return status;
12291}
12292_LT_EOF
12293  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12294  (eval $ac_link) 2>&5
12295  ac_status=$?
12296  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12297  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12298    (./conftest; exit; ) >&5 2>/dev/null
12299    lt_status=$?
12300    case x$lt_status in
12301      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12302      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12303      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12304    esac
12305  else :
12306    # compilation failed
12307    lt_cv_dlopen_self_static=no
12308  fi
12309fi
12310rm -fr conftest*
12311
12312
12313fi
12314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12315$as_echo "$lt_cv_dlopen_self_static" >&6; }
12316    fi
12317
12318    CPPFLAGS="$save_CPPFLAGS"
12319    LDFLAGS="$save_LDFLAGS"
12320    LIBS="$save_LIBS"
12321    ;;
12322  esac
12323
12324  case $lt_cv_dlopen_self in
12325  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12326  *) enable_dlopen_self=unknown ;;
12327  esac
12328
12329  case $lt_cv_dlopen_self_static in
12330  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12331  *) enable_dlopen_self_static=unknown ;;
12332  esac
12333fi
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351striplib=
12352old_striplib=
12353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12354$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12355if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12356  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12357  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12359$as_echo "yes" >&6; }
12360else
12361# FIXME - insert some real tests, host_os isn't really good enough
12362  case $host_os in
12363  darwin*)
12364    if test -n "$STRIP" ; then
12365      striplib="$STRIP -x"
12366      old_striplib="$STRIP -S"
12367      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12368$as_echo "yes" >&6; }
12369    else
12370      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12371$as_echo "no" >&6; }
12372    fi
12373    ;;
12374  *)
12375    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12376$as_echo "no" >&6; }
12377    ;;
12378  esac
12379fi
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392  # Report which library types will actually be built
12393  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12394$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12396$as_echo "$can_build_shared" >&6; }
12397
12398  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12399$as_echo_n "checking whether to build shared libraries... " >&6; }
12400  test "$can_build_shared" = "no" && enable_shared=no
12401
12402  # On AIX, shared libraries and static libraries use the same namespace, and
12403  # are all built from PIC.
12404  case $host_os in
12405  aix3*)
12406    test "$enable_shared" = yes && enable_static=no
12407    if test -n "$RANLIB"; then
12408      archive_cmds="$archive_cmds~\$RANLIB \$lib"
12409      postinstall_cmds='$RANLIB $lib'
12410    fi
12411    ;;
12412
12413  aix[4-9]*)
12414    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12415      test "$enable_shared" = yes && enable_static=no
12416    fi
12417    ;;
12418  esac
12419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12420$as_echo "$enable_shared" >&6; }
12421
12422  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12423$as_echo_n "checking whether to build static libraries... " >&6; }
12424  # Make sure either enable_shared or enable_static is yes.
12425  test "$enable_shared" = yes || enable_static=yes
12426  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12427$as_echo "$enable_static" >&6; }
12428
12429
12430
12431
12432fi
12433ac_ext=c
12434ac_cpp='$CPP $CPPFLAGS'
12435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12437ac_compiler_gnu=$ac_cv_c_compiler_gnu
12438
12439CC="$lt_save_CC"
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453        ac_config_commands="$ac_config_commands libtool"
12454
12455
12456
12457
12458# Only expand once:
12459
12460
12461
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12463$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12464if test "${ac_cv_c_bigendian+set}" = set; then :
12465  $as_echo_n "(cached) " >&6
12466else
12467  ac_cv_c_bigendian=unknown
12468    # See if we're dealing with a universal compiler.
12469    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470/* end confdefs.h.  */
12471#ifndef __APPLE_CC__
12472	       not a universal capable compiler
12473	     #endif
12474	     typedef int dummy;
12475
12476_ACEOF
12477if ac_fn_c_try_compile "$LINENO"; then :
12478
12479	# Check for potential -arch flags.  It is not universal unless
12480	# there are at least two -arch flags with different values.
12481	ac_arch=
12482	ac_prev=
12483	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12484	 if test -n "$ac_prev"; then
12485	   case $ac_word in
12486	     i?86 | x86_64 | ppc | ppc64)
12487	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12488		 ac_arch=$ac_word
12489	       else
12490		 ac_cv_c_bigendian=universal
12491		 break
12492	       fi
12493	       ;;
12494	   esac
12495	   ac_prev=
12496	 elif test "x$ac_word" = "x-arch"; then
12497	   ac_prev=arch
12498	 fi
12499       done
12500fi
12501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12502    if test $ac_cv_c_bigendian = unknown; then
12503      # See if sys/param.h defines the BYTE_ORDER macro.
12504      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12505/* end confdefs.h.  */
12506#include <sys/types.h>
12507	     #include <sys/param.h>
12508
12509int
12510main ()
12511{
12512#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12513		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12514		     && LITTLE_ENDIAN)
12515	      bogus endian macros
12516	     #endif
12517
12518  ;
12519  return 0;
12520}
12521_ACEOF
12522if ac_fn_c_try_compile "$LINENO"; then :
12523  # It does; now see whether it defined to BIG_ENDIAN or not.
12524	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12525/* end confdefs.h.  */
12526#include <sys/types.h>
12527		#include <sys/param.h>
12528
12529int
12530main ()
12531{
12532#if BYTE_ORDER != BIG_ENDIAN
12533		 not big endian
12534		#endif
12535
12536  ;
12537  return 0;
12538}
12539_ACEOF
12540if ac_fn_c_try_compile "$LINENO"; then :
12541  ac_cv_c_bigendian=yes
12542else
12543  ac_cv_c_bigendian=no
12544fi
12545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12546fi
12547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548    fi
12549    if test $ac_cv_c_bigendian = unknown; then
12550      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12551      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12552/* end confdefs.h.  */
12553#include <limits.h>
12554
12555int
12556main ()
12557{
12558#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12559	      bogus endian macros
12560	     #endif
12561
12562  ;
12563  return 0;
12564}
12565_ACEOF
12566if ac_fn_c_try_compile "$LINENO"; then :
12567  # It does; now see whether it defined to _BIG_ENDIAN or not.
12568	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12569/* end confdefs.h.  */
12570#include <limits.h>
12571
12572int
12573main ()
12574{
12575#ifndef _BIG_ENDIAN
12576		 not big endian
12577		#endif
12578
12579  ;
12580  return 0;
12581}
12582_ACEOF
12583if ac_fn_c_try_compile "$LINENO"; then :
12584  ac_cv_c_bigendian=yes
12585else
12586  ac_cv_c_bigendian=no
12587fi
12588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12589fi
12590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12591    fi
12592    if test $ac_cv_c_bigendian = unknown; then
12593      # Compile a test program.
12594      if test "$cross_compiling" = yes; then :
12595  # Try to guess by grepping values from an object file.
12596	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597/* end confdefs.h.  */
12598short int ascii_mm[] =
12599		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12600		short int ascii_ii[] =
12601		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12602		int use_ascii (int i) {
12603		  return ascii_mm[i] + ascii_ii[i];
12604		}
12605		short int ebcdic_ii[] =
12606		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12607		short int ebcdic_mm[] =
12608		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12609		int use_ebcdic (int i) {
12610		  return ebcdic_mm[i] + ebcdic_ii[i];
12611		}
12612		extern int foo;
12613
12614int
12615main ()
12616{
12617return use_ascii (foo) == use_ebcdic (foo);
12618  ;
12619  return 0;
12620}
12621_ACEOF
12622if ac_fn_c_try_compile "$LINENO"; then :
12623  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12624	      ac_cv_c_bigendian=yes
12625	    fi
12626	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12627	      if test "$ac_cv_c_bigendian" = unknown; then
12628		ac_cv_c_bigendian=no
12629	      else
12630		# finding both strings is unlikely to happen, but who knows?
12631		ac_cv_c_bigendian=unknown
12632	      fi
12633	    fi
12634fi
12635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12636else
12637  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638/* end confdefs.h.  */
12639$ac_includes_default
12640int
12641main ()
12642{
12643
12644	     /* Are we little or big endian?  From Harbison&Steele.  */
12645	     union
12646	     {
12647	       long int l;
12648	       char c[sizeof (long int)];
12649	     } u;
12650	     u.l = 1;
12651	     return u.c[sizeof (long int) - 1] == 1;
12652
12653  ;
12654  return 0;
12655}
12656_ACEOF
12657if ac_fn_c_try_run "$LINENO"; then :
12658  ac_cv_c_bigendian=no
12659else
12660  ac_cv_c_bigendian=yes
12661fi
12662rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12663  conftest.$ac_objext conftest.beam conftest.$ac_ext
12664fi
12665
12666    fi
12667fi
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12669$as_echo "$ac_cv_c_bigendian" >&6; }
12670 case $ac_cv_c_bigendian in #(
12671   yes)
12672
12673$as_echo "#define _BIG_ENDIAN 1" >>confdefs.h
12674;; #(
12675   no)
12676      ;; #(
12677   universal)
12678
12679$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12680
12681     ;; #(
12682   *)
12683     as_fn_error $? "unknown endianness
12684 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
12685 esac
12686
12687ac_fn_c_check_decl "$LINENO" "htole32" "ac_cv_have_decl_htole32" "$ac_includes_default"
12688if test "x$ac_cv_have_decl_htole32" = x""yes; then :
12689
12690$as_echo "#define HTOLE_DEFINED 1" >>confdefs.h
12691
12692fi
12693
12694ac_fn_c_check_header_mongrel "$LINENO" "sys/byteorder.h" "ac_cv_header_sys_byteorder_h" "$ac_includes_default"
12695if test "x$ac_cv_header_sys_byteorder_h" = x""yes; then :
12696
12697$as_echo "#define HAVE_BYTEORDER_H 1" >>confdefs.h
12698
12699fi
12700
12701
12702ac_fn_c_check_func "$LINENO" "daemon" "ac_cv_func_daemon"
12703if test "x$ac_cv_func_daemon" = x""yes; then :
12704
12705$as_echo "#define HAVE_DAEMON 1" >>confdefs.h
12706
12707fi
12708
12709
12710if test "x${GCC}" = "xyes"; then
12711	CFLAGS="$CFLAGS -W -Wall -Werror -Wno-unused-parameter -Wsign-compare"
12712fi
12713
12714CFLAGS="$CFLAGS -I../include \
12715	-DTCSD_DEFAULT_PORT=${TCSD_DEFAULT_PORT} -DTSS_VER_MAJOR=${TSS_VER_MAJOR} \
12716	-DTSS_VER_MINOR=${TSS_VER_MINOR} -DTSS_SPEC_MAJOR=${TSS_SPEC_MAJOR} \
12717	-DTSS_SPEC_MINOR=${TSS_SPEC_MINOR}"
12718#CFLAGS="$CFLAGS -I../include -std=c99 -pedantic -W -Wall"
12719KERNEL_VERSION=`uname -r`
12720
12721
12722# When we build the rpms, prefix will be /usr. This'll do some things that make sense,
12723# like put our sbin stuff in /usr/sbin and our library in /usr/lib. It'll do some other
12724# things that don't make sense like put our config file in /usr/etc. So, I'll just hack
12725# it here. If the --prefix option isn't specified during configure, let it all go to
12726# /usr/local, even /usr/local/etc. :-P
12727if test x"${prefix}" = x"/usr"; then
12728	sysconfdir="/etc"
12729	localstatedir="/var"
12730	mandir="/usr/share/man"
12731elif test x"${prefix}" = x"NONE"; then
12732	localstatedir="/usr/local/var"
12733fi
12734
12735ac_config_files="$ac_config_files dist/tcsd.conf dist/fedora/trousers.spec dist/trousers.spec Makefile src/Makefile src/include/Makefile src/tcs/Makefile src/tddl/Makefile src/tspi/Makefile src/trspi/Makefile src/tcsd/Makefile tools/Makefile man/man8/tcsd.8 man/man5/tcsd.conf.5 dist/Makefile man/Makefile man/man3/Makefile man/man5/Makefile man/man8/Makefile"
12736
12737cat >confcache <<\_ACEOF
12738# This file is a shell script that caches the results of configure
12739# tests run on this system so they can be shared between configure
12740# scripts and configure runs, see configure's option --config-cache.
12741# It is not useful on other systems.  If it contains results you don't
12742# want to keep, you may remove or edit it.
12743#
12744# config.status only pays attention to the cache file if you give it
12745# the --recheck option to rerun configure.
12746#
12747# `ac_cv_env_foo' variables (set or unset) will be overridden when
12748# loading this file, other *unset* `ac_cv_foo' will be assigned the
12749# following values.
12750
12751_ACEOF
12752
12753# The following way of writing the cache mishandles newlines in values,
12754# but we know of no workaround that is simple, portable, and efficient.
12755# So, we kill variables containing newlines.
12756# Ultrix sh set writes to stderr and can't be redirected directly,
12757# and sets the high bit in the cache file unless we assign to the vars.
12758(
12759  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12760    eval ac_val=\$$ac_var
12761    case $ac_val in #(
12762    *${as_nl}*)
12763      case $ac_var in #(
12764      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12765$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12766      esac
12767      case $ac_var in #(
12768      _ | IFS | as_nl) ;; #(
12769      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12770      *) { eval $ac_var=; unset $ac_var;} ;;
12771      esac ;;
12772    esac
12773  done
12774
12775  (set) 2>&1 |
12776    case $as_nl`(ac_space=' '; set) 2>&1` in #(
12777    *${as_nl}ac_space=\ *)
12778      # `set' does not quote correctly, so add quotes: double-quote
12779      # substitution turns \\\\ into \\, and sed turns \\ into \.
12780      sed -n \
12781	"s/'/'\\\\''/g;
12782	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12783      ;; #(
12784    *)
12785      # `set' quotes correctly as required by POSIX, so do not add quotes.
12786      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12787      ;;
12788    esac |
12789    sort
12790) |
12791  sed '
12792     /^ac_cv_env_/b end
12793     t clear
12794     :clear
12795     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12796     t end
12797     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12798     :end' >>confcache
12799if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12800  if test -w "$cache_file"; then
12801    test "x$cache_file" != "x/dev/null" &&
12802      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12803$as_echo "$as_me: updating cache $cache_file" >&6;}
12804    cat confcache >$cache_file
12805  else
12806    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12807$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12808  fi
12809fi
12810rm -f confcache
12811
12812test "x$prefix" = xNONE && prefix=$ac_default_prefix
12813# Let make expand exec_prefix.
12814test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12815
12816# Transform confdefs.h into DEFS.
12817# Protect against shell expansion while executing Makefile rules.
12818# Protect against Makefile macro expansion.
12819#
12820# If the first sed substitution is executed (which looks for macros that
12821# take arguments), then branch to the quote section.  Otherwise,
12822# look for a macro that doesn't take arguments.
12823ac_script='
12824:mline
12825/\\$/{
12826 N
12827 s,\\\n,,
12828 b mline
12829}
12830t clear
12831:clear
12832s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*([^)]*)\)[	 ]*\(.*\)/-D\1=\2/g
12833t quote
12834s/^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)/-D\1=\2/g
12835t quote
12836b any
12837:quote
12838s/[	 `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12839s/\[/\\&/g
12840s/\]/\\&/g
12841s/\$/$$/g
12842H
12843:any
12844${
12845	g
12846	s/^\n//
12847	s/\n/ /g
12848	p
12849}
12850'
12851DEFS=`sed -n "$ac_script" confdefs.h`
12852
12853
12854ac_libobjs=
12855ac_ltlibobjs=
12856U=
12857for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12858  # 1. Remove the extension, and $U if already installed.
12859  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12860  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12861  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
12862  #    will be set to the directory where LIBOBJS objects are built.
12863  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12864  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12865done
12866LIBOBJS=$ac_libobjs
12867
12868LTLIBOBJS=$ac_ltlibobjs
12869
12870
12871 if test -n "$EXEEXT"; then
12872  am__EXEEXT_TRUE=
12873  am__EXEEXT_FALSE='#'
12874else
12875  am__EXEEXT_TRUE='#'
12876  am__EXEEXT_FALSE=
12877fi
12878
12879if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12880  as_fn_error $? "conditional \"AMDEP\" was never defined.
12881Usually this means the macro was only invoked conditionally." "$LINENO" 5
12882fi
12883if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12884  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
12885Usually this means the macro was only invoked conditionally." "$LINENO" 5
12886fi
12887if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
12888  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
12889Usually this means the macro was only invoked conditionally." "$LINENO" 5
12890fi
12891if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
12892  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
12893Usually this means the macro was only invoked conditionally." "$LINENO" 5
12894fi
12895if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
12896  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
12897Usually this means the macro was only invoked conditionally." "$LINENO" 5
12898fi
12899if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
12900  as_fn_error $? "conditional \"OPENSSL_UI\" was never defined.
12901Usually this means the macro was only invoked conditionally." "$LINENO" 5
12902fi
12903if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
12904  as_fn_error $? "conditional \"OPENSSL_UI\" was never defined.
12905Usually this means the macro was only invoked conditionally." "$LINENO" 5
12906fi
12907if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
12908  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
12909Usually this means the macro was only invoked conditionally." "$LINENO" 5
12910fi
12911if test -z "${HAVE_GTK_TRUE}" && test -z "${HAVE_GTK_FALSE}"; then
12912  as_fn_error $? "conditional \"HAVE_GTK\" was never defined.
12913Usually this means the macro was only invoked conditionally." "$LINENO" 5
12914fi
12915if test -z "${OPENSSL_UI_TRUE}" && test -z "${OPENSSL_UI_FALSE}"; then
12916  as_fn_error $? "conditional \"OPENSSL_UI\" was never defined.
12917Usually this means the macro was only invoked conditionally." "$LINENO" 5
12918fi
12919if test -z "${TSS_BUILD_HASH_TRUE}" && test -z "${TSS_BUILD_HASH_FALSE}"; then
12920  as_fn_error $? "conditional \"TSS_BUILD_HASH\" was never defined.
12921Usually this means the macro was only invoked conditionally." "$LINENO" 5
12922fi
12923if test -z "${TSS_BUILD_GETSET_TRUE}" && test -z "${TSS_BUILD_GETSET_FALSE}"; then
12924  as_fn_error $? "conditional \"TSS_BUILD_GETSET\" was never defined.
12925Usually this means the macro was only invoked conditionally." "$LINENO" 5
12926fi
12927if test -z "${TSS_BUILD_RANDOM_TRUE}" && test -z "${TSS_BUILD_RANDOM_FALSE}"; then
12928  as_fn_error $? "conditional \"TSS_BUILD_RANDOM\" was never defined.
12929Usually this means the macro was only invoked conditionally." "$LINENO" 5
12930fi
12931if test -z "${TSS_BUILD_CAPS_TRUE}" && test -z "${TSS_BUILD_CAPS_FALSE}"; then
12932  as_fn_error $? "conditional \"TSS_BUILD_CAPS\" was never defined.
12933Usually this means the macro was only invoked conditionally." "$LINENO" 5
12934fi
12935if test -z "${TSS_BUILD_CAPS_TPM_TRUE}" && test -z "${TSS_BUILD_CAPS_TPM_FALSE}"; then
12936  as_fn_error $? "conditional \"TSS_BUILD_CAPS_TPM\" was never defined.
12937Usually this means the macro was only invoked conditionally." "$LINENO" 5
12938fi
12939if test -z "${TSS_BUILD_POLICY_TRUE}" && test -z "${TSS_BUILD_POLICY_FALSE}"; then
12940  as_fn_error $? "conditional \"TSS_BUILD_POLICY\" was never defined.
12941Usually this means the macro was only invoked conditionally." "$LINENO" 5
12942fi
12943if test -z "${TSS_BUILD_DIR_TRUE}" && test -z "${TSS_BUILD_DIR_FALSE}"; then
12944  as_fn_error $? "conditional \"TSS_BUILD_DIR\" was never defined.
12945Usually this means the macro was only invoked conditionally." "$LINENO" 5
12946fi
12947if test -z "${TSS_BUILD_PCR_EVENTS_TRUE}" && test -z "${TSS_BUILD_PCR_EVENTS_FALSE}"; then
12948  as_fn_error $? "conditional \"TSS_BUILD_PCR_EVENTS\" was never defined.
12949Usually this means the macro was only invoked conditionally." "$LINENO" 5
12950fi
12951if test -z "${TSS_BUILD_SIGN_TRUE}" && test -z "${TSS_BUILD_SIGN_FALSE}"; then
12952  as_fn_error $? "conditional \"TSS_BUILD_SIGN\" was never defined.
12953Usually this means the macro was only invoked conditionally." "$LINENO" 5
12954fi
12955if test -z "${TSS_BUILD_QUOTE_TRUE}" && test -z "${TSS_BUILD_QUOTE_FALSE}"; then
12956  as_fn_error $? "conditional \"TSS_BUILD_QUOTE\" was never defined.
12957Usually this means the macro was only invoked conditionally." "$LINENO" 5
12958fi
12959if test -z "${TSS_BUILD_PCR_COMP_TRUE}" && test -z "${TSS_BUILD_PCR_COMP_FALSE}"; then
12960  as_fn_error $? "conditional \"TSS_BUILD_PCR_COMP\" was never defined.
12961Usually this means the macro was only invoked conditionally." "$LINENO" 5
12962fi
12963if test -z "${TSS_BUILD_SEAL_TRUE}" && test -z "${TSS_BUILD_SEAL_FALSE}"; then
12964  as_fn_error $? "conditional \"TSS_BUILD_SEAL\" was never defined.
12965Usually this means the macro was only invoked conditionally." "$LINENO" 5
12966fi
12967if test -z "${TSS_BUILD_CHANGEAUTH_TRUE}" && test -z "${TSS_BUILD_CHANGEAUTH_FALSE}"; then
12968  as_fn_error $? "conditional \"TSS_BUILD_CHANGEAUTH\" was never defined.
12969Usually this means the macro was only invoked conditionally." "$LINENO" 5
12970fi
12971if test -z "${TSS_BUILD_BIND_TRUE}" && test -z "${TSS_BUILD_BIND_FALSE}"; then
12972  as_fn_error $? "conditional \"TSS_BUILD_BIND\" was never defined.
12973Usually this means the macro was only invoked conditionally." "$LINENO" 5
12974fi
12975if test -z "${TSS_BUILD_OWN_TRUE}" && test -z "${TSS_BUILD_OWN_FALSE}"; then
12976  as_fn_error $? "conditional \"TSS_BUILD_OWN\" was never defined.
12977Usually this means the macro was only invoked conditionally." "$LINENO" 5
12978fi
12979if test -z "${TSS_BUILD_EK_TRUE}" && test -z "${TSS_BUILD_EK_FALSE}"; then
12980  as_fn_error $? "conditional \"TSS_BUILD_EK\" was never defined.
12981Usually this means the macro was only invoked conditionally." "$LINENO" 5
12982fi
12983if test -z "${TSS_BUILD_PS_TRUE}" && test -z "${TSS_BUILD_PS_FALSE}"; then
12984  as_fn_error $? "conditional \"TSS_BUILD_PS\" was never defined.
12985Usually this means the macro was only invoked conditionally." "$LINENO" 5
12986fi
12987if test -z "${TSS_BUILD_ADMIN_TRUE}" && test -z "${TSS_BUILD_ADMIN_FALSE}"; then
12988  as_fn_error $? "conditional \"TSS_BUILD_ADMIN\" was never defined.
12989Usually this means the macro was only invoked conditionally." "$LINENO" 5
12990fi
12991if test -z "${TSS_BUILD_AIK_TRUE}" && test -z "${TSS_BUILD_AIK_FALSE}"; then
12992  as_fn_error $? "conditional \"TSS_BUILD_AIK\" was never defined.
12993Usually this means the macro was only invoked conditionally." "$LINENO" 5
12994fi
12995if test -z "${TSS_BUILD_CERTIFY_TRUE}" && test -z "${TSS_BUILD_CERTIFY_FALSE}"; then
12996  as_fn_error $? "conditional \"TSS_BUILD_CERTIFY\" was never defined.
12997Usually this means the macro was only invoked conditionally." "$LINENO" 5
12998fi
12999if test -z "${TSS_BUILD_MAINT_TRUE}" && test -z "${TSS_BUILD_MAINT_FALSE}"; then
13000  as_fn_error $? "conditional \"TSS_BUILD_MAINT\" was never defined.
13001Usually this means the macro was only invoked conditionally." "$LINENO" 5
13002fi
13003if test -z "${TSS_BUILD_MIGRATION_TRUE}" && test -z "${TSS_BUILD_MIGRATION_FALSE}"; then
13004  as_fn_error $? "conditional \"TSS_BUILD_MIGRATION\" was never defined.
13005Usually this means the macro was only invoked conditionally." "$LINENO" 5
13006fi
13007if test -z "${TSS_BUILD_KEY_TRUE}" && test -z "${TSS_BUILD_KEY_FALSE}"; then
13008  as_fn_error $? "conditional \"TSS_BUILD_KEY\" was never defined.
13009Usually this means the macro was only invoked conditionally." "$LINENO" 5
13010fi
13011if test -z "${TSS_BUILD_PCR_EXTEND_TRUE}" && test -z "${TSS_BUILD_PCR_EXTEND_FALSE}"; then
13012  as_fn_error $? "conditional \"TSS_BUILD_PCR_EXTEND\" was never defined.
13013Usually this means the macro was only invoked conditionally." "$LINENO" 5
13014fi
13015if test -z "${TSS_BUILD_SELFTEST_TRUE}" && test -z "${TSS_BUILD_SELFTEST_FALSE}"; then
13016  as_fn_error $? "conditional \"TSS_BUILD_SELFTEST\" was never defined.
13017Usually this means the macro was only invoked conditionally." "$LINENO" 5
13018fi
13019if test -z "${TSS_BUILD_TSS12_TRUE}" && test -z "${TSS_BUILD_TSS12_FALSE}"; then
13020  as_fn_error $? "conditional \"TSS_BUILD_TSS12\" was never defined.
13021Usually this means the macro was only invoked conditionally." "$LINENO" 5
13022fi
13023if test -z "${TSS_BUILD_DAA_TRUE}" && test -z "${TSS_BUILD_DAA_FALSE}"; then
13024  as_fn_error $? "conditional \"TSS_BUILD_DAA\" was never defined.
13025Usually this means the macro was only invoked conditionally." "$LINENO" 5
13026fi
13027if test -z "${TSS_BUILD_PCR_COMP12_TRUE}" && test -z "${TSS_BUILD_PCR_COMP12_FALSE}"; then
13028  as_fn_error $? "conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
13029Usually this means the macro was only invoked conditionally." "$LINENO" 5
13030fi
13031if test -z "${TSS_BUILD_COUNTER_TRUE}" && test -z "${TSS_BUILD_COUNTER_FALSE}"; then
13032  as_fn_error $? "conditional \"TSS_BUILD_COUNTER\" was never defined.
13033Usually this means the macro was only invoked conditionally." "$LINENO" 5
13034fi
13035if test -z "${TSS_BUILD_TICK_TRUE}" && test -z "${TSS_BUILD_TICK_FALSE}"; then
13036  as_fn_error $? "conditional \"TSS_BUILD_TICK\" was never defined.
13037Usually this means the macro was only invoked conditionally." "$LINENO" 5
13038fi
13039if test -z "${TSS_BUILD_TRANSPORT_TRUE}" && test -z "${TSS_BUILD_TRANSPORT_FALSE}"; then
13040  as_fn_error $? "conditional \"TSS_BUILD_TRANSPORT\" was never defined.
13041Usually this means the macro was only invoked conditionally." "$LINENO" 5
13042fi
13043if test -z "${TSS_BUILD_ASN1_TRUE}" && test -z "${TSS_BUILD_ASN1_FALSE}"; then
13044  as_fn_error $? "conditional \"TSS_BUILD_ASN1\" was never defined.
13045Usually this means the macro was only invoked conditionally." "$LINENO" 5
13046fi
13047if test -z "${TSS_BUILD_NV_TRUE}" && test -z "${TSS_BUILD_NV_FALSE}"; then
13048  as_fn_error $? "conditional \"TSS_BUILD_NV\" was never defined.
13049Usually this means the macro was only invoked conditionally." "$LINENO" 5
13050fi
13051if test -z "${TSS_BUILD_AUDIT_TRUE}" && test -z "${TSS_BUILD_AUDIT_FALSE}"; then
13052  as_fn_error $? "conditional \"TSS_BUILD_AUDIT\" was never defined.
13053Usually this means the macro was only invoked conditionally." "$LINENO" 5
13054fi
13055if test -z "${TSS_BUILD_SEALX_TRUE}" && test -z "${TSS_BUILD_SEALX_FALSE}"; then
13056  as_fn_error $? "conditional \"TSS_BUILD_SEALX\" was never defined.
13057Usually this means the macro was only invoked conditionally." "$LINENO" 5
13058fi
13059if test -z "${TSS_BUILD_DELEGATION_TRUE}" && test -z "${TSS_BUILD_DELEGATION_FALSE}"; then
13060  as_fn_error $? "conditional \"TSS_BUILD_DELEGATION\" was never defined.
13061Usually this means the macro was only invoked conditionally." "$LINENO" 5
13062fi
13063if test -z "${TSS_BUILD_QUOTE2_TRUE}" && test -z "${TSS_BUILD_QUOTE2_FALSE}"; then
13064  as_fn_error $? "conditional \"TSS_BUILD_QUOTE2\" was never defined.
13065Usually this means the macro was only invoked conditionally." "$LINENO" 5
13066fi
13067if test -z "${TSS_BUILD_CMK_TRUE}" && test -z "${TSS_BUILD_CMK_FALSE}"; then
13068  as_fn_error $? "conditional \"TSS_BUILD_CMK\" was never defined.
13069Usually this means the macro was only invoked conditionally." "$LINENO" 5
13070fi
13071if test -z "${TSS_BUILD_TSS12_TRUE}" && test -z "${TSS_BUILD_TSS12_FALSE}"; then
13072  as_fn_error $? "conditional \"TSS_BUILD_TSS12\" was never defined.
13073Usually this means the macro was only invoked conditionally." "$LINENO" 5
13074fi
13075if test -z "${TSS_BUILD_DAA_TRUE}" && test -z "${TSS_BUILD_DAA_FALSE}"; then
13076  as_fn_error $? "conditional \"TSS_BUILD_DAA\" was never defined.
13077Usually this means the macro was only invoked conditionally." "$LINENO" 5
13078fi
13079if test -z "${TSS_BUILD_PCR_COMP12_TRUE}" && test -z "${TSS_BUILD_PCR_COMP12_FALSE}"; then
13080  as_fn_error $? "conditional \"TSS_BUILD_PCR_COMP12\" was never defined.
13081Usually this means the macro was only invoked conditionally." "$LINENO" 5
13082fi
13083if test -z "${TSS_BUILD_COUNTER_TRUE}" && test -z "${TSS_BUILD_COUNTER_FALSE}"; then
13084  as_fn_error $? "conditional \"TSS_BUILD_COUNTER\" was never defined.
13085Usually this means the macro was only invoked conditionally." "$LINENO" 5
13086fi
13087if test -z "${TSS_BUILD_TICK_TRUE}" && test -z "${TSS_BUILD_TICK_FALSE}"; then
13088  as_fn_error $? "conditional \"TSS_BUILD_TICK\" was never defined.
13089Usually this means the macro was only invoked conditionally." "$LINENO" 5
13090fi
13091if test -z "${TSS_BUILD_TRANSPORT_TRUE}" && test -z "${TSS_BUILD_TRANSPORT_FALSE}"; then
13092  as_fn_error $? "conditional \"TSS_BUILD_TRANSPORT\" was never defined.
13093Usually this means the macro was only invoked conditionally." "$LINENO" 5
13094fi
13095if test -z "${TSS_BUILD_ASN1_TRUE}" && test -z "${TSS_BUILD_ASN1_FALSE}"; then
13096  as_fn_error $? "conditional \"TSS_BUILD_ASN1\" was never defined.
13097Usually this means the macro was only invoked conditionally." "$LINENO" 5
13098fi
13099if test -z "${TSS_BUILD_NV_TRUE}" && test -z "${TSS_BUILD_NV_FALSE}"; then
13100  as_fn_error $? "conditional \"TSS_BUILD_NV\" was never defined.
13101Usually this means the macro was only invoked conditionally." "$LINENO" 5
13102fi
13103if test -z "${TSS_BUILD_AUDIT_TRUE}" && test -z "${TSS_BUILD_AUDIT_FALSE}"; then
13104  as_fn_error $? "conditional \"TSS_BUILD_AUDIT\" was never defined.
13105Usually this means the macro was only invoked conditionally." "$LINENO" 5
13106fi
13107if test -z "${TSS_BUILD_SEALX_TRUE}" && test -z "${TSS_BUILD_SEALX_FALSE}"; then
13108  as_fn_error $? "conditional \"TSS_BUILD_SEALX\" was never defined.
13109Usually this means the macro was only invoked conditionally." "$LINENO" 5
13110fi
13111if test -z "${TSS_BUILD_DELEGATION_TRUE}" && test -z "${TSS_BUILD_DELEGATION_FALSE}"; then
13112  as_fn_error $? "conditional \"TSS_BUILD_DELEGATION\" was never defined.
13113Usually this means the macro was only invoked conditionally." "$LINENO" 5
13114fi
13115if test -z "${TSS_BUILD_QUOTE2_TRUE}" && test -z "${TSS_BUILD_QUOTE2_FALSE}"; then
13116  as_fn_error $? "conditional \"TSS_BUILD_QUOTE2\" was never defined.
13117Usually this means the macro was only invoked conditionally." "$LINENO" 5
13118fi
13119if test -z "${TSS_BUILD_CMK_TRUE}" && test -z "${TSS_BUILD_CMK_FALSE}"; then
13120  as_fn_error $? "conditional \"TSS_BUILD_CMK\" was never defined.
13121Usually this means the macro was only invoked conditionally." "$LINENO" 5
13122fi
13123if test -z "${TSS_BUILD_NV_LIST_TRUE}" && test -z "${TSS_BUILD_NV_LIST_FALSE}"; then
13124  as_fn_error $? "conditional \"TSS_BUILD_NV_LIST\" was never defined.
13125Usually this means the macro was only invoked conditionally." "$LINENO" 5
13126fi
13127if test -z "${TSS_BUILD_NV_SUPPORT_TRUE}" && test -z "${TSS_BUILD_NV_SUPPORT_FALSE}"; then
13128  as_fn_error $? "conditional \"TSS_BUILD_NV_SUPPORT\" was never defined.
13129Usually this means the macro was only invoked conditionally." "$LINENO" 5
13130fi
13131if test -z "${TSS_BUILD_GET_FLAGS_TRUE}" && test -z "${TSS_BUILD_GET_FLAGS_FALSE}"; then
13132  as_fn_error $? "conditional \"TSS_BUILD_GET_FLAGS\" was never defined.
13133Usually this means the macro was only invoked conditionally." "$LINENO" 5
13134fi
13135if test -z "${TSS_BUILD_PCRS_LIST_TRUE}" && test -z "${TSS_BUILD_PCRS_LIST_FALSE}"; then
13136  as_fn_error $? "conditional \"TSS_BUILD_PCRS_LIST\" was never defined.
13137Usually this means the macro was only invoked conditionally." "$LINENO" 5
13138fi
13139if test -z "${TSS_BUILD_HASH_LIST_TRUE}" && test -z "${TSS_BUILD_HASH_LIST_FALSE}"; then
13140  as_fn_error $? "conditional \"TSS_BUILD_HASH_LIST\" was never defined.
13141Usually this means the macro was only invoked conditionally." "$LINENO" 5
13142fi
13143if test -z "${TSS_BUILD_ENCDATA_LIST_TRUE}" && test -z "${TSS_BUILD_ENCDATA_LIST_FALSE}"; then
13144  as_fn_error $? "conditional \"TSS_BUILD_ENCDATA_LIST\" was never defined.
13145Usually this means the macro was only invoked conditionally." "$LINENO" 5
13146fi
13147if test -z "${TSS_BUILD_RSAKEY_LIST_TRUE}" && test -z "${TSS_BUILD_RSAKEY_LIST_FALSE}"; then
13148  as_fn_error $? "conditional \"TSS_BUILD_RSAKEY_LIST\" was never defined.
13149Usually this means the macro was only invoked conditionally." "$LINENO" 5
13150fi
13151if test -z "${TSS_BUILD_AUTH_TRUE}" && test -z "${TSS_BUILD_AUTH_FALSE}"; then
13152  as_fn_error $? "conditional \"TSS_BUILD_AUTH\" was never defined.
13153Usually this means the macro was only invoked conditionally." "$LINENO" 5
13154fi
13155if test -z "${TSS_BUILD_ASYM_CRYPTO_TRUE}" && test -z "${TSS_BUILD_ASYM_CRYPTO_FALSE}"; then
13156  as_fn_error $? "conditional \"TSS_BUILD_ASYM_CRYPTO\" was never defined.
13157Usually this means the macro was only invoked conditionally." "$LINENO" 5
13158fi
13159if test -z "${TSS_BUILD_SYM_CRYPTO_TRUE}" && test -z "${TSS_BUILD_SYM_CRYPTO_FALSE}"; then
13160  as_fn_error $? "conditional \"TSS_BUILD_SYM_CRYPTO\" was never defined.
13161Usually this means the macro was only invoked conditionally." "$LINENO" 5
13162fi
13163if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13164  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13165Usually this means the macro was only invoked conditionally." "$LINENO" 5
13166fi
13167
13168
13169: ${CONFIG_STATUS=./config.status}
13170ac_write_fail=0
13171ac_clean_files_save=$ac_clean_files
13172ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13173{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13174$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13175as_write_fail=0
13176cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13177#! $SHELL
13178# Generated by $as_me.
13179# Run this file to recreate the current configuration.
13180# Compiler output produced by configure, useful for debugging
13181# configure, is in config.log if it exists.
13182
13183debug=false
13184ac_cs_recheck=false
13185ac_cs_silent=false
13186
13187SHELL=\${CONFIG_SHELL-$SHELL}
13188export SHELL
13189_ASEOF
13190cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13191## -------------------- ##
13192## M4sh Initialization. ##
13193## -------------------- ##
13194
13195# Be more Bourne compatible
13196DUALCASE=1; export DUALCASE # for MKS sh
13197if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13198  emulate sh
13199  NULLCMD=:
13200  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13201  # is contrary to our usage.  Disable this feature.
13202  alias -g '${1+"$@"}'='"$@"'
13203  setopt NO_GLOB_SUBST
13204else
13205  case `(set -o) 2>/dev/null` in #(
13206  *posix*) :
13207    set -o posix ;; #(
13208  *) :
13209     ;;
13210esac
13211fi
13212
13213
13214as_nl='
13215'
13216export as_nl
13217# Printing a long string crashes Solaris 7 /usr/bin/printf.
13218as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13219as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13220as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13221# Prefer a ksh shell builtin over an external printf program on Solaris,
13222# but without wasting forks for bash or zsh.
13223if test -z "$BASH_VERSION$ZSH_VERSION" \
13224    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13225  as_echo='print -r --'
13226  as_echo_n='print -rn --'
13227elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13228  as_echo='printf %s\n'
13229  as_echo_n='printf %s'
13230else
13231  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13232    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13233    as_echo_n='/usr/ucb/echo -n'
13234  else
13235    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13236    as_echo_n_body='eval
13237      arg=$1;
13238      case $arg in #(
13239      *"$as_nl"*)
13240	expr "X$arg" : "X\\(.*\\)$as_nl";
13241	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13242      esac;
13243      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13244    '
13245    export as_echo_n_body
13246    as_echo_n='sh -c $as_echo_n_body as_echo'
13247  fi
13248  export as_echo_body
13249  as_echo='sh -c $as_echo_body as_echo'
13250fi
13251
13252# The user is always right.
13253if test "${PATH_SEPARATOR+set}" != set; then
13254  PATH_SEPARATOR=:
13255  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13256    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13257      PATH_SEPARATOR=';'
13258  }
13259fi
13260
13261
13262# IFS
13263# We need space, tab and new line, in precisely that order.  Quoting is
13264# there to prevent editors from complaining about space-tab.
13265# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13266# splitting by setting IFS to empty value.)
13267IFS=" ""	$as_nl"
13268
13269# Find who we are.  Look in the path if we contain no directory separator.
13270case $0 in #((
13271  *[\\/]* ) as_myself=$0 ;;
13272  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13273for as_dir in $PATH
13274do
13275  IFS=$as_save_IFS
13276  test -z "$as_dir" && as_dir=.
13277    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13278  done
13279IFS=$as_save_IFS
13280
13281     ;;
13282esac
13283# We did not find ourselves, most probably we were run as `sh COMMAND'
13284# in which case we are not to be found in the path.
13285if test "x$as_myself" = x; then
13286  as_myself=$0
13287fi
13288if test ! -f "$as_myself"; then
13289  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13290  exit 1
13291fi
13292
13293# Unset variables that we do not need and which cause bugs (e.g. in
13294# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13295# suppresses any "Segmentation fault" message there.  '((' could
13296# trigger a bug in pdksh 5.2.14.
13297for as_var in BASH_ENV ENV MAIL MAILPATH
13298do eval test x\${$as_var+set} = xset \
13299  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13300done
13301PS1='$ '
13302PS2='> '
13303PS4='+ '
13304
13305# NLS nuisances.
13306LC_ALL=C
13307export LC_ALL
13308LANGUAGE=C
13309export LANGUAGE
13310
13311# CDPATH.
13312(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13313
13314
13315# as_fn_error STATUS ERROR [LINENO LOG_FD]
13316# ----------------------------------------
13317# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13318# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13319# script with STATUS, using 1 if that was 0.
13320as_fn_error ()
13321{
13322  as_status=$1; test $as_status -eq 0 && as_status=1
13323  if test "$4"; then
13324    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13325    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13326  fi
13327  $as_echo "$as_me: error: $2" >&2
13328  as_fn_exit $as_status
13329} # as_fn_error
13330
13331
13332# as_fn_set_status STATUS
13333# -----------------------
13334# Set $? to STATUS, without forking.
13335as_fn_set_status ()
13336{
13337  return $1
13338} # as_fn_set_status
13339
13340# as_fn_exit STATUS
13341# -----------------
13342# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13343as_fn_exit ()
13344{
13345  set +e
13346  as_fn_set_status $1
13347  exit $1
13348} # as_fn_exit
13349
13350# as_fn_unset VAR
13351# ---------------
13352# Portably unset VAR.
13353as_fn_unset ()
13354{
13355  { eval $1=; unset $1;}
13356}
13357as_unset=as_fn_unset
13358# as_fn_append VAR VALUE
13359# ----------------------
13360# Append the text in VALUE to the end of the definition contained in VAR. Take
13361# advantage of any shell optimizations that allow amortized linear growth over
13362# repeated appends, instead of the typical quadratic growth present in naive
13363# implementations.
13364if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13365  eval 'as_fn_append ()
13366  {
13367    eval $1+=\$2
13368  }'
13369else
13370  as_fn_append ()
13371  {
13372    eval $1=\$$1\$2
13373  }
13374fi # as_fn_append
13375
13376# as_fn_arith ARG...
13377# ------------------
13378# Perform arithmetic evaluation on the ARGs, and store the result in the
13379# global $as_val. Take advantage of shells that can avoid forks. The arguments
13380# must be portable across $(()) and expr.
13381if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13382  eval 'as_fn_arith ()
13383  {
13384    as_val=$(( $* ))
13385  }'
13386else
13387  as_fn_arith ()
13388  {
13389    as_val=`expr "$@" || test $? -eq 1`
13390  }
13391fi # as_fn_arith
13392
13393
13394if expr a : '\(a\)' >/dev/null 2>&1 &&
13395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
13396  as_expr=expr
13397else
13398  as_expr=false
13399fi
13400
13401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13402  as_basename=basename
13403else
13404  as_basename=false
13405fi
13406
13407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13408  as_dirname=dirname
13409else
13410  as_dirname=false
13411fi
13412
13413as_me=`$as_basename -- "$0" ||
13414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13415	 X"$0" : 'X\(//\)$' \| \
13416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13417$as_echo X/"$0" |
13418    sed '/^.*\/\([^/][^/]*\)\/*$/{
13419	    s//\1/
13420	    q
13421	  }
13422	  /^X\/\(\/\/\)$/{
13423	    s//\1/
13424	    q
13425	  }
13426	  /^X\/\(\/\).*/{
13427	    s//\1/
13428	    q
13429	  }
13430	  s/.*/./; q'`
13431
13432# Avoid depending upon Character Ranges.
13433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13436as_cr_digits='0123456789'
13437as_cr_alnum=$as_cr_Letters$as_cr_digits
13438
13439ECHO_C= ECHO_N= ECHO_T=
13440case `echo -n x` in #(((((
13441-n*)
13442  case `echo 'xy\c'` in
13443  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
13444  xy)  ECHO_C='\c';;
13445  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
13446       ECHO_T='	';;
13447  esac;;
13448*)
13449  ECHO_N='-n';;
13450esac
13451
13452rm -f conf$$ conf$$.exe conf$$.file
13453if test -d conf$$.dir; then
13454  rm -f conf$$.dir/conf$$.file
13455else
13456  rm -f conf$$.dir
13457  mkdir conf$$.dir 2>/dev/null
13458fi
13459if (echo >conf$$.file) 2>/dev/null; then
13460  if ln -s conf$$.file conf$$ 2>/dev/null; then
13461    as_ln_s='ln -s'
13462    # ... but there are two gotchas:
13463    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13464    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13465    # In both cases, we have to default to `cp -p'.
13466    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13467      as_ln_s='cp -p'
13468  elif ln conf$$.file conf$$ 2>/dev/null; then
13469    as_ln_s=ln
13470  else
13471    as_ln_s='cp -p'
13472  fi
13473else
13474  as_ln_s='cp -p'
13475fi
13476rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13477rmdir conf$$.dir 2>/dev/null
13478
13479
13480# as_fn_mkdir_p
13481# -------------
13482# Create "$as_dir" as a directory, including parents if necessary.
13483as_fn_mkdir_p ()
13484{
13485
13486  case $as_dir in #(
13487  -*) as_dir=./$as_dir;;
13488  esac
13489  test -d "$as_dir" || eval $as_mkdir_p || {
13490    as_dirs=
13491    while :; do
13492      case $as_dir in #(
13493      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13494      *) as_qdir=$as_dir;;
13495      esac
13496      as_dirs="'$as_qdir' $as_dirs"
13497      as_dir=`$as_dirname -- "$as_dir" ||
13498$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13499	 X"$as_dir" : 'X\(//\)[^/]' \| \
13500	 X"$as_dir" : 'X\(//\)$' \| \
13501	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13502$as_echo X"$as_dir" |
13503    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13504	    s//\1/
13505	    q
13506	  }
13507	  /^X\(\/\/\)[^/].*/{
13508	    s//\1/
13509	    q
13510	  }
13511	  /^X\(\/\/\)$/{
13512	    s//\1/
13513	    q
13514	  }
13515	  /^X\(\/\).*/{
13516	    s//\1/
13517	    q
13518	  }
13519	  s/.*/./; q'`
13520      test -d "$as_dir" && break
13521    done
13522    test -z "$as_dirs" || eval "mkdir $as_dirs"
13523  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13524
13525
13526} # as_fn_mkdir_p
13527if mkdir -p . 2>/dev/null; then
13528  as_mkdir_p='mkdir -p "$as_dir"'
13529else
13530  test -d ./-p && rmdir ./-p
13531  as_mkdir_p=false
13532fi
13533
13534if test -x / >/dev/null 2>&1; then
13535  as_test_x='test -x'
13536else
13537  if ls -dL / >/dev/null 2>&1; then
13538    as_ls_L_option=L
13539  else
13540    as_ls_L_option=
13541  fi
13542  as_test_x='
13543    eval sh -c '\''
13544      if test -d "$1"; then
13545	test -d "$1/.";
13546      else
13547	case $1 in #(
13548	-*)set "./$1";;
13549	esac;
13550	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13551	???[sx]*):;;*)false;;esac;fi
13552    '\'' sh
13553  '
13554fi
13555as_executable_p=$as_test_x
13556
13557# Sed expression to map a string onto a valid CPP name.
13558as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13559
13560# Sed expression to map a string onto a valid variable name.
13561as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13562
13563
13564exec 6>&1
13565## ----------------------------------- ##
13566## Main body of $CONFIG_STATUS script. ##
13567## ----------------------------------- ##
13568_ASEOF
13569test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13570
13571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13572# Save the log message, to keep $0 and so on meaningful, and to
13573# report actual input values of CONFIG_FILES etc. instead of their
13574# values after options handling.
13575ac_log="
13576This file was extended by trousers $as_me 0.3.8, which was
13577generated by GNU Autoconf 2.67.  Invocation command line was
13578
13579  CONFIG_FILES    = $CONFIG_FILES
13580  CONFIG_HEADERS  = $CONFIG_HEADERS
13581  CONFIG_LINKS    = $CONFIG_LINKS
13582  CONFIG_COMMANDS = $CONFIG_COMMANDS
13583  $ $0 $@
13584
13585on `(hostname || uname -n) 2>/dev/null | sed 1q`
13586"
13587
13588_ACEOF
13589
13590case $ac_config_files in *"
13591"*) set x $ac_config_files; shift; ac_config_files=$*;;
13592esac
13593
13594
13595
13596cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13597# Files that config.status was made for.
13598config_files="$ac_config_files"
13599config_commands="$ac_config_commands"
13600
13601_ACEOF
13602
13603cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13604ac_cs_usage="\
13605\`$as_me' instantiates files and other configuration actions
13606from templates according to the current configuration.  Unless the files
13607and actions are specified as TAGs, all are instantiated by default.
13608
13609Usage: $0 [OPTION]... [TAG]...
13610
13611  -h, --help       print this help, then exit
13612  -V, --version    print version number and configuration settings, then exit
13613      --config     print configuration, then exit
13614  -q, --quiet, --silent
13615                   do not print progress messages
13616  -d, --debug      don't remove temporary files
13617      --recheck    update $as_me by reconfiguring in the same conditions
13618      --file=FILE[:TEMPLATE]
13619                   instantiate the configuration file FILE
13620
13621Configuration files:
13622$config_files
13623
13624Configuration commands:
13625$config_commands
13626
13627Report bugs to <trousers-tech@lists.sf.net>."
13628
13629_ACEOF
13630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13631ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13632ac_cs_version="\\
13633trousers config.status 0.3.8
13634configured by $0, generated by GNU Autoconf 2.67,
13635  with options \\"\$ac_cs_config\\"
13636
13637Copyright (C) 2010 Free Software Foundation, Inc.
13638This config.status script is free software; the Free Software Foundation
13639gives unlimited permission to copy, distribute and modify it."
13640
13641ac_pwd='$ac_pwd'
13642srcdir='$srcdir'
13643INSTALL='$INSTALL'
13644MKDIR_P='$MKDIR_P'
13645AWK='$AWK'
13646test -n "\$AWK" || AWK=awk
13647_ACEOF
13648
13649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13650# The default lists apply if the user does not specify any file.
13651ac_need_defaults=:
13652while test $# != 0
13653do
13654  case $1 in
13655  --*=?*)
13656    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13657    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13658    ac_shift=:
13659    ;;
13660  --*=)
13661    ac_option=`expr "X$1" : 'X\([^=]*\)='`
13662    ac_optarg=
13663    ac_shift=:
13664    ;;
13665  *)
13666    ac_option=$1
13667    ac_optarg=$2
13668    ac_shift=shift
13669    ;;
13670  esac
13671
13672  case $ac_option in
13673  # Handling of the options.
13674  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13675    ac_cs_recheck=: ;;
13676  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13677    $as_echo "$ac_cs_version"; exit ;;
13678  --config | --confi | --conf | --con | --co | --c )
13679    $as_echo "$ac_cs_config"; exit ;;
13680  --debug | --debu | --deb | --de | --d | -d )
13681    debug=: ;;
13682  --file | --fil | --fi | --f )
13683    $ac_shift
13684    case $ac_optarg in
13685    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13686    '') as_fn_error $? "missing file argument" ;;
13687    esac
13688    as_fn_append CONFIG_FILES " '$ac_optarg'"
13689    ac_need_defaults=false;;
13690  --he | --h |  --help | --hel | -h )
13691    $as_echo "$ac_cs_usage"; exit ;;
13692  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13693  | -silent | --silent | --silen | --sile | --sil | --si | --s)
13694    ac_cs_silent=: ;;
13695
13696  # This is an error.
13697  -*) as_fn_error $? "unrecognized option: \`$1'
13698Try \`$0 --help' for more information." ;;
13699
13700  *) as_fn_append ac_config_targets " $1"
13701     ac_need_defaults=false ;;
13702
13703  esac
13704  shift
13705done
13706
13707ac_configure_extra_args=
13708
13709if $ac_cs_silent; then
13710  exec 6>/dev/null
13711  ac_configure_extra_args="$ac_configure_extra_args --silent"
13712fi
13713
13714_ACEOF
13715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13716if \$ac_cs_recheck; then
13717  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13718  shift
13719  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13720  CONFIG_SHELL='$SHELL'
13721  export CONFIG_SHELL
13722  exec "\$@"
13723fi
13724
13725_ACEOF
13726cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13727exec 5>>config.log
13728{
13729  echo
13730  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13731## Running $as_me. ##
13732_ASBOX
13733  $as_echo "$ac_log"
13734} >&5
13735
13736_ACEOF
13737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13738#
13739# INIT-COMMANDS
13740#
13741AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13742
13743
13744# The HP-UX ksh and POSIX shell print the target directory to stdout
13745# if CDPATH is set.
13746(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13747
13748sed_quote_subst='$sed_quote_subst'
13749double_quote_subst='$double_quote_subst'
13750delay_variable_subst='$delay_variable_subst'
13751enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13752macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13753macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13754enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13755pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13756enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13757host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13758host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13759host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13760build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13761build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13762build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13763SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13764Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13765GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13766EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13767FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13768LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13769NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13770LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13771max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13772ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13773exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13774lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13775lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13776lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13777reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13778reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13779OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13780deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13781file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13782AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13783AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13784STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13785RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13786old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13787old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13788old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13789CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13790CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13791compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13792GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13793lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13794lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13795lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
13796lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13797objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13798SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13799ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13800MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13801lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13802lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13803lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13804lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13805lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13806need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13807DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13808NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13809LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13810OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13811OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13812libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13813shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13814extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13815archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13816enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13817export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13818whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13819compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13820old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13821old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13822archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13823archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13824module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13825module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13826with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13827allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13828no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13829hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13830hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13831hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13832hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13833hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13834hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13835hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13836hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13837inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13838link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13839fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13840always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13841export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13842exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13843include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13844prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13845file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13846variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13847need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13848need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13849version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13850runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13851shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13852shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13853libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13854library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13855soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13856postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13857postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13858finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13859finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13860hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13861sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13862sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13863hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13864enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13865enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13866enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13867old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13868striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13869
13870LTCC='$LTCC'
13871LTCFLAGS='$LTCFLAGS'
13872compiler='$compiler_DEFAULT'
13873
13874# Quote evaled strings.
13875for var in SED \
13876GREP \
13877EGREP \
13878FGREP \
13879LD \
13880NM \
13881LN_S \
13882lt_SP2NL \
13883lt_NL2SP \
13884reload_flag \
13885OBJDUMP \
13886deplibs_check_method \
13887file_magic_cmd \
13888AR \
13889AR_FLAGS \
13890STRIP \
13891RANLIB \
13892CC \
13893CFLAGS \
13894compiler \
13895lt_cv_sys_global_symbol_pipe \
13896lt_cv_sys_global_symbol_to_cdecl \
13897lt_cv_sys_global_symbol_to_c_name_address \
13898lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13899SHELL \
13900ECHO \
13901lt_prog_compiler_no_builtin_flag \
13902lt_prog_compiler_wl \
13903lt_prog_compiler_pic \
13904lt_prog_compiler_static \
13905lt_cv_prog_compiler_c_o \
13906need_locks \
13907DSYMUTIL \
13908NMEDIT \
13909LIPO \
13910OTOOL \
13911OTOOL64 \
13912shrext_cmds \
13913export_dynamic_flag_spec \
13914whole_archive_flag_spec \
13915compiler_needs_object \
13916with_gnu_ld \
13917allow_undefined_flag \
13918no_undefined_flag \
13919hardcode_libdir_flag_spec \
13920hardcode_libdir_flag_spec_ld \
13921hardcode_libdir_separator \
13922fix_srcfile_path \
13923exclude_expsyms \
13924include_expsyms \
13925file_list_spec \
13926variables_saved_for_relink \
13927libname_spec \
13928library_names_spec \
13929soname_spec \
13930finish_eval \
13931old_striplib \
13932striplib; do
13933    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13934    *[\\\\\\\`\\"\\\$]*)
13935      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13936      ;;
13937    *)
13938      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13939      ;;
13940    esac
13941done
13942
13943# Double-quote double-evaled strings.
13944for var in reload_cmds \
13945old_postinstall_cmds \
13946old_postuninstall_cmds \
13947old_archive_cmds \
13948extract_expsyms_cmds \
13949old_archive_from_new_cmds \
13950old_archive_from_expsyms_cmds \
13951archive_cmds \
13952archive_expsym_cmds \
13953module_cmds \
13954module_expsym_cmds \
13955export_symbols_cmds \
13956prelink_cmds \
13957postinstall_cmds \
13958postuninstall_cmds \
13959finish_cmds \
13960sys_lib_search_path_spec \
13961sys_lib_dlsearch_path_spec; do
13962    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13963    *[\\\\\\\`\\"\\\$]*)
13964      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13965      ;;
13966    *)
13967      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13968      ;;
13969    esac
13970done
13971
13972# Fix-up fallback echo if it was mangled by the above quoting rules.
13973case \$lt_ECHO in
13974*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13975  ;;
13976esac
13977
13978ac_aux_dir='$ac_aux_dir'
13979xsi_shell='$xsi_shell'
13980lt_shell_append='$lt_shell_append'
13981
13982# See if we are running on zsh, and set the options which allow our
13983# commands through without removal of \ escapes INIT.
13984if test -n "\${ZSH_VERSION+set}" ; then
13985   setopt NO_GLOB_SUBST
13986fi
13987
13988
13989    PACKAGE='$PACKAGE'
13990    VERSION='$VERSION'
13991    TIMESTAMP='$TIMESTAMP'
13992    RM='$RM'
13993    ofile='$ofile'
13994
13995
13996
13997
13998_ACEOF
13999
14000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14001
14002# Handling of arguments.
14003for ac_config_target in $ac_config_targets
14004do
14005  case $ac_config_target in
14006    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14007    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14008    "dist/tcsd.conf") CONFIG_FILES="$CONFIG_FILES dist/tcsd.conf" ;;
14009    "dist/fedora/trousers.spec") CONFIG_FILES="$CONFIG_FILES dist/fedora/trousers.spec" ;;
14010    "dist/trousers.spec") CONFIG_FILES="$CONFIG_FILES dist/trousers.spec" ;;
14011    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14012    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14013    "src/include/Makefile") CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
14014    "src/tcs/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcs/Makefile" ;;
14015    "src/tddl/Makefile") CONFIG_FILES="$CONFIG_FILES src/tddl/Makefile" ;;
14016    "src/tspi/Makefile") CONFIG_FILES="$CONFIG_FILES src/tspi/Makefile" ;;
14017    "src/trspi/Makefile") CONFIG_FILES="$CONFIG_FILES src/trspi/Makefile" ;;
14018    "src/tcsd/Makefile") CONFIG_FILES="$CONFIG_FILES src/tcsd/Makefile" ;;
14019    "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14020    "man/man8/tcsd.8") CONFIG_FILES="$CONFIG_FILES man/man8/tcsd.8" ;;
14021    "man/man5/tcsd.conf.5") CONFIG_FILES="$CONFIG_FILES man/man5/tcsd.conf.5" ;;
14022    "dist/Makefile") CONFIG_FILES="$CONFIG_FILES dist/Makefile" ;;
14023    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
14024    "man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
14025    "man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES man/man5/Makefile" ;;
14026    "man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES man/man8/Makefile" ;;
14027
14028  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
14029  esac
14030done
14031
14032
14033# If the user did not use the arguments to specify the items to instantiate,
14034# then the envvar interface is used.  Set only those that are not.
14035# We use the long form for the default assignment because of an extremely
14036# bizarre bug on SunOS 4.1.3.
14037if $ac_need_defaults; then
14038  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14039  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14040fi
14041
14042# Have a temporary directory for convenience.  Make it in the build tree
14043# simply because there is no reason against having it here, and in addition,
14044# creating and moving files from /tmp can sometimes cause problems.
14045# Hook for its removal unless debugging.
14046# Note that there is a small window in which the directory will not be cleaned:
14047# after its creation but before its name has been assigned to `$tmp'.
14048$debug ||
14049{
14050  tmp=
14051  trap 'exit_status=$?
14052  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14053' 0
14054  trap 'as_fn_exit 1' 1 2 13 15
14055}
14056# Create a (secure) tmp directory for tmp files.
14057
14058{
14059  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14060  test -n "$tmp" && test -d "$tmp"
14061}  ||
14062{
14063  tmp=./conf$$-$RANDOM
14064  (umask 077 && mkdir "$tmp")
14065} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14066
14067# Set up the scripts for CONFIG_FILES section.
14068# No need to generate them if there are no CONFIG_FILES.
14069# This happens for instance with `./config.status config.h'.
14070if test -n "$CONFIG_FILES"; then
14071
14072
14073ac_cr=`echo X | tr X '\015'`
14074# On cygwin, bash can eat \r inside `` if the user requested igncr.
14075# But we know of no other shell where ac_cr would be empty at this
14076# point, so we can use a bashism as a fallback.
14077if test "x$ac_cr" = x; then
14078  eval ac_cr=\$\'\\r\'
14079fi
14080ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14081if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14082  ac_cs_awk_cr='\\r'
14083else
14084  ac_cs_awk_cr=$ac_cr
14085fi
14086
14087echo 'BEGIN {' >"$tmp/subs1.awk" &&
14088_ACEOF
14089
14090
14091{
14092  echo "cat >conf$$subs.awk <<_ACEOF" &&
14093  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14094  echo "_ACEOF"
14095} >conf$$subs.sh ||
14096  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14097ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14098ac_delim='%!_!# '
14099for ac_last_try in false false false false false :; do
14100  . ./conf$$subs.sh ||
14101    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14102
14103  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14104  if test $ac_delim_n = $ac_delim_num; then
14105    break
14106  elif $ac_last_try; then
14107    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14108  else
14109    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14110  fi
14111done
14112rm -f conf$$subs.sh
14113
14114cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14115cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14116_ACEOF
14117sed -n '
14118h
14119s/^/S["/; s/!.*/"]=/
14120p
14121g
14122s/^[^!]*!//
14123:repl
14124t repl
14125s/'"$ac_delim"'$//
14126t delim
14127:nl
14128h
14129s/\(.\{148\}\)..*/\1/
14130t more1
14131s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14132p
14133n
14134b repl
14135:more1
14136s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14137p
14138g
14139s/.\{148\}//
14140t nl
14141:delim
14142h
14143s/\(.\{148\}\)..*/\1/
14144t more2
14145s/["\\]/\\&/g; s/^/"/; s/$/"/
14146p
14147b
14148:more2
14149s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14150p
14151g
14152s/.\{148\}//
14153t delim
14154' <conf$$subs.awk | sed '
14155/^[^""]/{
14156  N
14157  s/\n//
14158}
14159' >>$CONFIG_STATUS || ac_write_fail=1
14160rm -f conf$$subs.awk
14161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14162_ACAWK
14163cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14164  for (key in S) S_is_set[key] = 1
14165  FS = ""
14166
14167}
14168{
14169  line = $ 0
14170  nfields = split(line, field, "@")
14171  substed = 0
14172  len = length(field[1])
14173  for (i = 2; i < nfields; i++) {
14174    key = field[i]
14175    keylen = length(key)
14176    if (S_is_set[key]) {
14177      value = S[key]
14178      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14179      len += length(value) + length(field[++i])
14180      substed = 1
14181    } else
14182      len += 1 + keylen
14183  }
14184
14185  print line
14186}
14187
14188_ACAWK
14189_ACEOF
14190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14191if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14192  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14193else
14194  cat
14195fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14196  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14197_ACEOF
14198
14199# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14200# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14201# trailing colons and then remove the whole line if VPATH becomes empty
14202# (actually we leave an empty line to preserve line numbers).
14203if test "x$srcdir" = x.; then
14204  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
14205h
14206s///
14207s/^/:/
14208s/[	 ]*$/:/
14209s/:\$(srcdir):/:/g
14210s/:\${srcdir}:/:/g
14211s/:@srcdir@:/:/g
14212s/^:*//
14213s/:*$//
14214x
14215s/\(=[	 ]*\).*/\1/
14216G
14217s/\n//
14218s/^[^=]*=[	 ]*$//
14219}'
14220fi
14221
14222cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14223fi # test -n "$CONFIG_FILES"
14224
14225
14226eval set X "  :F $CONFIG_FILES      :C $CONFIG_COMMANDS"
14227shift
14228for ac_tag
14229do
14230  case $ac_tag in
14231  :[FHLC]) ac_mode=$ac_tag; continue;;
14232  esac
14233  case $ac_mode$ac_tag in
14234  :[FHL]*:*);;
14235  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
14236  :[FH]-) ac_tag=-:-;;
14237  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14238  esac
14239  ac_save_IFS=$IFS
14240  IFS=:
14241  set x $ac_tag
14242  IFS=$ac_save_IFS
14243  shift
14244  ac_file=$1
14245  shift
14246
14247  case $ac_mode in
14248  :L) ac_source=$1;;
14249  :[FH])
14250    ac_file_inputs=
14251    for ac_f
14252    do
14253      case $ac_f in
14254      -) ac_f="$tmp/stdin";;
14255      *) # Look for the file first in the build tree, then in the source tree
14256	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14257	 # because $ac_f cannot contain `:'.
14258	 test -f "$ac_f" ||
14259	   case $ac_f in
14260	   [\\/$]*) false;;
14261	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14262	   esac ||
14263	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
14264      esac
14265      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14266      as_fn_append ac_file_inputs " '$ac_f'"
14267    done
14268
14269    # Let's still pretend it is `configure' which instantiates (i.e., don't
14270    # use $as_me), people would be surprised to read:
14271    #    /* config.h.  Generated by config.status.  */
14272    configure_input='Generated from '`
14273	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14274	`' by configure.'
14275    if test x"$ac_file" != x-; then
14276      configure_input="$ac_file.  $configure_input"
14277      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14278$as_echo "$as_me: creating $ac_file" >&6;}
14279    fi
14280    # Neutralize special characters interpreted by sed in replacement strings.
14281    case $configure_input in #(
14282    *\&* | *\|* | *\\* )
14283       ac_sed_conf_input=`$as_echo "$configure_input" |
14284       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14285    *) ac_sed_conf_input=$configure_input;;
14286    esac
14287
14288    case $ac_tag in
14289    *:-:* | *:-) cat >"$tmp/stdin" \
14290      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
14291    esac
14292    ;;
14293  esac
14294
14295  ac_dir=`$as_dirname -- "$ac_file" ||
14296$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14297	 X"$ac_file" : 'X\(//\)[^/]' \| \
14298	 X"$ac_file" : 'X\(//\)$' \| \
14299	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14300$as_echo X"$ac_file" |
14301    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14302	    s//\1/
14303	    q
14304	  }
14305	  /^X\(\/\/\)[^/].*/{
14306	    s//\1/
14307	    q
14308	  }
14309	  /^X\(\/\/\)$/{
14310	    s//\1/
14311	    q
14312	  }
14313	  /^X\(\/\).*/{
14314	    s//\1/
14315	    q
14316	  }
14317	  s/.*/./; q'`
14318  as_dir="$ac_dir"; as_fn_mkdir_p
14319  ac_builddir=.
14320
14321case "$ac_dir" in
14322.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14323*)
14324  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14325  # A ".." for each directory in $ac_dir_suffix.
14326  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14327  case $ac_top_builddir_sub in
14328  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14329  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14330  esac ;;
14331esac
14332ac_abs_top_builddir=$ac_pwd
14333ac_abs_builddir=$ac_pwd$ac_dir_suffix
14334# for backward compatibility:
14335ac_top_builddir=$ac_top_build_prefix
14336
14337case $srcdir in
14338  .)  # We are building in place.
14339    ac_srcdir=.
14340    ac_top_srcdir=$ac_top_builddir_sub
14341    ac_abs_top_srcdir=$ac_pwd ;;
14342  [\\/]* | ?:[\\/]* )  # Absolute name.
14343    ac_srcdir=$srcdir$ac_dir_suffix;
14344    ac_top_srcdir=$srcdir
14345    ac_abs_top_srcdir=$srcdir ;;
14346  *) # Relative name.
14347    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14348    ac_top_srcdir=$ac_top_build_prefix$srcdir
14349    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14350esac
14351ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14352
14353
14354  case $ac_mode in
14355  :F)
14356  #
14357  # CONFIG_FILE
14358  #
14359
14360  case $INSTALL in
14361  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14362  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14363  esac
14364  ac_MKDIR_P=$MKDIR_P
14365  case $MKDIR_P in
14366  [\\/$]* | ?:[\\/]* ) ;;
14367  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14368  esac
14369_ACEOF
14370
14371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372# If the template does not know about datarootdir, expand it.
14373# FIXME: This hack should be removed a few years after 2.60.
14374ac_datarootdir_hack=; ac_datarootdir_seen=
14375ac_sed_dataroot='
14376/datarootdir/ {
14377  p
14378  q
14379}
14380/@datadir@/p
14381/@docdir@/p
14382/@infodir@/p
14383/@localedir@/p
14384/@mandir@/p'
14385case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14386*datarootdir*) ac_datarootdir_seen=yes;;
14387*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14388  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14389$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14390_ACEOF
14391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14392  ac_datarootdir_hack='
14393  s&@datadir@&$datadir&g
14394  s&@docdir@&$docdir&g
14395  s&@infodir@&$infodir&g
14396  s&@localedir@&$localedir&g
14397  s&@mandir@&$mandir&g
14398  s&\\\${datarootdir}&$datarootdir&g' ;;
14399esac
14400_ACEOF
14401
14402# Neutralize VPATH when `$srcdir' = `.'.
14403# Shell code in configure.ac might set extrasub.
14404# FIXME: do we really want to maintain this feature?
14405cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14406ac_sed_extra="$ac_vpsub
14407$extrasub
14408_ACEOF
14409cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14410:t
14411/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14412s|@configure_input@|$ac_sed_conf_input|;t t
14413s&@top_builddir@&$ac_top_builddir_sub&;t t
14414s&@top_build_prefix@&$ac_top_build_prefix&;t t
14415s&@srcdir@&$ac_srcdir&;t t
14416s&@abs_srcdir@&$ac_abs_srcdir&;t t
14417s&@top_srcdir@&$ac_top_srcdir&;t t
14418s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14419s&@builddir@&$ac_builddir&;t t
14420s&@abs_builddir@&$ac_abs_builddir&;t t
14421s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14422s&@INSTALL@&$ac_INSTALL&;t t
14423s&@MKDIR_P@&$ac_MKDIR_P&;t t
14424$ac_datarootdir_hack
14425"
14426eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14427  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14428
14429test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14430  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14431  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14432  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14433which seems to be undefined.  Please make sure it is defined" >&5
14434$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14435which seems to be undefined.  Please make sure it is defined" >&2;}
14436
14437  rm -f "$tmp/stdin"
14438  case $ac_file in
14439  -) cat "$tmp/out" && rm -f "$tmp/out";;
14440  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14441  esac \
14442  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14443 ;;
14444
14445
14446  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14447$as_echo "$as_me: executing $ac_file commands" >&6;}
14448 ;;
14449  esac
14450
14451
14452  case $ac_file$ac_mode in
14453    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14454  # Autoconf 2.62 quotes --file arguments for eval, but not when files
14455  # are listed without --file.  Let's play safe and only enable the eval
14456  # if we detect the quoting.
14457  case $CONFIG_FILES in
14458  *\'*) eval set x "$CONFIG_FILES" ;;
14459  *)   set x $CONFIG_FILES ;;
14460  esac
14461  shift
14462  for mf
14463  do
14464    # Strip MF so we end up with the name of the file.
14465    mf=`echo "$mf" | sed -e 's/:.*$//'`
14466    # Check whether this is an Automake generated Makefile or not.
14467    # We used to match only the files named `Makefile.in', but
14468    # some people rename them; so instead we look at the file content.
14469    # Grep'ing the first line is not enough: some people post-process
14470    # each Makefile.in and add a new line on top of each file to say so.
14471    # Grep'ing the whole file is not good either: AIX grep has a line
14472    # limit of 2048, but all sed's we know have understand at least 4000.
14473    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14474      dirpart=`$as_dirname -- "$mf" ||
14475$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14476	 X"$mf" : 'X\(//\)[^/]' \| \
14477	 X"$mf" : 'X\(//\)$' \| \
14478	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14479$as_echo X"$mf" |
14480    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14481	    s//\1/
14482	    q
14483	  }
14484	  /^X\(\/\/\)[^/].*/{
14485	    s//\1/
14486	    q
14487	  }
14488	  /^X\(\/\/\)$/{
14489	    s//\1/
14490	    q
14491	  }
14492	  /^X\(\/\).*/{
14493	    s//\1/
14494	    q
14495	  }
14496	  s/.*/./; q'`
14497    else
14498      continue
14499    fi
14500    # Extract the definition of DEPDIR, am__include, and am__quote
14501    # from the Makefile without running `make'.
14502    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14503    test -z "$DEPDIR" && continue
14504    am__include=`sed -n 's/^am__include = //p' < "$mf"`
14505    test -z "am__include" && continue
14506    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14507    # When using ansi2knr, U may be empty or an underscore; expand it
14508    U=`sed -n 's/^U = //p' < "$mf"`
14509    # Find all dependency output files, they are included files with
14510    # $(DEPDIR) in their names.  We invoke sed twice because it is the
14511    # simplest approach to changing $(DEPDIR) to its actual value in the
14512    # expansion.
14513    for file in `sed -n "
14514      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14515	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14516      # Make sure the directory exists.
14517      test -f "$dirpart/$file" && continue
14518      fdir=`$as_dirname -- "$file" ||
14519$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14520	 X"$file" : 'X\(//\)[^/]' \| \
14521	 X"$file" : 'X\(//\)$' \| \
14522	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14523$as_echo X"$file" |
14524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14525	    s//\1/
14526	    q
14527	  }
14528	  /^X\(\/\/\)[^/].*/{
14529	    s//\1/
14530	    q
14531	  }
14532	  /^X\(\/\/\)$/{
14533	    s//\1/
14534	    q
14535	  }
14536	  /^X\(\/\).*/{
14537	    s//\1/
14538	    q
14539	  }
14540	  s/.*/./; q'`
14541      as_dir=$dirpart/$fdir; as_fn_mkdir_p
14542      # echo "creating $dirpart/$file"
14543      echo '# dummy' > "$dirpart/$file"
14544    done
14545  done
14546}
14547 ;;
14548    "libtool":C)
14549
14550    # See if we are running on zsh, and set the options which allow our
14551    # commands through without removal of \ escapes.
14552    if test -n "${ZSH_VERSION+set}" ; then
14553      setopt NO_GLOB_SUBST
14554    fi
14555
14556    cfgfile="${ofile}T"
14557    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14558    $RM "$cfgfile"
14559
14560    cat <<_LT_EOF >> "$cfgfile"
14561#! $SHELL
14562
14563# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14564# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14565# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14566# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14567#
14568#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14569#                 2006, 2007, 2008 Free Software Foundation, Inc.
14570#   Written by Gordon Matzigkeit, 1996
14571#
14572#   This file is part of GNU Libtool.
14573#
14574# GNU Libtool is free software; you can redistribute it and/or
14575# modify it under the terms of the GNU General Public License as
14576# published by the Free Software Foundation; either version 2 of
14577# the License, or (at your option) any later version.
14578#
14579# As a special exception to the GNU General Public License,
14580# if you distribute this file as part of a program or library that
14581# is built using GNU Libtool, you may include this file under the
14582# same distribution terms that you use for the rest of that program.
14583#
14584# GNU Libtool is distributed in the hope that it will be useful,
14585# but WITHOUT ANY WARRANTY; without even the implied warranty of
14586# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14587# GNU General Public License for more details.
14588#
14589# You should have received a copy of the GNU General Public License
14590# along with GNU Libtool; see the file COPYING.  If not, a copy
14591# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14592# obtained by writing to the Free Software Foundation, Inc.,
14593# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14594
14595
14596# The names of the tagged configurations supported by this script.
14597available_tags=""
14598
14599# ### BEGIN LIBTOOL CONFIG
14600
14601# Whether or not to build static libraries.
14602build_old_libs=$enable_static
14603
14604# Which release of libtool.m4 was used?
14605macro_version=$macro_version
14606macro_revision=$macro_revision
14607
14608# Whether or not to build shared libraries.
14609build_libtool_libs=$enable_shared
14610
14611# What type of objects to build.
14612pic_mode=$pic_mode
14613
14614# Whether or not to optimize for fast installation.
14615fast_install=$enable_fast_install
14616
14617# The host system.
14618host_alias=$host_alias
14619host=$host
14620host_os=$host_os
14621
14622# The build system.
14623build_alias=$build_alias
14624build=$build
14625build_os=$build_os
14626
14627# A sed program that does not truncate output.
14628SED=$lt_SED
14629
14630# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14631Xsed="\$SED -e 1s/^X//"
14632
14633# A grep program that handles long lines.
14634GREP=$lt_GREP
14635
14636# An ERE matcher.
14637EGREP=$lt_EGREP
14638
14639# A literal string matcher.
14640FGREP=$lt_FGREP
14641
14642# A BSD- or MS-compatible name lister.
14643NM=$lt_NM
14644
14645# Whether we need soft or hard links.
14646LN_S=$lt_LN_S
14647
14648# What is the maximum length of a command?
14649max_cmd_len=$max_cmd_len
14650
14651# Object file suffix (normally "o").
14652objext=$ac_objext
14653
14654# Executable file suffix (normally "").
14655exeext=$exeext
14656
14657# whether the shell understands "unset".
14658lt_unset=$lt_unset
14659
14660# turn spaces into newlines.
14661SP2NL=$lt_lt_SP2NL
14662
14663# turn newlines into spaces.
14664NL2SP=$lt_lt_NL2SP
14665
14666# How to create reloadable object files.
14667reload_flag=$lt_reload_flag
14668reload_cmds=$lt_reload_cmds
14669
14670# An object symbol dumper.
14671OBJDUMP=$lt_OBJDUMP
14672
14673# Method to check whether dependent libraries are shared objects.
14674deplibs_check_method=$lt_deplibs_check_method
14675
14676# Command to use when deplibs_check_method == "file_magic".
14677file_magic_cmd=$lt_file_magic_cmd
14678
14679# The archiver.
14680AR=$lt_AR
14681AR_FLAGS=$lt_AR_FLAGS
14682
14683# A symbol stripping program.
14684STRIP=$lt_STRIP
14685
14686# Commands used to install an old-style archive.
14687RANLIB=$lt_RANLIB
14688old_postinstall_cmds=$lt_old_postinstall_cmds
14689old_postuninstall_cmds=$lt_old_postuninstall_cmds
14690
14691# A C compiler.
14692LTCC=$lt_CC
14693
14694# LTCC compiler flags.
14695LTCFLAGS=$lt_CFLAGS
14696
14697# Take the output of nm and produce a listing of raw symbols and C names.
14698global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14699
14700# Transform the output of nm in a proper C declaration.
14701global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14702
14703# Transform the output of nm in a C name address pair.
14704global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14705
14706# Transform the output of nm in a C name address pair when lib prefix is needed.
14707global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14708
14709# The name of the directory that contains temporary libtool files.
14710objdir=$objdir
14711
14712# Shell to use when invoking shell scripts.
14713SHELL=$lt_SHELL
14714
14715# An echo program that does not interpret backslashes.
14716ECHO=$lt_ECHO
14717
14718# Used to examine libraries when file_magic_cmd begins with "file".
14719MAGIC_CMD=$MAGIC_CMD
14720
14721# Must we lock files when doing compilation?
14722need_locks=$lt_need_locks
14723
14724# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14725DSYMUTIL=$lt_DSYMUTIL
14726
14727# Tool to change global to local symbols on Mac OS X.
14728NMEDIT=$lt_NMEDIT
14729
14730# Tool to manipulate fat objects and archives on Mac OS X.
14731LIPO=$lt_LIPO
14732
14733# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14734OTOOL=$lt_OTOOL
14735
14736# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14737OTOOL64=$lt_OTOOL64
14738
14739# Old archive suffix (normally "a").
14740libext=$libext
14741
14742# Shared library suffix (normally ".so").
14743shrext_cmds=$lt_shrext_cmds
14744
14745# The commands to extract the exported symbol list from a shared archive.
14746extract_expsyms_cmds=$lt_extract_expsyms_cmds
14747
14748# Variables whose values should be saved in libtool wrapper scripts and
14749# restored at link time.
14750variables_saved_for_relink=$lt_variables_saved_for_relink
14751
14752# Do we need the "lib" prefix for modules?
14753need_lib_prefix=$need_lib_prefix
14754
14755# Do we need a version for libraries?
14756need_version=$need_version
14757
14758# Library versioning type.
14759version_type=$version_type
14760
14761# Shared library runtime path variable.
14762runpath_var=$runpath_var
14763
14764# Shared library path variable.
14765shlibpath_var=$shlibpath_var
14766
14767# Is shlibpath searched before the hard-coded library search path?
14768shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14769
14770# Format of library name prefix.
14771libname_spec=$lt_libname_spec
14772
14773# List of archive names.  First name is the real one, the rest are links.
14774# The last name is the one that the linker finds with -lNAME
14775library_names_spec=$lt_library_names_spec
14776
14777# The coded name of the library, if different from the real name.
14778soname_spec=$lt_soname_spec
14779
14780# Command to use after installation of a shared archive.
14781postinstall_cmds=$lt_postinstall_cmds
14782
14783# Command to use after uninstallation of a shared archive.
14784postuninstall_cmds=$lt_postuninstall_cmds
14785
14786# Commands used to finish a libtool library installation in a directory.
14787finish_cmds=$lt_finish_cmds
14788
14789# As "finish_cmds", except a single script fragment to be evaled but
14790# not shown.
14791finish_eval=$lt_finish_eval
14792
14793# Whether we should hardcode library paths into libraries.
14794hardcode_into_libs=$hardcode_into_libs
14795
14796# Compile-time system search path for libraries.
14797sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14798
14799# Run-time system search path for libraries.
14800sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14801
14802# Whether dlopen is supported.
14803dlopen_support=$enable_dlopen
14804
14805# Whether dlopen of programs is supported.
14806dlopen_self=$enable_dlopen_self
14807
14808# Whether dlopen of statically linked programs is supported.
14809dlopen_self_static=$enable_dlopen_self_static
14810
14811# Commands to strip libraries.
14812old_striplib=$lt_old_striplib
14813striplib=$lt_striplib
14814
14815
14816# The linker used to build libraries.
14817LD=$lt_LD
14818
14819# Commands used to build an old-style archive.
14820old_archive_cmds=$lt_old_archive_cmds
14821
14822# A language specific compiler.
14823CC=$lt_compiler
14824
14825# Is the compiler the GNU compiler?
14826with_gcc=$GCC
14827
14828# Compiler flag to turn off builtin functions.
14829no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14830
14831# How to pass a linker flag through the compiler.
14832wl=$lt_lt_prog_compiler_wl
14833
14834# Additional compiler flags for building library objects.
14835pic_flag=$lt_lt_prog_compiler_pic
14836
14837# Compiler flag to prevent dynamic linking.
14838link_static_flag=$lt_lt_prog_compiler_static
14839
14840# Does compiler simultaneously support -c and -o options?
14841compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14842
14843# Whether or not to add -lc for building shared libraries.
14844build_libtool_need_lc=$archive_cmds_need_lc
14845
14846# Whether or not to disallow shared libs when runtime libs are static.
14847allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14848
14849# Compiler flag to allow reflexive dlopens.
14850export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14851
14852# Compiler flag to generate shared objects directly from archives.
14853whole_archive_flag_spec=$lt_whole_archive_flag_spec
14854
14855# Whether the compiler copes with passing no objects directly.
14856compiler_needs_object=$lt_compiler_needs_object
14857
14858# Create an old-style archive from a shared archive.
14859old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14860
14861# Create a temporary old-style archive to link instead of a shared archive.
14862old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14863
14864# Commands used to build a shared archive.
14865archive_cmds=$lt_archive_cmds
14866archive_expsym_cmds=$lt_archive_expsym_cmds
14867
14868# Commands used to build a loadable module if different from building
14869# a shared archive.
14870module_cmds=$lt_module_cmds
14871module_expsym_cmds=$lt_module_expsym_cmds
14872
14873# Whether we are building with GNU ld or not.
14874with_gnu_ld=$lt_with_gnu_ld
14875
14876# Flag that allows shared libraries with undefined symbols to be built.
14877allow_undefined_flag=$lt_allow_undefined_flag
14878
14879# Flag that enforces no undefined symbols.
14880no_undefined_flag=$lt_no_undefined_flag
14881
14882# Flag to hardcode \$libdir into a binary during linking.
14883# This must work even if \$libdir does not exist
14884hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14885
14886# If ld is used when linking, flag to hardcode \$libdir into a binary
14887# during linking.  This must work even if \$libdir does not exist.
14888hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14889
14890# Whether we need a single "-rpath" flag with a separated argument.
14891hardcode_libdir_separator=$lt_hardcode_libdir_separator
14892
14893# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14894# DIR into the resulting binary.
14895hardcode_direct=$hardcode_direct
14896
14897# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14898# DIR into the resulting binary and the resulting library dependency is
14899# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14900# library is relocated.
14901hardcode_direct_absolute=$hardcode_direct_absolute
14902
14903# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14904# into the resulting binary.
14905hardcode_minus_L=$hardcode_minus_L
14906
14907# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14908# into the resulting binary.
14909hardcode_shlibpath_var=$hardcode_shlibpath_var
14910
14911# Set to "yes" if building a shared library automatically hardcodes DIR
14912# into the library and all subsequent libraries and executables linked
14913# against it.
14914hardcode_automatic=$hardcode_automatic
14915
14916# Set to yes if linker adds runtime paths of dependent libraries
14917# to runtime path list.
14918inherit_rpath=$inherit_rpath
14919
14920# Whether libtool must link a program against all its dependency libraries.
14921link_all_deplibs=$link_all_deplibs
14922
14923# Fix the shell variable \$srcfile for the compiler.
14924fix_srcfile_path=$lt_fix_srcfile_path
14925
14926# Set to "yes" if exported symbols are required.
14927always_export_symbols=$always_export_symbols
14928
14929# The commands to list exported symbols.
14930export_symbols_cmds=$lt_export_symbols_cmds
14931
14932# Symbols that should not be listed in the preloaded symbols.
14933exclude_expsyms=$lt_exclude_expsyms
14934
14935# Symbols that must always be exported.
14936include_expsyms=$lt_include_expsyms
14937
14938# Commands necessary for linking programs (against libraries) with templates.
14939prelink_cmds=$lt_prelink_cmds
14940
14941# Specify filename containing input files.
14942file_list_spec=$lt_file_list_spec
14943
14944# How to hardcode a shared library path into an executable.
14945hardcode_action=$hardcode_action
14946
14947# ### END LIBTOOL CONFIG
14948
14949_LT_EOF
14950
14951  case $host_os in
14952  aix3*)
14953    cat <<\_LT_EOF >> "$cfgfile"
14954# AIX sometimes has problems with the GCC collect2 program.  For some
14955# reason, if we set the COLLECT_NAMES environment variable, the problems
14956# vanish in a puff of smoke.
14957if test "X${COLLECT_NAMES+set}" != Xset; then
14958  COLLECT_NAMES=
14959  export COLLECT_NAMES
14960fi
14961_LT_EOF
14962    ;;
14963  esac
14964
14965
14966ltmain="$ac_aux_dir/ltmain.sh"
14967
14968
14969  # We use sed instead of cat because bash on DJGPP gets confused if
14970  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
14971  # text mode, it properly converts lines to CR/LF.  This bash problem
14972  # is reportedly fixed, but why not run on old versions too?
14973  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14974    || (rm -f "$cfgfile"; exit 1)
14975
14976  case $xsi_shell in
14977  yes)
14978    cat << \_LT_EOF >> "$cfgfile"
14979
14980# func_dirname file append nondir_replacement
14981# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
14982# otherwise set result to NONDIR_REPLACEMENT.
14983func_dirname ()
14984{
14985  case ${1} in
14986    */*) func_dirname_result="${1%/*}${2}" ;;
14987    *  ) func_dirname_result="${3}" ;;
14988  esac
14989}
14990
14991# func_basename file
14992func_basename ()
14993{
14994  func_basename_result="${1##*/}"
14995}
14996
14997# func_dirname_and_basename file append nondir_replacement
14998# perform func_basename and func_dirname in a single function
14999# call:
15000#   dirname:  Compute the dirname of FILE.  If nonempty,
15001#             add APPEND to the result, otherwise set result
15002#             to NONDIR_REPLACEMENT.
15003#             value returned in "$func_dirname_result"
15004#   basename: Compute filename of FILE.
15005#             value retuned in "$func_basename_result"
15006# Implementation must be kept synchronized with func_dirname
15007# and func_basename. For efficiency, we do not delegate to
15008# those functions but instead duplicate the functionality here.
15009func_dirname_and_basename ()
15010{
15011  case ${1} in
15012    */*) func_dirname_result="${1%/*}${2}" ;;
15013    *  ) func_dirname_result="${3}" ;;
15014  esac
15015  func_basename_result="${1##*/}"
15016}
15017
15018# func_stripname prefix suffix name
15019# strip PREFIX and SUFFIX off of NAME.
15020# PREFIX and SUFFIX must not contain globbing or regex special
15021# characters, hashes, percent signs, but SUFFIX may contain a leading
15022# dot (in which case that matches only a dot).
15023func_stripname ()
15024{
15025  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15026  # positional parameters, so assign one to ordinary parameter first.
15027  func_stripname_result=${3}
15028  func_stripname_result=${func_stripname_result#"${1}"}
15029  func_stripname_result=${func_stripname_result%"${2}"}
15030}
15031
15032# func_opt_split
15033func_opt_split ()
15034{
15035  func_opt_split_opt=${1%%=*}
15036  func_opt_split_arg=${1#*=}
15037}
15038
15039# func_lo2o object
15040func_lo2o ()
15041{
15042  case ${1} in
15043    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15044    *)    func_lo2o_result=${1} ;;
15045  esac
15046}
15047
15048# func_xform libobj-or-source
15049func_xform ()
15050{
15051  func_xform_result=${1%.*}.lo
15052}
15053
15054# func_arith arithmetic-term...
15055func_arith ()
15056{
15057  func_arith_result=$(( $* ))
15058}
15059
15060# func_len string
15061# STRING may not start with a hyphen.
15062func_len ()
15063{
15064  func_len_result=${#1}
15065}
15066
15067_LT_EOF
15068    ;;
15069  *) # Bourne compatible functions.
15070    cat << \_LT_EOF >> "$cfgfile"
15071
15072# func_dirname file append nondir_replacement
15073# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
15074# otherwise set result to NONDIR_REPLACEMENT.
15075func_dirname ()
15076{
15077  # Extract subdirectory from the argument.
15078  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15079  if test "X$func_dirname_result" = "X${1}"; then
15080    func_dirname_result="${3}"
15081  else
15082    func_dirname_result="$func_dirname_result${2}"
15083  fi
15084}
15085
15086# func_basename file
15087func_basename ()
15088{
15089  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15090}
15091
15092
15093# func_stripname prefix suffix name
15094# strip PREFIX and SUFFIX off of NAME.
15095# PREFIX and SUFFIX must not contain globbing or regex special
15096# characters, hashes, percent signs, but SUFFIX may contain a leading
15097# dot (in which case that matches only a dot).
15098# func_strip_suffix prefix name
15099func_stripname ()
15100{
15101  case ${2} in
15102    .*) func_stripname_result=`$ECHO "X${3}" \
15103           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
15104    *)  func_stripname_result=`$ECHO "X${3}" \
15105           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
15106  esac
15107}
15108
15109# sed scripts:
15110my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
15111my_sed_long_arg='1s/^-[^=]*=//'
15112
15113# func_opt_split
15114func_opt_split ()
15115{
15116  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
15117  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
15118}
15119
15120# func_lo2o object
15121func_lo2o ()
15122{
15123  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
15124}
15125
15126# func_xform libobj-or-source
15127func_xform ()
15128{
15129  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
15130}
15131
15132# func_arith arithmetic-term...
15133func_arith ()
15134{
15135  func_arith_result=`expr "$@"`
15136}
15137
15138# func_len string
15139# STRING may not start with a hyphen.
15140func_len ()
15141{
15142  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
15143}
15144
15145_LT_EOF
15146esac
15147
15148case $lt_shell_append in
15149  yes)
15150    cat << \_LT_EOF >> "$cfgfile"
15151
15152# func_append var value
15153# Append VALUE to the end of shell variable VAR.
15154func_append ()
15155{
15156  eval "$1+=\$2"
15157}
15158_LT_EOF
15159    ;;
15160  *)
15161    cat << \_LT_EOF >> "$cfgfile"
15162
15163# func_append var value
15164# Append VALUE to the end of shell variable VAR.
15165func_append ()
15166{
15167  eval "$1=\$$1\$2"
15168}
15169
15170_LT_EOF
15171    ;;
15172  esac
15173
15174
15175  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
15176    || (rm -f "$cfgfile"; exit 1)
15177
15178  mv -f "$cfgfile" "$ofile" ||
15179    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15180  chmod +x "$ofile"
15181
15182 ;;
15183
15184  esac
15185done # for ac_tag
15186
15187
15188as_fn_exit 0
15189_ACEOF
15190ac_clean_files=$ac_clean_files_save
15191
15192test $ac_write_fail = 0 ||
15193  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15194
15195
15196# configure is writing to config.log, and then calls config.status.
15197# config.status does its own redirection, appending to config.log.
15198# Unfortunately, on DOS this fails, as config.log is still kept open
15199# by configure, so config.status won't be able to write to it; its
15200# output is simply discarded.  So we exec the FD to /dev/null,
15201# effectively closing config.log, so it can be properly (re)opened and
15202# appended to by config.status.  When coming back to configure, we
15203# need to make the FD available again.
15204if test "$no_create" != yes; then
15205  ac_cs_success=:
15206  ac_config_status_args=
15207  test "$silent" = yes &&
15208    ac_config_status_args="$ac_config_status_args --quiet"
15209  exec 5>/dev/null
15210  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15211  exec 5>>config.log
15212  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15213  # would make configure fail if this is the last instruction.
15214  $ac_cs_success || as_fn_exit 1
15215fi
15216if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15217  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15218$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15219fi
15220
15221
15222echo "CFLAGS=$CFLAGS"
15223
15224