1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for TRE 0.8.0.
4#
5# Report bugs to <tre-general@lists.laurikari.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# 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: tre-general@lists.laurikari.net about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script 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 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=$?; test $as_status -eq 0 && as_status=1
370  if test "$3"; then
371    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373  fi
374  $as_echo "$as_me: error: $1" >&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$ECHO in
537X*--fallback-echo)
538  # Remove one level of quotation (which was required for Make).
539  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
540  ;;
541esac
542
543echo=${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 <<EOF
562$*
563EOF
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 "$ECHO"; then
572if 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       echo_test_string=`eval $cmd` &&
578       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
579    then
580      break
581    fi
582  done
583fi
584
585if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
586   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
587   test "X$echo_testing_string" = "X$echo_test_string"; then
588  :
589else
590  # The Solaris, AIX, and Digital Unix default echo programs unquote
591  # backslashes.  This makes it impossible to quote backslashes using
592  #   echo "$something" | sed 's/\\/\\\\/g'
593  #
594  # So, first we look for a working echo in the user's PATH.
595
596  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597  for dir in $PATH /usr/ucb; do
598    IFS="$lt_save_ifs"
599    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602       test "X$echo_testing_string" = "X$echo_test_string"; then
603      echo="$dir/echo"
604      break
605    fi
606  done
607  IFS="$lt_save_ifs"
608
609  if test "X$echo" = Xecho; then
610    # We didn't find a better echo, so look for alternatives.
611    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
612       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
613       test "X$echo_testing_string" = "X$echo_test_string"; then
614      # This shell has a builtin print -r that does the trick.
615      echo='print -r'
616    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
617	 test "X$CONFIG_SHELL" != X/bin/ksh; then
618      # If we have ksh, try running configure again with it.
619      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620      export ORIGINAL_CONFIG_SHELL
621      CONFIG_SHELL=/bin/ksh
622      export CONFIG_SHELL
623      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624    else
625      # Try using printf.
626      echo='printf %s\n'
627      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629	 test "X$echo_testing_string" = "X$echo_test_string"; then
630	# Cool, printf works
631	:
632      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	   test "X$echo_testing_string" = 'X\t' &&
634	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	   test "X$echo_testing_string" = "X$echo_test_string"; then
636	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	export CONFIG_SHELL
638	SHELL="$CONFIG_SHELL"
639	export SHELL
640	echo="$CONFIG_SHELL $0 --fallback-echo"
641      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	   test "X$echo_testing_string" = 'X\t' &&
643	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	   test "X$echo_testing_string" = "X$echo_test_string"; then
645	echo="$CONFIG_SHELL $0 --fallback-echo"
646      else
647	# maybe with a smaller string...
648	prev=:
649
650	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
652	  then
653	    break
654	  fi
655	  prev="$cmd"
656	done
657
658	if test "$prev" != 'sed 50q "$0"'; then
659	  echo_test_string=`eval $prev`
660	  export echo_test_string
661	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	else
663	  # Oops.  We lost completely, so just stick with echo.
664	  echo=echo
665	fi
666      fi
667    fi
668  fi
669fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674ECHO=$echo
675if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='TRE'
704PACKAGE_TARNAME='tre'
705PACKAGE_VERSION='0.8.0'
706PACKAGE_STRING='TRE 0.8.0'
707PACKAGE_BUGREPORT='tre-general@lists.laurikari.net'
708PACKAGE_URL=''
709
710ac_unique_file="lib/regcomp.c"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747gt_needs=
748ac_subst_vars='LTLIBOBJS
749LIBOBJS
750LIBTOOL
751OBJDUMP
752AS
753DLLTOOL
754NMEDIT
755DSYMUTIL
756RANLIB
757AR
758ECHO
759LN_S
760SED
761POSUB
762LTLIBINTL
763LIBINTL
764INTLLIBS
765LTLIBICONV
766LIBICONV
767INTL_MACOSX_LIBS
768XGETTEXT_EXTRA_OPTIONS
769MSGMERGE
770XGETTEXT_015
771XGETTEXT
772GMSGFMT_015
773MSGFMT_015
774GMSGFMT
775MSGFMT
776GETTEXT_MACRO_VERSION
777USE_NLS
778TRE_MULTIBYTE_FALSE
779TRE_MULTIBYTE_TRUE
780ALLOCA
781EGREP
782GREP
783TRE_AGREP_FALSE
784TRE_AGREP_TRUE
785TRE_APPROX_FALSE
786TRE_APPROX_TRUE
787TRE_PROFILE_FALSE
788TRE_PROFILE_TRUE
789TRE_DEBUG_FALSE
790TRE_DEBUG_TRUE
791TRE_VERSION
792CPP
793am__fastdepCC_FALSE
794am__fastdepCC_TRUE
795CCDEPMODE
796AMDEPBACKSLASH
797AMDEP_FALSE
798AMDEP_TRUE
799am__quote
800am__include
801DEPDIR
802OBJEXT
803EXEEXT
804ac_ct_CC
805CPPFLAGS
806LDFLAGS
807CFLAGS
808CC
809am__untar
810am__tar
811AMTAR
812am__leading_dot
813SET_MAKE
814AWK
815mkdir_p
816MKDIR_P
817INSTALL_STRIP_PROGRAM
818STRIP
819install_sh
820MAKEINFO
821AUTOHEADER
822AUTOMAKE
823AUTOCONF
824ACLOCAL
825VERSION
826PACKAGE
827CYGPATH_W
828am__isrc
829INSTALL_DATA
830INSTALL_SCRIPT
831INSTALL_PROGRAM
832target_os
833target_vendor
834target_cpu
835target
836host_os
837host_vendor
838host_cpu
839host
840build_os
841build_vendor
842build_cpu
843build
844target_alias
845host_alias
846build_alias
847LIBS
848ECHO_T
849ECHO_N
850ECHO_C
851DEFS
852mandir
853localedir
854libdir
855psdir
856pdfdir
857dvidir
858htmldir
859infodir
860docdir
861oldincludedir
862includedir
863localstatedir
864sharedstatedir
865sysconfdir
866datadir
867datarootdir
868libexecdir
869sbindir
870bindir
871program_transform_name
872prefix
873exec_prefix
874PACKAGE_URL
875PACKAGE_BUGREPORT
876PACKAGE_STRING
877PACKAGE_VERSION
878PACKAGE_TARNAME
879PACKAGE_NAME
880PATH_SEPARATOR
881SHELL'
882ac_subst_files=''
883ac_user_opts='
884enable_option_checking
885enable_dependency_tracking
886enable_profile
887enable_debug
888enable_warnings
889enable_approx
890enable_agrep
891with_alloca
892enable_system_abi
893enable_wchar
894with_libutf8
895enable_multibyte
896enable_largefile
897enable_nls
898with_gnu_ld
899enable_rpath
900with_libiconv_prefix
901with_libintl_prefix
902enable_static
903enable_shared
904enable_fast_install
905enable_libtool_lock
906with_pic
907'
908      ac_precious_vars='build_alias
909host_alias
910target_alias
911CC
912CFLAGS
913LDFLAGS
914LIBS
915CPPFLAGS
916CPP'
917
918
919# Initialize some variables set by options.
920ac_init_help=
921ac_init_version=false
922ac_unrecognized_opts=
923ac_unrecognized_sep=
924# The variables have the same names as the options, with
925# dashes changed to underlines.
926cache_file=/dev/null
927exec_prefix=NONE
928no_create=
929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
937verbose=
938x_includes=NONE
939x_libraries=NONE
940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
946# (The list follows the same order as the GNU Coding Standards.)
947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
955includedir='${prefix}/include'
956oldincludedir='/usr/include'
957docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
958infodir='${datarootdir}/info'
959htmldir='${docdir}'
960dvidir='${docdir}'
961pdfdir='${docdir}'
962psdir='${docdir}'
963libdir='${exec_prefix}/lib'
964localedir='${datarootdir}/locale'
965mandir='${datarootdir}/man'
966
967ac_prev=
968ac_dashdash=
969for ac_option
970do
971  # If the previous option needs an argument, assign it.
972  if test -n "$ac_prev"; then
973    eval $ac_prev=\$ac_option
974    ac_prev=
975    continue
976  fi
977
978  case $ac_option in
979  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
980  *)	ac_optarg=yes ;;
981  esac
982
983  # Accept the important Cygnus configure options, so we can diagnose typos.
984
985  case $ac_dashdash$ac_option in
986  --)
987    ac_dashdash=yes ;;
988
989  -bindir | --bindir | --bindi | --bind | --bin | --bi)
990    ac_prev=bindir ;;
991  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
992    bindir=$ac_optarg ;;
993
994  -build | --build | --buil | --bui | --bu)
995    ac_prev=build_alias ;;
996  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
997    build_alias=$ac_optarg ;;
998
999  -cache-file | --cache-file | --cache-fil | --cache-fi \
1000  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1001    ac_prev=cache_file ;;
1002  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1003  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1004    cache_file=$ac_optarg ;;
1005
1006  --config-cache | -C)
1007    cache_file=config.cache ;;
1008
1009  -datadir | --datadir | --datadi | --datad)
1010    ac_prev=datadir ;;
1011  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1012    datadir=$ac_optarg ;;
1013
1014  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1015  | --dataroo | --dataro | --datar)
1016    ac_prev=datarootdir ;;
1017  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1018  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1019    datarootdir=$ac_optarg ;;
1020
1021  -disable-* | --disable-*)
1022    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023    # Reject names that are not valid shell variable names.
1024    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1025      as_fn_error "invalid feature name: $ac_useropt"
1026    ac_useropt_orig=$ac_useropt
1027    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028    case $ac_user_opts in
1029      *"
1030"enable_$ac_useropt"
1031"*) ;;
1032      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033	 ac_unrecognized_sep=', ';;
1034    esac
1035    eval enable_$ac_useropt=no ;;
1036
1037  -docdir | --docdir | --docdi | --doc | --do)
1038    ac_prev=docdir ;;
1039  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1040    docdir=$ac_optarg ;;
1041
1042  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1043    ac_prev=dvidir ;;
1044  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1045    dvidir=$ac_optarg ;;
1046
1047  -enable-* | --enable-*)
1048    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049    # Reject names that are not valid shell variable names.
1050    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051      as_fn_error "invalid feature name: $ac_useropt"
1052    ac_useropt_orig=$ac_useropt
1053    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054    case $ac_user_opts in
1055      *"
1056"enable_$ac_useropt"
1057"*) ;;
1058      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059	 ac_unrecognized_sep=', ';;
1060    esac
1061    eval enable_$ac_useropt=\$ac_optarg ;;
1062
1063  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1064  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1065  | --exec | --exe | --ex)
1066    ac_prev=exec_prefix ;;
1067  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1068  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1069  | --exec=* | --exe=* | --ex=*)
1070    exec_prefix=$ac_optarg ;;
1071
1072  -gas | --gas | --ga | --g)
1073    # Obsolete; use --with-gas.
1074    with_gas=yes ;;
1075
1076  -help | --help | --hel | --he | -h)
1077    ac_init_help=long ;;
1078  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1079    ac_init_help=recursive ;;
1080  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1081    ac_init_help=short ;;
1082
1083  -host | --host | --hos | --ho)
1084    ac_prev=host_alias ;;
1085  -host=* | --host=* | --hos=* | --ho=*)
1086    host_alias=$ac_optarg ;;
1087
1088  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1089    ac_prev=htmldir ;;
1090  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1091  | --ht=*)
1092    htmldir=$ac_optarg ;;
1093
1094  -includedir | --includedir | --includedi | --included | --include \
1095  | --includ | --inclu | --incl | --inc)
1096    ac_prev=includedir ;;
1097  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1098  | --includ=* | --inclu=* | --incl=* | --inc=*)
1099    includedir=$ac_optarg ;;
1100
1101  -infodir | --infodir | --infodi | --infod | --info | --inf)
1102    ac_prev=infodir ;;
1103  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1104    infodir=$ac_optarg ;;
1105
1106  -libdir | --libdir | --libdi | --libd)
1107    ac_prev=libdir ;;
1108  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1109    libdir=$ac_optarg ;;
1110
1111  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1112  | --libexe | --libex | --libe)
1113    ac_prev=libexecdir ;;
1114  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1115  | --libexe=* | --libex=* | --libe=*)
1116    libexecdir=$ac_optarg ;;
1117
1118  -localedir | --localedir | --localedi | --localed | --locale)
1119    ac_prev=localedir ;;
1120  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1121    localedir=$ac_optarg ;;
1122
1123  -localstatedir | --localstatedir | --localstatedi | --localstated \
1124  | --localstate | --localstat | --localsta | --localst | --locals)
1125    ac_prev=localstatedir ;;
1126  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1127  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1128    localstatedir=$ac_optarg ;;
1129
1130  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1131    ac_prev=mandir ;;
1132  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1133    mandir=$ac_optarg ;;
1134
1135  -nfp | --nfp | --nf)
1136    # Obsolete; use --without-fp.
1137    with_fp=no ;;
1138
1139  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1140  | --no-cr | --no-c | -n)
1141    no_create=yes ;;
1142
1143  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1144  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1145    no_recursion=yes ;;
1146
1147  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1148  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1149  | --oldin | --oldi | --old | --ol | --o)
1150    ac_prev=oldincludedir ;;
1151  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1152  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1153  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1154    oldincludedir=$ac_optarg ;;
1155
1156  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1157    ac_prev=prefix ;;
1158  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1159    prefix=$ac_optarg ;;
1160
1161  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1162  | --program-pre | --program-pr | --program-p)
1163    ac_prev=program_prefix ;;
1164  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1165  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1166    program_prefix=$ac_optarg ;;
1167
1168  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1169  | --program-suf | --program-su | --program-s)
1170    ac_prev=program_suffix ;;
1171  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1172  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1173    program_suffix=$ac_optarg ;;
1174
1175  -program-transform-name | --program-transform-name \
1176  | --program-transform-nam | --program-transform-na \
1177  | --program-transform-n | --program-transform- \
1178  | --program-transform | --program-transfor \
1179  | --program-transfo | --program-transf \
1180  | --program-trans | --program-tran \
1181  | --progr-tra | --program-tr | --program-t)
1182    ac_prev=program_transform_name ;;
1183  -program-transform-name=* | --program-transform-name=* \
1184  | --program-transform-nam=* | --program-transform-na=* \
1185  | --program-transform-n=* | --program-transform-=* \
1186  | --program-transform=* | --program-transfor=* \
1187  | --program-transfo=* | --program-transf=* \
1188  | --program-trans=* | --program-tran=* \
1189  | --progr-tra=* | --program-tr=* | --program-t=*)
1190    program_transform_name=$ac_optarg ;;
1191
1192  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1193    ac_prev=pdfdir ;;
1194  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1195    pdfdir=$ac_optarg ;;
1196
1197  -psdir | --psdir | --psdi | --psd | --ps)
1198    ac_prev=psdir ;;
1199  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1200    psdir=$ac_optarg ;;
1201
1202  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1203  | -silent | --silent | --silen | --sile | --sil)
1204    silent=yes ;;
1205
1206  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1207    ac_prev=sbindir ;;
1208  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1209  | --sbi=* | --sb=*)
1210    sbindir=$ac_optarg ;;
1211
1212  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1213  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1214  | --sharedst | --shareds | --shared | --share | --shar \
1215  | --sha | --sh)
1216    ac_prev=sharedstatedir ;;
1217  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1218  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1219  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1220  | --sha=* | --sh=*)
1221    sharedstatedir=$ac_optarg ;;
1222
1223  -site | --site | --sit)
1224    ac_prev=site ;;
1225  -site=* | --site=* | --sit=*)
1226    site=$ac_optarg ;;
1227
1228  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1229    ac_prev=srcdir ;;
1230  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1231    srcdir=$ac_optarg ;;
1232
1233  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1234  | --syscon | --sysco | --sysc | --sys | --sy)
1235    ac_prev=sysconfdir ;;
1236  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1237  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1238    sysconfdir=$ac_optarg ;;
1239
1240  -target | --target | --targe | --targ | --tar | --ta | --t)
1241    ac_prev=target_alias ;;
1242  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1243    target_alias=$ac_optarg ;;
1244
1245  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1246    verbose=yes ;;
1247
1248  -version | --version | --versio | --versi | --vers | -V)
1249    ac_init_version=: ;;
1250
1251  -with-* | --with-*)
1252    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253    # Reject names that are not valid shell variable names.
1254    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1255      as_fn_error "invalid package name: $ac_useropt"
1256    ac_useropt_orig=$ac_useropt
1257    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258    case $ac_user_opts in
1259      *"
1260"with_$ac_useropt"
1261"*) ;;
1262      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263	 ac_unrecognized_sep=', ';;
1264    esac
1265    eval with_$ac_useropt=\$ac_optarg ;;
1266
1267  -without-* | --without-*)
1268    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269    # Reject names that are not valid shell variable names.
1270    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1271      as_fn_error "invalid package name: $ac_useropt"
1272    ac_useropt_orig=$ac_useropt
1273    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274    case $ac_user_opts in
1275      *"
1276"with_$ac_useropt"
1277"*) ;;
1278      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279	 ac_unrecognized_sep=', ';;
1280    esac
1281    eval with_$ac_useropt=no ;;
1282
1283  --x)
1284    # Obsolete; use --with-x.
1285    with_x=yes ;;
1286
1287  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1288  | --x-incl | --x-inc | --x-in | --x-i)
1289    ac_prev=x_includes ;;
1290  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1291  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1292    x_includes=$ac_optarg ;;
1293
1294  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1295  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1296    ac_prev=x_libraries ;;
1297  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1298  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1299    x_libraries=$ac_optarg ;;
1300
1301  -*) as_fn_error "unrecognized option: \`$ac_option'
1302Try \`$0 --help' for more information."
1303    ;;
1304
1305  *=*)
1306    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1307    # Reject names that are not valid shell variable names.
1308    case $ac_envvar in #(
1309      '' | [0-9]* | *[!_$as_cr_alnum]* )
1310      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1311    esac
1312    eval $ac_envvar=\$ac_optarg
1313    export $ac_envvar ;;
1314
1315  *)
1316    # FIXME: should be removed in autoconf 3.0.
1317    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1319      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1321    ;;
1322
1323  esac
1324done
1325
1326if test -n "$ac_prev"; then
1327  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1328  as_fn_error "missing argument to $ac_option"
1329fi
1330
1331if test -n "$ac_unrecognized_opts"; then
1332  case $enable_option_checking in
1333    no) ;;
1334    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1335    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1336  esac
1337fi
1338
1339# Check all directory arguments for consistency.
1340for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341		datadir sysconfdir sharedstatedir localstatedir includedir \
1342		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343		libdir localedir mandir
1344do
1345  eval ac_val=\$$ac_var
1346  # Remove trailing slashes.
1347  case $ac_val in
1348    */ )
1349      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350      eval $ac_var=\$ac_val;;
1351  esac
1352  # Be sure to have absolute directory names.
1353  case $ac_val in
1354    [\\/$]* | ?:[\\/]* )  continue;;
1355    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1356  esac
1357  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1358done
1359
1360# There might be people who depend on the old broken behavior: `$host'
1361# used to hold the argument of --host etc.
1362# FIXME: To remove some day.
1363build=$build_alias
1364host=$host_alias
1365target=$target_alias
1366
1367# FIXME: To remove some day.
1368if test "x$host_alias" != x; then
1369  if test "x$build_alias" = x; then
1370    cross_compiling=maybe
1371    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1372    If a cross compiler is detected then cross compile mode will be used." >&2
1373  elif test "x$build_alias" != "x$host_alias"; then
1374    cross_compiling=yes
1375  fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
1383
1384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1387  as_fn_error "working directory cannot be determined"
1388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389  as_fn_error "pwd does not report name of working directory"
1390
1391
1392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394  ac_srcdir_defaulted=yes
1395  # Try the directory containing this script, then the parent directory.
1396  ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398	 X"$as_myself" : 'X\(//\)[^/]' \| \
1399	 X"$as_myself" : 'X\(//\)$' \| \
1400	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
1402    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403	    s//\1/
1404	    q
1405	  }
1406	  /^X\(\/\/\)[^/].*/{
1407	    s//\1/
1408	    q
1409	  }
1410	  /^X\(\/\/\)$/{
1411	    s//\1/
1412	    q
1413	  }
1414	  /^X\(\/\).*/{
1415	    s//\1/
1416	    q
1417	  }
1418	  s/.*/./; q'`
1419  srcdir=$ac_confdir
1420  if test ! -r "$srcdir/$ac_unique_file"; then
1421    srcdir=..
1422  fi
1423else
1424  ac_srcdir_defaulted=no
1425fi
1426if test ! -r "$srcdir/$ac_unique_file"; then
1427  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1428  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1429fi
1430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
1432	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1433	pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436  srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446  eval ac_env_${ac_var}_value=\$${ac_var}
1447  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
1450
1451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455  # Omit some internal or obsolete options to make the list less imposing.
1456  # This message is too long to be a string in the A/UX 3.1 sh.
1457  cat <<_ACEOF
1458\`configure' configures TRE 0.8.0 to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE.  See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468  -h, --help              display this help and exit
1469      --help=short        display options specific to this package
1470      --help=recursive    display the short help of all the included packages
1471  -V, --version           display version information and exit
1472  -q, --quiet, --silent   do not print \`checking...' messages
1473      --cache-file=FILE   cache test results in FILE [disabled]
1474  -C, --config-cache      alias for \`--cache-file=config.cache'
1475  -n, --no-create         do not create output files
1476      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1477
1478Installation directories:
1479  --prefix=PREFIX         install architecture-independent files in PREFIX
1480                          [$ac_default_prefix]
1481  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1482                          [PREFIX]
1483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
1492  --bindir=DIR            user executables [EPREFIX/bin]
1493  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1494  --libexecdir=DIR        program executables [EPREFIX/libexec]
1495  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1496  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1497  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1498  --libdir=DIR            object code libraries [EPREFIX/lib]
1499  --includedir=DIR        C header files [PREFIX/include]
1500  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1501  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1502  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1503  --infodir=DIR           info documentation [DATAROOTDIR/info]
1504  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1505  --mandir=DIR            man documentation [DATAROOTDIR/man]
1506  --docdir=DIR            documentation root [DATAROOTDIR/doc/tre]
1507  --htmldir=DIR           html documentation [DOCDIR]
1508  --dvidir=DIR            dvi documentation [DOCDIR]
1509  --pdfdir=DIR            pdf documentation [DOCDIR]
1510  --psdir=DIR             ps documentation [DOCDIR]
1511_ACEOF
1512
1513  cat <<\_ACEOF
1514
1515Program names:
1516  --program-prefix=PREFIX            prepend PREFIX to installed program names
1517  --program-suffix=SUFFIX            append SUFFIX to installed program names
1518  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1519
1520System types:
1521  --build=BUILD     configure for building on BUILD [guessed]
1522  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1523  --target=TARGET   configure for building compilers for TARGET [HOST]
1524_ACEOF
1525fi
1526
1527if test -n "$ac_init_help"; then
1528  case $ac_init_help in
1529     short | recursive ) echo "Configuration of TRE 0.8.0:";;
1530   esac
1531  cat <<\_ACEOF
1532
1533Optional Features:
1534  --disable-option-checking  ignore unrecognized --enable/--with options
1535  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1536  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1537  --disable-dependency-tracking  speeds up one-time build
1538  --enable-dependency-tracking   do not reject slow dependency extractors
1539  --enable-profile        enable profiling with gprof [default=disabled]
1540  --enable-debug          enable development-time debugging [default=disabled]
1541  --disable-warnings      disable C compiler warning messages
1542                          [default=enabled]
1543  --disable-approx        disable the approximate matching functionality
1544                          [default=enabled]
1545  --disable-agrep         Do not build and install the agrep tool
1546                          [default=install]
1547  --enable-system-abi     try to make TRE compatible with the system regex ABI
1548                          [default=disabled]
1549  --disable-wchar         disable the wide character (wchar_t) support
1550                          [default=detect]
1551  --disable-multibyte     disable multibyte character set support
1552                          [default=detect]
1553  --disable-largefile     omit support for large files
1554  --disable-nls           do not use Native Language Support
1555  --disable-rpath         do not hardcode runtime library paths
1556  --enable-static[=PKGS]  build static libraries [default=no]
1557  --enable-shared[=PKGS]  build shared libraries [default=yes]
1558  --enable-fast-install[=PKGS]
1559                          optimize for fast installation [default=yes]
1560  --disable-libtool-lock  avoid locking (might break parallel builds)
1561
1562Optional Packages:
1563  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1564  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1565  --without-alloca        don't use alloca [default=use]
1566  --with-libutf8[=DIR]    search for libutf8 from DIR/include and DIR/lib
1567  --without-libutf8       do not use libutf8 [default=use if needed]
1568  --with-gnu-ld           assume the C compiler uses GNU ld default=no
1569  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1570  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1571  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1572  --without-libintl-prefix     don't search for libintl in includedir and libdir
1573  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1574  --with-pic              try to use only PIC/non-PIC objects [default=use
1575                          both]
1576
1577Some influential environment variables:
1578  CC          C compiler command
1579  CFLAGS      C compiler flags
1580  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1581              nonstandard directory <lib dir>
1582  LIBS        libraries to pass to the linker, e.g. -l<library>
1583  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1584              you have headers in a nonstandard directory <include dir>
1585  CPP         C preprocessor
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <tre-general@lists.laurikari.net>.
1591_ACEOF
1592ac_status=$?
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596  # If there are subdirs, report their specific --help.
1597  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598    test -d "$ac_dir" ||
1599      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600      continue
1601    ac_builddir=.
1602
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
1606  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607  # A ".." for each directory in $ac_dir_suffix.
1608  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1609  case $ac_top_builddir_sub in
1610  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612  esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
1618
1619case $srcdir in
1620  .)  # We are building in place.
1621    ac_srcdir=.
1622    ac_top_srcdir=$ac_top_builddir_sub
1623    ac_abs_top_srcdir=$ac_pwd ;;
1624  [\\/]* | ?:[\\/]* )  # Absolute name.
1625    ac_srcdir=$srcdir$ac_dir_suffix;
1626    ac_top_srcdir=$srcdir
1627    ac_abs_top_srcdir=$srcdir ;;
1628  *) # Relative name.
1629    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630    ac_top_srcdir=$ac_top_build_prefix$srcdir
1631    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1632esac
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635    cd "$ac_dir" || { ac_status=$?; continue; }
1636    # Check for guested configure.
1637    if test -f "$ac_srcdir/configure.gnu"; then
1638      echo &&
1639      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640    elif test -f "$ac_srcdir/configure"; then
1641      echo &&
1642      $SHELL "$ac_srcdir/configure" --help=recursive
1643    else
1644      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645    fi || ac_status=$?
1646    cd "$ac_pwd" || { ac_status=$?; break; }
1647  done
1648fi
1649
1650test -n "$ac_init_help" && exit $ac_status
1651if $ac_init_version; then
1652  cat <<\_ACEOF
1653TRE configure 0.8.0
1654generated by GNU Autoconf 2.65
1655
1656Copyright (C) 2009 Free Software Foundation, Inc.
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
1660  exit
1661fi
1662
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
1666
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
1671{
1672  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673  rm -f conftest.$ac_objext
1674  if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677  *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681  (eval "$ac_compile") 2>conftest.err
1682  ac_status=$?
1683  if test -s conftest.err; then
1684    grep -v '^ *+' conftest.err >conftest.er1
1685    cat conftest.er1 >&5
1686    mv -f conftest.er1 conftest.err
1687  fi
1688  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689  test $ac_status = 0; } && {
1690	 test -z "$ac_c_werror_flag" ||
1691	 test ! -s conftest.err
1692       } && test -s conftest.$ac_objext; then :
1693  ac_retval=0
1694else
1695  $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
1697
1698	ac_retval=1
1699fi
1700  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1701  as_fn_set_status $ac_retval
1702
1703} # ac_fn_c_try_compile
1704
1705# ac_fn_c_try_cpp LINENO
1706# ----------------------
1707# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_cpp ()
1709{
1710  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711  if { { ac_try="$ac_cpp conftest.$ac_ext"
1712case "(($ac_try" in
1713  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714  *) ac_try_echo=$ac_try;;
1715esac
1716eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717$as_echo "$ac_try_echo"; } >&5
1718  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1719  ac_status=$?
1720  if test -s conftest.err; then
1721    grep -v '^ *+' conftest.err >conftest.er1
1722    cat conftest.er1 >&5
1723    mv -f conftest.er1 conftest.err
1724  fi
1725  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726  test $ac_status = 0; } >/dev/null && {
1727	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1728	 test ! -s conftest.err
1729       }; then :
1730  ac_retval=0
1731else
1732  $as_echo "$as_me: failed program was:" >&5
1733sed 's/^/| /' conftest.$ac_ext >&5
1734
1735    ac_retval=1
1736fi
1737  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1738  as_fn_set_status $ac_retval
1739
1740} # ac_fn_c_try_cpp
1741
1742# ac_fn_c_try_run LINENO
1743# ----------------------
1744# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1745# that executables *can* be run.
1746ac_fn_c_try_run ()
1747{
1748  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749  if { { ac_try="$ac_link"
1750case "(($ac_try" in
1751  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1752  *) ac_try_echo=$ac_try;;
1753esac
1754eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1755$as_echo "$ac_try_echo"; } >&5
1756  (eval "$ac_link") 2>&5
1757  ac_status=$?
1758  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1759  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1760  { { case "(($ac_try" in
1761  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762  *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765$as_echo "$ac_try_echo"; } >&5
1766  (eval "$ac_try") 2>&5
1767  ac_status=$?
1768  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769  test $ac_status = 0; }; }; then :
1770  ac_retval=0
1771else
1772  $as_echo "$as_me: program exited with status $ac_status" >&5
1773       $as_echo "$as_me: failed program was:" >&5
1774sed 's/^/| /' conftest.$ac_ext >&5
1775
1776       ac_retval=$ac_status
1777fi
1778  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780  as_fn_set_status $ac_retval
1781
1782} # ac_fn_c_try_run
1783
1784# ac_fn_c_try_link LINENO
1785# -----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded.
1787ac_fn_c_try_link ()
1788{
1789  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790  rm -f conftest.$ac_objext conftest$ac_exeext
1791  if { { ac_try="$ac_link"
1792case "(($ac_try" in
1793  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794  *) ac_try_echo=$ac_try;;
1795esac
1796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797$as_echo "$ac_try_echo"; } >&5
1798  (eval "$ac_link") 2>conftest.err
1799  ac_status=$?
1800  if test -s conftest.err; then
1801    grep -v '^ *+' conftest.err >conftest.er1
1802    cat conftest.er1 >&5
1803    mv -f conftest.er1 conftest.err
1804  fi
1805  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806  test $ac_status = 0; } && {
1807	 test -z "$ac_c_werror_flag" ||
1808	 test ! -s conftest.err
1809       } && test -s conftest$ac_exeext && {
1810	 test "$cross_compiling" = yes ||
1811	 $as_test_x conftest$ac_exeext
1812       }; then :
1813  ac_retval=0
1814else
1815  $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818	ac_retval=1
1819fi
1820  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1821  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1822  # interfere with the next link command; also delete a directory that is
1823  # left behind by Apple's compiler.  We do this before executing the actions.
1824  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1825  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1826  as_fn_set_status $ac_retval
1827
1828} # ac_fn_c_try_link
1829
1830# ac_fn_c_check_func LINENO FUNC VAR
1831# ----------------------------------
1832# Tests whether FUNC exists, setting the cache variable VAR accordingly
1833ac_fn_c_check_func ()
1834{
1835  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839  $as_echo_n "(cached) " >&6
1840else
1841  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h.  */
1843/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1844   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1845#define $2 innocuous_$2
1846
1847/* System header to define __stub macros and hopefully few prototypes,
1848    which can conflict with char $2 (); below.
1849    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1850    <limits.h> exists even on freestanding compilers.  */
1851
1852#ifdef __STDC__
1853# include <limits.h>
1854#else
1855# include <assert.h>
1856#endif
1857
1858#undef $2
1859
1860/* Override any GCC internal prototype to avoid an error.
1861   Use char because int might match the return type of a GCC
1862   builtin and then its argument prototype would still apply.  */
1863#ifdef __cplusplus
1864extern "C"
1865#endif
1866char $2 ();
1867/* The GNU C library defines this for functions which it implements
1868    to always fail with ENOSYS.  Some functions are actually named
1869    something starting with __ and the normal name is an alias.  */
1870#if defined __stub_$2 || defined __stub___$2
1871choke me
1872#endif
1873
1874int
1875main ()
1876{
1877return $2 ();
1878  ;
1879  return 0;
1880}
1881_ACEOF
1882if ac_fn_c_try_link "$LINENO"; then :
1883  eval "$3=yes"
1884else
1885  eval "$3=no"
1886fi
1887rm -f core conftest.err conftest.$ac_objext \
1888    conftest$ac_exeext conftest.$ac_ext
1889fi
1890eval ac_res=\$$3
1891	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1892$as_echo "$ac_res" >&6; }
1893  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894
1895} # ac_fn_c_check_func
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
1906if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1907  $as_echo_n "(cached) " >&6
1908else
1909  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h.  */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915  eval "$3=yes"
1916else
1917  eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1929# -------------------------------------------------------
1930# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1931# the include files in INCLUDES and setting the cache variable VAR
1932# accordingly.
1933ac_fn_c_check_header_mongrel ()
1934{
1935  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1940  $as_echo_n "(cached) " >&6
1941fi
1942eval ac_res=\$$3
1943	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944$as_echo "$ac_res" >&6; }
1945else
1946  # Is the header compilable?
1947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1948$as_echo_n "checking $2 usability... " >&6; }
1949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h.  */
1951$4
1952#include <$2>
1953_ACEOF
1954if ac_fn_c_try_compile "$LINENO"; then :
1955  ac_header_compiler=yes
1956else
1957  ac_header_compiler=no
1958fi
1959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1961$as_echo "$ac_header_compiler" >&6; }
1962
1963# Is the header present?
1964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1965$as_echo_n "checking $2 presence... " >&6; }
1966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h.  */
1968#include <$2>
1969_ACEOF
1970if ac_fn_c_try_cpp "$LINENO"; then :
1971  ac_header_preproc=yes
1972else
1973  ac_header_preproc=no
1974fi
1975rm -f conftest.err conftest.$ac_ext
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1977$as_echo "$ac_header_preproc" >&6; }
1978
1979# So?  What about this header?
1980case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1981  yes:no: )
1982    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1983$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1984    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1985$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986    ;;
1987  no:yes:* )
1988    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1989$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1990    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1991$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1993$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1995$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1996    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998( cat <<\_ASBOX
1999## ---------------------------------------------- ##
2000## Report this to tre-general@lists.laurikari.net ##
2001## ---------------------------------------------- ##
2002_ASBOX
2003     ) | sed "s/^/$as_me: WARNING:     /" >&2
2004    ;;
2005esac
2006  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2007$as_echo_n "checking for $2... " >&6; }
2008if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2009  $as_echo_n "(cached) " >&6
2010else
2011  eval "$3=\$ac_header_compiler"
2012fi
2013eval ac_res=\$$3
2014	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015$as_echo "$ac_res" >&6; }
2016fi
2017  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2018
2019} # ac_fn_c_check_header_mongrel
2020
2021# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2022# -------------------------------------------
2023# Tests whether TYPE exists after having included INCLUDES, setting cache
2024# variable VAR accordingly.
2025ac_fn_c_check_type ()
2026{
2027  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2029$as_echo_n "checking for $2... " >&6; }
2030if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2031  $as_echo_n "(cached) " >&6
2032else
2033  eval "$3=no"
2034  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035/* end confdefs.h.  */
2036$4
2037int
2038main ()
2039{
2040if (sizeof ($2))
2041	 return 0;
2042  ;
2043  return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048/* end confdefs.h.  */
2049$4
2050int
2051main ()
2052{
2053if (sizeof (($2)))
2054	    return 0;
2055  ;
2056  return 0;
2057}
2058_ACEOF
2059if ac_fn_c_try_compile "$LINENO"; then :
2060
2061else
2062  eval "$3=yes"
2063fi
2064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065fi
2066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2072
2073} # ac_fn_c_check_type
2074cat >config.log <<_ACEOF
2075This file contains any messages produced by compilers while
2076running configure, to aid debugging if configure makes a mistake.
2077
2078It was created by TRE $as_me 0.8.0, which was
2079generated by GNU Autoconf 2.65.  Invocation command line was
2080
2081  $ $0 $@
2082
2083_ACEOF
2084exec 5>>config.log
2085{
2086cat <<_ASUNAME
2087## --------- ##
2088## Platform. ##
2089## --------- ##
2090
2091hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2092uname -m = `(uname -m) 2>/dev/null || echo unknown`
2093uname -r = `(uname -r) 2>/dev/null || echo unknown`
2094uname -s = `(uname -s) 2>/dev/null || echo unknown`
2095uname -v = `(uname -v) 2>/dev/null || echo unknown`
2096
2097/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2098/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2099
2100/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2101/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2102/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2103/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2104/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2105/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2106/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2107
2108_ASUNAME
2109
2110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2111for as_dir in $PATH
2112do
2113  IFS=$as_save_IFS
2114  test -z "$as_dir" && as_dir=.
2115    $as_echo "PATH: $as_dir"
2116  done
2117IFS=$as_save_IFS
2118
2119} >&5
2120
2121cat >&5 <<_ACEOF
2122
2123
2124## ----------- ##
2125## Core tests. ##
2126## ----------- ##
2127
2128_ACEOF
2129
2130
2131# Keep a trace of the command line.
2132# Strip out --no-create and --no-recursion so they do not pile up.
2133# Strip out --silent because we don't want to record it for future runs.
2134# Also quote any args containing shell meta-characters.
2135# Make two passes to allow for proper duplicate-argument suppression.
2136ac_configure_args=
2137ac_configure_args0=
2138ac_configure_args1=
2139ac_must_keep_next=false
2140for ac_pass in 1 2
2141do
2142  for ac_arg
2143  do
2144    case $ac_arg in
2145    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2146    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2147    | -silent | --silent | --silen | --sile | --sil)
2148      continue ;;
2149    *\'*)
2150      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2151    esac
2152    case $ac_pass in
2153    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2154    2)
2155      as_fn_append ac_configure_args1 " '$ac_arg'"
2156      if test $ac_must_keep_next = true; then
2157	ac_must_keep_next=false # Got value, back to normal.
2158      else
2159	case $ac_arg in
2160	  *=* | --config-cache | -C | -disable-* | --disable-* \
2161	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2162	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2163	  | -with-* | --with-* | -without-* | --without-* | --x)
2164	    case "$ac_configure_args0 " in
2165	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2166	    esac
2167	    ;;
2168	  -* ) ac_must_keep_next=true ;;
2169	esac
2170      fi
2171      as_fn_append ac_configure_args " '$ac_arg'"
2172      ;;
2173    esac
2174  done
2175done
2176{ ac_configure_args0=; unset ac_configure_args0;}
2177{ ac_configure_args1=; unset ac_configure_args1;}
2178
2179# When interrupted or exit'd, cleanup temporary files, and complete
2180# config.log.  We remove comments because anyway the quotes in there
2181# would cause problems or look ugly.
2182# WARNING: Use '\'' to represent an apostrophe within the trap.
2183# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2184trap 'exit_status=$?
2185  # Save into config.log some information that might help in debugging.
2186  {
2187    echo
2188
2189    cat <<\_ASBOX
2190## ---------------- ##
2191## Cache variables. ##
2192## ---------------- ##
2193_ASBOX
2194    echo
2195    # The following way of writing the cache mishandles newlines in values,
2196(
2197  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2198    eval ac_val=\$$ac_var
2199    case $ac_val in #(
2200    *${as_nl}*)
2201      case $ac_var in #(
2202      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2203$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2204      esac
2205      case $ac_var in #(
2206      _ | IFS | as_nl) ;; #(
2207      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2208      *) { eval $ac_var=; unset $ac_var;} ;;
2209      esac ;;
2210    esac
2211  done
2212  (set) 2>&1 |
2213    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2214    *${as_nl}ac_space=\ *)
2215      sed -n \
2216	"s/'\''/'\''\\\\'\'''\''/g;
2217	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2218      ;; #(
2219    *)
2220      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2221      ;;
2222    esac |
2223    sort
2224)
2225    echo
2226
2227    cat <<\_ASBOX
2228## ----------------- ##
2229## Output variables. ##
2230## ----------------- ##
2231_ASBOX
2232    echo
2233    for ac_var in $ac_subst_vars
2234    do
2235      eval ac_val=\$$ac_var
2236      case $ac_val in
2237      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2238      esac
2239      $as_echo "$ac_var='\''$ac_val'\''"
2240    done | sort
2241    echo
2242
2243    if test -n "$ac_subst_files"; then
2244      cat <<\_ASBOX
2245## ------------------- ##
2246## File substitutions. ##
2247## ------------------- ##
2248_ASBOX
2249      echo
2250      for ac_var in $ac_subst_files
2251      do
2252	eval ac_val=\$$ac_var
2253	case $ac_val in
2254	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2255	esac
2256	$as_echo "$ac_var='\''$ac_val'\''"
2257      done | sort
2258      echo
2259    fi
2260
2261    if test -s confdefs.h; then
2262      cat <<\_ASBOX
2263## ----------- ##
2264## confdefs.h. ##
2265## ----------- ##
2266_ASBOX
2267      echo
2268      cat confdefs.h
2269      echo
2270    fi
2271    test "$ac_signal" != 0 &&
2272      $as_echo "$as_me: caught signal $ac_signal"
2273    $as_echo "$as_me: exit $exit_status"
2274  } >&5
2275  rm -f core *.core core.conftest.* &&
2276    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2277    exit $exit_status
2278' 0
2279for ac_signal in 1 2 13 15; do
2280  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2281done
2282ac_signal=0
2283
2284# confdefs.h avoids OS command line length limits that DEFS can exceed.
2285rm -f -r conftest* confdefs.h
2286
2287$as_echo "/* confdefs.h */" > confdefs.h
2288
2289# Predefined preprocessor variables.
2290
2291cat >>confdefs.h <<_ACEOF
2292#define PACKAGE_NAME "$PACKAGE_NAME"
2293_ACEOF
2294
2295cat >>confdefs.h <<_ACEOF
2296#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2297_ACEOF
2298
2299cat >>confdefs.h <<_ACEOF
2300#define PACKAGE_VERSION "$PACKAGE_VERSION"
2301_ACEOF
2302
2303cat >>confdefs.h <<_ACEOF
2304#define PACKAGE_STRING "$PACKAGE_STRING"
2305_ACEOF
2306
2307cat >>confdefs.h <<_ACEOF
2308#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2309_ACEOF
2310
2311cat >>confdefs.h <<_ACEOF
2312#define PACKAGE_URL "$PACKAGE_URL"
2313_ACEOF
2314
2315
2316# Let the site file select an alternate cache file if it wants to.
2317# Prefer an explicitly selected file to automatically selected ones.
2318ac_site_file1=NONE
2319ac_site_file2=NONE
2320if test -n "$CONFIG_SITE"; then
2321  ac_site_file1=$CONFIG_SITE
2322elif test "x$prefix" != xNONE; then
2323  ac_site_file1=$prefix/share/config.site
2324  ac_site_file2=$prefix/etc/config.site
2325else
2326  ac_site_file1=$ac_default_prefix/share/config.site
2327  ac_site_file2=$ac_default_prefix/etc/config.site
2328fi
2329for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2330do
2331  test "x$ac_site_file" = xNONE && continue
2332  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2333    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2334$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2335    sed 's/^/| /' "$ac_site_file" >&5
2336    . "$ac_site_file"
2337  fi
2338done
2339
2340if test -r "$cache_file"; then
2341  # Some versions of bash will fail to source /dev/null (special files
2342  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2343  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2344    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2345$as_echo "$as_me: loading cache $cache_file" >&6;}
2346    case $cache_file in
2347      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2348      *)                      . "./$cache_file";;
2349    esac
2350  fi
2351else
2352  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2353$as_echo "$as_me: creating cache $cache_file" >&6;}
2354  >$cache_file
2355fi
2356
2357gt_needs="$gt_needs "
2358# Check that the precious variables saved in the cache have kept the same
2359# value.
2360ac_cache_corrupted=false
2361for ac_var in $ac_precious_vars; do
2362  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2363  eval ac_new_set=\$ac_env_${ac_var}_set
2364  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2365  eval ac_new_val=\$ac_env_${ac_var}_value
2366  case $ac_old_set,$ac_new_set in
2367    set,)
2368      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2369$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2370      ac_cache_corrupted=: ;;
2371    ,set)
2372      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2373$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2374      ac_cache_corrupted=: ;;
2375    ,);;
2376    *)
2377      if test "x$ac_old_val" != "x$ac_new_val"; then
2378	# differences in whitespace do not lead to failure.
2379	ac_old_val_w=`echo x $ac_old_val`
2380	ac_new_val_w=`echo x $ac_new_val`
2381	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2382	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2383$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2384	  ac_cache_corrupted=:
2385	else
2386	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2387$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2388	  eval $ac_var=\$ac_old_val
2389	fi
2390	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2391$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2392	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2393$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2394      fi;;
2395  esac
2396  # Pass precious variables to config.status.
2397  if test "$ac_new_set" = set; then
2398    case $ac_new_val in
2399    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2400    *) ac_arg=$ac_var=$ac_new_val ;;
2401    esac
2402    case " $ac_configure_args " in
2403      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2404      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2405    esac
2406  fi
2407done
2408if $ac_cache_corrupted; then
2409  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2410$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2412$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2413  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2414fi
2415## -------------------- ##
2416## Main body of script. ##
2417## -------------------- ##
2418
2419ac_ext=c
2420ac_cpp='$CPP $CPPFLAGS'
2421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2423ac_compiler_gnu=$ac_cv_c_compiler_gnu
2424
2425
2426
2427ac_aux_dir=
2428for ac_dir in utils "$srcdir"/utils; do
2429  for ac_t in install-sh install.sh shtool; do
2430    if test -f "$ac_dir/$ac_t"; then
2431      ac_aux_dir=$ac_dir
2432      ac_install_sh="$ac_aux_dir/$ac_t -c"
2433      break 2
2434    fi
2435  done
2436done
2437if test -z "$ac_aux_dir"; then
2438  as_fn_error "cannot find install-sh, install.sh, or shtool in utils \"$srcdir\"/utils" "$LINENO" 5
2439fi
2440
2441# These three variables are undocumented and unsupported,
2442# and are intended to be withdrawn in a future Autoconf release.
2443# They can cause serious problems if a builder's source tree is in a directory
2444# whose full name contains unusual characters.
2445ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2446ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2447ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2448
2449
2450# Make sure we can run config.sub.
2451$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2452  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2453
2454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2455$as_echo_n "checking build system type... " >&6; }
2456if test "${ac_cv_build+set}" = set; then :
2457  $as_echo_n "(cached) " >&6
2458else
2459  ac_build_alias=$build_alias
2460test "x$ac_build_alias" = x &&
2461  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2462test "x$ac_build_alias" = x &&
2463  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2464ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2465  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2466
2467fi
2468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2469$as_echo "$ac_cv_build" >&6; }
2470case $ac_cv_build in
2471*-*-*) ;;
2472*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2473esac
2474build=$ac_cv_build
2475ac_save_IFS=$IFS; IFS='-'
2476set x $ac_cv_build
2477shift
2478build_cpu=$1
2479build_vendor=$2
2480shift; shift
2481# Remember, the first character of IFS is used to create $*,
2482# except with old shells:
2483build_os=$*
2484IFS=$ac_save_IFS
2485case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2486
2487
2488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2489$as_echo_n "checking host system type... " >&6; }
2490if test "${ac_cv_host+set}" = set; then :
2491  $as_echo_n "(cached) " >&6
2492else
2493  if test "x$host_alias" = x; then
2494  ac_cv_host=$ac_cv_build
2495else
2496  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2497    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2498fi
2499
2500fi
2501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2502$as_echo "$ac_cv_host" >&6; }
2503case $ac_cv_host in
2504*-*-*) ;;
2505*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2506esac
2507host=$ac_cv_host
2508ac_save_IFS=$IFS; IFS='-'
2509set x $ac_cv_host
2510shift
2511host_cpu=$1
2512host_vendor=$2
2513shift; shift
2514# Remember, the first character of IFS is used to create $*,
2515# except with old shells:
2516host_os=$*
2517IFS=$ac_save_IFS
2518case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2519
2520
2521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2522$as_echo_n "checking target system type... " >&6; }
2523if test "${ac_cv_target+set}" = set; then :
2524  $as_echo_n "(cached) " >&6
2525else
2526  if test "x$target_alias" = x; then
2527  ac_cv_target=$ac_cv_host
2528else
2529  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2530    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2531fi
2532
2533fi
2534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2535$as_echo "$ac_cv_target" >&6; }
2536case $ac_cv_target in
2537*-*-*) ;;
2538*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2539esac
2540target=$ac_cv_target
2541ac_save_IFS=$IFS; IFS='-'
2542set x $ac_cv_target
2543shift
2544target_cpu=$1
2545target_vendor=$2
2546shift; shift
2547# Remember, the first character of IFS is used to create $*,
2548# except with old shells:
2549target_os=$*
2550IFS=$ac_save_IFS
2551case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2552
2553
2554# The aliases save the names the user supplied, while $host etc.
2555# will get canonicalized.
2556test -n "$target_alias" &&
2557  test "$program_prefix$program_suffix$program_transform_name" = \
2558    NONENONEs,x,x, &&
2559  program_prefix=${target_alias}-
2560am__api_version='1.10'
2561
2562# Find a good install program.  We prefer a C program (faster),
2563# so one script is as good as another.  But avoid the broken or
2564# incompatible versions:
2565# SysV /etc/install, /usr/sbin/install
2566# SunOS /usr/etc/install
2567# IRIX /sbin/install
2568# AIX /bin/install
2569# AmigaOS /C/install, which installs bootblocks on floppy discs
2570# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573# OS/2's system install, which has a completely different semantic
2574# ./install, which can be erroneously created by make from ./install.sh.
2575# Reject install programs that cannot install multiple files.
2576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577$as_echo_n "checking for a BSD-compatible install... " >&6; }
2578if test -z "$INSTALL"; then
2579if test "${ac_cv_path_install+set}" = set; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583for as_dir in $PATH
2584do
2585  IFS=$as_save_IFS
2586  test -z "$as_dir" && as_dir=.
2587    # Account for people who put trailing slashes in PATH elements.
2588case $as_dir/ in #((
2589  ./ | .// | /[cC]/* | \
2590  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592  /usr/ucb/* ) ;;
2593  *)
2594    # OSF1 and SCO ODT 3.0 have their own names for install.
2595    # Don't use installbsd from OSF since it installs stuff as root
2596    # by default.
2597    for ac_prog in ginstall scoinst install; do
2598      for ac_exec_ext in '' $ac_executable_extensions; do
2599	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2600	  if test $ac_prog = install &&
2601	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602	    # AIX install.  It has an incompatible calling convention.
2603	    :
2604	  elif test $ac_prog = install &&
2605	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606	    # program-specific install script used by HP pwplus--don't use.
2607	    :
2608	  else
2609	    rm -rf conftest.one conftest.two conftest.dir
2610	    echo one > conftest.one
2611	    echo two > conftest.two
2612	    mkdir conftest.dir
2613	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614	      test -s conftest.one && test -s conftest.two &&
2615	      test -s conftest.dir/conftest.one &&
2616	      test -s conftest.dir/conftest.two
2617	    then
2618	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619	      break 3
2620	    fi
2621	  fi
2622	fi
2623      done
2624    done
2625    ;;
2626esac
2627
2628  done
2629IFS=$as_save_IFS
2630
2631rm -rf conftest.one conftest.two conftest.dir
2632
2633fi
2634  if test "${ac_cv_path_install+set}" = set; then
2635    INSTALL=$ac_cv_path_install
2636  else
2637    # As a last resort, use the slow shell script.  Don't cache a
2638    # value for INSTALL within a source directory, because that will
2639    # break other packages using the cache if that directory is
2640    # removed, or if the value is a relative name.
2641    INSTALL=$ac_install_sh
2642  fi
2643fi
2644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645$as_echo "$INSTALL" >&6; }
2646
2647# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648# It thinks the first close brace ends the variable substitution.
2649test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2650
2651test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2652
2653test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2654
2655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656$as_echo_n "checking whether build environment is sane... " >&6; }
2657# Just in case
2658sleep 1
2659echo timestamp > conftest.file
2660# Do `set' in a subshell so we don't clobber the current shell's
2661# arguments.  Must try -L first in case configure is actually a
2662# symlink; some systems play weird games with the mod time of symlinks
2663# (eg FreeBSD returns the mod time of the symlink's containing
2664# directory).
2665if (
2666   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2667   if test "$*" = "X"; then
2668      # -L didn't work.
2669      set X `ls -t $srcdir/configure conftest.file`
2670   fi
2671   rm -f conftest.file
2672   if test "$*" != "X $srcdir/configure conftest.file" \
2673      && test "$*" != "X conftest.file $srcdir/configure"; then
2674
2675      # If neither matched, then we have a broken ls.  This can happen
2676      # if, for instance, CONFIG_SHELL is bash and it inherits a
2677      # broken ls alias from the environment.  This has actually
2678      # happened.  Such a system could not be considered "sane".
2679      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2680alias in your environment" "$LINENO" 5
2681   fi
2682
2683   test "$2" = conftest.file
2684   )
2685then
2686   # Ok.
2687   :
2688else
2689   as_fn_error "newly created file is older than distributed files!
2690Check your system clock" "$LINENO" 5
2691fi
2692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2693$as_echo "yes" >&6; }
2694test "$program_prefix" != NONE &&
2695  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2696# Use a double $ so make ignores it.
2697test "$program_suffix" != NONE &&
2698  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2699# Double any \ or $.
2700# By default was `s,x,x', remove it if useless.
2701ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2702program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2703
2704# expand $ac_aux_dir to an absolute path
2705am_aux_dir=`cd $ac_aux_dir && pwd`
2706
2707test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2708# Use eval to expand $SHELL
2709if eval "$MISSING --run true"; then
2710  am_missing_run="$MISSING --run "
2711else
2712  am_missing_run=
2713  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2714$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2715fi
2716
2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2718$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2719if test -z "$MKDIR_P"; then
2720  if test "${ac_cv_path_mkdir+set}" = set; then :
2721  $as_echo_n "(cached) " >&6
2722else
2723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2725do
2726  IFS=$as_save_IFS
2727  test -z "$as_dir" && as_dir=.
2728    for ac_prog in mkdir gmkdir; do
2729	 for ac_exec_ext in '' $ac_executable_extensions; do
2730	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2731	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2732	     'mkdir (GNU coreutils) '* | \
2733	     'mkdir (coreutils) '* | \
2734	     'mkdir (fileutils) '4.1*)
2735	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2736	       break 3;;
2737	   esac
2738	 done
2739       done
2740  done
2741IFS=$as_save_IFS
2742
2743fi
2744
2745  test -d ./--version && rmdir ./--version
2746  if test "${ac_cv_path_mkdir+set}" = set; then
2747    MKDIR_P="$ac_cv_path_mkdir -p"
2748  else
2749    # As a last resort, use the slow shell script.  Don't cache a
2750    # value for MKDIR_P within a source directory, because that will
2751    # break other packages using the cache if that directory is
2752    # removed, or if the value is a relative name.
2753    MKDIR_P="$ac_install_sh -d"
2754  fi
2755fi
2756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2757$as_echo "$MKDIR_P" >&6; }
2758
2759mkdir_p="$MKDIR_P"
2760case $mkdir_p in
2761  [\\/$]* | ?:[\\/]*) ;;
2762  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2763esac
2764
2765for ac_prog in gawk mawk nawk awk
2766do
2767  # Extract the first word of "$ac_prog", so it can be a program name with args.
2768set dummy $ac_prog; ac_word=$2
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770$as_echo_n "checking for $ac_word... " >&6; }
2771if test "${ac_cv_prog_AWK+set}" = set; then :
2772  $as_echo_n "(cached) " >&6
2773else
2774  if test -n "$AWK"; then
2775  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2776else
2777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778for as_dir in $PATH
2779do
2780  IFS=$as_save_IFS
2781  test -z "$as_dir" && as_dir=.
2782    for ac_exec_ext in '' $ac_executable_extensions; do
2783  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784    ac_cv_prog_AWK="$ac_prog"
2785    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786    break 2
2787  fi
2788done
2789  done
2790IFS=$as_save_IFS
2791
2792fi
2793fi
2794AWK=$ac_cv_prog_AWK
2795if test -n "$AWK"; then
2796  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2797$as_echo "$AWK" >&6; }
2798else
2799  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800$as_echo "no" >&6; }
2801fi
2802
2803
2804  test -n "$AWK" && break
2805done
2806
2807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2808$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2809set x ${MAKE-make}
2810ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2811if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2812  $as_echo_n "(cached) " >&6
2813else
2814  cat >conftest.make <<\_ACEOF
2815SHELL = /bin/sh
2816all:
2817	@echo '@@@%%%=$(MAKE)=@@@%%%'
2818_ACEOF
2819# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2820case `${MAKE-make} -f conftest.make 2>/dev/null` in
2821  *@@@%%%=?*=@@@%%%*)
2822    eval ac_cv_prog_make_${ac_make}_set=yes;;
2823  *)
2824    eval ac_cv_prog_make_${ac_make}_set=no;;
2825esac
2826rm -f conftest.make
2827fi
2828if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2830$as_echo "yes" >&6; }
2831  SET_MAKE=
2832else
2833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834$as_echo "no" >&6; }
2835  SET_MAKE="MAKE=${MAKE-make}"
2836fi
2837
2838rm -rf .tst 2>/dev/null
2839mkdir .tst 2>/dev/null
2840if test -d .tst; then
2841  am__leading_dot=.
2842else
2843  am__leading_dot=_
2844fi
2845rmdir .tst 2>/dev/null
2846
2847if test "`cd $srcdir && pwd`" != "`pwd`"; then
2848  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2849  # is not polluted with repeated "-I."
2850  am__isrc=' -I$(srcdir)'
2851  # test to see if srcdir already configured
2852  if test -f $srcdir/config.status; then
2853    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2854  fi
2855fi
2856
2857# test whether we have cygpath
2858if test -z "$CYGPATH_W"; then
2859  if (cygpath --version) >/dev/null 2>/dev/null; then
2860    CYGPATH_W='cygpath -w'
2861  else
2862    CYGPATH_W=echo
2863  fi
2864fi
2865
2866
2867# Define the identity of the package.
2868 PACKAGE='tre'
2869 VERSION='0.8.0'
2870
2871
2872cat >>confdefs.h <<_ACEOF
2873#define PACKAGE "$PACKAGE"
2874_ACEOF
2875
2876
2877cat >>confdefs.h <<_ACEOF
2878#define VERSION "$VERSION"
2879_ACEOF
2880
2881# Some tools Automake needs.
2882
2883ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2884
2885
2886AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2887
2888
2889AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2890
2891
2892AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2893
2894
2895MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2896
2897install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2898
2899# Installed binaries are usually stripped using `strip' when the user
2900# run `make install-strip'.  However `strip' might not be the right
2901# tool to use in cross-compilation environments, therefore Automake
2902# will honor the `STRIP' environment variable to overrule this program.
2903if test "$cross_compiling" != no; then
2904  if test -n "$ac_tool_prefix"; then
2905  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2906set dummy ${ac_tool_prefix}strip; ac_word=$2
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908$as_echo_n "checking for $ac_word... " >&6; }
2909if test "${ac_cv_prog_STRIP+set}" = set; then :
2910  $as_echo_n "(cached) " >&6
2911else
2912  if test -n "$STRIP"; then
2913  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2914else
2915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916for as_dir in $PATH
2917do
2918  IFS=$as_save_IFS
2919  test -z "$as_dir" && as_dir=.
2920    for ac_exec_ext in '' $ac_executable_extensions; do
2921  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2923    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924    break 2
2925  fi
2926done
2927  done
2928IFS=$as_save_IFS
2929
2930fi
2931fi
2932STRIP=$ac_cv_prog_STRIP
2933if test -n "$STRIP"; then
2934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2935$as_echo "$STRIP" >&6; }
2936else
2937  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938$as_echo "no" >&6; }
2939fi
2940
2941
2942fi
2943if test -z "$ac_cv_prog_STRIP"; then
2944  ac_ct_STRIP=$STRIP
2945  # Extract the first word of "strip", so it can be a program name with args.
2946set dummy strip; ac_word=$2
2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948$as_echo_n "checking for $ac_word... " >&6; }
2949if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2950  $as_echo_n "(cached) " >&6
2951else
2952  if test -n "$ac_ct_STRIP"; then
2953  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2954else
2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956for as_dir in $PATH
2957do
2958  IFS=$as_save_IFS
2959  test -z "$as_dir" && as_dir=.
2960    for ac_exec_ext in '' $ac_executable_extensions; do
2961  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2962    ac_cv_prog_ac_ct_STRIP="strip"
2963    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964    break 2
2965  fi
2966done
2967  done
2968IFS=$as_save_IFS
2969
2970fi
2971fi
2972ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2973if test -n "$ac_ct_STRIP"; then
2974  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2975$as_echo "$ac_ct_STRIP" >&6; }
2976else
2977  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978$as_echo "no" >&6; }
2979fi
2980
2981  if test "x$ac_ct_STRIP" = x; then
2982    STRIP=":"
2983  else
2984    case $cross_compiling:$ac_tool_warned in
2985yes:)
2986{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988ac_tool_warned=yes ;;
2989esac
2990    STRIP=$ac_ct_STRIP
2991  fi
2992else
2993  STRIP="$ac_cv_prog_STRIP"
2994fi
2995
2996fi
2997INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2998
2999# We need awk for the "check" target.  The system "awk" is bad on
3000# some platforms.
3001# Always define AMTAR for backward compatibility.
3002
3003AMTAR=${AMTAR-"${am_missing_run}tar"}
3004
3005am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3006
3007
3008
3009
3010
3011
3012
3013
3014ac_ext=c
3015ac_cpp='$CPP $CPPFLAGS'
3016ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018ac_compiler_gnu=$ac_cv_c_compiler_gnu
3019if test -n "$ac_tool_prefix"; then
3020  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3021set dummy ${ac_tool_prefix}gcc; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
3024if test "${ac_cv_prog_CC+set}" = set; then :
3025  $as_echo_n "(cached) " >&6
3026else
3027  if test -n "$CC"; then
3028  ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
3030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031for as_dir in $PATH
3032do
3033  IFS=$as_save_IFS
3034  test -z "$as_dir" && as_dir=.
3035    for ac_exec_ext in '' $ac_executable_extensions; do
3036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3039    break 2
3040  fi
3041done
3042  done
3043IFS=$as_save_IFS
3044
3045fi
3046fi
3047CC=$ac_cv_prog_CC
3048if test -n "$CC"; then
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3050$as_echo "$CC" >&6; }
3051else
3052  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3053$as_echo "no" >&6; }
3054fi
3055
3056
3057fi
3058if test -z "$ac_cv_prog_CC"; then
3059  ac_ct_CC=$CC
3060  # Extract the first word of "gcc", so it can be a program name with args.
3061set dummy gcc; ac_word=$2
3062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3063$as_echo_n "checking for $ac_word... " >&6; }
3064if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3065  $as_echo_n "(cached) " >&6
3066else
3067  if test -n "$ac_ct_CC"; then
3068  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3069else
3070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071for as_dir in $PATH
3072do
3073  IFS=$as_save_IFS
3074  test -z "$as_dir" && as_dir=.
3075    for ac_exec_ext in '' $ac_executable_extensions; do
3076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077    ac_cv_prog_ac_ct_CC="gcc"
3078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079    break 2
3080  fi
3081done
3082  done
3083IFS=$as_save_IFS
3084
3085fi
3086fi
3087ac_ct_CC=$ac_cv_prog_ac_ct_CC
3088if test -n "$ac_ct_CC"; then
3089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3090$as_echo "$ac_ct_CC" >&6; }
3091else
3092  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3093$as_echo "no" >&6; }
3094fi
3095
3096  if test "x$ac_ct_CC" = x; then
3097    CC=""
3098  else
3099    case $cross_compiling:$ac_tool_warned in
3100yes:)
3101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3103ac_tool_warned=yes ;;
3104esac
3105    CC=$ac_ct_CC
3106  fi
3107else
3108  CC="$ac_cv_prog_CC"
3109fi
3110
3111if test -z "$CC"; then
3112          if test -n "$ac_tool_prefix"; then
3113    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3114set dummy ${ac_tool_prefix}cc; ac_word=$2
3115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3116$as_echo_n "checking for $ac_word... " >&6; }
3117if test "${ac_cv_prog_CC+set}" = set; then :
3118  $as_echo_n "(cached) " >&6
3119else
3120  if test -n "$CC"; then
3121  ac_cv_prog_CC="$CC" # Let the user override the test.
3122else
3123as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3124for as_dir in $PATH
3125do
3126  IFS=$as_save_IFS
3127  test -z "$as_dir" && as_dir=.
3128    for ac_exec_ext in '' $ac_executable_extensions; do
3129  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3130    ac_cv_prog_CC="${ac_tool_prefix}cc"
3131    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3132    break 2
3133  fi
3134done
3135  done
3136IFS=$as_save_IFS
3137
3138fi
3139fi
3140CC=$ac_cv_prog_CC
3141if test -n "$CC"; then
3142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3143$as_echo "$CC" >&6; }
3144else
3145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3146$as_echo "no" >&6; }
3147fi
3148
3149
3150  fi
3151fi
3152if test -z "$CC"; then
3153  # Extract the first word of "cc", so it can be a program name with args.
3154set dummy cc; ac_word=$2
3155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156$as_echo_n "checking for $ac_word... " >&6; }
3157if test "${ac_cv_prog_CC+set}" = set; then :
3158  $as_echo_n "(cached) " >&6
3159else
3160  if test -n "$CC"; then
3161  ac_cv_prog_CC="$CC" # Let the user override the test.
3162else
3163  ac_prog_rejected=no
3164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165for as_dir in $PATH
3166do
3167  IFS=$as_save_IFS
3168  test -z "$as_dir" && as_dir=.
3169    for ac_exec_ext in '' $ac_executable_extensions; do
3170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3172       ac_prog_rejected=yes
3173       continue
3174     fi
3175    ac_cv_prog_CC="cc"
3176    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177    break 2
3178  fi
3179done
3180  done
3181IFS=$as_save_IFS
3182
3183if test $ac_prog_rejected = yes; then
3184  # We found a bogon in the path, so make sure we never use it.
3185  set dummy $ac_cv_prog_CC
3186  shift
3187  if test $# != 0; then
3188    # We chose a different compiler from the bogus one.
3189    # However, it has the same basename, so the bogon will be chosen
3190    # first if we set CC to just the basename; use the full file name.
3191    shift
3192    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3193  fi
3194fi
3195fi
3196fi
3197CC=$ac_cv_prog_CC
3198if test -n "$CC"; then
3199  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3200$as_echo "$CC" >&6; }
3201else
3202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203$as_echo "no" >&6; }
3204fi
3205
3206
3207fi
3208if test -z "$CC"; then
3209  if test -n "$ac_tool_prefix"; then
3210  for ac_prog in cl.exe
3211  do
3212    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3213set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215$as_echo_n "checking for $ac_word... " >&6; }
3216if test "${ac_cv_prog_CC+set}" = set; then :
3217  $as_echo_n "(cached) " >&6
3218else
3219  if test -n "$CC"; then
3220  ac_cv_prog_CC="$CC" # Let the user override the test.
3221else
3222as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223for as_dir in $PATH
3224do
3225  IFS=$as_save_IFS
3226  test -z "$as_dir" && as_dir=.
3227    for ac_exec_ext in '' $ac_executable_extensions; do
3228  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3229    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3230    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3231    break 2
3232  fi
3233done
3234  done
3235IFS=$as_save_IFS
3236
3237fi
3238fi
3239CC=$ac_cv_prog_CC
3240if test -n "$CC"; then
3241  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3242$as_echo "$CC" >&6; }
3243else
3244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245$as_echo "no" >&6; }
3246fi
3247
3248
3249    test -n "$CC" && break
3250  done
3251fi
3252if test -z "$CC"; then
3253  ac_ct_CC=$CC
3254  for ac_prog in cl.exe
3255do
3256  # Extract the first word of "$ac_prog", so it can be a program name with args.
3257set dummy $ac_prog; ac_word=$2
3258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259$as_echo_n "checking for $ac_word... " >&6; }
3260if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3261  $as_echo_n "(cached) " >&6
3262else
3263  if test -n "$ac_ct_CC"; then
3264  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265else
3266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267for as_dir in $PATH
3268do
3269  IFS=$as_save_IFS
3270  test -z "$as_dir" && as_dir=.
3271    for ac_exec_ext in '' $ac_executable_extensions; do
3272  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273    ac_cv_prog_ac_ct_CC="$ac_prog"
3274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275    break 2
3276  fi
3277done
3278  done
3279IFS=$as_save_IFS
3280
3281fi
3282fi
3283ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284if test -n "$ac_ct_CC"; then
3285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286$as_echo "$ac_ct_CC" >&6; }
3287else
3288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289$as_echo "no" >&6; }
3290fi
3291
3292
3293  test -n "$ac_ct_CC" && break
3294done
3295
3296  if test "x$ac_ct_CC" = x; then
3297    CC=""
3298  else
3299    case $cross_compiling:$ac_tool_warned in
3300yes:)
3301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3303ac_tool_warned=yes ;;
3304esac
3305    CC=$ac_ct_CC
3306  fi
3307fi
3308
3309fi
3310
3311
3312test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314as_fn_error "no acceptable C compiler found in \$PATH
3315See \`config.log' for more details." "$LINENO" 5; }
3316
3317# Provide some information about the compiler.
3318$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3319set X $ac_compile
3320ac_compiler=$2
3321for ac_option in --version -v -V -qversion; do
3322  { { ac_try="$ac_compiler $ac_option >&5"
3323case "(($ac_try" in
3324  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325  *) ac_try_echo=$ac_try;;
3326esac
3327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3328$as_echo "$ac_try_echo"; } >&5
3329  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3330  ac_status=$?
3331  if test -s conftest.err; then
3332    sed '10a\
3333... rest of stderr output deleted ...
3334         10q' conftest.err >conftest.er1
3335    cat conftest.er1 >&5
3336  fi
3337  rm -f conftest.er1 conftest.err
3338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339  test $ac_status = 0; }
3340done
3341
3342cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3343/* end confdefs.h.  */
3344
3345int
3346main ()
3347{
3348
3349  ;
3350  return 0;
3351}
3352_ACEOF
3353ac_clean_files_save=$ac_clean_files
3354ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3355# Try to create an executable without -o first, disregard a.out.
3356# It will help us diagnose broken compilers, and finding out an intuition
3357# of exeext.
3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3359$as_echo_n "checking whether the C compiler works... " >&6; }
3360ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3361
3362# The possible output files:
3363ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3364
3365ac_rmfiles=
3366for ac_file in $ac_files
3367do
3368  case $ac_file in
3369    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3370    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3371  esac
3372done
3373rm -f $ac_rmfiles
3374
3375if { { ac_try="$ac_link_default"
3376case "(($ac_try" in
3377  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378  *) ac_try_echo=$ac_try;;
3379esac
3380eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381$as_echo "$ac_try_echo"; } >&5
3382  (eval "$ac_link_default") 2>&5
3383  ac_status=$?
3384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385  test $ac_status = 0; }; then :
3386  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3387# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3388# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3389# so that the user can short-circuit this test for compilers unknown to
3390# Autoconf.
3391for ac_file in $ac_files ''
3392do
3393  test -f "$ac_file" || continue
3394  case $ac_file in
3395    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3396	;;
3397    [ab].out )
3398	# We found the default executable, but exeext='' is most
3399	# certainly right.
3400	break;;
3401    *.* )
3402	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3403	then :; else
3404	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3405	fi
3406	# We set ac_cv_exeext here because the later test for it is not
3407	# safe: cross compilers may not add the suffix if given an `-o'
3408	# argument, so we may need to know it at that point already.
3409	# Even if this section looks crufty: it has the advantage of
3410	# actually working.
3411	break;;
3412    * )
3413	break;;
3414  esac
3415done
3416test "$ac_cv_exeext" = no && ac_cv_exeext=
3417
3418else
3419  ac_file=''
3420fi
3421if test -z "$ac_file"; then :
3422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3423$as_echo "no" >&6; }
3424$as_echo "$as_me: failed program was:" >&5
3425sed 's/^/| /' conftest.$ac_ext >&5
3426
3427{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3429{ as_fn_set_status 77
3430as_fn_error "C compiler cannot create executables
3431See \`config.log' for more details." "$LINENO" 5; }; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3434$as_echo "yes" >&6; }
3435fi
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3437$as_echo_n "checking for C compiler default output file name... " >&6; }
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3439$as_echo "$ac_file" >&6; }
3440ac_exeext=$ac_cv_exeext
3441
3442rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3443ac_clean_files=$ac_clean_files_save
3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3445$as_echo_n "checking for suffix of executables... " >&6; }
3446if { { ac_try="$ac_link"
3447case "(($ac_try" in
3448  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449  *) ac_try_echo=$ac_try;;
3450esac
3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
3453  (eval "$ac_link") 2>&5
3454  ac_status=$?
3455  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456  test $ac_status = 0; }; then :
3457  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3458# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3459# work properly (i.e., refer to `conftest.exe'), while it won't with
3460# `rm'.
3461for ac_file in conftest.exe conftest conftest.*; do
3462  test -f "$ac_file" || continue
3463  case $ac_file in
3464    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3465    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3466	  break;;
3467    * ) break;;
3468  esac
3469done
3470else
3471  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3473as_fn_error "cannot compute suffix of executables: cannot compile and link
3474See \`config.log' for more details." "$LINENO" 5; }
3475fi
3476rm -f conftest conftest$ac_cv_exeext
3477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3478$as_echo "$ac_cv_exeext" >&6; }
3479
3480rm -f conftest.$ac_ext
3481EXEEXT=$ac_cv_exeext
3482ac_exeext=$EXEEXT
3483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484/* end confdefs.h.  */
3485#include <stdio.h>
3486int
3487main ()
3488{
3489FILE *f = fopen ("conftest.out", "w");
3490 return ferror (f) || fclose (f) != 0;
3491
3492  ;
3493  return 0;
3494}
3495_ACEOF
3496ac_clean_files="$ac_clean_files conftest.out"
3497# Check that the compiler produces executables we can run.  If not, either
3498# the compiler is broken, or we cross compile.
3499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3500$as_echo_n "checking whether we are cross compiling... " >&6; }
3501if test "$cross_compiling" != yes; then
3502  { { ac_try="$ac_link"
3503case "(($ac_try" in
3504  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505  *) ac_try_echo=$ac_try;;
3506esac
3507eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508$as_echo "$ac_try_echo"; } >&5
3509  (eval "$ac_link") 2>&5
3510  ac_status=$?
3511  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512  test $ac_status = 0; }
3513  if { ac_try='./conftest$ac_cv_exeext'
3514  { { case "(($ac_try" in
3515  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3516  *) ac_try_echo=$ac_try;;
3517esac
3518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3519$as_echo "$ac_try_echo"; } >&5
3520  (eval "$ac_try") 2>&5
3521  ac_status=$?
3522  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3523  test $ac_status = 0; }; }; then
3524    cross_compiling=no
3525  else
3526    if test "$cross_compiling" = maybe; then
3527	cross_compiling=yes
3528    else
3529	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531as_fn_error "cannot run C compiled programs.
3532If you meant to cross compile, use \`--host'.
3533See \`config.log' for more details." "$LINENO" 5; }
3534    fi
3535  fi
3536fi
3537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3538$as_echo "$cross_compiling" >&6; }
3539
3540rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3541ac_clean_files=$ac_clean_files_save
3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3543$as_echo_n "checking for suffix of object files... " >&6; }
3544if test "${ac_cv_objext+set}" = set; then :
3545  $as_echo_n "(cached) " >&6
3546else
3547  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3548/* end confdefs.h.  */
3549
3550int
3551main ()
3552{
3553
3554  ;
3555  return 0;
3556}
3557_ACEOF
3558rm -f conftest.o conftest.obj
3559if { { ac_try="$ac_compile"
3560case "(($ac_try" in
3561  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562  *) ac_try_echo=$ac_try;;
3563esac
3564eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565$as_echo "$ac_try_echo"; } >&5
3566  (eval "$ac_compile") 2>&5
3567  ac_status=$?
3568  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3569  test $ac_status = 0; }; then :
3570  for ac_file in conftest.o conftest.obj conftest.*; do
3571  test -f "$ac_file" || continue;
3572  case $ac_file in
3573    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3574    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3575       break;;
3576  esac
3577done
3578else
3579  $as_echo "$as_me: failed program was:" >&5
3580sed 's/^/| /' conftest.$ac_ext >&5
3581
3582{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error "cannot compute suffix of object files: cannot compile
3585See \`config.log' for more details." "$LINENO" 5; }
3586fi
3587rm -f conftest.$ac_cv_objext conftest.$ac_ext
3588fi
3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3590$as_echo "$ac_cv_objext" >&6; }
3591OBJEXT=$ac_cv_objext
3592ac_objext=$OBJEXT
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3594$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3595if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3596  $as_echo_n "(cached) " >&6
3597else
3598  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599/* end confdefs.h.  */
3600
3601int
3602main ()
3603{
3604#ifndef __GNUC__
3605       choke me
3606#endif
3607
3608  ;
3609  return 0;
3610}
3611_ACEOF
3612if ac_fn_c_try_compile "$LINENO"; then :
3613  ac_compiler_gnu=yes
3614else
3615  ac_compiler_gnu=no
3616fi
3617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618ac_cv_c_compiler_gnu=$ac_compiler_gnu
3619
3620fi
3621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3622$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3623if test $ac_compiler_gnu = yes; then
3624  GCC=yes
3625else
3626  GCC=
3627fi
3628ac_test_CFLAGS=${CFLAGS+set}
3629ac_save_CFLAGS=$CFLAGS
3630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3631$as_echo_n "checking whether $CC accepts -g... " >&6; }
3632if test "${ac_cv_prog_cc_g+set}" = set; then :
3633  $as_echo_n "(cached) " >&6
3634else
3635  ac_save_c_werror_flag=$ac_c_werror_flag
3636   ac_c_werror_flag=yes
3637   ac_cv_prog_cc_g=no
3638   CFLAGS="-g"
3639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3640/* end confdefs.h.  */
3641
3642int
3643main ()
3644{
3645
3646  ;
3647  return 0;
3648}
3649_ACEOF
3650if ac_fn_c_try_compile "$LINENO"; then :
3651  ac_cv_prog_cc_g=yes
3652else
3653  CFLAGS=""
3654      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3655/* end confdefs.h.  */
3656
3657int
3658main ()
3659{
3660
3661  ;
3662  return 0;
3663}
3664_ACEOF
3665if ac_fn_c_try_compile "$LINENO"; then :
3666
3667else
3668  ac_c_werror_flag=$ac_save_c_werror_flag
3669	 CFLAGS="-g"
3670	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671/* end confdefs.h.  */
3672
3673int
3674main ()
3675{
3676
3677  ;
3678  return 0;
3679}
3680_ACEOF
3681if ac_fn_c_try_compile "$LINENO"; then :
3682  ac_cv_prog_cc_g=yes
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687fi
3688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689   ac_c_werror_flag=$ac_save_c_werror_flag
3690fi
3691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3692$as_echo "$ac_cv_prog_cc_g" >&6; }
3693if test "$ac_test_CFLAGS" = set; then
3694  CFLAGS=$ac_save_CFLAGS
3695elif test $ac_cv_prog_cc_g = yes; then
3696  if test "$GCC" = yes; then
3697    CFLAGS="-g -O2"
3698  else
3699    CFLAGS="-g"
3700  fi
3701else
3702  if test "$GCC" = yes; then
3703    CFLAGS="-O2"
3704  else
3705    CFLAGS=
3706  fi
3707fi
3708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3709$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3710if test "${ac_cv_prog_cc_c89+set}" = set; then :
3711  $as_echo_n "(cached) " >&6
3712else
3713  ac_cv_prog_cc_c89=no
3714ac_save_CC=$CC
3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716/* end confdefs.h.  */
3717#include <stdarg.h>
3718#include <stdio.h>
3719#include <sys/types.h>
3720#include <sys/stat.h>
3721/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3722struct buf { int x; };
3723FILE * (*rcsopen) (struct buf *, struct stat *, int);
3724static char *e (p, i)
3725     char **p;
3726     int i;
3727{
3728  return p[i];
3729}
3730static char *f (char * (*g) (char **, int), char **p, ...)
3731{
3732  char *s;
3733  va_list v;
3734  va_start (v,p);
3735  s = g (p, va_arg (v,int));
3736  va_end (v);
3737  return s;
3738}
3739
3740/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3741   function prototypes and stuff, but not '\xHH' hex character constants.
3742   These don't provoke an error unfortunately, instead are silently treated
3743   as 'x'.  The following induces an error, until -std is added to get
3744   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3745   array size at least.  It's necessary to write '\x00'==0 to get something
3746   that's true only with -std.  */
3747int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3748
3749/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3750   inside strings and character constants.  */
3751#define FOO(x) 'x'
3752int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3753
3754int test (int i, double x);
3755struct s1 {int (*f) (int a);};
3756struct s2 {int (*f) (double a);};
3757int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3758int argc;
3759char **argv;
3760int
3761main ()
3762{
3763return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3764  ;
3765  return 0;
3766}
3767_ACEOF
3768for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3769	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3770do
3771  CC="$ac_save_CC $ac_arg"
3772  if ac_fn_c_try_compile "$LINENO"; then :
3773  ac_cv_prog_cc_c89=$ac_arg
3774fi
3775rm -f core conftest.err conftest.$ac_objext
3776  test "x$ac_cv_prog_cc_c89" != "xno" && break
3777done
3778rm -f conftest.$ac_ext
3779CC=$ac_save_CC
3780
3781fi
3782# AC_CACHE_VAL
3783case "x$ac_cv_prog_cc_c89" in
3784  x)
3785    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3786$as_echo "none needed" >&6; } ;;
3787  xno)
3788    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3789$as_echo "unsupported" >&6; } ;;
3790  *)
3791    CC="$CC $ac_cv_prog_cc_c89"
3792    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3793$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3794esac
3795if test "x$ac_cv_prog_cc_c89" != xno; then :
3796
3797fi
3798
3799ac_ext=c
3800ac_cpp='$CPP $CPPFLAGS'
3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3803ac_compiler_gnu=$ac_cv_c_compiler_gnu
3804DEPDIR="${am__leading_dot}deps"
3805
3806ac_config_commands="$ac_config_commands depfiles"
3807
3808
3809am_make=${MAKE-make}
3810cat > confinc << 'END'
3811am__doit:
3812	@echo done
3813.PHONY: am__doit
3814END
3815# If we don't find an include directive, just comment out the code.
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3817$as_echo_n "checking for style of include used by $am_make... " >&6; }
3818am__include="#"
3819am__quote=
3820_am_result=none
3821# First try GNU make style include.
3822echo "include confinc" > confmf
3823# We grep out `Entering directory' and `Leaving directory'
3824# messages which can occur if `w' ends up in MAKEFLAGS.
3825# In particular we don't look at `^make:' because GNU make might
3826# be invoked under some other name (usually "gmake"), in which
3827# case it prints its new name instead of `make'.
3828if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3829   am__include=include
3830   am__quote=
3831   _am_result=GNU
3832fi
3833# Now try BSD make style include.
3834if test "$am__include" = "#"; then
3835   echo '.include "confinc"' > confmf
3836   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3837      am__include=.include
3838      am__quote="\""
3839      _am_result=BSD
3840   fi
3841fi
3842
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3845$as_echo "$_am_result" >&6; }
3846rm -f confinc confmf
3847
3848# Check whether --enable-dependency-tracking was given.
3849if test "${enable_dependency_tracking+set}" = set; then :
3850  enableval=$enable_dependency_tracking;
3851fi
3852
3853if test "x$enable_dependency_tracking" != xno; then
3854  am_depcomp="$ac_aux_dir/depcomp"
3855  AMDEPBACKSLASH='\'
3856fi
3857 if test "x$enable_dependency_tracking" != xno; then
3858  AMDEP_TRUE=
3859  AMDEP_FALSE='#'
3860else
3861  AMDEP_TRUE='#'
3862  AMDEP_FALSE=
3863fi
3864
3865
3866
3867depcc="$CC"   am_compiler_list=
3868
3869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3870$as_echo_n "checking dependency style of $depcc... " >&6; }
3871if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3872  $as_echo_n "(cached) " >&6
3873else
3874  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3875  # We make a subdir and do the tests there.  Otherwise we can end up
3876  # making bogus files that we don't know about and never remove.  For
3877  # instance it was reported that on HP-UX the gcc test will end up
3878  # making a dummy file named `D' -- because `-MD' means `put the output
3879  # in D'.
3880  mkdir conftest.dir
3881  # Copy depcomp to subdir because otherwise we won't find it if we're
3882  # using a relative directory.
3883  cp "$am_depcomp" conftest.dir
3884  cd conftest.dir
3885  # We will build objects and dependencies in a subdirectory because
3886  # it helps to detect inapplicable dependency modes.  For instance
3887  # both Tru64's cc and ICC support -MD to output dependencies as a
3888  # side effect of compilation, but ICC will put the dependencies in
3889  # the current directory while Tru64 will put them in the object
3890  # directory.
3891  mkdir sub
3892
3893  am_cv_CC_dependencies_compiler_type=none
3894  if test "$am_compiler_list" = ""; then
3895     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3896  fi
3897  for depmode in $am_compiler_list; do
3898    # Setup a source with many dependencies, because some compilers
3899    # like to wrap large dependency lists on column 80 (with \), and
3900    # we should not choose a depcomp mode which is confused by this.
3901    #
3902    # We need to recreate these files for each test, as the compiler may
3903    # overwrite some of them when testing with obscure command lines.
3904    # This happens at least with the AIX C compiler.
3905    : > sub/conftest.c
3906    for i in 1 2 3 4 5 6; do
3907      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3908      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3909      # Solaris 8's {/usr,}/bin/sh.
3910      touch sub/conftst$i.h
3911    done
3912    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3913
3914    case $depmode in
3915    nosideeffect)
3916      # after this tag, mechanisms are not by side-effect, so they'll
3917      # only be used when explicitly requested
3918      if test "x$enable_dependency_tracking" = xyes; then
3919	continue
3920      else
3921	break
3922      fi
3923      ;;
3924    none) break ;;
3925    esac
3926    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3927    # mode.  It turns out that the SunPro C++ compiler does not properly
3928    # handle `-M -o', and we need to detect this.
3929    if depmode=$depmode \
3930       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3931       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3932       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3933         >/dev/null 2>conftest.err &&
3934       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3935       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3936       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3937       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3938      # icc doesn't choke on unknown options, it will just issue warnings
3939      # or remarks (even with -Werror).  So we grep stderr for any message
3940      # that says an option was ignored or not supported.
3941      # When given -MP, icc 7.0 and 7.1 complain thusly:
3942      #   icc: Command line warning: ignoring option '-M'; no argument required
3943      # The diagnosis changed in icc 8.0:
3944      #   icc: Command line remark: option '-MP' not supported
3945      if (grep 'ignoring option' conftest.err ||
3946          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3947        am_cv_CC_dependencies_compiler_type=$depmode
3948        break
3949      fi
3950    fi
3951  done
3952
3953  cd ..
3954  rm -rf conftest.dir
3955else
3956  am_cv_CC_dependencies_compiler_type=none
3957fi
3958
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3961$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3962CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3963
3964 if
3965  test "x$enable_dependency_tracking" != xno \
3966  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3967  am__fastdepCC_TRUE=
3968  am__fastdepCC_FALSE='#'
3969else
3970  am__fastdepCC_TRUE='#'
3971  am__fastdepCC_FALSE=
3972fi
3973
3974
3975ac_ext=c
3976ac_cpp='$CPP $CPPFLAGS'
3977ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3978ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3979ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3981$as_echo_n "checking how to run the C preprocessor... " >&6; }
3982# On Suns, sometimes $CPP names a directory.
3983if test -n "$CPP" && test -d "$CPP"; then
3984  CPP=
3985fi
3986if test -z "$CPP"; then
3987  if test "${ac_cv_prog_CPP+set}" = set; then :
3988  $as_echo_n "(cached) " >&6
3989else
3990      # Double quotes because CPP needs to be expanded
3991    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3992    do
3993      ac_preproc_ok=false
3994for ac_c_preproc_warn_flag in '' yes
3995do
3996  # Use a header file that comes with gcc, so configuring glibc
3997  # with a fresh cross-compiler works.
3998  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3999  # <limits.h> exists even on freestanding compilers.
4000  # On the NeXT, cc -E runs the code through the compiler's parser,
4001  # not just through cpp. "Syntax error" is here to catch this case.
4002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003/* end confdefs.h.  */
4004#ifdef __STDC__
4005# include <limits.h>
4006#else
4007# include <assert.h>
4008#endif
4009		     Syntax error
4010_ACEOF
4011if ac_fn_c_try_cpp "$LINENO"; then :
4012
4013else
4014  # Broken: fails on valid input.
4015continue
4016fi
4017rm -f conftest.err conftest.$ac_ext
4018
4019  # OK, works on sane cases.  Now check whether nonexistent headers
4020  # can be detected and how.
4021  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022/* end confdefs.h.  */
4023#include <ac_nonexistent.h>
4024_ACEOF
4025if ac_fn_c_try_cpp "$LINENO"; then :
4026  # Broken: success on invalid input.
4027continue
4028else
4029  # Passes both tests.
4030ac_preproc_ok=:
4031break
4032fi
4033rm -f conftest.err conftest.$ac_ext
4034
4035done
4036# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4037rm -f conftest.err conftest.$ac_ext
4038if $ac_preproc_ok; then :
4039  break
4040fi
4041
4042    done
4043    ac_cv_prog_CPP=$CPP
4044
4045fi
4046  CPP=$ac_cv_prog_CPP
4047else
4048  ac_cv_prog_CPP=$CPP
4049fi
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4051$as_echo "$CPP" >&6; }
4052ac_preproc_ok=false
4053for ac_c_preproc_warn_flag in '' yes
4054do
4055  # Use a header file that comes with gcc, so configuring glibc
4056  # with a fresh cross-compiler works.
4057  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4058  # <limits.h> exists even on freestanding compilers.
4059  # On the NeXT, cc -E runs the code through the compiler's parser,
4060  # not just through cpp. "Syntax error" is here to catch this case.
4061  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062/* end confdefs.h.  */
4063#ifdef __STDC__
4064# include <limits.h>
4065#else
4066# include <assert.h>
4067#endif
4068		     Syntax error
4069_ACEOF
4070if ac_fn_c_try_cpp "$LINENO"; then :
4071
4072else
4073  # Broken: fails on valid input.
4074continue
4075fi
4076rm -f conftest.err conftest.$ac_ext
4077
4078  # OK, works on sane cases.  Now check whether nonexistent headers
4079  # can be detected and how.
4080  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4081/* end confdefs.h.  */
4082#include <ac_nonexistent.h>
4083_ACEOF
4084if ac_fn_c_try_cpp "$LINENO"; then :
4085  # Broken: success on invalid input.
4086continue
4087else
4088  # Passes both tests.
4089ac_preproc_ok=:
4090break
4091fi
4092rm -f conftest.err conftest.$ac_ext
4093
4094done
4095# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4096rm -f conftest.err conftest.$ac_ext
4097if $ac_preproc_ok; then :
4098
4099else
4100  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4102as_fn_error "C preprocessor \"$CPP\" fails sanity check
4103See \`config.log' for more details." "$LINENO" 5; }
4104fi
4105
4106ac_ext=c
4107ac_cpp='$CPP $CPPFLAGS'
4108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111
4112
4113if test "x$CC" != xcc; then
4114  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4115$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4116else
4117  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4118$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4119fi
4120set dummy $CC; ac_cc=`$as_echo "$2" |
4121		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4122if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4123  $as_echo_n "(cached) " >&6
4124else
4125  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h.  */
4127
4128int
4129main ()
4130{
4131
4132  ;
4133  return 0;
4134}
4135_ACEOF
4136# Make sure it works both with $CC and with simple cc.
4137# We do the test twice because some compilers refuse to overwrite an
4138# existing .o file with -o, though they will create one.
4139ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4140rm -f conftest2.*
4141if { { case "(($ac_try" in
4142  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4143  *) ac_try_echo=$ac_try;;
4144esac
4145eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4146$as_echo "$ac_try_echo"; } >&5
4147  (eval "$ac_try") 2>&5
4148  ac_status=$?
4149  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4150  test $ac_status = 0; } &&
4151   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4152  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153  *) ac_try_echo=$ac_try;;
4154esac
4155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4156$as_echo "$ac_try_echo"; } >&5
4157  (eval "$ac_try") 2>&5
4158  ac_status=$?
4159  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4160  test $ac_status = 0; };
4161then
4162  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4163  if test "x$CC" != xcc; then
4164    # Test first that cc exists at all.
4165    if { ac_try='cc -c conftest.$ac_ext >&5'
4166  { { case "(($ac_try" in
4167  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4168  *) ac_try_echo=$ac_try;;
4169esac
4170eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4171$as_echo "$ac_try_echo"; } >&5
4172  (eval "$ac_try") 2>&5
4173  ac_status=$?
4174  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4175  test $ac_status = 0; }; }; then
4176      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4177      rm -f conftest2.*
4178      if { { case "(($ac_try" in
4179  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4180  *) ac_try_echo=$ac_try;;
4181esac
4182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4183$as_echo "$ac_try_echo"; } >&5
4184  (eval "$ac_try") 2>&5
4185  ac_status=$?
4186  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4187  test $ac_status = 0; } &&
4188	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4189  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4190  *) ac_try_echo=$ac_try;;
4191esac
4192eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4193$as_echo "$ac_try_echo"; } >&5
4194  (eval "$ac_try") 2>&5
4195  ac_status=$?
4196  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4197  test $ac_status = 0; };
4198      then
4199	# cc works too.
4200	:
4201      else
4202	# cc exists but doesn't like -o.
4203	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4204      fi
4205    fi
4206  fi
4207else
4208  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4209fi
4210rm -f core conftest*
4211
4212fi
4213if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4215$as_echo "yes" >&6; }
4216else
4217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4218$as_echo "no" >&6; }
4219
4220$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4221
4222fi
4223
4224# FIXME: we rely on the cache variable name because
4225# there is no other way.
4226set dummy $CC
4227ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4228if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
4229   # Losing compiler, so override with the script.
4230   # FIXME: It is wrong to rewrite CC.
4231   # But if we don't then we get into trouble of one sort or another.
4232   # A longer-term fix would be to have automake use am__CC in this case,
4233   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4234   CC="$am_aux_dir/compile $CC"
4235fi
4236
4237
4238
4239tre_version_1=`echo $PACKAGE_VERSION | cut -d . -f 1`
4240tre_version_2=`echo $PACKAGE_VERSION | cut -d . -f 2`
4241tre_version_3=`echo $PACKAGE_VERSION | cut -d . -f 3`
4242tre_version=$tre_version_1.$tre_version_2.$tre_version_3
4243
4244cat >>confdefs.h <<_ACEOF
4245#define TRE_VERSION "$tre_version"
4246_ACEOF
4247
4248
4249cat >>confdefs.h <<_ACEOF
4250#define TRE_VERSION_1 $tre_version_1
4251_ACEOF
4252
4253
4254cat >>confdefs.h <<_ACEOF
4255#define TRE_VERSION_2 $tre_version_2
4256_ACEOF
4257
4258
4259cat >>confdefs.h <<_ACEOF
4260#define TRE_VERSION_3 $tre_version_3
4261_ACEOF
4262
4263TRE_VERSION=$tre_version
4264
4265
4266# Check whether --enable-profile was given.
4267if test "${enable_profile+set}" = set; then :
4268  enableval=$enable_profile;  tre_profile="$enableval"
4269else
4270   tre_profile="no"
4271fi
4272
4273
4274# Check whether --enable-debug was given.
4275if test "${enable_debug+set}" = set; then :
4276  enableval=$enable_debug;  tre_debug="$enableval"
4277else
4278   tre_debug="no"
4279fi
4280
4281if test "$tre_debug" = "yes"; then
4282   if true; then
4283  TRE_DEBUG_TRUE=
4284  TRE_DEBUG_FALSE='#'
4285else
4286  TRE_DEBUG_TRUE='#'
4287  TRE_DEBUG_FALSE=
4288fi
4289
4290
4291$as_echo "#define TRE_DEBUG 1" >>confdefs.h
4292
4293else
4294   if false; then
4295  TRE_DEBUG_TRUE=
4296  TRE_DEBUG_FALSE='#'
4297else
4298  TRE_DEBUG_TRUE='#'
4299  TRE_DEBUG_FALSE=
4300fi
4301
4302
4303$as_echo "#define NDEBUG 1" >>confdefs.h
4304
4305fi
4306
4307if test "$tre_profile" = "yes"; then
4308  CFLAGS="$CFLAGS -pg"
4309   if true; then
4310  TRE_PROFILE_TRUE=
4311  TRE_PROFILE_FALSE='#'
4312else
4313  TRE_PROFILE_TRUE='#'
4314  TRE_PROFILE_FALSE=
4315fi
4316
4317else
4318   if false; then
4319  TRE_PROFILE_TRUE=
4320  TRE_PROFILE_FALSE='#'
4321else
4322  TRE_PROFILE_TRUE='#'
4323  TRE_PROFILE_FALSE=
4324fi
4325
4326fi
4327
4328# Check whether --enable-warnings was given.
4329if test "${enable_warnings+set}" = set; then :
4330  enableval=$enable_warnings;  tre_cc_warnings="$enableval"
4331else
4332   tre_cc_warnings="yes"
4333fi
4334
4335if test "$tre_cc_warnings" = "yes"; then
4336
4337  # Don't override if CFLAGS was already set.
4338  if test -z "$ac_env_CFLAGS_set"; then
4339    ansi=
4340    if test -z "$ansi"; then
4341      msg="for C compiler warning flags"
4342    else
4343      msg="for C compiler warning and ANSI conformance flags"
4344    fi
4345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4346$as_echo_n "checking $msg... " >&6; }
4347if test "${vl_cv_prog_cc_warnings+set}" = set; then :
4348  $as_echo_n "(cached) " >&6
4349else
4350
4351      if test -n "$CC"; then
4352        cat > conftest.c <<EOF
4353int main(int argc, char **argv) { return 0; }
4354EOF
4355
4356                if test "$GCC" = "yes"; then
4357          if test -z "$ansi"; then
4358            vl_cv_prog_cc_warnings="-Wall"
4359          else
4360            vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
4361          fi
4362
4363
4364                elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4365             $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4366             test -f conftest.o; then
4367          if test -z "$ansi"; then
4368            vl_cv_prog_cc_warnings="-v"
4369          else
4370            vl_cv_prog_cc_warnings="-v -Xc"
4371          fi
4372
4373                elif ($CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 ||
4374              $CC -V 2>&1 | grep -i "Compaq C" > /dev/null 2>&1) &&
4375             $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4376             test -f conftest.o; then
4377          if test -z "$ansi"; then
4378            vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4379          else
4380            vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4381          fi
4382
4383                elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4384	     $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4385             test -f conftest.o; then
4386          if test -z "$ansi"; then
4387            vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd:nouni:nocnv"
4388          else
4389            vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd:nouni:nocnv -qlanglvl=ansi"
4390          fi
4391
4392                elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4393             $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4394             test -f conftest.o; then
4395          if test -z "$ansi"; then
4396            vl_cv_prog_cc_warnings="-fullwarn"
4397          else
4398            vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4399          fi
4400
4401                elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4402             $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4403             test -f conftest.o; then
4404          if test -z "$ansi"; then
4405            vl_cv_prog_cc_warnings="+w1"
4406          else
4407            vl_cv_prog_cc_warnings="+w1 -Aa"
4408          fi
4409
4410                elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4411             $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4412             test -f conftest.o; then
4413          if test -z "$ansi"; then
4414            vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4415          else
4416            vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4417          fi
4418
4419                elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4420             $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4421             test -f conftest.o; then
4422          if test -z "$ansi"; then
4423            vl_cv_prog_cc_warnings="-h msglevel 2"
4424          else
4425            vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4426          fi
4427
4428        fi
4429        rm -f conftest.*
4430      fi
4431      if test -n "$vl_cv_prog_cc_warnings"; then
4432        CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4433      else
4434        vl_cv_prog_cc_warnings="unknown"
4435      fi
4436
4437fi
4438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4439$as_echo "$vl_cv_prog_cc_warnings" >&6; }
4440  fi
4441
4442fi
4443
4444# Check whether --enable-approx was given.
4445if test "${enable_approx+set}" = set; then :
4446  enableval=$enable_approx;  tre_approx="$enableval"
4447else
4448   tre_approx="yes"
4449fi
4450
4451if test "$tre_approx" = "yes"; then
4452
4453$as_echo "#define TRE_APPROX 1" >>confdefs.h
4454
4455   if true; then
4456  TRE_APPROX_TRUE=
4457  TRE_APPROX_FALSE='#'
4458else
4459  TRE_APPROX_TRUE='#'
4460  TRE_APPROX_FALSE=
4461fi
4462
4463else
4464   if false; then
4465  TRE_APPROX_TRUE=
4466  TRE_APPROX_FALSE='#'
4467else
4468  TRE_APPROX_TRUE='#'
4469  TRE_APPROX_FALSE=
4470fi
4471
4472fi
4473
4474if test "$tre_approx" = "yes"; then
4475  # Check whether --enable-agrep was given.
4476if test "${enable_agrep+set}" = set; then :
4477  enableval=$enable_agrep;  tre_agrep="$enableval"
4478else
4479   tre_agrep="yes"
4480fi
4481
4482else
4483  tre_agrep="no (requires approximate matching)"
4484fi
4485
4486if test "$tre_agrep" = "yes"; then
4487   if true; then
4488  TRE_AGREP_TRUE=
4489  TRE_AGREP_FALSE='#'
4490else
4491  TRE_AGREP_TRUE='#'
4492  TRE_AGREP_FALSE=
4493fi
4494
4495else
4496   if false; then
4497  TRE_AGREP_TRUE=
4498  TRE_AGREP_FALSE='#'
4499else
4500  TRE_AGREP_TRUE='#'
4501  TRE_AGREP_FALSE=
4502fi
4503
4504fi
4505
4506
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4509$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4510if test "${ac_cv_c_const+set}" = set; then :
4511  $as_echo_n "(cached) " >&6
4512else
4513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4514/* end confdefs.h.  */
4515
4516int
4517main ()
4518{
4519/* FIXME: Include the comments suggested by Paul. */
4520#ifndef __cplusplus
4521  /* Ultrix mips cc rejects this.  */
4522  typedef int charset[2];
4523  const charset cs;
4524  /* SunOS 4.1.1 cc rejects this.  */
4525  char const *const *pcpcc;
4526  char **ppc;
4527  /* NEC SVR4.0.2 mips cc rejects this.  */
4528  struct point {int x, y;};
4529  static struct point const zero = {0,0};
4530  /* AIX XL C 1.02.0.0 rejects this.
4531     It does not let you subtract one const X* pointer from another in
4532     an arm of an if-expression whose if-part is not a constant
4533     expression */
4534  const char *g = "string";
4535  pcpcc = &g + (g ? g-g : 0);
4536  /* HPUX 7.0 cc rejects these. */
4537  ++pcpcc;
4538  ppc = (char**) pcpcc;
4539  pcpcc = (char const *const *) ppc;
4540  { /* SCO 3.2v4 cc rejects this.  */
4541    char *t;
4542    char const *s = 0 ? (char *) 0 : (char const *) 0;
4543
4544    *t++ = 0;
4545    if (s) return 0;
4546  }
4547  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4548    int x[] = {25, 17};
4549    const int *foo = &x[0];
4550    ++foo;
4551  }
4552  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4553    typedef const int *iptr;
4554    iptr p = 0;
4555    ++p;
4556  }
4557  { /* AIX XL C 1.02.0.0 rejects this saying
4558       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4559    struct s { int j; const int *ap[3]; };
4560    struct s *b; b->j = 5;
4561  }
4562  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4563    const int foo = 10;
4564    if (!foo) return 0;
4565  }
4566  return !cs[0] && !zero.x;
4567#endif
4568
4569  ;
4570  return 0;
4571}
4572_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then :
4574  ac_cv_c_const=yes
4575else
4576  ac_cv_c_const=no
4577fi
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579fi
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4581$as_echo "$ac_cv_c_const" >&6; }
4582if test $ac_cv_c_const = no; then
4583
4584$as_echo "#define const /**/" >>confdefs.h
4585
4586fi
4587
4588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4589$as_echo_n "checking for inline... " >&6; }
4590if test "${ac_cv_c_inline+set}" = set; then :
4591  $as_echo_n "(cached) " >&6
4592else
4593  ac_cv_c_inline=no
4594for ac_kw in inline __inline__ __inline; do
4595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h.  */
4597#ifndef __cplusplus
4598typedef int foo_t;
4599static $ac_kw foo_t static_foo () {return 0; }
4600$ac_kw foo_t foo () {return 0; }
4601#endif
4602
4603_ACEOF
4604if ac_fn_c_try_compile "$LINENO"; then :
4605  ac_cv_c_inline=$ac_kw
4606fi
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608  test "$ac_cv_c_inline" != no && break
4609done
4610
4611fi
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4613$as_echo "$ac_cv_c_inline" >&6; }
4614
4615case $ac_cv_c_inline in
4616  inline | yes) ;;
4617  *)
4618    case $ac_cv_c_inline in
4619      no) ac_val=;;
4620      *) ac_val=$ac_cv_c_inline;;
4621    esac
4622    cat >>confdefs.h <<_ACEOF
4623#ifndef __cplusplus
4624#define inline $ac_val
4625#endif
4626_ACEOF
4627    ;;
4628esac
4629
4630
4631
4632$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4633
4634
4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4636$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4637if test "${ac_cv_path_GREP+set}" = set; then :
4638  $as_echo_n "(cached) " >&6
4639else
4640  if test -z "$GREP"; then
4641  ac_path_GREP_found=false
4642  # Loop through the user's path and test for each of PROGNAME-LIST
4643  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4644for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4645do
4646  IFS=$as_save_IFS
4647  test -z "$as_dir" && as_dir=.
4648    for ac_prog in grep ggrep; do
4649    for ac_exec_ext in '' $ac_executable_extensions; do
4650      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4651      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4652# Check for GNU ac_path_GREP and select it if it is found.
4653  # Check for GNU $ac_path_GREP
4654case `"$ac_path_GREP" --version 2>&1` in
4655*GNU*)
4656  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4657*)
4658  ac_count=0
4659  $as_echo_n 0123456789 >"conftest.in"
4660  while :
4661  do
4662    cat "conftest.in" "conftest.in" >"conftest.tmp"
4663    mv "conftest.tmp" "conftest.in"
4664    cp "conftest.in" "conftest.nl"
4665    $as_echo 'GREP' >> "conftest.nl"
4666    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4667    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4668    as_fn_arith $ac_count + 1 && ac_count=$as_val
4669    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4670      # Best one so far, save it but keep looking for a better one
4671      ac_cv_path_GREP="$ac_path_GREP"
4672      ac_path_GREP_max=$ac_count
4673    fi
4674    # 10*(2^10) chars as input seems more than enough
4675    test $ac_count -gt 10 && break
4676  done
4677  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4678esac
4679
4680      $ac_path_GREP_found && break 3
4681    done
4682  done
4683  done
4684IFS=$as_save_IFS
4685  if test -z "$ac_cv_path_GREP"; then
4686    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4687  fi
4688else
4689  ac_cv_path_GREP=$GREP
4690fi
4691
4692fi
4693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4694$as_echo "$ac_cv_path_GREP" >&6; }
4695 GREP="$ac_cv_path_GREP"
4696
4697
4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4699$as_echo_n "checking for egrep... " >&6; }
4700if test "${ac_cv_path_EGREP+set}" = set; then :
4701  $as_echo_n "(cached) " >&6
4702else
4703  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4704   then ac_cv_path_EGREP="$GREP -E"
4705   else
4706     if test -z "$EGREP"; then
4707  ac_path_EGREP_found=false
4708  # Loop through the user's path and test for each of PROGNAME-LIST
4709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4711do
4712  IFS=$as_save_IFS
4713  test -z "$as_dir" && as_dir=.
4714    for ac_prog in egrep; do
4715    for ac_exec_ext in '' $ac_executable_extensions; do
4716      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4717      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4718# Check for GNU ac_path_EGREP and select it if it is found.
4719  # Check for GNU $ac_path_EGREP
4720case `"$ac_path_EGREP" --version 2>&1` in
4721*GNU*)
4722  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4723*)
4724  ac_count=0
4725  $as_echo_n 0123456789 >"conftest.in"
4726  while :
4727  do
4728    cat "conftest.in" "conftest.in" >"conftest.tmp"
4729    mv "conftest.tmp" "conftest.in"
4730    cp "conftest.in" "conftest.nl"
4731    $as_echo 'EGREP' >> "conftest.nl"
4732    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4733    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4734    as_fn_arith $ac_count + 1 && ac_count=$as_val
4735    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4736      # Best one so far, save it but keep looking for a better one
4737      ac_cv_path_EGREP="$ac_path_EGREP"
4738      ac_path_EGREP_max=$ac_count
4739    fi
4740    # 10*(2^10) chars as input seems more than enough
4741    test $ac_count -gt 10 && break
4742  done
4743  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4744esac
4745
4746      $ac_path_EGREP_found && break 3
4747    done
4748  done
4749  done
4750IFS=$as_save_IFS
4751  if test -z "$ac_cv_path_EGREP"; then
4752    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4753  fi
4754else
4755  ac_cv_path_EGREP=$EGREP
4756fi
4757
4758   fi
4759fi
4760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4761$as_echo "$ac_cv_path_EGREP" >&6; }
4762 EGREP="$ac_cv_path_EGREP"
4763
4764
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4766$as_echo_n "checking for ANSI C header files... " >&6; }
4767if test "${ac_cv_header_stdc+set}" = set; then :
4768  $as_echo_n "(cached) " >&6
4769else
4770  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4771/* end confdefs.h.  */
4772#include <stdlib.h>
4773#include <stdarg.h>
4774#include <string.h>
4775#include <float.h>
4776
4777int
4778main ()
4779{
4780
4781  ;
4782  return 0;
4783}
4784_ACEOF
4785if ac_fn_c_try_compile "$LINENO"; then :
4786  ac_cv_header_stdc=yes
4787else
4788  ac_cv_header_stdc=no
4789fi
4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791
4792if test $ac_cv_header_stdc = yes; then
4793  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4795/* end confdefs.h.  */
4796#include <string.h>
4797
4798_ACEOF
4799if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4800  $EGREP "memchr" >/dev/null 2>&1; then :
4801
4802else
4803  ac_cv_header_stdc=no
4804fi
4805rm -f conftest*
4806
4807fi
4808
4809if test $ac_cv_header_stdc = yes; then
4810  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4811  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4812/* end confdefs.h.  */
4813#include <stdlib.h>
4814
4815_ACEOF
4816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4817  $EGREP "free" >/dev/null 2>&1; then :
4818
4819else
4820  ac_cv_header_stdc=no
4821fi
4822rm -f conftest*
4823
4824fi
4825
4826if test $ac_cv_header_stdc = yes; then
4827  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4828  if test "$cross_compiling" = yes; then :
4829  :
4830else
4831  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832/* end confdefs.h.  */
4833#include <ctype.h>
4834#include <stdlib.h>
4835#if ((' ' & 0x0FF) == 0x020)
4836# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4837# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4838#else
4839# define ISLOWER(c) \
4840		   (('a' <= (c) && (c) <= 'i') \
4841		     || ('j' <= (c) && (c) <= 'r') \
4842		     || ('s' <= (c) && (c) <= 'z'))
4843# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4844#endif
4845
4846#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4847int
4848main ()
4849{
4850  int i;
4851  for (i = 0; i < 256; i++)
4852    if (XOR (islower (i), ISLOWER (i))
4853	|| toupper (i) != TOUPPER (i))
4854      return 2;
4855  return 0;
4856}
4857_ACEOF
4858if ac_fn_c_try_run "$LINENO"; then :
4859
4860else
4861  ac_cv_header_stdc=no
4862fi
4863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4864  conftest.$ac_objext conftest.beam conftest.$ac_ext
4865fi
4866
4867fi
4868fi
4869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4870$as_echo "$ac_cv_header_stdc" >&6; }
4871if test $ac_cv_header_stdc = yes; then
4872
4873$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4874
4875fi
4876
4877
4878
4879# Check whether --with-alloca was given.
4880if test "${with_alloca+set}" = set; then :
4881  withval=$with_alloca;  tre_use_alloca="$withval"
4882else
4883   tre_use_alloca="yes"
4884fi
4885
4886if test "$tre_use_alloca" = "yes"; then
4887  ALLOCA=""
4888  # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4889for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4890		  inttypes.h stdint.h unistd.h
4891do :
4892  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4893ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4894"
4895eval as_val=\$$as_ac_Header
4896   if test "x$as_val" = x""yes; then :
4897  cat >>confdefs.h <<_ACEOF
4898#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4899_ACEOF
4900
4901fi
4902
4903done
4904
4905
4906# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4907# for constant arguments.  Useless!
4908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4909$as_echo_n "checking for working alloca.h... " >&6; }
4910if test "${ac_cv_working_alloca_h+set}" = set; then :
4911  $as_echo_n "(cached) " >&6
4912else
4913  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4914/* end confdefs.h.  */
4915#include <alloca.h>
4916int
4917main ()
4918{
4919char *p = (char *) alloca (2 * sizeof (int));
4920			  if (p) return 0;
4921  ;
4922  return 0;
4923}
4924_ACEOF
4925if ac_fn_c_try_link "$LINENO"; then :
4926  ac_cv_working_alloca_h=yes
4927else
4928  ac_cv_working_alloca_h=no
4929fi
4930rm -f core conftest.err conftest.$ac_objext \
4931    conftest$ac_exeext conftest.$ac_ext
4932fi
4933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4934$as_echo "$ac_cv_working_alloca_h" >&6; }
4935if test $ac_cv_working_alloca_h = yes; then
4936
4937$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4938
4939fi
4940
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4942$as_echo_n "checking for alloca... " >&6; }
4943if test "${ac_cv_func_alloca_works+set}" = set; then :
4944  $as_echo_n "(cached) " >&6
4945else
4946  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4947/* end confdefs.h.  */
4948#ifdef __GNUC__
4949# define alloca __builtin_alloca
4950#else
4951# ifdef _MSC_VER
4952#  include <malloc.h>
4953#  define alloca _alloca
4954# else
4955#  ifdef HAVE_ALLOCA_H
4956#   include <alloca.h>
4957#  else
4958#   ifdef _AIX
4959 #pragma alloca
4960#   else
4961#    ifndef alloca /* predefined by HP cc +Olibcalls */
4962char *alloca ();
4963#    endif
4964#   endif
4965#  endif
4966# endif
4967#endif
4968
4969int
4970main ()
4971{
4972char *p = (char *) alloca (1);
4973				    if (p) return 0;
4974  ;
4975  return 0;
4976}
4977_ACEOF
4978if ac_fn_c_try_link "$LINENO"; then :
4979  ac_cv_func_alloca_works=yes
4980else
4981  ac_cv_func_alloca_works=no
4982fi
4983rm -f core conftest.err conftest.$ac_objext \
4984    conftest$ac_exeext conftest.$ac_ext
4985fi
4986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4987$as_echo "$ac_cv_func_alloca_works" >&6; }
4988
4989if test $ac_cv_func_alloca_works = yes; then
4990
4991$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4992
4993else
4994  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4995# that cause trouble.  Some versions do not even contain alloca or
4996# contain a buggy version.  If you still want to use their alloca,
4997# use ar to extract alloca.o from them instead of compiling alloca.c.
4998
4999ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5000
5001$as_echo "#define C_ALLOCA 1" >>confdefs.h
5002
5003
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5005$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5006if test "${ac_cv_os_cray+set}" = set; then :
5007  $as_echo_n "(cached) " >&6
5008else
5009  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5010/* end confdefs.h.  */
5011#if defined CRAY && ! defined CRAY2
5012webecray
5013#else
5014wenotbecray
5015#endif
5016
5017_ACEOF
5018if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5019  $EGREP "webecray" >/dev/null 2>&1; then :
5020  ac_cv_os_cray=yes
5021else
5022  ac_cv_os_cray=no
5023fi
5024rm -f conftest*
5025
5026fi
5027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5028$as_echo "$ac_cv_os_cray" >&6; }
5029if test $ac_cv_os_cray = yes; then
5030  for ac_func in _getb67 GETB67 getb67; do
5031    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5032ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5033eval as_val=\$$as_ac_var
5034   if test "x$as_val" = x""yes; then :
5035
5036cat >>confdefs.h <<_ACEOF
5037#define CRAY_STACKSEG_END $ac_func
5038_ACEOF
5039
5040    break
5041fi
5042
5043  done
5044fi
5045
5046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5047$as_echo_n "checking stack direction for C alloca... " >&6; }
5048if test "${ac_cv_c_stack_direction+set}" = set; then :
5049  $as_echo_n "(cached) " >&6
5050else
5051  if test "$cross_compiling" = yes; then :
5052  ac_cv_c_stack_direction=0
5053else
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056$ac_includes_default
5057int
5058find_stack_direction ()
5059{
5060  static char *addr = 0;
5061  auto char dummy;
5062  if (addr == 0)
5063    {
5064      addr = &dummy;
5065      return find_stack_direction ();
5066    }
5067  else
5068    return (&dummy > addr) ? 1 : -1;
5069}
5070
5071int
5072main ()
5073{
5074  return find_stack_direction () < 0;
5075}
5076_ACEOF
5077if ac_fn_c_try_run "$LINENO"; then :
5078  ac_cv_c_stack_direction=1
5079else
5080  ac_cv_c_stack_direction=-1
5081fi
5082rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5083  conftest.$ac_objext conftest.beam conftest.$ac_ext
5084fi
5085
5086fi
5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5088$as_echo "$ac_cv_c_stack_direction" >&6; }
5089cat >>confdefs.h <<_ACEOF
5090#define STACK_DIRECTION $ac_cv_c_stack_direction
5091_ACEOF
5092
5093
5094fi
5095
5096  if test -z "$ALLOCA"; then
5097    # alloca() works.
5098
5099$as_echo "#define TRE_USE_ALLOCA 1" >>confdefs.h
5100
5101  fi
5102fi
5103
5104# Check whether --enable-system-abi was given.
5105if test "${enable_system_abi+set}" = set; then :
5106  enableval=$enable_system_abi;  tre_system_abi="$enableval"
5107else
5108   tre_system_abi="no"
5109fi
5110
5111
5112# If we are building a version compatible with the system ABI, we need to
5113# find an absolute path to the system regex.h (so it can be included from
5114# TRE regex.h using `#include "/path/to/regex.h"').  Then we need to
5115# find a field in the system defined regex_t struct where a pointer to
5116# the compiled regex object can be stored.
5117
5118if test "$tre_system_abi" = "yes"; then
5119  # Check that there is a system regex.h to begin with.  We may need
5120  # to include sys/types.h before regex.h, so check for that first.
5121  for ac_header in sys/types.h
5122do :
5123  ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
5124if test "x$ac_cv_header_sys_types_h" = x""yes; then :
5125  cat >>confdefs.h <<_ACEOF
5126#define HAVE_SYS_TYPES_H 1
5127_ACEOF
5128
5129fi
5130
5131done
5132
5133  for ac_header in regex.h
5134do :
5135  ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "#if HAVE_SYS_TYPES_H
5136#include <sys/types.h>
5137#endif
5138
5139"
5140if test "x$ac_cv_header_regex_h" = x""yes; then :
5141  cat >>confdefs.h <<_ACEOF
5142#define HAVE_REGEX_H 1
5143_ACEOF
5144
5145else
5146   tre_system_abi="no (regex.h not found)"
5147fi
5148
5149done
5150
5151fi
5152
5153if test "$tre_system_abi" = "yes"; then
5154  # Find out where system regex.h is.  This is done by running the C
5155  # preprocessor and grepping its output, hopefully getting a full
5156  # path to regex.h.
5157  { $as_echo "$as_me:${as_lineno-$LINENO}: checking path to system regex.h" >&5
5158$as_echo_n "checking path to system regex.h... " >&6; }
5159  echo '#include <regex.h>' > conftest.c
5160  tre_system_regex_h=`$CPP conftest.c \
5161    | grep '^#[a-z]* [0-9]* "\(.*regex.h\)"' \
5162    | head -1 \
5163    | sed 's/^#[a-z]* [0-9]* \"\(.*\)\".*/\1/'`
5164  rm -f conftest.c
5165  if test -n "$tre_system_regex_h" && test -f "$tre_system_regex_h"; then
5166    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tre_system_regex_h" >&5
5167$as_echo "$tre_system_regex_h" >&6; }
5168  else
5169    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
5170$as_echo "unknown" >&6; }
5171    tre_system_abi="no (could determine path to systeg regex.h)"
5172  fi
5173fi
5174
5175if test "$tre_system_abi" = "yes"; then
5176  # Find a field in the system regex_t struct where we can store a pointer.
5177  # This is done by trying several names that are known to work on different
5178  # systems.
5179  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable field for a pointer in regex_t" >&5
5180$as_echo_n "checking for a usable field for a pointer in regex_t... " >&6; }
5181  tre_regex_t_field=""
5182  for field in buffer re_comp __re_comp __reg_expression \
5183               re_g "re_pad[0]"; do
5184    if test -z "$tre_regex_t_field"; then
5185      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5186/* end confdefs.h.  */
5187
5188#include <sys/types.h>
5189#include <regex.h>
5190
5191int
5192main ()
5193{
5194
5195    regex_t foo;
5196    void *bar = foo.$field;
5197    foo.$field = bar;
5198
5199  ;
5200  return 0;
5201}
5202_ACEOF
5203if ac_fn_c_try_compile "$LINENO"; then :
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $field" >&5
5205$as_echo "$field" >&6; }
5206          tre_regex_t_field="$field"
5207fi
5208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5209    fi
5210  done
5211  if test -z "$tre_regex_t_field"; then
5212    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5213$as_echo "no" >&6; }
5214    tre_system_abi="no (unknown regex_t contents, report to \
5215$PACKAGE_BUGREPORT)"
5216  fi
5217fi
5218
5219if test "$tre_system_abi" = "yes"; then
5220  # So far, so good.  Now check if we can redefine the system regex
5221  # functions.  For example, the system headers may define the
5222  # standard functions as static wrapper functions (like on IRIX)
5223  # which prevents redefining them later.
5224
5225  # IRIX has some macro magic which we need to turn off.
5226
5227$as_echo "#define _REGCOMP_INTERNAL 1" >>confdefs.h
5228
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if POSIX regex functions can be redefined" >&5
5230$as_echo_n "checking if POSIX regex functions can be redefined... " >&6; }
5231  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232/* end confdefs.h.  */
5233
5234#include <sys/types.h>
5235#include <regex.h>
5236
5237int
5238regcomp(regex_t *preg, const char *regex, int cflags)
5239{
5240  return 0;
5241}
5242void
5243regfree(regex_t *preg)
5244{
5245  return;
5246}
5247int
5248regexec(const regex_t *preg, const char *str,
5249        size_t nmatch, regmatch_t pmatch[], int eflags)
5250{
5251  return 0;
5252}
5253size_t
5254regerror(int errcode, const regex_t *preg, char *errbuf,
5255	 size_t errbuf_size)
5256{
5257  return 0;
5258}
5259
5260int
5261main ()
5262{
5263
5264  ;
5265  return 0;
5266}
5267_ACEOF
5268if ac_fn_c_try_compile "$LINENO"; then :
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5270$as_echo "yes" >&6; }
5271          tre_system_abi="yes"
5272else
5273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274$as_echo "no" >&6; }
5275          tre_system_abi="no (unable to redefine system functions)"
5276fi
5277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5278fi
5279
5280if test "$tre_system_abi" = "yes"; then
5281  # Great, everything seems to be OK for ABI compatibility.  Just check
5282  # some additional types that may or may not be defined, and set up
5283  # variables to enable ABI compatibility in regex.h.
5284
5285  ac_fn_c_check_type "$LINENO" "reg_errcode_t" "ac_cv_type_reg_errcode_t" "
5286#ifdef HAVE_SYS_TYPES_H
5287#include <sys/types.h>
5288#endif /* HAVE_SYS_TYPES_H */
5289#ifdef HAVE_REGEX_H
5290#include <regex.h>
5291#endif /* HAVE_REGEX_H */
5292
5293"
5294if test "x$ac_cv_type_reg_errcode_t" = x""yes; then :
5295
5296cat >>confdefs.h <<_ACEOF
5297#define HAVE_REG_ERRCODE_T 1
5298_ACEOF
5299
5300
5301fi
5302
5303
5304
5305$as_echo "#define TRE_USE_SYSTEM_REGEX_H 1" >>confdefs.h
5306
5307
5308cat >>confdefs.h <<_ACEOF
5309#define TRE_SYSTEM_REGEX_H_PATH "$tre_system_regex_h"
5310_ACEOF
5311
5312
5313cat >>confdefs.h <<_ACEOF
5314#define TRE_REGEX_T_FIELD $tre_regex_t_field
5315_ACEOF
5316
5317else
5318  $as_echo "#define TRE_REGEX_T_FIELD value" >>confdefs.h
5319
5320fi
5321
5322for ac_func in isascii isblank
5323do :
5324  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5325ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5326eval as_val=\$$as_ac_var
5327   if test "x$as_val" = x""yes; then :
5328  cat >>confdefs.h <<_ACEOF
5329#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5330_ACEOF
5331
5332fi
5333done
5334
5335
5336for ac_header in getopt.h
5337do :
5338  ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
5339if test "x$ac_cv_header_getopt_h" = x""yes; then :
5340  cat >>confdefs.h <<_ACEOF
5341#define HAVE_GETOPT_H 1
5342_ACEOF
5343
5344fi
5345
5346done
5347
5348for ac_func in getopt_long
5349do :
5350  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5351if test "x$ac_cv_func_getopt_long" = x""yes; then :
5352  cat >>confdefs.h <<_ACEOF
5353#define HAVE_GETOPT_LONG 1
5354_ACEOF
5355
5356else
5357   # FreeBSD has a "gnugetopt" library.
5358    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lgnugetopt" >&5
5359$as_echo_n "checking for getopt_long in -lgnugetopt... " >&6; }
5360if test "${ac_cv_lib_gnugetopt_getopt_long+set}" = set; then :
5361  $as_echo_n "(cached) " >&6
5362else
5363  ac_check_lib_save_LIBS=$LIBS
5364LIBS="-lgnugetopt  $LIBS"
5365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366/* end confdefs.h.  */
5367
5368/* Override any GCC internal prototype to avoid an error.
5369   Use char because int might match the return type of a GCC
5370   builtin and then its argument prototype would still apply.  */
5371#ifdef __cplusplus
5372extern "C"
5373#endif
5374char getopt_long ();
5375int
5376main ()
5377{
5378return getopt_long ();
5379  ;
5380  return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_link "$LINENO"; then :
5384  ac_cv_lib_gnugetopt_getopt_long=yes
5385else
5386  ac_cv_lib_gnugetopt_getopt_long=no
5387fi
5388rm -f core conftest.err conftest.$ac_objext \
5389    conftest$ac_exeext conftest.$ac_ext
5390LIBS=$ac_check_lib_save_LIBS
5391fi
5392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnugetopt_getopt_long" >&5
5393$as_echo "$ac_cv_lib_gnugetopt_getopt_long" >&6; }
5394if test "x$ac_cv_lib_gnugetopt_getopt_long" = x""yes; then :
5395   $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
5396
5397fi
5398
5399fi
5400done
5401
5402
5403# Check whether --enable-wchar was given.
5404if test "${enable_wchar+set}" = set; then :
5405  enableval=$enable_wchar;  tre_enable_wchar="$enableval"
5406else
5407   tre_enable_wchar="detect"
5408fi
5409
5410
5411
5412# Check whether --with-libutf8 was given.
5413if test "${with_libutf8+set}" = set; then :
5414  withval=$with_libutf8;  if test "$with_val" = "no"; then
5415      tre_libutf8="no"
5416    else
5417      tre_libutf8="yes"
5418      tre_libutf8_dirs="$with_libutf8"
5419      tre_libutf8_libs="-lutf8"
5420    fi
5421else
5422   tre_libutf8="detect"
5423    tre_libutf8_dirs="none /usr /usr/local"
5424    tre_libutf8_libs="none -lutf8"
5425fi
5426
5427
5428
5429if test "$tre_enable_wchar" != "no"; then
5430
5431    old_libs="$LIBS"
5432  old_ldflags="$LDFLAGS"
5433  old_cppflags="$CPPFLAGS"
5434  if test "$tre_libutf8" != "no"; then
5435    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libutf8" >&5
5436$as_echo_n "checking for libutf8... " >&6; }
5437    found="no"
5438        for try_dir in $tre_libutf8_dirs; do
5439      if test "$try_dir" = "none"; then
5440        LDFLAGS="$old_ldflags"
5441        CPPFLAGS="$old_cppflags"
5442      else
5443        LDFLAGS="$old_ldflags -L$try_dir/lib"
5444        CPPFLAGS="$old_cppflags -I$try_dir/include"
5445      fi
5446            for try_lib in $tre_libutf8_libs; do
5447        if test "$try_lib" = "none"; then
5448          LIBS="$old_libs"
5449        else
5450          LIBS="$try_lib $old_libs"
5451        fi
5452        	        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h.  */
5454
5455/* Override any GCC internal prototype to avoid an error.
5456   Use char because int might match the return type of a GCC
5457   builtin and then its argument prototype would still apply.  */
5458#ifdef __cplusplus
5459extern "C"
5460#endif
5461char mbrtowc ();
5462int
5463main ()
5464{
5465return mbrtowc ();
5466  ;
5467  return 0;
5468}
5469_ACEOF
5470if ac_fn_c_try_link "$LINENO"; then :
5471  found="yes"
5472fi
5473rm -f core conftest.err conftest.$ac_objext \
5474    conftest$ac_exeext conftest.$ac_ext
5475        if test "$found" = "yes"; then
5476          break;
5477        fi
5478        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479/* end confdefs.h.  */
5480
5481/* Override any GCC internal prototype to avoid an error.
5482   Use char because int might match the return type of a GCC
5483   builtin and then its argument prototype would still apply.  */
5484#ifdef __cplusplus
5485extern "C"
5486#endif
5487char utf8_mbrtowc ();
5488int
5489main ()
5490{
5491return utf8_mbrtowc ();
5492  ;
5493  return 0;
5494}
5495_ACEOF
5496if ac_fn_c_try_link "$LINENO"; then :
5497  found="yes"
5498fi
5499rm -f core conftest.err conftest.$ac_objext \
5500    conftest$ac_exeext conftest.$ac_ext
5501        if test "$found" = "yes"; then
5502          break;
5503        fi
5504      done
5505      if test "$found" = "yes"; then
5506        break;
5507      fi
5508    done
5509
5510        if test "$found" = "yes"; then
5511      if test "$LIBS" = "$old_libs"; then
5512        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not needed" >&5
5513$as_echo "not needed" >&6; }
5514        tre_libutf8="no"
5515      else
5516        { $as_echo "$as_me:${as_lineno-$LINENO}: result: using from $try_dir/{lib,include}" >&5
5517$as_echo "using from $try_dir/{lib,include}" >&6; }
5518        tre_libutf8="yes"
5519      fi
5520    else
5521      LIBS="$old_libs"
5522      LDFLAGS="$old_ldflags"
5523      CPPFLAGS="$old_cppflags"
5524      if test "$tre_libutf8" = "detect"; then
5525        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526$as_echo "no" >&6; }
5527        tre_libutf8="no"
5528      else
5529        # Fail if libutf8 was requested but was not found.
5530        as_fn_error "not found" "$LINENO" 5
5531      fi
5532    fi
5533  fi
5534
5535  if test "$tre_libutf8" = "yes"; then
5536        tre_wchar="yes"
5537    for ac_header in libutf8.h
5538do :
5539  ac_fn_c_check_header_mongrel "$LINENO" "libutf8.h" "ac_cv_header_libutf8_h" "$ac_includes_default"
5540if test "x$ac_cv_header_libutf8_h" = x""yes; then :
5541  cat >>confdefs.h <<_ACEOF
5542#define HAVE_LIBUTF8_H 1
5543_ACEOF
5544
5545fi
5546
5547done
5548
5549  else
5550        for ac_header in wchar.h wctype.h
5551do :
5552  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5554eval as_val=\$$as_ac_Header
5555   if test "x$as_val" = x""yes; then :
5556  cat >>confdefs.h <<_ACEOF
5557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5558_ACEOF
5559
5560fi
5561
5562done
5563
5564  fi
5565
5566else
5567  tre_wchar_reason="disabled with --disable-wchar"
5568  tre_wchar="no ($tre_wchar_reason)"
5569fi
5570
5571
5572tre_includes="
5573#ifdef HAVE_WCHAR_H
5574#include <wchar.h>
5575#endif /* HAVE_WCHAR_H */
5576#ifdef HAVE_WCTYPE_H
5577#include <wctype.h>
5578#endif /* HAVE_WCTYPE_H */
5579#ifdef HAVE_LIBUTF8_H
5580#include <libutf8.h>
5581#endif /* HAVE_LIBUTF8_H */
5582"
5583
5584if test "$tre_enable_wchar" != "no"; then
5585    ac_fn_c_check_type "$LINENO" "wchar_t" "ac_cv_type_wchar_t" " $tre_includes
5586"
5587if test "x$ac_cv_type_wchar_t" = x""yes; then :
5588
5589cat >>confdefs.h <<_ACEOF
5590#define HAVE_WCHAR_T 1
5591_ACEOF
5592
5593 tre_wchar="yes"
5594
5595  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether WCHAR_MAX is defined" >&5
5596$as_echo_n "checking whether WCHAR_MAX is defined... " >&6; }
5597if test "${ax_cv_decl_wchar_max+set}" = set; then :
5598  $as_echo_n "(cached) " >&6
5599else
5600
5601    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5602/* end confdefs.h.  */
5603
5604#ifdef HAVE_WCHAR_H
5605#include <wchar.h>
5606#endif
5607
5608int
5609main ()
5610{
5611WCHAR_MAX
5612  ;
5613  return 0;
5614}
5615_ACEOF
5616if ac_fn_c_try_compile "$LINENO"; then :
5617  ax_cv_decl_wchar_max="yes"
5618else
5619  ax_cv_decl_wchar_max="no"
5620fi
5621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5622fi
5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_decl_wchar_max" >&5
5624$as_echo "$ax_cv_decl_wchar_max" >&6; }
5625  if test $ax_cv_decl_wchar_max = "no"; then
5626
5627 typename=`echo wchar_t | sed "s/[^a-zA-Z0-9_]/_/g"`
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is signed" >&5
5629$as_echo_n "checking whether wchar_t is signed... " >&6; }
5630if { as_var=ax_cv_decl_${typename}_signed; eval "test \"\${$as_var+set}\" = set"; }; then :
5631  $as_echo_n "(cached) " >&6
5632else
5633
5634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635/* end confdefs.h.  */
5636
5637#ifdef HAVE_WCHAR_H
5638#include <wchar.h>
5639#endif
5640
5641int
5642main ()
5643{
5644 int foo [ 1 - 2 * !(((wchar_t) -1) < 0) ]
5645  ;
5646  return 0;
5647}
5648_ACEOF
5649if ac_fn_c_try_compile "$LINENO"; then :
5650   eval "ax_cv_decl_${typename}_signed=\"yes\""
5651else
5652   eval "ax_cv_decl_${typename}_signed=\"no\""
5653fi
5654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655fi
5656eval ac_res=\$ax_cv_decl_${typename}_signed
5657	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5658$as_echo "$ac_res" >&6; }
5659 symbolname=`echo wchar_t | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5660 if eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"yes\""; then
5661   true
5662    wc_signed="yes"
5663
5664$as_echo "#define WCHAR_T_SIGNED 1" >>confdefs.h
5665
5666 elif eval "test \"\${ax_cv_decl_${typename}_signed}\" = \"no\""; then
5667   true
5668    wc_signed="no"
5669
5670$as_echo "#define WCHAR_T_UNSIGNED 1" >>confdefs.h
5671
5672 fi
5673
5674    if test "$wc_signed" = "yes"; then
5675
5676$as_echo "#define WCHAR_MAX (1L << (sizeof(wchar_t) * 8 - 1) - 1)" >>confdefs.h
5677
5678    elif test "$wc_signed" = "no"; then
5679      $as_echo "#define WCHAR_MAX (1L << (sizeof(wchar_t) * 8) - 1)" >>confdefs.h
5680
5681    fi
5682  fi
5683
5684else
5685   tre_wchar_reason="wchar_t type not found"
5686      tre_wchar="no ($tre_wchar_reason)"
5687fi
5688
5689
5690  if test "$tre_wchar" = "yes"; then
5691        ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" " $tre_includes
5692"
5693if test "x$ac_cv_type_wint_t" = x""yes; then :
5694
5695cat >>confdefs.h <<_ACEOF
5696#define HAVE_WINT_T 1
5697_ACEOF
5698
5699
5700else
5701   tre_wchar_reason="wint_t type not found"
5702        tre_wchar="no ($tre_wchar_reason)"
5703fi
5704
5705  fi
5706
5707  if test "$tre_wchar" = "yes"; then
5708        ac_fn_c_check_type "$LINENO" "mbstate_t" "ac_cv_type_mbstate_t" " $tre_includes
5709"
5710if test "x$ac_cv_type_mbstate_t" = x""yes; then :
5711
5712cat >>confdefs.h <<_ACEOF
5713#define HAVE_MBSTATE_T 1
5714_ACEOF
5715
5716
5717fi
5718
5719  fi
5720
5721  if test "$tre_wchar" = "yes"; then
5722        found="no"
5723
5724          for ax_func in wcsrtombs wcstombs; do
5725    ax_fname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g"`
5726    ax_symbolname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5727    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_func" >&5
5728$as_echo_n "checking for $ax_func... " >&6; }
5729if { as_var=ax_cv_func_${ax_fname}; eval "test \"\${$as_var+set}\" = set"; }; then :
5730  $as_echo_n "(cached) " >&6
5731else
5732
5733      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734/* end confdefs.h.  */
5735 $tre_includes
5736void *foo = $ax_func;
5737
5738int
5739main ()
5740{
5741  return foo != $ax_func;
5742  ;
5743  return 0;
5744}
5745_ACEOF
5746if ac_fn_c_try_link "$LINENO"; then :
5747   eval "ax_cv_func_${ax_fname}=\"yes\""
5748else
5749   eval "ax_cv_func_${ax_fname}=\"no\""
5750fi
5751rm -f core conftest.err conftest.$ac_objext \
5752    conftest$ac_exeext conftest.$ac_ext
5753fi
5754eval ac_res=\$ax_cv_func_${ax_fname}
5755	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5756$as_echo "$ac_res" >&6; }
5757    if eval "test \"\${ax_cv_func_${ax_fname}}\" = \"yes\""; then
5758
5759cat >>confdefs.h <<_ACEOF
5760#define HAVE_${ax_symbolname} 1
5761_ACEOF
5762
5763      found="yes"; break
5764    else
5765      true
5766
5767    fi
5768  done
5769
5770    if test "$found" = "no"; then
5771      tre_wchar_reason="no wcsrtombs or wcstombs found"
5772      tre_wchar="no ($tre_wchar_reason)"
5773    fi
5774  fi
5775
5776  if test "$tre_wchar" = "yes"; then
5777
5778          for ax_func in iswlower iswupper towlower towupper wcschr \
5779                         wcscpy wcslen wcsncpy; do
5780    ax_fname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g"`
5781    ax_symbolname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5782    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_func" >&5
5783$as_echo_n "checking for $ax_func... " >&6; }
5784if { as_var=ax_cv_func_${ax_fname}; eval "test \"\${$as_var+set}\" = set"; }; then :
5785  $as_echo_n "(cached) " >&6
5786else
5787
5788      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5789/* end confdefs.h.  */
5790  $tre_includes
5791void *foo = $ax_func;
5792
5793int
5794main ()
5795{
5796  return foo != $ax_func;
5797  ;
5798  return 0;
5799}
5800_ACEOF
5801if ac_fn_c_try_link "$LINENO"; then :
5802   eval "ax_cv_func_${ax_fname}=\"yes\""
5803else
5804   eval "ax_cv_func_${ax_fname}=\"no\""
5805fi
5806rm -f core conftest.err conftest.$ac_objext \
5807    conftest$ac_exeext conftest.$ac_ext
5808fi
5809eval ac_res=\$ax_cv_func_${ax_fname}
5810	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5811$as_echo "$ac_res" >&6; }
5812    if eval "test \"\${ax_cv_func_${ax_fname}}\" = \"yes\""; then
5813
5814cat >>confdefs.h <<_ACEOF
5815#define HAVE_${ax_symbolname} 1
5816_ACEOF
5817
5818       tre_wchar="yes"
5819    else
5820      true
5821       tre_wchar_reason="$ac_func not found"
5822        tre_wchar="no ($tre_wchar_reason)"
5823        break
5824    fi
5825  done
5826
5827  fi
5828fi
5829
5830case $host in
5831  *-mingw*)
5832        if test "$tre_libutf8" != "yes"; then
5833      tre_wchar_reason="Not supported on MinGW"
5834      tre_wchar="no ($tre_wchar_reason)"
5835    fi
5836    ;;
5837esac
5838
5839# Fail if wide character support was specifically requested but is
5840# not supported on this system.
5841if test "$tre_enable_wchar" = "yes"; then
5842  if test "$tre_wchar" != "yes"; then
5843    as_fn_error "Cannot enable wide character support: $tre_wchar_reason" "$LINENO" 5
5844  fi
5845fi
5846
5847if test "$tre_wchar" = "yes"; then
5848
5849$as_echo "#define TRE_WCHAR 1" >>confdefs.h
5850
5851
5852
5853          for ax_func in wctype iswctype; do
5854    ax_fname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g"`
5855    ax_symbolname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_func" >&5
5857$as_echo_n "checking for $ax_func... " >&6; }
5858if { as_var=ax_cv_func_${ax_fname}; eval "test \"\${$as_var+set}\" = set"; }; then :
5859  $as_echo_n "(cached) " >&6
5860else
5861
5862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863/* end confdefs.h.  */
5864 $tre_includes
5865void *foo = $ax_func;
5866
5867int
5868main ()
5869{
5870  return foo != $ax_func;
5871  ;
5872  return 0;
5873}
5874_ACEOF
5875if ac_fn_c_try_link "$LINENO"; then :
5876   eval "ax_cv_func_${ax_fname}=\"yes\""
5877else
5878   eval "ax_cv_func_${ax_fname}=\"no\""
5879fi
5880rm -f core conftest.err conftest.$ac_objext \
5881    conftest$ac_exeext conftest.$ac_ext
5882fi
5883eval ac_res=\$ax_cv_func_${ax_fname}
5884	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5885$as_echo "$ac_res" >&6; }
5886    if eval "test \"\${ax_cv_func_${ax_fname}}\" = \"yes\""; then
5887
5888cat >>confdefs.h <<_ACEOF
5889#define HAVE_${ax_symbolname} 1
5890_ACEOF
5891
5892
5893    else
5894      true
5895
5896    fi
5897  done
5898
5899
5900          for ax_func in iswascii iswblank; do
5901    ax_fname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g"`
5902    ax_symbolname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5903    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_func" >&5
5904$as_echo_n "checking for $ax_func... " >&6; }
5905if { as_var=ax_cv_func_${ax_fname}; eval "test \"\${$as_var+set}\" = set"; }; then :
5906  $as_echo_n "(cached) " >&6
5907else
5908
5909      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910/* end confdefs.h.  */
5911 $tre_includes
5912void *foo = $ax_func;
5913
5914int
5915main ()
5916{
5917  return foo != $ax_func;
5918  ;
5919  return 0;
5920}
5921_ACEOF
5922if ac_fn_c_try_link "$LINENO"; then :
5923   eval "ax_cv_func_${ax_fname}=\"yes\""
5924else
5925   eval "ax_cv_func_${ax_fname}=\"no\""
5926fi
5927rm -f core conftest.err conftest.$ac_objext \
5928    conftest$ac_exeext conftest.$ac_ext
5929fi
5930eval ac_res=\$ax_cv_func_${ax_fname}
5931	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5932$as_echo "$ac_res" >&6; }
5933    if eval "test \"\${ax_cv_func_${ax_fname}}\" = \"yes\""; then
5934
5935cat >>confdefs.h <<_ACEOF
5936#define HAVE_${ax_symbolname} 1
5937_ACEOF
5938
5939
5940    else
5941      true
5942
5943    fi
5944  done
5945
5946fi
5947
5948# Check whether --enable-multibyte was given.
5949if test "${enable_multibyte+set}" = set; then :
5950  enableval=$enable_multibyte;  tre_enable_multibyte="$enableval"
5951else
5952   tre_enable_multibyte="detect"
5953fi
5954
5955
5956if test "$tre_wchar" != "yes"; then
5957  if test "$tre_enable_multibyte" = "yes"; then
5958    as_fn_error "Cannot enable multibyte character support because wide \
5959character support is not enabled ($tre_wchar_reason)" "$LINENO" 5
5960  fi
5961fi
5962
5963if test "$tre_enable_multibyte" != "no"; then
5964  if test "$tre_wchar" != "yes"; then
5965    tre_multibyte="no (requires wide character support)"
5966  else
5967    found="no"
5968
5969          for ax_func in mbrtowc mbtowc; do
5970    ax_fname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g"`
5971    ax_symbolname=`echo $ax_func | sed "s/[^a-zA-Z0-9_]/_/g" | tr "[a-z]" "[A-Z]"`
5972    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ax_func" >&5
5973$as_echo_n "checking for $ax_func... " >&6; }
5974if { as_var=ax_cv_func_${ax_fname}; eval "test \"\${$as_var+set}\" = set"; }; then :
5975  $as_echo_n "(cached) " >&6
5976else
5977
5978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979/* end confdefs.h.  */
5980 $tre_includes
5981void *foo = $ax_func;
5982
5983int
5984main ()
5985{
5986  return foo != $ax_func;
5987  ;
5988  return 0;
5989}
5990_ACEOF
5991if ac_fn_c_try_link "$LINENO"; then :
5992   eval "ax_cv_func_${ax_fname}=\"yes\""
5993else
5994   eval "ax_cv_func_${ax_fname}=\"no\""
5995fi
5996rm -f core conftest.err conftest.$ac_objext \
5997    conftest$ac_exeext conftest.$ac_ext
5998fi
5999eval ac_res=\$ax_cv_func_${ax_fname}
6000	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6001$as_echo "$ac_res" >&6; }
6002    if eval "test \"\${ax_cv_func_${ax_fname}}\" = \"yes\""; then
6003
6004cat >>confdefs.h <<_ACEOF
6005#define HAVE_${ax_symbolname} 1
6006_ACEOF
6007
6008      found="yes"; break
6009    else
6010      true
6011
6012    fi
6013  done
6014
6015    if test "$found" = "no"; then
6016      tre_mbs_reason="no mbrtowc or mbtowc found"
6017      tre_multibyte="no ($tre_mbs_reason)"
6018    else
6019      tre_multibyte="yes"
6020    fi
6021  fi
6022else
6023  tre_multibyte="no (disabled with --disable-multibyte)"
6024fi
6025
6026# Fail if multibyte character set support was specifically requested but
6027# is not supported on this system.
6028if test "$tre_enable_multibyte" = "yes"; then
6029  if test "$tre_multibyte" != "yes"; then
6030    as_fn_error "Cannot enable multibyte character set support: \
6031$tre_mbs_reason" "$LINENO" 5
6032  fi
6033fi
6034
6035if test "$tre_multibyte" = "yes"; then
6036   if true; then
6037  TRE_MULTIBYTE_TRUE=
6038  TRE_MULTIBYTE_FALSE='#'
6039else
6040  TRE_MULTIBYTE_TRUE='#'
6041  TRE_MULTIBYTE_FALSE=
6042fi
6043
6044
6045$as_echo "#define TRE_MULTIBYTE 1" >>confdefs.h
6046
6047else
6048   if false; then
6049  TRE_MULTIBYTE_TRUE=
6050  TRE_MULTIBYTE_FALSE='#'
6051else
6052  TRE_MULTIBYTE_TRUE='#'
6053  TRE_MULTIBYTE_FALSE=
6054fi
6055
6056fi
6057
6058# Check whether --enable-largefile was given.
6059if test "${enable_largefile+set}" = set; then :
6060  enableval=$enable_largefile;
6061fi
6062
6063if test "$enable_largefile" != no; then
6064
6065  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
6066$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6067if test "${ac_cv_sys_largefile_CC+set}" = set; then :
6068  $as_echo_n "(cached) " >&6
6069else
6070  ac_cv_sys_largefile_CC=no
6071     if test "$GCC" != yes; then
6072       ac_save_CC=$CC
6073       while :; do
6074	 # IRIX 6.2 and later do not support large files by default,
6075	 # so use the C compiler's -n32 option if that helps.
6076	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6077/* end confdefs.h.  */
6078#include <sys/types.h>
6079 /* Check that off_t can represent 2**63 - 1 correctly.
6080    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6081    since some C++ compilers masquerading as C compilers
6082    incorrectly reject 9223372036854775807.  */
6083#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6084  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6085		       && LARGE_OFF_T % 2147483647 == 1)
6086		      ? 1 : -1];
6087int
6088main ()
6089{
6090
6091  ;
6092  return 0;
6093}
6094_ACEOF
6095	 if ac_fn_c_try_compile "$LINENO"; then :
6096  break
6097fi
6098rm -f core conftest.err conftest.$ac_objext
6099	 CC="$CC -n32"
6100	 if ac_fn_c_try_compile "$LINENO"; then :
6101  ac_cv_sys_largefile_CC=' -n32'; break
6102fi
6103rm -f core conftest.err conftest.$ac_objext
6104	 break
6105       done
6106       CC=$ac_save_CC
6107       rm -f conftest.$ac_ext
6108    fi
6109fi
6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6111$as_echo "$ac_cv_sys_largefile_CC" >&6; }
6112  if test "$ac_cv_sys_largefile_CC" != no; then
6113    CC=$CC$ac_cv_sys_largefile_CC
6114  fi
6115
6116  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6117$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6118if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6119  $as_echo_n "(cached) " >&6
6120else
6121  while :; do
6122  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123/* end confdefs.h.  */
6124#include <sys/types.h>
6125 /* Check that off_t can represent 2**63 - 1 correctly.
6126    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6127    since some C++ compilers masquerading as C compilers
6128    incorrectly reject 9223372036854775807.  */
6129#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6130  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6131		       && LARGE_OFF_T % 2147483647 == 1)
6132		      ? 1 : -1];
6133int
6134main ()
6135{
6136
6137  ;
6138  return 0;
6139}
6140_ACEOF
6141if ac_fn_c_try_compile "$LINENO"; then :
6142  ac_cv_sys_file_offset_bits=no; break
6143fi
6144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6145  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6146/* end confdefs.h.  */
6147#define _FILE_OFFSET_BITS 64
6148#include <sys/types.h>
6149 /* Check that off_t can represent 2**63 - 1 correctly.
6150    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6151    since some C++ compilers masquerading as C compilers
6152    incorrectly reject 9223372036854775807.  */
6153#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6154  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6155		       && LARGE_OFF_T % 2147483647 == 1)
6156		      ? 1 : -1];
6157int
6158main ()
6159{
6160
6161  ;
6162  return 0;
6163}
6164_ACEOF
6165if ac_fn_c_try_compile "$LINENO"; then :
6166  ac_cv_sys_file_offset_bits=64; break
6167fi
6168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169  ac_cv_sys_file_offset_bits=unknown
6170  break
6171done
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6174$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6175case $ac_cv_sys_file_offset_bits in #(
6176  no | unknown) ;;
6177  *)
6178cat >>confdefs.h <<_ACEOF
6179#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6180_ACEOF
6181;;
6182esac
6183rm -rf conftest*
6184  if test $ac_cv_sys_file_offset_bits = unknown; then
6185    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6186$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6187if test "${ac_cv_sys_large_files+set}" = set; then :
6188  $as_echo_n "(cached) " >&6
6189else
6190  while :; do
6191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6192/* end confdefs.h.  */
6193#include <sys/types.h>
6194 /* Check that off_t can represent 2**63 - 1 correctly.
6195    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6196    since some C++ compilers masquerading as C compilers
6197    incorrectly reject 9223372036854775807.  */
6198#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6199  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6200		       && LARGE_OFF_T % 2147483647 == 1)
6201		      ? 1 : -1];
6202int
6203main ()
6204{
6205
6206  ;
6207  return 0;
6208}
6209_ACEOF
6210if ac_fn_c_try_compile "$LINENO"; then :
6211  ac_cv_sys_large_files=no; break
6212fi
6213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h.  */
6216#define _LARGE_FILES 1
6217#include <sys/types.h>
6218 /* Check that off_t can represent 2**63 - 1 correctly.
6219    We can't simply define LARGE_OFF_T to be 9223372036854775807,
6220    since some C++ compilers masquerading as C compilers
6221    incorrectly reject 9223372036854775807.  */
6222#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6223  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6224		       && LARGE_OFF_T % 2147483647 == 1)
6225		      ? 1 : -1];
6226int
6227main ()
6228{
6229
6230  ;
6231  return 0;
6232}
6233_ACEOF
6234if ac_fn_c_try_compile "$LINENO"; then :
6235  ac_cv_sys_large_files=1; break
6236fi
6237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6238  ac_cv_sys_large_files=unknown
6239  break
6240done
6241fi
6242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6243$as_echo "$ac_cv_sys_large_files" >&6; }
6244case $ac_cv_sys_large_files in #(
6245  no | unknown) ;;
6246  *)
6247cat >>confdefs.h <<_ACEOF
6248#define _LARGE_FILES $ac_cv_sys_large_files
6249_ACEOF
6250;;
6251esac
6252rm -rf conftest*
6253  fi
6254fi
6255
6256
6257
6258  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6259$as_echo_n "checking whether NLS is requested... " >&6; }
6260    # Check whether --enable-nls was given.
6261if test "${enable_nls+set}" = set; then :
6262  enableval=$enable_nls; USE_NLS=$enableval
6263else
6264  USE_NLS=yes
6265fi
6266
6267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6268$as_echo "$USE_NLS" >&6; }
6269
6270
6271
6272
6273      GETTEXT_MACRO_VERSION=0.17
6274
6275
6276
6277
6278# Prepare PATH_SEPARATOR.
6279# The user is always right.
6280if test "${PATH_SEPARATOR+set}" != set; then
6281  echo "#! /bin/sh" >conf$$.sh
6282  echo  "exit 0"   >>conf$$.sh
6283  chmod +x conf$$.sh
6284  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6285    PATH_SEPARATOR=';'
6286  else
6287    PATH_SEPARATOR=:
6288  fi
6289  rm -f conf$$.sh
6290fi
6291
6292# Find out how to test for executable files. Don't use a zero-byte file,
6293# as systems may use methods other than mode bits to determine executability.
6294cat >conf$$.file <<_ASEOF
6295#! /bin/sh
6296exit 0
6297_ASEOF
6298chmod +x conf$$.file
6299if test -x conf$$.file >/dev/null 2>&1; then
6300  ac_executable_p="test -x"
6301else
6302  ac_executable_p="test -f"
6303fi
6304rm -f conf$$.file
6305
6306# Extract the first word of "msgfmt", so it can be a program name with args.
6307set dummy msgfmt; ac_word=$2
6308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6309$as_echo_n "checking for $ac_word... " >&6; }
6310if test "${ac_cv_path_MSGFMT+set}" = set; then :
6311  $as_echo_n "(cached) " >&6
6312else
6313  case "$MSGFMT" in
6314  [\\/]* | ?:[\\/]*)
6315    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6316    ;;
6317  *)
6318    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6319    for ac_dir in $PATH; do
6320      IFS="$ac_save_IFS"
6321      test -z "$ac_dir" && ac_dir=.
6322      for ac_exec_ext in '' $ac_executable_extensions; do
6323        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6324          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6325          if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
6326     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6327            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6328            break 2
6329          fi
6330        fi
6331      done
6332    done
6333    IFS="$ac_save_IFS"
6334  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6335    ;;
6336esac
6337fi
6338MSGFMT="$ac_cv_path_MSGFMT"
6339if test "$MSGFMT" != ":"; then
6340  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6341$as_echo "$MSGFMT" >&6; }
6342else
6343  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344$as_echo "no" >&6; }
6345fi
6346
6347  # Extract the first word of "gmsgfmt", so it can be a program name with args.
6348set dummy gmsgfmt; ac_word=$2
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if test "${ac_cv_path_GMSGFMT+set}" = set; then :
6352  $as_echo_n "(cached) " >&6
6353else
6354  case $GMSGFMT in
6355  [\\/]* | ?:[\\/]*)
6356  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6357  ;;
6358  *)
6359  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6360for as_dir in $PATH
6361do
6362  IFS=$as_save_IFS
6363  test -z "$as_dir" && as_dir=.
6364    for ac_exec_ext in '' $ac_executable_extensions; do
6365  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6366    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6367    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6368    break 2
6369  fi
6370done
6371  done
6372IFS=$as_save_IFS
6373
6374  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6375  ;;
6376esac
6377fi
6378GMSGFMT=$ac_cv_path_GMSGFMT
6379if test -n "$GMSGFMT"; then
6380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6381$as_echo "$GMSGFMT" >&6; }
6382else
6383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384$as_echo "no" >&6; }
6385fi
6386
6387
6388
6389    case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6390    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6391    *) MSGFMT_015=$MSGFMT ;;
6392  esac
6393
6394  case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6395    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6396    *) GMSGFMT_015=$GMSGFMT ;;
6397  esac
6398
6399
6400
6401# Prepare PATH_SEPARATOR.
6402# The user is always right.
6403if test "${PATH_SEPARATOR+set}" != set; then
6404  echo "#! /bin/sh" >conf$$.sh
6405  echo  "exit 0"   >>conf$$.sh
6406  chmod +x conf$$.sh
6407  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6408    PATH_SEPARATOR=';'
6409  else
6410    PATH_SEPARATOR=:
6411  fi
6412  rm -f conf$$.sh
6413fi
6414
6415# Find out how to test for executable files. Don't use a zero-byte file,
6416# as systems may use methods other than mode bits to determine executability.
6417cat >conf$$.file <<_ASEOF
6418#! /bin/sh
6419exit 0
6420_ASEOF
6421chmod +x conf$$.file
6422if test -x conf$$.file >/dev/null 2>&1; then
6423  ac_executable_p="test -x"
6424else
6425  ac_executable_p="test -f"
6426fi
6427rm -f conf$$.file
6428
6429# Extract the first word of "xgettext", so it can be a program name with args.
6430set dummy xgettext; ac_word=$2
6431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if test "${ac_cv_path_XGETTEXT+set}" = set; then :
6434  $as_echo_n "(cached) " >&6
6435else
6436  case "$XGETTEXT" in
6437  [\\/]* | ?:[\\/]*)
6438    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6439    ;;
6440  *)
6441    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6442    for ac_dir in $PATH; do
6443      IFS="$ac_save_IFS"
6444      test -z "$ac_dir" && ac_dir=.
6445      for ac_exec_ext in '' $ac_executable_extensions; do
6446        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6447          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6448          if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
6449     (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6450            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6451            break 2
6452          fi
6453        fi
6454      done
6455    done
6456    IFS="$ac_save_IFS"
6457  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6458    ;;
6459esac
6460fi
6461XGETTEXT="$ac_cv_path_XGETTEXT"
6462if test "$XGETTEXT" != ":"; then
6463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6464$as_echo "$XGETTEXT" >&6; }
6465else
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467$as_echo "no" >&6; }
6468fi
6469
6470    rm -f messages.po
6471
6472    case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6473    '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6474    *) XGETTEXT_015=$XGETTEXT ;;
6475  esac
6476
6477
6478
6479# Prepare PATH_SEPARATOR.
6480# The user is always right.
6481if test "${PATH_SEPARATOR+set}" != set; then
6482  echo "#! /bin/sh" >conf$$.sh
6483  echo  "exit 0"   >>conf$$.sh
6484  chmod +x conf$$.sh
6485  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6486    PATH_SEPARATOR=';'
6487  else
6488    PATH_SEPARATOR=:
6489  fi
6490  rm -f conf$$.sh
6491fi
6492
6493# Find out how to test for executable files. Don't use a zero-byte file,
6494# as systems may use methods other than mode bits to determine executability.
6495cat >conf$$.file <<_ASEOF
6496#! /bin/sh
6497exit 0
6498_ASEOF
6499chmod +x conf$$.file
6500if test -x conf$$.file >/dev/null 2>&1; then
6501  ac_executable_p="test -x"
6502else
6503  ac_executable_p="test -f"
6504fi
6505rm -f conf$$.file
6506
6507# Extract the first word of "msgmerge", so it can be a program name with args.
6508set dummy msgmerge; ac_word=$2
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510$as_echo_n "checking for $ac_word... " >&6; }
6511if test "${ac_cv_path_MSGMERGE+set}" = set; then :
6512  $as_echo_n "(cached) " >&6
6513else
6514  case "$MSGMERGE" in
6515  [\\/]* | ?:[\\/]*)
6516    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6517    ;;
6518  *)
6519    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6520    for ac_dir in $PATH; do
6521      IFS="$ac_save_IFS"
6522      test -z "$ac_dir" && ac_dir=.
6523      for ac_exec_ext in '' $ac_executable_extensions; do
6524        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
6525          echo "$as_me: trying $ac_dir/$ac_word..." >&5
6526          if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
6527            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6528            break 2
6529          fi
6530        fi
6531      done
6532    done
6533    IFS="$ac_save_IFS"
6534  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6535    ;;
6536esac
6537fi
6538MSGMERGE="$ac_cv_path_MSGMERGE"
6539if test "$MSGMERGE" != ":"; then
6540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6541$as_echo "$MSGMERGE" >&6; }
6542else
6543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6544$as_echo "no" >&6; }
6545fi
6546
6547
6548        test -n "$localedir" || localedir='${datadir}/locale'
6549
6550
6551    test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6552
6553
6554  ac_config_commands="$ac_config_commands po-directories"
6555
6556
6557
6558      if test "X$prefix" = "XNONE"; then
6559    acl_final_prefix="$ac_default_prefix"
6560  else
6561    acl_final_prefix="$prefix"
6562  fi
6563  if test "X$exec_prefix" = "XNONE"; then
6564    acl_final_exec_prefix='${prefix}'
6565  else
6566    acl_final_exec_prefix="$exec_prefix"
6567  fi
6568  acl_save_prefix="$prefix"
6569  prefix="$acl_final_prefix"
6570  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
6571  prefix="$acl_save_prefix"
6572
6573
6574# Check whether --with-gnu-ld was given.
6575if test "${with_gnu_ld+set}" = set; then :
6576  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6577else
6578  with_gnu_ld=no
6579fi
6580
6581# Prepare PATH_SEPARATOR.
6582# The user is always right.
6583if test "${PATH_SEPARATOR+set}" != set; then
6584  echo "#! /bin/sh" >conf$$.sh
6585  echo  "exit 0"   >>conf$$.sh
6586  chmod +x conf$$.sh
6587  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
6588    PATH_SEPARATOR=';'
6589  else
6590    PATH_SEPARATOR=:
6591  fi
6592  rm -f conf$$.sh
6593fi
6594ac_prog=ld
6595if test "$GCC" = yes; then
6596  # Check if gcc -print-prog-name=ld gives a path.
6597  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
6598$as_echo_n "checking for ld used by GCC... " >&6; }
6599  case $host in
6600  *-*-mingw*)
6601    # gcc leaves a trailing carriage return which upsets mingw
6602    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6603  *)
6604    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6605  esac
6606  case $ac_prog in
6607    # Accept absolute paths.
6608    [\\/]* | [A-Za-z]:[\\/]*)
6609      re_direlt='/[^/][^/]*/\.\./'
6610      # Canonicalize the path of ld
6611      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
6612      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6613	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
6614      done
6615      test -z "$LD" && LD="$ac_prog"
6616      ;;
6617  "")
6618    # If it fails, then pretend we aren't using GCC.
6619    ac_prog=ld
6620    ;;
6621  *)
6622    # If it is relative, then search for the first ld in PATH.
6623    with_gnu_ld=unknown
6624    ;;
6625  esac
6626elif test "$with_gnu_ld" = yes; then
6627  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6628$as_echo_n "checking for GNU ld... " >&6; }
6629else
6630  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6631$as_echo_n "checking for non-GNU ld... " >&6; }
6632fi
6633if test "${acl_cv_path_LD+set}" = set; then :
6634  $as_echo_n "(cached) " >&6
6635else
6636  if test -z "$LD"; then
6637  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
6638  for ac_dir in $PATH; do
6639    test -z "$ac_dir" && ac_dir=.
6640    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6641      acl_cv_path_LD="$ac_dir/$ac_prog"
6642      # Check to see if the program is GNU ld.  I'd rather use --version,
6643      # but apparently some GNU ld's only accept -v.
6644      # Break only if it was the GNU/non-GNU ld that we prefer.
6645      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
6646      *GNU* | *'with BFD'*)
6647	test "$with_gnu_ld" != no && break ;;
6648      *)
6649	test "$with_gnu_ld" != yes && break ;;
6650      esac
6651    fi
6652  done
6653  IFS="$ac_save_ifs"
6654else
6655  acl_cv_path_LD="$LD" # Let the user override the test with a path.
6656fi
6657fi
6658
6659LD="$acl_cv_path_LD"
6660if test -n "$LD"; then
6661  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6662$as_echo "$LD" >&6; }
6663else
6664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6665$as_echo "no" >&6; }
6666fi
6667test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6669$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6670if test "${acl_cv_prog_gnu_ld+set}" = set; then :
6671  $as_echo_n "(cached) " >&6
6672else
6673  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
6674case `$LD -v 2>&1 </dev/null` in
6675*GNU* | *'with BFD'*)
6676  acl_cv_prog_gnu_ld=yes ;;
6677*)
6678  acl_cv_prog_gnu_ld=no ;;
6679esac
6680fi
6681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
6682$as_echo "$acl_cv_prog_gnu_ld" >&6; }
6683with_gnu_ld=$acl_cv_prog_gnu_ld
6684
6685
6686
6687
6688                                                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
6689$as_echo_n "checking for shared library run path origin... " >&6; }
6690if test "${acl_cv_rpath+set}" = set; then :
6691  $as_echo_n "(cached) " >&6
6692else
6693
6694    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
6695    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
6696    . ./conftest.sh
6697    rm -f ./conftest.sh
6698    acl_cv_rpath=done
6699
6700fi
6701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
6702$as_echo "$acl_cv_rpath" >&6; }
6703  wl="$acl_cv_wl"
6704  acl_libext="$acl_cv_libext"
6705  acl_shlibext="$acl_cv_shlibext"
6706  acl_libname_spec="$acl_cv_libname_spec"
6707  acl_library_names_spec="$acl_cv_library_names_spec"
6708  acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
6709  acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
6710  acl_hardcode_direct="$acl_cv_hardcode_direct"
6711  acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
6712    # Check whether --enable-rpath was given.
6713if test "${enable_rpath+set}" = set; then :
6714  enableval=$enable_rpath; :
6715else
6716  enable_rpath=yes
6717fi
6718
6719
6720
6721                  acl_libdirstem=lib
6722  searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
6723  if test -n "$searchpath"; then
6724    acl_save_IFS="${IFS= 	}"; IFS=":"
6725    for searchdir in $searchpath; do
6726      if test -d "$searchdir"; then
6727        case "$searchdir" in
6728          */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
6729          *) searchdir=`cd "$searchdir" && pwd`
6730             case "$searchdir" in
6731               */lib64 ) acl_libdirstem=lib64 ;;
6732             esac ;;
6733        esac
6734      fi
6735    done
6736    IFS="$acl_save_IFS"
6737  fi
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747    use_additional=yes
6748
6749  acl_save_prefix="$prefix"
6750  prefix="$acl_final_prefix"
6751  acl_save_exec_prefix="$exec_prefix"
6752  exec_prefix="$acl_final_exec_prefix"
6753
6754    eval additional_includedir=\"$includedir\"
6755    eval additional_libdir=\"$libdir\"
6756
6757  exec_prefix="$acl_save_exec_prefix"
6758  prefix="$acl_save_prefix"
6759
6760
6761# Check whether --with-libiconv-prefix was given.
6762if test "${with_libiconv_prefix+set}" = set; then :
6763  withval=$with_libiconv_prefix;
6764    if test "X$withval" = "Xno"; then
6765      use_additional=no
6766    else
6767      if test "X$withval" = "X"; then
6768
6769  acl_save_prefix="$prefix"
6770  prefix="$acl_final_prefix"
6771  acl_save_exec_prefix="$exec_prefix"
6772  exec_prefix="$acl_final_exec_prefix"
6773
6774          eval additional_includedir=\"$includedir\"
6775          eval additional_libdir=\"$libdir\"
6776
6777  exec_prefix="$acl_save_exec_prefix"
6778  prefix="$acl_save_prefix"
6779
6780      else
6781        additional_includedir="$withval/include"
6782        additional_libdir="$withval/$acl_libdirstem"
6783      fi
6784    fi
6785
6786fi
6787
6788      LIBICONV=
6789  LTLIBICONV=
6790  INCICONV=
6791  LIBICONV_PREFIX=
6792  rpathdirs=
6793  ltrpathdirs=
6794  names_already_handled=
6795  names_next_round='iconv '
6796  while test -n "$names_next_round"; do
6797    names_this_round="$names_next_round"
6798    names_next_round=
6799    for name in $names_this_round; do
6800      already_handled=
6801      for n in $names_already_handled; do
6802        if test "$n" = "$name"; then
6803          already_handled=yes
6804          break
6805        fi
6806      done
6807      if test -z "$already_handled"; then
6808        names_already_handled="$names_already_handled $name"
6809                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6810        eval value=\"\$HAVE_LIB$uppername\"
6811        if test -n "$value"; then
6812          if test "$value" = yes; then
6813            eval value=\"\$LIB$uppername\"
6814            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
6815            eval value=\"\$LTLIB$uppername\"
6816            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
6817          else
6818                                    :
6819          fi
6820        else
6821                              found_dir=
6822          found_la=
6823          found_so=
6824          found_a=
6825          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
6826          if test -n "$acl_shlibext"; then
6827            shrext=".$acl_shlibext"             # typically: shrext=.so
6828          else
6829            shrext=
6830          fi
6831          if test $use_additional = yes; then
6832            dir="$additional_libdir"
6833                                    if test -n "$acl_shlibext"; then
6834              if test -f "$dir/$libname$shrext"; then
6835                found_dir="$dir"
6836                found_so="$dir/$libname$shrext"
6837              else
6838                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6839                  ver=`(cd "$dir" && \
6840                        for f in "$libname$shrext".*; do echo "$f"; done \
6841                        | sed -e "s,^$libname$shrext\\\\.,," \
6842                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6843                        | sed 1q ) 2>/dev/null`
6844                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6845                    found_dir="$dir"
6846                    found_so="$dir/$libname$shrext.$ver"
6847                  fi
6848                else
6849                  eval library_names=\"$acl_library_names_spec\"
6850                  for f in $library_names; do
6851                    if test -f "$dir/$f"; then
6852                      found_dir="$dir"
6853                      found_so="$dir/$f"
6854                      break
6855                    fi
6856                  done
6857                fi
6858              fi
6859            fi
6860                        if test "X$found_dir" = "X"; then
6861              if test -f "$dir/$libname.$acl_libext"; then
6862                found_dir="$dir"
6863                found_a="$dir/$libname.$acl_libext"
6864              fi
6865            fi
6866            if test "X$found_dir" != "X"; then
6867              if test -f "$dir/$libname.la"; then
6868                found_la="$dir/$libname.la"
6869              fi
6870            fi
6871          fi
6872          if test "X$found_dir" = "X"; then
6873            for x in $LDFLAGS $LTLIBICONV; do
6874
6875  acl_save_prefix="$prefix"
6876  prefix="$acl_final_prefix"
6877  acl_save_exec_prefix="$exec_prefix"
6878  exec_prefix="$acl_final_exec_prefix"
6879  eval x=\"$x\"
6880  exec_prefix="$acl_save_exec_prefix"
6881  prefix="$acl_save_prefix"
6882
6883              case "$x" in
6884                -L*)
6885                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6886                                    if test -n "$acl_shlibext"; then
6887                    if test -f "$dir/$libname$shrext"; then
6888                      found_dir="$dir"
6889                      found_so="$dir/$libname$shrext"
6890                    else
6891                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6892                        ver=`(cd "$dir" && \
6893                              for f in "$libname$shrext".*; do echo "$f"; done \
6894                              | sed -e "s,^$libname$shrext\\\\.,," \
6895                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6896                              | sed 1q ) 2>/dev/null`
6897                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6898                          found_dir="$dir"
6899                          found_so="$dir/$libname$shrext.$ver"
6900                        fi
6901                      else
6902                        eval library_names=\"$acl_library_names_spec\"
6903                        for f in $library_names; do
6904                          if test -f "$dir/$f"; then
6905                            found_dir="$dir"
6906                            found_so="$dir/$f"
6907                            break
6908                          fi
6909                        done
6910                      fi
6911                    fi
6912                  fi
6913                                    if test "X$found_dir" = "X"; then
6914                    if test -f "$dir/$libname.$acl_libext"; then
6915                      found_dir="$dir"
6916                      found_a="$dir/$libname.$acl_libext"
6917                    fi
6918                  fi
6919                  if test "X$found_dir" != "X"; then
6920                    if test -f "$dir/$libname.la"; then
6921                      found_la="$dir/$libname.la"
6922                    fi
6923                  fi
6924                  ;;
6925              esac
6926              if test "X$found_dir" != "X"; then
6927                break
6928              fi
6929            done
6930          fi
6931          if test "X$found_dir" != "X"; then
6932                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
6933            if test "X$found_so" != "X"; then
6934                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
6935                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6936              else
6937                                                                                haveit=
6938                for x in $ltrpathdirs; do
6939                  if test "X$x" = "X$found_dir"; then
6940                    haveit=yes
6941                    break
6942                  fi
6943                done
6944                if test -z "$haveit"; then
6945                  ltrpathdirs="$ltrpathdirs $found_dir"
6946                fi
6947                                if test "$acl_hardcode_direct" = yes; then
6948                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6949                else
6950                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6951                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6952                                                            haveit=
6953                    for x in $rpathdirs; do
6954                      if test "X$x" = "X$found_dir"; then
6955                        haveit=yes
6956                        break
6957                      fi
6958                    done
6959                    if test -z "$haveit"; then
6960                      rpathdirs="$rpathdirs $found_dir"
6961                    fi
6962                  else
6963                                                                                haveit=
6964                    for x in $LDFLAGS $LIBICONV; do
6965
6966  acl_save_prefix="$prefix"
6967  prefix="$acl_final_prefix"
6968  acl_save_exec_prefix="$exec_prefix"
6969  exec_prefix="$acl_final_exec_prefix"
6970  eval x=\"$x\"
6971  exec_prefix="$acl_save_exec_prefix"
6972  prefix="$acl_save_prefix"
6973
6974                      if test "X$x" = "X-L$found_dir"; then
6975                        haveit=yes
6976                        break
6977                      fi
6978                    done
6979                    if test -z "$haveit"; then
6980                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
6981                    fi
6982                    if test "$acl_hardcode_minus_L" != no; then
6983                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
6984                    else
6985                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6986                    fi
6987                  fi
6988                fi
6989              fi
6990            else
6991              if test "X$found_a" != "X"; then
6992                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
6993              else
6994                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
6995              fi
6996            fi
6997                        additional_includedir=
6998            case "$found_dir" in
6999              */$acl_libdirstem | */$acl_libdirstem/)
7000                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7001                LIBICONV_PREFIX="$basedir"
7002                additional_includedir="$basedir/include"
7003                ;;
7004            esac
7005            if test "X$additional_includedir" != "X"; then
7006                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7007                haveit=
7008                if test "X$additional_includedir" = "X/usr/local/include"; then
7009                  if test -n "$GCC"; then
7010                    case $host_os in
7011                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7012                    esac
7013                  fi
7014                fi
7015                if test -z "$haveit"; then
7016                  for x in $CPPFLAGS $INCICONV; do
7017
7018  acl_save_prefix="$prefix"
7019  prefix="$acl_final_prefix"
7020  acl_save_exec_prefix="$exec_prefix"
7021  exec_prefix="$acl_final_exec_prefix"
7022  eval x=\"$x\"
7023  exec_prefix="$acl_save_exec_prefix"
7024  prefix="$acl_save_prefix"
7025
7026                    if test "X$x" = "X-I$additional_includedir"; then
7027                      haveit=yes
7028                      break
7029                    fi
7030                  done
7031                  if test -z "$haveit"; then
7032                    if test -d "$additional_includedir"; then
7033                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7034                    fi
7035                  fi
7036                fi
7037              fi
7038            fi
7039                        if test -n "$found_la"; then
7040                                                        save_libdir="$libdir"
7041              case "$found_la" in
7042                */* | *\\*) . "$found_la" ;;
7043                *) . "./$found_la" ;;
7044              esac
7045              libdir="$save_libdir"
7046                            for dep in $dependency_libs; do
7047                case "$dep" in
7048                  -L*)
7049                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7050                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7051                      haveit=
7052                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7053                        if test -n "$GCC"; then
7054                          case $host_os in
7055                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7056                          esac
7057                        fi
7058                      fi
7059                      if test -z "$haveit"; then
7060                        haveit=
7061                        for x in $LDFLAGS $LIBICONV; do
7062
7063  acl_save_prefix="$prefix"
7064  prefix="$acl_final_prefix"
7065  acl_save_exec_prefix="$exec_prefix"
7066  exec_prefix="$acl_final_exec_prefix"
7067  eval x=\"$x\"
7068  exec_prefix="$acl_save_exec_prefix"
7069  prefix="$acl_save_prefix"
7070
7071                          if test "X$x" = "X-L$additional_libdir"; then
7072                            haveit=yes
7073                            break
7074                          fi
7075                        done
7076                        if test -z "$haveit"; then
7077                          if test -d "$additional_libdir"; then
7078                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7079                          fi
7080                        fi
7081                        haveit=
7082                        for x in $LDFLAGS $LTLIBICONV; do
7083
7084  acl_save_prefix="$prefix"
7085  prefix="$acl_final_prefix"
7086  acl_save_exec_prefix="$exec_prefix"
7087  exec_prefix="$acl_final_exec_prefix"
7088  eval x=\"$x\"
7089  exec_prefix="$acl_save_exec_prefix"
7090  prefix="$acl_save_prefix"
7091
7092                          if test "X$x" = "X-L$additional_libdir"; then
7093                            haveit=yes
7094                            break
7095                          fi
7096                        done
7097                        if test -z "$haveit"; then
7098                          if test -d "$additional_libdir"; then
7099                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7100                          fi
7101                        fi
7102                      fi
7103                    fi
7104                    ;;
7105                  -R*)
7106                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7107                    if test "$enable_rpath" != no; then
7108                                                                  haveit=
7109                      for x in $rpathdirs; do
7110                        if test "X$x" = "X$dir"; then
7111                          haveit=yes
7112                          break
7113                        fi
7114                      done
7115                      if test -z "$haveit"; then
7116                        rpathdirs="$rpathdirs $dir"
7117                      fi
7118                                                                  haveit=
7119                      for x in $ltrpathdirs; do
7120                        if test "X$x" = "X$dir"; then
7121                          haveit=yes
7122                          break
7123                        fi
7124                      done
7125                      if test -z "$haveit"; then
7126                        ltrpathdirs="$ltrpathdirs $dir"
7127                      fi
7128                    fi
7129                    ;;
7130                  -l*)
7131                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7132                    ;;
7133                  *.la)
7134                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7135                    ;;
7136                  *)
7137                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
7138                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
7139                    ;;
7140                esac
7141              done
7142            fi
7143          else
7144                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7145            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
7146          fi
7147        fi
7148      fi
7149    done
7150  done
7151  if test "X$rpathdirs" != "X"; then
7152    if test -n "$acl_hardcode_libdir_separator"; then
7153                        alldirs=
7154      for found_dir in $rpathdirs; do
7155        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7156      done
7157            acl_save_libdir="$libdir"
7158      libdir="$alldirs"
7159      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7160      libdir="$acl_save_libdir"
7161      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7162    else
7163            for found_dir in $rpathdirs; do
7164        acl_save_libdir="$libdir"
7165        libdir="$found_dir"
7166        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7167        libdir="$acl_save_libdir"
7168        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
7169      done
7170    fi
7171  fi
7172  if test "X$ltrpathdirs" != "X"; then
7173            for found_dir in $ltrpathdirs; do
7174      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
7175    done
7176  fi
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
7203$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
7204if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
7205  $as_echo_n "(cached) " >&6
7206else
7207  gt_save_LIBS="$LIBS"
7208     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210/* end confdefs.h.  */
7211#include <CoreFoundation/CFPreferences.h>
7212int
7213main ()
7214{
7215CFPreferencesCopyAppValue(NULL, NULL)
7216  ;
7217  return 0;
7218}
7219_ACEOF
7220if ac_fn_c_try_link "$LINENO"; then :
7221  gt_cv_func_CFPreferencesCopyAppValue=yes
7222else
7223  gt_cv_func_CFPreferencesCopyAppValue=no
7224fi
7225rm -f core conftest.err conftest.$ac_objext \
7226    conftest$ac_exeext conftest.$ac_ext
7227     LIBS="$gt_save_LIBS"
7228fi
7229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
7230$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
7231  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
7232
7233$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
7234
7235  fi
7236    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
7237$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
7238if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
7239  $as_echo_n "(cached) " >&6
7240else
7241  gt_save_LIBS="$LIBS"
7242     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
7243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244/* end confdefs.h.  */
7245#include <CoreFoundation/CFLocale.h>
7246int
7247main ()
7248{
7249CFLocaleCopyCurrent();
7250  ;
7251  return 0;
7252}
7253_ACEOF
7254if ac_fn_c_try_link "$LINENO"; then :
7255  gt_cv_func_CFLocaleCopyCurrent=yes
7256else
7257  gt_cv_func_CFLocaleCopyCurrent=no
7258fi
7259rm -f core conftest.err conftest.$ac_objext \
7260    conftest$ac_exeext conftest.$ac_ext
7261     LIBS="$gt_save_LIBS"
7262fi
7263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
7264$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
7265  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7266
7267$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
7268
7269  fi
7270  INTL_MACOSX_LIBS=
7271  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
7272    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
7273  fi
7274
7275
7276
7277
7278
7279
7280  LIBINTL=
7281  LTLIBINTL=
7282  POSUB=
7283
7284    case " $gt_needs " in
7285    *" need-formatstring-macros "*) gt_api_version=3 ;;
7286    *" need-ngettext "*) gt_api_version=2 ;;
7287    *) gt_api_version=1 ;;
7288  esac
7289  gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
7290  gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
7291
7292    if test "$USE_NLS" = "yes"; then
7293    gt_use_preinstalled_gnugettext=no
7294
7295
7296        if test $gt_api_version -ge 3; then
7297          gt_revision_test_code='
7298#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
7299#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
7300#endif
7301typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
7302'
7303        else
7304          gt_revision_test_code=
7305        fi
7306        if test $gt_api_version -ge 2; then
7307          gt_expression_test_code=' + * ngettext ("", "", 0)'
7308        else
7309          gt_expression_test_code=
7310        fi
7311
7312        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
7313$as_echo_n "checking for GNU gettext in libc... " >&6; }
7314if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
7315  $as_echo_n "(cached) " >&6
7316else
7317  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318/* end confdefs.h.  */
7319#include <libintl.h>
7320$gt_revision_test_code
7321extern int _nl_msg_cat_cntr;
7322extern int *_nl_domain_bindings;
7323int
7324main ()
7325{
7326bindtextdomain ("", "");
7327return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
7328  ;
7329  return 0;
7330}
7331_ACEOF
7332if ac_fn_c_try_link "$LINENO"; then :
7333  eval "$gt_func_gnugettext_libc=yes"
7334else
7335  eval "$gt_func_gnugettext_libc=no"
7336fi
7337rm -f core conftest.err conftest.$ac_objext \
7338    conftest$ac_exeext conftest.$ac_ext
7339fi
7340eval ac_res=\$$gt_func_gnugettext_libc
7341	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7342$as_echo "$ac_res" >&6; }
7343
7344        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
7345
7346
7347
7348
7349
7350          am_save_CPPFLAGS="$CPPFLAGS"
7351
7352  for element in $INCICONV; do
7353    haveit=
7354    for x in $CPPFLAGS; do
7355
7356  acl_save_prefix="$prefix"
7357  prefix="$acl_final_prefix"
7358  acl_save_exec_prefix="$exec_prefix"
7359  exec_prefix="$acl_final_exec_prefix"
7360  eval x=\"$x\"
7361  exec_prefix="$acl_save_exec_prefix"
7362  prefix="$acl_save_prefix"
7363
7364      if test "X$x" = "X$element"; then
7365        haveit=yes
7366        break
7367      fi
7368    done
7369    if test -z "$haveit"; then
7370      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7371    fi
7372  done
7373
7374
7375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
7376$as_echo_n "checking for iconv... " >&6; }
7377if test "${am_cv_func_iconv+set}" = set; then :
7378  $as_echo_n "(cached) " >&6
7379else
7380
7381    am_cv_func_iconv="no, consider installing GNU libiconv"
7382    am_cv_lib_iconv=no
7383    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7384/* end confdefs.h.  */
7385#include <stdlib.h>
7386#include <iconv.h>
7387int
7388main ()
7389{
7390iconv_t cd = iconv_open("","");
7391       iconv(cd,NULL,NULL,NULL,NULL);
7392       iconv_close(cd);
7393  ;
7394  return 0;
7395}
7396_ACEOF
7397if ac_fn_c_try_link "$LINENO"; then :
7398  am_cv_func_iconv=yes
7399fi
7400rm -f core conftest.err conftest.$ac_objext \
7401    conftest$ac_exeext conftest.$ac_ext
7402    if test "$am_cv_func_iconv" != yes; then
7403      am_save_LIBS="$LIBS"
7404      LIBS="$LIBS $LIBICONV"
7405      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7406/* end confdefs.h.  */
7407#include <stdlib.h>
7408#include <iconv.h>
7409int
7410main ()
7411{
7412iconv_t cd = iconv_open("","");
7413         iconv(cd,NULL,NULL,NULL,NULL);
7414         iconv_close(cd);
7415  ;
7416  return 0;
7417}
7418_ACEOF
7419if ac_fn_c_try_link "$LINENO"; then :
7420  am_cv_lib_iconv=yes
7421        am_cv_func_iconv=yes
7422fi
7423rm -f core conftest.err conftest.$ac_objext \
7424    conftest$ac_exeext conftest.$ac_ext
7425      LIBS="$am_save_LIBS"
7426    fi
7427
7428fi
7429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
7430$as_echo "$am_cv_func_iconv" >&6; }
7431  if test "$am_cv_func_iconv" = yes; then
7432    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
7433$as_echo_n "checking for working iconv... " >&6; }
7434if test "${am_cv_func_iconv_works+set}" = set; then :
7435  $as_echo_n "(cached) " >&6
7436else
7437
7438            am_save_LIBS="$LIBS"
7439      if test $am_cv_lib_iconv = yes; then
7440        LIBS="$LIBS $LIBICONV"
7441      fi
7442      if test "$cross_compiling" = yes; then :
7443  case "$host_os" in
7444           aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
7445           *)            am_cv_func_iconv_works="guessing yes" ;;
7446         esac
7447else
7448  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7449/* end confdefs.h.  */
7450
7451#include <iconv.h>
7452#include <string.h>
7453int main ()
7454{
7455  /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
7456     returns.  */
7457  {
7458    iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
7459    if (cd_utf8_to_88591 != (iconv_t)(-1))
7460      {
7461        static const char input[] = "\342\202\254"; /* EURO SIGN */
7462        char buf[10];
7463        const char *inptr = input;
7464        size_t inbytesleft = strlen (input);
7465        char *outptr = buf;
7466        size_t outbytesleft = sizeof (buf);
7467        size_t res = iconv (cd_utf8_to_88591,
7468                            (char **) &inptr, &inbytesleft,
7469                            &outptr, &outbytesleft);
7470        if (res == 0)
7471          return 1;
7472      }
7473  }
7474#if 0 /* This bug could be worked around by the caller.  */
7475  /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
7476  {
7477    iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
7478    if (cd_88591_to_utf8 != (iconv_t)(-1))
7479      {
7480        static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
7481        char buf[50];
7482        const char *inptr = input;
7483        size_t inbytesleft = strlen (input);
7484        char *outptr = buf;
7485        size_t outbytesleft = sizeof (buf);
7486        size_t res = iconv (cd_88591_to_utf8,
7487                            (char **) &inptr, &inbytesleft,
7488                            &outptr, &outbytesleft);
7489        if ((int)res > 0)
7490          return 1;
7491      }
7492  }
7493#endif
7494  /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
7495     provided.  */
7496  if (/* Try standardized names.  */
7497      iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
7498      /* Try IRIX, OSF/1 names.  */
7499      && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
7500      /* Try AIX names.  */
7501      && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
7502      /* Try HP-UX names.  */
7503      && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
7504    return 1;
7505  return 0;
7506}
7507_ACEOF
7508if ac_fn_c_try_run "$LINENO"; then :
7509  am_cv_func_iconv_works=yes
7510else
7511  am_cv_func_iconv_works=no
7512fi
7513rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7514  conftest.$ac_objext conftest.beam conftest.$ac_ext
7515fi
7516
7517      LIBS="$am_save_LIBS"
7518
7519fi
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
7521$as_echo "$am_cv_func_iconv_works" >&6; }
7522    case "$am_cv_func_iconv_works" in
7523      *no) am_func_iconv=no am_cv_lib_iconv=no ;;
7524      *)   am_func_iconv=yes ;;
7525    esac
7526  else
7527    am_func_iconv=no am_cv_lib_iconv=no
7528  fi
7529  if test "$am_func_iconv" = yes; then
7530
7531$as_echo "#define HAVE_ICONV 1" >>confdefs.h
7532
7533  fi
7534  if test "$am_cv_lib_iconv" = yes; then
7535    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
7536$as_echo_n "checking how to link with libiconv... " >&6; }
7537    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
7538$as_echo "$LIBICONV" >&6; }
7539  else
7540            CPPFLAGS="$am_save_CPPFLAGS"
7541    LIBICONV=
7542    LTLIBICONV=
7543  fi
7544
7545
7546
7547
7548
7549
7550
7551
7552    use_additional=yes
7553
7554  acl_save_prefix="$prefix"
7555  prefix="$acl_final_prefix"
7556  acl_save_exec_prefix="$exec_prefix"
7557  exec_prefix="$acl_final_exec_prefix"
7558
7559    eval additional_includedir=\"$includedir\"
7560    eval additional_libdir=\"$libdir\"
7561
7562  exec_prefix="$acl_save_exec_prefix"
7563  prefix="$acl_save_prefix"
7564
7565
7566# Check whether --with-libintl-prefix was given.
7567if test "${with_libintl_prefix+set}" = set; then :
7568  withval=$with_libintl_prefix;
7569    if test "X$withval" = "Xno"; then
7570      use_additional=no
7571    else
7572      if test "X$withval" = "X"; then
7573
7574  acl_save_prefix="$prefix"
7575  prefix="$acl_final_prefix"
7576  acl_save_exec_prefix="$exec_prefix"
7577  exec_prefix="$acl_final_exec_prefix"
7578
7579          eval additional_includedir=\"$includedir\"
7580          eval additional_libdir=\"$libdir\"
7581
7582  exec_prefix="$acl_save_exec_prefix"
7583  prefix="$acl_save_prefix"
7584
7585      else
7586        additional_includedir="$withval/include"
7587        additional_libdir="$withval/$acl_libdirstem"
7588      fi
7589    fi
7590
7591fi
7592
7593      LIBINTL=
7594  LTLIBINTL=
7595  INCINTL=
7596  LIBINTL_PREFIX=
7597  rpathdirs=
7598  ltrpathdirs=
7599  names_already_handled=
7600  names_next_round='intl '
7601  while test -n "$names_next_round"; do
7602    names_this_round="$names_next_round"
7603    names_next_round=
7604    for name in $names_this_round; do
7605      already_handled=
7606      for n in $names_already_handled; do
7607        if test "$n" = "$name"; then
7608          already_handled=yes
7609          break
7610        fi
7611      done
7612      if test -z "$already_handled"; then
7613        names_already_handled="$names_already_handled $name"
7614                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7615        eval value=\"\$HAVE_LIB$uppername\"
7616        if test -n "$value"; then
7617          if test "$value" = yes; then
7618            eval value=\"\$LIB$uppername\"
7619            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
7620            eval value=\"\$LTLIB$uppername\"
7621            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
7622          else
7623                                    :
7624          fi
7625        else
7626                              found_dir=
7627          found_la=
7628          found_so=
7629          found_a=
7630          eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
7631          if test -n "$acl_shlibext"; then
7632            shrext=".$acl_shlibext"             # typically: shrext=.so
7633          else
7634            shrext=
7635          fi
7636          if test $use_additional = yes; then
7637            dir="$additional_libdir"
7638                                    if test -n "$acl_shlibext"; then
7639              if test -f "$dir/$libname$shrext"; then
7640                found_dir="$dir"
7641                found_so="$dir/$libname$shrext"
7642              else
7643                if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7644                  ver=`(cd "$dir" && \
7645                        for f in "$libname$shrext".*; do echo "$f"; done \
7646                        | sed -e "s,^$libname$shrext\\\\.,," \
7647                        | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7648                        | sed 1q ) 2>/dev/null`
7649                  if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7650                    found_dir="$dir"
7651                    found_so="$dir/$libname$shrext.$ver"
7652                  fi
7653                else
7654                  eval library_names=\"$acl_library_names_spec\"
7655                  for f in $library_names; do
7656                    if test -f "$dir/$f"; then
7657                      found_dir="$dir"
7658                      found_so="$dir/$f"
7659                      break
7660                    fi
7661                  done
7662                fi
7663              fi
7664            fi
7665                        if test "X$found_dir" = "X"; then
7666              if test -f "$dir/$libname.$acl_libext"; then
7667                found_dir="$dir"
7668                found_a="$dir/$libname.$acl_libext"
7669              fi
7670            fi
7671            if test "X$found_dir" != "X"; then
7672              if test -f "$dir/$libname.la"; then
7673                found_la="$dir/$libname.la"
7674              fi
7675            fi
7676          fi
7677          if test "X$found_dir" = "X"; then
7678            for x in $LDFLAGS $LTLIBINTL; do
7679
7680  acl_save_prefix="$prefix"
7681  prefix="$acl_final_prefix"
7682  acl_save_exec_prefix="$exec_prefix"
7683  exec_prefix="$acl_final_exec_prefix"
7684  eval x=\"$x\"
7685  exec_prefix="$acl_save_exec_prefix"
7686  prefix="$acl_save_prefix"
7687
7688              case "$x" in
7689                -L*)
7690                  dir=`echo "X$x" | sed -e 's/^X-L//'`
7691                                    if test -n "$acl_shlibext"; then
7692                    if test -f "$dir/$libname$shrext"; then
7693                      found_dir="$dir"
7694                      found_so="$dir/$libname$shrext"
7695                    else
7696                      if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7697                        ver=`(cd "$dir" && \
7698                              for f in "$libname$shrext".*; do echo "$f"; done \
7699                              | sed -e "s,^$libname$shrext\\\\.,," \
7700                              | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7701                              | sed 1q ) 2>/dev/null`
7702                        if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7703                          found_dir="$dir"
7704                          found_so="$dir/$libname$shrext.$ver"
7705                        fi
7706                      else
7707                        eval library_names=\"$acl_library_names_spec\"
7708                        for f in $library_names; do
7709                          if test -f "$dir/$f"; then
7710                            found_dir="$dir"
7711                            found_so="$dir/$f"
7712                            break
7713                          fi
7714                        done
7715                      fi
7716                    fi
7717                  fi
7718                                    if test "X$found_dir" = "X"; then
7719                    if test -f "$dir/$libname.$acl_libext"; then
7720                      found_dir="$dir"
7721                      found_a="$dir/$libname.$acl_libext"
7722                    fi
7723                  fi
7724                  if test "X$found_dir" != "X"; then
7725                    if test -f "$dir/$libname.la"; then
7726                      found_la="$dir/$libname.la"
7727                    fi
7728                  fi
7729                  ;;
7730              esac
7731              if test "X$found_dir" != "X"; then
7732                break
7733              fi
7734            done
7735          fi
7736          if test "X$found_dir" != "X"; then
7737                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
7738            if test "X$found_so" != "X"; then
7739                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7740                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7741              else
7742                                                                                haveit=
7743                for x in $ltrpathdirs; do
7744                  if test "X$x" = "X$found_dir"; then
7745                    haveit=yes
7746                    break
7747                  fi
7748                done
7749                if test -z "$haveit"; then
7750                  ltrpathdirs="$ltrpathdirs $found_dir"
7751                fi
7752                                if test "$acl_hardcode_direct" = yes; then
7753                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7754                else
7755                  if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7756                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7757                                                            haveit=
7758                    for x in $rpathdirs; do
7759                      if test "X$x" = "X$found_dir"; then
7760                        haveit=yes
7761                        break
7762                      fi
7763                    done
7764                    if test -z "$haveit"; then
7765                      rpathdirs="$rpathdirs $found_dir"
7766                    fi
7767                  else
7768                                                                                haveit=
7769                    for x in $LDFLAGS $LIBINTL; do
7770
7771  acl_save_prefix="$prefix"
7772  prefix="$acl_final_prefix"
7773  acl_save_exec_prefix="$exec_prefix"
7774  exec_prefix="$acl_final_exec_prefix"
7775  eval x=\"$x\"
7776  exec_prefix="$acl_save_exec_prefix"
7777  prefix="$acl_save_prefix"
7778
7779                      if test "X$x" = "X-L$found_dir"; then
7780                        haveit=yes
7781                        break
7782                      fi
7783                    done
7784                    if test -z "$haveit"; then
7785                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
7786                    fi
7787                    if test "$acl_hardcode_minus_L" != no; then
7788                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
7789                    else
7790                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7791                    fi
7792                  fi
7793                fi
7794              fi
7795            else
7796              if test "X$found_a" != "X"; then
7797                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
7798              else
7799                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
7800              fi
7801            fi
7802                        additional_includedir=
7803            case "$found_dir" in
7804              */$acl_libdirstem | */$acl_libdirstem/)
7805                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7806                LIBINTL_PREFIX="$basedir"
7807                additional_includedir="$basedir/include"
7808                ;;
7809            esac
7810            if test "X$additional_includedir" != "X"; then
7811                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
7812                haveit=
7813                if test "X$additional_includedir" = "X/usr/local/include"; then
7814                  if test -n "$GCC"; then
7815                    case $host_os in
7816                      linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7817                    esac
7818                  fi
7819                fi
7820                if test -z "$haveit"; then
7821                  for x in $CPPFLAGS $INCINTL; do
7822
7823  acl_save_prefix="$prefix"
7824  prefix="$acl_final_prefix"
7825  acl_save_exec_prefix="$exec_prefix"
7826  exec_prefix="$acl_final_exec_prefix"
7827  eval x=\"$x\"
7828  exec_prefix="$acl_save_exec_prefix"
7829  prefix="$acl_save_prefix"
7830
7831                    if test "X$x" = "X-I$additional_includedir"; then
7832                      haveit=yes
7833                      break
7834                    fi
7835                  done
7836                  if test -z "$haveit"; then
7837                    if test -d "$additional_includedir"; then
7838                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
7839                    fi
7840                  fi
7841                fi
7842              fi
7843            fi
7844                        if test -n "$found_la"; then
7845                                                        save_libdir="$libdir"
7846              case "$found_la" in
7847                */* | *\\*) . "$found_la" ;;
7848                *) . "./$found_la" ;;
7849              esac
7850              libdir="$save_libdir"
7851                            for dep in $dependency_libs; do
7852                case "$dep" in
7853                  -L*)
7854                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7855                                                                                                                                                                if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7856                      haveit=
7857                      if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7858                        if test -n "$GCC"; then
7859                          case $host_os in
7860                            linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7861                          esac
7862                        fi
7863                      fi
7864                      if test -z "$haveit"; then
7865                        haveit=
7866                        for x in $LDFLAGS $LIBINTL; do
7867
7868  acl_save_prefix="$prefix"
7869  prefix="$acl_final_prefix"
7870  acl_save_exec_prefix="$exec_prefix"
7871  exec_prefix="$acl_final_exec_prefix"
7872  eval x=\"$x\"
7873  exec_prefix="$acl_save_exec_prefix"
7874  prefix="$acl_save_prefix"
7875
7876                          if test "X$x" = "X-L$additional_libdir"; then
7877                            haveit=yes
7878                            break
7879                          fi
7880                        done
7881                        if test -z "$haveit"; then
7882                          if test -d "$additional_libdir"; then
7883                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
7884                          fi
7885                        fi
7886                        haveit=
7887                        for x in $LDFLAGS $LTLIBINTL; do
7888
7889  acl_save_prefix="$prefix"
7890  prefix="$acl_final_prefix"
7891  acl_save_exec_prefix="$exec_prefix"
7892  exec_prefix="$acl_final_exec_prefix"
7893  eval x=\"$x\"
7894  exec_prefix="$acl_save_exec_prefix"
7895  prefix="$acl_save_prefix"
7896
7897                          if test "X$x" = "X-L$additional_libdir"; then
7898                            haveit=yes
7899                            break
7900                          fi
7901                        done
7902                        if test -z "$haveit"; then
7903                          if test -d "$additional_libdir"; then
7904                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
7905                          fi
7906                        fi
7907                      fi
7908                    fi
7909                    ;;
7910                  -R*)
7911                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
7912                    if test "$enable_rpath" != no; then
7913                                                                  haveit=
7914                      for x in $rpathdirs; do
7915                        if test "X$x" = "X$dir"; then
7916                          haveit=yes
7917                          break
7918                        fi
7919                      done
7920                      if test -z "$haveit"; then
7921                        rpathdirs="$rpathdirs $dir"
7922                      fi
7923                                                                  haveit=
7924                      for x in $ltrpathdirs; do
7925                        if test "X$x" = "X$dir"; then
7926                          haveit=yes
7927                          break
7928                        fi
7929                      done
7930                      if test -z "$haveit"; then
7931                        ltrpathdirs="$ltrpathdirs $dir"
7932                      fi
7933                    fi
7934                    ;;
7935                  -l*)
7936                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
7937                    ;;
7938                  *.la)
7939                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
7940                    ;;
7941                  *)
7942                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
7943                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
7944                    ;;
7945                esac
7946              done
7947            fi
7948          else
7949                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
7950            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
7951          fi
7952        fi
7953      fi
7954    done
7955  done
7956  if test "X$rpathdirs" != "X"; then
7957    if test -n "$acl_hardcode_libdir_separator"; then
7958                        alldirs=
7959      for found_dir in $rpathdirs; do
7960        alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
7961      done
7962            acl_save_libdir="$libdir"
7963      libdir="$alldirs"
7964      eval flag=\"$acl_hardcode_libdir_flag_spec\"
7965      libdir="$acl_save_libdir"
7966      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7967    else
7968            for found_dir in $rpathdirs; do
7969        acl_save_libdir="$libdir"
7970        libdir="$found_dir"
7971        eval flag=\"$acl_hardcode_libdir_flag_spec\"
7972        libdir="$acl_save_libdir"
7973        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7974      done
7975    fi
7976  fi
7977  if test "X$ltrpathdirs" != "X"; then
7978            for found_dir in $ltrpathdirs; do
7979      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7980    done
7981  fi
7982
7983          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7984$as_echo_n "checking for GNU gettext in libintl... " >&6; }
7985if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
7986  $as_echo_n "(cached) " >&6
7987else
7988  gt_save_CPPFLAGS="$CPPFLAGS"
7989            CPPFLAGS="$CPPFLAGS $INCINTL"
7990            gt_save_LIBS="$LIBS"
7991            LIBS="$LIBS $LIBINTL"
7992                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7993/* end confdefs.h.  */
7994#include <libintl.h>
7995$gt_revision_test_code
7996extern int _nl_msg_cat_cntr;
7997extern
7998#ifdef __cplusplus
7999"C"
8000#endif
8001const char *_nl_expand_alias (const char *);
8002int
8003main ()
8004{
8005bindtextdomain ("", "");
8006return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8007  ;
8008  return 0;
8009}
8010_ACEOF
8011if ac_fn_c_try_link "$LINENO"; then :
8012  eval "$gt_func_gnugettext_libintl=yes"
8013else
8014  eval "$gt_func_gnugettext_libintl=no"
8015fi
8016rm -f core conftest.err conftest.$ac_objext \
8017    conftest$ac_exeext conftest.$ac_ext
8018                        if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
8019              LIBS="$LIBS $LIBICONV"
8020              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8021/* end confdefs.h.  */
8022#include <libintl.h>
8023$gt_revision_test_code
8024extern int _nl_msg_cat_cntr;
8025extern
8026#ifdef __cplusplus
8027"C"
8028#endif
8029const char *_nl_expand_alias (const char *);
8030int
8031main ()
8032{
8033bindtextdomain ("", "");
8034return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
8035  ;
8036  return 0;
8037}
8038_ACEOF
8039if ac_fn_c_try_link "$LINENO"; then :
8040  LIBINTL="$LIBINTL $LIBICONV"
8041                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
8042                eval "$gt_func_gnugettext_libintl=yes"
8043
8044fi
8045rm -f core conftest.err conftest.$ac_objext \
8046    conftest$ac_exeext conftest.$ac_ext
8047            fi
8048            CPPFLAGS="$gt_save_CPPFLAGS"
8049            LIBS="$gt_save_LIBS"
8050fi
8051eval ac_res=\$$gt_func_gnugettext_libintl
8052	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8053$as_echo "$ac_res" >&6; }
8054        fi
8055
8056                                        if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
8057           || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
8058                && test "$PACKAGE" != gettext-runtime \
8059                && test "$PACKAGE" != gettext-tools; }; then
8060          gt_use_preinstalled_gnugettext=yes
8061        else
8062                    LIBINTL=
8063          LTLIBINTL=
8064          INCINTL=
8065        fi
8066
8067
8068
8069    if test -n "$INTL_MACOSX_LIBS"; then
8070      if test "$gt_use_preinstalled_gnugettext" = "yes" \
8071         || test "$nls_cv_use_gnu_gettext" = "yes"; then
8072                LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
8073        LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
8074      fi
8075    fi
8076
8077    if test "$gt_use_preinstalled_gnugettext" = "yes" \
8078       || test "$nls_cv_use_gnu_gettext" = "yes"; then
8079
8080$as_echo "#define ENABLE_NLS 1" >>confdefs.h
8081
8082    else
8083      USE_NLS=no
8084    fi
8085  fi
8086
8087  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
8088$as_echo_n "checking whether to use NLS... " >&6; }
8089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8090$as_echo "$USE_NLS" >&6; }
8091  if test "$USE_NLS" = "yes"; then
8092    { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
8093$as_echo_n "checking where the gettext function comes from... " >&6; }
8094    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8095      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8096        gt_source="external libintl"
8097      else
8098        gt_source="libc"
8099      fi
8100    else
8101      gt_source="included intl directory"
8102    fi
8103    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
8104$as_echo "$gt_source" >&6; }
8105  fi
8106
8107  if test "$USE_NLS" = "yes"; then
8108
8109    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
8110      if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
8111        { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
8112$as_echo_n "checking how to link with libintl... " >&6; }
8113        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
8114$as_echo "$LIBINTL" >&6; }
8115
8116  for element in $INCINTL; do
8117    haveit=
8118    for x in $CPPFLAGS; do
8119
8120  acl_save_prefix="$prefix"
8121  prefix="$acl_final_prefix"
8122  acl_save_exec_prefix="$exec_prefix"
8123  exec_prefix="$acl_final_exec_prefix"
8124  eval x=\"$x\"
8125  exec_prefix="$acl_save_exec_prefix"
8126  prefix="$acl_save_prefix"
8127
8128      if test "X$x" = "X$element"; then
8129        haveit=yes
8130        break
8131      fi
8132    done
8133    if test -z "$haveit"; then
8134      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8135    fi
8136  done
8137
8138      fi
8139
8140
8141$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
8142
8143
8144$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
8145
8146    fi
8147
8148        POSUB=po
8149  fi
8150
8151
8152
8153    INTLLIBS="$LIBINTL"
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164# Check whether --enable-static was given.
8165if test "${enable_static+set}" = set; then :
8166  enableval=$enable_static; p=${PACKAGE-default}
8167    case $enableval in
8168    yes) enable_static=yes ;;
8169    no) enable_static=no ;;
8170    *)
8171     enable_static=no
8172      # Look at the argument we got.  We use all the common list separators.
8173      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8174      for pkg in $enableval; do
8175	IFS="$lt_save_ifs"
8176	if test "X$pkg" = "X$p"; then
8177	  enable_static=yes
8178	fi
8179      done
8180      IFS="$lt_save_ifs"
8181      ;;
8182    esac
8183else
8184  enable_static=no
8185fi
8186
8187
8188
8189# Check whether --enable-shared was given.
8190if test "${enable_shared+set}" = set; then :
8191  enableval=$enable_shared; p=${PACKAGE-default}
8192    case $enableval in
8193    yes) enable_shared=yes ;;
8194    no) enable_shared=no ;;
8195    *)
8196      enable_shared=no
8197      # Look at the argument we got.  We use all the common list separators.
8198      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8199      for pkg in $enableval; do
8200	IFS="$lt_save_ifs"
8201	if test "X$pkg" = "X$p"; then
8202	  enable_shared=yes
8203	fi
8204      done
8205      IFS="$lt_save_ifs"
8206      ;;
8207    esac
8208else
8209  enable_shared=yes
8210fi
8211
8212
8213# Check whether --enable-fast-install was given.
8214if test "${enable_fast_install+set}" = set; then :
8215  enableval=$enable_fast_install; p=${PACKAGE-default}
8216    case $enableval in
8217    yes) enable_fast_install=yes ;;
8218    no) enable_fast_install=no ;;
8219    *)
8220      enable_fast_install=no
8221      # Look at the argument we got.  We use all the common list separators.
8222      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8223      for pkg in $enableval; do
8224	IFS="$lt_save_ifs"
8225	if test "X$pkg" = "X$p"; then
8226	  enable_fast_install=yes
8227	fi
8228      done
8229      IFS="$lt_save_ifs"
8230      ;;
8231    esac
8232else
8233  enable_fast_install=yes
8234fi
8235
8236
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8238$as_echo_n "checking for a sed that does not truncate output... " >&6; }
8239if test "${lt_cv_path_SED+set}" = set; then :
8240  $as_echo_n "(cached) " >&6
8241else
8242  # Loop through the user's path and test for sed and gsed.
8243# Then use that list of sed's as ones to test for truncation.
8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245for as_dir in $PATH
8246do
8247  IFS=$as_save_IFS
8248  test -z "$as_dir" && as_dir=.
8249  for lt_ac_prog in sed gsed; do
8250    for ac_exec_ext in '' $ac_executable_extensions; do
8251      if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
8252        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8253      fi
8254    done
8255  done
8256done
8257IFS=$as_save_IFS
8258lt_ac_max=0
8259lt_ac_count=0
8260# Add /usr/xpg4/bin/sed as it is typically found on Solaris
8261# along with /bin/sed that truncates output.
8262for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8263  test ! -f $lt_ac_sed && continue
8264  cat /dev/null > conftest.in
8265  lt_ac_count=0
8266  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8267  # Check for GNU sed and select it if it is found.
8268  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8269    lt_cv_path_SED=$lt_ac_sed
8270    break
8271  fi
8272  while true; do
8273    cat conftest.in conftest.in >conftest.tmp
8274    mv conftest.tmp conftest.in
8275    cp conftest.in conftest.nl
8276    echo >>conftest.nl
8277    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8278    cmp -s conftest.out conftest.nl || break
8279    # 10000 chars as input seems more than enough
8280    test $lt_ac_count -gt 10 && break
8281    lt_ac_count=`expr $lt_ac_count + 1`
8282    if test $lt_ac_count -gt $lt_ac_max; then
8283      lt_ac_max=$lt_ac_count
8284      lt_cv_path_SED=$lt_ac_sed
8285    fi
8286  done
8287done
8288
8289fi
8290
8291SED=$lt_cv_path_SED
8292
8293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
8294$as_echo "$SED" >&6; }
8295
8296
8297# Check whether --with-gnu-ld was given.
8298if test "${with_gnu_ld+set}" = set; then :
8299  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8300else
8301  with_gnu_ld=no
8302fi
8303
8304ac_prog=ld
8305if test "$GCC" = yes; then
8306  # Check if gcc -print-prog-name=ld gives a path.
8307  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8308$as_echo_n "checking for ld used by $CC... " >&6; }
8309  case $host in
8310  *-*-mingw*)
8311    # gcc leaves a trailing carriage return which upsets mingw
8312    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8313  *)
8314    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8315  esac
8316  case $ac_prog in
8317    # Accept absolute paths.
8318    [\\/]* | ?:[\\/]*)
8319      re_direlt='/[^/][^/]*/\.\./'
8320      # Canonicalize the pathname of ld
8321      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8322      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8323	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8324      done
8325      test -z "$LD" && LD="$ac_prog"
8326      ;;
8327  "")
8328    # If it fails, then pretend we aren't using GCC.
8329    ac_prog=ld
8330    ;;
8331  *)
8332    # If it is relative, then search for the first ld in PATH.
8333    with_gnu_ld=unknown
8334    ;;
8335  esac
8336elif test "$with_gnu_ld" = yes; then
8337  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8338$as_echo_n "checking for GNU ld... " >&6; }
8339else
8340  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8341$as_echo_n "checking for non-GNU ld... " >&6; }
8342fi
8343if test "${lt_cv_path_LD+set}" = set; then :
8344  $as_echo_n "(cached) " >&6
8345else
8346  if test -z "$LD"; then
8347  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8348  for ac_dir in $PATH; do
8349    IFS="$lt_save_ifs"
8350    test -z "$ac_dir" && ac_dir=.
8351    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8352      lt_cv_path_LD="$ac_dir/$ac_prog"
8353      # Check to see if the program is GNU ld.  I'd rather use --version,
8354      # but apparently some variants of GNU ld only accept -v.
8355      # Break only if it was the GNU/non-GNU ld that we prefer.
8356      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8357      *GNU* | *'with BFD'*)
8358	test "$with_gnu_ld" != no && break
8359	;;
8360      *)
8361	test "$with_gnu_ld" != yes && break
8362	;;
8363      esac
8364    fi
8365  done
8366  IFS="$lt_save_ifs"
8367else
8368  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8369fi
8370fi
8371
8372LD="$lt_cv_path_LD"
8373if test -n "$LD"; then
8374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8375$as_echo "$LD" >&6; }
8376else
8377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378$as_echo "no" >&6; }
8379fi
8380test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8382$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8383if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8384  $as_echo_n "(cached) " >&6
8385else
8386  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8387case `$LD -v 2>&1 </dev/null` in
8388*GNU* | *'with BFD'*)
8389  lt_cv_prog_gnu_ld=yes
8390  ;;
8391*)
8392  lt_cv_prog_gnu_ld=no
8393  ;;
8394esac
8395fi
8396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8397$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8398with_gnu_ld=$lt_cv_prog_gnu_ld
8399
8400
8401{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8402$as_echo_n "checking for $LD option to reload object files... " >&6; }
8403if test "${lt_cv_ld_reload_flag+set}" = set; then :
8404  $as_echo_n "(cached) " >&6
8405else
8406  lt_cv_ld_reload_flag='-r'
8407fi
8408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8409$as_echo "$lt_cv_ld_reload_flag" >&6; }
8410reload_flag=$lt_cv_ld_reload_flag
8411case $reload_flag in
8412"" | " "*) ;;
8413*) reload_flag=" $reload_flag" ;;
8414esac
8415reload_cmds='$LD$reload_flag -o $output$reload_objs'
8416case $host_os in
8417  darwin*)
8418    if test "$GCC" = yes; then
8419      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8420    else
8421      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8422    fi
8423    ;;
8424esac
8425
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
8427$as_echo_n "checking for BSD-compatible nm... " >&6; }
8428if test "${lt_cv_path_NM+set}" = set; then :
8429  $as_echo_n "(cached) " >&6
8430else
8431  if test -n "$NM"; then
8432  # Let the user override the test.
8433  lt_cv_path_NM="$NM"
8434else
8435  lt_nm_to_check="${ac_tool_prefix}nm"
8436  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8437    lt_nm_to_check="$lt_nm_to_check nm"
8438  fi
8439  for lt_tmp_nm in $lt_nm_to_check; do
8440    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8441    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8442      IFS="$lt_save_ifs"
8443      test -z "$ac_dir" && ac_dir=.
8444      tmp_nm="$ac_dir/$lt_tmp_nm"
8445      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8446	# Check to see if the nm accepts a BSD-compat flag.
8447	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8448	#   nm: unknown option "B" ignored
8449	# Tru64's nm complains that /dev/null is an invalid object file
8450	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8451	*/dev/null* | *'Invalid file or object type'*)
8452	  lt_cv_path_NM="$tmp_nm -B"
8453	  break
8454	  ;;
8455	*)
8456	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8457	  */dev/null*)
8458	    lt_cv_path_NM="$tmp_nm -p"
8459	    break
8460	    ;;
8461	  *)
8462	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8463	    continue # so that we can try to find one that supports BSD flags
8464	    ;;
8465	  esac
8466	  ;;
8467	esac
8468      fi
8469    done
8470    IFS="$lt_save_ifs"
8471  done
8472  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8473fi
8474fi
8475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8476$as_echo "$lt_cv_path_NM" >&6; }
8477NM="$lt_cv_path_NM"
8478
8479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8480$as_echo_n "checking whether ln -s works... " >&6; }
8481LN_S=$as_ln_s
8482if test "$LN_S" = "ln -s"; then
8483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8484$as_echo "yes" >&6; }
8485else
8486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8487$as_echo "no, using $LN_S" >&6; }
8488fi
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8491$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8492if test "${lt_cv_deplibs_check_method+set}" = set; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_file_magic_cmd='$MAGIC_CMD'
8496lt_cv_file_magic_test_file=
8497lt_cv_deplibs_check_method='unknown'
8498# Need to set the preceding variable on all platforms that support
8499# interlibrary dependencies.
8500# 'none' -- dependencies not supported.
8501# `unknown' -- same as none, but documents that we really don't know.
8502# 'pass_all' -- all dependencies passed with no checks.
8503# 'test_compile' -- check by making test program.
8504# 'file_magic [[regex]]' -- check by looking for files in library path
8505# which responds to the $file_magic_cmd with a given extended regex.
8506# If you have `file' or equivalent on your system and you're not sure
8507# whether `pass_all' will *always* work, you probably want this one.
8508
8509case $host_os in
8510aix[4-9]*)
8511  lt_cv_deplibs_check_method=pass_all
8512  ;;
8513
8514beos*)
8515  lt_cv_deplibs_check_method=pass_all
8516  ;;
8517
8518bsdi[45]*)
8519  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8520  lt_cv_file_magic_cmd='/usr/bin/file -L'
8521  lt_cv_file_magic_test_file=/shlib/libc.so
8522  ;;
8523
8524cygwin*)
8525  # func_win32_libid is a shell function defined in ltmain.sh
8526  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8527  lt_cv_file_magic_cmd='func_win32_libid'
8528  ;;
8529
8530mingw* | pw32*)
8531  # Base MSYS/MinGW do not provide the 'file' command needed by
8532  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8533  # unless we find 'file', for example because we are cross-compiling.
8534  if ( file / ) >/dev/null 2>&1; then
8535    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8536    lt_cv_file_magic_cmd='func_win32_libid'
8537  else
8538    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8539    lt_cv_file_magic_cmd='$OBJDUMP -f'
8540  fi
8541  ;;
8542
8543darwin* | rhapsody*)
8544  lt_cv_deplibs_check_method=pass_all
8545  ;;
8546
8547freebsd* | dragonfly*)
8548  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8549    case $host_cpu in
8550    i*86 )
8551      # Not sure whether the presence of OpenBSD here was a mistake.
8552      # Let's accept both of them until this is cleared up.
8553      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8554      lt_cv_file_magic_cmd=/usr/bin/file
8555      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8556      ;;
8557    esac
8558  else
8559    lt_cv_deplibs_check_method=pass_all
8560  fi
8561  ;;
8562
8563gnu*)
8564  lt_cv_deplibs_check_method=pass_all
8565  ;;
8566
8567hpux10.20* | hpux11*)
8568  lt_cv_file_magic_cmd=/usr/bin/file
8569  case $host_cpu in
8570  ia64*)
8571    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8572    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8573    ;;
8574  hppa*64*)
8575    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]'
8576    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8577    ;;
8578  *)
8579    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8580    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8581    ;;
8582  esac
8583  ;;
8584
8585interix[3-9]*)
8586  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8587  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8588  ;;
8589
8590irix5* | irix6* | nonstopux*)
8591  case $LD in
8592  *-32|*"-32 ") libmagic=32-bit;;
8593  *-n32|*"-n32 ") libmagic=N32;;
8594  *-64|*"-64 ") libmagic=64-bit;;
8595  *) libmagic=never-match;;
8596  esac
8597  lt_cv_deplibs_check_method=pass_all
8598  ;;
8599
8600# This must be Linux ELF.
8601linux* | k*bsd*-gnu)
8602  lt_cv_deplibs_check_method=pass_all
8603  ;;
8604
8605netbsd* | netbsdelf*-gnu)
8606  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8607    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8608  else
8609    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8610  fi
8611  ;;
8612
8613newos6*)
8614  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8615  lt_cv_file_magic_cmd=/usr/bin/file
8616  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8617  ;;
8618
8619nto-qnx*)
8620  lt_cv_deplibs_check_method=unknown
8621  ;;
8622
8623openbsd*)
8624  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8625    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8626  else
8627    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8628  fi
8629  ;;
8630
8631osf3* | osf4* | osf5*)
8632  lt_cv_deplibs_check_method=pass_all
8633  ;;
8634
8635rdos*)
8636  lt_cv_deplibs_check_method=pass_all
8637  ;;
8638
8639solaris*)
8640  lt_cv_deplibs_check_method=pass_all
8641  ;;
8642
8643sysv4 | sysv4.3*)
8644  case $host_vendor in
8645  motorola)
8646    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]'
8647    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8648    ;;
8649  ncr)
8650    lt_cv_deplibs_check_method=pass_all
8651    ;;
8652  sequent)
8653    lt_cv_file_magic_cmd='/bin/file'
8654    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8655    ;;
8656  sni)
8657    lt_cv_file_magic_cmd='/bin/file'
8658    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8659    lt_cv_file_magic_test_file=/lib/libc.so
8660    ;;
8661  siemens)
8662    lt_cv_deplibs_check_method=pass_all
8663    ;;
8664  pc)
8665    lt_cv_deplibs_check_method=pass_all
8666    ;;
8667  esac
8668  ;;
8669
8670sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8671  lt_cv_deplibs_check_method=pass_all
8672  ;;
8673esac
8674
8675fi
8676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8677$as_echo "$lt_cv_deplibs_check_method" >&6; }
8678file_magic_cmd=$lt_cv_file_magic_cmd
8679deplibs_check_method=$lt_cv_deplibs_check_method
8680test -z "$deplibs_check_method" && deplibs_check_method=unknown
8681
8682
8683
8684
8685# If no C compiler was specified, use CC.
8686LTCC=${LTCC-"$CC"}
8687
8688# If no C compiler flags were specified, use CFLAGS.
8689LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8690
8691# Allow CC to be a program name with arguments.
8692compiler=$CC
8693
8694# Check whether --enable-libtool-lock was given.
8695if test "${enable_libtool_lock+set}" = set; then :
8696  enableval=$enable_libtool_lock;
8697fi
8698
8699test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8700
8701# Some flags need to be propagated to the compiler or linker for good
8702# libtool support.
8703case $host in
8704ia64-*-hpux*)
8705  # Find out which ABI we are using.
8706  echo 'int i;' > conftest.$ac_ext
8707  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8708  (eval $ac_compile) 2>&5
8709  ac_status=$?
8710  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8711  test $ac_status = 0; }; then
8712    case `/usr/bin/file conftest.$ac_objext` in
8713    *ELF-32*)
8714      HPUX_IA64_MODE="32"
8715      ;;
8716    *ELF-64*)
8717      HPUX_IA64_MODE="64"
8718      ;;
8719    esac
8720  fi
8721  rm -rf conftest*
8722  ;;
8723*-*-irix6*)
8724  # Find out which ABI we are using.
8725  echo '#line 8725 "configure"' > conftest.$ac_ext
8726  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8727  (eval $ac_compile) 2>&5
8728  ac_status=$?
8729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8730  test $ac_status = 0; }; then
8731   if test "$lt_cv_prog_gnu_ld" = yes; then
8732    case `/usr/bin/file conftest.$ac_objext` in
8733    *32-bit*)
8734      LD="${LD-ld} -melf32bsmip"
8735      ;;
8736    *N32*)
8737      LD="${LD-ld} -melf32bmipn32"
8738      ;;
8739    *64-bit*)
8740      LD="${LD-ld} -melf64bmip"
8741      ;;
8742    esac
8743   else
8744    case `/usr/bin/file conftest.$ac_objext` in
8745    *32-bit*)
8746      LD="${LD-ld} -32"
8747      ;;
8748    *N32*)
8749      LD="${LD-ld} -n32"
8750      ;;
8751    *64-bit*)
8752      LD="${LD-ld} -64"
8753      ;;
8754    esac
8755   fi
8756  fi
8757  rm -rf conftest*
8758  ;;
8759
8760x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8761s390*-*linux*|sparc*-*linux*)
8762  # Find out which ABI we are using.
8763  echo 'int i;' > conftest.$ac_ext
8764  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8765  (eval $ac_compile) 2>&5
8766  ac_status=$?
8767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768  test $ac_status = 0; }; then
8769    case `/usr/bin/file conftest.o` in
8770    *32-bit*)
8771      case $host in
8772        x86_64-*kfreebsd*-gnu)
8773          LD="${LD-ld} -m elf_i386_fbsd"
8774          ;;
8775        x86_64-*linux*)
8776          LD="${LD-ld} -m elf_i386"
8777          ;;
8778        ppc64-*linux*|powerpc64-*linux*)
8779          LD="${LD-ld} -m elf32ppclinux"
8780          ;;
8781        s390x-*linux*)
8782          LD="${LD-ld} -m elf_s390"
8783          ;;
8784        sparc64-*linux*)
8785          LD="${LD-ld} -m elf32_sparc"
8786          ;;
8787      esac
8788      ;;
8789    *64-bit*)
8790      case $host in
8791        x86_64-*kfreebsd*-gnu)
8792          LD="${LD-ld} -m elf_x86_64_fbsd"
8793          ;;
8794        x86_64-*linux*)
8795          LD="${LD-ld} -m elf_x86_64"
8796          ;;
8797        ppc*-*linux*|powerpc*-*linux*)
8798          LD="${LD-ld} -m elf64ppc"
8799          ;;
8800        s390*-*linux*)
8801          LD="${LD-ld} -m elf64_s390"
8802          ;;
8803        sparc*-*linux*)
8804          LD="${LD-ld} -m elf64_sparc"
8805          ;;
8806      esac
8807      ;;
8808    esac
8809  fi
8810  rm -rf conftest*
8811  ;;
8812
8813*-*-sco3.2v5*)
8814  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8815  SAVE_CFLAGS="$CFLAGS"
8816  CFLAGS="$CFLAGS -belf"
8817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8818$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8819if test "${lt_cv_cc_needs_belf+set}" = set; then :
8820  $as_echo_n "(cached) " >&6
8821else
8822  ac_ext=c
8823ac_cpp='$CPP $CPPFLAGS'
8824ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8825ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8826ac_compiler_gnu=$ac_cv_c_compiler_gnu
8827
8828     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829/* end confdefs.h.  */
8830
8831int
8832main ()
8833{
8834
8835  ;
8836  return 0;
8837}
8838_ACEOF
8839if ac_fn_c_try_link "$LINENO"; then :
8840  lt_cv_cc_needs_belf=yes
8841else
8842  lt_cv_cc_needs_belf=no
8843fi
8844rm -f core conftest.err conftest.$ac_objext \
8845    conftest$ac_exeext conftest.$ac_ext
8846     ac_ext=c
8847ac_cpp='$CPP $CPPFLAGS'
8848ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8849ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8850ac_compiler_gnu=$ac_cv_c_compiler_gnu
8851
8852fi
8853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8854$as_echo "$lt_cv_cc_needs_belf" >&6; }
8855  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8856    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8857    CFLAGS="$SAVE_CFLAGS"
8858  fi
8859  ;;
8860sparc*-*solaris*)
8861  # Find out which ABI we are using.
8862  echo 'int i;' > conftest.$ac_ext
8863  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8864  (eval $ac_compile) 2>&5
8865  ac_status=$?
8866  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8867  test $ac_status = 0; }; then
8868    case `/usr/bin/file conftest.o` in
8869    *64-bit*)
8870      case $lt_cv_prog_gnu_ld in
8871      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8872      *)
8873        if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8874	  LD="${LD-ld} -64"
8875	fi
8876	;;
8877      esac
8878      ;;
8879    esac
8880  fi
8881  rm -rf conftest*
8882  ;;
8883
8884*-*-cygwin* | *-*-mingw* | *-*-pw32*)
8885  if test -n "$ac_tool_prefix"; then
8886  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8887set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889$as_echo_n "checking for $ac_word... " >&6; }
8890if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
8891  $as_echo_n "(cached) " >&6
8892else
8893  if test -n "$DLLTOOL"; then
8894  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8895else
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899  IFS=$as_save_IFS
8900  test -z "$as_dir" && as_dir=.
8901    for ac_exec_ext in '' $ac_executable_extensions; do
8902  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8903    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8904    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8905    break 2
8906  fi
8907done
8908  done
8909IFS=$as_save_IFS
8910
8911fi
8912fi
8913DLLTOOL=$ac_cv_prog_DLLTOOL
8914if test -n "$DLLTOOL"; then
8915  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8916$as_echo "$DLLTOOL" >&6; }
8917else
8918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919$as_echo "no" >&6; }
8920fi
8921
8922
8923fi
8924if test -z "$ac_cv_prog_DLLTOOL"; then
8925  ac_ct_DLLTOOL=$DLLTOOL
8926  # Extract the first word of "dlltool", so it can be a program name with args.
8927set dummy dlltool; ac_word=$2
8928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929$as_echo_n "checking for $ac_word... " >&6; }
8930if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
8931  $as_echo_n "(cached) " >&6
8932else
8933  if test -n "$ac_ct_DLLTOOL"; then
8934  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8935else
8936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937for as_dir in $PATH
8938do
8939  IFS=$as_save_IFS
8940  test -z "$as_dir" && as_dir=.
8941    for ac_exec_ext in '' $ac_executable_extensions; do
8942  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8944    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945    break 2
8946  fi
8947done
8948  done
8949IFS=$as_save_IFS
8950
8951fi
8952fi
8953ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8954if test -n "$ac_ct_DLLTOOL"; then
8955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8956$as_echo "$ac_ct_DLLTOOL" >&6; }
8957else
8958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959$as_echo "no" >&6; }
8960fi
8961
8962  if test "x$ac_ct_DLLTOOL" = x; then
8963    DLLTOOL="false"
8964  else
8965    case $cross_compiling:$ac_tool_warned in
8966yes:)
8967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8969ac_tool_warned=yes ;;
8970esac
8971    DLLTOOL=$ac_ct_DLLTOOL
8972  fi
8973else
8974  DLLTOOL="$ac_cv_prog_DLLTOOL"
8975fi
8976
8977  if test -n "$ac_tool_prefix"; then
8978  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8979set dummy ${ac_tool_prefix}as; ac_word=$2
8980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8981$as_echo_n "checking for $ac_word... " >&6; }
8982if test "${ac_cv_prog_AS+set}" = set; then :
8983  $as_echo_n "(cached) " >&6
8984else
8985  if test -n "$AS"; then
8986  ac_cv_prog_AS="$AS" # Let the user override the test.
8987else
8988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989for as_dir in $PATH
8990do
8991  IFS=$as_save_IFS
8992  test -z "$as_dir" && as_dir=.
8993    for ac_exec_ext in '' $ac_executable_extensions; do
8994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8995    ac_cv_prog_AS="${ac_tool_prefix}as"
8996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8997    break 2
8998  fi
8999done
9000  done
9001IFS=$as_save_IFS
9002
9003fi
9004fi
9005AS=$ac_cv_prog_AS
9006if test -n "$AS"; then
9007  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9008$as_echo "$AS" >&6; }
9009else
9010  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011$as_echo "no" >&6; }
9012fi
9013
9014
9015fi
9016if test -z "$ac_cv_prog_AS"; then
9017  ac_ct_AS=$AS
9018  # Extract the first word of "as", so it can be a program name with args.
9019set dummy as; ac_word=$2
9020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9021$as_echo_n "checking for $ac_word... " >&6; }
9022if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
9023  $as_echo_n "(cached) " >&6
9024else
9025  if test -n "$ac_ct_AS"; then
9026  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
9027else
9028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029for as_dir in $PATH
9030do
9031  IFS=$as_save_IFS
9032  test -z "$as_dir" && as_dir=.
9033    for ac_exec_ext in '' $ac_executable_extensions; do
9034  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035    ac_cv_prog_ac_ct_AS="as"
9036    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037    break 2
9038  fi
9039done
9040  done
9041IFS=$as_save_IFS
9042
9043fi
9044fi
9045ac_ct_AS=$ac_cv_prog_ac_ct_AS
9046if test -n "$ac_ct_AS"; then
9047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
9048$as_echo "$ac_ct_AS" >&6; }
9049else
9050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9051$as_echo "no" >&6; }
9052fi
9053
9054  if test "x$ac_ct_AS" = x; then
9055    AS="false"
9056  else
9057    case $cross_compiling:$ac_tool_warned in
9058yes:)
9059{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9060$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9061ac_tool_warned=yes ;;
9062esac
9063    AS=$ac_ct_AS
9064  fi
9065else
9066  AS="$ac_cv_prog_AS"
9067fi
9068
9069  if test -n "$ac_tool_prefix"; then
9070  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9071set dummy ${ac_tool_prefix}objdump; ac_word=$2
9072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9073$as_echo_n "checking for $ac_word... " >&6; }
9074if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9075  $as_echo_n "(cached) " >&6
9076else
9077  if test -n "$OBJDUMP"; then
9078  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9079else
9080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081for as_dir in $PATH
9082do
9083  IFS=$as_save_IFS
9084  test -z "$as_dir" && as_dir=.
9085    for ac_exec_ext in '' $ac_executable_extensions; do
9086  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9087    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9089    break 2
9090  fi
9091done
9092  done
9093IFS=$as_save_IFS
9094
9095fi
9096fi
9097OBJDUMP=$ac_cv_prog_OBJDUMP
9098if test -n "$OBJDUMP"; then
9099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9100$as_echo "$OBJDUMP" >&6; }
9101else
9102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103$as_echo "no" >&6; }
9104fi
9105
9106
9107fi
9108if test -z "$ac_cv_prog_OBJDUMP"; then
9109  ac_ct_OBJDUMP=$OBJDUMP
9110  # Extract the first word of "objdump", so it can be a program name with args.
9111set dummy objdump; ac_word=$2
9112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9113$as_echo_n "checking for $ac_word... " >&6; }
9114if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9115  $as_echo_n "(cached) " >&6
9116else
9117  if test -n "$ac_ct_OBJDUMP"; then
9118  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9119else
9120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9121for as_dir in $PATH
9122do
9123  IFS=$as_save_IFS
9124  test -z "$as_dir" && as_dir=.
9125    for ac_exec_ext in '' $ac_executable_extensions; do
9126  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9127    ac_cv_prog_ac_ct_OBJDUMP="objdump"
9128    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9129    break 2
9130  fi
9131done
9132  done
9133IFS=$as_save_IFS
9134
9135fi
9136fi
9137ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9138if test -n "$ac_ct_OBJDUMP"; then
9139  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9140$as_echo "$ac_ct_OBJDUMP" >&6; }
9141else
9142  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143$as_echo "no" >&6; }
9144fi
9145
9146  if test "x$ac_ct_OBJDUMP" = x; then
9147    OBJDUMP="false"
9148  else
9149    case $cross_compiling:$ac_tool_warned in
9150yes:)
9151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9153ac_tool_warned=yes ;;
9154esac
9155    OBJDUMP=$ac_ct_OBJDUMP
9156  fi
9157else
9158  OBJDUMP="$ac_cv_prog_OBJDUMP"
9159fi
9160
9161  ;;
9162
9163esac
9164
9165need_locks="$enable_libtool_lock"
9166
9167
9168for ac_header in dlfcn.h
9169do :
9170  ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
9171if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9172  cat >>confdefs.h <<_ACEOF
9173#define HAVE_DLFCN_H 1
9174_ACEOF
9175
9176fi
9177
9178done
9179
9180
9181# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9182# find the maximum length of command line arguments
9183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9184$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9185if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9186  $as_echo_n "(cached) " >&6
9187else
9188    i=0
9189  teststring="ABCD"
9190
9191  case $build_os in
9192  msdosdjgpp*)
9193    # On DJGPP, this test can blow up pretty badly due to problems in libc
9194    # (any single argument exceeding 2000 bytes causes a buffer overrun
9195    # during glob expansion).  Even if it were fixed, the result of this
9196    # check would be larger than it should be.
9197    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
9198    ;;
9199
9200  gnu*)
9201    # Under GNU Hurd, this test is not required because there is
9202    # no limit to the length of command line arguments.
9203    # Libtool will interpret -1 as no limit whatsoever
9204    lt_cv_sys_max_cmd_len=-1;
9205    ;;
9206
9207  cygwin* | mingw*)
9208    # On Win9x/ME, this test blows up -- it succeeds, but takes
9209    # about 5 minutes as the teststring grows exponentially.
9210    # Worse, since 9x/ME are not pre-emptively multitasking,
9211    # you end up with a "frozen" computer, even though with patience
9212    # the test eventually succeeds (with a max line length of 256k).
9213    # Instead, let's just punt: use the minimum linelength reported by
9214    # all of the supported platforms: 8192 (on NT/2K/XP).
9215    lt_cv_sys_max_cmd_len=8192;
9216    ;;
9217
9218  amigaos*)
9219    # On AmigaOS with pdksh, this test takes hours, literally.
9220    # So we just punt and use a minimum line length of 8192.
9221    lt_cv_sys_max_cmd_len=8192;
9222    ;;
9223
9224  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9225    # This has been around since 386BSD, at least.  Likely further.
9226    if test -x /sbin/sysctl; then
9227      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9228    elif test -x /usr/sbin/sysctl; then
9229      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9230    else
9231      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
9232    fi
9233    # And add a safety zone
9234    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9235    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9236    ;;
9237
9238  interix*)
9239    # We know the value 262144 and hardcode it with a safety zone (like BSD)
9240    lt_cv_sys_max_cmd_len=196608
9241    ;;
9242
9243  osf*)
9244    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9245    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9246    # nice to cause kernel panics so lets avoid the loop below.
9247    # First set a reasonable default.
9248    lt_cv_sys_max_cmd_len=16384
9249    #
9250    if test -x /sbin/sysconfig; then
9251      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9252        *1*) lt_cv_sys_max_cmd_len=-1 ;;
9253      esac
9254    fi
9255    ;;
9256  sco3.2v5*)
9257    lt_cv_sys_max_cmd_len=102400
9258    ;;
9259  sysv5* | sco5v6* | sysv4.2uw2*)
9260    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9261    if test -n "$kargmax"; then
9262      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ 	]//'`
9263    else
9264      lt_cv_sys_max_cmd_len=32768
9265    fi
9266    ;;
9267  *)
9268    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9269    if test -n "$lt_cv_sys_max_cmd_len"; then
9270      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9271      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9272    else
9273      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9274      while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
9275	       = "XX$teststring") >/dev/null 2>&1 &&
9276	      new_result=`expr "X$teststring" : ".*" 2>&1` &&
9277	      lt_cv_sys_max_cmd_len=$new_result &&
9278	      test $i != 17 # 1/2 MB should be enough
9279      do
9280        i=`expr $i + 1`
9281        teststring=$teststring$teststring
9282      done
9283      teststring=
9284      # Add a significant safety factor because C++ compilers can tack on massive
9285      # amounts of additional arguments before passing them to the linker.
9286      # It appears as though 1/2 is a usable value.
9287      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9288    fi
9289    ;;
9290  esac
9291
9292fi
9293
9294if test -n $lt_cv_sys_max_cmd_len ; then
9295  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9296$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9297else
9298  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9299$as_echo "none" >&6; }
9300fi
9301
9302
9303
9304
9305
9306# Check for command to grab the raw symbol name followed by C symbol from nm.
9307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9308$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9309if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9310  $as_echo_n "(cached) " >&6
9311else
9312
9313# These are sane defaults that work on at least a few old systems.
9314# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9315
9316# Character class describing NM global symbol codes.
9317symcode='[BCDEGRST]'
9318
9319# Regexp to match symbols that can be accessed directly from C.
9320sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9321
9322# Transform an extracted symbol line into a proper C declaration
9323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9324
9325# Transform an extracted symbol line into symbol name and symbol address
9326lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9327
9328# Define system-specific variables.
9329case $host_os in
9330aix*)
9331  symcode='[BCDT]'
9332  ;;
9333cygwin* | mingw* | pw32*)
9334  symcode='[ABCDGISTW]'
9335  ;;
9336hpux*) # Its linker distinguishes data from code symbols
9337  if test "$host_cpu" = ia64; then
9338    symcode='[ABCDEGRST]'
9339  fi
9340  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9341  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9342  ;;
9343linux* | k*bsd*-gnu)
9344  if test "$host_cpu" = ia64; then
9345    symcode='[ABCDGIRSTW]'
9346    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9347    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
9348  fi
9349  ;;
9350irix* | nonstopux*)
9351  symcode='[BCDEGRST]'
9352  ;;
9353osf*)
9354  symcode='[BCDEGQRST]'
9355  ;;
9356solaris*)
9357  symcode='[BDRT]'
9358  ;;
9359sco3.2v5*)
9360  symcode='[DT]'
9361  ;;
9362sysv4.2uw2*)
9363  symcode='[DT]'
9364  ;;
9365sysv5* | sco5v6* | unixware* | OpenUNIX*)
9366  symcode='[ABDT]'
9367  ;;
9368sysv4)
9369  symcode='[DFNSTU]'
9370  ;;
9371esac
9372
9373# Handle CRLF in mingw tool chain
9374opt_cr=
9375case $build_os in
9376mingw*)
9377  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9378  ;;
9379esac
9380
9381# If we're using GNU nm, then use its standard symbol codes.
9382case `$NM -V 2>&1` in
9383*GNU* | *'with BFD'*)
9384  symcode='[ABCDGIRSTW]' ;;
9385esac
9386
9387# Try without a prefix undercore, then with it.
9388for ac_symprfx in "" "_"; do
9389
9390  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9391  symxfrm="\\1 $ac_symprfx\\2 \\2"
9392
9393  # Write the raw and C identifiers.
9394  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9395
9396  # Check to see that the pipe works correctly.
9397  pipe_works=no
9398
9399  rm -f conftest*
9400  cat > conftest.$ac_ext <<EOF
9401#ifdef __cplusplus
9402extern "C" {
9403#endif
9404char nm_test_var;
9405void nm_test_func(){}
9406#ifdef __cplusplus
9407}
9408#endif
9409int main(){nm_test_var='a';nm_test_func();return(0);}
9410EOF
9411
9412  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9413  (eval $ac_compile) 2>&5
9414  ac_status=$?
9415  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9416  test $ac_status = 0; }; then
9417    # Now try to grab the symbols.
9418    nlist=conftest.nm
9419    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9420  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9421  ac_status=$?
9422  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9423  test $ac_status = 0; } && test -s "$nlist"; then
9424      # Try sorting and uniquifying the output.
9425      if sort "$nlist" | uniq > "$nlist"T; then
9426	mv -f "$nlist"T "$nlist"
9427      else
9428	rm -f "$nlist"T
9429      fi
9430
9431      # Make sure that we snagged all the symbols we need.
9432      if grep ' nm_test_var$' "$nlist" >/dev/null; then
9433	if grep ' nm_test_func$' "$nlist" >/dev/null; then
9434	  cat <<EOF > conftest.$ac_ext
9435#ifdef __cplusplus
9436extern "C" {
9437#endif
9438
9439EOF
9440	  # Now generate the symbol file.
9441	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9442
9443	  cat <<EOF >> conftest.$ac_ext
9444#if defined (__STDC__) && __STDC__
9445# define lt_ptr_t void *
9446#else
9447# define lt_ptr_t char *
9448# define const
9449#endif
9450
9451/* The mapping between symbol names and symbols. */
9452const struct {
9453  const char *name;
9454  lt_ptr_t address;
9455}
9456lt_preloaded_symbols[] =
9457{
9458EOF
9459	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9460	  cat <<\EOF >> conftest.$ac_ext
9461  {0, (lt_ptr_t) 0}
9462};
9463
9464#ifdef __cplusplus
9465}
9466#endif
9467EOF
9468	  # Now try linking the two files.
9469	  mv conftest.$ac_objext conftstm.$ac_objext
9470	  lt_save_LIBS="$LIBS"
9471	  lt_save_CFLAGS="$CFLAGS"
9472	  LIBS="conftstm.$ac_objext"
9473	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9474	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9475  (eval $ac_link) 2>&5
9476  ac_status=$?
9477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9479	    pipe_works=yes
9480	  fi
9481	  LIBS="$lt_save_LIBS"
9482	  CFLAGS="$lt_save_CFLAGS"
9483	else
9484	  echo "cannot find nm_test_func in $nlist" >&5
9485	fi
9486      else
9487	echo "cannot find nm_test_var in $nlist" >&5
9488      fi
9489    else
9490      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9491    fi
9492  else
9493    echo "$progname: failed program was:" >&5
9494    cat conftest.$ac_ext >&5
9495  fi
9496  rm -rf conftest* conftst*
9497
9498  # Do not use the global_symbol_pipe unless it works.
9499  if test "$pipe_works" = yes; then
9500    break
9501  else
9502    lt_cv_sys_global_symbol_pipe=
9503  fi
9504done
9505
9506fi
9507
9508if test -z "$lt_cv_sys_global_symbol_pipe"; then
9509  lt_cv_sys_global_symbol_to_cdecl=
9510fi
9511if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9513$as_echo "failed" >&6; }
9514else
9515  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9516$as_echo "ok" >&6; }
9517fi
9518
9519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9520$as_echo_n "checking for objdir... " >&6; }
9521if test "${lt_cv_objdir+set}" = set; then :
9522  $as_echo_n "(cached) " >&6
9523else
9524  rm -f .libs 2>/dev/null
9525mkdir .libs 2>/dev/null
9526if test -d .libs; then
9527  lt_cv_objdir=.libs
9528else
9529  # MS-DOS does not allow filenames that begin with a dot.
9530  lt_cv_objdir=_libs
9531fi
9532rmdir .libs 2>/dev/null
9533fi
9534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9535$as_echo "$lt_cv_objdir" >&6; }
9536objdir=$lt_cv_objdir
9537
9538
9539
9540
9541
9542case $host_os in
9543aix3*)
9544  # AIX sometimes has problems with the GCC collect2 program.  For some
9545  # reason, if we set the COLLECT_NAMES environment variable, the problems
9546  # vanish in a puff of smoke.
9547  if test "X${COLLECT_NAMES+set}" != Xset; then
9548    COLLECT_NAMES=
9549    export COLLECT_NAMES
9550  fi
9551  ;;
9552esac
9553
9554# Sed substitution that helps us do robust quoting.  It backslashifies
9555# metacharacters that are still active within double-quoted strings.
9556Xsed='sed -e 1s/^X//'
9557sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9558
9559# Same as above, but do not quote variable references.
9560double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9561
9562# Sed substitution to delay expansion of an escaped shell variable in a
9563# double_quote_subst'ed string.
9564delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9565
9566# Sed substitution to avoid accidental globbing in evaled expressions
9567no_glob_subst='s/\*/\\\*/g'
9568
9569# Constants:
9570rm="rm -f"
9571
9572# Global variables:
9573default_ofile=libtool
9574can_build_shared=yes
9575
9576# All known linkers require a `.a' archive for static linking (except MSVC,
9577# which needs '.lib').
9578libext=a
9579ltmain="$ac_aux_dir/ltmain.sh"
9580ofile="$default_ofile"
9581with_gnu_ld="$lt_cv_prog_gnu_ld"
9582
9583if test -n "$ac_tool_prefix"; then
9584  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9585set dummy ${ac_tool_prefix}ar; ac_word=$2
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9587$as_echo_n "checking for $ac_word... " >&6; }
9588if test "${ac_cv_prog_AR+set}" = set; then :
9589  $as_echo_n "(cached) " >&6
9590else
9591  if test -n "$AR"; then
9592  ac_cv_prog_AR="$AR" # Let the user override the test.
9593else
9594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595for as_dir in $PATH
9596do
9597  IFS=$as_save_IFS
9598  test -z "$as_dir" && as_dir=.
9599    for ac_exec_ext in '' $ac_executable_extensions; do
9600  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9601    ac_cv_prog_AR="${ac_tool_prefix}ar"
9602    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9603    break 2
9604  fi
9605done
9606  done
9607IFS=$as_save_IFS
9608
9609fi
9610fi
9611AR=$ac_cv_prog_AR
9612if test -n "$AR"; then
9613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9614$as_echo "$AR" >&6; }
9615else
9616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9617$as_echo "no" >&6; }
9618fi
9619
9620
9621fi
9622if test -z "$ac_cv_prog_AR"; then
9623  ac_ct_AR=$AR
9624  # Extract the first word of "ar", so it can be a program name with args.
9625set dummy ar; ac_word=$2
9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9627$as_echo_n "checking for $ac_word... " >&6; }
9628if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9629  $as_echo_n "(cached) " >&6
9630else
9631  if test -n "$ac_ct_AR"; then
9632  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9633else
9634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635for as_dir in $PATH
9636do
9637  IFS=$as_save_IFS
9638  test -z "$as_dir" && as_dir=.
9639    for ac_exec_ext in '' $ac_executable_extensions; do
9640  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9641    ac_cv_prog_ac_ct_AR="ar"
9642    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9643    break 2
9644  fi
9645done
9646  done
9647IFS=$as_save_IFS
9648
9649fi
9650fi
9651ac_ct_AR=$ac_cv_prog_ac_ct_AR
9652if test -n "$ac_ct_AR"; then
9653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9654$as_echo "$ac_ct_AR" >&6; }
9655else
9656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9657$as_echo "no" >&6; }
9658fi
9659
9660  if test "x$ac_ct_AR" = x; then
9661    AR="false"
9662  else
9663    case $cross_compiling:$ac_tool_warned in
9664yes:)
9665{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9666$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9667ac_tool_warned=yes ;;
9668esac
9669    AR=$ac_ct_AR
9670  fi
9671else
9672  AR="$ac_cv_prog_AR"
9673fi
9674
9675if test -n "$ac_tool_prefix"; then
9676  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9677set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9679$as_echo_n "checking for $ac_word... " >&6; }
9680if test "${ac_cv_prog_RANLIB+set}" = set; then :
9681  $as_echo_n "(cached) " >&6
9682else
9683  if test -n "$RANLIB"; then
9684  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9685else
9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687for as_dir in $PATH
9688do
9689  IFS=$as_save_IFS
9690  test -z "$as_dir" && as_dir=.
9691    for ac_exec_ext in '' $ac_executable_extensions; do
9692  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9694    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695    break 2
9696  fi
9697done
9698  done
9699IFS=$as_save_IFS
9700
9701fi
9702fi
9703RANLIB=$ac_cv_prog_RANLIB
9704if test -n "$RANLIB"; then
9705  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9706$as_echo "$RANLIB" >&6; }
9707else
9708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9709$as_echo "no" >&6; }
9710fi
9711
9712
9713fi
9714if test -z "$ac_cv_prog_RANLIB"; then
9715  ac_ct_RANLIB=$RANLIB
9716  # Extract the first word of "ranlib", so it can be a program name with args.
9717set dummy ranlib; ac_word=$2
9718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719$as_echo_n "checking for $ac_word... " >&6; }
9720if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9721  $as_echo_n "(cached) " >&6
9722else
9723  if test -n "$ac_ct_RANLIB"; then
9724  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9725else
9726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727for as_dir in $PATH
9728do
9729  IFS=$as_save_IFS
9730  test -z "$as_dir" && as_dir=.
9731    for ac_exec_ext in '' $ac_executable_extensions; do
9732  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733    ac_cv_prog_ac_ct_RANLIB="ranlib"
9734    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9735    break 2
9736  fi
9737done
9738  done
9739IFS=$as_save_IFS
9740
9741fi
9742fi
9743ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9744if test -n "$ac_ct_RANLIB"; then
9745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9746$as_echo "$ac_ct_RANLIB" >&6; }
9747else
9748  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749$as_echo "no" >&6; }
9750fi
9751
9752  if test "x$ac_ct_RANLIB" = x; then
9753    RANLIB=":"
9754  else
9755    case $cross_compiling:$ac_tool_warned in
9756yes:)
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9759ac_tool_warned=yes ;;
9760esac
9761    RANLIB=$ac_ct_RANLIB
9762  fi
9763else
9764  RANLIB="$ac_cv_prog_RANLIB"
9765fi
9766
9767if test -n "$ac_tool_prefix"; then
9768  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9769set dummy ${ac_tool_prefix}strip; ac_word=$2
9770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9771$as_echo_n "checking for $ac_word... " >&6; }
9772if test "${ac_cv_prog_STRIP+set}" = set; then :
9773  $as_echo_n "(cached) " >&6
9774else
9775  if test -n "$STRIP"; then
9776  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9777else
9778as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779for as_dir in $PATH
9780do
9781  IFS=$as_save_IFS
9782  test -z "$as_dir" && as_dir=.
9783    for ac_exec_ext in '' $ac_executable_extensions; do
9784  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9786    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787    break 2
9788  fi
9789done
9790  done
9791IFS=$as_save_IFS
9792
9793fi
9794fi
9795STRIP=$ac_cv_prog_STRIP
9796if test -n "$STRIP"; then
9797  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9798$as_echo "$STRIP" >&6; }
9799else
9800  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9801$as_echo "no" >&6; }
9802fi
9803
9804
9805fi
9806if test -z "$ac_cv_prog_STRIP"; then
9807  ac_ct_STRIP=$STRIP
9808  # Extract the first word of "strip", so it can be a program name with args.
9809set dummy strip; ac_word=$2
9810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9811$as_echo_n "checking for $ac_word... " >&6; }
9812if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9813  $as_echo_n "(cached) " >&6
9814else
9815  if test -n "$ac_ct_STRIP"; then
9816  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9817else
9818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9819for as_dir in $PATH
9820do
9821  IFS=$as_save_IFS
9822  test -z "$as_dir" && as_dir=.
9823    for ac_exec_ext in '' $ac_executable_extensions; do
9824  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9825    ac_cv_prog_ac_ct_STRIP="strip"
9826    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827    break 2
9828  fi
9829done
9830  done
9831IFS=$as_save_IFS
9832
9833fi
9834fi
9835ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9836if test -n "$ac_ct_STRIP"; then
9837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9838$as_echo "$ac_ct_STRIP" >&6; }
9839else
9840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9841$as_echo "no" >&6; }
9842fi
9843
9844  if test "x$ac_ct_STRIP" = x; then
9845    STRIP=":"
9846  else
9847    case $cross_compiling:$ac_tool_warned in
9848yes:)
9849{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9850$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9851ac_tool_warned=yes ;;
9852esac
9853    STRIP=$ac_ct_STRIP
9854  fi
9855else
9856  STRIP="$ac_cv_prog_STRIP"
9857fi
9858
9859
9860old_CC="$CC"
9861old_CFLAGS="$CFLAGS"
9862
9863# Set sane defaults for various variables
9864test -z "$AR" && AR=ar
9865test -z "$AR_FLAGS" && AR_FLAGS=cru
9866test -z "$AS" && AS=as
9867test -z "$CC" && CC=cc
9868test -z "$LTCC" && LTCC=$CC
9869test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9870test -z "$DLLTOOL" && DLLTOOL=dlltool
9871test -z "$LD" && LD=ld
9872test -z "$LN_S" && LN_S="ln -s"
9873test -z "$MAGIC_CMD" && MAGIC_CMD=file
9874test -z "$NM" && NM=nm
9875test -z "$SED" && SED=sed
9876test -z "$OBJDUMP" && OBJDUMP=objdump
9877test -z "$RANLIB" && RANLIB=:
9878test -z "$STRIP" && STRIP=:
9879test -z "$ac_objext" && ac_objext=o
9880
9881# Determine commands to create old-style static archives.
9882old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9883old_postinstall_cmds='chmod 644 $oldlib'
9884old_postuninstall_cmds=
9885
9886if test -n "$RANLIB"; then
9887  case $host_os in
9888  openbsd*)
9889    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9890    ;;
9891  *)
9892    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9893    ;;
9894  esac
9895  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9896fi
9897
9898for cc_temp in $compiler""; do
9899  case $cc_temp in
9900    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9901    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9902    \-*) ;;
9903    *) break;;
9904  esac
9905done
9906cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9907
9908
9909# Only perform the check for file, if the check method requires it
9910case $deplibs_check_method in
9911file_magic*)
9912  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9913    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9914$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9915if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9916  $as_echo_n "(cached) " >&6
9917else
9918  case $MAGIC_CMD in
9919[\\/*] |  ?:[\\/]*)
9920  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9921  ;;
9922*)
9923  lt_save_MAGIC_CMD="$MAGIC_CMD"
9924  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9925  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9926  for ac_dir in $ac_dummy; do
9927    IFS="$lt_save_ifs"
9928    test -z "$ac_dir" && ac_dir=.
9929    if test -f $ac_dir/${ac_tool_prefix}file; then
9930      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9931      if test -n "$file_magic_test_file"; then
9932	case $deplibs_check_method in
9933	"file_magic "*)
9934	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9935	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9936	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9937	    $EGREP "$file_magic_regex" > /dev/null; then
9938	    :
9939	  else
9940	    cat <<EOF 1>&2
9941
9942*** Warning: the command libtool uses to detect shared libraries,
9943*** $file_magic_cmd, produces output that libtool cannot recognize.
9944*** The result is that libtool may fail to recognize shared libraries
9945*** as such.  This will affect the creation of libtool libraries that
9946*** depend on shared libraries, but programs linked with such libtool
9947*** libraries will work regardless of this problem.  Nevertheless, you
9948*** may want to report the problem to your system manager and/or to
9949*** bug-libtool@gnu.org
9950
9951EOF
9952	  fi ;;
9953	esac
9954      fi
9955      break
9956    fi
9957  done
9958  IFS="$lt_save_ifs"
9959  MAGIC_CMD="$lt_save_MAGIC_CMD"
9960  ;;
9961esac
9962fi
9963
9964MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9965if test -n "$MAGIC_CMD"; then
9966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9967$as_echo "$MAGIC_CMD" >&6; }
9968else
9969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9970$as_echo "no" >&6; }
9971fi
9972
9973if test -z "$lt_cv_path_MAGIC_CMD"; then
9974  if test -n "$ac_tool_prefix"; then
9975    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9976$as_echo_n "checking for file... " >&6; }
9977if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9978  $as_echo_n "(cached) " >&6
9979else
9980  case $MAGIC_CMD in
9981[\\/*] |  ?:[\\/]*)
9982  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9983  ;;
9984*)
9985  lt_save_MAGIC_CMD="$MAGIC_CMD"
9986  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9987  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9988  for ac_dir in $ac_dummy; do
9989    IFS="$lt_save_ifs"
9990    test -z "$ac_dir" && ac_dir=.
9991    if test -f $ac_dir/file; then
9992      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9993      if test -n "$file_magic_test_file"; then
9994	case $deplibs_check_method in
9995	"file_magic "*)
9996	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9997	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9998	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9999	    $EGREP "$file_magic_regex" > /dev/null; then
10000	    :
10001	  else
10002	    cat <<EOF 1>&2
10003
10004*** Warning: the command libtool uses to detect shared libraries,
10005*** $file_magic_cmd, produces output that libtool cannot recognize.
10006*** The result is that libtool may fail to recognize shared libraries
10007*** as such.  This will affect the creation of libtool libraries that
10008*** depend on shared libraries, but programs linked with such libtool
10009*** libraries will work regardless of this problem.  Nevertheless, you
10010*** may want to report the problem to your system manager and/or to
10011*** bug-libtool@gnu.org
10012
10013EOF
10014	  fi ;;
10015	esac
10016      fi
10017      break
10018    fi
10019  done
10020  IFS="$lt_save_ifs"
10021  MAGIC_CMD="$lt_save_MAGIC_CMD"
10022  ;;
10023esac
10024fi
10025
10026MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10027if test -n "$MAGIC_CMD"; then
10028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10029$as_echo "$MAGIC_CMD" >&6; }
10030else
10031  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10032$as_echo "no" >&6; }
10033fi
10034
10035  else
10036    MAGIC_CMD=:
10037  fi
10038fi
10039
10040  fi
10041  ;;
10042esac
10043
10044
10045  case $host_os in
10046    rhapsody* | darwin*)
10047    if test -n "$ac_tool_prefix"; then
10048  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10049set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10051$as_echo_n "checking for $ac_word... " >&6; }
10052if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
10053  $as_echo_n "(cached) " >&6
10054else
10055  if test -n "$DSYMUTIL"; then
10056  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10057else
10058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10059for as_dir in $PATH
10060do
10061  IFS=$as_save_IFS
10062  test -z "$as_dir" && as_dir=.
10063    for ac_exec_ext in '' $ac_executable_extensions; do
10064  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10065    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10066    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10067    break 2
10068  fi
10069done
10070  done
10071IFS=$as_save_IFS
10072
10073fi
10074fi
10075DSYMUTIL=$ac_cv_prog_DSYMUTIL
10076if test -n "$DSYMUTIL"; then
10077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10078$as_echo "$DSYMUTIL" >&6; }
10079else
10080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10081$as_echo "no" >&6; }
10082fi
10083
10084
10085fi
10086if test -z "$ac_cv_prog_DSYMUTIL"; then
10087  ac_ct_DSYMUTIL=$DSYMUTIL
10088  # Extract the first word of "dsymutil", so it can be a program name with args.
10089set dummy dsymutil; ac_word=$2
10090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10091$as_echo_n "checking for $ac_word... " >&6; }
10092if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
10093  $as_echo_n "(cached) " >&6
10094else
10095  if test -n "$ac_ct_DSYMUTIL"; then
10096  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10097else
10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101  IFS=$as_save_IFS
10102  test -z "$as_dir" && as_dir=.
10103    for ac_exec_ext in '' $ac_executable_extensions; do
10104  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10105    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10106    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10107    break 2
10108  fi
10109done
10110  done
10111IFS=$as_save_IFS
10112
10113fi
10114fi
10115ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10116if test -n "$ac_ct_DSYMUTIL"; then
10117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10118$as_echo "$ac_ct_DSYMUTIL" >&6; }
10119else
10120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10121$as_echo "no" >&6; }
10122fi
10123
10124  if test "x$ac_ct_DSYMUTIL" = x; then
10125    DSYMUTIL=":"
10126  else
10127    case $cross_compiling:$ac_tool_warned in
10128yes:)
10129{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10130$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10131ac_tool_warned=yes ;;
10132esac
10133    DSYMUTIL=$ac_ct_DSYMUTIL
10134  fi
10135else
10136  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10137fi
10138
10139    if test -n "$ac_tool_prefix"; then
10140  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10141set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10143$as_echo_n "checking for $ac_word... " >&6; }
10144if test "${ac_cv_prog_NMEDIT+set}" = set; then :
10145  $as_echo_n "(cached) " >&6
10146else
10147  if test -n "$NMEDIT"; then
10148  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10149else
10150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10151for as_dir in $PATH
10152do
10153  IFS=$as_save_IFS
10154  test -z "$as_dir" && as_dir=.
10155    for ac_exec_ext in '' $ac_executable_extensions; do
10156  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10157    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10158    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10159    break 2
10160  fi
10161done
10162  done
10163IFS=$as_save_IFS
10164
10165fi
10166fi
10167NMEDIT=$ac_cv_prog_NMEDIT
10168if test -n "$NMEDIT"; then
10169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10170$as_echo "$NMEDIT" >&6; }
10171else
10172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10173$as_echo "no" >&6; }
10174fi
10175
10176
10177fi
10178if test -z "$ac_cv_prog_NMEDIT"; then
10179  ac_ct_NMEDIT=$NMEDIT
10180  # Extract the first word of "nmedit", so it can be a program name with args.
10181set dummy nmedit; ac_word=$2
10182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10183$as_echo_n "checking for $ac_word... " >&6; }
10184if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
10185  $as_echo_n "(cached) " >&6
10186else
10187  if test -n "$ac_ct_NMEDIT"; then
10188  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10189else
10190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193  IFS=$as_save_IFS
10194  test -z "$as_dir" && as_dir=.
10195    for ac_exec_ext in '' $ac_executable_extensions; do
10196  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10197    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10199    break 2
10200  fi
10201done
10202  done
10203IFS=$as_save_IFS
10204
10205fi
10206fi
10207ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10208if test -n "$ac_ct_NMEDIT"; then
10209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10210$as_echo "$ac_ct_NMEDIT" >&6; }
10211else
10212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10213$as_echo "no" >&6; }
10214fi
10215
10216  if test "x$ac_ct_NMEDIT" = x; then
10217    NMEDIT=":"
10218  else
10219    case $cross_compiling:$ac_tool_warned in
10220yes:)
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10222$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10223ac_tool_warned=yes ;;
10224esac
10225    NMEDIT=$ac_ct_NMEDIT
10226  fi
10227else
10228  NMEDIT="$ac_cv_prog_NMEDIT"
10229fi
10230
10231
10232    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10233$as_echo_n "checking for -single_module linker flag... " >&6; }
10234if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10235  $as_echo_n "(cached) " >&6
10236else
10237  lt_cv_apple_cc_single_mod=no
10238      if test -z "${LT_MULTI_MODULE}"; then
10239   # By default we will add the -single_module flag. You can override
10240   # by either setting the environment variable LT_MULTI_MODULE
10241   # non-empty at configure time, or by adding -multi_module to the
10242   # link flags.
10243   echo "int foo(void){return 1;}" > conftest.c
10244   $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10245     -dynamiclib ${wl}-single_module conftest.c
10246   if test -f libconftest.dylib; then
10247     lt_cv_apple_cc_single_mod=yes
10248     rm -rf libconftest.dylib*
10249   fi
10250   rm conftest.c
10251      fi
10252fi
10253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10254$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10255    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10256$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10257if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10258  $as_echo_n "(cached) " >&6
10259else
10260  lt_cv_ld_exported_symbols_list=no
10261      save_LDFLAGS=$LDFLAGS
10262      echo "_main" > conftest.sym
10263      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10264      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265/* end confdefs.h.  */
10266
10267int
10268main ()
10269{
10270
10271  ;
10272  return 0;
10273}
10274_ACEOF
10275if ac_fn_c_try_link "$LINENO"; then :
10276  lt_cv_ld_exported_symbols_list=yes
10277else
10278  lt_cv_ld_exported_symbols_list=no
10279fi
10280rm -f core conftest.err conftest.$ac_objext \
10281    conftest$ac_exeext conftest.$ac_ext
10282   LDFLAGS="$save_LDFLAGS"
10283
10284fi
10285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10286$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10287    case $host_os in
10288    rhapsody* | darwin1.[0123])
10289      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10290    darwin1.*)
10291     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10292    darwin*)
10293      # if running on 10.5 or later, the deployment target defaults
10294      # to the OS version, if on x86, and 10.4, the deployment
10295      # target defaults to 10.4. Don't you love it?
10296      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10297   10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10298     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10299   10.[012]*)
10300     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10301   10.*)
10302     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10303      esac
10304    ;;
10305  esac
10306    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10307      _lt_dar_single_mod='$single_module'
10308    fi
10309    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10310      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10311    else
10312      _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
10313    fi
10314    if test "$DSYMUTIL" != ":"; then
10315      _lt_dsymutil="~$DSYMUTIL \$lib || :"
10316    else
10317      _lt_dsymutil=
10318    fi
10319    ;;
10320  esac
10321
10322
10323enable_dlopen=no
10324enable_win32_dll=yes
10325
10326# Check whether --enable-libtool-lock was given.
10327if test "${enable_libtool_lock+set}" = set; then :
10328  enableval=$enable_libtool_lock;
10329fi
10330
10331test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10332
10333
10334# Check whether --with-pic was given.
10335if test "${with_pic+set}" = set; then :
10336  withval=$with_pic; pic_mode="$withval"
10337else
10338  pic_mode=default
10339fi
10340
10341test -z "$pic_mode" && pic_mode=default
10342
10343# Use C for the default configuration in the libtool script
10344tagname=
10345lt_save_CC="$CC"
10346ac_ext=c
10347ac_cpp='$CPP $CPPFLAGS'
10348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10350ac_compiler_gnu=$ac_cv_c_compiler_gnu
10351
10352
10353# Source file extension for C test sources.
10354ac_ext=c
10355
10356# Object file extension for compiled C test sources.
10357objext=o
10358objext=$objext
10359
10360# Code to be used in simple compile tests
10361lt_simple_compile_test_code="int some_variable = 0;"
10362
10363# Code to be used in simple link tests
10364lt_simple_link_test_code='int main(){return(0);}'
10365
10366
10367# If no C compiler was specified, use CC.
10368LTCC=${LTCC-"$CC"}
10369
10370# If no C compiler flags were specified, use CFLAGS.
10371LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10372
10373# Allow CC to be a program name with arguments.
10374compiler=$CC
10375
10376
10377# save warnings/boilerplate of simple test code
10378ac_outfile=conftest.$ac_objext
10379echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10380eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10381_lt_compiler_boilerplate=`cat conftest.err`
10382$rm conftest*
10383
10384ac_outfile=conftest.$ac_objext
10385echo "$lt_simple_link_test_code" >conftest.$ac_ext
10386eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10387_lt_linker_boilerplate=`cat conftest.err`
10388$rm -r conftest*
10389
10390
10391
10392lt_prog_compiler_no_builtin_flag=
10393
10394if test "$GCC" = yes; then
10395  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10396
10397
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10399$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10400if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10401  $as_echo_n "(cached) " >&6
10402else
10403  lt_cv_prog_compiler_rtti_exceptions=no
10404  ac_outfile=conftest.$ac_objext
10405   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10406   lt_compiler_flag="-fno-rtti -fno-exceptions"
10407   # Insert the option either (1) after the last *FLAGS variable, or
10408   # (2) before a word containing "conftest.", or (3) at the end.
10409   # Note that $ac_compile itself does not contain backslashes and begins
10410   # with a dollar sign (not a hyphen), so the echo should work correctly.
10411   # The option is referenced via a variable to avoid confusing sed.
10412   lt_compile=`echo "$ac_compile" | $SED \
10413   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10414   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10415   -e 's:$: $lt_compiler_flag:'`
10416   (eval echo "\"\$as_me:10416: $lt_compile\"" >&5)
10417   (eval "$lt_compile" 2>conftest.err)
10418   ac_status=$?
10419   cat conftest.err >&5
10420   echo "$as_me:10420: \$? = $ac_status" >&5
10421   if (exit $ac_status) && test -s "$ac_outfile"; then
10422     # The compiler can only warn and ignore the option if not recognized
10423     # So say no if there are warnings other than the usual output.
10424     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10425     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10426     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10427       lt_cv_prog_compiler_rtti_exceptions=yes
10428     fi
10429   fi
10430   $rm conftest*
10431
10432fi
10433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10434$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10435
10436if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10437    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10438else
10439    :
10440fi
10441
10442fi
10443
10444lt_prog_compiler_wl=
10445lt_prog_compiler_pic=
10446lt_prog_compiler_static=
10447
10448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10449$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10450
10451  if test "$GCC" = yes; then
10452    lt_prog_compiler_wl='-Wl,'
10453    lt_prog_compiler_static='-static'
10454
10455    case $host_os in
10456      aix*)
10457      # All AIX code is PIC.
10458      if test "$host_cpu" = ia64; then
10459	# AIX 5 now supports IA64 processor
10460	lt_prog_compiler_static='-Bstatic'
10461      fi
10462      ;;
10463
10464    amigaos*)
10465      # FIXME: we need at least 68020 code to build shared libraries, but
10466      # adding the `-m68020' flag to GCC prevents building anything better,
10467      # like `-m68040'.
10468      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10469      ;;
10470
10471    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10472      # PIC is the default for these OSes.
10473      ;;
10474
10475    mingw* | cygwin* | pw32* | os2*)
10476      # This hack is so that the source file can tell whether it is being
10477      # built for inclusion in a dll (and should export symbols for example).
10478      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10479      # (--disable-auto-import) libraries
10480      lt_prog_compiler_pic='-DDLL_EXPORT'
10481      ;;
10482
10483    darwin* | rhapsody*)
10484      # PIC is the default on this platform
10485      # Common symbols not allowed in MH_DYLIB files
10486      lt_prog_compiler_pic='-fno-common'
10487      ;;
10488
10489    interix[3-9]*)
10490      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10491      # Instead, we relocate shared libraries at runtime.
10492      ;;
10493
10494    msdosdjgpp*)
10495      # Just because we use GCC doesn't mean we suddenly get shared libraries
10496      # on systems that don't support them.
10497      lt_prog_compiler_can_build_shared=no
10498      enable_shared=no
10499      ;;
10500
10501    sysv4*MP*)
10502      if test -d /usr/nec; then
10503	lt_prog_compiler_pic=-Kconform_pic
10504      fi
10505      ;;
10506
10507    hpux*)
10508      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10509      # not for PA HP-UX.
10510      case $host_cpu in
10511      hppa*64*|ia64*)
10512	# +Z the default
10513	;;
10514      *)
10515	lt_prog_compiler_pic='-fPIC'
10516	;;
10517      esac
10518      ;;
10519
10520    *)
10521      lt_prog_compiler_pic='-fPIC'
10522      ;;
10523    esac
10524  else
10525    # PORTME Check for flag to pass linker flags through the system compiler.
10526    case $host_os in
10527    aix*)
10528      lt_prog_compiler_wl='-Wl,'
10529      if test "$host_cpu" = ia64; then
10530	# AIX 5 now supports IA64 processor
10531	lt_prog_compiler_static='-Bstatic'
10532      else
10533	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10534      fi
10535      ;;
10536      darwin*)
10537        # PIC is the default on this platform
10538        # Common symbols not allowed in MH_DYLIB files
10539       case $cc_basename in
10540         xlc*)
10541         lt_prog_compiler_pic='-qnocommon'
10542         lt_prog_compiler_wl='-Wl,'
10543         ;;
10544       esac
10545       ;;
10546
10547    mingw* | cygwin* | pw32* | os2*)
10548      # This hack is so that the source file can tell whether it is being
10549      # built for inclusion in a dll (and should export symbols for example).
10550      lt_prog_compiler_pic='-DDLL_EXPORT'
10551      ;;
10552
10553    hpux9* | hpux10* | hpux11*)
10554      lt_prog_compiler_wl='-Wl,'
10555      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10556      # not for PA HP-UX.
10557      case $host_cpu in
10558      hppa*64*|ia64*)
10559	# +Z the default
10560	;;
10561      *)
10562	lt_prog_compiler_pic='+Z'
10563	;;
10564      esac
10565      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10566      lt_prog_compiler_static='${wl}-a ${wl}archive'
10567      ;;
10568
10569    irix5* | irix6* | nonstopux*)
10570      lt_prog_compiler_wl='-Wl,'
10571      # PIC (with -KPIC) is the default.
10572      lt_prog_compiler_static='-non_shared'
10573      ;;
10574
10575    newsos6)
10576      lt_prog_compiler_pic='-KPIC'
10577      lt_prog_compiler_static='-Bstatic'
10578      ;;
10579
10580    linux* | k*bsd*-gnu)
10581      case $cc_basename in
10582      icc* | ecc*)
10583	lt_prog_compiler_wl='-Wl,'
10584	lt_prog_compiler_pic='-KPIC'
10585	lt_prog_compiler_static='-static'
10586        ;;
10587      pgcc* | pgf77* | pgf90* | pgf95*)
10588        # Portland Group compilers (*not* the Pentium gcc compiler,
10589	# which looks to be a dead project)
10590	lt_prog_compiler_wl='-Wl,'
10591	lt_prog_compiler_pic='-fpic'
10592	lt_prog_compiler_static='-Bstatic'
10593        ;;
10594      ccc*)
10595        lt_prog_compiler_wl='-Wl,'
10596        # All Alpha code is PIC.
10597        lt_prog_compiler_static='-non_shared'
10598        ;;
10599      *)
10600        case `$CC -V 2>&1 | sed 5q` in
10601	*Sun\ C*)
10602	  # Sun C 5.9
10603	  lt_prog_compiler_pic='-KPIC'
10604	  lt_prog_compiler_static='-Bstatic'
10605	  lt_prog_compiler_wl='-Wl,'
10606	  ;;
10607	*Sun\ F*)
10608	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10609	  lt_prog_compiler_pic='-KPIC'
10610	  lt_prog_compiler_static='-Bstatic'
10611	  lt_prog_compiler_wl=''
10612	  ;;
10613	esac
10614	;;
10615      esac
10616      ;;
10617
10618    osf3* | osf4* | osf5*)
10619      lt_prog_compiler_wl='-Wl,'
10620      # All OSF/1 code is PIC.
10621      lt_prog_compiler_static='-non_shared'
10622      ;;
10623
10624    rdos*)
10625      lt_prog_compiler_static='-non_shared'
10626      ;;
10627
10628    solaris*)
10629      lt_prog_compiler_pic='-KPIC'
10630      lt_prog_compiler_static='-Bstatic'
10631      case $cc_basename in
10632      f77* | f90* | f95*)
10633	lt_prog_compiler_wl='-Qoption ld ';;
10634      *)
10635	lt_prog_compiler_wl='-Wl,';;
10636      esac
10637      ;;
10638
10639    sunos4*)
10640      lt_prog_compiler_wl='-Qoption ld '
10641      lt_prog_compiler_pic='-PIC'
10642      lt_prog_compiler_static='-Bstatic'
10643      ;;
10644
10645    sysv4 | sysv4.2uw2* | sysv4.3*)
10646      lt_prog_compiler_wl='-Wl,'
10647      lt_prog_compiler_pic='-KPIC'
10648      lt_prog_compiler_static='-Bstatic'
10649      ;;
10650
10651    sysv4*MP*)
10652      if test -d /usr/nec ;then
10653	lt_prog_compiler_pic='-Kconform_pic'
10654	lt_prog_compiler_static='-Bstatic'
10655      fi
10656      ;;
10657
10658    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10659      lt_prog_compiler_wl='-Wl,'
10660      lt_prog_compiler_pic='-KPIC'
10661      lt_prog_compiler_static='-Bstatic'
10662      ;;
10663
10664    unicos*)
10665      lt_prog_compiler_wl='-Wl,'
10666      lt_prog_compiler_can_build_shared=no
10667      ;;
10668
10669    uts4*)
10670      lt_prog_compiler_pic='-pic'
10671      lt_prog_compiler_static='-Bstatic'
10672      ;;
10673
10674    *)
10675      lt_prog_compiler_can_build_shared=no
10676      ;;
10677    esac
10678  fi
10679
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10681$as_echo "$lt_prog_compiler_pic" >&6; }
10682
10683#
10684# Check to make sure the PIC flag actually works.
10685#
10686if test -n "$lt_prog_compiler_pic"; then
10687
10688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10689$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10690if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10691  $as_echo_n "(cached) " >&6
10692else
10693  lt_cv_prog_compiler_pic_works=no
10694  ac_outfile=conftest.$ac_objext
10695   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10696   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10697   # Insert the option either (1) after the last *FLAGS variable, or
10698   # (2) before a word containing "conftest.", or (3) at the end.
10699   # Note that $ac_compile itself does not contain backslashes and begins
10700   # with a dollar sign (not a hyphen), so the echo should work correctly.
10701   # The option is referenced via a variable to avoid confusing sed.
10702   lt_compile=`echo "$ac_compile" | $SED \
10703   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10704   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10705   -e 's:$: $lt_compiler_flag:'`
10706   (eval echo "\"\$as_me:10706: $lt_compile\"" >&5)
10707   (eval "$lt_compile" 2>conftest.err)
10708   ac_status=$?
10709   cat conftest.err >&5
10710   echo "$as_me:10710: \$? = $ac_status" >&5
10711   if (exit $ac_status) && test -s "$ac_outfile"; then
10712     # The compiler can only warn and ignore the option if not recognized
10713     # So say no if there are warnings other than the usual output.
10714     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10715     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10716     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10717       lt_cv_prog_compiler_pic_works=yes
10718     fi
10719   fi
10720   $rm conftest*
10721
10722fi
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10724$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10725
10726if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10727    case $lt_prog_compiler_pic in
10728     "" | " "*) ;;
10729     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10730     esac
10731else
10732    lt_prog_compiler_pic=
10733     lt_prog_compiler_can_build_shared=no
10734fi
10735
10736fi
10737case $host_os in
10738  # For platforms which do not support PIC, -DPIC is meaningless:
10739  *djgpp*)
10740    lt_prog_compiler_pic=
10741    ;;
10742  *)
10743    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10744    ;;
10745esac
10746
10747#
10748# Check to make sure the static flag actually works.
10749#
10750wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10752$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10753if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10754  $as_echo_n "(cached) " >&6
10755else
10756  lt_cv_prog_compiler_static_works=no
10757   save_LDFLAGS="$LDFLAGS"
10758   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10759   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10760   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10761     # The linker can only warn and ignore the option if not recognized
10762     # So say no if there are warnings
10763     if test -s conftest.err; then
10764       # Append any errors to the config.log.
10765       cat conftest.err 1>&5
10766       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
10767       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10768       if diff conftest.exp conftest.er2 >/dev/null; then
10769         lt_cv_prog_compiler_static_works=yes
10770       fi
10771     else
10772       lt_cv_prog_compiler_static_works=yes
10773     fi
10774   fi
10775   $rm -r conftest*
10776   LDFLAGS="$save_LDFLAGS"
10777
10778fi
10779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10780$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10781
10782if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10783    :
10784else
10785    lt_prog_compiler_static=
10786fi
10787
10788
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10790$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10791if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10792  $as_echo_n "(cached) " >&6
10793else
10794  lt_cv_prog_compiler_c_o=no
10795   $rm -r conftest 2>/dev/null
10796   mkdir conftest
10797   cd conftest
10798   mkdir out
10799   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10800
10801   lt_compiler_flag="-o out/conftest2.$ac_objext"
10802   # Insert the option either (1) after the last *FLAGS variable, or
10803   # (2) before a word containing "conftest.", or (3) at the end.
10804   # Note that $ac_compile itself does not contain backslashes and begins
10805   # with a dollar sign (not a hyphen), so the echo should work correctly.
10806   lt_compile=`echo "$ac_compile" | $SED \
10807   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10808   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10809   -e 's:$: $lt_compiler_flag:'`
10810   (eval echo "\"\$as_me:10810: $lt_compile\"" >&5)
10811   (eval "$lt_compile" 2>out/conftest.err)
10812   ac_status=$?
10813   cat out/conftest.err >&5
10814   echo "$as_me:10814: \$? = $ac_status" >&5
10815   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10816   then
10817     # The compiler can only warn and ignore the option if not recognized
10818     # So say no if there are warnings
10819     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10820     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10821     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10822       lt_cv_prog_compiler_c_o=yes
10823     fi
10824   fi
10825   chmod u+w . 2>&5
10826   $rm conftest*
10827   # SGI C++ compiler will create directory out/ii_files/ for
10828   # template instantiation
10829   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10830   $rm out/* && rmdir out
10831   cd ..
10832   rmdir conftest
10833   $rm conftest*
10834
10835fi
10836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10837$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10838
10839
10840hard_links="nottested"
10841if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10842  # do not overwrite the value of need_locks provided by the user
10843  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10844$as_echo_n "checking if we can lock with hard links... " >&6; }
10845  hard_links=yes
10846  $rm conftest*
10847  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10848  touch conftest.a
10849  ln conftest.a conftest.b 2>&5 || hard_links=no
10850  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10852$as_echo "$hard_links" >&6; }
10853  if test "$hard_links" = no; then
10854    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10855$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10856    need_locks=warn
10857  fi
10858else
10859  need_locks=no
10860fi
10861
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10863$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10864
10865  runpath_var=
10866  allow_undefined_flag=
10867  enable_shared_with_static_runtimes=no
10868  archive_cmds=
10869  archive_expsym_cmds=
10870  old_archive_From_new_cmds=
10871  old_archive_from_expsyms_cmds=
10872  export_dynamic_flag_spec=
10873  whole_archive_flag_spec=
10874  thread_safe_flag_spec=
10875  hardcode_libdir_flag_spec=
10876  hardcode_libdir_flag_spec_ld=
10877  hardcode_libdir_separator=
10878  hardcode_direct=no
10879  hardcode_minus_L=no
10880  hardcode_shlibpath_var=unsupported
10881  link_all_deplibs=unknown
10882  hardcode_automatic=no
10883  module_cmds=
10884  module_expsym_cmds=
10885  always_export_symbols=no
10886  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10887  # include_expsyms should be a list of space-separated symbols to be *always*
10888  # included in the symbol list
10889  include_expsyms=
10890  # exclude_expsyms can be an extended regexp of symbols to exclude
10891  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10892  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10893  # as well as any symbol that contains `d'.
10894  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10895  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10896  # platforms (ab)use it in PIC code, but their linkers get confused if
10897  # the symbol is explicitly referenced.  Since portable code cannot
10898  # rely on this symbol name, it's probably fine to never include it in
10899  # preloaded symbol tables.
10900  # Exclude shared library initialization/finalization symbols.
10901  extract_expsyms_cmds=
10902  # Just being paranoid about ensuring that cc_basename is set.
10903  for cc_temp in $compiler""; do
10904  case $cc_temp in
10905    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10906    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10907    \-*) ;;
10908    *) break;;
10909  esac
10910done
10911cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10912
10913  case $host_os in
10914  cygwin* | mingw* | pw32*)
10915    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10916    # When not using gcc, we currently assume that we are using
10917    # Microsoft Visual C++.
10918    if test "$GCC" != yes; then
10919      with_gnu_ld=no
10920    fi
10921    ;;
10922  interix*)
10923    # we just hope/assume this is gcc and not c89 (= MSVC++)
10924    with_gnu_ld=yes
10925    ;;
10926  openbsd*)
10927    with_gnu_ld=no
10928    ;;
10929  esac
10930
10931  ld_shlibs=yes
10932  if test "$with_gnu_ld" = yes; then
10933    # If archive_cmds runs LD, not CC, wlarc should be empty
10934    wlarc='${wl}'
10935
10936    # Set some defaults for GNU ld with shared library support. These
10937    # are reset later if shared libraries are not supported. Putting them
10938    # here allows them to be overridden if necessary.
10939    runpath_var=LD_RUN_PATH
10940    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10941    export_dynamic_flag_spec='${wl}--export-dynamic'
10942    # ancient GNU ld didn't support --whole-archive et. al.
10943    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10944	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10945      else
10946  	whole_archive_flag_spec=
10947    fi
10948    supports_anon_versioning=no
10949    case `$LD -v 2>/dev/null` in
10950      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10951      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10952      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10953      *\ 2.11.*) ;; # other 2.11 versions
10954      *) supports_anon_versioning=yes ;;
10955    esac
10956
10957    # See if GNU ld supports shared libraries.
10958    case $host_os in
10959    aix[3-9]*)
10960      # On AIX/PPC, the GNU linker is very broken
10961      if test "$host_cpu" != ia64; then
10962	ld_shlibs=no
10963	cat <<EOF 1>&2
10964
10965*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10966*** to be unable to reliably create shared libraries on AIX.
10967*** Therefore, libtool is disabling shared libraries support.  If you
10968*** really care for shared libraries, you may want to modify your PATH
10969*** so that a non-GNU linker is found, and then restart.
10970
10971EOF
10972      fi
10973      ;;
10974
10975    amigaos*)
10976      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)'
10977      hardcode_libdir_flag_spec='-L$libdir'
10978      hardcode_minus_L=yes
10979
10980      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10981      # that the semantics of dynamic libraries on AmigaOS, at least up
10982      # to version 4, is to share data among multiple programs linked
10983      # with the same dynamic library.  Since this doesn't match the
10984      # behavior of shared libraries on other platforms, we can't use
10985      # them.
10986      ld_shlibs=no
10987      ;;
10988
10989    beos*)
10990      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10991	allow_undefined_flag=unsupported
10992	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10993	# support --undefined.  This deserves some investigation.  FIXME
10994	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10995      else
10996	ld_shlibs=no
10997      fi
10998      ;;
10999
11000    cygwin* | mingw* | pw32*)
11001      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11002      # as there is no search path for DLLs.
11003      hardcode_libdir_flag_spec='-L$libdir'
11004      allow_undefined_flag=unsupported
11005      always_export_symbols=no
11006      enable_shared_with_static_runtimes=yes
11007      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11008
11009      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11010        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11011	# If the export-symbols file already is a .def file (1st line
11012	# is EXPORTS), use it as is; otherwise, prepend...
11013	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11014	  cp $export_symbols $output_objdir/$soname.def;
11015	else
11016	  echo EXPORTS > $output_objdir/$soname.def;
11017	  cat $export_symbols >> $output_objdir/$soname.def;
11018	fi~
11019	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11020      else
11021	ld_shlibs=no
11022      fi
11023      ;;
11024
11025    interix[3-9]*)
11026      hardcode_direct=no
11027      hardcode_shlibpath_var=no
11028      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11029      export_dynamic_flag_spec='${wl}-E'
11030      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11031      # Instead, shared libraries are loaded at an image base (0x10000000 by
11032      # default) and relocated if they conflict, which is a slow very memory
11033      # consuming and fragmenting process.  To avoid this, we pick a random,
11034      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11035      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11036      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11037      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'
11038      ;;
11039
11040    gnu* | linux* | k*bsd*-gnu)
11041      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11042	tmp_addflag=
11043	case $cc_basename,$host_cpu in
11044	pgcc*)				# Portland Group C compiler
11045	  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'
11046	  tmp_addflag=' $pic_flag'
11047	  ;;
11048	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11049	  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'
11050	  tmp_addflag=' $pic_flag -Mnomain' ;;
11051	ecc*,ia64* | icc*,ia64*)		# Intel C compiler on ia64
11052	  tmp_addflag=' -i_dynamic' ;;
11053	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11054	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11055	ifc* | ifort*)			# Intel Fortran compiler
11056	  tmp_addflag=' -nofor_main' ;;
11057	esac
11058	case `$CC -V 2>&1 | sed 5q` in
11059	*Sun\ C*)			# Sun C 5.9
11060	  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'
11061	  tmp_sharedflag='-G' ;;
11062	*Sun\ F*)			# Sun Fortran 8.3
11063	  tmp_sharedflag='-G' ;;
11064	*)
11065	  tmp_sharedflag='-shared' ;;
11066	esac
11067	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068
11069	if test $supports_anon_versioning = yes; then
11070	  archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
11071  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11072  $echo "local: *; };" >> $output_objdir/$libname.ver~
11073	  $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11074	fi
11075	link_all_deplibs=no
11076      else
11077	ld_shlibs=no
11078      fi
11079      ;;
11080
11081    netbsd* | netbsdelf*-gnu)
11082      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11083	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11084	wlarc=
11085      else
11086	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11087	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11088      fi
11089      ;;
11090
11091    solaris*)
11092      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
11093	ld_shlibs=no
11094	cat <<EOF 1>&2
11095
11096*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11097*** create shared libraries on Solaris systems.  Therefore, libtool
11098*** is disabling shared libraries support.  We urge you to upgrade GNU
11099*** binutils to release 2.9.1 or newer.  Another option is to modify
11100*** your PATH or compiler configuration so that the native linker is
11101*** used, and then restart.
11102
11103EOF
11104      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11105	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11106	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11107      else
11108	ld_shlibs=no
11109      fi
11110      ;;
11111
11112    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11113      case `$LD -v 2>&1` in
11114        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11115	ld_shlibs=no
11116	cat <<_LT_EOF 1>&2
11117
11118*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11119*** reliably create shared libraries on SCO systems.  Therefore, libtool
11120*** is disabling shared libraries support.  We urge you to upgrade GNU
11121*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11122*** your PATH or compiler configuration so that the native linker is
11123*** used, and then restart.
11124
11125_LT_EOF
11126	;;
11127	*)
11128	  if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11129	    hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
11130	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
11131	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
11132	  else
11133	    ld_shlibs=no
11134	  fi
11135	;;
11136      esac
11137      ;;
11138
11139    sunos4*)
11140      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11141      wlarc=
11142      hardcode_direct=yes
11143      hardcode_shlibpath_var=no
11144      ;;
11145
11146    *)
11147      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11148	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11149	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11150      else
11151	ld_shlibs=no
11152      fi
11153      ;;
11154    esac
11155
11156    if test "$ld_shlibs" = no; then
11157      runpath_var=
11158      hardcode_libdir_flag_spec=
11159      export_dynamic_flag_spec=
11160      whole_archive_flag_spec=
11161    fi
11162  else
11163    # PORTME fill in a description of your system's linker (not GNU ld)
11164    case $host_os in
11165    aix3*)
11166      allow_undefined_flag=unsupported
11167      always_export_symbols=yes
11168      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'
11169      # Note: this linker hardcodes the directories in LIBPATH if there
11170      # are no directories specified by -L.
11171      hardcode_minus_L=yes
11172      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11173	# Neither direct hardcoding nor static linking is supported with a
11174	# broken collect2.
11175	hardcode_direct=unsupported
11176      fi
11177      ;;
11178
11179    aix[4-9]*)
11180      if test "$host_cpu" = ia64; then
11181	# On IA64, the linker does run time linking by default, so we don't
11182	# have to do anything special.
11183	aix_use_runtimelinking=no
11184	exp_sym_flag='-Bexport'
11185	no_entry_flag=""
11186      else
11187	# If we're using GNU nm, then we don't want the "-C" option.
11188	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11189	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11190	  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'
11191	else
11192	  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'
11193	fi
11194	aix_use_runtimelinking=no
11195
11196	# Test if we are trying to use run time linking or normal
11197	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11198	# need to do runtime linking.
11199	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11200	  for ld_flag in $LDFLAGS; do
11201  	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11202  	    aix_use_runtimelinking=yes
11203  	    break
11204  	  fi
11205	  done
11206	  ;;
11207	esac
11208
11209	exp_sym_flag='-bexport'
11210	no_entry_flag='-bnoentry'
11211      fi
11212
11213      # When large executables or shared objects are built, AIX ld can
11214      # have problems creating the table of contents.  If linking a library
11215      # or program results in "error TOC overflow" add -mminimal-toc to
11216      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11217      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11218
11219      archive_cmds=''
11220      hardcode_direct=yes
11221      hardcode_libdir_separator=':'
11222      link_all_deplibs=yes
11223
11224      if test "$GCC" = yes; then
11225	case $host_os in aix4.[012]|aix4.[012].*)
11226	# We only want to do this on AIX 4.2 and lower, the check
11227	# below for broken collect2 doesn't work under 4.3+
11228	  collect2name=`${CC} -print-prog-name=collect2`
11229	  if test -f "$collect2name" && \
11230  	   strings "$collect2name" | grep resolve_lib_name >/dev/null
11231	  then
11232  	  # We have reworked collect2
11233  	  :
11234	  else
11235  	  # We have old collect2
11236  	  hardcode_direct=unsupported
11237  	  # It fails to find uninstalled libraries when the uninstalled
11238  	  # path is not listed in the libpath.  Setting hardcode_minus_L
11239  	  # to unsupported forces relinking
11240  	  hardcode_minus_L=yes
11241  	  hardcode_libdir_flag_spec='-L$libdir'
11242  	  hardcode_libdir_separator=
11243	  fi
11244	  ;;
11245	esac
11246	shared_flag='-shared'
11247	if test "$aix_use_runtimelinking" = yes; then
11248	  shared_flag="$shared_flag "'${wl}-G'
11249	fi
11250      else
11251	# not using gcc
11252	if test "$host_cpu" = ia64; then
11253  	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11254  	# chokes on -Wl,-G. The following line is correct:
11255	  shared_flag='-G'
11256	else
11257	  if test "$aix_use_runtimelinking" = yes; then
11258	    shared_flag='${wl}-G'
11259	  else
11260	    shared_flag='${wl}-bM:SRE'
11261	  fi
11262	fi
11263      fi
11264
11265      # It seems that -bexpall does not export symbols beginning with
11266      # underscore (_), so it is better to generate a list of symbols to export.
11267      always_export_symbols=yes
11268      if test "$aix_use_runtimelinking" = yes; then
11269	# Warning - without using the other runtime loading flags (-brtl),
11270	# -berok will link without error, but may produce a broken library.
11271	allow_undefined_flag='-berok'
11272       # Determine the default libpath from the value encoded in an empty executable.
11273       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11274/* end confdefs.h.  */
11275
11276int
11277main ()
11278{
11279
11280  ;
11281  return 0;
11282}
11283_ACEOF
11284if ac_fn_c_try_link "$LINENO"; then :
11285
11286lt_aix_libpath_sed='
11287    /Import File Strings/,/^$/ {
11288	/^0/ {
11289	    s/^0  *\(.*\)$/\1/
11290	    p
11291	}
11292    }'
11293aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11294# Check for a 64-bit object if we didn't find anything.
11295if test -z "$aix_libpath"; then
11296  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11297fi
11298fi
11299rm -f core conftest.err conftest.$ac_objext \
11300    conftest$ac_exeext conftest.$ac_ext
11301if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11302
11303       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11304	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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11305       else
11306	if test "$host_cpu" = ia64; then
11307	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11308	  allow_undefined_flag="-z nodefs"
11309	  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"
11310	else
11311	 # Determine the default libpath from the value encoded in an empty executable.
11312	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11313/* end confdefs.h.  */
11314
11315int
11316main ()
11317{
11318
11319  ;
11320  return 0;
11321}
11322_ACEOF
11323if ac_fn_c_try_link "$LINENO"; then :
11324
11325lt_aix_libpath_sed='
11326    /Import File Strings/,/^$/ {
11327	/^0/ {
11328	    s/^0  *\(.*\)$/\1/
11329	    p
11330	}
11331    }'
11332aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11333# Check for a 64-bit object if we didn't find anything.
11334if test -z "$aix_libpath"; then
11335  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11336fi
11337fi
11338rm -f core conftest.err conftest.$ac_objext \
11339    conftest$ac_exeext conftest.$ac_ext
11340if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11341
11342	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11343	  # Warning - without using the other run time loading flags,
11344	  # -berok will link without error, but may produce a broken library.
11345	  no_undefined_flag=' ${wl}-bernotok'
11346	  allow_undefined_flag=' ${wl}-berok'
11347	  # Exported symbols can be pulled into shared objects from archives
11348	  whole_archive_flag_spec='$convenience'
11349	  archive_cmds_need_lc=yes
11350	  # This is similar to how AIX traditionally builds its shared libraries.
11351	  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'
11352	fi
11353      fi
11354      ;;
11355
11356    amigaos*)
11357      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)'
11358      hardcode_libdir_flag_spec='-L$libdir'
11359      hardcode_minus_L=yes
11360      # see comment about different semantics on the GNU ld section
11361      ld_shlibs=no
11362      ;;
11363
11364    bsdi[45]*)
11365      export_dynamic_flag_spec=-rdynamic
11366      ;;
11367
11368    cygwin* | mingw* | pw32*)
11369      # When not using gcc, we currently assume that we are using
11370      # Microsoft Visual C++.
11371      # hardcode_libdir_flag_spec is actually meaningless, as there is
11372      # no search path for DLLs.
11373      hardcode_libdir_flag_spec=' '
11374      allow_undefined_flag=unsupported
11375      # Tell ltmain to make .lib files, not .a files.
11376      libext=lib
11377      # Tell ltmain to make .dll files, not .so files.
11378      shrext_cmds=".dll"
11379      # FIXME: Setting linknames here is a bad hack.
11380      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11381      # The linker will automatically build a .lib file if we build a DLL.
11382      old_archive_From_new_cmds='true'
11383      # FIXME: Should let the user specify the lib program.
11384      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11385      fix_srcfile_path='`cygpath -w "$srcfile"`'
11386      enable_shared_with_static_runtimes=yes
11387      ;;
11388
11389    darwin* | rhapsody*)
11390      case $host_os in
11391        rhapsody* | darwin1.[012])
11392         allow_undefined_flag='${wl}-undefined ${wl}suppress'
11393         ;;
11394       *) # Darwin 1.3 on
11395         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11396           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11397         else
11398           case ${MACOSX_DEPLOYMENT_TARGET} in
11399             10.[012])
11400               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11401               ;;
11402             10.*)
11403               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
11404               ;;
11405           esac
11406         fi
11407         ;;
11408      esac
11409      archive_cmds_need_lc=no
11410      hardcode_direct=no
11411      hardcode_automatic=yes
11412      hardcode_shlibpath_var=unsupported
11413      whole_archive_flag_spec=''
11414      link_all_deplibs=yes
11415    if test "$GCC" = yes ; then
11416    	output_verbose_link_cmd='echo'
11417        archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11418        module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11419        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}"
11420        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}"
11421    else
11422      case $cc_basename in
11423        xlc*)
11424         output_verbose_link_cmd='echo'
11425         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11426         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11427          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11428         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11429          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11430          ;;
11431       *)
11432         ld_shlibs=no
11433          ;;
11434      esac
11435    fi
11436      ;;
11437
11438    dgux*)
11439      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440      hardcode_libdir_flag_spec='-L$libdir'
11441      hardcode_shlibpath_var=no
11442      ;;
11443
11444    freebsd1*)
11445      ld_shlibs=no
11446      ;;
11447
11448    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11449    # support.  Future versions do this automatically, but an explicit c++rt0.o
11450    # does not break anything, and helps significantly (at the cost of a little
11451    # extra space).
11452    freebsd2.2*)
11453      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11454      hardcode_libdir_flag_spec='-R$libdir'
11455      hardcode_direct=yes
11456      hardcode_shlibpath_var=no
11457      ;;
11458
11459    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11460    freebsd2*)
11461      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11462      hardcode_direct=yes
11463      hardcode_minus_L=yes
11464      hardcode_shlibpath_var=no
11465      ;;
11466
11467    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11468    freebsd* | dragonfly*)
11469      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11470      hardcode_libdir_flag_spec='-R$libdir'
11471      hardcode_direct=yes
11472      hardcode_shlibpath_var=no
11473      ;;
11474
11475    hpux9*)
11476      if test "$GCC" = yes; then
11477	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'
11478      else
11479	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'
11480      fi
11481      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11482      hardcode_libdir_separator=:
11483      hardcode_direct=yes
11484
11485      # hardcode_minus_L: Not really in the search PATH,
11486      # but as the default location of the library.
11487      hardcode_minus_L=yes
11488      export_dynamic_flag_spec='${wl}-E'
11489      ;;
11490
11491    hpux10*)
11492      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11493	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11494      else
11495	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11496      fi
11497      if test "$with_gnu_ld" = no; then
11498	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11499	hardcode_libdir_separator=:
11500
11501	hardcode_direct=yes
11502	export_dynamic_flag_spec='${wl}-E'
11503
11504	# hardcode_minus_L: Not really in the search PATH,
11505	# but as the default location of the library.
11506	hardcode_minus_L=yes
11507      fi
11508      ;;
11509
11510    hpux11*)
11511      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11512	case $host_cpu in
11513	hppa*64*)
11514	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11515	  ;;
11516	ia64*)
11517	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11518	  ;;
11519	*)
11520	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11521	  ;;
11522	esac
11523      else
11524	case $host_cpu in
11525	hppa*64*)
11526	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11527	  ;;
11528	ia64*)
11529	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11530	  ;;
11531	*)
11532	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11533	  ;;
11534	esac
11535      fi
11536      if test "$with_gnu_ld" = no; then
11537	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11538	hardcode_libdir_separator=:
11539
11540	case $host_cpu in
11541	hppa*64*|ia64*)
11542	  hardcode_libdir_flag_spec_ld='+b $libdir'
11543	  hardcode_direct=no
11544	  hardcode_shlibpath_var=no
11545	  ;;
11546	*)
11547	  hardcode_direct=yes
11548	  export_dynamic_flag_spec='${wl}-E'
11549
11550	  # hardcode_minus_L: Not really in the search PATH,
11551	  # but as the default location of the library.
11552	  hardcode_minus_L=yes
11553	  ;;
11554	esac
11555      fi
11556      ;;
11557
11558    irix5* | irix6* | nonstopux*)
11559      if test "$GCC" = yes; then
11560	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11561      else
11562	archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11563	hardcode_libdir_flag_spec_ld='-rpath $libdir'
11564      fi
11565      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11566      hardcode_libdir_separator=:
11567      link_all_deplibs=yes
11568      ;;
11569
11570    netbsd* | netbsdelf*-gnu)
11571      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11572	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11573      else
11574	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11575      fi
11576      hardcode_libdir_flag_spec='-R$libdir'
11577      hardcode_direct=yes
11578      hardcode_shlibpath_var=no
11579      ;;
11580
11581    newsos6)
11582      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11583      hardcode_direct=yes
11584      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11585      hardcode_libdir_separator=:
11586      hardcode_shlibpath_var=no
11587      ;;
11588
11589    openbsd*)
11590      if test -f /usr/libexec/ld.so; then
11591	hardcode_direct=yes
11592	hardcode_shlibpath_var=no
11593	if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11594	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11595	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11596	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11597	  export_dynamic_flag_spec='${wl}-E'
11598	else
11599	  case $host_os in
11600	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11601	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11602	     hardcode_libdir_flag_spec='-R$libdir'
11603	     ;;
11604	   *)
11605	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11606	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11607	     ;;
11608	  esac
11609        fi
11610      else
11611	ld_shlibs=no
11612      fi
11613      ;;
11614
11615    os2*)
11616      hardcode_libdir_flag_spec='-L$libdir'
11617      hardcode_minus_L=yes
11618      allow_undefined_flag=unsupported
11619      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'
11620      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11621      ;;
11622
11623    osf3*)
11624      if test "$GCC" = yes; then
11625	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11626	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11627      else
11628	allow_undefined_flag=' -expect_unresolved \*'
11629	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11630      fi
11631      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11632      hardcode_libdir_separator=:
11633      ;;
11634
11635    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11636      if test "$GCC" = yes; then
11637	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11638	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11639	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11640      else
11641	allow_undefined_flag=' -expect_unresolved \*'
11642	archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11643	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11644	$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
11645
11646	# Both c and cxx compiler support -rpath directly
11647	hardcode_libdir_flag_spec='-rpath $libdir'
11648      fi
11649      hardcode_libdir_separator=:
11650      ;;
11651
11652    solaris*)
11653      no_undefined_flag=' -z text'
11654      if test "$GCC" = yes; then
11655	wlarc='${wl}'
11656	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11657	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11658	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
11659      else
11660	wlarc=''
11661	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11662	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11663  	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11664      fi
11665      hardcode_libdir_flag_spec='-R$libdir'
11666      hardcode_shlibpath_var=no
11667      case $host_os in
11668      solaris2.[0-5] | solaris2.[0-5].*) ;;
11669      *)
11670	# The compiler driver will combine and reorder linker options,
11671	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11672	# but is careful enough not to reorder.
11673 	# Supported since Solaris 2.6 (maybe 2.5.1?)
11674	if test "$GCC" = yes; then
11675	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11676	else
11677	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11678	fi
11679	;;
11680      esac
11681      link_all_deplibs=yes
11682      ;;
11683
11684    sunos4*)
11685      if test "x$host_vendor" = xsequent; then
11686	# Use $CC to link under sequent, because it throws in some extra .o
11687	# files that make .init and .fini sections work.
11688	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11689      else
11690	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11691      fi
11692      hardcode_libdir_flag_spec='-L$libdir'
11693      hardcode_direct=yes
11694      hardcode_minus_L=yes
11695      hardcode_shlibpath_var=no
11696      ;;
11697
11698    sysv4)
11699      case $host_vendor in
11700	sni)
11701	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11702	  hardcode_direct=yes # is this really true???
11703	;;
11704	siemens)
11705	  ## LD is ld it makes a PLAMLIB
11706	  ## CC just makes a GrossModule.
11707	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11708	  reload_cmds='$CC -r -o $output$reload_objs'
11709	  hardcode_direct=no
11710        ;;
11711	motorola)
11712	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11713	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11714	;;
11715      esac
11716      runpath_var='LD_RUN_PATH'
11717      hardcode_shlibpath_var=no
11718      ;;
11719
11720    sysv4.3*)
11721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11722      hardcode_shlibpath_var=no
11723      export_dynamic_flag_spec='-Bexport'
11724      ;;
11725
11726    sysv4*MP*)
11727      if test -d /usr/nec; then
11728	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11729	hardcode_shlibpath_var=no
11730	runpath_var=LD_RUN_PATH
11731	hardcode_runpath_var=yes
11732	ld_shlibs=yes
11733      fi
11734      ;;
11735
11736    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11737      no_undefined_flag='${wl}-z,text'
11738      archive_cmds_need_lc=no
11739      hardcode_shlibpath_var=no
11740      runpath_var='LD_RUN_PATH'
11741
11742      if test "$GCC" = yes; then
11743	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11744	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11745      else
11746	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11747	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11748      fi
11749      ;;
11750
11751    sysv5* | sco3.2v5* | sco5v6*)
11752      # Note: We can NOT use -z defs as we might desire, because we do not
11753      # link with -lc, and that would cause any symbols used from libc to
11754      # always be unresolved, which means just about no library would
11755      # ever link correctly.  If we're not using GNU ld we use -z text
11756      # though, which does catch some bad symbols but isn't as heavy-handed
11757      # as -z defs.
11758      no_undefined_flag='${wl}-z,text'
11759      allow_undefined_flag='${wl}-z,nodefs'
11760      archive_cmds_need_lc=no
11761      hardcode_shlibpath_var=no
11762      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11763      hardcode_libdir_separator=':'
11764      link_all_deplibs=yes
11765      export_dynamic_flag_spec='${wl}-Bexport'
11766      runpath_var='LD_RUN_PATH'
11767
11768      if test "$GCC" = yes; then
11769	archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11770	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11771      else
11772	archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11773	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11774      fi
11775      ;;
11776
11777    uts4*)
11778      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11779      hardcode_libdir_flag_spec='-L$libdir'
11780      hardcode_shlibpath_var=no
11781      ;;
11782
11783    *)
11784      ld_shlibs=no
11785      ;;
11786    esac
11787  fi
11788
11789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11790$as_echo "$ld_shlibs" >&6; }
11791test "$ld_shlibs" = no && can_build_shared=no
11792
11793#
11794# Do we need to explicitly link libc?
11795#
11796case "x$archive_cmds_need_lc" in
11797x|xyes)
11798  # Assume -lc should be added
11799  archive_cmds_need_lc=yes
11800
11801  if test "$enable_shared" = yes && test "$GCC" = yes; then
11802    case $archive_cmds in
11803    *'~'*)
11804      # FIXME: we may have to deal with multi-command sequences.
11805      ;;
11806    '$CC '*)
11807      # Test whether the compiler implicitly links with -lc since on some
11808      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11809      # to ld, don't add -lc before -lgcc.
11810      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11811$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11812      $rm conftest*
11813      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11814
11815      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11816  (eval $ac_compile) 2>&5
11817  ac_status=$?
11818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819  test $ac_status = 0; } 2>conftest.err; then
11820        soname=conftest
11821        lib=conftest
11822        libobjs=conftest.$ac_objext
11823        deplibs=
11824        wl=$lt_prog_compiler_wl
11825	pic_flag=$lt_prog_compiler_pic
11826        compiler_flags=-v
11827        linker_flags=-v
11828        verstring=
11829        output_objdir=.
11830        libname=conftest
11831        lt_save_allow_undefined_flag=$allow_undefined_flag
11832        allow_undefined_flag=
11833        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11834  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11835  ac_status=$?
11836  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11837  test $ac_status = 0; }
11838        then
11839	  archive_cmds_need_lc=no
11840        else
11841	  archive_cmds_need_lc=yes
11842        fi
11843        allow_undefined_flag=$lt_save_allow_undefined_flag
11844      else
11845        cat conftest.err 1>&5
11846      fi
11847      $rm conftest*
11848      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11849$as_echo "$archive_cmds_need_lc" >&6; }
11850      ;;
11851    esac
11852  fi
11853  ;;
11854esac
11855
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11857$as_echo_n "checking dynamic linker characteristics... " >&6; }
11858library_names_spec=
11859libname_spec='lib$name'
11860soname_spec=
11861shrext_cmds=".so"
11862postinstall_cmds=
11863postuninstall_cmds=
11864finish_cmds=
11865finish_eval=
11866shlibpath_var=
11867shlibpath_overrides_runpath=unknown
11868version_type=none
11869dynamic_linker="$host_os ld.so"
11870sys_lib_dlsearch_path_spec="/lib /usr/lib"
11871
11872if test "$GCC" = yes; then
11873  case $host_os in
11874    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11875    *) lt_awk_arg="/^libraries:/" ;;
11876  esac
11877  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11878  if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
11879    # if the path contains ";" then we assume it to be the separator
11880    # otherwise default to the standard path separator (i.e. ":") - it is
11881    # assumed that no part of a normal pathname contains ";" but that should
11882    # okay in the real world where ";" in dirpaths is itself problematic.
11883    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11884  else
11885    lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11886  fi
11887  # Ok, now we have the path, separated by spaces, we can step through it
11888  # and add multilib dir if necessary.
11889  lt_tmp_lt_search_path_spec=
11890  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11891  for lt_sys_path in $lt_search_path_spec; do
11892    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11893      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11894    else
11895      test -d "$lt_sys_path" && \
11896	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11897    fi
11898  done
11899  lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
11900BEGIN {RS=" "; FS="/|\n";} {
11901  lt_foo="";
11902  lt_count=0;
11903  for (lt_i = NF; lt_i > 0; lt_i--) {
11904    if ($lt_i != "" && $lt_i != ".") {
11905      if ($lt_i == "..") {
11906        lt_count++;
11907      } else {
11908        if (lt_count == 0) {
11909          lt_foo="/" $lt_i lt_foo;
11910        } else {
11911          lt_count--;
11912        }
11913      }
11914    }
11915  }
11916  if (lt_foo != "") { lt_freq[lt_foo]++; }
11917  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11918}'`
11919  sys_lib_search_path_spec=`echo $lt_search_path_spec`
11920else
11921  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11922fi
11923need_lib_prefix=unknown
11924hardcode_into_libs=no
11925
11926# when you set need_version to no, make sure it does not cause -set_version
11927# flags to be left without arguments
11928need_version=unknown
11929
11930case $host_os in
11931aix3*)
11932  version_type=linux
11933  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11934  shlibpath_var=LIBPATH
11935
11936  # AIX 3 has no versioning support, so we append a major version to the name.
11937  soname_spec='${libname}${release}${shared_ext}$major'
11938  ;;
11939
11940aix[4-9]*)
11941  version_type=linux
11942  need_lib_prefix=no
11943  need_version=no
11944  hardcode_into_libs=yes
11945  if test "$host_cpu" = ia64; then
11946    # AIX 5 supports IA64
11947    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11948    shlibpath_var=LD_LIBRARY_PATH
11949  else
11950    # With GCC up to 2.95.x, collect2 would create an import file
11951    # for dependence libraries.  The import file would start with
11952    # the line `#! .'.  This would cause the generated library to
11953    # depend on `.', always an invalid library.  This was fixed in
11954    # development snapshots of GCC prior to 3.0.
11955    case $host_os in
11956      aix4 | aix4.[01] | aix4.[01].*)
11957      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11958	   echo ' yes '
11959	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11960	:
11961      else
11962	can_build_shared=no
11963      fi
11964      ;;
11965    esac
11966    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11967    # soname into executable. Probably we can add versioning support to
11968    # collect2, so additional links can be useful in future.
11969    if test "$aix_use_runtimelinking" = yes; then
11970      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11971      # instead of lib<name>.a to let people know that these are not
11972      # typical AIX shared libraries.
11973      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11974    else
11975      # We preserve .a as extension for shared libraries through AIX4.2
11976      # and later when we are not doing run time linking.
11977      library_names_spec='${libname}${release}.a $libname.a'
11978      soname_spec='${libname}${release}${shared_ext}$major'
11979    fi
11980    shlibpath_var=LIBPATH
11981  fi
11982  ;;
11983
11984amigaos*)
11985  library_names_spec='$libname.ixlibrary $libname.a'
11986  # Create ${libname}_ixlibrary.a entries in /sys/libs.
11987  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'
11988  ;;
11989
11990beos*)
11991  library_names_spec='${libname}${shared_ext}'
11992  dynamic_linker="$host_os ld.so"
11993  shlibpath_var=LIBRARY_PATH
11994  ;;
11995
11996bsdi[45]*)
11997  version_type=linux
11998  need_version=no
11999  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12000  soname_spec='${libname}${release}${shared_ext}$major'
12001  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12002  shlibpath_var=LD_LIBRARY_PATH
12003  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12004  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12005  # the default ld.so.conf also contains /usr/contrib/lib and
12006  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12007  # libtool to hard-code these into programs
12008  ;;
12009
12010cygwin* | mingw* | pw32*)
12011  version_type=windows
12012  shrext_cmds=".dll"
12013  need_version=no
12014  need_lib_prefix=no
12015
12016  case $GCC,$host_os in
12017  yes,cygwin* | yes,mingw* | yes,pw32*)
12018    library_names_spec='$libname.dll.a'
12019    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12020    postinstall_cmds='base_file=`basename \${file}`~
12021      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12022      dldir=$destdir/`dirname \$dlpath`~
12023      test -d \$dldir || mkdir -p \$dldir~
12024      $install_prog $dir/$dlname \$dldir/$dlname~
12025      chmod a+x \$dldir/$dlname'
12026    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12027      dlpath=$dir/\$dldll~
12028       $rm \$dlpath'
12029    shlibpath_overrides_runpath=yes
12030
12031    case $host_os in
12032    cygwin*)
12033      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12034      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12035      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12036      ;;
12037    mingw*)
12038      # MinGW DLLs use traditional 'lib' prefix
12039      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12040      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12041      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12042        # It is most probably a Windows format PATH printed by
12043        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12044        # path with ; separators, and with drive letters. We can handle the
12045        # drive letters (cygwin fileutils understands them), so leave them,
12046        # especially as we might pass files found there to a mingw objdump,
12047        # which wouldn't understand a cygwinified path. Ahh.
12048        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12049      else
12050        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12051      fi
12052      ;;
12053    pw32*)
12054      # pw32 DLLs use 'pw' prefix rather than 'lib'
12055      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12056      ;;
12057    esac
12058    ;;
12059
12060  *)
12061    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12062    ;;
12063  esac
12064  dynamic_linker='Win32 ld.exe'
12065  # FIXME: first we should search . and the directory the executable is in
12066  shlibpath_var=PATH
12067  ;;
12068
12069darwin* | rhapsody*)
12070  dynamic_linker="$host_os dyld"
12071  version_type=darwin
12072  need_lib_prefix=no
12073  need_version=no
12074  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12075  soname_spec='${libname}${release}${major}$shared_ext'
12076  shlibpath_overrides_runpath=yes
12077  shlibpath_var=DYLD_LIBRARY_PATH
12078  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12079
12080  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12081  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12082  ;;
12083
12084dgux*)
12085  version_type=linux
12086  need_lib_prefix=no
12087  need_version=no
12088  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12089  soname_spec='${libname}${release}${shared_ext}$major'
12090  shlibpath_var=LD_LIBRARY_PATH
12091  ;;
12092
12093freebsd1*)
12094  dynamic_linker=no
12095  ;;
12096
12097freebsd* | dragonfly*)
12098  # DragonFly does not have aout.  When/if they implement a new
12099  # versioning mechanism, adjust this.
12100  if test -x /usr/bin/objformat; then
12101    objformat=`/usr/bin/objformat`
12102  else
12103    case $host_os in
12104    freebsd[123]*) objformat=aout ;;
12105    *) objformat=elf ;;
12106    esac
12107  fi
12108  version_type=freebsd-$objformat
12109  case $version_type in
12110    freebsd-elf*)
12111      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12112      need_version=no
12113      need_lib_prefix=no
12114      ;;
12115    freebsd-*)
12116      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12117      need_version=yes
12118      ;;
12119  esac
12120  shlibpath_var=LD_LIBRARY_PATH
12121  case $host_os in
12122  freebsd2*)
12123    shlibpath_overrides_runpath=yes
12124    ;;
12125  freebsd3.[01]* | freebsdelf3.[01]*)
12126    shlibpath_overrides_runpath=yes
12127    hardcode_into_libs=yes
12128    ;;
12129  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12130  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12131    shlibpath_overrides_runpath=no
12132    hardcode_into_libs=yes
12133    ;;
12134  *) # from 4.6 on, and DragonFly
12135    shlibpath_overrides_runpath=yes
12136    hardcode_into_libs=yes
12137    ;;
12138  esac
12139  ;;
12140
12141gnu*)
12142  version_type=linux
12143  need_lib_prefix=no
12144  need_version=no
12145  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12146  soname_spec='${libname}${release}${shared_ext}$major'
12147  shlibpath_var=LD_LIBRARY_PATH
12148  hardcode_into_libs=yes
12149  ;;
12150
12151hpux9* | hpux10* | hpux11*)
12152  # Give a soname corresponding to the major version so that dld.sl refuses to
12153  # link against other versions.
12154  version_type=sunos
12155  need_lib_prefix=no
12156  need_version=no
12157  case $host_cpu in
12158  ia64*)
12159    shrext_cmds='.so'
12160    hardcode_into_libs=yes
12161    dynamic_linker="$host_os dld.so"
12162    shlibpath_var=LD_LIBRARY_PATH
12163    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12164    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165    soname_spec='${libname}${release}${shared_ext}$major'
12166    if test "X$HPUX_IA64_MODE" = X32; then
12167      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12168    else
12169      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12170    fi
12171    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12172    ;;
12173   hppa*64*)
12174     shrext_cmds='.sl'
12175     hardcode_into_libs=yes
12176     dynamic_linker="$host_os dld.sl"
12177     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12178     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180     soname_spec='${libname}${release}${shared_ext}$major'
12181     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12182     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12183     ;;
12184   *)
12185    shrext_cmds='.sl'
12186    dynamic_linker="$host_os dld.sl"
12187    shlibpath_var=SHLIB_PATH
12188    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12189    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190    soname_spec='${libname}${release}${shared_ext}$major'
12191    ;;
12192  esac
12193  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12194  postinstall_cmds='chmod 555 $lib'
12195  ;;
12196
12197interix[3-9]*)
12198  version_type=linux
12199  need_lib_prefix=no
12200  need_version=no
12201  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12202  soname_spec='${libname}${release}${shared_ext}$major'
12203  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12204  shlibpath_var=LD_LIBRARY_PATH
12205  shlibpath_overrides_runpath=no
12206  hardcode_into_libs=yes
12207  ;;
12208
12209irix5* | irix6* | nonstopux*)
12210  case $host_os in
12211    nonstopux*) version_type=nonstopux ;;
12212    *)
12213	if test "$lt_cv_prog_gnu_ld" = yes; then
12214		version_type=linux
12215	else
12216		version_type=irix
12217	fi ;;
12218  esac
12219  need_lib_prefix=no
12220  need_version=no
12221  soname_spec='${libname}${release}${shared_ext}$major'
12222  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12223  case $host_os in
12224  irix5* | nonstopux*)
12225    libsuff= shlibsuff=
12226    ;;
12227  *)
12228    case $LD in # libtool.m4 will add one of these switches to LD
12229    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12230      libsuff= shlibsuff= libmagic=32-bit;;
12231    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12232      libsuff=32 shlibsuff=N32 libmagic=N32;;
12233    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12234      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12235    *) libsuff= shlibsuff= libmagic=never-match;;
12236    esac
12237    ;;
12238  esac
12239  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12240  shlibpath_overrides_runpath=no
12241  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12242  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12243  hardcode_into_libs=yes
12244  ;;
12245
12246# No shared lib support for Linux oldld, aout, or coff.
12247linux*oldld* | linux*aout* | linux*coff*)
12248  dynamic_linker=no
12249  ;;
12250
12251# This must be Linux ELF.
12252linux* | k*bsd*-gnu)
12253  version_type=linux
12254  need_lib_prefix=no
12255  need_version=no
12256  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12257  soname_spec='${libname}${release}${shared_ext}$major'
12258  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12259  shlibpath_var=LD_LIBRARY_PATH
12260  shlibpath_overrides_runpath=no
12261  # This implies no fast_install, which is unacceptable.
12262  # Some rework will be needed to allow for fast_install
12263  # before this can be enabled.
12264  hardcode_into_libs=yes
12265
12266  # Append ld.so.conf contents to the search path
12267  if test -f /etc/ld.so.conf; then
12268    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' ' '`
12269    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12270  fi
12271
12272  # We used to test for /lib/ld.so.1 and disable shared libraries on
12273  # powerpc, because MkLinux only supported shared libraries with the
12274  # GNU dynamic linker.  Since this was broken with cross compilers,
12275  # most powerpc-linux boxes support dynamic linking these days and
12276  # people can always --disable-shared, the test was removed, and we
12277  # assume the GNU/Linux dynamic linker is in use.
12278  dynamic_linker='GNU/Linux ld.so'
12279  ;;
12280
12281netbsdelf*-gnu)
12282  version_type=linux
12283  need_lib_prefix=no
12284  need_version=no
12285  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12286  soname_spec='${libname}${release}${shared_ext}$major'
12287  shlibpath_var=LD_LIBRARY_PATH
12288  shlibpath_overrides_runpath=no
12289  hardcode_into_libs=yes
12290  dynamic_linker='NetBSD ld.elf_so'
12291  ;;
12292
12293netbsd*)
12294  version_type=sunos
12295  need_lib_prefix=no
12296  need_version=no
12297  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12298    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12299    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12300    dynamic_linker='NetBSD (a.out) ld.so'
12301  else
12302    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12303    soname_spec='${libname}${release}${shared_ext}$major'
12304    dynamic_linker='NetBSD ld.elf_so'
12305  fi
12306  shlibpath_var=LD_LIBRARY_PATH
12307  shlibpath_overrides_runpath=yes
12308  hardcode_into_libs=yes
12309  ;;
12310
12311newsos6)
12312  version_type=linux
12313  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12314  shlibpath_var=LD_LIBRARY_PATH
12315  shlibpath_overrides_runpath=yes
12316  ;;
12317
12318nto-qnx*)
12319  version_type=linux
12320  need_lib_prefix=no
12321  need_version=no
12322  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323  soname_spec='${libname}${release}${shared_ext}$major'
12324  shlibpath_var=LD_LIBRARY_PATH
12325  shlibpath_overrides_runpath=yes
12326  ;;
12327
12328openbsd*)
12329  version_type=sunos
12330  sys_lib_dlsearch_path_spec="/usr/lib"
12331  need_lib_prefix=no
12332  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12333  case $host_os in
12334    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12335    *)                         need_version=no  ;;
12336  esac
12337  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12338  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12339  shlibpath_var=LD_LIBRARY_PATH
12340  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12341    case $host_os in
12342      openbsd2.[89] | openbsd2.[89].*)
12343	shlibpath_overrides_runpath=no
12344	;;
12345      *)
12346	shlibpath_overrides_runpath=yes
12347	;;
12348      esac
12349  else
12350    shlibpath_overrides_runpath=yes
12351  fi
12352  ;;
12353
12354os2*)
12355  libname_spec='$name'
12356  shrext_cmds=".dll"
12357  need_lib_prefix=no
12358  library_names_spec='$libname${shared_ext} $libname.a'
12359  dynamic_linker='OS/2 ld.exe'
12360  shlibpath_var=LIBPATH
12361  ;;
12362
12363osf3* | osf4* | osf5*)
12364  version_type=osf
12365  need_lib_prefix=no
12366  need_version=no
12367  soname_spec='${libname}${release}${shared_ext}$major'
12368  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12369  shlibpath_var=LD_LIBRARY_PATH
12370  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12371  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12372  ;;
12373
12374rdos*)
12375  dynamic_linker=no
12376  ;;
12377
12378solaris*)
12379  version_type=linux
12380  need_lib_prefix=no
12381  need_version=no
12382  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12383  soname_spec='${libname}${release}${shared_ext}$major'
12384  shlibpath_var=LD_LIBRARY_PATH
12385  shlibpath_overrides_runpath=yes
12386  hardcode_into_libs=yes
12387  # ldd complains unless libraries are executable
12388  postinstall_cmds='chmod +x $lib'
12389  ;;
12390
12391sunos4*)
12392  version_type=sunos
12393  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12394  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12395  shlibpath_var=LD_LIBRARY_PATH
12396  shlibpath_overrides_runpath=yes
12397  if test "$with_gnu_ld" = yes; then
12398    need_lib_prefix=no
12399  fi
12400  need_version=yes
12401  ;;
12402
12403sysv4 | sysv4.3*)
12404  version_type=linux
12405  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406  soname_spec='${libname}${release}${shared_ext}$major'
12407  shlibpath_var=LD_LIBRARY_PATH
12408  case $host_vendor in
12409    sni)
12410      shlibpath_overrides_runpath=no
12411      need_lib_prefix=no
12412      export_dynamic_flag_spec='${wl}-Blargedynsym'
12413      runpath_var=LD_RUN_PATH
12414      ;;
12415    siemens)
12416      need_lib_prefix=no
12417      ;;
12418    motorola)
12419      need_lib_prefix=no
12420      need_version=no
12421      shlibpath_overrides_runpath=no
12422      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12423      ;;
12424  esac
12425  ;;
12426
12427sysv4*MP*)
12428  if test -d /usr/nec ;then
12429    version_type=linux
12430    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12431    soname_spec='$libname${shared_ext}.$major'
12432    shlibpath_var=LD_LIBRARY_PATH
12433  fi
12434  ;;
12435
12436sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12437  version_type=freebsd-elf
12438  need_lib_prefix=no
12439  need_version=no
12440  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12441  soname_spec='${libname}${release}${shared_ext}$major'
12442  shlibpath_var=LD_LIBRARY_PATH
12443  hardcode_into_libs=yes
12444  if test "$with_gnu_ld" = yes; then
12445    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12446    shlibpath_overrides_runpath=no
12447  else
12448    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12449    shlibpath_overrides_runpath=yes
12450    case $host_os in
12451      sco3.2v5*)
12452        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12453	;;
12454    esac
12455  fi
12456  sys_lib_dlsearch_path_spec='/usr/lib'
12457  ;;
12458
12459uts4*)
12460  version_type=linux
12461  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462  soname_spec='${libname}${release}${shared_ext}$major'
12463  shlibpath_var=LD_LIBRARY_PATH
12464  ;;
12465
12466*)
12467  dynamic_linker=no
12468  ;;
12469esac
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12471$as_echo "$dynamic_linker" >&6; }
12472test "$dynamic_linker" = no && can_build_shared=no
12473
12474if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then :
12475  $as_echo_n "(cached) " >&6
12476else
12477  lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
12478fi
12479
12480sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12481if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then :
12482  $as_echo_n "(cached) " >&6
12483else
12484  lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
12485fi
12486
12487sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12488
12489variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12490if test "$GCC" = yes; then
12491  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12492fi
12493
12494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12495$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12496hardcode_action=
12497if test -n "$hardcode_libdir_flag_spec" || \
12498   test -n "$runpath_var" || \
12499   test "X$hardcode_automatic" = "Xyes" ; then
12500
12501  # We can hardcode non-existant directories.
12502  if test "$hardcode_direct" != no &&
12503     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12504     # have to relink, otherwise we might link with an installed library
12505     # when we should be linking with a yet-to-be-installed one
12506     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12507     test "$hardcode_minus_L" != no; then
12508    # Linking always hardcodes the temporary library directory.
12509    hardcode_action=relink
12510  else
12511    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12512    hardcode_action=immediate
12513  fi
12514else
12515  # We cannot hardcode anything, or else we can only hardcode existing
12516  # directories.
12517  hardcode_action=unsupported
12518fi
12519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12520$as_echo "$hardcode_action" >&6; }
12521
12522if test "$hardcode_action" = relink; then
12523  # Fast installation is not supported
12524  enable_fast_install=no
12525elif test "$shlibpath_overrides_runpath" = yes ||
12526     test "$enable_shared" = no; then
12527  # Fast installation is not necessary
12528  enable_fast_install=needless
12529fi
12530
12531striplib=
12532old_striplib=
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12534$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12535if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12536  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12537  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12539$as_echo "yes" >&6; }
12540else
12541# FIXME - insert some real tests, host_os isn't really good enough
12542  case $host_os in
12543   darwin*)
12544       if test -n "$STRIP" ; then
12545         striplib="$STRIP -x"
12546         old_striplib="$STRIP -S"
12547         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12548$as_echo "yes" >&6; }
12549       else
12550  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12551$as_echo "no" >&6; }
12552fi
12553       ;;
12554   *)
12555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12556$as_echo "no" >&6; }
12557    ;;
12558  esac
12559fi
12560
12561if test "x$enable_dlopen" != xyes; then
12562  enable_dlopen=unknown
12563  enable_dlopen_self=unknown
12564  enable_dlopen_self_static=unknown
12565else
12566  lt_cv_dlopen=no
12567  lt_cv_dlopen_libs=
12568
12569  case $host_os in
12570  beos*)
12571    lt_cv_dlopen="load_add_on"
12572    lt_cv_dlopen_libs=
12573    lt_cv_dlopen_self=yes
12574    ;;
12575
12576  mingw* | pw32*)
12577    lt_cv_dlopen="LoadLibrary"
12578    lt_cv_dlopen_libs=
12579   ;;
12580
12581  cygwin*)
12582    lt_cv_dlopen="dlopen"
12583    lt_cv_dlopen_libs=
12584   ;;
12585
12586  darwin*)
12587  # if libdl is installed we need to link against it
12588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12589$as_echo_n "checking for dlopen in -ldl... " >&6; }
12590if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12591  $as_echo_n "(cached) " >&6
12592else
12593  ac_check_lib_save_LIBS=$LIBS
12594LIBS="-ldl  $LIBS"
12595cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12596/* end confdefs.h.  */
12597
12598/* Override any GCC internal prototype to avoid an error.
12599   Use char because int might match the return type of a GCC
12600   builtin and then its argument prototype would still apply.  */
12601#ifdef __cplusplus
12602extern "C"
12603#endif
12604char dlopen ();
12605int
12606main ()
12607{
12608return dlopen ();
12609  ;
12610  return 0;
12611}
12612_ACEOF
12613if ac_fn_c_try_link "$LINENO"; then :
12614  ac_cv_lib_dl_dlopen=yes
12615else
12616  ac_cv_lib_dl_dlopen=no
12617fi
12618rm -f core conftest.err conftest.$ac_objext \
12619    conftest$ac_exeext conftest.$ac_ext
12620LIBS=$ac_check_lib_save_LIBS
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12623$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12624if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12625  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12626else
12627
12628    lt_cv_dlopen="dyld"
12629    lt_cv_dlopen_libs=
12630    lt_cv_dlopen_self=yes
12631
12632fi
12633
12634   ;;
12635
12636  *)
12637    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12638if test "x$ac_cv_func_shl_load" = x""yes; then :
12639  lt_cv_dlopen="shl_load"
12640else
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12642$as_echo_n "checking for shl_load in -ldld... " >&6; }
12643if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  ac_check_lib_save_LIBS=$LIBS
12647LIBS="-ldld  $LIBS"
12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650
12651/* Override any GCC internal prototype to avoid an error.
12652   Use char because int might match the return type of a GCC
12653   builtin and then its argument prototype would still apply.  */
12654#ifdef __cplusplus
12655extern "C"
12656#endif
12657char shl_load ();
12658int
12659main ()
12660{
12661return shl_load ();
12662  ;
12663  return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_link "$LINENO"; then :
12667  ac_cv_lib_dld_shl_load=yes
12668else
12669  ac_cv_lib_dld_shl_load=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672    conftest$ac_exeext conftest.$ac_ext
12673LIBS=$ac_check_lib_save_LIBS
12674fi
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12676$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12677if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12678  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12679else
12680  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12681if test "x$ac_cv_func_dlopen" = x""yes; then :
12682  lt_cv_dlopen="dlopen"
12683else
12684  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12685$as_echo_n "checking for dlopen in -ldl... " >&6; }
12686if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12687  $as_echo_n "(cached) " >&6
12688else
12689  ac_check_lib_save_LIBS=$LIBS
12690LIBS="-ldl  $LIBS"
12691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12692/* end confdefs.h.  */
12693
12694/* Override any GCC internal prototype to avoid an error.
12695   Use char because int might match the return type of a GCC
12696   builtin and then its argument prototype would still apply.  */
12697#ifdef __cplusplus
12698extern "C"
12699#endif
12700char dlopen ();
12701int
12702main ()
12703{
12704return dlopen ();
12705  ;
12706  return 0;
12707}
12708_ACEOF
12709if ac_fn_c_try_link "$LINENO"; then :
12710  ac_cv_lib_dl_dlopen=yes
12711else
12712  ac_cv_lib_dl_dlopen=no
12713fi
12714rm -f core conftest.err conftest.$ac_objext \
12715    conftest$ac_exeext conftest.$ac_ext
12716LIBS=$ac_check_lib_save_LIBS
12717fi
12718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12719$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12720if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12721  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12722else
12723  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12724$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12725if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12726  $as_echo_n "(cached) " >&6
12727else
12728  ac_check_lib_save_LIBS=$LIBS
12729LIBS="-lsvld  $LIBS"
12730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12731/* end confdefs.h.  */
12732
12733/* Override any GCC internal prototype to avoid an error.
12734   Use char because int might match the return type of a GCC
12735   builtin and then its argument prototype would still apply.  */
12736#ifdef __cplusplus
12737extern "C"
12738#endif
12739char dlopen ();
12740int
12741main ()
12742{
12743return dlopen ();
12744  ;
12745  return 0;
12746}
12747_ACEOF
12748if ac_fn_c_try_link "$LINENO"; then :
12749  ac_cv_lib_svld_dlopen=yes
12750else
12751  ac_cv_lib_svld_dlopen=no
12752fi
12753rm -f core conftest.err conftest.$ac_objext \
12754    conftest$ac_exeext conftest.$ac_ext
12755LIBS=$ac_check_lib_save_LIBS
12756fi
12757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12758$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12759if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12760  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12761else
12762  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12763$as_echo_n "checking for dld_link in -ldld... " >&6; }
12764if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12765  $as_echo_n "(cached) " >&6
12766else
12767  ac_check_lib_save_LIBS=$LIBS
12768LIBS="-ldld  $LIBS"
12769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12770/* end confdefs.h.  */
12771
12772/* Override any GCC internal prototype to avoid an error.
12773   Use char because int might match the return type of a GCC
12774   builtin and then its argument prototype would still apply.  */
12775#ifdef __cplusplus
12776extern "C"
12777#endif
12778char dld_link ();
12779int
12780main ()
12781{
12782return dld_link ();
12783  ;
12784  return 0;
12785}
12786_ACEOF
12787if ac_fn_c_try_link "$LINENO"; then :
12788  ac_cv_lib_dld_dld_link=yes
12789else
12790  ac_cv_lib_dld_dld_link=no
12791fi
12792rm -f core conftest.err conftest.$ac_objext \
12793    conftest$ac_exeext conftest.$ac_ext
12794LIBS=$ac_check_lib_save_LIBS
12795fi
12796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12797$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12798if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12799  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12800fi
12801
12802
12803fi
12804
12805
12806fi
12807
12808
12809fi
12810
12811
12812fi
12813
12814
12815fi
12816
12817    ;;
12818  esac
12819
12820  if test "x$lt_cv_dlopen" != xno; then
12821    enable_dlopen=yes
12822  else
12823    enable_dlopen=no
12824  fi
12825
12826  case $lt_cv_dlopen in
12827  dlopen)
12828    save_CPPFLAGS="$CPPFLAGS"
12829    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12830
12831    save_LDFLAGS="$LDFLAGS"
12832    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12833
12834    save_LIBS="$LIBS"
12835    LIBS="$lt_cv_dlopen_libs $LIBS"
12836
12837    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12838$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12839if test "${lt_cv_dlopen_self+set}" = set; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  	  if test "$cross_compiling" = yes; then :
12843  lt_cv_dlopen_self=cross
12844else
12845  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12846  lt_status=$lt_dlunknown
12847  cat > conftest.$ac_ext <<EOF
12848#line 12848 "configure"
12849#include "confdefs.h"
12850
12851#if HAVE_DLFCN_H
12852#include <dlfcn.h>
12853#endif
12854
12855#include <stdio.h>
12856
12857#ifdef RTLD_GLOBAL
12858#  define LT_DLGLOBAL		RTLD_GLOBAL
12859#else
12860#  ifdef DL_GLOBAL
12861#    define LT_DLGLOBAL		DL_GLOBAL
12862#  else
12863#    define LT_DLGLOBAL		0
12864#  endif
12865#endif
12866
12867/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12868   find out it does not work in some platform. */
12869#ifndef LT_DLLAZY_OR_NOW
12870#  ifdef RTLD_LAZY
12871#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12872#  else
12873#    ifdef DL_LAZY
12874#      define LT_DLLAZY_OR_NOW		DL_LAZY
12875#    else
12876#      ifdef RTLD_NOW
12877#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12878#      else
12879#        ifdef DL_NOW
12880#          define LT_DLLAZY_OR_NOW	DL_NOW
12881#        else
12882#          define LT_DLLAZY_OR_NOW	0
12883#        endif
12884#      endif
12885#    endif
12886#  endif
12887#endif
12888
12889#ifdef __cplusplus
12890extern "C" void exit (int);
12891#endif
12892
12893void fnord() { int i=42;}
12894int main ()
12895{
12896  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12897  int status = $lt_dlunknown;
12898
12899  if (self)
12900    {
12901      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12902      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12903      /* dlclose (self); */
12904    }
12905  else
12906    puts (dlerror ());
12907
12908    exit (status);
12909}
12910EOF
12911  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12912  (eval $ac_link) 2>&5
12913  ac_status=$?
12914  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12915  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12916    (./conftest; exit; ) >&5 2>/dev/null
12917    lt_status=$?
12918    case x$lt_status in
12919      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12920      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12921      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12922    esac
12923  else :
12924    # compilation failed
12925    lt_cv_dlopen_self=no
12926  fi
12927fi
12928rm -fr conftest*
12929
12930
12931fi
12932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12933$as_echo "$lt_cv_dlopen_self" >&6; }
12934
12935    if test "x$lt_cv_dlopen_self" = xyes; then
12936      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12937      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12938$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12939if test "${lt_cv_dlopen_self_static+set}" = set; then :
12940  $as_echo_n "(cached) " >&6
12941else
12942  	  if test "$cross_compiling" = yes; then :
12943  lt_cv_dlopen_self_static=cross
12944else
12945  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12946  lt_status=$lt_dlunknown
12947  cat > conftest.$ac_ext <<EOF
12948#line 12948 "configure"
12949#include "confdefs.h"
12950
12951#if HAVE_DLFCN_H
12952#include <dlfcn.h>
12953#endif
12954
12955#include <stdio.h>
12956
12957#ifdef RTLD_GLOBAL
12958#  define LT_DLGLOBAL		RTLD_GLOBAL
12959#else
12960#  ifdef DL_GLOBAL
12961#    define LT_DLGLOBAL		DL_GLOBAL
12962#  else
12963#    define LT_DLGLOBAL		0
12964#  endif
12965#endif
12966
12967/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12968   find out it does not work in some platform. */
12969#ifndef LT_DLLAZY_OR_NOW
12970#  ifdef RTLD_LAZY
12971#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12972#  else
12973#    ifdef DL_LAZY
12974#      define LT_DLLAZY_OR_NOW		DL_LAZY
12975#    else
12976#      ifdef RTLD_NOW
12977#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12978#      else
12979#        ifdef DL_NOW
12980#          define LT_DLLAZY_OR_NOW	DL_NOW
12981#        else
12982#          define LT_DLLAZY_OR_NOW	0
12983#        endif
12984#      endif
12985#    endif
12986#  endif
12987#endif
12988
12989#ifdef __cplusplus
12990extern "C" void exit (int);
12991#endif
12992
12993void fnord() { int i=42;}
12994int main ()
12995{
12996  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12997  int status = $lt_dlunknown;
12998
12999  if (self)
13000    {
13001      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13002      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13003      /* dlclose (self); */
13004    }
13005  else
13006    puts (dlerror ());
13007
13008    exit (status);
13009}
13010EOF
13011  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13012  (eval $ac_link) 2>&5
13013  ac_status=$?
13014  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13015  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13016    (./conftest; exit; ) >&5 2>/dev/null
13017    lt_status=$?
13018    case x$lt_status in
13019      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13020      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13021      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13022    esac
13023  else :
13024    # compilation failed
13025    lt_cv_dlopen_self_static=no
13026  fi
13027fi
13028rm -fr conftest*
13029
13030
13031fi
13032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13033$as_echo "$lt_cv_dlopen_self_static" >&6; }
13034    fi
13035
13036    CPPFLAGS="$save_CPPFLAGS"
13037    LDFLAGS="$save_LDFLAGS"
13038    LIBS="$save_LIBS"
13039    ;;
13040  esac
13041
13042  case $lt_cv_dlopen_self in
13043  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13044  *) enable_dlopen_self=unknown ;;
13045  esac
13046
13047  case $lt_cv_dlopen_self_static in
13048  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13049  *) enable_dlopen_self_static=unknown ;;
13050  esac
13051fi
13052
13053
13054# Report which library types will actually be built
13055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13056$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13058$as_echo "$can_build_shared" >&6; }
13059
13060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13061$as_echo_n "checking whether to build shared libraries... " >&6; }
13062test "$can_build_shared" = "no" && enable_shared=no
13063
13064# On AIX, shared libraries and static libraries use the same namespace, and
13065# are all built from PIC.
13066case $host_os in
13067aix3*)
13068  test "$enable_shared" = yes && enable_static=no
13069  if test -n "$RANLIB"; then
13070    archive_cmds="$archive_cmds~\$RANLIB \$lib"
13071    postinstall_cmds='$RANLIB $lib'
13072  fi
13073  ;;
13074
13075aix[4-9]*)
13076  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13077    test "$enable_shared" = yes && enable_static=no
13078  fi
13079    ;;
13080esac
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13082$as_echo "$enable_shared" >&6; }
13083
13084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13085$as_echo_n "checking whether to build static libraries... " >&6; }
13086# Make sure either enable_shared or enable_static is yes.
13087test "$enable_shared" = yes || enable_static=yes
13088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13089$as_echo "$enable_static" >&6; }
13090
13091# The else clause should only fire when bootstrapping the
13092# libtool distribution, otherwise you forgot to ship ltmain.sh
13093# with your package, and you will get complaints that there are
13094# no rules to generate ltmain.sh.
13095if test -f "$ltmain"; then
13096  # See if we are running on zsh, and set the options which allow our commands through
13097  # without removal of \ escapes.
13098  if test -n "${ZSH_VERSION+set}" ; then
13099    setopt NO_GLOB_SUBST
13100  fi
13101  # Now quote all the things that may contain metacharacters while being
13102  # careful not to overquote the AC_SUBSTed values.  We take copies of the
13103  # variables and quote the copies for generation of the libtool script.
13104  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13105    SED SHELL STRIP \
13106    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13107    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13108    deplibs_check_method reload_flag reload_cmds need_locks \
13109    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13110    lt_cv_sys_global_symbol_to_c_name_address \
13111    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13112    old_postinstall_cmds old_postuninstall_cmds \
13113    compiler \
13114    CC \
13115    LD \
13116    lt_prog_compiler_wl \
13117    lt_prog_compiler_pic \
13118    lt_prog_compiler_static \
13119    lt_prog_compiler_no_builtin_flag \
13120    export_dynamic_flag_spec \
13121    thread_safe_flag_spec \
13122    whole_archive_flag_spec \
13123    enable_shared_with_static_runtimes \
13124    old_archive_cmds \
13125    old_archive_from_new_cmds \
13126    predep_objects \
13127    postdep_objects \
13128    predeps \
13129    postdeps \
13130    compiler_lib_search_path \
13131    compiler_lib_search_dirs \
13132    archive_cmds \
13133    archive_expsym_cmds \
13134    postinstall_cmds \
13135    postuninstall_cmds \
13136    old_archive_from_expsyms_cmds \
13137    allow_undefined_flag \
13138    no_undefined_flag \
13139    export_symbols_cmds \
13140    hardcode_libdir_flag_spec \
13141    hardcode_libdir_flag_spec_ld \
13142    hardcode_libdir_separator \
13143    hardcode_automatic \
13144    module_cmds \
13145    module_expsym_cmds \
13146    lt_cv_prog_compiler_c_o \
13147    fix_srcfile_path \
13148    exclude_expsyms \
13149    include_expsyms; do
13150
13151    case $var in
13152    old_archive_cmds | \
13153    old_archive_from_new_cmds | \
13154    archive_cmds | \
13155    archive_expsym_cmds | \
13156    module_cmds | \
13157    module_expsym_cmds | \
13158    old_archive_from_expsyms_cmds | \
13159    export_symbols_cmds | \
13160    extract_expsyms_cmds | reload_cmds | finish_cmds | \
13161    postinstall_cmds | postuninstall_cmds | \
13162    old_postinstall_cmds | old_postuninstall_cmds | \
13163    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13164      # Double-quote double-evaled strings.
13165      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13166      ;;
13167    *)
13168      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13169      ;;
13170    esac
13171  done
13172
13173  case $lt_echo in
13174  *'\$0 --fallback-echo"')
13175    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13176    ;;
13177  esac
13178
13179cfgfile="${ofile}T"
13180  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13181  $rm -f "$cfgfile"
13182  { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
13183$as_echo "$as_me: creating $ofile" >&6;}
13184
13185  cat <<__EOF__ >> "$cfgfile"
13186#! $SHELL
13187
13188# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13189# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13190# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13191#
13192# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
13193# Free Software Foundation, Inc.
13194#
13195# This file is part of GNU Libtool:
13196# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13197#
13198# This program is free software; you can redistribute it and/or modify
13199# it under the terms of the GNU General Public License as published by
13200# the Free Software Foundation; either version 2 of the License, or
13201# (at your option) any later version.
13202#
13203# This program is distributed in the hope that it will be useful, but
13204# WITHOUT ANY WARRANTY; without even the implied warranty of
13205# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13206# General Public License for more details.
13207#
13208# You should have received a copy of the GNU General Public License
13209# along with this program; if not, write to the Free Software
13210# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13211#
13212# As a special exception to the GNU General Public License, if you
13213# distribute this file as part of a program that contains a
13214# configuration script generated by Autoconf, you may include it under
13215# the same distribution terms that you use for the rest of that program.
13216
13217# A sed program that does not truncate output.
13218SED=$lt_SED
13219
13220# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13221Xsed="$SED -e 1s/^X//"
13222
13223# The HP-UX ksh and POSIX shell print the target directory to stdout
13224# if CDPATH is set.
13225(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13226
13227# The names of the tagged configurations supported by this script.
13228available_tags=
13229
13230# ### BEGIN LIBTOOL CONFIG
13231
13232# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13233
13234# Shell to use when invoking shell scripts.
13235SHELL=$lt_SHELL
13236
13237# Whether or not to build shared libraries.
13238build_libtool_libs=$enable_shared
13239
13240# Whether or not to build static libraries.
13241build_old_libs=$enable_static
13242
13243# Whether or not to add -lc for building shared libraries.
13244build_libtool_need_lc=$archive_cmds_need_lc
13245
13246# Whether or not to disallow shared libs when runtime libs are static
13247allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13248
13249# Whether or not to optimize for fast installation.
13250fast_install=$enable_fast_install
13251
13252# The host system.
13253host_alias=$host_alias
13254host=$host
13255host_os=$host_os
13256
13257# The build system.
13258build_alias=$build_alias
13259build=$build
13260build_os=$build_os
13261
13262# An echo program that does not interpret backslashes.
13263echo=$lt_echo
13264
13265# The archiver.
13266AR=$lt_AR
13267AR_FLAGS=$lt_AR_FLAGS
13268
13269# A C compiler.
13270LTCC=$lt_LTCC
13271
13272# LTCC compiler flags.
13273LTCFLAGS=$lt_LTCFLAGS
13274
13275# A language-specific compiler.
13276CC=$lt_compiler
13277
13278# Is the compiler the GNU C compiler?
13279with_gcc=$GCC
13280
13281# An ERE matcher.
13282EGREP=$lt_EGREP
13283
13284# The linker used to build libraries.
13285LD=$lt_LD
13286
13287# Whether we need hard or soft links.
13288LN_S=$lt_LN_S
13289
13290# A BSD-compatible nm program.
13291NM=$lt_NM
13292
13293# A symbol stripping program
13294STRIP=$lt_STRIP
13295
13296# Used to examine libraries when file_magic_cmd begins "file"
13297MAGIC_CMD=$MAGIC_CMD
13298
13299# Used on cygwin: DLL creation program.
13300DLLTOOL="$DLLTOOL"
13301
13302# Used on cygwin: object dumper.
13303OBJDUMP="$OBJDUMP"
13304
13305# Used on cygwin: assembler.
13306AS="$AS"
13307
13308# The name of the directory that contains temporary libtool files.
13309objdir=$objdir
13310
13311# How to create reloadable object files.
13312reload_flag=$lt_reload_flag
13313reload_cmds=$lt_reload_cmds
13314
13315# How to pass a linker flag through the compiler.
13316wl=$lt_lt_prog_compiler_wl
13317
13318# Object file suffix (normally "o").
13319objext="$ac_objext"
13320
13321# Old archive suffix (normally "a").
13322libext="$libext"
13323
13324# Shared library suffix (normally ".so").
13325shrext_cmds='$shrext_cmds'
13326
13327# Executable file suffix (normally "").
13328exeext="$exeext"
13329
13330# Additional compiler flags for building library objects.
13331pic_flag=$lt_lt_prog_compiler_pic
13332pic_mode=$pic_mode
13333
13334# What is the maximum length of a command?
13335max_cmd_len=$lt_cv_sys_max_cmd_len
13336
13337# Does compiler simultaneously support -c and -o options?
13338compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13339
13340# Must we lock files when doing compilation?
13341need_locks=$lt_need_locks
13342
13343# Do we need the lib prefix for modules?
13344need_lib_prefix=$need_lib_prefix
13345
13346# Do we need a version for libraries?
13347need_version=$need_version
13348
13349# Whether dlopen is supported.
13350dlopen_support=$enable_dlopen
13351
13352# Whether dlopen of programs is supported.
13353dlopen_self=$enable_dlopen_self
13354
13355# Whether dlopen of statically linked programs is supported.
13356dlopen_self_static=$enable_dlopen_self_static
13357
13358# Compiler flag to prevent dynamic linking.
13359link_static_flag=$lt_lt_prog_compiler_static
13360
13361# Compiler flag to turn off builtin functions.
13362no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13363
13364# Compiler flag to allow reflexive dlopens.
13365export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13366
13367# Compiler flag to generate shared objects directly from archives.
13368whole_archive_flag_spec=$lt_whole_archive_flag_spec
13369
13370# Compiler flag to generate thread-safe objects.
13371thread_safe_flag_spec=$lt_thread_safe_flag_spec
13372
13373# Library versioning type.
13374version_type=$version_type
13375
13376# Format of library name prefix.
13377libname_spec=$lt_libname_spec
13378
13379# List of archive names.  First name is the real one, the rest are links.
13380# The last name is the one that the linker finds with -lNAME.
13381library_names_spec=$lt_library_names_spec
13382
13383# The coded name of the library, if different from the real name.
13384soname_spec=$lt_soname_spec
13385
13386# Commands used to build and install an old-style archive.
13387RANLIB=$lt_RANLIB
13388old_archive_cmds=$lt_old_archive_cmds
13389old_postinstall_cmds=$lt_old_postinstall_cmds
13390old_postuninstall_cmds=$lt_old_postuninstall_cmds
13391
13392# Create an old-style archive from a shared archive.
13393old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13394
13395# Create a temporary old-style archive to link instead of a shared archive.
13396old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13397
13398# Commands used to build and install a shared archive.
13399archive_cmds=$lt_archive_cmds
13400archive_expsym_cmds=$lt_archive_expsym_cmds
13401postinstall_cmds=$lt_postinstall_cmds
13402postuninstall_cmds=$lt_postuninstall_cmds
13403
13404# Commands used to build a loadable module (assumed same as above if empty)
13405module_cmds=$lt_module_cmds
13406module_expsym_cmds=$lt_module_expsym_cmds
13407
13408# Commands to strip libraries.
13409old_striplib=$lt_old_striplib
13410striplib=$lt_striplib
13411
13412# Dependencies to place before the objects being linked to create a
13413# shared library.
13414predep_objects=$lt_predep_objects
13415
13416# Dependencies to place after the objects being linked to create a
13417# shared library.
13418postdep_objects=$lt_postdep_objects
13419
13420# Dependencies to place before the objects being linked to create a
13421# shared library.
13422predeps=$lt_predeps
13423
13424# Dependencies to place after the objects being linked to create a
13425# shared library.
13426postdeps=$lt_postdeps
13427
13428# The directories searched by this compiler when creating a shared
13429# library
13430compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
13431
13432# The library search path used internally by the compiler when linking
13433# a shared library.
13434compiler_lib_search_path=$lt_compiler_lib_search_path
13435
13436# Method to check whether dependent libraries are shared objects.
13437deplibs_check_method=$lt_deplibs_check_method
13438
13439# Command to use when deplibs_check_method == file_magic.
13440file_magic_cmd=$lt_file_magic_cmd
13441
13442# Flag that allows shared libraries with undefined symbols to be built.
13443allow_undefined_flag=$lt_allow_undefined_flag
13444
13445# Flag that forces no undefined symbols.
13446no_undefined_flag=$lt_no_undefined_flag
13447
13448# Commands used to finish a libtool library installation in a directory.
13449finish_cmds=$lt_finish_cmds
13450
13451# Same as above, but a single script fragment to be evaled but not shown.
13452finish_eval=$lt_finish_eval
13453
13454# Take the output of nm and produce a listing of raw symbols and C names.
13455global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13456
13457# Transform the output of nm in a proper C declaration
13458global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13459
13460# Transform the output of nm in a C name address pair
13461global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13462
13463# This is the shared library runtime path variable.
13464runpath_var=$runpath_var
13465
13466# This is the shared library path variable.
13467shlibpath_var=$shlibpath_var
13468
13469# Is shlibpath searched before the hard-coded library search path?
13470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13471
13472# How to hardcode a shared library path into an executable.
13473hardcode_action=$hardcode_action
13474
13475# Whether we should hardcode library paths into libraries.
13476hardcode_into_libs=$hardcode_into_libs
13477
13478# Flag to hardcode \$libdir into a binary during linking.
13479# This must work even if \$libdir does not exist.
13480hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13481
13482# If ld is used when linking, flag to hardcode \$libdir into
13483# a binary during linking. This must work even if \$libdir does
13484# not exist.
13485hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13486
13487# Whether we need a single -rpath flag with a separated argument.
13488hardcode_libdir_separator=$lt_hardcode_libdir_separator
13489
13490# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13491# resulting binary.
13492hardcode_direct=$hardcode_direct
13493
13494# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13495# resulting binary.
13496hardcode_minus_L=$hardcode_minus_L
13497
13498# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13499# the resulting binary.
13500hardcode_shlibpath_var=$hardcode_shlibpath_var
13501
13502# Set to yes if building a shared library automatically hardcodes DIR into the library
13503# and all subsequent libraries and executables linked against it.
13504hardcode_automatic=$hardcode_automatic
13505
13506# Variables whose values should be saved in libtool wrapper scripts and
13507# restored at relink time.
13508variables_saved_for_relink="$variables_saved_for_relink"
13509
13510# Whether libtool must link a program against all its dependency libraries.
13511link_all_deplibs=$link_all_deplibs
13512
13513# Compile-time system search path for libraries
13514sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13515
13516# Run-time system search path for libraries
13517sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13518
13519# Fix the shell variable \$srcfile for the compiler.
13520fix_srcfile_path=$lt_fix_srcfile_path
13521
13522# Set to yes if exported symbols are required.
13523always_export_symbols=$always_export_symbols
13524
13525# The commands to list exported symbols.
13526export_symbols_cmds=$lt_export_symbols_cmds
13527
13528# The commands to extract the exported symbol list from a shared archive.
13529extract_expsyms_cmds=$lt_extract_expsyms_cmds
13530
13531# Symbols that should not be listed in the preloaded symbols.
13532exclude_expsyms=$lt_exclude_expsyms
13533
13534# Symbols that must always be exported.
13535include_expsyms=$lt_include_expsyms
13536
13537# ### END LIBTOOL CONFIG
13538
13539__EOF__
13540
13541
13542  case $host_os in
13543  aix3*)
13544    cat <<\EOF >> "$cfgfile"
13545
13546# AIX sometimes has problems with the GCC collect2 program.  For some
13547# reason, if we set the COLLECT_NAMES environment variable, the problems
13548# vanish in a puff of smoke.
13549if test "X${COLLECT_NAMES+set}" != Xset; then
13550  COLLECT_NAMES=
13551  export COLLECT_NAMES
13552fi
13553EOF
13554    ;;
13555  esac
13556
13557  # We use sed instead of cat because bash on DJGPP gets confused if
13558  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
13559  # text mode, it properly converts lines to CR/LF.  This bash problem
13560  # is reportedly fixed, but why not run on old versions too?
13561  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13562
13563  mv -f "$cfgfile" "$ofile" || \
13564    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13565  chmod +x "$ofile"
13566
13567else
13568  # If there is no Makefile yet, we rely on a make rule to execute
13569  # `config.status --recheck' to rerun these tests and create the
13570  # libtool script then.
13571  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13572  if test -f "$ltmain_in"; then
13573    test -f Makefile && make "$ltmain"
13574  fi
13575fi
13576
13577
13578ac_ext=c
13579ac_cpp='$CPP $CPPFLAGS'
13580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13582ac_compiler_gnu=$ac_cv_c_compiler_gnu
13583
13584CC="$lt_save_CC"
13585
13586
13587  if test -f "$ltmain"; then
13588    if test ! -f "${ofile}"; then
13589      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
13590$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13591    fi
13592
13593    if test -z "$LTCC"; then
13594      eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13595      if test -z "$LTCC"; then
13596        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13597$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13598      else
13599        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13600$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13601      fi
13602    fi
13603
13604
13605  fi
13606
13607
13608
13609
13610# This can be used to rebuild libtool when needed
13611LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
13612
13613# Always use our own libtool.
13614LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13615
13616# Prevent multiple expansion
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627ac_config_headers="$ac_config_headers config.h lib/tre-config.h"
13628
13629ac_config_files="$ac_config_files Makefile doc/Makefile doc/agrep.1 lib/Makefile m4/Makefile po/Makefile.in src/Makefile tests/Makefile tests/agrep/Makefile tre.pc tre.spec utils/Makefile"
13630
13631cat >confcache <<\_ACEOF
13632# This file is a shell script that caches the results of configure
13633# tests run on this system so they can be shared between configure
13634# scripts and configure runs, see configure's option --config-cache.
13635# It is not useful on other systems.  If it contains results you don't
13636# want to keep, you may remove or edit it.
13637#
13638# config.status only pays attention to the cache file if you give it
13639# the --recheck option to rerun configure.
13640#
13641# `ac_cv_env_foo' variables (set or unset) will be overridden when
13642# loading this file, other *unset* `ac_cv_foo' will be assigned the
13643# following values.
13644
13645_ACEOF
13646
13647# The following way of writing the cache mishandles newlines in values,
13648# but we know of no workaround that is simple, portable, and efficient.
13649# So, we kill variables containing newlines.
13650# Ultrix sh set writes to stderr and can't be redirected directly,
13651# and sets the high bit in the cache file unless we assign to the vars.
13652(
13653  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13654    eval ac_val=\$$ac_var
13655    case $ac_val in #(
13656    *${as_nl}*)
13657      case $ac_var in #(
13658      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13659$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13660      esac
13661      case $ac_var in #(
13662      _ | IFS | as_nl) ;; #(
13663      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13664      *) { eval $ac_var=; unset $ac_var;} ;;
13665      esac ;;
13666    esac
13667  done
13668
13669  (set) 2>&1 |
13670    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13671    *${as_nl}ac_space=\ *)
13672      # `set' does not quote correctly, so add quotes: double-quote
13673      # substitution turns \\\\ into \\, and sed turns \\ into \.
13674      sed -n \
13675	"s/'/'\\\\''/g;
13676	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13677      ;; #(
13678    *)
13679      # `set' quotes correctly as required by POSIX, so do not add quotes.
13680      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13681      ;;
13682    esac |
13683    sort
13684) |
13685  sed '
13686     /^ac_cv_env_/b end
13687     t clear
13688     :clear
13689     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13690     t end
13691     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13692     :end' >>confcache
13693if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13694  if test -w "$cache_file"; then
13695    test "x$cache_file" != "x/dev/null" &&
13696      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13697$as_echo "$as_me: updating cache $cache_file" >&6;}
13698    cat confcache >$cache_file
13699  else
13700    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13701$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13702  fi
13703fi
13704rm -f confcache
13705
13706test "x$prefix" = xNONE && prefix=$ac_default_prefix
13707# Let make expand exec_prefix.
13708test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13709
13710DEFS=-DHAVE_CONFIG_H
13711
13712ac_libobjs=
13713ac_ltlibobjs=
13714for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13715  # 1. Remove the extension, and $U if already installed.
13716  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13717  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13718  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
13719  #    will be set to the directory where LIBOBJS objects are built.
13720  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13721  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13722done
13723LIBOBJS=$ac_libobjs
13724
13725LTLIBOBJS=$ac_ltlibobjs
13726
13727
13728if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13729  as_fn_error "conditional \"AMDEP\" was never defined.
13730Usually this means the macro was only invoked conditionally." "$LINENO" 5
13731fi
13732if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13733  as_fn_error "conditional \"am__fastdepCC\" was never defined.
13734Usually this means the macro was only invoked conditionally." "$LINENO" 5
13735fi
13736if test -z "${TRE_DEBUG_TRUE}" && test -z "${TRE_DEBUG_FALSE}"; then
13737  as_fn_error "conditional \"TRE_DEBUG\" was never defined.
13738Usually this means the macro was only invoked conditionally." "$LINENO" 5
13739fi
13740if test -z "${TRE_DEBUG_TRUE}" && test -z "${TRE_DEBUG_FALSE}"; then
13741  as_fn_error "conditional \"TRE_DEBUG\" was never defined.
13742Usually this means the macro was only invoked conditionally." "$LINENO" 5
13743fi
13744if test -z "${TRE_PROFILE_TRUE}" && test -z "${TRE_PROFILE_FALSE}"; then
13745  as_fn_error "conditional \"TRE_PROFILE\" was never defined.
13746Usually this means the macro was only invoked conditionally." "$LINENO" 5
13747fi
13748if test -z "${TRE_PROFILE_TRUE}" && test -z "${TRE_PROFILE_FALSE}"; then
13749  as_fn_error "conditional \"TRE_PROFILE\" was never defined.
13750Usually this means the macro was only invoked conditionally." "$LINENO" 5
13751fi
13752if test -z "${TRE_APPROX_TRUE}" && test -z "${TRE_APPROX_FALSE}"; then
13753  as_fn_error "conditional \"TRE_APPROX\" was never defined.
13754Usually this means the macro was only invoked conditionally." "$LINENO" 5
13755fi
13756if test -z "${TRE_APPROX_TRUE}" && test -z "${TRE_APPROX_FALSE}"; then
13757  as_fn_error "conditional \"TRE_APPROX\" was never defined.
13758Usually this means the macro was only invoked conditionally." "$LINENO" 5
13759fi
13760if test -z "${TRE_AGREP_TRUE}" && test -z "${TRE_AGREP_FALSE}"; then
13761  as_fn_error "conditional \"TRE_AGREP\" was never defined.
13762Usually this means the macro was only invoked conditionally." "$LINENO" 5
13763fi
13764if test -z "${TRE_AGREP_TRUE}" && test -z "${TRE_AGREP_FALSE}"; then
13765  as_fn_error "conditional \"TRE_AGREP\" was never defined.
13766Usually this means the macro was only invoked conditionally." "$LINENO" 5
13767fi
13768if test -z "${TRE_MULTIBYTE_TRUE}" && test -z "${TRE_MULTIBYTE_FALSE}"; then
13769  as_fn_error "conditional \"TRE_MULTIBYTE\" was never defined.
13770Usually this means the macro was only invoked conditionally." "$LINENO" 5
13771fi
13772if test -z "${TRE_MULTIBYTE_TRUE}" && test -z "${TRE_MULTIBYTE_FALSE}"; then
13773  as_fn_error "conditional \"TRE_MULTIBYTE\" was never defined.
13774Usually this means the macro was only invoked conditionally." "$LINENO" 5
13775fi
13776
13777: ${CONFIG_STATUS=./config.status}
13778ac_write_fail=0
13779ac_clean_files_save=$ac_clean_files
13780ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13781{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13782$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13783as_write_fail=0
13784cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13785#! $SHELL
13786# Generated by $as_me.
13787# Run this file to recreate the current configuration.
13788# Compiler output produced by configure, useful for debugging
13789# configure, is in config.log if it exists.
13790
13791debug=false
13792ac_cs_recheck=false
13793ac_cs_silent=false
13794
13795SHELL=\${CONFIG_SHELL-$SHELL}
13796export SHELL
13797_ASEOF
13798cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13799## -------------------- ##
13800## M4sh Initialization. ##
13801## -------------------- ##
13802
13803# Be more Bourne compatible
13804DUALCASE=1; export DUALCASE # for MKS sh
13805if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13806  emulate sh
13807  NULLCMD=:
13808  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13809  # is contrary to our usage.  Disable this feature.
13810  alias -g '${1+"$@"}'='"$@"'
13811  setopt NO_GLOB_SUBST
13812else
13813  case `(set -o) 2>/dev/null` in #(
13814  *posix*) :
13815    set -o posix ;; #(
13816  *) :
13817     ;;
13818esac
13819fi
13820
13821
13822as_nl='
13823'
13824export as_nl
13825# Printing a long string crashes Solaris 7 /usr/bin/printf.
13826as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13827as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13828as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13829# Prefer a ksh shell builtin over an external printf program on Solaris,
13830# but without wasting forks for bash or zsh.
13831if test -z "$BASH_VERSION$ZSH_VERSION" \
13832    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13833  as_echo='print -r --'
13834  as_echo_n='print -rn --'
13835elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13836  as_echo='printf %s\n'
13837  as_echo_n='printf %s'
13838else
13839  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13840    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13841    as_echo_n='/usr/ucb/echo -n'
13842  else
13843    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13844    as_echo_n_body='eval
13845      arg=$1;
13846      case $arg in #(
13847      *"$as_nl"*)
13848	expr "X$arg" : "X\\(.*\\)$as_nl";
13849	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13850      esac;
13851      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13852    '
13853    export as_echo_n_body
13854    as_echo_n='sh -c $as_echo_n_body as_echo'
13855  fi
13856  export as_echo_body
13857  as_echo='sh -c $as_echo_body as_echo'
13858fi
13859
13860# The user is always right.
13861if test "${PATH_SEPARATOR+set}" != set; then
13862  PATH_SEPARATOR=:
13863  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13864    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13865      PATH_SEPARATOR=';'
13866  }
13867fi
13868
13869
13870# IFS
13871# We need space, tab and new line, in precisely that order.  Quoting is
13872# there to prevent editors from complaining about space-tab.
13873# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13874# splitting by setting IFS to empty value.)
13875IFS=" ""	$as_nl"
13876
13877# Find who we are.  Look in the path if we contain no directory separator.
13878case $0 in #((
13879  *[\\/]* ) as_myself=$0 ;;
13880  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13881for as_dir in $PATH
13882do
13883  IFS=$as_save_IFS
13884  test -z "$as_dir" && as_dir=.
13885    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13886  done
13887IFS=$as_save_IFS
13888
13889     ;;
13890esac
13891# We did not find ourselves, most probably we were run as `sh COMMAND'
13892# in which case we are not to be found in the path.
13893if test "x$as_myself" = x; then
13894  as_myself=$0
13895fi
13896if test ! -f "$as_myself"; then
13897  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13898  exit 1
13899fi
13900
13901# Unset variables that we do not need and which cause bugs (e.g. in
13902# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
13903# suppresses any "Segmentation fault" message there.  '((' could
13904# trigger a bug in pdksh 5.2.14.
13905for as_var in BASH_ENV ENV MAIL MAILPATH
13906do eval test x\${$as_var+set} = xset \
13907  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13908done
13909PS1='$ '
13910PS2='> '
13911PS4='+ '
13912
13913# NLS nuisances.
13914LC_ALL=C
13915export LC_ALL
13916LANGUAGE=C
13917export LANGUAGE
13918
13919# CDPATH.
13920(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13921
13922
13923# as_fn_error ERROR [LINENO LOG_FD]
13924# ---------------------------------
13925# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13926# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13927# script with status $?, using 1 if that was 0.
13928as_fn_error ()
13929{
13930  as_status=$?; test $as_status -eq 0 && as_status=1
13931  if test "$3"; then
13932    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13933    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13934  fi
13935  $as_echo "$as_me: error: $1" >&2
13936  as_fn_exit $as_status
13937} # as_fn_error
13938
13939
13940# as_fn_set_status STATUS
13941# -----------------------
13942# Set $? to STATUS, without forking.
13943as_fn_set_status ()
13944{
13945  return $1
13946} # as_fn_set_status
13947
13948# as_fn_exit STATUS
13949# -----------------
13950# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13951as_fn_exit ()
13952{
13953  set +e
13954  as_fn_set_status $1
13955  exit $1
13956} # as_fn_exit
13957
13958# as_fn_unset VAR
13959# ---------------
13960# Portably unset VAR.
13961as_fn_unset ()
13962{
13963  { eval $1=; unset $1;}
13964}
13965as_unset=as_fn_unset
13966# as_fn_append VAR VALUE
13967# ----------------------
13968# Append the text in VALUE to the end of the definition contained in VAR. Take
13969# advantage of any shell optimizations that allow amortized linear growth over
13970# repeated appends, instead of the typical quadratic growth present in naive
13971# implementations.
13972if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13973  eval 'as_fn_append ()
13974  {
13975    eval $1+=\$2
13976  }'
13977else
13978  as_fn_append ()
13979  {
13980    eval $1=\$$1\$2
13981  }
13982fi # as_fn_append
13983
13984# as_fn_arith ARG...
13985# ------------------
13986# Perform arithmetic evaluation on the ARGs, and store the result in the
13987# global $as_val. Take advantage of shells that can avoid forks. The arguments
13988# must be portable across $(()) and expr.
13989if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13990  eval 'as_fn_arith ()
13991  {
13992    as_val=$(( $* ))
13993  }'
13994else
13995  as_fn_arith ()
13996  {
13997    as_val=`expr "$@" || test $? -eq 1`
13998  }
13999fi # as_fn_arith
14000
14001
14002if expr a : '\(a\)' >/dev/null 2>&1 &&
14003   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14004  as_expr=expr
14005else
14006  as_expr=false
14007fi
14008
14009if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14010  as_basename=basename
14011else
14012  as_basename=false
14013fi
14014
14015if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14016  as_dirname=dirname
14017else
14018  as_dirname=false
14019fi
14020
14021as_me=`$as_basename -- "$0" ||
14022$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14023	 X"$0" : 'X\(//\)$' \| \
14024	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14025$as_echo X/"$0" |
14026    sed '/^.*\/\([^/][^/]*\)\/*$/{
14027	    s//\1/
14028	    q
14029	  }
14030	  /^X\/\(\/\/\)$/{
14031	    s//\1/
14032	    q
14033	  }
14034	  /^X\/\(\/\).*/{
14035	    s//\1/
14036	    q
14037	  }
14038	  s/.*/./; q'`
14039
14040# Avoid depending upon Character Ranges.
14041as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14042as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14043as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14044as_cr_digits='0123456789'
14045as_cr_alnum=$as_cr_Letters$as_cr_digits
14046
14047ECHO_C= ECHO_N= ECHO_T=
14048case `echo -n x` in #(((((
14049-n*)
14050  case `echo 'xy\c'` in
14051  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14052  xy)  ECHO_C='\c';;
14053  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14054       ECHO_T='	';;
14055  esac;;
14056*)
14057  ECHO_N='-n';;
14058esac
14059
14060rm -f conf$$ conf$$.exe conf$$.file
14061if test -d conf$$.dir; then
14062  rm -f conf$$.dir/conf$$.file
14063else
14064  rm -f conf$$.dir
14065  mkdir conf$$.dir 2>/dev/null
14066fi
14067if (echo >conf$$.file) 2>/dev/null; then
14068  if ln -s conf$$.file conf$$ 2>/dev/null; then
14069    as_ln_s='ln -s'
14070    # ... but there are two gotchas:
14071    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14072    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14073    # In both cases, we have to default to `cp -p'.
14074    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14075      as_ln_s='cp -p'
14076  elif ln conf$$.file conf$$ 2>/dev/null; then
14077    as_ln_s=ln
14078  else
14079    as_ln_s='cp -p'
14080  fi
14081else
14082  as_ln_s='cp -p'
14083fi
14084rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14085rmdir conf$$.dir 2>/dev/null
14086
14087
14088# as_fn_mkdir_p
14089# -------------
14090# Create "$as_dir" as a directory, including parents if necessary.
14091as_fn_mkdir_p ()
14092{
14093
14094  case $as_dir in #(
14095  -*) as_dir=./$as_dir;;
14096  esac
14097  test -d "$as_dir" || eval $as_mkdir_p || {
14098    as_dirs=
14099    while :; do
14100      case $as_dir in #(
14101      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14102      *) as_qdir=$as_dir;;
14103      esac
14104      as_dirs="'$as_qdir' $as_dirs"
14105      as_dir=`$as_dirname -- "$as_dir" ||
14106$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14107	 X"$as_dir" : 'X\(//\)[^/]' \| \
14108	 X"$as_dir" : 'X\(//\)$' \| \
14109	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14110$as_echo X"$as_dir" |
14111    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14112	    s//\1/
14113	    q
14114	  }
14115	  /^X\(\/\/\)[^/].*/{
14116	    s//\1/
14117	    q
14118	  }
14119	  /^X\(\/\/\)$/{
14120	    s//\1/
14121	    q
14122	  }
14123	  /^X\(\/\).*/{
14124	    s//\1/
14125	    q
14126	  }
14127	  s/.*/./; q'`
14128      test -d "$as_dir" && break
14129    done
14130    test -z "$as_dirs" || eval "mkdir $as_dirs"
14131  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14132
14133
14134} # as_fn_mkdir_p
14135if mkdir -p . 2>/dev/null; then
14136  as_mkdir_p='mkdir -p "$as_dir"'
14137else
14138  test -d ./-p && rmdir ./-p
14139  as_mkdir_p=false
14140fi
14141
14142if test -x / >/dev/null 2>&1; then
14143  as_test_x='test -x'
14144else
14145  if ls -dL / >/dev/null 2>&1; then
14146    as_ls_L_option=L
14147  else
14148    as_ls_L_option=
14149  fi
14150  as_test_x='
14151    eval sh -c '\''
14152      if test -d "$1"; then
14153	test -d "$1/.";
14154      else
14155	case $1 in #(
14156	-*)set "./$1";;
14157	esac;
14158	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14159	???[sx]*):;;*)false;;esac;fi
14160    '\'' sh
14161  '
14162fi
14163as_executable_p=$as_test_x
14164
14165# Sed expression to map a string onto a valid CPP name.
14166as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14167
14168# Sed expression to map a string onto a valid variable name.
14169as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14170
14171
14172exec 6>&1
14173## ----------------------------------- ##
14174## Main body of $CONFIG_STATUS script. ##
14175## ----------------------------------- ##
14176_ASEOF
14177test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14178
14179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14180# Save the log message, to keep $0 and so on meaningful, and to
14181# report actual input values of CONFIG_FILES etc. instead of their
14182# values after options handling.
14183ac_log="
14184This file was extended by TRE $as_me 0.8.0, which was
14185generated by GNU Autoconf 2.65.  Invocation command line was
14186
14187  CONFIG_FILES    = $CONFIG_FILES
14188  CONFIG_HEADERS  = $CONFIG_HEADERS
14189  CONFIG_LINKS    = $CONFIG_LINKS
14190  CONFIG_COMMANDS = $CONFIG_COMMANDS
14191  $ $0 $@
14192
14193on `(hostname || uname -n) 2>/dev/null | sed 1q`
14194"
14195
14196_ACEOF
14197
14198case $ac_config_files in *"
14199"*) set x $ac_config_files; shift; ac_config_files=$*;;
14200esac
14201
14202case $ac_config_headers in *"
14203"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14204esac
14205
14206
14207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14208# Files that config.status was made for.
14209config_files="$ac_config_files"
14210config_headers="$ac_config_headers"
14211config_commands="$ac_config_commands"
14212
14213_ACEOF
14214
14215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14216ac_cs_usage="\
14217\`$as_me' instantiates files and other configuration actions
14218from templates according to the current configuration.  Unless the files
14219and actions are specified as TAGs, all are instantiated by default.
14220
14221Usage: $0 [OPTION]... [TAG]...
14222
14223  -h, --help       print this help, then exit
14224  -V, --version    print version number and configuration settings, then exit
14225      --config     print configuration, then exit
14226  -q, --quiet, --silent
14227                   do not print progress messages
14228  -d, --debug      don't remove temporary files
14229      --recheck    update $as_me by reconfiguring in the same conditions
14230      --file=FILE[:TEMPLATE]
14231                   instantiate the configuration file FILE
14232      --header=FILE[:TEMPLATE]
14233                   instantiate the configuration header FILE
14234
14235Configuration files:
14236$config_files
14237
14238Configuration headers:
14239$config_headers
14240
14241Configuration commands:
14242$config_commands
14243
14244Report bugs to <tre-general@lists.laurikari.net>."
14245
14246_ACEOF
14247cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14248ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14249ac_cs_version="\\
14250TRE config.status 0.8.0
14251configured by $0, generated by GNU Autoconf 2.65,
14252  with options \\"\$ac_cs_config\\"
14253
14254Copyright (C) 2009 Free Software Foundation, Inc.
14255This config.status script is free software; the Free Software Foundation
14256gives unlimited permission to copy, distribute and modify it."
14257
14258ac_pwd='$ac_pwd'
14259srcdir='$srcdir'
14260INSTALL='$INSTALL'
14261MKDIR_P='$MKDIR_P'
14262AWK='$AWK'
14263test -n "\$AWK" || AWK=awk
14264_ACEOF
14265
14266cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14267# The default lists apply if the user does not specify any file.
14268ac_need_defaults=:
14269while test $# != 0
14270do
14271  case $1 in
14272  --*=*)
14273    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14274    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14275    ac_shift=:
14276    ;;
14277  *)
14278    ac_option=$1
14279    ac_optarg=$2
14280    ac_shift=shift
14281    ;;
14282  esac
14283
14284  case $ac_option in
14285  # Handling of the options.
14286  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14287    ac_cs_recheck=: ;;
14288  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14289    $as_echo "$ac_cs_version"; exit ;;
14290  --config | --confi | --conf | --con | --co | --c )
14291    $as_echo "$ac_cs_config"; exit ;;
14292  --debug | --debu | --deb | --de | --d | -d )
14293    debug=: ;;
14294  --file | --fil | --fi | --f )
14295    $ac_shift
14296    case $ac_optarg in
14297    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14298    esac
14299    as_fn_append CONFIG_FILES " '$ac_optarg'"
14300    ac_need_defaults=false;;
14301  --header | --heade | --head | --hea )
14302    $ac_shift
14303    case $ac_optarg in
14304    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14305    esac
14306    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14307    ac_need_defaults=false;;
14308  --he | --h)
14309    # Conflict between --help and --header
14310    as_fn_error "ambiguous option: \`$1'
14311Try \`$0 --help' for more information.";;
14312  --help | --hel | -h )
14313    $as_echo "$ac_cs_usage"; exit ;;
14314  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14315  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14316    ac_cs_silent=: ;;
14317
14318  # This is an error.
14319  -*) as_fn_error "unrecognized option: \`$1'
14320Try \`$0 --help' for more information." ;;
14321
14322  *) as_fn_append ac_config_targets " $1"
14323     ac_need_defaults=false ;;
14324
14325  esac
14326  shift
14327done
14328
14329ac_configure_extra_args=
14330
14331if $ac_cs_silent; then
14332  exec 6>/dev/null
14333  ac_configure_extra_args="$ac_configure_extra_args --silent"
14334fi
14335
14336_ACEOF
14337cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14338if \$ac_cs_recheck; then
14339  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14340  shift
14341  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14342  CONFIG_SHELL='$SHELL'
14343  export CONFIG_SHELL
14344  exec "\$@"
14345fi
14346
14347_ACEOF
14348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14349exec 5>>config.log
14350{
14351  echo
14352  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14353## Running $as_me. ##
14354_ASBOX
14355  $as_echo "$ac_log"
14356} >&5
14357
14358_ACEOF
14359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14360#
14361# INIT-COMMANDS
14362#
14363AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14364# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14365    # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
14366    # from automake < 1.5.
14367    eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14368    # Capture the value of LINGUAS because we need it to compute CATALOGS.
14369    LINGUAS="${LINGUAS-%UNSET%}"
14370
14371
14372_ACEOF
14373
14374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14375
14376# Handling of arguments.
14377for ac_config_target in $ac_config_targets
14378do
14379  case $ac_config_target in
14380    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14381    "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
14382    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14383    "lib/tre-config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/tre-config.h" ;;
14384    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14385    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14386    "doc/agrep.1") CONFIG_FILES="$CONFIG_FILES doc/agrep.1" ;;
14387    "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14388    "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
14389    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14390    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14391    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
14392    "tests/agrep/Makefile") CONFIG_FILES="$CONFIG_FILES tests/agrep/Makefile" ;;
14393    "tre.pc") CONFIG_FILES="$CONFIG_FILES tre.pc" ;;
14394    "tre.spec") CONFIG_FILES="$CONFIG_FILES tre.spec" ;;
14395    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
14396
14397  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14398  esac
14399done
14400
14401
14402# If the user did not use the arguments to specify the items to instantiate,
14403# then the envvar interface is used.  Set only those that are not.
14404# We use the long form for the default assignment because of an extremely
14405# bizarre bug on SunOS 4.1.3.
14406if $ac_need_defaults; then
14407  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14408  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14409  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14410fi
14411
14412# Have a temporary directory for convenience.  Make it in the build tree
14413# simply because there is no reason against having it here, and in addition,
14414# creating and moving files from /tmp can sometimes cause problems.
14415# Hook for its removal unless debugging.
14416# Note that there is a small window in which the directory will not be cleaned:
14417# after its creation but before its name has been assigned to `$tmp'.
14418$debug ||
14419{
14420  tmp=
14421  trap 'exit_status=$?
14422  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14423' 0
14424  trap 'as_fn_exit 1' 1 2 13 15
14425}
14426# Create a (secure) tmp directory for tmp files.
14427
14428{
14429  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14430  test -n "$tmp" && test -d "$tmp"
14431}  ||
14432{
14433  tmp=./conf$$-$RANDOM
14434  (umask 077 && mkdir "$tmp")
14435} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14436
14437# Set up the scripts for CONFIG_FILES section.
14438# No need to generate them if there are no CONFIG_FILES.
14439# This happens for instance with `./config.status config.h'.
14440if test -n "$CONFIG_FILES"; then
14441
14442
14443ac_cr=`echo X | tr X '\015'`
14444# On cygwin, bash can eat \r inside `` if the user requested igncr.
14445# But we know of no other shell where ac_cr would be empty at this
14446# point, so we can use a bashism as a fallback.
14447if test "x$ac_cr" = x; then
14448  eval ac_cr=\$\'\\r\'
14449fi
14450ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14451if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14452  ac_cs_awk_cr='\r'
14453else
14454  ac_cs_awk_cr=$ac_cr
14455fi
14456
14457echo 'BEGIN {' >"$tmp/subs1.awk" &&
14458_ACEOF
14459
14460
14461{
14462  echo "cat >conf$$subs.awk <<_ACEOF" &&
14463  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14464  echo "_ACEOF"
14465} >conf$$subs.sh ||
14466  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14467ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14468ac_delim='%!_!# '
14469for ac_last_try in false false false false false :; do
14470  . ./conf$$subs.sh ||
14471    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14472
14473  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14474  if test $ac_delim_n = $ac_delim_num; then
14475    break
14476  elif $ac_last_try; then
14477    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14478  else
14479    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14480  fi
14481done
14482rm -f conf$$subs.sh
14483
14484cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14485cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14486_ACEOF
14487sed -n '
14488h
14489s/^/S["/; s/!.*/"]=/
14490p
14491g
14492s/^[^!]*!//
14493:repl
14494t repl
14495s/'"$ac_delim"'$//
14496t delim
14497:nl
14498h
14499s/\(.\{148\}\)..*/\1/
14500t more1
14501s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14502p
14503n
14504b repl
14505:more1
14506s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14507p
14508g
14509s/.\{148\}//
14510t nl
14511:delim
14512h
14513s/\(.\{148\}\)..*/\1/
14514t more2
14515s/["\\]/\\&/g; s/^/"/; s/$/"/
14516p
14517b
14518:more2
14519s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14520p
14521g
14522s/.\{148\}//
14523t delim
14524' <conf$$subs.awk | sed '
14525/^[^""]/{
14526  N
14527  s/\n//
14528}
14529' >>$CONFIG_STATUS || ac_write_fail=1
14530rm -f conf$$subs.awk
14531cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14532_ACAWK
14533cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14534  for (key in S) S_is_set[key] = 1
14535  FS = ""
14536
14537}
14538{
14539  line = $ 0
14540  nfields = split(line, field, "@")
14541  substed = 0
14542  len = length(field[1])
14543  for (i = 2; i < nfields; i++) {
14544    key = field[i]
14545    keylen = length(key)
14546    if (S_is_set[key]) {
14547      value = S[key]
14548      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14549      len += length(value) + length(field[++i])
14550      substed = 1
14551    } else
14552      len += 1 + keylen
14553  }
14554
14555  print line
14556}
14557
14558_ACAWK
14559_ACEOF
14560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14561if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14562  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14563else
14564  cat
14565fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14566  || as_fn_error "could not setup config files machinery" "$LINENO" 5
14567_ACEOF
14568
14569# VPATH may cause trouble with some makes, so we remove $(srcdir),
14570# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14571# trailing colons and then remove the whole line if VPATH becomes empty
14572# (actually we leave an empty line to preserve line numbers).
14573if test "x$srcdir" = x.; then
14574  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
14575s/:*\$(srcdir):*/:/
14576s/:*\${srcdir}:*/:/
14577s/:*@srcdir@:*/:/
14578s/^\([^=]*=[	 ]*\):*/\1/
14579s/:*$//
14580s/^[^=]*=[	 ]*$//
14581}'
14582fi
14583
14584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14585fi # test -n "$CONFIG_FILES"
14586
14587# Set up the scripts for CONFIG_HEADERS section.
14588# No need to generate them if there are no CONFIG_HEADERS.
14589# This happens for instance with `./config.status Makefile'.
14590if test -n "$CONFIG_HEADERS"; then
14591cat >"$tmp/defines.awk" <<\_ACAWK ||
14592BEGIN {
14593_ACEOF
14594
14595# Transform confdefs.h into an awk script `defines.awk', embedded as
14596# here-document in config.status, that substitutes the proper values into
14597# config.h.in to produce config.h.
14598
14599# Create a delimiter string that does not exist in confdefs.h, to ease
14600# handling of long lines.
14601ac_delim='%!_!# '
14602for ac_last_try in false false :; do
14603  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14604  if test -z "$ac_t"; then
14605    break
14606  elif $ac_last_try; then
14607    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14608  else
14609    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14610  fi
14611done
14612
14613# For the awk script, D is an array of macro values keyed by name,
14614# likewise P contains macro parameters if any.  Preserve backslash
14615# newline sequences.
14616
14617ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14618sed -n '
14619s/.\{148\}/&'"$ac_delim"'/g
14620t rset
14621:rset
14622s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
14623t def
14624d
14625:def
14626s/\\$//
14627t bsnl
14628s/["\\]/\\&/g
14629s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14630D["\1"]=" \3"/p
14631s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
14632d
14633:bsnl
14634s/["\\]/\\&/g
14635s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
14636D["\1"]=" \3\\\\\\n"\\/p
14637t cont
14638s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14639t cont
14640d
14641:cont
14642n
14643s/.\{148\}/&'"$ac_delim"'/g
14644t clear
14645:clear
14646s/\\$//
14647t bsnlc
14648s/["\\]/\\&/g; s/^/"/; s/$/"/p
14649d
14650:bsnlc
14651s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14652b cont
14653' <confdefs.h | sed '
14654s/'"$ac_delim"'/"\\\
14655"/g' >>$CONFIG_STATUS || ac_write_fail=1
14656
14657cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14658  for (key in D) D_is_set[key] = 1
14659  FS = ""
14660}
14661/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14662  line = \$ 0
14663  split(line, arg, " ")
14664  if (arg[1] == "#") {
14665    defundef = arg[2]
14666    mac1 = arg[3]
14667  } else {
14668    defundef = substr(arg[1], 2)
14669    mac1 = arg[2]
14670  }
14671  split(mac1, mac2, "(") #)
14672  macro = mac2[1]
14673  prefix = substr(line, 1, index(line, defundef) - 1)
14674  if (D_is_set[macro]) {
14675    # Preserve the white space surrounding the "#".
14676    print prefix "define", macro P[macro] D[macro]
14677    next
14678  } else {
14679    # Replace #undef with comments.  This is necessary, for example,
14680    # in the case of _POSIX_SOURCE, which is predefined and required
14681    # on some systems where configure will not decide to define it.
14682    if (defundef == "undef") {
14683      print "/*", prefix defundef, macro, "*/"
14684      next
14685    }
14686  }
14687}
14688{ print }
14689_ACAWK
14690_ACEOF
14691cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14692  as_fn_error "could not setup config headers machinery" "$LINENO" 5
14693fi # test -n "$CONFIG_HEADERS"
14694
14695
14696eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
14697shift
14698for ac_tag
14699do
14700  case $ac_tag in
14701  :[FHLC]) ac_mode=$ac_tag; continue;;
14702  esac
14703  case $ac_mode$ac_tag in
14704  :[FHL]*:*);;
14705  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
14706  :[FH]-) ac_tag=-:-;;
14707  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14708  esac
14709  ac_save_IFS=$IFS
14710  IFS=:
14711  set x $ac_tag
14712  IFS=$ac_save_IFS
14713  shift
14714  ac_file=$1
14715  shift
14716
14717  case $ac_mode in
14718  :L) ac_source=$1;;
14719  :[FH])
14720    ac_file_inputs=
14721    for ac_f
14722    do
14723      case $ac_f in
14724      -) ac_f="$tmp/stdin";;
14725      *) # Look for the file first in the build tree, then in the source tree
14726	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
14727	 # because $ac_f cannot contain `:'.
14728	 test -f "$ac_f" ||
14729	   case $ac_f in
14730	   [\\/$]*) false;;
14731	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14732	   esac ||
14733	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14734      esac
14735      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14736      as_fn_append ac_file_inputs " '$ac_f'"
14737    done
14738
14739    # Let's still pretend it is `configure' which instantiates (i.e., don't
14740    # use $as_me), people would be surprised to read:
14741    #    /* config.h.  Generated by config.status.  */
14742    configure_input='Generated from '`
14743	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14744	`' by configure.'
14745    if test x"$ac_file" != x-; then
14746      configure_input="$ac_file.  $configure_input"
14747      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14748$as_echo "$as_me: creating $ac_file" >&6;}
14749    fi
14750    # Neutralize special characters interpreted by sed in replacement strings.
14751    case $configure_input in #(
14752    *\&* | *\|* | *\\* )
14753       ac_sed_conf_input=`$as_echo "$configure_input" |
14754       sed 's/[\\\\&|]/\\\\&/g'`;; #(
14755    *) ac_sed_conf_input=$configure_input;;
14756    esac
14757
14758    case $ac_tag in
14759    *:-:* | *:-) cat >"$tmp/stdin" \
14760      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14761    esac
14762    ;;
14763  esac
14764
14765  ac_dir=`$as_dirname -- "$ac_file" ||
14766$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14767	 X"$ac_file" : 'X\(//\)[^/]' \| \
14768	 X"$ac_file" : 'X\(//\)$' \| \
14769	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14770$as_echo X"$ac_file" |
14771    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14772	    s//\1/
14773	    q
14774	  }
14775	  /^X\(\/\/\)[^/].*/{
14776	    s//\1/
14777	    q
14778	  }
14779	  /^X\(\/\/\)$/{
14780	    s//\1/
14781	    q
14782	  }
14783	  /^X\(\/\).*/{
14784	    s//\1/
14785	    q
14786	  }
14787	  s/.*/./; q'`
14788  as_dir="$ac_dir"; as_fn_mkdir_p
14789  ac_builddir=.
14790
14791case "$ac_dir" in
14792.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14793*)
14794  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14795  # A ".." for each directory in $ac_dir_suffix.
14796  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14797  case $ac_top_builddir_sub in
14798  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14799  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14800  esac ;;
14801esac
14802ac_abs_top_builddir=$ac_pwd
14803ac_abs_builddir=$ac_pwd$ac_dir_suffix
14804# for backward compatibility:
14805ac_top_builddir=$ac_top_build_prefix
14806
14807case $srcdir in
14808  .)  # We are building in place.
14809    ac_srcdir=.
14810    ac_top_srcdir=$ac_top_builddir_sub
14811    ac_abs_top_srcdir=$ac_pwd ;;
14812  [\\/]* | ?:[\\/]* )  # Absolute name.
14813    ac_srcdir=$srcdir$ac_dir_suffix;
14814    ac_top_srcdir=$srcdir
14815    ac_abs_top_srcdir=$srcdir ;;
14816  *) # Relative name.
14817    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14818    ac_top_srcdir=$ac_top_build_prefix$srcdir
14819    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14820esac
14821ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14822
14823
14824  case $ac_mode in
14825  :F)
14826  #
14827  # CONFIG_FILE
14828  #
14829
14830  case $INSTALL in
14831  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14832  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14833  esac
14834  ac_MKDIR_P=$MKDIR_P
14835  case $MKDIR_P in
14836  [\\/$]* | ?:[\\/]* ) ;;
14837  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14838  esac
14839_ACEOF
14840
14841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842# If the template does not know about datarootdir, expand it.
14843# FIXME: This hack should be removed a few years after 2.60.
14844ac_datarootdir_hack=; ac_datarootdir_seen=
14845ac_sed_dataroot='
14846/datarootdir/ {
14847  p
14848  q
14849}
14850/@datadir@/p
14851/@docdir@/p
14852/@infodir@/p
14853/@localedir@/p
14854/@mandir@/p'
14855case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14856*datarootdir*) ac_datarootdir_seen=yes;;
14857*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14858  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14859$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14860_ACEOF
14861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14862  ac_datarootdir_hack='
14863  s&@datadir@&$datadir&g
14864  s&@docdir@&$docdir&g
14865  s&@infodir@&$infodir&g
14866  s&@localedir@&$localedir&g
14867  s&@mandir@&$mandir&g
14868  s&\\\${datarootdir}&$datarootdir&g' ;;
14869esac
14870_ACEOF
14871
14872# Neutralize VPATH when `$srcdir' = `.'.
14873# Shell code in configure.ac might set extrasub.
14874# FIXME: do we really want to maintain this feature?
14875cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14876ac_sed_extra="$ac_vpsub
14877$extrasub
14878_ACEOF
14879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14880:t
14881/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14882s|@configure_input@|$ac_sed_conf_input|;t t
14883s&@top_builddir@&$ac_top_builddir_sub&;t t
14884s&@top_build_prefix@&$ac_top_build_prefix&;t t
14885s&@srcdir@&$ac_srcdir&;t t
14886s&@abs_srcdir@&$ac_abs_srcdir&;t t
14887s&@top_srcdir@&$ac_top_srcdir&;t t
14888s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14889s&@builddir@&$ac_builddir&;t t
14890s&@abs_builddir@&$ac_abs_builddir&;t t
14891s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14892s&@INSTALL@&$ac_INSTALL&;t t
14893s&@MKDIR_P@&$ac_MKDIR_P&;t t
14894$ac_datarootdir_hack
14895"
14896eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14897  || as_fn_error "could not create $ac_file" "$LINENO" 5
14898
14899test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14900  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14901  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14902  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14903which seems to be undefined.  Please make sure it is defined." >&5
14904$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14905which seems to be undefined.  Please make sure it is defined." >&2;}
14906
14907  rm -f "$tmp/stdin"
14908  case $ac_file in
14909  -) cat "$tmp/out" && rm -f "$tmp/out";;
14910  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14911  esac \
14912  || as_fn_error "could not create $ac_file" "$LINENO" 5
14913 ;;
14914  :H)
14915  #
14916  # CONFIG_HEADER
14917  #
14918  if test x"$ac_file" != x-; then
14919    {
14920      $as_echo "/* $configure_input  */" \
14921      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14922    } >"$tmp/config.h" \
14923      || as_fn_error "could not create $ac_file" "$LINENO" 5
14924    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14925      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14926$as_echo "$as_me: $ac_file is unchanged" >&6;}
14927    else
14928      rm -f "$ac_file"
14929      mv "$tmp/config.h" "$ac_file" \
14930	|| as_fn_error "could not create $ac_file" "$LINENO" 5
14931    fi
14932  else
14933    $as_echo "/* $configure_input  */" \
14934      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14935      || as_fn_error "could not create -" "$LINENO" 5
14936  fi
14937# Compute "$ac_file"'s index in $config_headers.
14938_am_arg="$ac_file"
14939_am_stamp_count=1
14940for _am_header in $config_headers :; do
14941  case $_am_header in
14942    $_am_arg | $_am_arg:* )
14943      break ;;
14944    * )
14945      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14946  esac
14947done
14948echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14949$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14950	 X"$_am_arg" : 'X\(//\)[^/]' \| \
14951	 X"$_am_arg" : 'X\(//\)$' \| \
14952	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14953$as_echo X"$_am_arg" |
14954    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14955	    s//\1/
14956	    q
14957	  }
14958	  /^X\(\/\/\)[^/].*/{
14959	    s//\1/
14960	    q
14961	  }
14962	  /^X\(\/\/\)$/{
14963	    s//\1/
14964	    q
14965	  }
14966	  /^X\(\/\).*/{
14967	    s//\1/
14968	    q
14969	  }
14970	  s/.*/./; q'`/stamp-h$_am_stamp_count
14971 ;;
14972
14973  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14974$as_echo "$as_me: executing $ac_file commands" >&6;}
14975 ;;
14976  esac
14977
14978
14979  case $ac_file$ac_mode in
14980    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
14981  # Strip MF so we end up with the name of the file.
14982  mf=`echo "$mf" | sed -e 's/:.*$//'`
14983  # Check whether this is an Automake generated Makefile or not.
14984  # We used to match only the files named `Makefile.in', but
14985  # some people rename them; so instead we look at the file content.
14986  # Grep'ing the first line is not enough: some people post-process
14987  # each Makefile.in and add a new line on top of each file to say so.
14988  # Grep'ing the whole file is not good either: AIX grep has a line
14989  # limit of 2048, but all sed's we know have understand at least 4000.
14990  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14991    dirpart=`$as_dirname -- "$mf" ||
14992$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14993	 X"$mf" : 'X\(//\)[^/]' \| \
14994	 X"$mf" : 'X\(//\)$' \| \
14995	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14996$as_echo X"$mf" |
14997    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14998	    s//\1/
14999	    q
15000	  }
15001	  /^X\(\/\/\)[^/].*/{
15002	    s//\1/
15003	    q
15004	  }
15005	  /^X\(\/\/\)$/{
15006	    s//\1/
15007	    q
15008	  }
15009	  /^X\(\/\).*/{
15010	    s//\1/
15011	    q
15012	  }
15013	  s/.*/./; q'`
15014  else
15015    continue
15016  fi
15017  # Extract the definition of DEPDIR, am__include, and am__quote
15018  # from the Makefile without running `make'.
15019  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15020  test -z "$DEPDIR" && continue
15021  am__include=`sed -n 's/^am__include = //p' < "$mf"`
15022  test -z "am__include" && continue
15023  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15024  # When using ansi2knr, U may be empty or an underscore; expand it
15025  U=`sed -n 's/^U = //p' < "$mf"`
15026  # Find all dependency output files, they are included files with
15027  # $(DEPDIR) in their names.  We invoke sed twice because it is the
15028  # simplest approach to changing $(DEPDIR) to its actual value in the
15029  # expansion.
15030  for file in `sed -n "
15031    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15032       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15033    # Make sure the directory exists.
15034    test -f "$dirpart/$file" && continue
15035    fdir=`$as_dirname -- "$file" ||
15036$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15037	 X"$file" : 'X\(//\)[^/]' \| \
15038	 X"$file" : 'X\(//\)$' \| \
15039	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15040$as_echo X"$file" |
15041    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15042	    s//\1/
15043	    q
15044	  }
15045	  /^X\(\/\/\)[^/].*/{
15046	    s//\1/
15047	    q
15048	  }
15049	  /^X\(\/\/\)$/{
15050	    s//\1/
15051	    q
15052	  }
15053	  /^X\(\/\).*/{
15054	    s//\1/
15055	    q
15056	  }
15057	  s/.*/./; q'`
15058    as_dir=$dirpart/$fdir; as_fn_mkdir_p
15059    # echo "creating $dirpart/$file"
15060    echo '# dummy' > "$dirpart/$file"
15061  done
15062done
15063 ;;
15064    "po-directories":C)
15065    for ac_file in $CONFIG_FILES; do
15066      # Support "outfile[:infile[:infile...]]"
15067      case "$ac_file" in
15068        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15069      esac
15070      # PO directories have a Makefile.in generated from Makefile.in.in.
15071      case "$ac_file" in */Makefile.in)
15072        # Adjust a relative srcdir.
15073        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15074        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15075        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15076        # In autoconf-2.13 it is called $ac_given_srcdir.
15077        # In autoconf-2.50 it is called $srcdir.
15078        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15079        case "$ac_given_srcdir" in
15080          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15081          /*) top_srcdir="$ac_given_srcdir" ;;
15082          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15083        esac
15084        # Treat a directory as a PO directory if and only if it has a
15085        # POTFILES.in file. This allows packages to have multiple PO
15086        # directories under different names or in different locations.
15087        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15088          rm -f "$ac_dir/POTFILES"
15089          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15090          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
15091          POMAKEFILEDEPS="POTFILES.in"
15092          # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
15093          # on $ac_dir but don't depend on user-specified configuration
15094          # parameters.
15095          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15096            # The LINGUAS file contains the set of available languages.
15097            if test -n "$OBSOLETE_ALL_LINGUAS"; then
15098              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15099            fi
15100            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15101            # Hide the ALL_LINGUAS assigment from automake < 1.5.
15102            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15103            POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15104          else
15105            # The set of available languages was given in configure.in.
15106            # Hide the ALL_LINGUAS assigment from automake < 1.5.
15107            eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15108          fi
15109          # Compute POFILES
15110          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15111          # Compute UPDATEPOFILES
15112          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15113          # Compute DUMMYPOFILES
15114          # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15115          # Compute GMOFILES
15116          # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15117          case "$ac_given_srcdir" in
15118            .) srcdirpre= ;;
15119            *) srcdirpre='$(srcdir)/' ;;
15120          esac
15121          POFILES=
15122          UPDATEPOFILES=
15123          DUMMYPOFILES=
15124          GMOFILES=
15125          for lang in $ALL_LINGUAS; do
15126            POFILES="$POFILES $srcdirpre$lang.po"
15127            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15128            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15129            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15130          done
15131          # CATALOGS depends on both $ac_dir and the user's LINGUAS
15132          # environment variable.
15133          INST_LINGUAS=
15134          if test -n "$ALL_LINGUAS"; then
15135            for presentlang in $ALL_LINGUAS; do
15136              useit=no
15137              if test "%UNSET%" != "$LINGUAS"; then
15138                desiredlanguages="$LINGUAS"
15139              else
15140                desiredlanguages="$ALL_LINGUAS"
15141              fi
15142              for desiredlang in $desiredlanguages; do
15143                # Use the presentlang catalog if desiredlang is
15144                #   a. equal to presentlang, or
15145                #   b. a variant of presentlang (because in this case,
15146                #      presentlang can be used as a fallback for messages
15147                #      which are not translated in the desiredlang catalog).
15148                case "$desiredlang" in
15149                  "$presentlang"*) useit=yes;;
15150                esac
15151              done
15152              if test $useit = yes; then
15153                INST_LINGUAS="$INST_LINGUAS $presentlang"
15154              fi
15155            done
15156          fi
15157          CATALOGS=
15158          if test -n "$INST_LINGUAS"; then
15159            for lang in $INST_LINGUAS; do
15160              CATALOGS="$CATALOGS $lang.gmo"
15161            done
15162          fi
15163          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15164          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15165          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15166            if test -f "$f"; then
15167              case "$f" in
15168                *.orig | *.bak | *~) ;;
15169                *) cat "$f" >> "$ac_dir/Makefile" ;;
15170              esac
15171            fi
15172          done
15173        fi
15174        ;;
15175      esac
15176    done ;;
15177
15178  esac
15179done # for ac_tag
15180
15181
15182as_fn_exit 0
15183_ACEOF
15184ac_clean_files=$ac_clean_files_save
15185
15186test $ac_write_fail = 0 ||
15187  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15188
15189
15190# configure is writing to config.log, and then calls config.status.
15191# config.status does its own redirection, appending to config.log.
15192# Unfortunately, on DOS this fails, as config.log is still kept open
15193# by configure, so config.status won't be able to write to it; its
15194# output is simply discarded.  So we exec the FD to /dev/null,
15195# effectively closing config.log, so it can be properly (re)opened and
15196# appended to by config.status.  When coming back to configure, we
15197# need to make the FD available again.
15198if test "$no_create" != yes; then
15199  ac_cs_success=:
15200  ac_config_status_args=
15201  test "$silent" = yes &&
15202    ac_config_status_args="$ac_config_status_args --quiet"
15203  exec 5>/dev/null
15204  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15205  exec 5>>config.log
15206  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15207  # would make configure fail if this is the last instruction.
15208  $ac_cs_success || as_fn_exit $?
15209fi
15210if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15211  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15212$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15213fi
15214
15215
15216
15217
15218cat <<EOF
15219
15220
15221Configuration summary
15222=====================
15223
15224TRE is now configured as follows:
15225
15226* Compilation environment
15227
15228  CC       = $CC
15229  CFLAGS   = $CFLAGS
15230  CPP      = $CPP
15231  CPPFLAGS = $CPPFLAGS
15232  LD       = $LD
15233  LDFLAGS  = $LDFLAGS
15234  LIBS     = $LIBS
15235  Use alloca():                       $tre_use_alloca
15236
15237* TRE options
15238
15239  Development-time debugging:         $tre_debug
15240  System regex ABI compatibility:     $tre_system_abi
15241  Wide character (wchar_t) support:   $tre_wchar
15242  Multibyte character set support:    $tre_multibyte
15243  Approximate matching support:       $tre_approx
15244  Build and install agrep:            $tre_agrep
15245
15246EOF
15247