1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.64.
4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90case $0 in #((
91  *[\\/]* ) as_myself=$0 ;;
92  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH
94do
95  IFS=$as_save_IFS
96  test -z "$as_dir" && as_dir=.
97    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98  done
99IFS=$as_save_IFS
100
101     ;;
102esac
103# We did not find ourselves, most probably we were run as `sh COMMAND'
104# in which case we are not to be found in the path.
105if test "x$as_myself" = x; then
106  as_myself=$0
107fi
108if test ! -f "$as_myself"; then
109  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110  exit 1
111fi
112
113# Unset variables that we do not need and which cause bugs (e.g. in
114# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
115# suppresses any "Segmentation fault" message there.  '((' could
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done
121PS1='$ '
122PS2='> '
123PS4='+ '
124
125# NLS nuisances.
126LC_ALL=C
127export LC_ALL
128LANGUAGE=C
129export LANGUAGE
130
131# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
134if test "x$CONFIG_SHELL" = x; then
135  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136  emulate sh
137  NULLCMD=:
138  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139  # is contrary to our usage.  Disable this feature.
140  alias -g '\${1+\"\$@\"}'='\"\$@\"'
141  setopt NO_GLOB_SUBST
142else
143  case \`(set -o) 2>/dev/null\` in #(
144  *posix*) :
145    set -o posix ;; #(
146  *) :
147     ;;
148esac
149fi
150"
151  as_required="as_fn_return () { (exit \$1); }
152as_fn_success () { as_fn_return 0; }
153as_fn_failure () { as_fn_return 1; }
154as_fn_ret_success () { return 0; }
155as_fn_ret_failure () { return 1; }
156
157exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165  exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173  if (eval "$as_required") 2>/dev/null; then :
174  as_have_required=yes
175else
176  as_have_required=no
177fi
178  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179
180else
181  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182as_found=false
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do
185  IFS=$as_save_IFS
186  test -z "$as_dir" && as_dir=.
187  as_found=:
188  case $as_dir in #(
189	 /*)
190	   for as_base in sh bash ksh sh5; do
191	     # Try only shells that exist, to save several forks.
192	     as_shell=$as_dir/$as_base
193	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195  CONFIG_SHELL=$as_shell as_have_required=yes
196		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197  break 2
198fi
199fi
200	   done;;
201       esac
202  as_found=false
203done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206  CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS
209
210
211      if test "x$CONFIG_SHELL" != x; then :
212  # We cannot yet assume a decent shell, so we have to provide a
213	# neutralization value for shells without unset; and this also
214	# works around shells that cannot unset nonexistent variables.
215	BASH_ENV=/dev/null
216	ENV=/dev/null
217	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218	export CONFIG_SHELL
219	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
220fi
221
222    if test x$as_have_required = xno; then :
223  $as_echo "$0: This script requires a shell more modern than all"
224  $as_echo "$0: the shells that I found on your system."
225  if test x${ZSH_VERSION+set} = xset ; then
226    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228  else
229    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233  fi
234  exit 1
235fi
236fi
237fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252  { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255
256# as_fn_set_status STATUS
257# -----------------------
258# Set $? to STATUS, without forking.
259as_fn_set_status ()
260{
261  return $1
262} # as_fn_set_status
263
264# as_fn_exit STATUS
265# -----------------
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267as_fn_exit ()
268{
269  set +e
270  as_fn_set_status $1
271  exit $1
272} # as_fn_exit
273
274# as_fn_mkdir_p
275# -------------
276# Create "$as_dir" as a directory, including parents if necessary.
277as_fn_mkdir_p ()
278{
279
280  case $as_dir in #(
281  -*) as_dir=./$as_dir;;
282  esac
283  test -d "$as_dir" || eval $as_mkdir_p || {
284    as_dirs=
285    while :; do
286      case $as_dir in #(
287      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288      *) as_qdir=$as_dir;;
289      esac
290      as_dirs="'$as_qdir' $as_dirs"
291      as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293	 X"$as_dir" : 'X\(//\)[^/]' \| \
294	 X"$as_dir" : 'X\(//\)$' \| \
295	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298	    s//\1/
299	    q
300	  }
301	  /^X\(\/\/\)[^/].*/{
302	    s//\1/
303	    q
304	  }
305	  /^X\(\/\/\)$/{
306	    s//\1/
307	    q
308	  }
309	  /^X\(\/\).*/{
310	    s//\1/
311	    q
312	  }
313	  s/.*/./; q'`
314      test -d "$as_dir" && break
315    done
316    test -z "$as_dirs" || eval "mkdir $as_dirs"
317  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328  eval 'as_fn_append ()
329  {
330    eval $1+=\$2
331  }'
332else
333  as_fn_append ()
334  {
335    eval $1=\$$1\$2
336  }
337fi # as_fn_append
338
339# as_fn_arith ARG...
340# ------------------
341# Perform arithmetic evaluation on the ARGs, and store the result in the
342# global $as_val. Take advantage of shells that can avoid forks. The arguments
343# must be portable across $(()) and expr.
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345  eval 'as_fn_arith ()
346  {
347    as_val=$(( $* ))
348  }'
349else
350  as_fn_arith ()
351  {
352    as_val=`expr "$@" || test $? -eq 1`
353  }
354fi # as_fn_arith
355
356
357# as_fn_error ERROR [LINENO LOG_FD]
358# ---------------------------------
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361# script with status $?, using 1 if that was 0.
362as_fn_error ()
363{
364  as_status=$?; test $as_status -eq 0 && as_status=1
365  if test "$3"; then
366    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368  fi
369  $as_echo "$as_me: error: $1" >&2
370  as_fn_exit $as_status
371} # as_fn_error
372
373if expr a : '\(a\)' >/dev/null 2>&1 &&
374   test "X`expr 00001 : '.*\(...\)'`" = X001; then
375  as_expr=expr
376else
377  as_expr=false
378fi
379
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381  as_basename=basename
382else
383  as_basename=false
384fi
385
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387  as_dirname=dirname
388else
389  as_dirname=false
390fi
391
392as_me=`$as_basename -- "$0" ||
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394	 X"$0" : 'X\(//\)$' \| \
395	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396$as_echo X/"$0" |
397    sed '/^.*\/\([^/][^/]*\)\/*$/{
398	    s//\1/
399	    q
400	  }
401	  /^X\/\(\/\/\)$/{
402	    s//\1/
403	    q
404	  }
405	  /^X\/\(\/\).*/{
406	    s//\1/
407	    q
408	  }
409	  s/.*/./; q'`
410
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417
418
419  as_lineno_1=$LINENO as_lineno_1a=$LINENO
420  as_lineno_2=$LINENO as_lineno_2a=$LINENO
421  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
424  sed -n '
425    p
426    /[$]LINENO/=
427  ' <$as_myself |
428    sed '
429      s/[$]LINENO.*/&-/
430      t lineno
431      b
432      :lineno
433      N
434      :loop
435      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436      t loop
437      s/-\n.*//
438    ' >$as_me.lineno &&
439  chmod +x "$as_me.lineno" ||
440    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
441
442  # Don't try to exec as it changes $[0], causing all sort of problems
443  # (the dirname of $[0] is not the place where we might find the
444  # original and so on.  Autoconf is especially sensitive to this).
445  . "./$as_me.lineno"
446  # Exit status is that of the last command.
447  exit
448}
449
450ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #(((((
452-n*)
453  case `echo 'xy\c'` in
454  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
455  xy)  ECHO_C='\c';;
456  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
457       ECHO_T='	';;
458  esac;;
459*)
460  ECHO_N='-n';;
461esac
462
463rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then
465  rm -f conf$$.dir/conf$$.file
466else
467  rm -f conf$$.dir
468  mkdir conf$$.dir 2>/dev/null
469fi
470if (echo >conf$$.file) 2>/dev/null; then
471  if ln -s conf$$.file conf$$ 2>/dev/null; then
472    as_ln_s='ln -s'
473    # ... but there are two gotchas:
474    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476    # In both cases, we have to default to `cp -p'.
477    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478      as_ln_s='cp -p'
479  elif ln conf$$.file conf$$ 2>/dev/null; then
480    as_ln_s=ln
481  else
482    as_ln_s='cp -p'
483  fi
484else
485  as_ln_s='cp -p'
486fi
487rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null
489
490if mkdir -p . 2>/dev/null; then
491  as_mkdir_p='mkdir -p "$as_dir"'
492else
493  test -d ./-p && rmdir ./-p
494  as_mkdir_p=false
495fi
496
497if test -x / >/dev/null 2>&1; then
498  as_test_x='test -x'
499else
500  if ls -dL / >/dev/null 2>&1; then
501    as_ls_L_option=L
502  else
503    as_ls_L_option=
504  fi
505  as_test_x='
506    eval sh -c '\''
507      if test -d "$1"; then
508	test -d "$1/.";
509      else
510	case $1 in #(
511	-*)set "./$1";;
512	esac;
513	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514	???[sx]*):;;*)false;;esac;fi
515    '\'' sh
516  '
517fi
518as_executable_p=$as_test_x
519
520# Sed expression to map a string onto a valid CPP name.
521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
522
523# Sed expression to map a string onto a valid variable name.
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525
526
527
528# Check that we are running under the correct shell.
529SHELL=${CONFIG_SHELL-/bin/sh}
530
531case X$lt_ECHO in
532X*--fallback-echo)
533  # Remove one level of quotation (which was required for Make).
534  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
535  ;;
536esac
537
538ECHO=${lt_ECHO-echo}
539if test "X$1" = X--no-reexec; then
540  # Discard the --no-reexec flag, and continue.
541  shift
542elif test "X$1" = X--fallback-echo; then
543  # Avoid inline document here, it may be left over
544  :
545elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546  # Yippee, $ECHO works!
547  :
548else
549  # Restart under the correct shell.
550  exec $SHELL "$0" --no-reexec ${1+"$@"}
551fi
552
553if test "X$1" = X--fallback-echo; then
554  # used as fallback echo
555  shift
556  cat <<_LT_EOF
557$*
558_LT_EOF
559  exit 0
560fi
561
562# The HP-UX ksh and POSIX shell print the target directory to stdout
563# if CDPATH is set.
564(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
565
566if test -z "$lt_ECHO"; then
567  if test "X${echo_test_string+set}" != Xset; then
568    # find a string as large as possible, as long as the shell can cope with it
569    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
573      then
574        break
575      fi
576    done
577  fi
578
579  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581     test "X$echo_testing_string" = "X$echo_test_string"; then
582    :
583  else
584    # The Solaris, AIX, and Digital Unix default echo programs unquote
585    # backslashes.  This makes it impossible to quote backslashes using
586    #   echo "$something" | sed 's/\\/\\\\/g'
587    #
588    # So, first we look for a working echo in the user's PATH.
589
590    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591    for dir in $PATH /usr/ucb; do
592      IFS="$lt_save_ifs"
593      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596         test "X$echo_testing_string" = "X$echo_test_string"; then
597        ECHO="$dir/echo"
598        break
599      fi
600    done
601    IFS="$lt_save_ifs"
602
603    if test "X$ECHO" = Xecho; then
604      # We didn't find a better echo, so look for alternatives.
605      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607         test "X$echo_testing_string" = "X$echo_test_string"; then
608        # This shell has a builtin print -r that does the trick.
609        ECHO='print -r'
610      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611	   test "X$CONFIG_SHELL" != X/bin/ksh; then
612        # If we have ksh, try running configure again with it.
613        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614        export ORIGINAL_CONFIG_SHELL
615        CONFIG_SHELL=/bin/ksh
616        export CONFIG_SHELL
617        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
618      else
619        # Try using printf.
620        ECHO='printf %s\n'
621        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623	   test "X$echo_testing_string" = "X$echo_test_string"; then
624	  # Cool, printf works
625	  :
626        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627	     test "X$echo_testing_string" = 'X\t' &&
628	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629	     test "X$echo_testing_string" = "X$echo_test_string"; then
630	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
631	  export CONFIG_SHELL
632	  SHELL="$CONFIG_SHELL"
633	  export SHELL
634	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
635        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636	     test "X$echo_testing_string" = 'X\t' &&
637	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638	     test "X$echo_testing_string" = "X$echo_test_string"; then
639	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
640        else
641	  # maybe with a smaller string...
642	  prev=:
643
644	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
646	    then
647	      break
648	    fi
649	    prev="$cmd"
650	  done
651
652	  if test "$prev" != 'sed 50q "$0"'; then
653	    echo_test_string=`eval $prev`
654	    export echo_test_string
655	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
656	  else
657	    # Oops.  We lost completely, so just stick with echo.
658	    ECHO=echo
659	  fi
660        fi
661      fi
662    fi
663  fi
664fi
665
666# Copy echo and quote the copy suitably for passing to libtool from
667# the Makefile, instead of quoting the original, which is used later.
668lt_ECHO=$ECHO
669if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
671fi
672
673
674
675
676exec 7<&0 </dev/null 6>&1
677
678# Name of the host.
679# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680# so uname gets run too.
681ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
682
683#
684# Initializations.
685#
686ac_default_prefix=/usr/local
687ac_clean_files=
688ac_config_libobj_dir=.
689LIBOBJS=
690cross_compiling=no
691subdirs=
692MFLAGS=
693MAKEFLAGS=
694
695# Identity of this package.
696PACKAGE_NAME=
697PACKAGE_TARNAME=
698PACKAGE_VERSION=
699PACKAGE_STRING=
700PACKAGE_BUGREPORT=
701PACKAGE_URL=
702
703ac_unique_file="./encrypt.c"
704# Factoring default headers for most tests.
705ac_includes_default="\
706#include <stdio.h>
707#ifdef HAVE_SYS_TYPES_H
708# include <sys/types.h>
709#endif
710#ifdef HAVE_SYS_STAT_H
711# include <sys/stat.h>
712#endif
713#ifdef STDC_HEADERS
714# include <stdlib.h>
715# include <stddef.h>
716#else
717# ifdef HAVE_STDLIB_H
718#  include <stdlib.h>
719# endif
720#endif
721#ifdef HAVE_STRING_H
722# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
723#  include <memory.h>
724# endif
725# include <string.h>
726#endif
727#ifdef HAVE_STRINGS_H
728# include <strings.h>
729#endif
730#ifdef HAVE_INTTYPES_H
731# include <inttypes.h>
732#endif
733#ifdef HAVE_STDINT_H
734# include <stdint.h>
735#endif
736#ifdef HAVE_UNISTD_H
737# include <unistd.h>
738#endif"
739
740ac_subst_vars='am__EXEEXT_FALSE
741am__EXEEXT_TRUE
742LTLIBOBJS
743LIBOBJS
744OTOOL64
745OTOOL
746LIPO
747NMEDIT
748DSYMUTIL
749lt_ECHO
750AR
751OBJDUMP
752LN_S
753NM
754ac_ct_DUMPBIN
755DUMPBIN
756LD
757FGREP
758SED
759LIBTOOL
760PLUGINS_FALSE
761PLUGINS_TRUE
762GTK_LIBS
763GTK_CFLAGS
764NSS_LIBS
765NSS_CFLAGS
766PURPLE_DATADIR
767PURPLE_LIBS
768PURPLE_CFLAGS
769PIDGIN_DATADIR
770PIDGIN_LIBS
771PIDGIN_CFLAGS
772PKG_CONFIG
773INTL_LIBTOOL_SUFFIX_PREFIX
774MKINSTALLDIRS
775GENCAT
776INSTOBJEXT
777DATADIRNAME
778POSUB
779POFILES
780INTLOBJS
781INTLLIBS
782GMOFILES
783CATOBJEXT
784CATALOGS
785USE_INCLUDED_LIBINTL
786BUILD_INCLUDED_LIBINTL
787INTLBISON
788XGETTEXT
789GMSGFMT
790MSGFMT
791USE_NLS
792LIBICONV
793GLIBC21
794ALLOCA
795EGREP
796GREP
797CPP
798RANLIB
799am__fastdepCC_FALSE
800am__fastdepCC_TRUE
801CCDEPMODE
802AMDEPBACKSLASH
803AMDEP_FALSE
804AMDEP_TRUE
805am__quote
806am__include
807DEPDIR
808OBJEXT
809EXEEXT
810ac_ct_CC
811CPPFLAGS
812LDFLAGS
813CFLAGS
814CC
815am__untar
816am__tar
817AMTAR
818am__leading_dot
819SET_MAKE
820AWK
821mkdir_p
822MKDIR_P
823INSTALL_STRIP_PROGRAM
824STRIP
825install_sh
826MAKEINFO
827AUTOHEADER
828AUTOMAKE
829AUTOCONF
830ACLOCAL
831VERSION
832PACKAGE
833CYGPATH_W
834am__isrc
835INSTALL_DATA
836INSTALL_SCRIPT
837INSTALL_PROGRAM
838target_os
839target_vendor
840target_cpu
841target
842host_os
843host_vendor
844host_cpu
845host
846build_os
847build_vendor
848build_cpu
849build
850target_alias
851host_alias
852build_alias
853LIBS
854ECHO_T
855ECHO_N
856ECHO_C
857DEFS
858mandir
859localedir
860libdir
861psdir
862pdfdir
863dvidir
864htmldir
865infodir
866docdir
867oldincludedir
868includedir
869localstatedir
870sharedstatedir
871sysconfdir
872datadir
873datarootdir
874libexecdir
875sbindir
876bindir
877program_transform_name
878prefix
879exec_prefix
880PACKAGE_URL
881PACKAGE_BUGREPORT
882PACKAGE_STRING
883PACKAGE_VERSION
884PACKAGE_TARNAME
885PACKAGE_NAME
886PATH_SEPARATOR
887SHELL'
888ac_subst_files=''
889ac_user_opts='
890enable_option_checking
891enable_dependency_tracking
892with_libiconv_prefix
893enable_nls
894with_included_gettext
895with_nspr_includes
896with_nspr_libs
897with_nss_includes
898with_nss_libs
899enable_gtktest
900enable_shared
901enable_static
902with_pic
903enable_fast_install
904with_gnu_ld
905enable_libtool_lock
906'
907      ac_precious_vars='build_alias
908host_alias
909target_alias
910CC
911CFLAGS
912LDFLAGS
913LIBS
914CPPFLAGS
915CPP
916PKG_CONFIG
917PIDGIN_CFLAGS
918PIDGIN_LIBS
919PURPLE_CFLAGS
920PURPLE_LIBS
921NSS_CFLAGS
922NSS_LIBS'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977  # If the previous option needs an argument, assign it.
978  if test -n "$ac_prev"; then
979    eval $ac_prev=\$ac_option
980    ac_prev=
981    continue
982  fi
983
984  case $ac_option in
985  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986  *)	ac_optarg=yes ;;
987  esac
988
989  # Accept the important Cygnus configure options, so we can diagnose typos.
990
991  case $ac_dashdash$ac_option in
992  --)
993    ac_dashdash=yes ;;
994
995  -bindir | --bindir | --bindi | --bind | --bin | --bi)
996    ac_prev=bindir ;;
997  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
998    bindir=$ac_optarg ;;
999
1000  -build | --build | --buil | --bui | --bu)
1001    ac_prev=build_alias ;;
1002  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1003    build_alias=$ac_optarg ;;
1004
1005  -cache-file | --cache-file | --cache-fil | --cache-fi \
1006  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1007    ac_prev=cache_file ;;
1008  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1009  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1010    cache_file=$ac_optarg ;;
1011
1012  --config-cache | -C)
1013    cache_file=config.cache ;;
1014
1015  -datadir | --datadir | --datadi | --datad)
1016    ac_prev=datadir ;;
1017  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1018    datadir=$ac_optarg ;;
1019
1020  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1021  | --dataroo | --dataro | --datar)
1022    ac_prev=datarootdir ;;
1023  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1024  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1025    datarootdir=$ac_optarg ;;
1026
1027  -disable-* | --disable-*)
1028    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1029    # Reject names that are not valid shell variable names.
1030    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1031      as_fn_error "invalid feature name: $ac_useropt"
1032    ac_useropt_orig=$ac_useropt
1033    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1034    case $ac_user_opts in
1035      *"
1036"enable_$ac_useropt"
1037"*) ;;
1038      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1039	 ac_unrecognized_sep=', ';;
1040    esac
1041    eval enable_$ac_useropt=no ;;
1042
1043  -docdir | --docdir | --docdi | --doc | --do)
1044    ac_prev=docdir ;;
1045  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1046    docdir=$ac_optarg ;;
1047
1048  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1049    ac_prev=dvidir ;;
1050  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1051    dvidir=$ac_optarg ;;
1052
1053  -enable-* | --enable-*)
1054    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057      as_fn_error "invalid feature name: $ac_useropt"
1058    ac_useropt_orig=$ac_useropt
1059    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060    case $ac_user_opts in
1061      *"
1062"enable_$ac_useropt"
1063"*) ;;
1064      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1065	 ac_unrecognized_sep=', ';;
1066    esac
1067    eval enable_$ac_useropt=\$ac_optarg ;;
1068
1069  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1070  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1071  | --exec | --exe | --ex)
1072    ac_prev=exec_prefix ;;
1073  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1074  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1075  | --exec=* | --exe=* | --ex=*)
1076    exec_prefix=$ac_optarg ;;
1077
1078  -gas | --gas | --ga | --g)
1079    # Obsolete; use --with-gas.
1080    with_gas=yes ;;
1081
1082  -help | --help | --hel | --he | -h)
1083    ac_init_help=long ;;
1084  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1085    ac_init_help=recursive ;;
1086  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1087    ac_init_help=short ;;
1088
1089  -host | --host | --hos | --ho)
1090    ac_prev=host_alias ;;
1091  -host=* | --host=* | --hos=* | --ho=*)
1092    host_alias=$ac_optarg ;;
1093
1094  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1095    ac_prev=htmldir ;;
1096  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1097  | --ht=*)
1098    htmldir=$ac_optarg ;;
1099
1100  -includedir | --includedir | --includedi | --included | --include \
1101  | --includ | --inclu | --incl | --inc)
1102    ac_prev=includedir ;;
1103  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1104  | --includ=* | --inclu=* | --incl=* | --inc=*)
1105    includedir=$ac_optarg ;;
1106
1107  -infodir | --infodir | --infodi | --infod | --info | --inf)
1108    ac_prev=infodir ;;
1109  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1110    infodir=$ac_optarg ;;
1111
1112  -libdir | --libdir | --libdi | --libd)
1113    ac_prev=libdir ;;
1114  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1115    libdir=$ac_optarg ;;
1116
1117  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1118  | --libexe | --libex | --libe)
1119    ac_prev=libexecdir ;;
1120  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1121  | --libexe=* | --libex=* | --libe=*)
1122    libexecdir=$ac_optarg ;;
1123
1124  -localedir | --localedir | --localedi | --localed | --locale)
1125    ac_prev=localedir ;;
1126  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1127    localedir=$ac_optarg ;;
1128
1129  -localstatedir | --localstatedir | --localstatedi | --localstated \
1130  | --localstate | --localstat | --localsta | --localst | --locals)
1131    ac_prev=localstatedir ;;
1132  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1133  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1134    localstatedir=$ac_optarg ;;
1135
1136  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1137    ac_prev=mandir ;;
1138  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1139    mandir=$ac_optarg ;;
1140
1141  -nfp | --nfp | --nf)
1142    # Obsolete; use --without-fp.
1143    with_fp=no ;;
1144
1145  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1146  | --no-cr | --no-c | -n)
1147    no_create=yes ;;
1148
1149  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1150  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1151    no_recursion=yes ;;
1152
1153  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1154  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1155  | --oldin | --oldi | --old | --ol | --o)
1156    ac_prev=oldincludedir ;;
1157  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1158  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1159  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1160    oldincludedir=$ac_optarg ;;
1161
1162  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1163    ac_prev=prefix ;;
1164  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1165    prefix=$ac_optarg ;;
1166
1167  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1168  | --program-pre | --program-pr | --program-p)
1169    ac_prev=program_prefix ;;
1170  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1171  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1172    program_prefix=$ac_optarg ;;
1173
1174  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1175  | --program-suf | --program-su | --program-s)
1176    ac_prev=program_suffix ;;
1177  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1178  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1179    program_suffix=$ac_optarg ;;
1180
1181  -program-transform-name | --program-transform-name \
1182  | --program-transform-nam | --program-transform-na \
1183  | --program-transform-n | --program-transform- \
1184  | --program-transform | --program-transfor \
1185  | --program-transfo | --program-transf \
1186  | --program-trans | --program-tran \
1187  | --progr-tra | --program-tr | --program-t)
1188    ac_prev=program_transform_name ;;
1189  -program-transform-name=* | --program-transform-name=* \
1190  | --program-transform-nam=* | --program-transform-na=* \
1191  | --program-transform-n=* | --program-transform-=* \
1192  | --program-transform=* | --program-transfor=* \
1193  | --program-transfo=* | --program-transf=* \
1194  | --program-trans=* | --program-tran=* \
1195  | --progr-tra=* | --program-tr=* | --program-t=*)
1196    program_transform_name=$ac_optarg ;;
1197
1198  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1199    ac_prev=pdfdir ;;
1200  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1201    pdfdir=$ac_optarg ;;
1202
1203  -psdir | --psdir | --psdi | --psd | --ps)
1204    ac_prev=psdir ;;
1205  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1206    psdir=$ac_optarg ;;
1207
1208  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1209  | -silent | --silent | --silen | --sile | --sil)
1210    silent=yes ;;
1211
1212  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1213    ac_prev=sbindir ;;
1214  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1215  | --sbi=* | --sb=*)
1216    sbindir=$ac_optarg ;;
1217
1218  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1219  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1220  | --sharedst | --shareds | --shared | --share | --shar \
1221  | --sha | --sh)
1222    ac_prev=sharedstatedir ;;
1223  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1224  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1225  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1226  | --sha=* | --sh=*)
1227    sharedstatedir=$ac_optarg ;;
1228
1229  -site | --site | --sit)
1230    ac_prev=site ;;
1231  -site=* | --site=* | --sit=*)
1232    site=$ac_optarg ;;
1233
1234  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1235    ac_prev=srcdir ;;
1236  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1237    srcdir=$ac_optarg ;;
1238
1239  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1240  | --syscon | --sysco | --sysc | --sys | --sy)
1241    ac_prev=sysconfdir ;;
1242  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1243  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1244    sysconfdir=$ac_optarg ;;
1245
1246  -target | --target | --targe | --targ | --tar | --ta | --t)
1247    ac_prev=target_alias ;;
1248  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1249    target_alias=$ac_optarg ;;
1250
1251  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1252    verbose=yes ;;
1253
1254  -version | --version | --versio | --versi | --vers | -V)
1255    ac_init_version=: ;;
1256
1257  -with-* | --with-*)
1258    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1259    # Reject names that are not valid shell variable names.
1260    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261      as_fn_error "invalid package name: $ac_useropt"
1262    ac_useropt_orig=$ac_useropt
1263    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264    case $ac_user_opts in
1265      *"
1266"with_$ac_useropt"
1267"*) ;;
1268      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1269	 ac_unrecognized_sep=', ';;
1270    esac
1271    eval with_$ac_useropt=\$ac_optarg ;;
1272
1273  -without-* | --without-*)
1274    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1275    # Reject names that are not valid shell variable names.
1276    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1277      as_fn_error "invalid package name: $ac_useropt"
1278    ac_useropt_orig=$ac_useropt
1279    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1280    case $ac_user_opts in
1281      *"
1282"with_$ac_useropt"
1283"*) ;;
1284      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1285	 ac_unrecognized_sep=', ';;
1286    esac
1287    eval with_$ac_useropt=no ;;
1288
1289  --x)
1290    # Obsolete; use --with-x.
1291    with_x=yes ;;
1292
1293  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1294  | --x-incl | --x-inc | --x-in | --x-i)
1295    ac_prev=x_includes ;;
1296  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1297  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1298    x_includes=$ac_optarg ;;
1299
1300  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1301  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1302    ac_prev=x_libraries ;;
1303  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1304  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1305    x_libraries=$ac_optarg ;;
1306
1307  -*) as_fn_error "unrecognized option: \`$ac_option'
1308Try \`$0 --help' for more information."
1309    ;;
1310
1311  *=*)
1312    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1313    # Reject names that are not valid shell variable names.
1314    case $ac_envvar in #(
1315      '' | [0-9]* | *[!_$as_cr_alnum]* )
1316      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1317    esac
1318    eval $ac_envvar=\$ac_optarg
1319    export $ac_envvar ;;
1320
1321  *)
1322    # FIXME: should be removed in autoconf 3.0.
1323    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1324    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1325      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1326    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327    ;;
1328
1329  esac
1330done
1331
1332if test -n "$ac_prev"; then
1333  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1334  as_fn_error "missing argument to $ac_option"
1335fi
1336
1337if test -n "$ac_unrecognized_opts"; then
1338  case $enable_option_checking in
1339    no) ;;
1340    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1341    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1342  esac
1343fi
1344
1345# Check all directory arguments for consistency.
1346for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1347		datadir sysconfdir sharedstatedir localstatedir includedir \
1348		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1349		libdir localedir mandir
1350do
1351  eval ac_val=\$$ac_var
1352  # Remove trailing slashes.
1353  case $ac_val in
1354    */ )
1355      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1356      eval $ac_var=\$ac_val;;
1357  esac
1358  # Be sure to have absolute directory names.
1359  case $ac_val in
1360    [\\/$]* | ?:[\\/]* )  continue;;
1361    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1362  esac
1363  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1364done
1365
1366# There might be people who depend on the old broken behavior: `$host'
1367# used to hold the argument of --host etc.
1368# FIXME: To remove some day.
1369build=$build_alias
1370host=$host_alias
1371target=$target_alias
1372
1373# FIXME: To remove some day.
1374if test "x$host_alias" != x; then
1375  if test "x$build_alias" = x; then
1376    cross_compiling=maybe
1377    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1378    If a cross compiler is detected then cross compile mode will be used." >&2
1379  elif test "x$build_alias" != "x$host_alias"; then
1380    cross_compiling=yes
1381  fi
1382fi
1383
1384ac_tool_prefix=
1385test -n "$host_alias" && ac_tool_prefix=$host_alias-
1386
1387test "$silent" = yes && exec 6>/dev/null
1388
1389
1390ac_pwd=`pwd` && test -n "$ac_pwd" &&
1391ac_ls_di=`ls -di .` &&
1392ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1393  as_fn_error "working directory cannot be determined"
1394test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1395  as_fn_error "pwd does not report name of working directory"
1396
1397
1398# Find the source files, if location was not specified.
1399if test -z "$srcdir"; then
1400  ac_srcdir_defaulted=yes
1401  # Try the directory containing this script, then the parent directory.
1402  ac_confdir=`$as_dirname -- "$as_myself" ||
1403$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1404	 X"$as_myself" : 'X\(//\)[^/]' \| \
1405	 X"$as_myself" : 'X\(//\)$' \| \
1406	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1407$as_echo X"$as_myself" |
1408    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409	    s//\1/
1410	    q
1411	  }
1412	  /^X\(\/\/\)[^/].*/{
1413	    s//\1/
1414	    q
1415	  }
1416	  /^X\(\/\/\)$/{
1417	    s//\1/
1418	    q
1419	  }
1420	  /^X\(\/\).*/{
1421	    s//\1/
1422	    q
1423	  }
1424	  s/.*/./; q'`
1425  srcdir=$ac_confdir
1426  if test ! -r "$srcdir/$ac_unique_file"; then
1427    srcdir=..
1428  fi
1429else
1430  ac_srcdir_defaulted=no
1431fi
1432if test ! -r "$srcdir/$ac_unique_file"; then
1433  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1434  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1435fi
1436ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1437ac_abs_confdir=`(
1438	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1439	pwd)`
1440# When building in place, set srcdir=.
1441if test "$ac_abs_confdir" = "$ac_pwd"; then
1442  srcdir=.
1443fi
1444# Remove unnecessary trailing slashes from srcdir.
1445# Double slashes in file names in object file debugging info
1446# mess up M-x gdb in Emacs.
1447case $srcdir in
1448*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1449esac
1450for ac_var in $ac_precious_vars; do
1451  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1452  eval ac_env_${ac_var}_value=\$${ac_var}
1453  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1454  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1455done
1456
1457#
1458# Report the --help message.
1459#
1460if test "$ac_init_help" = "long"; then
1461  # Omit some internal or obsolete options to make the list less imposing.
1462  # This message is too long to be a string in the A/UX 3.1 sh.
1463  cat <<_ACEOF
1464\`configure' configures this package to adapt to many kinds of systems.
1465
1466Usage: $0 [OPTION]... [VAR=VALUE]...
1467
1468To assign environment variables (e.g., CC, CFLAGS...), specify them as
1469VAR=VALUE.  See below for descriptions of some of the useful variables.
1470
1471Defaults for the options are specified in brackets.
1472
1473Configuration:
1474  -h, --help              display this help and exit
1475      --help=short        display options specific to this package
1476      --help=recursive    display the short help of all the included packages
1477  -V, --version           display version information and exit
1478  -q, --quiet, --silent   do not print \`checking...' messages
1479      --cache-file=FILE   cache test results in FILE [disabled]
1480  -C, --config-cache      alias for \`--cache-file=config.cache'
1481  -n, --no-create         do not create output files
1482      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1483
1484Installation directories:
1485  --prefix=PREFIX         install architecture-independent files in PREFIX
1486                          [$ac_default_prefix]
1487  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1488                          [PREFIX]
1489
1490By default, \`make install' will install all the files in
1491\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1492an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1493for instance \`--prefix=\$HOME'.
1494
1495For better control, use the options below.
1496
1497Fine tuning of the installation directories:
1498  --bindir=DIR            user executables [EPREFIX/bin]
1499  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1500  --libexecdir=DIR        program executables [EPREFIX/libexec]
1501  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1502  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1503  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1504  --libdir=DIR            object code libraries [EPREFIX/lib]
1505  --includedir=DIR        C header files [PREFIX/include]
1506  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1507  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1508  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1509  --infodir=DIR           info documentation [DATAROOTDIR/info]
1510  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1511  --mandir=DIR            man documentation [DATAROOTDIR/man]
1512  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1513  --htmldir=DIR           html documentation [DOCDIR]
1514  --dvidir=DIR            dvi documentation [DOCDIR]
1515  --pdfdir=DIR            pdf documentation [DOCDIR]
1516  --psdir=DIR             ps documentation [DOCDIR]
1517_ACEOF
1518
1519  cat <<\_ACEOF
1520
1521Program names:
1522  --program-prefix=PREFIX            prepend PREFIX to installed program names
1523  --program-suffix=SUFFIX            append SUFFIX to installed program names
1524  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1525
1526System types:
1527  --build=BUILD     configure for building on BUILD [guessed]
1528  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1529  --target=TARGET   configure for building compilers for TARGET [HOST]
1530_ACEOF
1531fi
1532
1533if test -n "$ac_init_help"; then
1534
1535  cat <<\_ACEOF
1536
1537Optional Features:
1538  --disable-option-checking  ignore unrecognized --enable/--with options
1539  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1540  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1541  --disable-dependency-tracking  speeds up one-time build
1542  --enable-dependency-tracking   do not reject slow dependency extractors
1543  --disable-nls           do not use Native Language Support
1544  --disable-gtktest       do not try to compile and run a test GTK+ program
1545  --enable-shared[=PKGS]  build shared libraries [default=yes]
1546  --enable-static[=PKGS]  build static libraries [default=yes]
1547  --enable-fast-install[=PKGS]
1548                          optimize for fast installation [default=yes]
1549  --disable-libtool-lock  avoid locking (might break parallel builds)
1550
1551Optional Packages:
1552  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1553  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1554  --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1555  --with-included-gettext use the GNU gettext library included here
1556  --with-nspr-includes=PREFIX     Specify location of Mozilla nspr4 includes.
1557  --with-nspr-libs=PREFIX         Specify location of Mozilla nspr4 libs.
1558  --with-nss-includes=PREFIX      Specify location of Mozilla nss3 includes.
1559  --with-nss-libs=PREFIX          Specify location of Mozilla nss3 libs.
1560  --with-pic              try to use only PIC/non-PIC objects [default=use
1561                          both]
1562  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1563
1564Some influential environment variables:
1565  CC          C compiler command
1566  CFLAGS      C compiler flags
1567  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1568              nonstandard directory <lib dir>
1569  LIBS        libraries to pass to the linker, e.g. -l<library>
1570  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1571              you have headers in a nonstandard directory <include dir>
1572  CPP         C preprocessor
1573  PKG_CONFIG  path to pkg-config utility
1574  PIDGIN_CFLAGS
1575              C compiler flags for PIDGIN, overriding pkg-config
1576  PIDGIN_LIBS linker flags for PIDGIN, overriding pkg-config
1577  PURPLE_CFLAGS
1578              C compiler flags for PURPLE, overriding pkg-config
1579  PURPLE_LIBS linker flags for PURPLE, overriding pkg-config
1580  NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
1581  NSS_LIBS    linker flags for NSS, overriding pkg-config
1582
1583Use these variables to override the choices made by `configure' or to help
1584it to find libraries and programs with nonstandard names/locations.
1585
1586Report bugs to the package provider.
1587_ACEOF
1588ac_status=$?
1589fi
1590
1591if test "$ac_init_help" = "recursive"; then
1592  # If there are subdirs, report their specific --help.
1593  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594    test -d "$ac_dir" ||
1595      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596      continue
1597    ac_builddir=.
1598
1599case "$ac_dir" in
1600.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601*)
1602  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603  # A ".." for each directory in $ac_dir_suffix.
1604  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605  case $ac_top_builddir_sub in
1606  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608  esac ;;
1609esac
1610ac_abs_top_builddir=$ac_pwd
1611ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612# for backward compatibility:
1613ac_top_builddir=$ac_top_build_prefix
1614
1615case $srcdir in
1616  .)  # We are building in place.
1617    ac_srcdir=.
1618    ac_top_srcdir=$ac_top_builddir_sub
1619    ac_abs_top_srcdir=$ac_pwd ;;
1620  [\\/]* | ?:[\\/]* )  # Absolute name.
1621    ac_srcdir=$srcdir$ac_dir_suffix;
1622    ac_top_srcdir=$srcdir
1623    ac_abs_top_srcdir=$srcdir ;;
1624  *) # Relative name.
1625    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626    ac_top_srcdir=$ac_top_build_prefix$srcdir
1627    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628esac
1629ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631    cd "$ac_dir" || { ac_status=$?; continue; }
1632    # Check for guested configure.
1633    if test -f "$ac_srcdir/configure.gnu"; then
1634      echo &&
1635      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636    elif test -f "$ac_srcdir/configure"; then
1637      echo &&
1638      $SHELL "$ac_srcdir/configure" --help=recursive
1639    else
1640      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641    fi || ac_status=$?
1642    cd "$ac_pwd" || { ac_status=$?; break; }
1643  done
1644fi
1645
1646test -n "$ac_init_help" && exit $ac_status
1647if $ac_init_version; then
1648  cat <<\_ACEOF
1649configure
1650generated by GNU Autoconf 2.64
1651
1652Copyright (C) 2009 Free Software Foundation, Inc.
1653This configure script is free software; the Free Software Foundation
1654gives unlimited permission to copy, distribute and modify it.
1655_ACEOF
1656  exit
1657fi
1658
1659## ------------------------ ##
1660## Autoconf initialization. ##
1661## ------------------------ ##
1662
1663# ac_fn_c_try_compile LINENO
1664# --------------------------
1665# Try to compile conftest.$ac_ext, and return whether this succeeded.
1666ac_fn_c_try_compile ()
1667{
1668  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669  rm -f conftest.$ac_objext
1670  if { { ac_try="$ac_compile"
1671case "(($ac_try" in
1672  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673  *) ac_try_echo=$ac_try;;
1674esac
1675eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676$as_echo "$ac_try_echo"; } >&5
1677  (eval "$ac_compile") 2>conftest.err
1678  ac_status=$?
1679  if test -s conftest.err; then
1680    grep -v '^ *+' conftest.err >conftest.er1
1681    cat conftest.er1 >&5
1682    mv -f conftest.er1 conftest.err
1683  fi
1684  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685  test $ac_status = 0; } && {
1686	 test -z "$ac_c_werror_flag" ||
1687	 test ! -s conftest.err
1688       } && test -s conftest.$ac_objext; then :
1689  ac_retval=0
1690else
1691  $as_echo "$as_me: failed program was:" >&5
1692sed 's/^/| /' conftest.$ac_ext >&5
1693
1694	ac_retval=1
1695fi
1696  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1697  return $ac_retval
1698
1699} # ac_fn_c_try_compile
1700
1701# ac_fn_c_try_link LINENO
1702# -----------------------
1703# Try to link conftest.$ac_ext, and return whether this succeeded.
1704ac_fn_c_try_link ()
1705{
1706  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707  rm -f conftest.$ac_objext conftest$ac_exeext
1708  if { { ac_try="$ac_link"
1709case "(($ac_try" in
1710  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711  *) ac_try_echo=$ac_try;;
1712esac
1713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714$as_echo "$ac_try_echo"; } >&5
1715  (eval "$ac_link") 2>conftest.err
1716  ac_status=$?
1717  if test -s conftest.err; then
1718    grep -v '^ *+' conftest.err >conftest.er1
1719    cat conftest.er1 >&5
1720    mv -f conftest.er1 conftest.err
1721  fi
1722  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723  test $ac_status = 0; } && {
1724	 test -z "$ac_c_werror_flag" ||
1725	 test ! -s conftest.err
1726       } && test -s conftest$ac_exeext && {
1727	 test "$cross_compiling" = yes ||
1728	 $as_test_x conftest$ac_exeext
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  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1738  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1739  # interfere with the next link command; also delete a directory that is
1740  # left behind by Apple's compiler.  We do this before executing the actions.
1741  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1742  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1743  return $ac_retval
1744
1745} # ac_fn_c_try_link
1746
1747# ac_fn_c_try_cpp LINENO
1748# ----------------------
1749# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_cpp ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_cpp conftest.$ac_ext"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761  ac_status=$?
1762  if test -s conftest.err; then
1763    grep -v '^ *+' conftest.err >conftest.er1
1764    cat conftest.er1 >&5
1765    mv -f conftest.er1 conftest.err
1766  fi
1767  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768  test $ac_status = 0; } >/dev/null && {
1769	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770	 test ! -s conftest.err
1771       }; then :
1772  ac_retval=0
1773else
1774  $as_echo "$as_me: failed program was:" >&5
1775sed 's/^/| /' conftest.$ac_ext >&5
1776
1777    ac_retval=1
1778fi
1779  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780  return $ac_retval
1781
1782} # ac_fn_c_try_cpp
1783
1784# ac_fn_c_try_run LINENO
1785# ----------------------
1786# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787# that executables *can* be run.
1788ac_fn_c_try_run ()
1789{
1790  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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>&5
1799  ac_status=$?
1800  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802  { { case "(($ac_try" in
1803  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804  *) ac_try_echo=$ac_try;;
1805esac
1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807$as_echo "$ac_try_echo"; } >&5
1808  (eval "$ac_try") 2>&5
1809  ac_status=$?
1810  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811  test $ac_status = 0; }; }; then :
1812  ac_retval=0
1813else
1814  $as_echo "$as_me: program exited with status $ac_status" >&5
1815       $as_echo "$as_me: failed program was:" >&5
1816sed 's/^/| /' conftest.$ac_ext >&5
1817
1818       ac_retval=$ac_status
1819fi
1820  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1822  return $ac_retval
1823
1824} # ac_fn_c_try_run
1825
1826# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1827# -------------------------------------------
1828# Tests whether TYPE exists after having included INCLUDES, setting cache
1829# variable VAR accordingly.
1830ac_fn_c_check_type ()
1831{
1832  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834$as_echo_n "checking for $2... " >&6; }
1835if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1836  $as_echo_n "(cached) " >&6
1837else
1838  eval "$3=no"
1839  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h.  */
1841$4
1842int
1843main ()
1844{
1845if (sizeof ($2))
1846	 return 0;
1847  ;
1848  return 0;
1849}
1850_ACEOF
1851if ac_fn_c_try_compile "$LINENO"; then :
1852  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853/* end confdefs.h.  */
1854$4
1855int
1856main ()
1857{
1858if (sizeof (($2)))
1859	    return 0;
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864if ac_fn_c_try_compile "$LINENO"; then :
1865
1866else
1867  eval "$3=yes"
1868fi
1869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1870fi
1871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1872fi
1873eval ac_res=\$$3
1874	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875$as_echo "$ac_res" >&6; }
1876  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877
1878} # ac_fn_c_check_type
1879
1880# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1881# -------------------------------------------------------
1882# Tests whether HEADER exists and can be compiled using the include files in
1883# INCLUDES, setting the cache variable VAR accordingly.
1884ac_fn_c_check_header_compile ()
1885{
1886  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888$as_echo_n "checking for $2... " >&6; }
1889if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1890  $as_echo_n "(cached) " >&6
1891else
1892  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1893/* end confdefs.h.  */
1894$4
1895#include <$2>
1896_ACEOF
1897if ac_fn_c_try_compile "$LINENO"; then :
1898  eval "$3=yes"
1899else
1900  eval "$3=no"
1901fi
1902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903fi
1904eval ac_res=\$$3
1905	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1906$as_echo "$ac_res" >&6; }
1907  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908
1909} # ac_fn_c_check_header_compile
1910
1911# ac_fn_c_check_func LINENO FUNC VAR
1912# ----------------------------------
1913# Tests whether FUNC exists, setting the cache variable VAR accordingly
1914ac_fn_c_check_func ()
1915{
1916  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1918$as_echo_n "checking for $2... " >&6; }
1919if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1920  $as_echo_n "(cached) " >&6
1921else
1922  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1923/* end confdefs.h.  */
1924/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1925   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1926#define $2 innocuous_$2
1927
1928/* System header to define __stub macros and hopefully few prototypes,
1929    which can conflict with char $2 (); below.
1930    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1931    <limits.h> exists even on freestanding compilers.  */
1932
1933#ifdef __STDC__
1934# include <limits.h>
1935#else
1936# include <assert.h>
1937#endif
1938
1939#undef $2
1940
1941/* Override any GCC internal prototype to avoid an error.
1942   Use char because int might match the return type of a GCC
1943   builtin and then its argument prototype would still apply.  */
1944#ifdef __cplusplus
1945extern "C"
1946#endif
1947char $2 ();
1948/* The GNU C library defines this for functions which it implements
1949    to always fail with ENOSYS.  Some functions are actually named
1950    something starting with __ and the normal name is an alias.  */
1951#if defined __stub_$2 || defined __stub___$2
1952choke me
1953#endif
1954
1955int
1956main ()
1957{
1958return $2 ();
1959  ;
1960  return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_link "$LINENO"; then :
1964  eval "$3=yes"
1965else
1966  eval "$3=no"
1967fi
1968rm -f core conftest.err conftest.$ac_objext \
1969    conftest$ac_exeext conftest.$ac_ext
1970fi
1971eval ac_res=\$$3
1972	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973$as_echo "$ac_res" >&6; }
1974  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975
1976} # ac_fn_c_check_func
1977
1978# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1979# -------------------------------------------------------
1980# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1981# the include files in INCLUDES and setting the cache variable VAR
1982# accordingly.
1983ac_fn_c_check_header_mongrel ()
1984{
1985  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1987  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988$as_echo_n "checking for $2... " >&6; }
1989if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990  $as_echo_n "(cached) " >&6
1991fi
1992eval ac_res=\$$3
1993	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1994$as_echo "$ac_res" >&6; }
1995else
1996  # Is the header compilable?
1997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1998$as_echo_n "checking $2 usability... " >&6; }
1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h.  */
2001$4
2002#include <$2>
2003_ACEOF
2004if ac_fn_c_try_compile "$LINENO"; then :
2005  ac_header_compiler=yes
2006else
2007  ac_header_compiler=no
2008fi
2009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2011$as_echo "$ac_header_compiler" >&6; }
2012
2013# Is the header present?
2014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2015$as_echo_n "checking $2 presence... " >&6; }
2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017/* end confdefs.h.  */
2018#include <$2>
2019_ACEOF
2020if ac_fn_c_try_cpp "$LINENO"; then :
2021  ac_header_preproc=yes
2022else
2023  ac_header_preproc=no
2024fi
2025rm -f conftest.err conftest.$ac_ext
2026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2027$as_echo "$ac_header_preproc" >&6; }
2028
2029# So?  What about this header?
2030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2031  yes:no: )
2032    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2033$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2034    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036    ;;
2037  no:yes:* )
2038    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2039$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2040    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2041$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2042    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2043$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2044    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2045$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2046    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2047$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2048    ;;
2049esac
2050  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2051$as_echo_n "checking for $2... " >&6; }
2052if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2053  $as_echo_n "(cached) " >&6
2054else
2055  eval "$3=\$ac_header_compiler"
2056fi
2057eval ac_res=\$$3
2058	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2059$as_echo "$ac_res" >&6; }
2060fi
2061  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062
2063} # ac_fn_c_check_header_mongrel
2064cat >config.log <<_ACEOF
2065This file contains any messages produced by compilers while
2066running configure, to aid debugging if configure makes a mistake.
2067
2068It was created by $as_me, which was
2069generated by GNU Autoconf 2.64.  Invocation command line was
2070
2071  $ $0 $@
2072
2073_ACEOF
2074exec 5>>config.log
2075{
2076cat <<_ASUNAME
2077## --------- ##
2078## Platform. ##
2079## --------- ##
2080
2081hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2082uname -m = `(uname -m) 2>/dev/null || echo unknown`
2083uname -r = `(uname -r) 2>/dev/null || echo unknown`
2084uname -s = `(uname -s) 2>/dev/null || echo unknown`
2085uname -v = `(uname -v) 2>/dev/null || echo unknown`
2086
2087/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2088/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2089
2090/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2091/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2092/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2093/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2094/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2095/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2096/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2097
2098_ASUNAME
2099
2100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2101for as_dir in $PATH
2102do
2103  IFS=$as_save_IFS
2104  test -z "$as_dir" && as_dir=.
2105    $as_echo "PATH: $as_dir"
2106  done
2107IFS=$as_save_IFS
2108
2109} >&5
2110
2111cat >&5 <<_ACEOF
2112
2113
2114## ----------- ##
2115## Core tests. ##
2116## ----------- ##
2117
2118_ACEOF
2119
2120
2121# Keep a trace of the command line.
2122# Strip out --no-create and --no-recursion so they do not pile up.
2123# Strip out --silent because we don't want to record it for future runs.
2124# Also quote any args containing shell meta-characters.
2125# Make two passes to allow for proper duplicate-argument suppression.
2126ac_configure_args=
2127ac_configure_args0=
2128ac_configure_args1=
2129ac_must_keep_next=false
2130for ac_pass in 1 2
2131do
2132  for ac_arg
2133  do
2134    case $ac_arg in
2135    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2136    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2137    | -silent | --silent | --silen | --sile | --sil)
2138      continue ;;
2139    *\'*)
2140      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2141    esac
2142    case $ac_pass in
2143    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2144    2)
2145      as_fn_append ac_configure_args1 " '$ac_arg'"
2146      if test $ac_must_keep_next = true; then
2147	ac_must_keep_next=false # Got value, back to normal.
2148      else
2149	case $ac_arg in
2150	  *=* | --config-cache | -C | -disable-* | --disable-* \
2151	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2152	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2153	  | -with-* | --with-* | -without-* | --without-* | --x)
2154	    case "$ac_configure_args0 " in
2155	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2156	    esac
2157	    ;;
2158	  -* ) ac_must_keep_next=true ;;
2159	esac
2160      fi
2161      as_fn_append ac_configure_args " '$ac_arg'"
2162      ;;
2163    esac
2164  done
2165done
2166{ ac_configure_args0=; unset ac_configure_args0;}
2167{ ac_configure_args1=; unset ac_configure_args1;}
2168
2169# When interrupted or exit'd, cleanup temporary files, and complete
2170# config.log.  We remove comments because anyway the quotes in there
2171# would cause problems or look ugly.
2172# WARNING: Use '\'' to represent an apostrophe within the trap.
2173# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2174trap 'exit_status=$?
2175  # Save into config.log some information that might help in debugging.
2176  {
2177    echo
2178
2179    cat <<\_ASBOX
2180## ---------------- ##
2181## Cache variables. ##
2182## ---------------- ##
2183_ASBOX
2184    echo
2185    # The following way of writing the cache mishandles newlines in values,
2186(
2187  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2188    eval ac_val=\$$ac_var
2189    case $ac_val in #(
2190    *${as_nl}*)
2191      case $ac_var in #(
2192      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2193$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2194      esac
2195      case $ac_var in #(
2196      _ | IFS | as_nl) ;; #(
2197      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2198      *) { eval $ac_var=; unset $ac_var;} ;;
2199      esac ;;
2200    esac
2201  done
2202  (set) 2>&1 |
2203    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2204    *${as_nl}ac_space=\ *)
2205      sed -n \
2206	"s/'\''/'\''\\\\'\'''\''/g;
2207	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2208      ;; #(
2209    *)
2210      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2211      ;;
2212    esac |
2213    sort
2214)
2215    echo
2216
2217    cat <<\_ASBOX
2218## ----------------- ##
2219## Output variables. ##
2220## ----------------- ##
2221_ASBOX
2222    echo
2223    for ac_var in $ac_subst_vars
2224    do
2225      eval ac_val=\$$ac_var
2226      case $ac_val in
2227      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2228      esac
2229      $as_echo "$ac_var='\''$ac_val'\''"
2230    done | sort
2231    echo
2232
2233    if test -n "$ac_subst_files"; then
2234      cat <<\_ASBOX
2235## ------------------- ##
2236## File substitutions. ##
2237## ------------------- ##
2238_ASBOX
2239      echo
2240      for ac_var in $ac_subst_files
2241      do
2242	eval ac_val=\$$ac_var
2243	case $ac_val in
2244	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2245	esac
2246	$as_echo "$ac_var='\''$ac_val'\''"
2247      done | sort
2248      echo
2249    fi
2250
2251    if test -s confdefs.h; then
2252      cat <<\_ASBOX
2253## ----------- ##
2254## confdefs.h. ##
2255## ----------- ##
2256_ASBOX
2257      echo
2258      cat confdefs.h
2259      echo
2260    fi
2261    test "$ac_signal" != 0 &&
2262      $as_echo "$as_me: caught signal $ac_signal"
2263    $as_echo "$as_me: exit $exit_status"
2264  } >&5
2265  rm -f core *.core core.conftest.* &&
2266    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2267    exit $exit_status
2268' 0
2269for ac_signal in 1 2 13 15; do
2270  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2271done
2272ac_signal=0
2273
2274# confdefs.h avoids OS command line length limits that DEFS can exceed.
2275rm -f -r conftest* confdefs.h
2276
2277$as_echo "/* confdefs.h */" > confdefs.h
2278
2279# Predefined preprocessor variables.
2280
2281cat >>confdefs.h <<_ACEOF
2282#define PACKAGE_NAME "$PACKAGE_NAME"
2283_ACEOF
2284
2285cat >>confdefs.h <<_ACEOF
2286#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2287_ACEOF
2288
2289cat >>confdefs.h <<_ACEOF
2290#define PACKAGE_VERSION "$PACKAGE_VERSION"
2291_ACEOF
2292
2293cat >>confdefs.h <<_ACEOF
2294#define PACKAGE_STRING "$PACKAGE_STRING"
2295_ACEOF
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2299_ACEOF
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_URL "$PACKAGE_URL"
2303_ACEOF
2304
2305
2306# Let the site file select an alternate cache file if it wants to.
2307# Prefer an explicitly selected file to automatically selected ones.
2308ac_site_file1=NONE
2309ac_site_file2=NONE
2310if test -n "$CONFIG_SITE"; then
2311  ac_site_file1=$CONFIG_SITE
2312elif test "x$prefix" != xNONE; then
2313  ac_site_file1=$prefix/share/config.site
2314  ac_site_file2=$prefix/etc/config.site
2315else
2316  ac_site_file1=$ac_default_prefix/share/config.site
2317  ac_site_file2=$ac_default_prefix/etc/config.site
2318fi
2319for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2320do
2321  test "x$ac_site_file" = xNONE && continue
2322  if test -r "$ac_site_file"; then
2323    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2324$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2325    sed 's/^/| /' "$ac_site_file" >&5
2326    . "$ac_site_file"
2327  fi
2328done
2329
2330if test -r "$cache_file"; then
2331  # Some versions of bash will fail to source /dev/null (special
2332  # files actually), so we avoid doing that.
2333  if test -f "$cache_file"; then
2334    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2335$as_echo "$as_me: loading cache $cache_file" >&6;}
2336    case $cache_file in
2337      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2338      *)                      . "./$cache_file";;
2339    esac
2340  fi
2341else
2342  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2343$as_echo "$as_me: creating cache $cache_file" >&6;}
2344  >$cache_file
2345fi
2346
2347# Check that the precious variables saved in the cache have kept the same
2348# value.
2349ac_cache_corrupted=false
2350for ac_var in $ac_precious_vars; do
2351  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2352  eval ac_new_set=\$ac_env_${ac_var}_set
2353  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2354  eval ac_new_val=\$ac_env_${ac_var}_value
2355  case $ac_old_set,$ac_new_set in
2356    set,)
2357      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2358$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2359      ac_cache_corrupted=: ;;
2360    ,set)
2361      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2362$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2363      ac_cache_corrupted=: ;;
2364    ,);;
2365    *)
2366      if test "x$ac_old_val" != "x$ac_new_val"; then
2367	# differences in whitespace do not lead to failure.
2368	ac_old_val_w=`echo x $ac_old_val`
2369	ac_new_val_w=`echo x $ac_new_val`
2370	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2371	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2372$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2373	  ac_cache_corrupted=:
2374	else
2375	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2376$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2377	  eval $ac_var=\$ac_old_val
2378	fi
2379	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2380$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2381	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2382$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2383      fi;;
2384  esac
2385  # Pass precious variables to config.status.
2386  if test "$ac_new_set" = set; then
2387    case $ac_new_val in
2388    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2389    *) ac_arg=$ac_var=$ac_new_val ;;
2390    esac
2391    case " $ac_configure_args " in
2392      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2393      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2394    esac
2395  fi
2396done
2397if $ac_cache_corrupted; then
2398  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2399$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2400  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2401$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2402  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2403fi
2404## -------------------- ##
2405## Main body of script. ##
2406## -------------------- ##
2407
2408ac_ext=c
2409ac_cpp='$CPP $CPPFLAGS'
2410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2412ac_compiler_gnu=$ac_cv_c_compiler_gnu
2413
2414
2415
2416ac_aux_dir=
2417for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2418  for ac_t in install-sh install.sh shtool; do
2419    if test -f "$ac_dir/$ac_t"; then
2420      ac_aux_dir=$ac_dir
2421      ac_install_sh="$ac_aux_dir/$ac_t -c"
2422      break 2
2423    fi
2424  done
2425done
2426if test -z "$ac_aux_dir"; then
2427  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2428fi
2429
2430# These three variables are undocumented and unsupported,
2431# and are intended to be withdrawn in a future Autoconf release.
2432# They can cause serious problems if a builder's source tree is in a directory
2433# whose full name contains unusual characters.
2434ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2435ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2436ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2437
2438
2439# Make sure we can run config.sub.
2440$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2441  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2442
2443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2444$as_echo_n "checking build system type... " >&6; }
2445if test "${ac_cv_build+set}" = set; then :
2446  $as_echo_n "(cached) " >&6
2447else
2448  ac_build_alias=$build_alias
2449test "x$ac_build_alias" = x &&
2450  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2451test "x$ac_build_alias" = x &&
2452  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2453ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2454  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2455
2456fi
2457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2458$as_echo "$ac_cv_build" >&6; }
2459case $ac_cv_build in
2460*-*-*) ;;
2461*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2462esac
2463build=$ac_cv_build
2464ac_save_IFS=$IFS; IFS='-'
2465set x $ac_cv_build
2466shift
2467build_cpu=$1
2468build_vendor=$2
2469shift; shift
2470# Remember, the first character of IFS is used to create $*,
2471# except with old shells:
2472build_os=$*
2473IFS=$ac_save_IFS
2474case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2475
2476
2477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2478$as_echo_n "checking host system type... " >&6; }
2479if test "${ac_cv_host+set}" = set; then :
2480  $as_echo_n "(cached) " >&6
2481else
2482  if test "x$host_alias" = x; then
2483  ac_cv_host=$ac_cv_build
2484else
2485  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2486    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2487fi
2488
2489fi
2490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2491$as_echo "$ac_cv_host" >&6; }
2492case $ac_cv_host in
2493*-*-*) ;;
2494*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2495esac
2496host=$ac_cv_host
2497ac_save_IFS=$IFS; IFS='-'
2498set x $ac_cv_host
2499shift
2500host_cpu=$1
2501host_vendor=$2
2502shift; shift
2503# Remember, the first character of IFS is used to create $*,
2504# except with old shells:
2505host_os=$*
2506IFS=$ac_save_IFS
2507case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2508
2509
2510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2511$as_echo_n "checking target system type... " >&6; }
2512if test "${ac_cv_target+set}" = set; then :
2513  $as_echo_n "(cached) " >&6
2514else
2515  if test "x$target_alias" = x; then
2516  ac_cv_target=$ac_cv_host
2517else
2518  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2519    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2520fi
2521
2522fi
2523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2524$as_echo "$ac_cv_target" >&6; }
2525case $ac_cv_target in
2526*-*-*) ;;
2527*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2528esac
2529target=$ac_cv_target
2530ac_save_IFS=$IFS; IFS='-'
2531set x $ac_cv_target
2532shift
2533target_cpu=$1
2534target_vendor=$2
2535shift; shift
2536# Remember, the first character of IFS is used to create $*,
2537# except with old shells:
2538target_os=$*
2539IFS=$ac_save_IFS
2540case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2541
2542
2543# The aliases save the names the user supplied, while $host etc.
2544# will get canonicalized.
2545test -n "$target_alias" &&
2546  test "$program_prefix$program_suffix$program_transform_name" = \
2547    NONENONEs,x,x, &&
2548  program_prefix=${target_alias}-
2549
2550
2551#
2552# Init automake
2553# The third argument to AM_INIT_AUTOMAKE surpresses the PACKAGE and
2554# VERSION macors
2555#
2556
2557PIDGIN_ENC_VERSION="`cat $srcdir/VERSION`"
2558
2559am__api_version='1.11'
2560
2561# Find a good install program.  We prefer a C program (faster),
2562# so one script is as good as another.  But avoid the broken or
2563# incompatible versions:
2564# SysV /etc/install, /usr/sbin/install
2565# SunOS /usr/etc/install
2566# IRIX /sbin/install
2567# AIX /bin/install
2568# AmigaOS /C/install, which installs bootblocks on floppy discs
2569# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2570# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2571# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2572# OS/2's system install, which has a completely different semantic
2573# ./install, which can be erroneously created by make from ./install.sh.
2574# Reject install programs that cannot install multiple files.
2575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2576$as_echo_n "checking for a BSD-compatible install... " >&6; }
2577if test -z "$INSTALL"; then
2578if test "${ac_cv_path_install+set}" = set; then :
2579  $as_echo_n "(cached) " >&6
2580else
2581  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2582for as_dir in $PATH
2583do
2584  IFS=$as_save_IFS
2585  test -z "$as_dir" && as_dir=.
2586    # Account for people who put trailing slashes in PATH elements.
2587case $as_dir/ in #((
2588  ./ | .// | /[cC]/* | \
2589  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2590  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2591  /usr/ucb/* ) ;;
2592  *)
2593    # OSF1 and SCO ODT 3.0 have their own names for install.
2594    # Don't use installbsd from OSF since it installs stuff as root
2595    # by default.
2596    for ac_prog in ginstall scoinst install; do
2597      for ac_exec_ext in '' $ac_executable_extensions; do
2598	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2599	  if test $ac_prog = install &&
2600	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2601	    # AIX install.  It has an incompatible calling convention.
2602	    :
2603	  elif test $ac_prog = install &&
2604	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2605	    # program-specific install script used by HP pwplus--don't use.
2606	    :
2607	  else
2608	    rm -rf conftest.one conftest.two conftest.dir
2609	    echo one > conftest.one
2610	    echo two > conftest.two
2611	    mkdir conftest.dir
2612	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2613	      test -s conftest.one && test -s conftest.two &&
2614	      test -s conftest.dir/conftest.one &&
2615	      test -s conftest.dir/conftest.two
2616	    then
2617	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2618	      break 3
2619	    fi
2620	  fi
2621	fi
2622      done
2623    done
2624    ;;
2625esac
2626
2627  done
2628IFS=$as_save_IFS
2629
2630rm -rf conftest.one conftest.two conftest.dir
2631
2632fi
2633  if test "${ac_cv_path_install+set}" = set; then
2634    INSTALL=$ac_cv_path_install
2635  else
2636    # As a last resort, use the slow shell script.  Don't cache a
2637    # value for INSTALL within a source directory, because that will
2638    # break other packages using the cache if that directory is
2639    # removed, or if the value is a relative name.
2640    INSTALL=$ac_install_sh
2641  fi
2642fi
2643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2644$as_echo "$INSTALL" >&6; }
2645
2646# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2647# It thinks the first close brace ends the variable substitution.
2648test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2649
2650test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2651
2652test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2653
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2655$as_echo_n "checking whether build environment is sane... " >&6; }
2656# Just in case
2657sleep 1
2658echo timestamp > conftest.file
2659# Reject unsafe characters in $srcdir or the absolute working directory
2660# name.  Accept space and tab only in the latter.
2661am_lf='
2662'
2663case `pwd` in
2664  *[\\\"\#\$\&\'\`$am_lf]*)
2665    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2666esac
2667case $srcdir in
2668  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2669    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2670esac
2671
2672# Do `set' in a subshell so we don't clobber the current shell's
2673# arguments.  Must try -L first in case configure is actually a
2674# symlink; some systems play weird games with the mod time of symlinks
2675# (eg FreeBSD returns the mod time of the symlink's containing
2676# directory).
2677if (
2678   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2679   if test "$*" = "X"; then
2680      # -L didn't work.
2681      set X `ls -t "$srcdir/configure" conftest.file`
2682   fi
2683   rm -f conftest.file
2684   if test "$*" != "X $srcdir/configure conftest.file" \
2685      && test "$*" != "X conftest.file $srcdir/configure"; then
2686
2687      # If neither matched, then we have a broken ls.  This can happen
2688      # if, for instance, CONFIG_SHELL is bash and it inherits a
2689      # broken ls alias from the environment.  This has actually
2690      # happened.  Such a system could not be considered "sane".
2691      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2692alias in your environment" "$LINENO" 5
2693   fi
2694
2695   test "$2" = conftest.file
2696   )
2697then
2698   # Ok.
2699   :
2700else
2701   as_fn_error "newly created file is older than distributed files!
2702Check your system clock" "$LINENO" 5
2703fi
2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2705$as_echo "yes" >&6; }
2706test "$program_prefix" != NONE &&
2707  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2708# Use a double $ so make ignores it.
2709test "$program_suffix" != NONE &&
2710  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2711# Double any \ or $.
2712# By default was `s,x,x', remove it if useless.
2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2715
2716# expand $ac_aux_dir to an absolute path
2717am_aux_dir=`cd $ac_aux_dir && pwd`
2718
2719if test x"${MISSING+set}" != xset; then
2720  case $am_aux_dir in
2721  *\ * | *\	*)
2722    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2723  *)
2724    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2725  esac
2726fi
2727# Use eval to expand $SHELL
2728if eval "$MISSING --run true"; then
2729  am_missing_run="$MISSING --run "
2730else
2731  am_missing_run=
2732  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2733$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2734fi
2735
2736if test x"${install_sh}" != xset; then
2737  case $am_aux_dir in
2738  *\ * | *\	*)
2739    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2740  *)
2741    install_sh="\${SHELL} $am_aux_dir/install-sh"
2742  esac
2743fi
2744
2745# Installed binaries are usually stripped using `strip' when the user
2746# run `make install-strip'.  However `strip' might not be the right
2747# tool to use in cross-compilation environments, therefore Automake
2748# will honor the `STRIP' environment variable to overrule this program.
2749if test "$cross_compiling" != no; then
2750  if test -n "$ac_tool_prefix"; then
2751  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2752set dummy ${ac_tool_prefix}strip; ac_word=$2
2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754$as_echo_n "checking for $ac_word... " >&6; }
2755if test "${ac_cv_prog_STRIP+set}" = set; then :
2756  $as_echo_n "(cached) " >&6
2757else
2758  if test -n "$STRIP"; then
2759  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2760else
2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2762for as_dir in $PATH
2763do
2764  IFS=$as_save_IFS
2765  test -z "$as_dir" && as_dir=.
2766    for ac_exec_ext in '' $ac_executable_extensions; do
2767  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2769    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2770    break 2
2771  fi
2772done
2773  done
2774IFS=$as_save_IFS
2775
2776fi
2777fi
2778STRIP=$ac_cv_prog_STRIP
2779if test -n "$STRIP"; then
2780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2781$as_echo "$STRIP" >&6; }
2782else
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785fi
2786
2787
2788fi
2789if test -z "$ac_cv_prog_STRIP"; then
2790  ac_ct_STRIP=$STRIP
2791  # Extract the first word of "strip", so it can be a program name with args.
2792set dummy strip; ac_word=$2
2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2794$as_echo_n "checking for $ac_word... " >&6; }
2795if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2796  $as_echo_n "(cached) " >&6
2797else
2798  if test -n "$ac_ct_STRIP"; then
2799  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2800else
2801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802for as_dir in $PATH
2803do
2804  IFS=$as_save_IFS
2805  test -z "$as_dir" && as_dir=.
2806    for ac_exec_ext in '' $ac_executable_extensions; do
2807  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2808    ac_cv_prog_ac_ct_STRIP="strip"
2809    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2810    break 2
2811  fi
2812done
2813  done
2814IFS=$as_save_IFS
2815
2816fi
2817fi
2818ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2819if test -n "$ac_ct_STRIP"; then
2820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2821$as_echo "$ac_ct_STRIP" >&6; }
2822else
2823  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2824$as_echo "no" >&6; }
2825fi
2826
2827  if test "x$ac_ct_STRIP" = x; then
2828    STRIP=":"
2829  else
2830    case $cross_compiling:$ac_tool_warned in
2831yes:)
2832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2834ac_tool_warned=yes ;;
2835esac
2836    STRIP=$ac_ct_STRIP
2837  fi
2838else
2839  STRIP="$ac_cv_prog_STRIP"
2840fi
2841
2842fi
2843INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2844
2845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2846$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2847if test -z "$MKDIR_P"; then
2848  if test "${ac_cv_path_mkdir+set}" = set; then :
2849  $as_echo_n "(cached) " >&6
2850else
2851  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2853do
2854  IFS=$as_save_IFS
2855  test -z "$as_dir" && as_dir=.
2856    for ac_prog in mkdir gmkdir; do
2857	 for ac_exec_ext in '' $ac_executable_extensions; do
2858	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2859	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2860	     'mkdir (GNU coreutils) '* | \
2861	     'mkdir (coreutils) '* | \
2862	     'mkdir (fileutils) '4.1*)
2863	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2864	       break 3;;
2865	   esac
2866	 done
2867       done
2868  done
2869IFS=$as_save_IFS
2870
2871fi
2872
2873  if test "${ac_cv_path_mkdir+set}" = set; then
2874    MKDIR_P="$ac_cv_path_mkdir -p"
2875  else
2876    # As a last resort, use the slow shell script.  Don't cache a
2877    # value for MKDIR_P within a source directory, because that will
2878    # break other packages using the cache if that directory is
2879    # removed, or if the value is a relative name.
2880    test -d ./--version && rmdir ./--version
2881    MKDIR_P="$ac_install_sh -d"
2882  fi
2883fi
2884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2885$as_echo "$MKDIR_P" >&6; }
2886
2887mkdir_p="$MKDIR_P"
2888case $mkdir_p in
2889  [\\/$]* | ?:[\\/]*) ;;
2890  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2891esac
2892
2893for ac_prog in gawk mawk nawk awk
2894do
2895  # Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898$as_echo_n "checking for $ac_word... " >&6; }
2899if test "${ac_cv_prog_AWK+set}" = set; then :
2900  $as_echo_n "(cached) " >&6
2901else
2902  if test -n "$AWK"; then
2903  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910    for ac_exec_ext in '' $ac_executable_extensions; do
2911  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912    ac_cv_prog_AWK="$ac_prog"
2913    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917  done
2918IFS=$as_save_IFS
2919
2920fi
2921fi
2922AWK=$ac_cv_prog_AWK
2923if test -n "$AWK"; then
2924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2925$as_echo "$AWK" >&6; }
2926else
2927  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928$as_echo "no" >&6; }
2929fi
2930
2931
2932  test -n "$AWK" && break
2933done
2934
2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2936$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2937set x ${MAKE-make}
2938ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2939if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2940  $as_echo_n "(cached) " >&6
2941else
2942  cat >conftest.make <<\_ACEOF
2943SHELL = /bin/sh
2944all:
2945	@echo '@@@%%%=$(MAKE)=@@@%%%'
2946_ACEOF
2947# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2948case `${MAKE-make} -f conftest.make 2>/dev/null` in
2949  *@@@%%%=?*=@@@%%%*)
2950    eval ac_cv_prog_make_${ac_make}_set=yes;;
2951  *)
2952    eval ac_cv_prog_make_${ac_make}_set=no;;
2953esac
2954rm -f conftest.make
2955fi
2956if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2958$as_echo "yes" >&6; }
2959  SET_MAKE=
2960else
2961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2962$as_echo "no" >&6; }
2963  SET_MAKE="MAKE=${MAKE-make}"
2964fi
2965
2966rm -rf .tst 2>/dev/null
2967mkdir .tst 2>/dev/null
2968if test -d .tst; then
2969  am__leading_dot=.
2970else
2971  am__leading_dot=_
2972fi
2973rmdir .tst 2>/dev/null
2974
2975if test "`cd $srcdir && pwd`" != "`pwd`"; then
2976  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2977  # is not polluted with repeated "-I."
2978  am__isrc=' -I$(srcdir)'
2979  # test to see if srcdir already configured
2980  if test -f $srcdir/config.status; then
2981    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2982  fi
2983fi
2984
2985# test whether we have cygpath
2986if test -z "$CYGPATH_W"; then
2987  if (cygpath --version) >/dev/null 2>/dev/null; then
2988    CYGPATH_W='cygpath -w'
2989  else
2990    CYGPATH_W=echo
2991  fi
2992fi
2993
2994
2995# Define the identity of the package.
2996 PACKAGE=pidgin-encryption
2997 VERSION=$PIDGIN_ENC_VERSION
2998
2999
3000# Some tools Automake needs.
3001
3002ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003
3004
3005AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006
3007
3008AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009
3010
3011AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012
3013
3014MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3015
3016# We need awk for the "check" target.  The system "awk" is bad on
3017# some platforms.
3018# Always define AMTAR for backward compatibility.
3019
3020AMTAR=${AMTAR-"${am_missing_run}tar"}
3021
3022am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3023
3024
3025
3026
3027
3028
3029cat >>confdefs.h <<_ACEOF
3030#define ENC_VERSION "$PIDGIN_ENC_VERSION"
3031_ACEOF
3032
3033
3034
3035cat >>confdefs.h <<_ACEOF
3036#define ENC_PACKAGE "$PACKAGE"
3037_ACEOF
3038
3039
3040# before gettexting, in case iconv matters
3041case "$host_os" in
3042darwin*)
3043        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fink" >&5
3044$as_echo_n "checking for fink... " >&6; }
3045        if test -d /sw; then
3046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found, adding /sw to search paths" >&5
3047$as_echo "found, adding /sw to search paths" >&6; }
3048                CFLAGS="$CFLAGS -I/sw/include"
3049        else
3050                { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3051$as_echo "not found" >&6; }
3052        fi
3053        ;;
3054*)
3055        ;;
3056esac
3057
3058ALL_LINGUAS="bg cs da de es fr hu it ja lt nl nn pl pt_BR pt_PT ro ru sl sv ta tr uk zh_CN zh_TW"
3059
3060DEPDIR="${am__leading_dot}deps"
3061
3062ac_config_commands="$ac_config_commands depfiles"
3063
3064
3065am_make=${MAKE-make}
3066cat > confinc << 'END'
3067am__doit:
3068	@echo this is the am__doit target
3069.PHONY: am__doit
3070END
3071# If we don't find an include directive, just comment out the code.
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3073$as_echo_n "checking for style of include used by $am_make... " >&6; }
3074am__include="#"
3075am__quote=
3076_am_result=none
3077# First try GNU make style include.
3078echo "include confinc" > confmf
3079# Ignore all kinds of additional output from `make'.
3080case `$am_make -s -f confmf 2> /dev/null` in #(
3081*the\ am__doit\ target*)
3082  am__include=include
3083  am__quote=
3084  _am_result=GNU
3085  ;;
3086esac
3087# Now try BSD make style include.
3088if test "$am__include" = "#"; then
3089   echo '.include "confinc"' > confmf
3090   case `$am_make -s -f confmf 2> /dev/null` in #(
3091   *the\ am__doit\ target*)
3092     am__include=.include
3093     am__quote="\""
3094     _am_result=BSD
3095     ;;
3096   esac
3097fi
3098
3099
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3101$as_echo "$_am_result" >&6; }
3102rm -f confinc confmf
3103
3104# Check whether --enable-dependency-tracking was given.
3105if test "${enable_dependency_tracking+set}" = set; then :
3106  enableval=$enable_dependency_tracking;
3107fi
3108
3109if test "x$enable_dependency_tracking" != xno; then
3110  am_depcomp="$ac_aux_dir/depcomp"
3111  AMDEPBACKSLASH='\'
3112fi
3113 if test "x$enable_dependency_tracking" != xno; then
3114  AMDEP_TRUE=
3115  AMDEP_FALSE='#'
3116else
3117  AMDEP_TRUE='#'
3118  AMDEP_FALSE=
3119fi
3120
3121
3122ac_ext=c
3123ac_cpp='$CPP $CPPFLAGS'
3124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3126ac_compiler_gnu=$ac_cv_c_compiler_gnu
3127if test -n "$ac_tool_prefix"; then
3128  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3129set dummy ${ac_tool_prefix}gcc; ac_word=$2
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131$as_echo_n "checking for $ac_word... " >&6; }
3132if test "${ac_cv_prog_CC+set}" = set; then :
3133  $as_echo_n "(cached) " >&6
3134else
3135  if test -n "$CC"; then
3136  ac_cv_prog_CC="$CC" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141  IFS=$as_save_IFS
3142  test -z "$as_dir" && as_dir=.
3143    for ac_exec_ext in '' $ac_executable_extensions; do
3144  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3145    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3146    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147    break 2
3148  fi
3149done
3150  done
3151IFS=$as_save_IFS
3152
3153fi
3154fi
3155CC=$ac_cv_prog_CC
3156if test -n "$CC"; then
3157  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158$as_echo "$CC" >&6; }
3159else
3160  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162fi
3163
3164
3165fi
3166if test -z "$ac_cv_prog_CC"; then
3167  ac_ct_CC=$CC
3168  # Extract the first word of "gcc", so it can be a program name with args.
3169set dummy gcc; ac_word=$2
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171$as_echo_n "checking for $ac_word... " >&6; }
3172if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3173  $as_echo_n "(cached) " >&6
3174else
3175  if test -n "$ac_ct_CC"; then
3176  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3177else
3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179for as_dir in $PATH
3180do
3181  IFS=$as_save_IFS
3182  test -z "$as_dir" && as_dir=.
3183    for ac_exec_ext in '' $ac_executable_extensions; do
3184  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185    ac_cv_prog_ac_ct_CC="gcc"
3186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187    break 2
3188  fi
3189done
3190  done
3191IFS=$as_save_IFS
3192
3193fi
3194fi
3195ac_ct_CC=$ac_cv_prog_ac_ct_CC
3196if test -n "$ac_ct_CC"; then
3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3198$as_echo "$ac_ct_CC" >&6; }
3199else
3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201$as_echo "no" >&6; }
3202fi
3203
3204  if test "x$ac_ct_CC" = x; then
3205    CC=""
3206  else
3207    case $cross_compiling:$ac_tool_warned in
3208yes:)
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211ac_tool_warned=yes ;;
3212esac
3213    CC=$ac_ct_CC
3214  fi
3215else
3216  CC="$ac_cv_prog_CC"
3217fi
3218
3219if test -z "$CC"; then
3220          if test -n "$ac_tool_prefix"; then
3221    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3222set dummy ${ac_tool_prefix}cc; ac_word=$2
3223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3224$as_echo_n "checking for $ac_word... " >&6; }
3225if test "${ac_cv_prog_CC+set}" = set; then :
3226  $as_echo_n "(cached) " >&6
3227else
3228  if test -n "$CC"; then
3229  ac_cv_prog_CC="$CC" # Let the user override the test.
3230else
3231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3232for as_dir in $PATH
3233do
3234  IFS=$as_save_IFS
3235  test -z "$as_dir" && as_dir=.
3236    for ac_exec_ext in '' $ac_executable_extensions; do
3237  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3238    ac_cv_prog_CC="${ac_tool_prefix}cc"
3239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3240    break 2
3241  fi
3242done
3243  done
3244IFS=$as_save_IFS
3245
3246fi
3247fi
3248CC=$ac_cv_prog_CC
3249if test -n "$CC"; then
3250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3251$as_echo "$CC" >&6; }
3252else
3253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254$as_echo "no" >&6; }
3255fi
3256
3257
3258  fi
3259fi
3260if test -z "$CC"; then
3261  # Extract the first word of "cc", so it can be a program name with args.
3262set dummy cc; ac_word=$2
3263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3264$as_echo_n "checking for $ac_word... " >&6; }
3265if test "${ac_cv_prog_CC+set}" = set; then :
3266  $as_echo_n "(cached) " >&6
3267else
3268  if test -n "$CC"; then
3269  ac_cv_prog_CC="$CC" # Let the user override the test.
3270else
3271  ac_prog_rejected=no
3272as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273for as_dir in $PATH
3274do
3275  IFS=$as_save_IFS
3276  test -z "$as_dir" && as_dir=.
3277    for ac_exec_ext in '' $ac_executable_extensions; do
3278  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3280       ac_prog_rejected=yes
3281       continue
3282     fi
3283    ac_cv_prog_CC="cc"
3284    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285    break 2
3286  fi
3287done
3288  done
3289IFS=$as_save_IFS
3290
3291if test $ac_prog_rejected = yes; then
3292  # We found a bogon in the path, so make sure we never use it.
3293  set dummy $ac_cv_prog_CC
3294  shift
3295  if test $# != 0; then
3296    # We chose a different compiler from the bogus one.
3297    # However, it has the same basename, so the bogon will be chosen
3298    # first if we set CC to just the basename; use the full file name.
3299    shift
3300    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3301  fi
3302fi
3303fi
3304fi
3305CC=$ac_cv_prog_CC
3306if test -n "$CC"; then
3307  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3308$as_echo "$CC" >&6; }
3309else
3310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312fi
3313
3314
3315fi
3316if test -z "$CC"; then
3317  if test -n "$ac_tool_prefix"; then
3318  for ac_prog in cl.exe
3319  do
3320    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3321set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323$as_echo_n "checking for $ac_word... " >&6; }
3324if test "${ac_cv_prog_CC+set}" = set; then :
3325  $as_echo_n "(cached) " >&6
3326else
3327  if test -n "$CC"; then
3328  ac_cv_prog_CC="$CC" # Let the user override the test.
3329else
3330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331for as_dir in $PATH
3332do
3333  IFS=$as_save_IFS
3334  test -z "$as_dir" && as_dir=.
3335    for ac_exec_ext in '' $ac_executable_extensions; do
3336  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339    break 2
3340  fi
3341done
3342  done
3343IFS=$as_save_IFS
3344
3345fi
3346fi
3347CC=$ac_cv_prog_CC
3348if test -n "$CC"; then
3349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350$as_echo "$CC" >&6; }
3351else
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353$as_echo "no" >&6; }
3354fi
3355
3356
3357    test -n "$CC" && break
3358  done
3359fi
3360if test -z "$CC"; then
3361  ac_ct_CC=$CC
3362  for ac_prog in cl.exe
3363do
3364  # Extract the first word of "$ac_prog", so it can be a program name with args.
3365set dummy $ac_prog; ac_word=$2
3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3367$as_echo_n "checking for $ac_word... " >&6; }
3368if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3369  $as_echo_n "(cached) " >&6
3370else
3371  if test -n "$ac_ct_CC"; then
3372  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3373else
3374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3375for as_dir in $PATH
3376do
3377  IFS=$as_save_IFS
3378  test -z "$as_dir" && as_dir=.
3379    for ac_exec_ext in '' $ac_executable_extensions; do
3380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3381    ac_cv_prog_ac_ct_CC="$ac_prog"
3382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383    break 2
3384  fi
3385done
3386  done
3387IFS=$as_save_IFS
3388
3389fi
3390fi
3391ac_ct_CC=$ac_cv_prog_ac_ct_CC
3392if test -n "$ac_ct_CC"; then
3393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3394$as_echo "$ac_ct_CC" >&6; }
3395else
3396  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3397$as_echo "no" >&6; }
3398fi
3399
3400
3401  test -n "$ac_ct_CC" && break
3402done
3403
3404  if test "x$ac_ct_CC" = x; then
3405    CC=""
3406  else
3407    case $cross_compiling:$ac_tool_warned in
3408yes:)
3409{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3410$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3411ac_tool_warned=yes ;;
3412esac
3413    CC=$ac_ct_CC
3414  fi
3415fi
3416
3417fi
3418
3419
3420test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3422as_fn_error "no acceptable C compiler found in \$PATH
3423See \`config.log' for more details." "$LINENO" 5; }
3424
3425# Provide some information about the compiler.
3426$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3427set X $ac_compile
3428ac_compiler=$2
3429for ac_option in --version -v -V -qversion; do
3430  { { ac_try="$ac_compiler $ac_option >&5"
3431case "(($ac_try" in
3432  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433  *) ac_try_echo=$ac_try;;
3434esac
3435eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436$as_echo "$ac_try_echo"; } >&5
3437  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3438  ac_status=$?
3439  if test -s conftest.err; then
3440    sed '10a\
3441... rest of stderr output deleted ...
3442         10q' conftest.err >conftest.er1
3443    cat conftest.er1 >&5
3444    rm -f conftest.er1 conftest.err
3445  fi
3446  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3447  test $ac_status = 0; }
3448done
3449
3450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451/* end confdefs.h.  */
3452#include <stdio.h>
3453int
3454main ()
3455{
3456FILE *f = fopen ("conftest.out", "w");
3457 return ferror (f) || fclose (f) != 0;
3458
3459  ;
3460  return 0;
3461}
3462_ACEOF
3463ac_clean_files_save=$ac_clean_files
3464ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3465# Try to create an executable without -o first, disregard a.out.
3466# It will help us diagnose broken compilers, and finding out an intuition
3467# of exeext.
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3469$as_echo_n "checking for C compiler default output file name... " >&6; }
3470ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3471
3472# The possible output files:
3473ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3474
3475ac_rmfiles=
3476for ac_file in $ac_files
3477do
3478  case $ac_file in
3479    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3480    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3481  esac
3482done
3483rm -f $ac_rmfiles
3484
3485if { { ac_try="$ac_link_default"
3486case "(($ac_try" in
3487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488  *) ac_try_echo=$ac_try;;
3489esac
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
3492  (eval "$ac_link_default") 2>&5
3493  ac_status=$?
3494  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495  test $ac_status = 0; }; then :
3496  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3497# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3498# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3499# so that the user can short-circuit this test for compilers unknown to
3500# Autoconf.
3501for ac_file in $ac_files ''
3502do
3503  test -f "$ac_file" || continue
3504  case $ac_file in
3505    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3506	;;
3507    [ab].out )
3508	# We found the default executable, but exeext='' is most
3509	# certainly right.
3510	break;;
3511    *.* )
3512	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3513	then :; else
3514	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3515	fi
3516	# We set ac_cv_exeext here because the later test for it is not
3517	# safe: cross compilers may not add the suffix if given an `-o'
3518	# argument, so we may need to know it at that point already.
3519	# Even if this section looks crufty: it has the advantage of
3520	# actually working.
3521	break;;
3522    * )
3523	break;;
3524  esac
3525done
3526test "$ac_cv_exeext" = no && ac_cv_exeext=
3527
3528else
3529  ac_file=''
3530fi
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3532$as_echo "$ac_file" >&6; }
3533if test -z "$ac_file"; then :
3534  $as_echo "$as_me: failed program was:" >&5
3535sed 's/^/| /' conftest.$ac_ext >&5
3536
3537{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539{ as_fn_set_status 77
3540as_fn_error "C compiler cannot create executables
3541See \`config.log' for more details." "$LINENO" 5; }; }
3542fi
3543ac_exeext=$ac_cv_exeext
3544
3545# Check that the compiler produces executables we can run.  If not, either
3546# the compiler is broken, or we cross compile.
3547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3548$as_echo_n "checking whether the C compiler works... " >&6; }
3549# If not cross compiling, check that we can run a simple program.
3550if test "$cross_compiling" != yes; then
3551  if { ac_try='./$ac_file'
3552  { { case "(($ac_try" in
3553  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554  *) ac_try_echo=$ac_try;;
3555esac
3556eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557$as_echo "$ac_try_echo"; } >&5
3558  (eval "$ac_try") 2>&5
3559  ac_status=$?
3560  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561  test $ac_status = 0; }; }; then
3562    cross_compiling=no
3563  else
3564    if test "$cross_compiling" = maybe; then
3565	cross_compiling=yes
3566    else
3567	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3568$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3569as_fn_error "cannot run C compiled programs.
3570If you meant to cross compile, use \`--host'.
3571See \`config.log' for more details." "$LINENO" 5; }
3572    fi
3573  fi
3574fi
3575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3576$as_echo "yes" >&6; }
3577
3578rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3579ac_clean_files=$ac_clean_files_save
3580# Check that the compiler produces executables we can run.  If not, either
3581# the compiler is broken, or we cross compile.
3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3583$as_echo_n "checking whether we are cross compiling... " >&6; }
3584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3585$as_echo "$cross_compiling" >&6; }
3586
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3588$as_echo_n "checking for suffix of executables... " >&6; }
3589if { { ac_try="$ac_link"
3590case "(($ac_try" in
3591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592  *) ac_try_echo=$ac_try;;
3593esac
3594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3595$as_echo "$ac_try_echo"; } >&5
3596  (eval "$ac_link") 2>&5
3597  ac_status=$?
3598  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3599  test $ac_status = 0; }; then :
3600  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3601# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3602# work properly (i.e., refer to `conftest.exe'), while it won't with
3603# `rm'.
3604for ac_file in conftest.exe conftest conftest.*; do
3605  test -f "$ac_file" || continue
3606  case $ac_file in
3607    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3608    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609	  break;;
3610    * ) break;;
3611  esac
3612done
3613else
3614  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3615$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3616as_fn_error "cannot compute suffix of executables: cannot compile and link
3617See \`config.log' for more details." "$LINENO" 5; }
3618fi
3619rm -f conftest$ac_cv_exeext
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3621$as_echo "$ac_cv_exeext" >&6; }
3622
3623rm -f conftest.$ac_ext
3624EXEEXT=$ac_cv_exeext
3625ac_exeext=$EXEEXT
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3627$as_echo_n "checking for suffix of object files... " >&6; }
3628if test "${ac_cv_objext+set}" = set; then :
3629  $as_echo_n "(cached) " >&6
3630else
3631  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632/* end confdefs.h.  */
3633
3634int
3635main ()
3636{
3637
3638  ;
3639  return 0;
3640}
3641_ACEOF
3642rm -f conftest.o conftest.obj
3643if { { ac_try="$ac_compile"
3644case "(($ac_try" in
3645  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646  *) ac_try_echo=$ac_try;;
3647esac
3648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3649$as_echo "$ac_try_echo"; } >&5
3650  (eval "$ac_compile") 2>&5
3651  ac_status=$?
3652  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3653  test $ac_status = 0; }; then :
3654  for ac_file in conftest.o conftest.obj conftest.*; do
3655  test -f "$ac_file" || continue;
3656  case $ac_file in
3657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3658    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3659       break;;
3660  esac
3661done
3662else
3663  $as_echo "$as_me: failed program was:" >&5
3664sed 's/^/| /' conftest.$ac_ext >&5
3665
3666{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668as_fn_error "cannot compute suffix of object files: cannot compile
3669See \`config.log' for more details." "$LINENO" 5; }
3670fi
3671rm -f conftest.$ac_cv_objext conftest.$ac_ext
3672fi
3673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3674$as_echo "$ac_cv_objext" >&6; }
3675OBJEXT=$ac_cv_objext
3676ac_objext=$OBJEXT
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3678$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3679if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3680  $as_echo_n "(cached) " >&6
3681else
3682  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683/* end confdefs.h.  */
3684
3685int
3686main ()
3687{
3688#ifndef __GNUC__
3689       choke me
3690#endif
3691
3692  ;
3693  return 0;
3694}
3695_ACEOF
3696if ac_fn_c_try_compile "$LINENO"; then :
3697  ac_compiler_gnu=yes
3698else
3699  ac_compiler_gnu=no
3700fi
3701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3702ac_cv_c_compiler_gnu=$ac_compiler_gnu
3703
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3706$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3707if test $ac_compiler_gnu = yes; then
3708  GCC=yes
3709else
3710  GCC=
3711fi
3712ac_test_CFLAGS=${CFLAGS+set}
3713ac_save_CFLAGS=$CFLAGS
3714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3715$as_echo_n "checking whether $CC accepts -g... " >&6; }
3716if test "${ac_cv_prog_cc_g+set}" = set; then :
3717  $as_echo_n "(cached) " >&6
3718else
3719  ac_save_c_werror_flag=$ac_c_werror_flag
3720   ac_c_werror_flag=yes
3721   ac_cv_prog_cc_g=no
3722   CFLAGS="-g"
3723   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724/* end confdefs.h.  */
3725
3726int
3727main ()
3728{
3729
3730  ;
3731  return 0;
3732}
3733_ACEOF
3734if ac_fn_c_try_compile "$LINENO"; then :
3735  ac_cv_prog_cc_g=yes
3736else
3737  CFLAGS=""
3738      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739/* end confdefs.h.  */
3740
3741int
3742main ()
3743{
3744
3745  ;
3746  return 0;
3747}
3748_ACEOF
3749if ac_fn_c_try_compile "$LINENO"; then :
3750
3751else
3752  ac_c_werror_flag=$ac_save_c_werror_flag
3753	 CFLAGS="-g"
3754	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755/* end confdefs.h.  */
3756
3757int
3758main ()
3759{
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765if ac_fn_c_try_compile "$LINENO"; then :
3766  ac_cv_prog_cc_g=yes
3767fi
3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3769fi
3770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3771fi
3772rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3773   ac_c_werror_flag=$ac_save_c_werror_flag
3774fi
3775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3776$as_echo "$ac_cv_prog_cc_g" >&6; }
3777if test "$ac_test_CFLAGS" = set; then
3778  CFLAGS=$ac_save_CFLAGS
3779elif test $ac_cv_prog_cc_g = yes; then
3780  if test "$GCC" = yes; then
3781    CFLAGS="-g -O2"
3782  else
3783    CFLAGS="-g"
3784  fi
3785else
3786  if test "$GCC" = yes; then
3787    CFLAGS="-O2"
3788  else
3789    CFLAGS=
3790  fi
3791fi
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3793$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3794if test "${ac_cv_prog_cc_c89+set}" = set; then :
3795  $as_echo_n "(cached) " >&6
3796else
3797  ac_cv_prog_cc_c89=no
3798ac_save_CC=$CC
3799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800/* end confdefs.h.  */
3801#include <stdarg.h>
3802#include <stdio.h>
3803#include <sys/types.h>
3804#include <sys/stat.h>
3805/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3806struct buf { int x; };
3807FILE * (*rcsopen) (struct buf *, struct stat *, int);
3808static char *e (p, i)
3809     char **p;
3810     int i;
3811{
3812  return p[i];
3813}
3814static char *f (char * (*g) (char **, int), char **p, ...)
3815{
3816  char *s;
3817  va_list v;
3818  va_start (v,p);
3819  s = g (p, va_arg (v,int));
3820  va_end (v);
3821  return s;
3822}
3823
3824/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3825   function prototypes and stuff, but not '\xHH' hex character constants.
3826   These don't provoke an error unfortunately, instead are silently treated
3827   as 'x'.  The following induces an error, until -std is added to get
3828   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3829   array size at least.  It's necessary to write '\x00'==0 to get something
3830   that's true only with -std.  */
3831int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3832
3833/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3834   inside strings and character constants.  */
3835#define FOO(x) 'x'
3836int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3837
3838int test (int i, double x);
3839struct s1 {int (*f) (int a);};
3840struct s2 {int (*f) (double a);};
3841int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3842int argc;
3843char **argv;
3844int
3845main ()
3846{
3847return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3848  ;
3849  return 0;
3850}
3851_ACEOF
3852for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3853	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3854do
3855  CC="$ac_save_CC $ac_arg"
3856  if ac_fn_c_try_compile "$LINENO"; then :
3857  ac_cv_prog_cc_c89=$ac_arg
3858fi
3859rm -f core conftest.err conftest.$ac_objext
3860  test "x$ac_cv_prog_cc_c89" != "xno" && break
3861done
3862rm -f conftest.$ac_ext
3863CC=$ac_save_CC
3864
3865fi
3866# AC_CACHE_VAL
3867case "x$ac_cv_prog_cc_c89" in
3868  x)
3869    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3870$as_echo "none needed" >&6; } ;;
3871  xno)
3872    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3873$as_echo "unsupported" >&6; } ;;
3874  *)
3875    CC="$CC $ac_cv_prog_cc_c89"
3876    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3877$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3878esac
3879if test "x$ac_cv_prog_cc_c89" != xno; then :
3880
3881fi
3882
3883ac_ext=c
3884ac_cpp='$CPP $CPPFLAGS'
3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888
3889depcc="$CC"   am_compiler_list=
3890
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3892$as_echo_n "checking dependency style of $depcc... " >&6; }
3893if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3894  $as_echo_n "(cached) " >&6
3895else
3896  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3897  # We make a subdir and do the tests there.  Otherwise we can end up
3898  # making bogus files that we don't know about and never remove.  For
3899  # instance it was reported that on HP-UX the gcc test will end up
3900  # making a dummy file named `D' -- because `-MD' means `put the output
3901  # in D'.
3902  mkdir conftest.dir
3903  # Copy depcomp to subdir because otherwise we won't find it if we're
3904  # using a relative directory.
3905  cp "$am_depcomp" conftest.dir
3906  cd conftest.dir
3907  # We will build objects and dependencies in a subdirectory because
3908  # it helps to detect inapplicable dependency modes.  For instance
3909  # both Tru64's cc and ICC support -MD to output dependencies as a
3910  # side effect of compilation, but ICC will put the dependencies in
3911  # the current directory while Tru64 will put them in the object
3912  # directory.
3913  mkdir sub
3914
3915  am_cv_CC_dependencies_compiler_type=none
3916  if test "$am_compiler_list" = ""; then
3917     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3918  fi
3919  am__universal=false
3920  case " $depcc " in #(
3921     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3922     esac
3923
3924  for depmode in $am_compiler_list; do
3925    # Setup a source with many dependencies, because some compilers
3926    # like to wrap large dependency lists on column 80 (with \), and
3927    # we should not choose a depcomp mode which is confused by this.
3928    #
3929    # We need to recreate these files for each test, as the compiler may
3930    # overwrite some of them when testing with obscure command lines.
3931    # This happens at least with the AIX C compiler.
3932    : > sub/conftest.c
3933    for i in 1 2 3 4 5 6; do
3934      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3935      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3936      # Solaris 8's {/usr,}/bin/sh.
3937      touch sub/conftst$i.h
3938    done
3939    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3940
3941    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3942    # mode.  It turns out that the SunPro C++ compiler does not properly
3943    # handle `-M -o', and we need to detect this.  Also, some Intel
3944    # versions had trouble with output in subdirs
3945    am__obj=sub/conftest.${OBJEXT-o}
3946    am__minus_obj="-o $am__obj"
3947    case $depmode in
3948    gcc)
3949      # This depmode causes a compiler race in universal mode.
3950      test "$am__universal" = false || continue
3951      ;;
3952    nosideeffect)
3953      # after this tag, mechanisms are not by side-effect, so they'll
3954      # only be used when explicitly requested
3955      if test "x$enable_dependency_tracking" = xyes; then
3956	continue
3957      else
3958	break
3959      fi
3960      ;;
3961    msvisualcpp | msvcmsys)
3962      # This compiler won't grok `-c -o', but also, the minuso test has
3963      # not run yet.  These depmodes are late enough in the game, and
3964      # so weak that their functioning should not be impacted.
3965      am__obj=conftest.${OBJEXT-o}
3966      am__minus_obj=
3967      ;;
3968    none) break ;;
3969    esac
3970    if depmode=$depmode \
3971       source=sub/conftest.c object=$am__obj \
3972       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3973       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3974         >/dev/null 2>conftest.err &&
3975       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3976       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3977       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3978       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3979      # icc doesn't choke on unknown options, it will just issue warnings
3980      # or remarks (even with -Werror).  So we grep stderr for any message
3981      # that says an option was ignored or not supported.
3982      # When given -MP, icc 7.0 and 7.1 complain thusly:
3983      #   icc: Command line warning: ignoring option '-M'; no argument required
3984      # The diagnosis changed in icc 8.0:
3985      #   icc: Command line remark: option '-MP' not supported
3986      if (grep 'ignoring option' conftest.err ||
3987          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3988        am_cv_CC_dependencies_compiler_type=$depmode
3989        break
3990      fi
3991    fi
3992  done
3993
3994  cd ..
3995  rm -rf conftest.dir
3996else
3997  am_cv_CC_dependencies_compiler_type=none
3998fi
3999
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4002$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4003CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4004
4005 if
4006  test "x$enable_dependency_tracking" != xno \
4007  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4008  am__fastdepCC_TRUE=
4009  am__fastdepCC_FALSE='#'
4010else
4011  am__fastdepCC_TRUE='#'
4012  am__fastdepCC_FALSE=
4013fi
4014
4015
4016if test -n "$ac_tool_prefix"; then
4017  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4018set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020$as_echo_n "checking for $ac_word... " >&6; }
4021if test "${ac_cv_prog_RANLIB+set}" = set; then :
4022  $as_echo_n "(cached) " >&6
4023else
4024  if test -n "$RANLIB"; then
4025  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4026else
4027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4028for as_dir in $PATH
4029do
4030  IFS=$as_save_IFS
4031  test -z "$as_dir" && as_dir=.
4032    for ac_exec_ext in '' $ac_executable_extensions; do
4033  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4034    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4035    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036    break 2
4037  fi
4038done
4039  done
4040IFS=$as_save_IFS
4041
4042fi
4043fi
4044RANLIB=$ac_cv_prog_RANLIB
4045if test -n "$RANLIB"; then
4046  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4047$as_echo "$RANLIB" >&6; }
4048else
4049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050$as_echo "no" >&6; }
4051fi
4052
4053
4054fi
4055if test -z "$ac_cv_prog_RANLIB"; then
4056  ac_ct_RANLIB=$RANLIB
4057  # Extract the first word of "ranlib", so it can be a program name with args.
4058set dummy ranlib; ac_word=$2
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4060$as_echo_n "checking for $ac_word... " >&6; }
4061if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
4062  $as_echo_n "(cached) " >&6
4063else
4064  if test -n "$ac_ct_RANLIB"; then
4065  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4066else
4067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4068for as_dir in $PATH
4069do
4070  IFS=$as_save_IFS
4071  test -z "$as_dir" && as_dir=.
4072    for ac_exec_ext in '' $ac_executable_extensions; do
4073  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4074    ac_cv_prog_ac_ct_RANLIB="ranlib"
4075    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4076    break 2
4077  fi
4078done
4079  done
4080IFS=$as_save_IFS
4081
4082fi
4083fi
4084ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4085if test -n "$ac_ct_RANLIB"; then
4086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4087$as_echo "$ac_ct_RANLIB" >&6; }
4088else
4089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091fi
4092
4093  if test "x$ac_ct_RANLIB" = x; then
4094    RANLIB=":"
4095  else
4096    case $cross_compiling:$ac_tool_warned in
4097yes:)
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4100ac_tool_warned=yes ;;
4101esac
4102    RANLIB=$ac_ct_RANLIB
4103  fi
4104else
4105  RANLIB="$ac_cv_prog_RANLIB"
4106fi
4107
4108
4109
4110        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
4111$as_echo_n "checking for strerror in -lcposix... " >&6; }
4112if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
4113  $as_echo_n "(cached) " >&6
4114else
4115  ac_check_lib_save_LIBS=$LIBS
4116LIBS="-lcposix  $LIBS"
4117cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118/* end confdefs.h.  */
4119
4120/* Override any GCC internal prototype to avoid an error.
4121   Use char because int might match the return type of a GCC
4122   builtin and then its argument prototype would still apply.  */
4123#ifdef __cplusplus
4124extern "C"
4125#endif
4126char strerror ();
4127int
4128main ()
4129{
4130return strerror ();
4131  ;
4132  return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_link "$LINENO"; then :
4136  ac_cv_lib_cposix_strerror=yes
4137else
4138  ac_cv_lib_cposix_strerror=no
4139fi
4140rm -f core conftest.err conftest.$ac_objext \
4141    conftest$ac_exeext conftest.$ac_ext
4142LIBS=$ac_check_lib_save_LIBS
4143fi
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
4145$as_echo "$ac_cv_lib_cposix_strerror" >&6; }
4146if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
4147  LIBS="$LIBS -lcposix"
4148fi
4149
4150
4151
4152ac_ext=c
4153ac_cpp='$CPP $CPPFLAGS'
4154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156ac_compiler_gnu=$ac_cv_c_compiler_gnu
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4158$as_echo_n "checking how to run the C preprocessor... " >&6; }
4159# On Suns, sometimes $CPP names a directory.
4160if test -n "$CPP" && test -d "$CPP"; then
4161  CPP=
4162fi
4163if test -z "$CPP"; then
4164  if test "${ac_cv_prog_CPP+set}" = set; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167      # Double quotes because CPP needs to be expanded
4168    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4169    do
4170      ac_preproc_ok=false
4171for ac_c_preproc_warn_flag in '' yes
4172do
4173  # Use a header file that comes with gcc, so configuring glibc
4174  # with a fresh cross-compiler works.
4175  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4176  # <limits.h> exists even on freestanding compilers.
4177  # On the NeXT, cc -E runs the code through the compiler's parser,
4178  # not just through cpp. "Syntax error" is here to catch this case.
4179  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h.  */
4181#ifdef __STDC__
4182# include <limits.h>
4183#else
4184# include <assert.h>
4185#endif
4186		     Syntax error
4187_ACEOF
4188if ac_fn_c_try_cpp "$LINENO"; then :
4189
4190else
4191  # Broken: fails on valid input.
4192continue
4193fi
4194rm -f conftest.err conftest.$ac_ext
4195
4196  # OK, works on sane cases.  Now check whether nonexistent headers
4197  # can be detected and how.
4198  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199/* end confdefs.h.  */
4200#include <ac_nonexistent.h>
4201_ACEOF
4202if ac_fn_c_try_cpp "$LINENO"; then :
4203  # Broken: success on invalid input.
4204continue
4205else
4206  # Passes both tests.
4207ac_preproc_ok=:
4208break
4209fi
4210rm -f conftest.err conftest.$ac_ext
4211
4212done
4213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4214rm -f conftest.err conftest.$ac_ext
4215if $ac_preproc_ok; then :
4216  break
4217fi
4218
4219    done
4220    ac_cv_prog_CPP=$CPP
4221
4222fi
4223  CPP=$ac_cv_prog_CPP
4224else
4225  ac_cv_prog_CPP=$CPP
4226fi
4227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4228$as_echo "$CPP" >&6; }
4229ac_preproc_ok=false
4230for ac_c_preproc_warn_flag in '' yes
4231do
4232  # Use a header file that comes with gcc, so configuring glibc
4233  # with a fresh cross-compiler works.
4234  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4235  # <limits.h> exists even on freestanding compilers.
4236  # On the NeXT, cc -E runs the code through the compiler's parser,
4237  # not just through cpp. "Syntax error" is here to catch this case.
4238  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239/* end confdefs.h.  */
4240#ifdef __STDC__
4241# include <limits.h>
4242#else
4243# include <assert.h>
4244#endif
4245		     Syntax error
4246_ACEOF
4247if ac_fn_c_try_cpp "$LINENO"; then :
4248
4249else
4250  # Broken: fails on valid input.
4251continue
4252fi
4253rm -f conftest.err conftest.$ac_ext
4254
4255  # OK, works on sane cases.  Now check whether nonexistent headers
4256  # can be detected and how.
4257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h.  */
4259#include <ac_nonexistent.h>
4260_ACEOF
4261if ac_fn_c_try_cpp "$LINENO"; then :
4262  # Broken: success on invalid input.
4263continue
4264else
4265  # Passes both tests.
4266ac_preproc_ok=:
4267break
4268fi
4269rm -f conftest.err conftest.$ac_ext
4270
4271done
4272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4273rm -f conftest.err conftest.$ac_ext
4274if $ac_preproc_ok; then :
4275
4276else
4277  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4279as_fn_error "C preprocessor \"$CPP\" fails sanity check
4280See \`config.log' for more details." "$LINENO" 5; }
4281fi
4282
4283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
4289
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4291$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4292if test "${ac_cv_path_GREP+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  if test -z "$GREP"; then
4296  ac_path_GREP_found=false
4297  # Loop through the user's path and test for each of PROGNAME-LIST
4298  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4300do
4301  IFS=$as_save_IFS
4302  test -z "$as_dir" && as_dir=.
4303    for ac_prog in grep ggrep; do
4304    for ac_exec_ext in '' $ac_executable_extensions; do
4305      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4306      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4307# Check for GNU ac_path_GREP and select it if it is found.
4308  # Check for GNU $ac_path_GREP
4309case `"$ac_path_GREP" --version 2>&1` in
4310*GNU*)
4311  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4312*)
4313  ac_count=0
4314  $as_echo_n 0123456789 >"conftest.in"
4315  while :
4316  do
4317    cat "conftest.in" "conftest.in" >"conftest.tmp"
4318    mv "conftest.tmp" "conftest.in"
4319    cp "conftest.in" "conftest.nl"
4320    $as_echo 'GREP' >> "conftest.nl"
4321    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4322    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4323    as_fn_arith $ac_count + 1 && ac_count=$as_val
4324    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4325      # Best one so far, save it but keep looking for a better one
4326      ac_cv_path_GREP="$ac_path_GREP"
4327      ac_path_GREP_max=$ac_count
4328    fi
4329    # 10*(2^10) chars as input seems more than enough
4330    test $ac_count -gt 10 && break
4331  done
4332  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4333esac
4334
4335      $ac_path_GREP_found && break 3
4336    done
4337  done
4338  done
4339IFS=$as_save_IFS
4340  if test -z "$ac_cv_path_GREP"; then
4341    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4342  fi
4343else
4344  ac_cv_path_GREP=$GREP
4345fi
4346
4347fi
4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4349$as_echo "$ac_cv_path_GREP" >&6; }
4350 GREP="$ac_cv_path_GREP"
4351
4352
4353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4354$as_echo_n "checking for egrep... " >&6; }
4355if test "${ac_cv_path_EGREP+set}" = set; then :
4356  $as_echo_n "(cached) " >&6
4357else
4358  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4359   then ac_cv_path_EGREP="$GREP -E"
4360   else
4361     if test -z "$EGREP"; then
4362  ac_path_EGREP_found=false
4363  # Loop through the user's path and test for each of PROGNAME-LIST
4364  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366do
4367  IFS=$as_save_IFS
4368  test -z "$as_dir" && as_dir=.
4369    for ac_prog in egrep; do
4370    for ac_exec_ext in '' $ac_executable_extensions; do
4371      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4372      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4373# Check for GNU ac_path_EGREP and select it if it is found.
4374  # Check for GNU $ac_path_EGREP
4375case `"$ac_path_EGREP" --version 2>&1` in
4376*GNU*)
4377  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4378*)
4379  ac_count=0
4380  $as_echo_n 0123456789 >"conftest.in"
4381  while :
4382  do
4383    cat "conftest.in" "conftest.in" >"conftest.tmp"
4384    mv "conftest.tmp" "conftest.in"
4385    cp "conftest.in" "conftest.nl"
4386    $as_echo 'EGREP' >> "conftest.nl"
4387    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4388    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4389    as_fn_arith $ac_count + 1 && ac_count=$as_val
4390    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4391      # Best one so far, save it but keep looking for a better one
4392      ac_cv_path_EGREP="$ac_path_EGREP"
4393      ac_path_EGREP_max=$ac_count
4394    fi
4395    # 10*(2^10) chars as input seems more than enough
4396    test $ac_count -gt 10 && break
4397  done
4398  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4399esac
4400
4401      $ac_path_EGREP_found && break 3
4402    done
4403  done
4404  done
4405IFS=$as_save_IFS
4406  if test -z "$ac_cv_path_EGREP"; then
4407    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4408  fi
4409else
4410  ac_cv_path_EGREP=$EGREP
4411fi
4412
4413   fi
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4416$as_echo "$ac_cv_path_EGREP" >&6; }
4417 EGREP="$ac_cv_path_EGREP"
4418
4419
4420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4421$as_echo_n "checking for ANSI C header files... " >&6; }
4422if test "${ac_cv_header_stdc+set}" = set; then :
4423  $as_echo_n "(cached) " >&6
4424else
4425  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4426/* end confdefs.h.  */
4427#include <stdlib.h>
4428#include <stdarg.h>
4429#include <string.h>
4430#include <float.h>
4431
4432int
4433main ()
4434{
4435
4436  ;
4437  return 0;
4438}
4439_ACEOF
4440if ac_fn_c_try_compile "$LINENO"; then :
4441  ac_cv_header_stdc=yes
4442else
4443  ac_cv_header_stdc=no
4444fi
4445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4446
4447if test $ac_cv_header_stdc = yes; then
4448  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4449  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450/* end confdefs.h.  */
4451#include <string.h>
4452
4453_ACEOF
4454if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4455  $EGREP "memchr" >/dev/null 2>&1; then :
4456
4457else
4458  ac_cv_header_stdc=no
4459fi
4460rm -f conftest*
4461
4462fi
4463
4464if test $ac_cv_header_stdc = yes; then
4465  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4466  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4467/* end confdefs.h.  */
4468#include <stdlib.h>
4469
4470_ACEOF
4471if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4472  $EGREP "free" >/dev/null 2>&1; then :
4473
4474else
4475  ac_cv_header_stdc=no
4476fi
4477rm -f conftest*
4478
4479fi
4480
4481if test $ac_cv_header_stdc = yes; then
4482  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4483  if test "$cross_compiling" = yes; then :
4484  :
4485else
4486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4487/* end confdefs.h.  */
4488#include <ctype.h>
4489#include <stdlib.h>
4490#if ((' ' & 0x0FF) == 0x020)
4491# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4492# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4493#else
4494# define ISLOWER(c) \
4495		   (('a' <= (c) && (c) <= 'i') \
4496		     || ('j' <= (c) && (c) <= 'r') \
4497		     || ('s' <= (c) && (c) <= 'z'))
4498# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4499#endif
4500
4501#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4502int
4503main ()
4504{
4505  int i;
4506  for (i = 0; i < 256; i++)
4507    if (XOR (islower (i), ISLOWER (i))
4508	|| toupper (i) != TOUPPER (i))
4509      return 2;
4510  return 0;
4511}
4512_ACEOF
4513if ac_fn_c_try_run "$LINENO"; then :
4514
4515else
4516  ac_cv_header_stdc=no
4517fi
4518rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4519  conftest.$ac_objext conftest.beam conftest.$ac_ext
4520fi
4521
4522fi
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4525$as_echo "$ac_cv_header_stdc" >&6; }
4526if test $ac_cv_header_stdc = yes; then
4527
4528$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4529
4530fi
4531
4532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4533$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4534if test "${ac_cv_c_const+set}" = set; then :
4535  $as_echo_n "(cached) " >&6
4536else
4537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539
4540int
4541main ()
4542{
4543/* FIXME: Include the comments suggested by Paul. */
4544#ifndef __cplusplus
4545  /* Ultrix mips cc rejects this.  */
4546  typedef int charset[2];
4547  const charset cs;
4548  /* SunOS 4.1.1 cc rejects this.  */
4549  char const *const *pcpcc;
4550  char **ppc;
4551  /* NEC SVR4.0.2 mips cc rejects this.  */
4552  struct point {int x, y;};
4553  static struct point const zero = {0,0};
4554  /* AIX XL C 1.02.0.0 rejects this.
4555     It does not let you subtract one const X* pointer from another in
4556     an arm of an if-expression whose if-part is not a constant
4557     expression */
4558  const char *g = "string";
4559  pcpcc = &g + (g ? g-g : 0);
4560  /* HPUX 7.0 cc rejects these. */
4561  ++pcpcc;
4562  ppc = (char**) pcpcc;
4563  pcpcc = (char const *const *) ppc;
4564  { /* SCO 3.2v4 cc rejects this.  */
4565    char *t;
4566    char const *s = 0 ? (char *) 0 : (char const *) 0;
4567
4568    *t++ = 0;
4569    if (s) return 0;
4570  }
4571  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
4572    int x[] = {25, 17};
4573    const int *foo = &x[0];
4574    ++foo;
4575  }
4576  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4577    typedef const int *iptr;
4578    iptr p = 0;
4579    ++p;
4580  }
4581  { /* AIX XL C 1.02.0.0 rejects this saying
4582       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4583    struct s { int j; const int *ap[3]; };
4584    struct s *b; b->j = 5;
4585  }
4586  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4587    const int foo = 10;
4588    if (!foo) return 0;
4589  }
4590  return !cs[0] && !zero.x;
4591#endif
4592
4593  ;
4594  return 0;
4595}
4596_ACEOF
4597if ac_fn_c_try_compile "$LINENO"; then :
4598  ac_cv_c_const=yes
4599else
4600  ac_cv_c_const=no
4601fi
4602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603fi
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4605$as_echo "$ac_cv_c_const" >&6; }
4606if test $ac_cv_c_const = no; then
4607
4608$as_echo "#define const /**/" >>confdefs.h
4609
4610fi
4611
4612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4613$as_echo_n "checking for inline... " >&6; }
4614if test "${ac_cv_c_inline+set}" = set; then :
4615  $as_echo_n "(cached) " >&6
4616else
4617  ac_cv_c_inline=no
4618for ac_kw in inline __inline__ __inline; do
4619  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620/* end confdefs.h.  */
4621#ifndef __cplusplus
4622typedef int foo_t;
4623static $ac_kw foo_t static_foo () {return 0; }
4624$ac_kw foo_t foo () {return 0; }
4625#endif
4626
4627_ACEOF
4628if ac_fn_c_try_compile "$LINENO"; then :
4629  ac_cv_c_inline=$ac_kw
4630fi
4631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632  test "$ac_cv_c_inline" != no && break
4633done
4634
4635fi
4636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4637$as_echo "$ac_cv_c_inline" >&6; }
4638
4639case $ac_cv_c_inline in
4640  inline | yes) ;;
4641  *)
4642    case $ac_cv_c_inline in
4643      no) ac_val=;;
4644      *) ac_val=$ac_cv_c_inline;;
4645    esac
4646    cat >>confdefs.h <<_ACEOF
4647#ifndef __cplusplus
4648#define inline $ac_val
4649#endif
4650_ACEOF
4651    ;;
4652esac
4653
4654# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4655for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4656		  inttypes.h stdint.h unistd.h
4657do :
4658  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4659ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4660"
4661eval as_val=\$$as_ac_Header
4662   if test "x$as_val" = x""yes; then :
4663  cat >>confdefs.h <<_ACEOF
4664#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4665_ACEOF
4666
4667fi
4668
4669done
4670
4671
4672ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4673if test "x$ac_cv_type_off_t" = x""yes; then :
4674
4675else
4676
4677cat >>confdefs.h <<_ACEOF
4678#define off_t long int
4679_ACEOF
4680
4681fi
4682
4683ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4684if test "x$ac_cv_type_size_t" = x""yes; then :
4685
4686else
4687
4688cat >>confdefs.h <<_ACEOF
4689#define size_t unsigned int
4690_ACEOF
4691
4692fi
4693
4694# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4695# for constant arguments.  Useless!
4696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4697$as_echo_n "checking for working alloca.h... " >&6; }
4698if test "${ac_cv_working_alloca_h+set}" = set; then :
4699  $as_echo_n "(cached) " >&6
4700else
4701  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702/* end confdefs.h.  */
4703#include <alloca.h>
4704int
4705main ()
4706{
4707char *p = (char *) alloca (2 * sizeof (int));
4708			  if (p) return 0;
4709  ;
4710  return 0;
4711}
4712_ACEOF
4713if ac_fn_c_try_link "$LINENO"; then :
4714  ac_cv_working_alloca_h=yes
4715else
4716  ac_cv_working_alloca_h=no
4717fi
4718rm -f core conftest.err conftest.$ac_objext \
4719    conftest$ac_exeext conftest.$ac_ext
4720fi
4721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4722$as_echo "$ac_cv_working_alloca_h" >&6; }
4723if test $ac_cv_working_alloca_h = yes; then
4724
4725$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4726
4727fi
4728
4729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4730$as_echo_n "checking for alloca... " >&6; }
4731if test "${ac_cv_func_alloca_works+set}" = set; then :
4732  $as_echo_n "(cached) " >&6
4733else
4734  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h.  */
4736#ifdef __GNUC__
4737# define alloca __builtin_alloca
4738#else
4739# ifdef _MSC_VER
4740#  include <malloc.h>
4741#  define alloca _alloca
4742# else
4743#  ifdef HAVE_ALLOCA_H
4744#   include <alloca.h>
4745#  else
4746#   ifdef _AIX
4747 #pragma alloca
4748#   else
4749#    ifndef alloca /* predefined by HP cc +Olibcalls */
4750char *alloca ();
4751#    endif
4752#   endif
4753#  endif
4754# endif
4755#endif
4756
4757int
4758main ()
4759{
4760char *p = (char *) alloca (1);
4761				    if (p) return 0;
4762  ;
4763  return 0;
4764}
4765_ACEOF
4766if ac_fn_c_try_link "$LINENO"; then :
4767  ac_cv_func_alloca_works=yes
4768else
4769  ac_cv_func_alloca_works=no
4770fi
4771rm -f core conftest.err conftest.$ac_objext \
4772    conftest$ac_exeext conftest.$ac_ext
4773fi
4774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4775$as_echo "$ac_cv_func_alloca_works" >&6; }
4776
4777if test $ac_cv_func_alloca_works = yes; then
4778
4779$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4780
4781else
4782  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4783# that cause trouble.  Some versions do not even contain alloca or
4784# contain a buggy version.  If you still want to use their alloca,
4785# use ar to extract alloca.o from them instead of compiling alloca.c.
4786
4787ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4788
4789$as_echo "#define C_ALLOCA 1" >>confdefs.h
4790
4791
4792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4793$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4794if test "${ac_cv_os_cray+set}" = set; then :
4795  $as_echo_n "(cached) " >&6
4796else
4797  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4798/* end confdefs.h.  */
4799#if defined CRAY && ! defined CRAY2
4800webecray
4801#else
4802wenotbecray
4803#endif
4804
4805_ACEOF
4806if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4807  $EGREP "webecray" >/dev/null 2>&1; then :
4808  ac_cv_os_cray=yes
4809else
4810  ac_cv_os_cray=no
4811fi
4812rm -f conftest*
4813
4814fi
4815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4816$as_echo "$ac_cv_os_cray" >&6; }
4817if test $ac_cv_os_cray = yes; then
4818  for ac_func in _getb67 GETB67 getb67; do
4819    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4820ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4821eval as_val=\$$as_ac_var
4822   if test "x$as_val" = x""yes; then :
4823
4824cat >>confdefs.h <<_ACEOF
4825#define CRAY_STACKSEG_END $ac_func
4826_ACEOF
4827
4828    break
4829fi
4830
4831  done
4832fi
4833
4834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4835$as_echo_n "checking stack direction for C alloca... " >&6; }
4836if test "${ac_cv_c_stack_direction+set}" = set; then :
4837  $as_echo_n "(cached) " >&6
4838else
4839  if test "$cross_compiling" = yes; then :
4840  ac_cv_c_stack_direction=0
4841else
4842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4843/* end confdefs.h.  */
4844$ac_includes_default
4845int
4846find_stack_direction ()
4847{
4848  static char *addr = 0;
4849  auto char dummy;
4850  if (addr == 0)
4851    {
4852      addr = &dummy;
4853      return find_stack_direction ();
4854    }
4855  else
4856    return (&dummy > addr) ? 1 : -1;
4857}
4858
4859int
4860main ()
4861{
4862  return find_stack_direction () < 0;
4863}
4864_ACEOF
4865if ac_fn_c_try_run "$LINENO"; then :
4866  ac_cv_c_stack_direction=1
4867else
4868  ac_cv_c_stack_direction=-1
4869fi
4870rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4871  conftest.$ac_objext conftest.beam conftest.$ac_ext
4872fi
4873
4874fi
4875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4876$as_echo "$ac_cv_c_stack_direction" >&6; }
4877cat >>confdefs.h <<_ACEOF
4878#define STACK_DIRECTION $ac_cv_c_stack_direction
4879_ACEOF
4880
4881
4882fi
4883
4884for ac_header in stdlib.h unistd.h
4885do :
4886  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4887ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4888eval as_val=\$$as_ac_Header
4889   if test "x$as_val" = x""yes; then :
4890  cat >>confdefs.h <<_ACEOF
4891#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4892_ACEOF
4893
4894fi
4895
4896done
4897
4898for ac_func in getpagesize
4899do :
4900  ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4901if test "x$ac_cv_func_getpagesize" = x""yes; then :
4902  cat >>confdefs.h <<_ACEOF
4903#define HAVE_GETPAGESIZE 1
4904_ACEOF
4905
4906fi
4907done
4908
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4910$as_echo_n "checking for working mmap... " >&6; }
4911if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4912  $as_echo_n "(cached) " >&6
4913else
4914  if test "$cross_compiling" = yes; then :
4915  ac_cv_func_mmap_fixed_mapped=no
4916else
4917  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918/* end confdefs.h.  */
4919$ac_includes_default
4920/* malloc might have been renamed as rpl_malloc. */
4921#undef malloc
4922
4923/* Thanks to Mike Haertel and Jim Avera for this test.
4924   Here is a matrix of mmap possibilities:
4925	mmap private not fixed
4926	mmap private fixed at somewhere currently unmapped
4927	mmap private fixed at somewhere already mapped
4928	mmap shared not fixed
4929	mmap shared fixed at somewhere currently unmapped
4930	mmap shared fixed at somewhere already mapped
4931   For private mappings, we should verify that changes cannot be read()
4932   back from the file, nor mmap's back from the file at a different
4933   address.  (There have been systems where private was not correctly
4934   implemented like the infamous i386 svr4.0, and systems where the
4935   VM page cache was not coherent with the file system buffer cache
4936   like early versions of FreeBSD and possibly contemporary NetBSD.)
4937   For shared mappings, we should conversely verify that changes get
4938   propagated back to all the places they're supposed to be.
4939
4940   Grep wants private fixed already mapped.
4941   The main things grep needs to know about mmap are:
4942   * does it exist and is it safe to write into the mmap'd area
4943   * how to use it (BSD variants)  */
4944
4945#include <fcntl.h>
4946#include <sys/mman.h>
4947
4948#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4949char *malloc ();
4950#endif
4951
4952/* This mess was copied from the GNU getpagesize.h.  */
4953#ifndef HAVE_GETPAGESIZE
4954/* Assume that all systems that can run configure have sys/param.h.  */
4955# ifndef HAVE_SYS_PARAM_H
4956#  define HAVE_SYS_PARAM_H 1
4957# endif
4958
4959# ifdef _SC_PAGESIZE
4960#  define getpagesize() sysconf(_SC_PAGESIZE)
4961# else /* no _SC_PAGESIZE */
4962#  ifdef HAVE_SYS_PARAM_H
4963#   include <sys/param.h>
4964#   ifdef EXEC_PAGESIZE
4965#    define getpagesize() EXEC_PAGESIZE
4966#   else /* no EXEC_PAGESIZE */
4967#    ifdef NBPG
4968#     define getpagesize() NBPG * CLSIZE
4969#     ifndef CLSIZE
4970#      define CLSIZE 1
4971#     endif /* no CLSIZE */
4972#    else /* no NBPG */
4973#     ifdef NBPC
4974#      define getpagesize() NBPC
4975#     else /* no NBPC */
4976#      ifdef PAGESIZE
4977#       define getpagesize() PAGESIZE
4978#      endif /* PAGESIZE */
4979#     endif /* no NBPC */
4980#    endif /* no NBPG */
4981#   endif /* no EXEC_PAGESIZE */
4982#  else /* no HAVE_SYS_PARAM_H */
4983#   define getpagesize() 8192	/* punt totally */
4984#  endif /* no HAVE_SYS_PARAM_H */
4985# endif /* no _SC_PAGESIZE */
4986
4987#endif /* no HAVE_GETPAGESIZE */
4988
4989int
4990main ()
4991{
4992  char *data, *data2, *data3;
4993  int i, pagesize;
4994  int fd;
4995
4996  pagesize = getpagesize ();
4997
4998  /* First, make a file with some known garbage in it. */
4999  data = (char *) malloc (pagesize);
5000  if (!data)
5001    return 1;
5002  for (i = 0; i < pagesize; ++i)
5003    *(data + i) = rand ();
5004  umask (0);
5005  fd = creat ("conftest.mmap", 0600);
5006  if (fd < 0)
5007    return 1;
5008  if (write (fd, data, pagesize) != pagesize)
5009    return 1;
5010  close (fd);
5011
5012  /* Next, try to mmap the file at a fixed address which already has
5013     something else allocated at it.  If we can, also make sure that
5014     we see the same garbage.  */
5015  fd = open ("conftest.mmap", O_RDWR);
5016  if (fd < 0)
5017    return 1;
5018  data2 = (char *) malloc (2 * pagesize);
5019  if (!data2)
5020    return 1;
5021  data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
5022  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
5023		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
5024    return 1;
5025  for (i = 0; i < pagesize; ++i)
5026    if (*(data + i) != *(data2 + i))
5027      return 1;
5028
5029  /* Finally, make sure that changes to the mapped area do not
5030     percolate back to the file as seen by read().  (This is a bug on
5031     some variants of i386 svr4.0.)  */
5032  for (i = 0; i < pagesize; ++i)
5033    *(data2 + i) = *(data2 + i) + 1;
5034  data3 = (char *) malloc (pagesize);
5035  if (!data3)
5036    return 1;
5037  if (read (fd, data3, pagesize) != pagesize)
5038    return 1;
5039  for (i = 0; i < pagesize; ++i)
5040    if (*(data + i) != *(data3 + i))
5041      return 1;
5042  close (fd);
5043  return 0;
5044}
5045_ACEOF
5046if ac_fn_c_try_run "$LINENO"; then :
5047  ac_cv_func_mmap_fixed_mapped=yes
5048else
5049  ac_cv_func_mmap_fixed_mapped=no
5050fi
5051rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5052  conftest.$ac_objext conftest.beam conftest.$ac_ext
5053fi
5054
5055fi
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
5057$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
5058if test $ac_cv_func_mmap_fixed_mapped = yes; then
5059
5060$as_echo "#define HAVE_MMAP 1" >>confdefs.h
5061
5062fi
5063rm -f conftest.mmap
5064
5065
5066    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
5067$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
5068if test "${ac_cv_gnu_library_2_1+set}" = set; then :
5069  $as_echo_n "(cached) " >&6
5070else
5071  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5072/* end confdefs.h.  */
5073
5074#include <features.h>
5075#ifdef __GNU_LIBRARY__
5076 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
5077  Lucky GNU user
5078 #endif
5079#endif
5080
5081_ACEOF
5082if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5083  $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
5084  ac_cv_gnu_library_2_1=yes
5085else
5086  ac_cv_gnu_library_2_1=no
5087fi
5088rm -f conftest*
5089
5090
5091
5092fi
5093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
5094$as_echo "$ac_cv_gnu_library_2_1" >&6; }
5095
5096    GLIBC21="$ac_cv_gnu_library_2_1"
5097
5098
5099
5100   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5101stdlib.h string.h unistd.h sys/param.h
5102do :
5103  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5105eval as_val=\$$as_ac_Header
5106   if test "x$as_val" = x""yes; then :
5107  cat >>confdefs.h <<_ACEOF
5108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5109_ACEOF
5110
5111fi
5112
5113done
5114
5115   for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
5116getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
5117strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5118do :
5119  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5120ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5121eval as_val=\$$as_ac_var
5122   if test "x$as_val" = x""yes; then :
5123  cat >>confdefs.h <<_ACEOF
5124#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5125_ACEOF
5126
5127fi
5128done
5129
5130
5131
5132
5133
5134# Check whether --with-libiconv-prefix was given.
5135if test "${with_libiconv_prefix+set}" = set; then :
5136  withval=$with_libiconv_prefix;
5137    for dir in `echo "$withval" | tr : ' '`; do
5138      if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
5139      if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
5140    done
5141
5142fi
5143
5144
5145  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
5146$as_echo_n "checking for iconv... " >&6; }
5147if test "${am_cv_func_iconv+set}" = set; then :
5148  $as_echo_n "(cached) " >&6
5149else
5150
5151    am_cv_func_iconv="no, consider installing GNU libiconv"
5152    am_cv_lib_iconv=no
5153    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5154/* end confdefs.h.  */
5155#include <stdlib.h>
5156#include <iconv.h>
5157int
5158main ()
5159{
5160iconv_t cd = iconv_open("","");
5161       iconv(cd,NULL,NULL,NULL,NULL);
5162       iconv_close(cd);
5163  ;
5164  return 0;
5165}
5166_ACEOF
5167if ac_fn_c_try_link "$LINENO"; then :
5168  am_cv_func_iconv=yes
5169fi
5170rm -f core conftest.err conftest.$ac_objext \
5171    conftest$ac_exeext conftest.$ac_ext
5172    if test "$am_cv_func_iconv" != yes; then
5173      am_save_LIBS="$LIBS"
5174      LIBS="$LIBS -liconv"
5175      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5176/* end confdefs.h.  */
5177#include <stdlib.h>
5178#include <iconv.h>
5179int
5180main ()
5181{
5182iconv_t cd = iconv_open("","");
5183         iconv(cd,NULL,NULL,NULL,NULL);
5184         iconv_close(cd);
5185  ;
5186  return 0;
5187}
5188_ACEOF
5189if ac_fn_c_try_link "$LINENO"; then :
5190  am_cv_lib_iconv=yes
5191        am_cv_func_iconv=yes
5192fi
5193rm -f core conftest.err conftest.$ac_objext \
5194    conftest$ac_exeext conftest.$ac_ext
5195      LIBS="$am_save_LIBS"
5196    fi
5197
5198fi
5199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
5200$as_echo "$am_cv_func_iconv" >&6; }
5201  if test "$am_cv_func_iconv" = yes; then
5202
5203$as_echo "#define HAVE_ICONV 1" >>confdefs.h
5204
5205    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
5206$as_echo_n "checking for iconv declaration... " >&6; }
5207    if test "${am_cv_proto_iconv+set}" = set; then :
5208  $as_echo_n "(cached) " >&6
5209else
5210
5211      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212/* end confdefs.h.  */
5213
5214#include <stdlib.h>
5215#include <iconv.h>
5216extern
5217#ifdef __cplusplus
5218"C"
5219#endif
5220#if defined(__STDC__) || defined(__cplusplus)
5221size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
5222#else
5223size_t iconv();
5224#endif
5225
5226int
5227main ()
5228{
5229
5230  ;
5231  return 0;
5232}
5233_ACEOF
5234if ac_fn_c_try_compile "$LINENO"; then :
5235  am_cv_proto_iconv_arg1=""
5236else
5237  am_cv_proto_iconv_arg1="const"
5238fi
5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5240      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
5241fi
5242
5243    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
5244    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
5245         }$am_cv_proto_iconv" >&5
5246$as_echo "${ac_t:-
5247         }$am_cv_proto_iconv" >&6; }
5248
5249cat >>confdefs.h <<_ACEOF
5250#define ICONV_CONST $am_cv_proto_iconv_arg1
5251_ACEOF
5252
5253  fi
5254  LIBICONV=
5255  if test "$am_cv_lib_iconv" = yes; then
5256    LIBICONV="-liconv"
5257  fi
5258
5259
5260
5261  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
5262$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
5263if test "${am_cv_langinfo_codeset+set}" = set; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5267/* end confdefs.h.  */
5268#include <langinfo.h>
5269int
5270main ()
5271{
5272char* cs = nl_langinfo(CODESET);
5273  ;
5274  return 0;
5275}
5276_ACEOF
5277if ac_fn_c_try_link "$LINENO"; then :
5278  am_cv_langinfo_codeset=yes
5279else
5280  am_cv_langinfo_codeset=no
5281fi
5282rm -f core conftest.err conftest.$ac_objext \
5283    conftest$ac_exeext conftest.$ac_ext
5284
5285fi
5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
5287$as_echo "$am_cv_langinfo_codeset" >&6; }
5288  if test $am_cv_langinfo_codeset = yes; then
5289
5290$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
5291
5292  fi
5293
5294   if test $ac_cv_header_locale_h = yes; then
5295    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
5296$as_echo_n "checking for LC_MESSAGES... " >&6; }
5297if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
5298  $as_echo_n "(cached) " >&6
5299else
5300  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5301/* end confdefs.h.  */
5302#include <locale.h>
5303int
5304main ()
5305{
5306return LC_MESSAGES
5307  ;
5308  return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_link "$LINENO"; then :
5312  am_cv_val_LC_MESSAGES=yes
5313else
5314  am_cv_val_LC_MESSAGES=no
5315fi
5316rm -f core conftest.err conftest.$ac_objext \
5317    conftest$ac_exeext conftest.$ac_ext
5318fi
5319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
5320$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
5321    if test $am_cv_val_LC_MESSAGES = yes; then
5322
5323$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
5324
5325    fi
5326  fi
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5328$as_echo_n "checking whether NLS is requested... " >&6; }
5329        # Check whether --enable-nls was given.
5330if test "${enable_nls+set}" = set; then :
5331  enableval=$enable_nls; USE_NLS=$enableval
5332else
5333  USE_NLS=yes
5334fi
5335
5336    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5337$as_echo "$USE_NLS" >&6; }
5338
5339
5340    BUILD_INCLUDED_LIBINTL=no
5341    USE_INCLUDED_LIBINTL=no
5342    INTLLIBS=
5343
5344        if test "$USE_NLS" = "yes"; then
5345
5346$as_echo "#define ENABLE_NLS 1" >>confdefs.h
5347
5348      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
5349$as_echo_n "checking whether included gettext is requested... " >&6; }
5350
5351# Check whether --with-included-gettext was given.
5352if test "${with_included_gettext+set}" = set; then :
5353  withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
5354else
5355  nls_cv_force_use_gnu_gettext=no
5356fi
5357
5358      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
5359$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
5360
5361      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
5362      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
5363                        	CATOBJEXT=NONE
5364
5365
5366
5367
5368	ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
5369if test "x$ac_cv_header_libintl_h" = x""yes; then :
5370  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
5371$as_echo_n "checking for GNU gettext in libc... " >&6; }
5372if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
5373  $as_echo_n "(cached) " >&6
5374else
5375  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h.  */
5377#include <libintl.h>
5378extern int _nl_msg_cat_cntr;
5379int
5380main ()
5381{
5382bindtextdomain ("", "");
5383return (int) gettext ("") + _nl_msg_cat_cntr
5384  ;
5385  return 0;
5386}
5387_ACEOF
5388if ac_fn_c_try_link "$LINENO"; then :
5389  gt_cv_func_gnugettext1_libc=yes
5390else
5391  gt_cv_func_gnugettext1_libc=no
5392fi
5393rm -f core conftest.err conftest.$ac_objext \
5394    conftest$ac_exeext conftest.$ac_ext
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
5397$as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
5398
5399	   if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
5400	     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
5401$as_echo_n "checking for GNU gettext in libintl... " >&6; }
5402if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
5403  $as_echo_n "(cached) " >&6
5404else
5405  gt_save_LIBS="$LIBS"
5406		LIBS="$LIBS -lintl $LIBICONV"
5407		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408/* end confdefs.h.  */
5409#include <libintl.h>
5410extern int _nl_msg_cat_cntr;
5411int
5412main ()
5413{
5414bindtextdomain ("", "");
5415return (int) gettext ("") + _nl_msg_cat_cntr
5416  ;
5417  return 0;
5418}
5419_ACEOF
5420if ac_fn_c_try_link "$LINENO"; then :
5421  gt_cv_func_gnugettext1_libintl=yes
5422else
5423  gt_cv_func_gnugettext1_libintl=no
5424fi
5425rm -f core conftest.err conftest.$ac_objext \
5426    conftest$ac_exeext conftest.$ac_ext
5427		LIBS="$gt_save_LIBS"
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
5430$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
5431	   fi
5432
5433	   	   	   	   	   if test "$gt_cv_func_gnugettext1_libc" = "yes" \
5434	      || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
5435		   && test "$PACKAGE" != gettext; }; then
5436
5437$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
5438
5439
5440	     if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
5441	       	       	       	       INTLLIBS="-lintl $LIBICONV"
5442	     fi
5443
5444	     gt_save_LIBS="$LIBS"
5445	     LIBS="$LIBS $INTLLIBS"
5446	     for ac_func in dcgettext
5447do :
5448  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
5449if test "x$ac_cv_func_dcgettext" = x""yes; then :
5450  cat >>confdefs.h <<_ACEOF
5451#define HAVE_DCGETTEXT 1
5452_ACEOF
5453
5454fi
5455done
5456
5457	     LIBS="$gt_save_LIBS"
5458
5459	     	     # Extract the first word of "msgfmt", so it can be a program name with args.
5460set dummy msgfmt; ac_word=$2
5461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462$as_echo_n "checking for $ac_word... " >&6; }
5463if test "${ac_cv_path_MSGFMT+set}" = set; then :
5464  $as_echo_n "(cached) " >&6
5465else
5466  case "$MSGFMT" in
5467  /*)
5468  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5469  ;;
5470  *)
5471  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5472  for ac_dir in $PATH; do
5473    test -z "$ac_dir" && ac_dir=.
5474    if test -f $ac_dir/$ac_word; then
5475      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5476	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5477	break
5478      fi
5479    fi
5480  done
5481  IFS="$ac_save_ifs"
5482  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5483  ;;
5484esac
5485fi
5486MSGFMT="$ac_cv_path_MSGFMT"
5487if test "$MSGFMT" != ":"; then
5488  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5489$as_echo "$MSGFMT" >&6; }
5490else
5491  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492$as_echo "no" >&6; }
5493fi
5494
5495	     # Extract the first word of "gmsgfmt", so it can be a program name with args.
5496set dummy gmsgfmt; ac_word=$2
5497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5500  $as_echo_n "(cached) " >&6
5501else
5502  case $GMSGFMT in
5503  [\\/]* | ?:[\\/]*)
5504  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5505  ;;
5506  *)
5507  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH
5509do
5510  IFS=$as_save_IFS
5511  test -z "$as_dir" && as_dir=.
5512    for ac_exec_ext in '' $ac_executable_extensions; do
5513  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5514    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5515    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516    break 2
5517  fi
5518done
5519  done
5520IFS=$as_save_IFS
5521
5522  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5523  ;;
5524esac
5525fi
5526GMSGFMT=$ac_cv_path_GMSGFMT
5527if test -n "$GMSGFMT"; then
5528  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5529$as_echo "$GMSGFMT" >&6; }
5530else
5531  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532$as_echo "no" >&6; }
5533fi
5534
5535
5536
5537	     	     # Extract the first word of "xgettext", so it can be a program name with args.
5538set dummy xgettext; ac_word=$2
5539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5540$as_echo_n "checking for $ac_word... " >&6; }
5541if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5542  $as_echo_n "(cached) " >&6
5543else
5544  case "$XGETTEXT" in
5545  /*)
5546  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5547  ;;
5548  *)
5549  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5550  for ac_dir in $PATH; do
5551    test -z "$ac_dir" && ac_dir=.
5552    if test -f $ac_dir/$ac_word; then
5553      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5554	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5555	break
5556      fi
5557    fi
5558  done
5559  IFS="$ac_save_ifs"
5560  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5561  ;;
5562esac
5563fi
5564XGETTEXT="$ac_cv_path_XGETTEXT"
5565if test "$XGETTEXT" != ":"; then
5566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5567$as_echo "$XGETTEXT" >&6; }
5568else
5569  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5570$as_echo "no" >&6; }
5571fi
5572
5573
5574	     CATOBJEXT=.gmo
5575	   fi
5576
5577fi
5578
5579
5580
5581        if test "$CATOBJEXT" = "NONE"; then
5582	  	  	  nls_cv_use_gnu_gettext=yes
5583        fi
5584      fi
5585
5586      if test "$nls_cv_use_gnu_gettext" = "yes"; then
5587                INTLOBJS="\$(GETTOBJS)"
5588        # Extract the first word of "msgfmt", so it can be a program name with args.
5589set dummy msgfmt; ac_word=$2
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591$as_echo_n "checking for $ac_word... " >&6; }
5592if test "${ac_cv_path_MSGFMT+set}" = set; then :
5593  $as_echo_n "(cached) " >&6
5594else
5595  case "$MSGFMT" in
5596  /*)
5597  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5598  ;;
5599  *)
5600  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5601  for ac_dir in $PATH; do
5602    test -z "$ac_dir" && ac_dir=.
5603    if test -f $ac_dir/$ac_word; then
5604      if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
5605	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
5606	break
5607      fi
5608    fi
5609  done
5610  IFS="$ac_save_ifs"
5611  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5612  ;;
5613esac
5614fi
5615MSGFMT="$ac_cv_path_MSGFMT"
5616if test "$MSGFMT" != ":"; then
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5618$as_echo "$MSGFMT" >&6; }
5619else
5620  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5621$as_echo "no" >&6; }
5622fi
5623
5624        # Extract the first word of "gmsgfmt", so it can be a program name with args.
5625set dummy gmsgfmt; ac_word=$2
5626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5627$as_echo_n "checking for $ac_word... " >&6; }
5628if test "${ac_cv_path_GMSGFMT+set}" = set; then :
5629  $as_echo_n "(cached) " >&6
5630else
5631  case $GMSGFMT in
5632  [\\/]* | ?:[\\/]*)
5633  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5634  ;;
5635  *)
5636  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5637for as_dir in $PATH
5638do
5639  IFS=$as_save_IFS
5640  test -z "$as_dir" && as_dir=.
5641    for ac_exec_ext in '' $ac_executable_extensions; do
5642  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5643    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5644    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5645    break 2
5646  fi
5647done
5648  done
5649IFS=$as_save_IFS
5650
5651  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5652  ;;
5653esac
5654fi
5655GMSGFMT=$ac_cv_path_GMSGFMT
5656if test -n "$GMSGFMT"; then
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5658$as_echo "$GMSGFMT" >&6; }
5659else
5660  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5661$as_echo "no" >&6; }
5662fi
5663
5664
5665        # Extract the first word of "xgettext", so it can be a program name with args.
5666set dummy xgettext; ac_word=$2
5667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5668$as_echo_n "checking for $ac_word... " >&6; }
5669if test "${ac_cv_path_XGETTEXT+set}" = set; then :
5670  $as_echo_n "(cached) " >&6
5671else
5672  case "$XGETTEXT" in
5673  /*)
5674  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5675  ;;
5676  *)
5677  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
5678  for ac_dir in $PATH; do
5679    test -z "$ac_dir" && ac_dir=.
5680    if test -f $ac_dir/$ac_word; then
5681      if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
5682	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
5683	break
5684      fi
5685    fi
5686  done
5687  IFS="$ac_save_ifs"
5688  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5689  ;;
5690esac
5691fi
5692XGETTEXT="$ac_cv_path_XGETTEXT"
5693if test "$XGETTEXT" != ":"; then
5694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5695$as_echo "$XGETTEXT" >&6; }
5696else
5697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5698$as_echo "no" >&6; }
5699fi
5700
5701
5702	BUILD_INCLUDED_LIBINTL=yes
5703	USE_INCLUDED_LIBINTL=yes
5704        CATOBJEXT=.gmo
5705	INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
5706	LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
5707      fi
5708
5709                  if test "$GMSGFMT" != ":"; then
5710			if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
5711	  : ;
5712	else
5713	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
5714$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; }
5715	  GMSGFMT=":"
5716	fi
5717      fi
5718
5719                  if test "$XGETTEXT" != ":"; then
5720			if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
5721	  : ;
5722	else
5723	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
5724$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
5725	  XGETTEXT=":"
5726	fi
5727      fi
5728
5729            POSUB=po
5730    fi
5731    ac_config_commands="$ac_config_commands default-1"
5732
5733
5734
5735            if test "$PACKAGE" = gettext; then
5736      BUILD_INCLUDED_LIBINTL=yes
5737    fi
5738
5739                                            for ac_prog in bison
5740do
5741  # Extract the first word of "$ac_prog", so it can be a program name with args.
5742set dummy $ac_prog; ac_word=$2
5743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5744$as_echo_n "checking for $ac_word... " >&6; }
5745if test "${ac_cv_prog_INTLBISON+set}" = set; then :
5746  $as_echo_n "(cached) " >&6
5747else
5748  if test -n "$INTLBISON"; then
5749  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
5750else
5751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752for as_dir in $PATH
5753do
5754  IFS=$as_save_IFS
5755  test -z "$as_dir" && as_dir=.
5756    for ac_exec_ext in '' $ac_executable_extensions; do
5757  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5758    ac_cv_prog_INTLBISON="$ac_prog"
5759    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760    break 2
5761  fi
5762done
5763  done
5764IFS=$as_save_IFS
5765
5766fi
5767fi
5768INTLBISON=$ac_cv_prog_INTLBISON
5769if test -n "$INTLBISON"; then
5770  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
5771$as_echo "$INTLBISON" >&6; }
5772else
5773  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5774$as_echo "no" >&6; }
5775fi
5776
5777
5778  test -n "$INTLBISON" && break
5779done
5780
5781    if test -z "$INTLBISON"; then
5782      ac_verc_fail=yes
5783    else
5784            { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
5785$as_echo_n "checking version of bison... " >&6; }
5786      ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
5787      case $ac_prog_version in
5788        '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
5789        1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
5790           ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
5791        *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
5792      esac
5793      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
5794$as_echo "$ac_prog_version" >&6; }
5795    fi
5796    if test $ac_verc_fail = yes; then
5797      INTLBISON=:
5798    fi
5799
5800                for lang in $ALL_LINGUAS; do
5801      GMOFILES="$GMOFILES $lang.gmo"
5802      POFILES="$POFILES $lang.po"
5803    done
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815        nls_cv_header_intl=
5816    nls_cv_header_libgt=
5817
5818        DATADIRNAME=share
5819
5820
5821        INSTOBJEXT=.mo
5822
5823
5824        GENCAT=gencat
5825
5826
5827
5828   if test "x$CATOBJEXT" != "x"; then
5829     if test "x$ALL_LINGUAS" = "x"; then
5830       LINGUAS=
5831     else
5832       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
5833$as_echo_n "checking for catalogs to be installed... " >&6; }
5834       NEW_LINGUAS=
5835       for presentlang in $ALL_LINGUAS; do
5836         useit=no
5837         for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
5838           # Use the presentlang catalog if desiredlang is
5839           #   a. equal to presentlang, or
5840           #   b. a variant of presentlang (because in this case,
5841           #      presentlang can be used as a fallback for messages
5842           #      which are not translated in the desiredlang catalog).
5843           case "$desiredlang" in
5844             "$presentlang"*) useit=yes;;
5845           esac
5846         done
5847         if test $useit = yes; then
5848           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
5849         fi
5850       done
5851       LINGUAS=$NEW_LINGUAS
5852       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
5853$as_echo "$LINGUAS" >&6; }
5854     fi
5855
5856          if test -n "$LINGUAS"; then
5857       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
5858     fi
5859   fi
5860
5861            MKINSTALLDIRS=
5862   if test -n "$ac_aux_dir"; then
5863     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
5864   fi
5865   if test -z "$MKINSTALLDIRS"; then
5866     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
5867   fi
5868
5869
5870      INTL_LIBTOOL_SUFFIX_PREFIX=
5871
5872
5873
5874
5875#
5876# Setup the header file
5877#
5878
5879
5880
5881
5882
5883#
5884# Look for the C compiler
5885#
5886
5887CFLAGS_save="$CFLAGS"
5888ac_ext=c
5889ac_cpp='$CPP $CPPFLAGS'
5890ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5891ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5892ac_compiler_gnu=$ac_cv_c_compiler_gnu
5893if test -n "$ac_tool_prefix"; then
5894  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5895set dummy ${ac_tool_prefix}gcc; ac_word=$2
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897$as_echo_n "checking for $ac_word... " >&6; }
5898if test "${ac_cv_prog_CC+set}" = set; then :
5899  $as_echo_n "(cached) " >&6
5900else
5901  if test -n "$CC"; then
5902  ac_cv_prog_CC="$CC" # Let the user override the test.
5903else
5904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905for as_dir in $PATH
5906do
5907  IFS=$as_save_IFS
5908  test -z "$as_dir" && as_dir=.
5909    for ac_exec_ext in '' $ac_executable_extensions; do
5910  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5912    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913    break 2
5914  fi
5915done
5916  done
5917IFS=$as_save_IFS
5918
5919fi
5920fi
5921CC=$ac_cv_prog_CC
5922if test -n "$CC"; then
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5924$as_echo "$CC" >&6; }
5925else
5926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927$as_echo "no" >&6; }
5928fi
5929
5930
5931fi
5932if test -z "$ac_cv_prog_CC"; then
5933  ac_ct_CC=$CC
5934  # Extract the first word of "gcc", so it can be a program name with args.
5935set dummy gcc; ac_word=$2
5936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937$as_echo_n "checking for $ac_word... " >&6; }
5938if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5939  $as_echo_n "(cached) " >&6
5940else
5941  if test -n "$ac_ct_CC"; then
5942  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5943else
5944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945for as_dir in $PATH
5946do
5947  IFS=$as_save_IFS
5948  test -z "$as_dir" && as_dir=.
5949    for ac_exec_ext in '' $ac_executable_extensions; do
5950  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951    ac_cv_prog_ac_ct_CC="gcc"
5952    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953    break 2
5954  fi
5955done
5956  done
5957IFS=$as_save_IFS
5958
5959fi
5960fi
5961ac_ct_CC=$ac_cv_prog_ac_ct_CC
5962if test -n "$ac_ct_CC"; then
5963  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5964$as_echo "$ac_ct_CC" >&6; }
5965else
5966  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970  if test "x$ac_ct_CC" = x; then
5971    CC=""
5972  else
5973    case $cross_compiling:$ac_tool_warned in
5974yes:)
5975{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977ac_tool_warned=yes ;;
5978esac
5979    CC=$ac_ct_CC
5980  fi
5981else
5982  CC="$ac_cv_prog_CC"
5983fi
5984
5985if test -z "$CC"; then
5986          if test -n "$ac_tool_prefix"; then
5987    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5988set dummy ${ac_tool_prefix}cc; ac_word=$2
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
5991if test "${ac_cv_prog_CC+set}" = set; then :
5992  $as_echo_n "(cached) " >&6
5993else
5994  if test -n "$CC"; then
5995  ac_cv_prog_CC="$CC" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000  IFS=$as_save_IFS
6001  test -z "$as_dir" && as_dir=.
6002    for ac_exec_ext in '' $ac_executable_extensions; do
6003  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6004    ac_cv_prog_CC="${ac_tool_prefix}cc"
6005    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006    break 2
6007  fi
6008done
6009  done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014CC=$ac_cv_prog_CC
6015if test -n "$CC"; then
6016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6017$as_echo "$CC" >&6; }
6018else
6019  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023
6024  fi
6025fi
6026if test -z "$CC"; then
6027  # Extract the first word of "cc", so it can be a program name with args.
6028set dummy cc; ac_word=$2
6029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6030$as_echo_n "checking for $ac_word... " >&6; }
6031if test "${ac_cv_prog_CC+set}" = set; then :
6032  $as_echo_n "(cached) " >&6
6033else
6034  if test -n "$CC"; then
6035  ac_cv_prog_CC="$CC" # Let the user override the test.
6036else
6037  ac_prog_rejected=no
6038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039for as_dir in $PATH
6040do
6041  IFS=$as_save_IFS
6042  test -z "$as_dir" && as_dir=.
6043    for ac_exec_ext in '' $ac_executable_extensions; do
6044  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6045    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6046       ac_prog_rejected=yes
6047       continue
6048     fi
6049    ac_cv_prog_CC="cc"
6050    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6051    break 2
6052  fi
6053done
6054  done
6055IFS=$as_save_IFS
6056
6057if test $ac_prog_rejected = yes; then
6058  # We found a bogon in the path, so make sure we never use it.
6059  set dummy $ac_cv_prog_CC
6060  shift
6061  if test $# != 0; then
6062    # We chose a different compiler from the bogus one.
6063    # However, it has the same basename, so the bogon will be chosen
6064    # first if we set CC to just the basename; use the full file name.
6065    shift
6066    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6067  fi
6068fi
6069fi
6070fi
6071CC=$ac_cv_prog_CC
6072if test -n "$CC"; then
6073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6074$as_echo "$CC" >&6; }
6075else
6076  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6077$as_echo "no" >&6; }
6078fi
6079
6080
6081fi
6082if test -z "$CC"; then
6083  if test -n "$ac_tool_prefix"; then
6084  for ac_prog in cl.exe
6085  do
6086    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6087set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089$as_echo_n "checking for $ac_word... " >&6; }
6090if test "${ac_cv_prog_CC+set}" = set; then :
6091  $as_echo_n "(cached) " >&6
6092else
6093  if test -n "$CC"; then
6094  ac_cv_prog_CC="$CC" # Let the user override the test.
6095else
6096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6097for as_dir in $PATH
6098do
6099  IFS=$as_save_IFS
6100  test -z "$as_dir" && as_dir=.
6101    for ac_exec_ext in '' $ac_executable_extensions; do
6102  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6103    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6104    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6105    break 2
6106  fi
6107done
6108  done
6109IFS=$as_save_IFS
6110
6111fi
6112fi
6113CC=$ac_cv_prog_CC
6114if test -n "$CC"; then
6115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6116$as_echo "$CC" >&6; }
6117else
6118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6119$as_echo "no" >&6; }
6120fi
6121
6122
6123    test -n "$CC" && break
6124  done
6125fi
6126if test -z "$CC"; then
6127  ac_ct_CC=$CC
6128  for ac_prog in cl.exe
6129do
6130  # Extract the first word of "$ac_prog", so it can be a program name with args.
6131set dummy $ac_prog; ac_word=$2
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6133$as_echo_n "checking for $ac_word... " >&6; }
6134if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
6135  $as_echo_n "(cached) " >&6
6136else
6137  if test -n "$ac_ct_CC"; then
6138  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6139else
6140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH
6142do
6143  IFS=$as_save_IFS
6144  test -z "$as_dir" && as_dir=.
6145    for ac_exec_ext in '' $ac_executable_extensions; do
6146  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6147    ac_cv_prog_ac_ct_CC="$ac_prog"
6148    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6149    break 2
6150  fi
6151done
6152  done
6153IFS=$as_save_IFS
6154
6155fi
6156fi
6157ac_ct_CC=$ac_cv_prog_ac_ct_CC
6158if test -n "$ac_ct_CC"; then
6159  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6160$as_echo "$ac_ct_CC" >&6; }
6161else
6162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6163$as_echo "no" >&6; }
6164fi
6165
6166
6167  test -n "$ac_ct_CC" && break
6168done
6169
6170  if test "x$ac_ct_CC" = x; then
6171    CC=""
6172  else
6173    case $cross_compiling:$ac_tool_warned in
6174yes:)
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6177ac_tool_warned=yes ;;
6178esac
6179    CC=$ac_ct_CC
6180  fi
6181fi
6182
6183fi
6184
6185
6186test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6187$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6188as_fn_error "no acceptable C compiler found in \$PATH
6189See \`config.log' for more details." "$LINENO" 5; }
6190
6191# Provide some information about the compiler.
6192$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6193set X $ac_compile
6194ac_compiler=$2
6195for ac_option in --version -v -V -qversion; do
6196  { { ac_try="$ac_compiler $ac_option >&5"
6197case "(($ac_try" in
6198  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6199  *) ac_try_echo=$ac_try;;
6200esac
6201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6202$as_echo "$ac_try_echo"; } >&5
6203  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6204  ac_status=$?
6205  if test -s conftest.err; then
6206    sed '10a\
6207... rest of stderr output deleted ...
6208         10q' conftest.err >conftest.er1
6209    cat conftest.er1 >&5
6210    rm -f conftest.er1 conftest.err
6211  fi
6212  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213  test $ac_status = 0; }
6214done
6215
6216{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6217$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
6218if test "${ac_cv_c_compiler_gnu+set}" = set; then :
6219  $as_echo_n "(cached) " >&6
6220else
6221  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6222/* end confdefs.h.  */
6223
6224int
6225main ()
6226{
6227#ifndef __GNUC__
6228       choke me
6229#endif
6230
6231  ;
6232  return 0;
6233}
6234_ACEOF
6235if ac_fn_c_try_compile "$LINENO"; then :
6236  ac_compiler_gnu=yes
6237else
6238  ac_compiler_gnu=no
6239fi
6240rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6241ac_cv_c_compiler_gnu=$ac_compiler_gnu
6242
6243fi
6244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6245$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6246if test $ac_compiler_gnu = yes; then
6247  GCC=yes
6248else
6249  GCC=
6250fi
6251ac_test_CFLAGS=${CFLAGS+set}
6252ac_save_CFLAGS=$CFLAGS
6253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6254$as_echo_n "checking whether $CC accepts -g... " >&6; }
6255if test "${ac_cv_prog_cc_g+set}" = set; then :
6256  $as_echo_n "(cached) " >&6
6257else
6258  ac_save_c_werror_flag=$ac_c_werror_flag
6259   ac_c_werror_flag=yes
6260   ac_cv_prog_cc_g=no
6261   CFLAGS="-g"
6262   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6263/* end confdefs.h.  */
6264
6265int
6266main ()
6267{
6268
6269  ;
6270  return 0;
6271}
6272_ACEOF
6273if ac_fn_c_try_compile "$LINENO"; then :
6274  ac_cv_prog_cc_g=yes
6275else
6276  CFLAGS=""
6277      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278/* end confdefs.h.  */
6279
6280int
6281main ()
6282{
6283
6284  ;
6285  return 0;
6286}
6287_ACEOF
6288if ac_fn_c_try_compile "$LINENO"; then :
6289
6290else
6291  ac_c_werror_flag=$ac_save_c_werror_flag
6292	 CFLAGS="-g"
6293	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6294/* end confdefs.h.  */
6295
6296int
6297main ()
6298{
6299
6300  ;
6301  return 0;
6302}
6303_ACEOF
6304if ac_fn_c_try_compile "$LINENO"; then :
6305  ac_cv_prog_cc_g=yes
6306fi
6307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6308fi
6309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310fi
6311rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6312   ac_c_werror_flag=$ac_save_c_werror_flag
6313fi
6314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6315$as_echo "$ac_cv_prog_cc_g" >&6; }
6316if test "$ac_test_CFLAGS" = set; then
6317  CFLAGS=$ac_save_CFLAGS
6318elif test $ac_cv_prog_cc_g = yes; then
6319  if test "$GCC" = yes; then
6320    CFLAGS="-g -O2"
6321  else
6322    CFLAGS="-g"
6323  fi
6324else
6325  if test "$GCC" = yes; then
6326    CFLAGS="-O2"
6327  else
6328    CFLAGS=
6329  fi
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6332$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6333if test "${ac_cv_prog_cc_c89+set}" = set; then :
6334  $as_echo_n "(cached) " >&6
6335else
6336  ac_cv_prog_cc_c89=no
6337ac_save_CC=$CC
6338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6339/* end confdefs.h.  */
6340#include <stdarg.h>
6341#include <stdio.h>
6342#include <sys/types.h>
6343#include <sys/stat.h>
6344/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6345struct buf { int x; };
6346FILE * (*rcsopen) (struct buf *, struct stat *, int);
6347static char *e (p, i)
6348     char **p;
6349     int i;
6350{
6351  return p[i];
6352}
6353static char *f (char * (*g) (char **, int), char **p, ...)
6354{
6355  char *s;
6356  va_list v;
6357  va_start (v,p);
6358  s = g (p, va_arg (v,int));
6359  va_end (v);
6360  return s;
6361}
6362
6363/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6364   function prototypes and stuff, but not '\xHH' hex character constants.
6365   These don't provoke an error unfortunately, instead are silently treated
6366   as 'x'.  The following induces an error, until -std is added to get
6367   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6368   array size at least.  It's necessary to write '\x00'==0 to get something
6369   that's true only with -std.  */
6370int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6371
6372/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6373   inside strings and character constants.  */
6374#define FOO(x) 'x'
6375int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6376
6377int test (int i, double x);
6378struct s1 {int (*f) (int a);};
6379struct s2 {int (*f) (double a);};
6380int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6381int argc;
6382char **argv;
6383int
6384main ()
6385{
6386return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6387  ;
6388  return 0;
6389}
6390_ACEOF
6391for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6392	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6393do
6394  CC="$ac_save_CC $ac_arg"
6395  if ac_fn_c_try_compile "$LINENO"; then :
6396  ac_cv_prog_cc_c89=$ac_arg
6397fi
6398rm -f core conftest.err conftest.$ac_objext
6399  test "x$ac_cv_prog_cc_c89" != "xno" && break
6400done
6401rm -f conftest.$ac_ext
6402CC=$ac_save_CC
6403
6404fi
6405# AC_CACHE_VAL
6406case "x$ac_cv_prog_cc_c89" in
6407  x)
6408    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6409$as_echo "none needed" >&6; } ;;
6410  xno)
6411    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6412$as_echo "unsupported" >&6; } ;;
6413  *)
6414    CC="$CC $ac_cv_prog_cc_c89"
6415    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6416$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6417esac
6418if test "x$ac_cv_prog_cc_c89" != xno; then :
6419
6420fi
6421
6422ac_ext=c
6423ac_cpp='$CPP $CPPFLAGS'
6424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6426ac_compiler_gnu=$ac_cv_c_compiler_gnu
6427
6428depcc="$CC"   am_compiler_list=
6429
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6431$as_echo_n "checking dependency style of $depcc... " >&6; }
6432if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6433  $as_echo_n "(cached) " >&6
6434else
6435  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6436  # We make a subdir and do the tests there.  Otherwise we can end up
6437  # making bogus files that we don't know about and never remove.  For
6438  # instance it was reported that on HP-UX the gcc test will end up
6439  # making a dummy file named `D' -- because `-MD' means `put the output
6440  # in D'.
6441  mkdir conftest.dir
6442  # Copy depcomp to subdir because otherwise we won't find it if we're
6443  # using a relative directory.
6444  cp "$am_depcomp" conftest.dir
6445  cd conftest.dir
6446  # We will build objects and dependencies in a subdirectory because
6447  # it helps to detect inapplicable dependency modes.  For instance
6448  # both Tru64's cc and ICC support -MD to output dependencies as a
6449  # side effect of compilation, but ICC will put the dependencies in
6450  # the current directory while Tru64 will put them in the object
6451  # directory.
6452  mkdir sub
6453
6454  am_cv_CC_dependencies_compiler_type=none
6455  if test "$am_compiler_list" = ""; then
6456     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6457  fi
6458  am__universal=false
6459  case " $depcc " in #(
6460     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6461     esac
6462
6463  for depmode in $am_compiler_list; do
6464    # Setup a source with many dependencies, because some compilers
6465    # like to wrap large dependency lists on column 80 (with \), and
6466    # we should not choose a depcomp mode which is confused by this.
6467    #
6468    # We need to recreate these files for each test, as the compiler may
6469    # overwrite some of them when testing with obscure command lines.
6470    # This happens at least with the AIX C compiler.
6471    : > sub/conftest.c
6472    for i in 1 2 3 4 5 6; do
6473      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6474      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6475      # Solaris 8's {/usr,}/bin/sh.
6476      touch sub/conftst$i.h
6477    done
6478    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6479
6480    # We check with `-c' and `-o' for the sake of the "dashmstdout"
6481    # mode.  It turns out that the SunPro C++ compiler does not properly
6482    # handle `-M -o', and we need to detect this.  Also, some Intel
6483    # versions had trouble with output in subdirs
6484    am__obj=sub/conftest.${OBJEXT-o}
6485    am__minus_obj="-o $am__obj"
6486    case $depmode in
6487    gcc)
6488      # This depmode causes a compiler race in universal mode.
6489      test "$am__universal" = false || continue
6490      ;;
6491    nosideeffect)
6492      # after this tag, mechanisms are not by side-effect, so they'll
6493      # only be used when explicitly requested
6494      if test "x$enable_dependency_tracking" = xyes; then
6495	continue
6496      else
6497	break
6498      fi
6499      ;;
6500    msvisualcpp | msvcmsys)
6501      # This compiler won't grok `-c -o', but also, the minuso test has
6502      # not run yet.  These depmodes are late enough in the game, and
6503      # so weak that their functioning should not be impacted.
6504      am__obj=conftest.${OBJEXT-o}
6505      am__minus_obj=
6506      ;;
6507    none) break ;;
6508    esac
6509    if depmode=$depmode \
6510       source=sub/conftest.c object=$am__obj \
6511       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6512       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6513         >/dev/null 2>conftest.err &&
6514       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6515       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6516       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6517       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6518      # icc doesn't choke on unknown options, it will just issue warnings
6519      # or remarks (even with -Werror).  So we grep stderr for any message
6520      # that says an option was ignored or not supported.
6521      # When given -MP, icc 7.0 and 7.1 complain thusly:
6522      #   icc: Command line warning: ignoring option '-M'; no argument required
6523      # The diagnosis changed in icc 8.0:
6524      #   icc: Command line remark: option '-MP' not supported
6525      if (grep 'ignoring option' conftest.err ||
6526          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6527        am_cv_CC_dependencies_compiler_type=$depmode
6528        break
6529      fi
6530    fi
6531  done
6532
6533  cd ..
6534  rm -rf conftest.dir
6535else
6536  am_cv_CC_dependencies_compiler_type=none
6537fi
6538
6539fi
6540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6541$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6542CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6543
6544 if
6545  test "x$enable_dependency_tracking" != xno \
6546  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6547  am__fastdepCC_TRUE=
6548  am__fastdepCC_FALSE='#'
6549else
6550  am__fastdepCC_TRUE='#'
6551  am__fastdepCC_FALSE=
6552fi
6553
6554
6555CFLAGS="$CFLAGS_save"
6556
6557
6558#
6559# Utility function
6560#
6561
6562check_for_header() {
6563    file="$1"
6564    bases="$2"
6565    variations=". $3"
6566
6567    result=
6568    for dir in $bases; do
6569	if test -z "$result"; then
6570	    for variant in $variations; do
6571		if test -z "$result" -a -f "$dir/$variant/$file"; then
6572		    result="$dir/$variant"
6573		fi
6574	    done
6575	fi
6576    done
6577
6578    if test -z "$result"; then
6579	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
6580$as_echo "not found!" >&6; }
6581	as_fn_error "*** Cannot continue" "$LINENO" 5
6582    fi
6583}
6584
6585check_for_lib() {
6586    func="$1"
6587    lib="$2"
6588    bases="$3"
6589    variations="$4"
6590
6591    LIBS_save="$LIBS"
6592    LDFLAGS_save="$LDFLAGS"
6593
6594    found=0
6595    result=
6596    LIBS="-l$lib $LIBS_save"
6597    as_ac_var=`$as_echo "ac_cv_func_$func" | $as_tr_sh`
6598ac_fn_c_check_func "$LINENO" "$func" "$as_ac_var"
6599eval as_val=\$$as_ac_var
6600   if test "x$as_val" = x""yes; then :
6601  result="$dir/$variant"
6602fi
6603
6604    if test -z "$result"; then
6605	for dir in $bases; do
6606	    if test -z "$result"; then
6607		for variant in $variations; do
6608		    echo checking: $dir/$variant
6609		    if test -z "$result"; then
6610			if test -d "$dir/$variant"; then
6611			    LDFLAGS="-L$dir/$variant $LDFLAGS_save"
6612			    as_ac_var=`$as_echo "ac_cv_func_$func" | $as_tr_sh`
6613ac_fn_c_check_func "$LINENO" "$func" "$as_ac_var"
6614eval as_val=\$$as_ac_var
6615   if test "x$as_val" = x""yes; then :
6616  result="$dir/$variant"
6617fi
6618
6619			fi
6620			cmd="unset ac_cv_func_$func"
6621			eval $cmd
6622			unset cmd
6623		    fi
6624		done
6625	    fi
6626	done
6627    fi
6628
6629    if test -z "$result"; then
6630	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: could not find $lib" >&5
6631$as_echo "could not find $lib" >&6; }
6632	as_fn_error "*** Cannot continue" "$LINENO" 5
6633    fi
6634
6635    LDFLAGS="-L$result $LDFLAGS_save"
6636}
6637
6638
6639#
6640# Check for Pidgin
6641#
6642
6643
6644
6645if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6646	if test -n "$ac_tool_prefix"; then
6647  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
6651if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6652  $as_echo_n "(cached) " >&6
6653else
6654  case $PKG_CONFIG in
6655  [\\/]* | ?:[\\/]*)
6656  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6657  ;;
6658  *)
6659  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662  IFS=$as_save_IFS
6663  test -z "$as_dir" && as_dir=.
6664    for ac_exec_ext in '' $ac_executable_extensions; do
6665  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6667    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668    break 2
6669  fi
6670done
6671  done
6672IFS=$as_save_IFS
6673
6674  ;;
6675esac
6676fi
6677PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6678if test -n "$PKG_CONFIG"; then
6679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6680$as_echo "$PKG_CONFIG" >&6; }
6681else
6682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6683$as_echo "no" >&6; }
6684fi
6685
6686
6687fi
6688if test -z "$ac_cv_path_PKG_CONFIG"; then
6689  ac_pt_PKG_CONFIG=$PKG_CONFIG
6690  # Extract the first word of "pkg-config", so it can be a program name with args.
6691set dummy pkg-config; ac_word=$2
6692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6693$as_echo_n "checking for $ac_word... " >&6; }
6694if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6695  $as_echo_n "(cached) " >&6
6696else
6697  case $ac_pt_PKG_CONFIG in
6698  [\\/]* | ?:[\\/]*)
6699  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6700  ;;
6701  *)
6702  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6703for as_dir in $PATH
6704do
6705  IFS=$as_save_IFS
6706  test -z "$as_dir" && as_dir=.
6707    for ac_exec_ext in '' $ac_executable_extensions; do
6708  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6709    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6710    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6711    break 2
6712  fi
6713done
6714  done
6715IFS=$as_save_IFS
6716
6717  ;;
6718esac
6719fi
6720ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6721if test -n "$ac_pt_PKG_CONFIG"; then
6722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6723$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6724else
6725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726$as_echo "no" >&6; }
6727fi
6728
6729  if test "x$ac_pt_PKG_CONFIG" = x; then
6730    PKG_CONFIG=""
6731  else
6732    case $cross_compiling:$ac_tool_warned in
6733yes:)
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736ac_tool_warned=yes ;;
6737esac
6738    PKG_CONFIG=$ac_pt_PKG_CONFIG
6739  fi
6740else
6741  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6742fi
6743
6744fi
6745if test -n "$PKG_CONFIG"; then
6746	_pkg_min_version=0.9.0
6747	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6748$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6749	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6750		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751$as_echo "yes" >&6; }
6752	else
6753		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754$as_echo "no" >&6; }
6755		PKG_CONFIG=""
6756	fi
6757
6758fi
6759
6760pkg_failed=no
6761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PIDGIN" >&5
6762$as_echo_n "checking for PIDGIN... " >&6; }
6763
6764if test -n "$PKG_CONFIG"; then
6765    if test -n "$PIDGIN_CFLAGS"; then
6766        pkg_cv_PIDGIN_CFLAGS="$PIDGIN_CFLAGS"
6767    else
6768        if test -n "$PKG_CONFIG" && \
6769    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pidgin\""; } >&5
6770  ($PKG_CONFIG --exists --print-errors "pidgin") 2>&5
6771  ac_status=$?
6772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6773  test $ac_status = 0; }; then
6774  pkg_cv_PIDGIN_CFLAGS=`$PKG_CONFIG --cflags "pidgin" 2>/dev/null`
6775else
6776  pkg_failed=yes
6777fi
6778    fi
6779else
6780	pkg_failed=untried
6781fi
6782if test -n "$PKG_CONFIG"; then
6783    if test -n "$PIDGIN_LIBS"; then
6784        pkg_cv_PIDGIN_LIBS="$PIDGIN_LIBS"
6785    else
6786        if test -n "$PKG_CONFIG" && \
6787    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pidgin\""; } >&5
6788  ($PKG_CONFIG --exists --print-errors "pidgin") 2>&5
6789  ac_status=$?
6790  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6791  test $ac_status = 0; }; then
6792  pkg_cv_PIDGIN_LIBS=`$PKG_CONFIG --libs "pidgin" 2>/dev/null`
6793else
6794  pkg_failed=yes
6795fi
6796    fi
6797else
6798	pkg_failed=untried
6799fi
6800
6801
6802
6803if test $pkg_failed = yes; then
6804
6805if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6806        _pkg_short_errors_supported=yes
6807else
6808        _pkg_short_errors_supported=no
6809fi
6810        if test $_pkg_short_errors_supported = yes; then
6811	        PIDGIN_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pidgin"`
6812        else
6813	        PIDGIN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pidgin"`
6814        fi
6815	# Put the nasty error message in config.log where it belongs
6816	echo "$PIDGIN_PKG_ERRORS" >&5
6817
6818	as_fn_error "Package requirements (pidgin) were not met:
6819
6820$PIDGIN_PKG_ERRORS
6821
6822Consider adjusting the PKG_CONFIG_PATH environment variable if you
6823installed software in a non-standard prefix.
6824
6825Alternatively, you may set the environment variables PIDGIN_CFLAGS
6826and PIDGIN_LIBS to avoid the need to call pkg-config.
6827See the pkg-config man page for more details.
6828" "$LINENO" 5
6829elif test $pkg_failed = untried; then
6830	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6831$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6832as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
6833is in your PATH or set the PKG_CONFIG environment variable to the full
6834path to pkg-config.
6835
6836Alternatively, you may set the environment variables PIDGIN_CFLAGS
6837and PIDGIN_LIBS to avoid the need to call pkg-config.
6838See the pkg-config man page for more details.
6839
6840To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6841See \`config.log' for more details." "$LINENO" 5; }
6842else
6843	PIDGIN_CFLAGS=$pkg_cv_PIDGIN_CFLAGS
6844	PIDGIN_LIBS=$pkg_cv_PIDGIN_LIBS
6845        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6846$as_echo "yes" >&6; }
6847
6848
6849$as_echo "#define HAVE_PIDGIN 1" >>confdefs.h
6850
6851
6852fi
6853
6854
6855PIDGIN_DATADIR=`pkg-config --variable=datadir pidgin`
6856
6857
6858#
6859# Check for libpurple
6860#
6861
6862
6863pkg_failed=no
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PURPLE" >&5
6865$as_echo_n "checking for PURPLE... " >&6; }
6866
6867if test -n "$PKG_CONFIG"; then
6868    if test -n "$PURPLE_CFLAGS"; then
6869        pkg_cv_PURPLE_CFLAGS="$PURPLE_CFLAGS"
6870    else
6871        if test -n "$PKG_CONFIG" && \
6872    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"purple\""; } >&5
6873  ($PKG_CONFIG --exists --print-errors "purple") 2>&5
6874  ac_status=$?
6875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6876  test $ac_status = 0; }; then
6877  pkg_cv_PURPLE_CFLAGS=`$PKG_CONFIG --cflags "purple" 2>/dev/null`
6878else
6879  pkg_failed=yes
6880fi
6881    fi
6882else
6883	pkg_failed=untried
6884fi
6885if test -n "$PKG_CONFIG"; then
6886    if test -n "$PURPLE_LIBS"; then
6887        pkg_cv_PURPLE_LIBS="$PURPLE_LIBS"
6888    else
6889        if test -n "$PKG_CONFIG" && \
6890    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"purple\""; } >&5
6891  ($PKG_CONFIG --exists --print-errors "purple") 2>&5
6892  ac_status=$?
6893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894  test $ac_status = 0; }; then
6895  pkg_cv_PURPLE_LIBS=`$PKG_CONFIG --libs "purple" 2>/dev/null`
6896else
6897  pkg_failed=yes
6898fi
6899    fi
6900else
6901	pkg_failed=untried
6902fi
6903
6904
6905
6906if test $pkg_failed = yes; then
6907
6908if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6909        _pkg_short_errors_supported=yes
6910else
6911        _pkg_short_errors_supported=no
6912fi
6913        if test $_pkg_short_errors_supported = yes; then
6914	        PURPLE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "purple"`
6915        else
6916	        PURPLE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "purple"`
6917        fi
6918	# Put the nasty error message in config.log where it belongs
6919	echo "$PURPLE_PKG_ERRORS" >&5
6920
6921	as_fn_error "Package requirements (purple) were not met:
6922
6923$PURPLE_PKG_ERRORS
6924
6925Consider adjusting the PKG_CONFIG_PATH environment variable if you
6926installed software in a non-standard prefix.
6927
6928Alternatively, you may set the environment variables PURPLE_CFLAGS
6929and PURPLE_LIBS to avoid the need to call pkg-config.
6930See the pkg-config man page for more details.
6931" "$LINENO" 5
6932elif test $pkg_failed = untried; then
6933	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6935as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
6936is in your PATH or set the PKG_CONFIG environment variable to the full
6937path to pkg-config.
6938
6939Alternatively, you may set the environment variables PURPLE_CFLAGS
6940and PURPLE_LIBS to avoid the need to call pkg-config.
6941See the pkg-config man page for more details.
6942
6943To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6944See \`config.log' for more details." "$LINENO" 5; }
6945else
6946	PURPLE_CFLAGS=$pkg_cv_PURPLE_CFLAGS
6947	PURPLE_LIBS=$pkg_cv_PURPLE_LIBS
6948        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6949$as_echo "yes" >&6; }
6950
6951
6952$as_echo "#define HAVE_PURPLE 1" >>confdefs.h
6953
6954
6955fi
6956
6957
6958PIDGIN_DATADIR=`pkg-config --variable=datadir purple`
6959
6960
6961if test "x$enable_nss" != "xno"; then
6962
6963
6964# Check whether --with-nspr-includes was given.
6965if test "${with_nspr_includes+set}" = set; then :
6966  withval=$with_nspr_includes; with_nspr_includes="$withval"
6967fi
6968
6969
6970
6971# Check whether --with-nspr-libs was given.
6972if test "${with_nspr_libs+set}" = set; then :
6973  withval=$with_nspr_libs; with_nspr_libs="$withval"
6974fi
6975
6976
6977
6978# Check whether --with-nss-includes was given.
6979if test "${with_nss_includes+set}" = set; then :
6980  withval=$with_nss_includes; with_nss_includes="$withval"
6981fi
6982
6983
6984
6985# Check whether --with-nss-libs was given.
6986if test "${with_nss_libs+set}" = set; then :
6987  withval=$with_nss_libs; with_nss_libs="$withval"
6988fi
6989
6990
6991
6992	if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \
6993	   test -n "$with_nss_includes"  || test -n "$with_nss_libs"  ||
6994	   test "x$enable_nss" = "xstatic"; then
6995
6996		nss_manual_check="yes"
6997	else
6998		nss_manual_check="no"
6999	fi
7000
7001	enable_nss="no"
7002
7003	if test "x$nss_manual_check" = "xno"; then
7004		if `$PKG_CONFIG --exists mozilla-nss`; then
7005
7006pkg_failed=no
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
7008$as_echo_n "checking for NSS... " >&6; }
7009
7010if test -n "$PKG_CONFIG"; then
7011    if test -n "$NSS_CFLAGS"; then
7012        pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
7013    else
7014        if test -n "$PKG_CONFIG" && \
7015    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nss\""; } >&5
7016  ($PKG_CONFIG --exists --print-errors "mozilla-nss") 2>&5
7017  ac_status=$?
7018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7019  test $ac_status = 0; }; then
7020  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nss" 2>/dev/null`
7021else
7022  pkg_failed=yes
7023fi
7024    fi
7025else
7026	pkg_failed=untried
7027fi
7028if test -n "$PKG_CONFIG"; then
7029    if test -n "$NSS_LIBS"; then
7030        pkg_cv_NSS_LIBS="$NSS_LIBS"
7031    else
7032        if test -n "$PKG_CONFIG" && \
7033    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nss\""; } >&5
7034  ($PKG_CONFIG --exists --print-errors "mozilla-nss") 2>&5
7035  ac_status=$?
7036  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037  test $ac_status = 0; }; then
7038  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nss" 2>/dev/null`
7039else
7040  pkg_failed=yes
7041fi
7042    fi
7043else
7044	pkg_failed=untried
7045fi
7046
7047
7048
7049if test $pkg_failed = yes; then
7050
7051if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7052        _pkg_short_errors_supported=yes
7053else
7054        _pkg_short_errors_supported=no
7055fi
7056        if test $_pkg_short_errors_supported = yes; then
7057	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "mozilla-nss"`
7058        else
7059	        NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-nss"`
7060        fi
7061	# Put the nasty error message in config.log where it belongs
7062	echo "$NSS_PKG_ERRORS" >&5
7063
7064	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065$as_echo "no" >&6; }
7066                have_nss="no"
7067elif test $pkg_failed = untried; then
7068	have_nss="no"
7069else
7070	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
7071	NSS_LIBS=$pkg_cv_NSS_LIBS
7072        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7073$as_echo "yes" >&6; }
7074	have_nss="yes"
7075fi
7076			mozilla_nspr="mozilla-nspr"
7077			mozilla_nss="mozilla-nss"
7078		else
7079			if `$PKG_CONFIG --exists nss`; then
7080
7081pkg_failed=no
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS" >&5
7083$as_echo_n "checking for NSS... " >&6; }
7084
7085if test -n "$PKG_CONFIG"; then
7086    if test -n "$NSS_CFLAGS"; then
7087        pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
7088    else
7089        if test -n "$PKG_CONFIG" && \
7090    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
7091  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
7092  ac_status=$?
7093  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7094  test $ac_status = 0; }; then
7095  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
7096else
7097  pkg_failed=yes
7098fi
7099    fi
7100else
7101	pkg_failed=untried
7102fi
7103if test -n "$PKG_CONFIG"; then
7104    if test -n "$NSS_LIBS"; then
7105        pkg_cv_NSS_LIBS="$NSS_LIBS"
7106    else
7107        if test -n "$PKG_CONFIG" && \
7108    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
7109  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
7110  ac_status=$?
7111  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7112  test $ac_status = 0; }; then
7113  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
7114else
7115  pkg_failed=yes
7116fi
7117    fi
7118else
7119	pkg_failed=untried
7120fi
7121
7122
7123
7124if test $pkg_failed = yes; then
7125
7126if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7127        _pkg_short_errors_supported=yes
7128else
7129        _pkg_short_errors_supported=no
7130fi
7131        if test $_pkg_short_errors_supported = yes; then
7132	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "nss"`
7133        else
7134	        NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
7135        fi
7136	# Put the nasty error message in config.log where it belongs
7137	echo "$NSS_PKG_ERRORS" >&5
7138
7139	as_fn_error "Package requirements (nss) were not met:
7140
7141$NSS_PKG_ERRORS
7142
7143Consider adjusting the PKG_CONFIG_PATH environment variable if you
7144installed software in a non-standard prefix.
7145
7146Alternatively, you may set the environment variables NSS_CFLAGS
7147and NSS_LIBS to avoid the need to call pkg-config.
7148See the pkg-config man page for more details.
7149" "$LINENO" 5
7150elif test $pkg_failed = untried; then
7151	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7153as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
7154is in your PATH or set the PKG_CONFIG environment variable to the full
7155path to pkg-config.
7156
7157Alternatively, you may set the environment variables NSS_CFLAGS
7158and NSS_LIBS to avoid the need to call pkg-config.
7159See the pkg-config man page for more details.
7160
7161To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7162See \`config.log' for more details." "$LINENO" 5; }
7163else
7164	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
7165	NSS_LIBS=$pkg_cv_NSS_LIBS
7166        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7167$as_echo "yes" >&6; }
7168	have_nss="yes"
7169fi
7170				mozilla_nspr="nspr"
7171				mozilla_nss="nss"
7172			fi
7173		fi
7174
7175		if test "x$have_nss" = "xyes"; then
7176
7177
7178$as_echo "#define HAVE_NSS 1" >>confdefs.h
7179
7180
7181$as_echo "#define HAVE_SSL 1" >>confdefs.h
7182
7183
7184			msg_nss="Mozilla NSS"
7185			enable_nss="yes"
7186		else
7187			nss_manual_check="yes"
7188		fi
7189	fi
7190
7191	if test "x$nss_manual_check" = "xyes"; then
7192		mozilla_nss=""
7193		have_nspr_includes="no"
7194
7195		if test "x$with_nspr_includes" != "xno"; then
7196			CPPFLAGS_save=$CPPFLAGS
7197
7198			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 includes in $with_nspr_includes" >&5
7199$as_echo_n "checking for Mozilla nspr4 includes in $with_nspr_includes... " >&6; }
7200			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"\"" >&5
7201$as_echo "\"\"" >&6; }
7202
7203			CPPFLAGS="$CPPFLAGS -I$with_nspr_includes"
7204			for ac_header in nspr.h prio.h
7205do :
7206  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7207ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7208eval as_val=\$$as_ac_Header
7209   if test "x$as_val" = x""yes; then :
7210  cat >>confdefs.h <<_ACEOF
7211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7212_ACEOF
7213  moz_nspr_includes="yes"
7214fi
7215
7216done
7217
7218			CPPFLAGS=$CPPFLAGS_save
7219
7220			if test "x$moz_nspr_includes" != "xno" -a \
7221			        "x$moz_nspr_includes" != "x"; then
7222
7223				have_nspr_includes="yes"
7224				NSPR_CFLAGS="-I$with_nspr_includes"
7225			fi
7226		else
7227			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 includes" >&5
7228$as_echo_n "checking for Mozilla nspr4 includes... " >&6; }
7229			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230$as_echo "no" >&6; }
7231
7232			enable_nss="no"
7233		fi
7234
7235		have_nspr_libs="no"
7236
7237		if test "x$with_nspr_libs"     != "xno" -a \
7238		        "x$have_nspr_includes" != "xno"; then
7239
7240			CFLAGS_save=$CFLAGS
7241			LDFLAGS_save=$LDFLAGS
7242
7243			if test "$enable_nss" = "static"; then
7244				if test -z "$with_nspr_libs"; then
7245					as_fn_error "Static linkage requested, but path to nspr libraries not set.
7246						Please specify the path to libnspr4.a
7247						Example: --with-nspr-libs=/usr/lib" "$LINENO" 5
7248
7249					enable_nss="no"
7250				else
7251					nsprlibs="$LIBDL $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB"
7252				fi
7253			else
7254				nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB"
7255			fi
7256
7257			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr libraries" >&5
7258$as_echo_n "checking for Mozilla nspr libraries... " >&6; }
7259if test "${moz_nspr_libs+set}" = set; then :
7260  $as_echo_n "(cached) " >&6
7261else
7262
7263				LIBS_save=$LIBS
7264				CFLAGS="$CFLAGS $NSPR_CFLAGS"
7265
7266				LIBS="$nsprlibs"
7267
7268				if test "x$with_nspr_libs" != "x"; then
7269					LDFLAGS="$LDFLAGS -L$with_nspr_libs"
7270				else
7271					LDFLAGS="$LDFLAGS"
7272				fi
7273
7274				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7275/* end confdefs.h.  */
7276
7277/* Override any GCC internal prototype to avoid an error.
7278   Use char because int might match the return type of a GCC
7279   builtin and then its argument prototype would still apply.  */
7280#ifdef __cplusplus
7281extern "C"
7282#endif
7283char PR_Init ();
7284int
7285main ()
7286{
7287return PR_Init ();
7288  ;
7289  return 0;
7290}
7291_ACEOF
7292if ac_fn_c_try_link "$LINENO"; then :
7293  moz_nspr_libs="yes"
7294else
7295  moz_nspr_libs="no"
7296fi
7297rm -f core conftest.err conftest.$ac_objext \
7298    conftest$ac_exeext conftest.$ac_ext
7299
7300				CFLAGS=$CFLAGS_save
7301				LDFLAGS=$LDFLAGS_save
7302				LIBS=$LIBS_save
7303
7304fi
7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $moz_nspr_libs" >&5
7306$as_echo "$moz_nspr_libs" >&6; }
7307
7308			if test "x$moz_nspr_libs" != "xno"; then
7309				have_nspr_libs="yes"
7310				NSPR_LIBS="-L$with_nspr_libs $nsprlibs"
7311			else
7312				NSPR_CFLAGS=""
7313				enable_nss="no"
7314			fi
7315		else
7316			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 libraries" >&5
7317$as_echo_n "checking for Mozilla nspr4 libraries... " >&6; }
7318			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319$as_echo "no" >&6; }
7320		fi
7321
7322		have_nss_includes="no"
7323
7324		if test "x$with_nss_includes" != "xno" -a \
7325				"x$have_nspr_libs"    != "xno"; then
7326
7327			CPPFLAGS_save=$CPPFLAGS
7328
7329			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss3 includes in $with_nss_includes" >&5
7330$as_echo_n "checking for Mozilla nss3 includes in $with_nss_includes... " >&6; }
7331			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: \"\"" >&5
7332$as_echo "\"\"" >&6; }
7333
7334			if test "x$with_nspr_includes" != "x"; then
7335				CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes"
7336			else
7337				CPPFLAGS="$CPPFLAGS -I$with_nss_includes"
7338			fi
7339
7340			for ac_header in nss.h ssl.h smime.h keyhi.h
7341do :
7342  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7343ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7344eval as_val=\$$as_ac_Header
7345   if test "x$as_val" = x""yes; then :
7346  cat >>confdefs.h <<_ACEOF
7347#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7348_ACEOF
7349 moz_nss_includes="yes"
7350else
7351  moz_nss_includes="no"
7352fi
7353
7354done
7355
7356
7357			CPPFLAGS=$CPPFLAGS_save
7358
7359			if test "x$moz_nss_includes" = "xyes"; then
7360				have_nss_includes="yes"
7361				NSS_CFLAGS="-I$with_nss_includes"
7362			else
7363				NSPR_CFLAGS=""
7364				NSPR_LIBS=""
7365				enable_nss="no"
7366			fi
7367		else
7368			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss3 includes" >&5
7369$as_echo_n "checking for Mozilla nss3 includes... " >&6; }
7370			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7371$as_echo "no" >&6; }
7372			enable_nss="no"
7373		fi
7374
7375		if test "x$with_nss_libs"     != "xno" -a \
7376				"x$have_nss_includes" != "xno"; then
7377
7378			LDFLAGS_save=$LDFLAGS
7379
7380			if test "$enable_nss" = "static"; then
7381				if test -z "$with_nss_libs"; then
7382					as_fn_error "Static linkage requested, but path to nss libraries not set.
7383						Please specify the path to libnss3.a
7384						Example: --with-nspr-libs=/usr/lib/mozilla" "$LINENO" 5
7385					enable_nss="no"
7386				else
7387					nsslibs="-ldb1 $with_nss_libs/libnssckfw.a $with_nss_libs/libasn1.a $with_nss_libs/libcrmf.a $with_nss_libs/libswfci.a $with_nss_libs/libjar.a $with_nss_libs/libpkcs12.a $with_nss_libs/libpkcs7.a $with_nss_libs/libpki1.a $with_nss_libs/libsmime.a $with_nss_libs/libssl.a $with_nss_libs/libnss.a $with_nss_libs/libpk11wrap.a $with_nss_libs/libsoftokn.a $with_nss_libs/libfreebl.a $with_nss_libs/libnsspki.a $with_nss_libs/libnssdev.a $with_nss_libs/libcryptohi.a $with_nss_libs/libcerthi.a $with_nss_libs/libcertdb.a $with_nss_libs/libsecutil.a $with_nss_libs/libnssb.a"
7388
7389					case "$host" in
7390						*solaris*)
7391							nsslibs="$nsslibs $with_nss_libs/libfreeb1.a"
7392							;;
7393					esac
7394				fi
7395			else
7396				nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
7397			fi
7398
7399			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss libraries" >&5
7400$as_echo_n "checking for Mozilla nss libraries... " >&6; }
7401if test "${moz_nss_libs+set}" = set; then :
7402  $as_echo_n "(cached) " >&6
7403else
7404
7405				LIBS_save=$LIBS
7406				LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
7407				LIBS="$nsslibs $nsprlibs"
7408
7409				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411
7412/* Override any GCC internal prototype to avoid an error.
7413   Use char because int might match the return type of a GCC
7414   builtin and then its argument prototype would still apply.  */
7415#ifdef __cplusplus
7416extern "C"
7417#endif
7418char NSS_Init ();
7419int
7420main ()
7421{
7422return NSS_Init ();
7423  ;
7424  return 0;
7425}
7426_ACEOF
7427if ac_fn_c_try_link "$LINENO"; then :
7428  moz_nss_libs="yes"
7429else
7430  moz_nss_libs="no"
7431fi
7432rm -f core conftest.err conftest.$ac_objext \
7433    conftest$ac_exeext conftest.$ac_ext
7434
7435				if test "x$moz_nss_libs" = "xno"; then
7436					nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
7437					LDFLAGS="$LDFLAGS -L$with_nspr_libs $nsprlibs -L$with_nss_libs $nsslibs"
7438					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439/* end confdefs.h.  */
7440
7441/* Override any GCC internal prototype to avoid an error.
7442   Use char because int might match the return type of a GCC
7443   builtin and then its argument prototype would still apply.  */
7444#ifdef __cplusplus
7445extern "C"
7446#endif
7447char NSS_Init ();
7448int
7449main ()
7450{
7451return NSS_Init ();
7452  ;
7453  return 0;
7454}
7455_ACEOF
7456if ac_fn_c_try_link "$LINENO"; then :
7457  moz_nss_libs="yes"
7458else
7459  moz_nss_libs="no"
7460fi
7461rm -f core conftest.err conftest.$ac_objext \
7462    conftest$ac_exeext conftest.$ac_ext
7463				fi
7464
7465				LDFLAGS=$LDFLAGS_save
7466				LIBS=$LIBS_save
7467
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $moz_nss_libs" >&5
7470$as_echo "$moz_nss_libs" >&6; }
7471
7472			if test "x$moz_nss_libs" != "xno"; then
7473				$as_echo "#define HAVE_NSS 1" >>confdefs.h
7474
7475				$as_echo "#define HAVE_SSL 1" >>confdefs.h
7476
7477
7478				NSS_LIBS="-L$with_nss_libs $nsslibs"
7479
7480				if test "$enable_nss" = "static"; then
7481					msg_nss="Mozilla NSS (static)"
7482				else
7483					msg_nss="Mozilla NSS"
7484				fi
7485
7486				enable_nss="yes"
7487			else
7488				NSS_CFLAGS=""
7489				NSPR_CFLAGS=""
7490				NSPR_LIBS=""
7491				enable_nss="no"
7492			fi
7493		else
7494			{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss libraries" >&5
7495$as_echo_n "checking for Mozilla nss libraries... " >&6; }
7496			{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497$as_echo "no" >&6; }
7498		fi
7499
7500		NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
7501		NSS_LIBS="$NSPR_LIBS $NSS_LIBS"
7502	fi
7503
7504
7505
7506fi
7507
7508# Check whether --enable-gtktest was given.
7509if test "${enable_gtktest+set}" = set; then :
7510  enableval=$enable_gtktest;
7511else
7512  enable_gtktest=yes
7513fi
7514
7515
7516  pkg_config_args=gtk+-2.0
7517  for module in .
7518  do
7519      case "$module" in
7520         gthread)
7521             pkg_config_args="$pkg_config_args gthread-2.0"
7522         ;;
7523      esac
7524  done
7525
7526  no_gtk=""
7527
7528  # Extract the first word of "pkg-config", so it can be a program name with args.
7529set dummy pkg-config; ac_word=$2
7530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7531$as_echo_n "checking for $ac_word... " >&6; }
7532if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7533  $as_echo_n "(cached) " >&6
7534else
7535  case $PKG_CONFIG in
7536  [\\/]* | ?:[\\/]*)
7537  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7538  ;;
7539  *)
7540  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7541for as_dir in $PATH
7542do
7543  IFS=$as_save_IFS
7544  test -z "$as_dir" && as_dir=.
7545    for ac_exec_ext in '' $ac_executable_extensions; do
7546  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7547    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7548    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7549    break 2
7550  fi
7551done
7552  done
7553IFS=$as_save_IFS
7554
7555  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7556  ;;
7557esac
7558fi
7559PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7560if test -n "$PKG_CONFIG"; then
7561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7562$as_echo "$PKG_CONFIG" >&6; }
7563else
7564  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565$as_echo "no" >&6; }
7566fi
7567
7568
7569
7570  if test x$PKG_CONFIG != xno ; then
7571    if pkg-config --atleast-pkgconfig-version 0.7 ; then
7572      :
7573    else
7574      echo "*** pkg-config too old; version 0.7 or better required."
7575      no_gtk=yes
7576      PKG_CONFIG=no
7577    fi
7578  else
7579    no_gtk=yes
7580  fi
7581
7582  min_gtk_version=2.0.0
7583  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7584$as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7585
7586  if test x$PKG_CONFIG != xno ; then
7587    ## don't try to run the test against uninstalled libtool libs
7588    if $PKG_CONFIG --uninstalled $pkg_config_args; then
7589	  echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7590	  enable_gtktest=no
7591    fi
7592
7593    if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7594	  :
7595    else
7596	  no_gtk=yes
7597    fi
7598  fi
7599
7600  if test x"$no_gtk" = x ; then
7601    GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7602    GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7603    gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7604           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7605    gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7606           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7607    gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7608           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7609    if test "x$enable_gtktest" = "xyes" ; then
7610      ac_save_CFLAGS="$CFLAGS"
7611      ac_save_LIBS="$LIBS"
7612      CFLAGS="$CFLAGS $GTK_CFLAGS"
7613      LIBS="$GTK_LIBS $LIBS"
7614      rm -f conf.gtktest
7615      if test "$cross_compiling" = yes; then :
7616  echo $ac_n "cross compiling; assumed OK... $ac_c"
7617else
7618  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7619/* end confdefs.h.  */
7620
7621#include <gtk/gtk.h>
7622#include <stdio.h>
7623#include <stdlib.h>
7624
7625int
7626main ()
7627{
7628  int major, minor, micro;
7629  char *tmp_version;
7630
7631  system ("touch conf.gtktest");
7632
7633  /* HP/UX 9 (%@#!) writes to sscanf strings */
7634  tmp_version = g_strdup("$min_gtk_version");
7635  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7636     printf("%s, bad version string\n", "$min_gtk_version");
7637     exit(1);
7638   }
7639
7640  if ((gtk_major_version != $gtk_config_major_version) ||
7641      (gtk_minor_version != $gtk_config_minor_version) ||
7642      (gtk_micro_version != $gtk_config_micro_version))
7643    {
7644      printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7645             $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7646             gtk_major_version, gtk_minor_version, gtk_micro_version);
7647      printf ("*** was found! If pkg-config was correct, then it is best\n");
7648      printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7649      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7650      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7651      printf("*** required on your system.\n");
7652      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7653      printf("*** to point to the correct configuration files\n");
7654    }
7655  else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7656	   (gtk_minor_version != GTK_MINOR_VERSION) ||
7657           (gtk_micro_version != GTK_MICRO_VERSION))
7658    {
7659      printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7660	     GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7661      printf("*** library (version %d.%d.%d)\n",
7662	     gtk_major_version, gtk_minor_version, gtk_micro_version);
7663    }
7664  else
7665    {
7666      if ((gtk_major_version > major) ||
7667        ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7668        ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7669      {
7670        return 0;
7671       }
7672     else
7673      {
7674        printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7675               gtk_major_version, gtk_minor_version, gtk_micro_version);
7676        printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7677	       major, minor, micro);
7678        printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7679        printf("***\n");
7680        printf("*** If you have already installed a sufficiently new version, this error\n");
7681        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7682        printf("*** being found. The easiest way to fix this is to remove the old version\n");
7683        printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7684        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7685        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7686        printf("*** so that the correct libraries are found at run-time))\n");
7687      }
7688    }
7689  return 1;
7690}
7691
7692_ACEOF
7693if ac_fn_c_try_run "$LINENO"; then :
7694
7695else
7696  no_gtk=yes
7697fi
7698rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7699  conftest.$ac_objext conftest.beam conftest.$ac_ext
7700fi
7701
7702       CFLAGS="$ac_save_CFLAGS"
7703       LIBS="$ac_save_LIBS"
7704     fi
7705  fi
7706  if test "x$no_gtk" = x ; then
7707     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7708$as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7709     :
7710  else
7711     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712$as_echo "no" >&6; }
7713     if test "$PKG_CONFIG" = "no" ; then
7714       echo "*** A new enough version of pkg-config was not found."
7715       echo "*** See http://pkgconfig.sourceforge.net"
7716     else
7717       if test -f conf.gtktest ; then
7718        :
7719       else
7720          echo "*** Could not run GTK+ test program, checking why..."
7721	  ac_save_CFLAGS="$CFLAGS"
7722	  ac_save_LIBS="$LIBS"
7723          CFLAGS="$CFLAGS $GTK_CFLAGS"
7724          LIBS="$LIBS $GTK_LIBS"
7725          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7726/* end confdefs.h.  */
7727
7728#include <gtk/gtk.h>
7729#include <stdio.h>
7730
7731int
7732main ()
7733{
7734 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7735  ;
7736  return 0;
7737}
7738_ACEOF
7739if ac_fn_c_try_link "$LINENO"; then :
7740   echo "*** The test program compiled, but did not run. This usually means"
7741          echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7742          echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7743          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7744          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
7745          echo "*** is required on your system"
7746	  echo "***"
7747          echo "*** If you have an old version installed, it is best to remove it, although"
7748          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7749else
7750   echo "*** The test program failed to compile or link. See the file config.log for the"
7751          echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7752fi
7753rm -f core conftest.err conftest.$ac_objext \
7754    conftest$ac_exeext conftest.$ac_ext
7755          CFLAGS="$ac_save_CFLAGS"
7756          LIBS="$ac_save_LIBS"
7757       fi
7758     fi
7759     GTK_CFLAGS=""
7760     GTK_LIBS=""
7761     as_fn_error "
7762*** GTK+ 2.0 is required to build Pidgin-Encryption; please make sure you have the GTK+
7763*** development headers installed. The latest version of GTK+ is
7764*** always available at http://www.gtk.org/." "$LINENO" 5
7765  fi
7766
7767
7768  rm -f conf.gtktest
7769
7770CPPFLAGS="$GTK_CFLAGS $CPPFLAGS"
7771
7772
7773#
7774# A little tomfoolery to make this buildable both in the pidgin
7775# structure and standalone
7776#
7777want_plugins=yes
7778 if test "$want_plugins" = "yes"; then
7779  PLUGINS_TRUE=
7780  PLUGINS_FALSE='#'
7781else
7782  PLUGINS_TRUE='#'
7783  PLUGINS_FALSE=
7784fi
7785
7786
7787#
7788# Setup libtool
7789#
7790
7791case `pwd` in
7792  *\ * | *\	*)
7793    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7794$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7795esac
7796
7797
7798
7799macro_version='2.2.6'
7800macro_revision='1.3012'
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814ltmain="$ac_aux_dir/ltmain.sh"
7815
7816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7817$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7818if test "${ac_cv_path_SED+set}" = set; then :
7819  $as_echo_n "(cached) " >&6
7820else
7821            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7822     for ac_i in 1 2 3 4 5 6 7; do
7823       ac_script="$ac_script$as_nl$ac_script"
7824     done
7825     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7826     { ac_script=; unset ac_script;}
7827     if test -z "$SED"; then
7828  ac_path_SED_found=false
7829  # Loop through the user's path and test for each of PROGNAME-LIST
7830  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831for as_dir in $PATH
7832do
7833  IFS=$as_save_IFS
7834  test -z "$as_dir" && as_dir=.
7835    for ac_prog in sed gsed; do
7836    for ac_exec_ext in '' $ac_executable_extensions; do
7837      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7838      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7839# Check for GNU ac_path_SED and select it if it is found.
7840  # Check for GNU $ac_path_SED
7841case `"$ac_path_SED" --version 2>&1` in
7842*GNU*)
7843  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7844*)
7845  ac_count=0
7846  $as_echo_n 0123456789 >"conftest.in"
7847  while :
7848  do
7849    cat "conftest.in" "conftest.in" >"conftest.tmp"
7850    mv "conftest.tmp" "conftest.in"
7851    cp "conftest.in" "conftest.nl"
7852    $as_echo '' >> "conftest.nl"
7853    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7854    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7855    as_fn_arith $ac_count + 1 && ac_count=$as_val
7856    if test $ac_count -gt ${ac_path_SED_max-0}; then
7857      # Best one so far, save it but keep looking for a better one
7858      ac_cv_path_SED="$ac_path_SED"
7859      ac_path_SED_max=$ac_count
7860    fi
7861    # 10*(2^10) chars as input seems more than enough
7862    test $ac_count -gt 10 && break
7863  done
7864  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7865esac
7866
7867      $ac_path_SED_found && break 3
7868    done
7869  done
7870  done
7871IFS=$as_save_IFS
7872  if test -z "$ac_cv_path_SED"; then
7873    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7874  fi
7875else
7876  ac_cv_path_SED=$SED
7877fi
7878
7879fi
7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7881$as_echo "$ac_cv_path_SED" >&6; }
7882 SED="$ac_cv_path_SED"
7883  rm -f conftest.sed
7884
7885test -z "$SED" && SED=sed
7886Xsed="$SED -e 1s/^X//"
7887
7888
7889
7890
7891
7892
7893
7894
7895
7896
7897
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7899$as_echo_n "checking for fgrep... " >&6; }
7900if test "${ac_cv_path_FGREP+set}" = set; then :
7901  $as_echo_n "(cached) " >&6
7902else
7903  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7904   then ac_cv_path_FGREP="$GREP -F"
7905   else
7906     if test -z "$FGREP"; then
7907  ac_path_FGREP_found=false
7908  # Loop through the user's path and test for each of PROGNAME-LIST
7909  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7911do
7912  IFS=$as_save_IFS
7913  test -z "$as_dir" && as_dir=.
7914    for ac_prog in fgrep; do
7915    for ac_exec_ext in '' $ac_executable_extensions; do
7916      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7917      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7918# Check for GNU ac_path_FGREP and select it if it is found.
7919  # Check for GNU $ac_path_FGREP
7920case `"$ac_path_FGREP" --version 2>&1` in
7921*GNU*)
7922  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7923*)
7924  ac_count=0
7925  $as_echo_n 0123456789 >"conftest.in"
7926  while :
7927  do
7928    cat "conftest.in" "conftest.in" >"conftest.tmp"
7929    mv "conftest.tmp" "conftest.in"
7930    cp "conftest.in" "conftest.nl"
7931    $as_echo 'FGREP' >> "conftest.nl"
7932    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7933    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7934    as_fn_arith $ac_count + 1 && ac_count=$as_val
7935    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7936      # Best one so far, save it but keep looking for a better one
7937      ac_cv_path_FGREP="$ac_path_FGREP"
7938      ac_path_FGREP_max=$ac_count
7939    fi
7940    # 10*(2^10) chars as input seems more than enough
7941    test $ac_count -gt 10 && break
7942  done
7943  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7944esac
7945
7946      $ac_path_FGREP_found && break 3
7947    done
7948  done
7949  done
7950IFS=$as_save_IFS
7951  if test -z "$ac_cv_path_FGREP"; then
7952    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7953  fi
7954else
7955  ac_cv_path_FGREP=$FGREP
7956fi
7957
7958   fi
7959fi
7960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7961$as_echo "$ac_cv_path_FGREP" >&6; }
7962 FGREP="$ac_cv_path_FGREP"
7963
7964
7965test -z "$GREP" && GREP=grep
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985# Check whether --with-gnu-ld was given.
7986if test "${with_gnu_ld+set}" = set; then :
7987  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7988else
7989  with_gnu_ld=no
7990fi
7991
7992ac_prog=ld
7993if test "$GCC" = yes; then
7994  # Check if gcc -print-prog-name=ld gives a path.
7995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7996$as_echo_n "checking for ld used by $CC... " >&6; }
7997  case $host in
7998  *-*-mingw*)
7999    # gcc leaves a trailing carriage return which upsets mingw
8000    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8001  *)
8002    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8003  esac
8004  case $ac_prog in
8005    # Accept absolute paths.
8006    [\\/]* | ?:[\\/]*)
8007      re_direlt='/[^/][^/]*/\.\./'
8008      # Canonicalize the pathname of ld
8009      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8010      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8011	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8012      done
8013      test -z "$LD" && LD="$ac_prog"
8014      ;;
8015  "")
8016    # If it fails, then pretend we aren't using GCC.
8017    ac_prog=ld
8018    ;;
8019  *)
8020    # If it is relative, then search for the first ld in PATH.
8021    with_gnu_ld=unknown
8022    ;;
8023  esac
8024elif test "$with_gnu_ld" = yes; then
8025  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8026$as_echo_n "checking for GNU ld... " >&6; }
8027else
8028  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8029$as_echo_n "checking for non-GNU ld... " >&6; }
8030fi
8031if test "${lt_cv_path_LD+set}" = set; then :
8032  $as_echo_n "(cached) " >&6
8033else
8034  if test -z "$LD"; then
8035  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8036  for ac_dir in $PATH; do
8037    IFS="$lt_save_ifs"
8038    test -z "$ac_dir" && ac_dir=.
8039    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8040      lt_cv_path_LD="$ac_dir/$ac_prog"
8041      # Check to see if the program is GNU ld.  I'd rather use --version,
8042      # but apparently some variants of GNU ld only accept -v.
8043      # Break only if it was the GNU/non-GNU ld that we prefer.
8044      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8045      *GNU* | *'with BFD'*)
8046	test "$with_gnu_ld" != no && break
8047	;;
8048      *)
8049	test "$with_gnu_ld" != yes && break
8050	;;
8051      esac
8052    fi
8053  done
8054  IFS="$lt_save_ifs"
8055else
8056  lt_cv_path_LD="$LD" # Let the user override the test with a path.
8057fi
8058fi
8059
8060LD="$lt_cv_path_LD"
8061if test -n "$LD"; then
8062  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8063$as_echo "$LD" >&6; }
8064else
8065  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8066$as_echo "no" >&6; }
8067fi
8068test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8070$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8071if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8072  $as_echo_n "(cached) " >&6
8073else
8074  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8075case `$LD -v 2>&1 </dev/null` in
8076*GNU* | *'with BFD'*)
8077  lt_cv_prog_gnu_ld=yes
8078  ;;
8079*)
8080  lt_cv_prog_gnu_ld=no
8081  ;;
8082esac
8083fi
8084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8085$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8086with_gnu_ld=$lt_cv_prog_gnu_ld
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8097$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8098if test "${lt_cv_path_NM+set}" = set; then :
8099  $as_echo_n "(cached) " >&6
8100else
8101  if test -n "$NM"; then
8102  # Let the user override the test.
8103  lt_cv_path_NM="$NM"
8104else
8105  lt_nm_to_check="${ac_tool_prefix}nm"
8106  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8107    lt_nm_to_check="$lt_nm_to_check nm"
8108  fi
8109  for lt_tmp_nm in $lt_nm_to_check; do
8110    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8111    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8112      IFS="$lt_save_ifs"
8113      test -z "$ac_dir" && ac_dir=.
8114      tmp_nm="$ac_dir/$lt_tmp_nm"
8115      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8116	# Check to see if the nm accepts a BSD-compat flag.
8117	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8118	#   nm: unknown option "B" ignored
8119	# Tru64's nm complains that /dev/null is an invalid object file
8120	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8121	*/dev/null* | *'Invalid file or object type'*)
8122	  lt_cv_path_NM="$tmp_nm -B"
8123	  break
8124	  ;;
8125	*)
8126	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8127	  */dev/null*)
8128	    lt_cv_path_NM="$tmp_nm -p"
8129	    break
8130	    ;;
8131	  *)
8132	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8133	    continue # so that we can try to find one that supports BSD flags
8134	    ;;
8135	  esac
8136	  ;;
8137	esac
8138      fi
8139    done
8140    IFS="$lt_save_ifs"
8141  done
8142  : ${lt_cv_path_NM=no}
8143fi
8144fi
8145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8146$as_echo "$lt_cv_path_NM" >&6; }
8147if test "$lt_cv_path_NM" != "no"; then
8148  NM="$lt_cv_path_NM"
8149else
8150  # Didn't find any BSD compatible name lister, look for dumpbin.
8151  if test -n "$ac_tool_prefix"; then
8152  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8153  do
8154    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8155set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8157$as_echo_n "checking for $ac_word... " >&6; }
8158if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8159  $as_echo_n "(cached) " >&6
8160else
8161  if test -n "$DUMPBIN"; then
8162  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8163else
8164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165for as_dir in $PATH
8166do
8167  IFS=$as_save_IFS
8168  test -z "$as_dir" && as_dir=.
8169    for ac_exec_ext in '' $ac_executable_extensions; do
8170  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8171    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8172    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173    break 2
8174  fi
8175done
8176  done
8177IFS=$as_save_IFS
8178
8179fi
8180fi
8181DUMPBIN=$ac_cv_prog_DUMPBIN
8182if test -n "$DUMPBIN"; then
8183  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8184$as_echo "$DUMPBIN" >&6; }
8185else
8186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187$as_echo "no" >&6; }
8188fi
8189
8190
8191    test -n "$DUMPBIN" && break
8192  done
8193fi
8194if test -z "$DUMPBIN"; then
8195  ac_ct_DUMPBIN=$DUMPBIN
8196  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8197do
8198  # Extract the first word of "$ac_prog", so it can be a program name with args.
8199set dummy $ac_prog; ac_word=$2
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  if test -n "$ac_ct_DUMPBIN"; then
8206  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211  IFS=$as_save_IFS
8212  test -z "$as_dir" && as_dir=.
8213    for ac_exec_ext in '' $ac_executable_extensions; do
8214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217    break 2
8218  fi
8219done
8220  done
8221IFS=$as_save_IFS
8222
8223fi
8224fi
8225ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8226if test -n "$ac_ct_DUMPBIN"; then
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8228$as_echo "$ac_ct_DUMPBIN" >&6; }
8229else
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
8234
8235  test -n "$ac_ct_DUMPBIN" && break
8236done
8237
8238  if test "x$ac_ct_DUMPBIN" = x; then
8239    DUMPBIN=":"
8240  else
8241    case $cross_compiling:$ac_tool_warned in
8242yes:)
8243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8245ac_tool_warned=yes ;;
8246esac
8247    DUMPBIN=$ac_ct_DUMPBIN
8248  fi
8249fi
8250
8251
8252  if test "$DUMPBIN" != ":"; then
8253    NM="$DUMPBIN"
8254  fi
8255fi
8256test -z "$NM" && NM=nm
8257
8258
8259
8260
8261
8262
8263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8264$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8265if test "${lt_cv_nm_interface+set}" = set; then :
8266  $as_echo_n "(cached) " >&6
8267else
8268  lt_cv_nm_interface="BSD nm"
8269  echo "int some_variable = 0;" > conftest.$ac_ext
8270  (eval echo "\"\$as_me:8270: $ac_compile\"" >&5)
8271  (eval "$ac_compile" 2>conftest.err)
8272  cat conftest.err >&5
8273  (eval echo "\"\$as_me:8273: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8274  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8275  cat conftest.err >&5
8276  (eval echo "\"\$as_me:8276: output\"" >&5)
8277  cat conftest.out >&5
8278  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8279    lt_cv_nm_interface="MS dumpbin"
8280  fi
8281  rm -f conftest*
8282fi
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8284$as_echo "$lt_cv_nm_interface" >&6; }
8285
8286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8287$as_echo_n "checking whether ln -s works... " >&6; }
8288LN_S=$as_ln_s
8289if test "$LN_S" = "ln -s"; then
8290  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291$as_echo "yes" >&6; }
8292else
8293  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8294$as_echo "no, using $LN_S" >&6; }
8295fi
8296
8297# find the maximum length of command line arguments
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8299$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8300if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303    i=0
8304  teststring="ABCD"
8305
8306  case $build_os in
8307  msdosdjgpp*)
8308    # On DJGPP, this test can blow up pretty badly due to problems in libc
8309    # (any single argument exceeding 2000 bytes causes a buffer overrun
8310    # during glob expansion).  Even if it were fixed, the result of this
8311    # check would be larger than it should be.
8312    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8313    ;;
8314
8315  gnu*)
8316    # Under GNU Hurd, this test is not required because there is
8317    # no limit to the length of command line arguments.
8318    # Libtool will interpret -1 as no limit whatsoever
8319    lt_cv_sys_max_cmd_len=-1;
8320    ;;
8321
8322  cygwin* | mingw* | cegcc*)
8323    # On Win9x/ME, this test blows up -- it succeeds, but takes
8324    # about 5 minutes as the teststring grows exponentially.
8325    # Worse, since 9x/ME are not pre-emptively multitasking,
8326    # you end up with a "frozen" computer, even though with patience
8327    # the test eventually succeeds (with a max line length of 256k).
8328    # Instead, let's just punt: use the minimum linelength reported by
8329    # all of the supported platforms: 8192 (on NT/2K/XP).
8330    lt_cv_sys_max_cmd_len=8192;
8331    ;;
8332
8333  amigaos*)
8334    # On AmigaOS with pdksh, this test takes hours, literally.
8335    # So we just punt and use a minimum line length of 8192.
8336    lt_cv_sys_max_cmd_len=8192;
8337    ;;
8338
8339  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8340    # This has been around since 386BSD, at least.  Likely further.
8341    if test -x /sbin/sysctl; then
8342      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8343    elif test -x /usr/sbin/sysctl; then
8344      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8345    else
8346      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8347    fi
8348    # And add a safety zone
8349    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8350    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8351    ;;
8352
8353  interix*)
8354    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8355    lt_cv_sys_max_cmd_len=196608
8356    ;;
8357
8358  osf*)
8359    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8360    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8361    # nice to cause kernel panics so lets avoid the loop below.
8362    # First set a reasonable default.
8363    lt_cv_sys_max_cmd_len=16384
8364    #
8365    if test -x /sbin/sysconfig; then
8366      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8367        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8368      esac
8369    fi
8370    ;;
8371  sco3.2v5*)
8372    lt_cv_sys_max_cmd_len=102400
8373    ;;
8374  sysv5* | sco5v6* | sysv4.2uw2*)
8375    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8376    if test -n "$kargmax"; then
8377      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8378    else
8379      lt_cv_sys_max_cmd_len=32768
8380    fi
8381    ;;
8382  *)
8383    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8384    if test -n "$lt_cv_sys_max_cmd_len"; then
8385      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8386      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8387    else
8388      # Make teststring a little bigger before we do anything with it.
8389      # a 1K string should be a reasonable start.
8390      for i in 1 2 3 4 5 6 7 8 ; do
8391        teststring=$teststring$teststring
8392      done
8393      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8394      # If test is not a shell built-in, we'll probably end up computing a
8395      # maximum length that is only half of the actual maximum length, but
8396      # we can't tell.
8397      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8398	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8399	      test $i != 17 # 1/2 MB should be enough
8400      do
8401        i=`expr $i + 1`
8402        teststring=$teststring$teststring
8403      done
8404      # Only check the string length outside the loop.
8405      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8406      teststring=
8407      # Add a significant safety factor because C++ compilers can tack on
8408      # massive amounts of additional arguments before passing them to the
8409      # linker.  It appears as though 1/2 is a usable value.
8410      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8411    fi
8412    ;;
8413  esac
8414
8415fi
8416
8417if test -n $lt_cv_sys_max_cmd_len ; then
8418  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8419$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8420else
8421  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8422$as_echo "none" >&6; }
8423fi
8424max_cmd_len=$lt_cv_sys_max_cmd_len
8425
8426
8427
8428
8429
8430
8431: ${CP="cp -f"}
8432: ${MV="mv -f"}
8433: ${RM="rm -f"}
8434
8435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8436$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8437# Try some XSI features
8438xsi_shell=no
8439( _lt_dummy="a/b/c"
8440  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8441      = c,a/b,, \
8442    && eval 'test $(( 1 + 1 )) -eq 2 \
8443    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8444  && xsi_shell=yes
8445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8446$as_echo "$xsi_shell" >&6; }
8447
8448
8449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8450$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8451lt_shell_append=no
8452( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8453    >/dev/null 2>&1 \
8454  && lt_shell_append=yes
8455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8456$as_echo "$lt_shell_append" >&6; }
8457
8458
8459if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8460  lt_unset=unset
8461else
8462  lt_unset=false
8463fi
8464
8465
8466
8467
8468
8469# test EBCDIC or ASCII
8470case `echo X|tr X '\101'` in
8471 A) # ASCII based system
8472    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8473  lt_SP2NL='tr \040 \012'
8474  lt_NL2SP='tr \015\012 \040\040'
8475  ;;
8476 *) # EBCDIC based system
8477  lt_SP2NL='tr \100 \n'
8478  lt_NL2SP='tr \r\n \100\100'
8479  ;;
8480esac
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8491$as_echo_n "checking for $LD option to reload object files... " >&6; }
8492if test "${lt_cv_ld_reload_flag+set}" = set; then :
8493  $as_echo_n "(cached) " >&6
8494else
8495  lt_cv_ld_reload_flag='-r'
8496fi
8497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8498$as_echo "$lt_cv_ld_reload_flag" >&6; }
8499reload_flag=$lt_cv_ld_reload_flag
8500case $reload_flag in
8501"" | " "*) ;;
8502*) reload_flag=" $reload_flag" ;;
8503esac
8504reload_cmds='$LD$reload_flag -o $output$reload_objs'
8505case $host_os in
8506  darwin*)
8507    if test "$GCC" = yes; then
8508      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8509    else
8510      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8511    fi
8512    ;;
8513esac
8514
8515
8516
8517
8518
8519
8520
8521
8522
8523if test -n "$ac_tool_prefix"; then
8524  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8525set dummy ${ac_tool_prefix}objdump; ac_word=$2
8526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527$as_echo_n "checking for $ac_word... " >&6; }
8528if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8529  $as_echo_n "(cached) " >&6
8530else
8531  if test -n "$OBJDUMP"; then
8532  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8533else
8534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8535for as_dir in $PATH
8536do
8537  IFS=$as_save_IFS
8538  test -z "$as_dir" && as_dir=.
8539    for ac_exec_ext in '' $ac_executable_extensions; do
8540  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8541    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8542    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543    break 2
8544  fi
8545done
8546  done
8547IFS=$as_save_IFS
8548
8549fi
8550fi
8551OBJDUMP=$ac_cv_prog_OBJDUMP
8552if test -n "$OBJDUMP"; then
8553  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8554$as_echo "$OBJDUMP" >&6; }
8555else
8556  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8557$as_echo "no" >&6; }
8558fi
8559
8560
8561fi
8562if test -z "$ac_cv_prog_OBJDUMP"; then
8563  ac_ct_OBJDUMP=$OBJDUMP
8564  # Extract the first word of "objdump", so it can be a program name with args.
8565set dummy objdump; ac_word=$2
8566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8567$as_echo_n "checking for $ac_word... " >&6; }
8568if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8569  $as_echo_n "(cached) " >&6
8570else
8571  if test -n "$ac_ct_OBJDUMP"; then
8572  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8573else
8574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8575for as_dir in $PATH
8576do
8577  IFS=$as_save_IFS
8578  test -z "$as_dir" && as_dir=.
8579    for ac_exec_ext in '' $ac_executable_extensions; do
8580  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8581    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8582    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8583    break 2
8584  fi
8585done
8586  done
8587IFS=$as_save_IFS
8588
8589fi
8590fi
8591ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8592if test -n "$ac_ct_OBJDUMP"; then
8593  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8594$as_echo "$ac_ct_OBJDUMP" >&6; }
8595else
8596  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8597$as_echo "no" >&6; }
8598fi
8599
8600  if test "x$ac_ct_OBJDUMP" = x; then
8601    OBJDUMP="false"
8602  else
8603    case $cross_compiling:$ac_tool_warned in
8604yes:)
8605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8607ac_tool_warned=yes ;;
8608esac
8609    OBJDUMP=$ac_ct_OBJDUMP
8610  fi
8611else
8612  OBJDUMP="$ac_cv_prog_OBJDUMP"
8613fi
8614
8615test -z "$OBJDUMP" && OBJDUMP=objdump
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8626$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8627if test "${lt_cv_deplibs_check_method+set}" = set; then :
8628  $as_echo_n "(cached) " >&6
8629else
8630  lt_cv_file_magic_cmd='$MAGIC_CMD'
8631lt_cv_file_magic_test_file=
8632lt_cv_deplibs_check_method='unknown'
8633# Need to set the preceding variable on all platforms that support
8634# interlibrary dependencies.
8635# 'none' -- dependencies not supported.
8636# `unknown' -- same as none, but documents that we really don't know.
8637# 'pass_all' -- all dependencies passed with no checks.
8638# 'test_compile' -- check by making test program.
8639# 'file_magic [[regex]]' -- check by looking for files in library path
8640# which responds to the $file_magic_cmd with a given extended regex.
8641# If you have `file' or equivalent on your system and you're not sure
8642# whether `pass_all' will *always* work, you probably want this one.
8643
8644case $host_os in
8645aix[4-9]*)
8646  lt_cv_deplibs_check_method=pass_all
8647  ;;
8648
8649beos*)
8650  lt_cv_deplibs_check_method=pass_all
8651  ;;
8652
8653bsdi[45]*)
8654  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8655  lt_cv_file_magic_cmd='/usr/bin/file -L'
8656  lt_cv_file_magic_test_file=/shlib/libc.so
8657  ;;
8658
8659cygwin*)
8660  # func_win32_libid is a shell function defined in ltmain.sh
8661  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8662  lt_cv_file_magic_cmd='func_win32_libid'
8663  ;;
8664
8665mingw* | pw32*)
8666  # Base MSYS/MinGW do not provide the 'file' command needed by
8667  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8668  # unless we find 'file', for example because we are cross-compiling.
8669  if ( file / ) >/dev/null 2>&1; then
8670    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8671    lt_cv_file_magic_cmd='func_win32_libid'
8672  else
8673    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8674    lt_cv_file_magic_cmd='$OBJDUMP -f'
8675  fi
8676  ;;
8677
8678cegcc)
8679  # use the weaker test based on 'objdump'. See mingw*.
8680  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8681  lt_cv_file_magic_cmd='$OBJDUMP -f'
8682  ;;
8683
8684darwin* | rhapsody*)
8685  lt_cv_deplibs_check_method=pass_all
8686  ;;
8687
8688freebsd* | dragonfly*)
8689  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8690    case $host_cpu in
8691    i*86 )
8692      # Not sure whether the presence of OpenBSD here was a mistake.
8693      # Let's accept both of them until this is cleared up.
8694      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8695      lt_cv_file_magic_cmd=/usr/bin/file
8696      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8697      ;;
8698    esac
8699  else
8700    lt_cv_deplibs_check_method=pass_all
8701  fi
8702  ;;
8703
8704gnu*)
8705  lt_cv_deplibs_check_method=pass_all
8706  ;;
8707
8708hpux10.20* | hpux11*)
8709  lt_cv_file_magic_cmd=/usr/bin/file
8710  case $host_cpu in
8711  ia64*)
8712    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8713    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8714    ;;
8715  hppa*64*)
8716    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]'
8717    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8718    ;;
8719  *)
8720    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8721    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8722    ;;
8723  esac
8724  ;;
8725
8726interix[3-9]*)
8727  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8728  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8729  ;;
8730
8731irix5* | irix6* | nonstopux*)
8732  case $LD in
8733  *-32|*"-32 ") libmagic=32-bit;;
8734  *-n32|*"-n32 ") libmagic=N32;;
8735  *-64|*"-64 ") libmagic=64-bit;;
8736  *) libmagic=never-match;;
8737  esac
8738  lt_cv_deplibs_check_method=pass_all
8739  ;;
8740
8741# This must be Linux ELF.
8742linux* | k*bsd*-gnu)
8743  lt_cv_deplibs_check_method=pass_all
8744  ;;
8745
8746netbsd* | netbsdelf*-gnu)
8747  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8748    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8749  else
8750    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8751  fi
8752  ;;
8753
8754newos6*)
8755  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8756  lt_cv_file_magic_cmd=/usr/bin/file
8757  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8758  ;;
8759
8760*nto* | *qnx*)
8761  lt_cv_deplibs_check_method=pass_all
8762  ;;
8763
8764openbsd*)
8765  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8766    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8767  else
8768    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8769  fi
8770  ;;
8771
8772osf3* | osf4* | osf5*)
8773  lt_cv_deplibs_check_method=pass_all
8774  ;;
8775
8776rdos*)
8777  lt_cv_deplibs_check_method=pass_all
8778  ;;
8779
8780solaris*)
8781  lt_cv_deplibs_check_method=pass_all
8782  ;;
8783
8784sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8785  lt_cv_deplibs_check_method=pass_all
8786  ;;
8787
8788sysv4 | sysv4.3*)
8789  case $host_vendor in
8790  motorola)
8791    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]'
8792    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8793    ;;
8794  ncr)
8795    lt_cv_deplibs_check_method=pass_all
8796    ;;
8797  sequent)
8798    lt_cv_file_magic_cmd='/bin/file'
8799    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8800    ;;
8801  sni)
8802    lt_cv_file_magic_cmd='/bin/file'
8803    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8804    lt_cv_file_magic_test_file=/lib/libc.so
8805    ;;
8806  siemens)
8807    lt_cv_deplibs_check_method=pass_all
8808    ;;
8809  pc)
8810    lt_cv_deplibs_check_method=pass_all
8811    ;;
8812  esac
8813  ;;
8814
8815tpf*)
8816  lt_cv_deplibs_check_method=pass_all
8817  ;;
8818esac
8819
8820fi
8821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8822$as_echo "$lt_cv_deplibs_check_method" >&6; }
8823file_magic_cmd=$lt_cv_file_magic_cmd
8824deplibs_check_method=$lt_cv_deplibs_check_method
8825test -z "$deplibs_check_method" && deplibs_check_method=unknown
8826
8827
8828
8829
8830
8831
8832
8833
8834
8835
8836
8837
8838if test -n "$ac_tool_prefix"; then
8839  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8840set dummy ${ac_tool_prefix}ar; ac_word=$2
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8842$as_echo_n "checking for $ac_word... " >&6; }
8843if test "${ac_cv_prog_AR+set}" = set; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  if test -n "$AR"; then
8847  ac_cv_prog_AR="$AR" # Let the user override the test.
8848else
8849as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850for as_dir in $PATH
8851do
8852  IFS=$as_save_IFS
8853  test -z "$as_dir" && as_dir=.
8854    for ac_exec_ext in '' $ac_executable_extensions; do
8855  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856    ac_cv_prog_AR="${ac_tool_prefix}ar"
8857    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858    break 2
8859  fi
8860done
8861  done
8862IFS=$as_save_IFS
8863
8864fi
8865fi
8866AR=$ac_cv_prog_AR
8867if test -n "$AR"; then
8868  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8869$as_echo "$AR" >&6; }
8870else
8871  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8872$as_echo "no" >&6; }
8873fi
8874
8875
8876fi
8877if test -z "$ac_cv_prog_AR"; then
8878  ac_ct_AR=$AR
8879  # Extract the first word of "ar", so it can be a program name with args.
8880set dummy ar; ac_word=$2
8881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8882$as_echo_n "checking for $ac_word... " >&6; }
8883if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8884  $as_echo_n "(cached) " >&6
8885else
8886  if test -n "$ac_ct_AR"; then
8887  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8888else
8889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8890for as_dir in $PATH
8891do
8892  IFS=$as_save_IFS
8893  test -z "$as_dir" && as_dir=.
8894    for ac_exec_ext in '' $ac_executable_extensions; do
8895  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8896    ac_cv_prog_ac_ct_AR="ar"
8897    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898    break 2
8899  fi
8900done
8901  done
8902IFS=$as_save_IFS
8903
8904fi
8905fi
8906ac_ct_AR=$ac_cv_prog_ac_ct_AR
8907if test -n "$ac_ct_AR"; then
8908  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8909$as_echo "$ac_ct_AR" >&6; }
8910else
8911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912$as_echo "no" >&6; }
8913fi
8914
8915  if test "x$ac_ct_AR" = x; then
8916    AR="false"
8917  else
8918    case $cross_compiling:$ac_tool_warned in
8919yes:)
8920{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8921$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8922ac_tool_warned=yes ;;
8923esac
8924    AR=$ac_ct_AR
8925  fi
8926else
8927  AR="$ac_cv_prog_AR"
8928fi
8929
8930test -z "$AR" && AR=ar
8931test -z "$AR_FLAGS" && AR_FLAGS=cru
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943if test -n "$ac_tool_prefix"; then
8944  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8945set dummy ${ac_tool_prefix}strip; ac_word=$2
8946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947$as_echo_n "checking for $ac_word... " >&6; }
8948if test "${ac_cv_prog_STRIP+set}" = set; then :
8949  $as_echo_n "(cached) " >&6
8950else
8951  if test -n "$STRIP"; then
8952  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8953else
8954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955for as_dir in $PATH
8956do
8957  IFS=$as_save_IFS
8958  test -z "$as_dir" && as_dir=.
8959    for ac_exec_ext in '' $ac_executable_extensions; do
8960  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8961    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8962    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963    break 2
8964  fi
8965done
8966  done
8967IFS=$as_save_IFS
8968
8969fi
8970fi
8971STRIP=$ac_cv_prog_STRIP
8972if test -n "$STRIP"; then
8973  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8974$as_echo "$STRIP" >&6; }
8975else
8976  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8977$as_echo "no" >&6; }
8978fi
8979
8980
8981fi
8982if test -z "$ac_cv_prog_STRIP"; then
8983  ac_ct_STRIP=$STRIP
8984  # Extract the first word of "strip", so it can be a program name with args.
8985set dummy strip; ac_word=$2
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8987$as_echo_n "checking for $ac_word... " >&6; }
8988if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8989  $as_echo_n "(cached) " >&6
8990else
8991  if test -n "$ac_ct_STRIP"; then
8992  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8993else
8994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995for as_dir in $PATH
8996do
8997  IFS=$as_save_IFS
8998  test -z "$as_dir" && as_dir=.
8999    for ac_exec_ext in '' $ac_executable_extensions; do
9000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9001    ac_cv_prog_ac_ct_STRIP="strip"
9002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003    break 2
9004  fi
9005done
9006  done
9007IFS=$as_save_IFS
9008
9009fi
9010fi
9011ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9012if test -n "$ac_ct_STRIP"; then
9013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9014$as_echo "$ac_ct_STRIP" >&6; }
9015else
9016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9017$as_echo "no" >&6; }
9018fi
9019
9020  if test "x$ac_ct_STRIP" = x; then
9021    STRIP=":"
9022  else
9023    case $cross_compiling:$ac_tool_warned in
9024yes:)
9025{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9026$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9027ac_tool_warned=yes ;;
9028esac
9029    STRIP=$ac_ct_STRIP
9030  fi
9031else
9032  STRIP="$ac_cv_prog_STRIP"
9033fi
9034
9035test -z "$STRIP" && STRIP=:
9036
9037
9038
9039
9040
9041
9042if test -n "$ac_tool_prefix"; then
9043  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9044set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046$as_echo_n "checking for $ac_word... " >&6; }
9047if test "${ac_cv_prog_RANLIB+set}" = set; then :
9048  $as_echo_n "(cached) " >&6
9049else
9050  if test -n "$RANLIB"; then
9051  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9052else
9053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054for as_dir in $PATH
9055do
9056  IFS=$as_save_IFS
9057  test -z "$as_dir" && as_dir=.
9058    for ac_exec_ext in '' $ac_executable_extensions; do
9059  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9061    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062    break 2
9063  fi
9064done
9065  done
9066IFS=$as_save_IFS
9067
9068fi
9069fi
9070RANLIB=$ac_cv_prog_RANLIB
9071if test -n "$RANLIB"; then
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9073$as_echo "$RANLIB" >&6; }
9074else
9075  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076$as_echo "no" >&6; }
9077fi
9078
9079
9080fi
9081if test -z "$ac_cv_prog_RANLIB"; then
9082  ac_ct_RANLIB=$RANLIB
9083  # Extract the first word of "ranlib", so it can be a program name with args.
9084set dummy ranlib; ac_word=$2
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086$as_echo_n "checking for $ac_word... " >&6; }
9087if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9088  $as_echo_n "(cached) " >&6
9089else
9090  if test -n "$ac_ct_RANLIB"; then
9091  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9092else
9093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094for as_dir in $PATH
9095do
9096  IFS=$as_save_IFS
9097  test -z "$as_dir" && as_dir=.
9098    for ac_exec_ext in '' $ac_executable_extensions; do
9099  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100    ac_cv_prog_ac_ct_RANLIB="ranlib"
9101    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102    break 2
9103  fi
9104done
9105  done
9106IFS=$as_save_IFS
9107
9108fi
9109fi
9110ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9111if test -n "$ac_ct_RANLIB"; then
9112  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9113$as_echo "$ac_ct_RANLIB" >&6; }
9114else
9115  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116$as_echo "no" >&6; }
9117fi
9118
9119  if test "x$ac_ct_RANLIB" = x; then
9120    RANLIB=":"
9121  else
9122    case $cross_compiling:$ac_tool_warned in
9123yes:)
9124{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126ac_tool_warned=yes ;;
9127esac
9128    RANLIB=$ac_ct_RANLIB
9129  fi
9130else
9131  RANLIB="$ac_cv_prog_RANLIB"
9132fi
9133
9134test -z "$RANLIB" && RANLIB=:
9135
9136
9137
9138
9139
9140
9141# Determine commands to create old-style static archives.
9142old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9143old_postinstall_cmds='chmod 644 $oldlib'
9144old_postuninstall_cmds=
9145
9146if test -n "$RANLIB"; then
9147  case $host_os in
9148  openbsd*)
9149    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9150    ;;
9151  *)
9152    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9153    ;;
9154  esac
9155  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9156fi
9157
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191# If no C compiler was specified, use CC.
9192LTCC=${LTCC-"$CC"}
9193
9194# If no C compiler flags were specified, use CFLAGS.
9195LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9196
9197# Allow CC to be a program name with arguments.
9198compiler=$CC
9199
9200
9201# Check for command to grab the raw symbol name followed by C symbol from nm.
9202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9203$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9204if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9205  $as_echo_n "(cached) " >&6
9206else
9207
9208# These are sane defaults that work on at least a few old systems.
9209# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9210
9211# Character class describing NM global symbol codes.
9212symcode='[BCDEGRST]'
9213
9214# Regexp to match symbols that can be accessed directly from C.
9215sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9216
9217# Define system-specific variables.
9218case $host_os in
9219aix*)
9220  symcode='[BCDT]'
9221  ;;
9222cygwin* | mingw* | pw32* | cegcc*)
9223  symcode='[ABCDGISTW]'
9224  ;;
9225hpux*)
9226  if test "$host_cpu" = ia64; then
9227    symcode='[ABCDEGRST]'
9228  fi
9229  ;;
9230irix* | nonstopux*)
9231  symcode='[BCDEGRST]'
9232  ;;
9233osf*)
9234  symcode='[BCDEGQRST]'
9235  ;;
9236solaris*)
9237  symcode='[BDRT]'
9238  ;;
9239sco3.2v5*)
9240  symcode='[DT]'
9241  ;;
9242sysv4.2uw2*)
9243  symcode='[DT]'
9244  ;;
9245sysv5* | sco5v6* | unixware* | OpenUNIX*)
9246  symcode='[ABDT]'
9247  ;;
9248sysv4)
9249  symcode='[DFNSTU]'
9250  ;;
9251esac
9252
9253# If we're using GNU nm, then use its standard symbol codes.
9254case `$NM -V 2>&1` in
9255*GNU* | *'with BFD'*)
9256  symcode='[ABCDGIRSTW]' ;;
9257esac
9258
9259# Transform an extracted symbol line into a proper C declaration.
9260# Some systems (esp. on ia64) link data and code symbols differently,
9261# so use this general approach.
9262lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9263
9264# Transform an extracted symbol line into symbol name and symbol address
9265lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
9266lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
9267
9268# Handle CRLF in mingw tool chain
9269opt_cr=
9270case $build_os in
9271mingw*)
9272  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9273  ;;
9274esac
9275
9276# Try without a prefix underscore, then with it.
9277for ac_symprfx in "" "_"; do
9278
9279  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9280  symxfrm="\\1 $ac_symprfx\\2 \\2"
9281
9282  # Write the raw and C identifiers.
9283  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9284    # Fake it for dumpbin and say T for any non-static function
9285    # and D for any global variable.
9286    # Also find C++ and __fastcall symbols from MSVC++,
9287    # which start with @ or ?.
9288    lt_cv_sys_global_symbol_pipe="$AWK '"\
9289"     {last_section=section; section=\$ 3};"\
9290"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9291"     \$ 0!~/External *\|/{next};"\
9292"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9293"     {if(hide[section]) next};"\
9294"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9295"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9296"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
9297"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9298"     ' prfx=^$ac_symprfx"
9299  else
9300    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9301  fi
9302
9303  # Check to see that the pipe works correctly.
9304  pipe_works=no
9305
9306  rm -f conftest*
9307  cat > conftest.$ac_ext <<_LT_EOF
9308#ifdef __cplusplus
9309extern "C" {
9310#endif
9311char nm_test_var;
9312void nm_test_func(void);
9313void nm_test_func(void){}
9314#ifdef __cplusplus
9315}
9316#endif
9317int main(){nm_test_var='a';nm_test_func();return(0);}
9318_LT_EOF
9319
9320  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9321  (eval $ac_compile) 2>&5
9322  ac_status=$?
9323  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9324  test $ac_status = 0; }; then
9325    # Now try to grab the symbols.
9326    nlist=conftest.nm
9327    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9328  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9329  ac_status=$?
9330  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9331  test $ac_status = 0; } && test -s "$nlist"; then
9332      # Try sorting and uniquifying the output.
9333      if sort "$nlist" | uniq > "$nlist"T; then
9334	mv -f "$nlist"T "$nlist"
9335      else
9336	rm -f "$nlist"T
9337      fi
9338
9339      # Make sure that we snagged all the symbols we need.
9340      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9341	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9342	  cat <<_LT_EOF > conftest.$ac_ext
9343#ifdef __cplusplus
9344extern "C" {
9345#endif
9346
9347_LT_EOF
9348	  # Now generate the symbol file.
9349	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9350
9351	  cat <<_LT_EOF >> conftest.$ac_ext
9352
9353/* The mapping between symbol names and symbols.  */
9354const struct {
9355  const char *name;
9356  void       *address;
9357}
9358lt__PROGRAM__LTX_preloaded_symbols[] =
9359{
9360  { "@PROGRAM@", (void *) 0 },
9361_LT_EOF
9362	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9363	  cat <<\_LT_EOF >> conftest.$ac_ext
9364  {0, (void *) 0}
9365};
9366
9367/* This works around a problem in FreeBSD linker */
9368#ifdef FREEBSD_WORKAROUND
9369static const void *lt_preloaded_setup() {
9370  return lt__PROGRAM__LTX_preloaded_symbols;
9371}
9372#endif
9373
9374#ifdef __cplusplus
9375}
9376#endif
9377_LT_EOF
9378	  # Now try linking the two files.
9379	  mv conftest.$ac_objext conftstm.$ac_objext
9380	  lt_save_LIBS="$LIBS"
9381	  lt_save_CFLAGS="$CFLAGS"
9382	  LIBS="conftstm.$ac_objext"
9383	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9384	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9385  (eval $ac_link) 2>&5
9386  ac_status=$?
9387  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9388  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9389	    pipe_works=yes
9390	  fi
9391	  LIBS="$lt_save_LIBS"
9392	  CFLAGS="$lt_save_CFLAGS"
9393	else
9394	  echo "cannot find nm_test_func in $nlist" >&5
9395	fi
9396      else
9397	echo "cannot find nm_test_var in $nlist" >&5
9398      fi
9399    else
9400      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9401    fi
9402  else
9403    echo "$progname: failed program was:" >&5
9404    cat conftest.$ac_ext >&5
9405  fi
9406  rm -rf conftest* conftst*
9407
9408  # Do not use the global_symbol_pipe unless it works.
9409  if test "$pipe_works" = yes; then
9410    break
9411  else
9412    lt_cv_sys_global_symbol_pipe=
9413  fi
9414done
9415
9416fi
9417
9418if test -z "$lt_cv_sys_global_symbol_pipe"; then
9419  lt_cv_sys_global_symbol_to_cdecl=
9420fi
9421if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9422  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9423$as_echo "failed" >&6; }
9424else
9425  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9426$as_echo "ok" >&6; }
9427fi
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446
9447
9448
9449
9450# Check whether --enable-libtool-lock was given.
9451if test "${enable_libtool_lock+set}" = set; then :
9452  enableval=$enable_libtool_lock;
9453fi
9454
9455test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9456
9457# Some flags need to be propagated to the compiler or linker for good
9458# libtool support.
9459case $host in
9460ia64-*-hpux*)
9461  # Find out which ABI we are using.
9462  echo 'int i;' > conftest.$ac_ext
9463  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9464  (eval $ac_compile) 2>&5
9465  ac_status=$?
9466  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9467  test $ac_status = 0; }; then
9468    case `/usr/bin/file conftest.$ac_objext` in
9469      *ELF-32*)
9470	HPUX_IA64_MODE="32"
9471	;;
9472      *ELF-64*)
9473	HPUX_IA64_MODE="64"
9474	;;
9475    esac
9476  fi
9477  rm -rf conftest*
9478  ;;
9479*-*-irix6*)
9480  # Find out which ABI we are using.
9481  echo '#line 9481 "configure"' > conftest.$ac_ext
9482  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9483  (eval $ac_compile) 2>&5
9484  ac_status=$?
9485  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9486  test $ac_status = 0; }; then
9487    if test "$lt_cv_prog_gnu_ld" = yes; then
9488      case `/usr/bin/file conftest.$ac_objext` in
9489	*32-bit*)
9490	  LD="${LD-ld} -melf32bsmip"
9491	  ;;
9492	*N32*)
9493	  LD="${LD-ld} -melf32bmipn32"
9494	  ;;
9495	*64-bit*)
9496	  LD="${LD-ld} -melf64bmip"
9497	;;
9498      esac
9499    else
9500      case `/usr/bin/file conftest.$ac_objext` in
9501	*32-bit*)
9502	  LD="${LD-ld} -32"
9503	  ;;
9504	*N32*)
9505	  LD="${LD-ld} -n32"
9506	  ;;
9507	*64-bit*)
9508	  LD="${LD-ld} -64"
9509	  ;;
9510      esac
9511    fi
9512  fi
9513  rm -rf conftest*
9514  ;;
9515
9516x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9517s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9518  # Find out which ABI we are using.
9519  echo 'int i;' > conftest.$ac_ext
9520  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9521  (eval $ac_compile) 2>&5
9522  ac_status=$?
9523  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9524  test $ac_status = 0; }; then
9525    case `/usr/bin/file conftest.o` in
9526      *32-bit*)
9527	case $host in
9528	  x86_64-*kfreebsd*-gnu)
9529	    LD="${LD-ld} -m elf_i386_fbsd"
9530	    ;;
9531	  x86_64-*linux*)
9532	    LD="${LD-ld} -m elf_i386"
9533	    ;;
9534	  ppc64-*linux*|powerpc64-*linux*)
9535	    LD="${LD-ld} -m elf32ppclinux"
9536	    ;;
9537	  s390x-*linux*)
9538	    LD="${LD-ld} -m elf_s390"
9539	    ;;
9540	  sparc64-*linux*)
9541	    LD="${LD-ld} -m elf32_sparc"
9542	    ;;
9543	esac
9544	;;
9545      *64-bit*)
9546	case $host in
9547	  x86_64-*kfreebsd*-gnu)
9548	    LD="${LD-ld} -m elf_x86_64_fbsd"
9549	    ;;
9550	  x86_64-*linux*)
9551	    LD="${LD-ld} -m elf_x86_64"
9552	    ;;
9553	  ppc*-*linux*|powerpc*-*linux*)
9554	    LD="${LD-ld} -m elf64ppc"
9555	    ;;
9556	  s390*-*linux*|s390*-*tpf*)
9557	    LD="${LD-ld} -m elf64_s390"
9558	    ;;
9559	  sparc*-*linux*)
9560	    LD="${LD-ld} -m elf64_sparc"
9561	    ;;
9562	esac
9563	;;
9564    esac
9565  fi
9566  rm -rf conftest*
9567  ;;
9568
9569*-*-sco3.2v5*)
9570  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9571  SAVE_CFLAGS="$CFLAGS"
9572  CFLAGS="$CFLAGS -belf"
9573  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9574$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9575if test "${lt_cv_cc_needs_belf+set}" = set; then :
9576  $as_echo_n "(cached) " >&6
9577else
9578  ac_ext=c
9579ac_cpp='$CPP $CPPFLAGS'
9580ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9581ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9582ac_compiler_gnu=$ac_cv_c_compiler_gnu
9583
9584     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9585/* end confdefs.h.  */
9586
9587int
9588main ()
9589{
9590
9591  ;
9592  return 0;
9593}
9594_ACEOF
9595if ac_fn_c_try_link "$LINENO"; then :
9596  lt_cv_cc_needs_belf=yes
9597else
9598  lt_cv_cc_needs_belf=no
9599fi
9600rm -f core conftest.err conftest.$ac_objext \
9601    conftest$ac_exeext conftest.$ac_ext
9602     ac_ext=c
9603ac_cpp='$CPP $CPPFLAGS'
9604ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606ac_compiler_gnu=$ac_cv_c_compiler_gnu
9607
9608fi
9609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9610$as_echo "$lt_cv_cc_needs_belf" >&6; }
9611  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9612    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9613    CFLAGS="$SAVE_CFLAGS"
9614  fi
9615  ;;
9616sparc*-*solaris*)
9617  # Find out which ABI we are using.
9618  echo 'int i;' > conftest.$ac_ext
9619  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9620  (eval $ac_compile) 2>&5
9621  ac_status=$?
9622  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623  test $ac_status = 0; }; then
9624    case `/usr/bin/file conftest.o` in
9625    *64-bit*)
9626      case $lt_cv_prog_gnu_ld in
9627      yes*) LD="${LD-ld} -m elf64_sparc" ;;
9628      *)
9629	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9630	  LD="${LD-ld} -64"
9631	fi
9632	;;
9633      esac
9634      ;;
9635    esac
9636  fi
9637  rm -rf conftest*
9638  ;;
9639esac
9640
9641need_locks="$enable_libtool_lock"
9642
9643
9644  case $host_os in
9645    rhapsody* | darwin*)
9646    if test -n "$ac_tool_prefix"; then
9647  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9648set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9650$as_echo_n "checking for $ac_word... " >&6; }
9651if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9652  $as_echo_n "(cached) " >&6
9653else
9654  if test -n "$DSYMUTIL"; then
9655  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9656else
9657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9658for as_dir in $PATH
9659do
9660  IFS=$as_save_IFS
9661  test -z "$as_dir" && as_dir=.
9662    for ac_exec_ext in '' $ac_executable_extensions; do
9663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9664    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666    break 2
9667  fi
9668done
9669  done
9670IFS=$as_save_IFS
9671
9672fi
9673fi
9674DSYMUTIL=$ac_cv_prog_DSYMUTIL
9675if test -n "$DSYMUTIL"; then
9676  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9677$as_echo "$DSYMUTIL" >&6; }
9678else
9679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9680$as_echo "no" >&6; }
9681fi
9682
9683
9684fi
9685if test -z "$ac_cv_prog_DSYMUTIL"; then
9686  ac_ct_DSYMUTIL=$DSYMUTIL
9687  # Extract the first word of "dsymutil", so it can be a program name with args.
9688set dummy dsymutil; ac_word=$2
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690$as_echo_n "checking for $ac_word... " >&6; }
9691if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9692  $as_echo_n "(cached) " >&6
9693else
9694  if test -n "$ac_ct_DSYMUTIL"; then
9695  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9696else
9697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9698for as_dir in $PATH
9699do
9700  IFS=$as_save_IFS
9701  test -z "$as_dir" && as_dir=.
9702    for ac_exec_ext in '' $ac_executable_extensions; do
9703  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9704    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9705    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706    break 2
9707  fi
9708done
9709  done
9710IFS=$as_save_IFS
9711
9712fi
9713fi
9714ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9715if test -n "$ac_ct_DSYMUTIL"; then
9716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9717$as_echo "$ac_ct_DSYMUTIL" >&6; }
9718else
9719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9720$as_echo "no" >&6; }
9721fi
9722
9723  if test "x$ac_ct_DSYMUTIL" = x; then
9724    DSYMUTIL=":"
9725  else
9726    case $cross_compiling:$ac_tool_warned in
9727yes:)
9728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9730ac_tool_warned=yes ;;
9731esac
9732    DSYMUTIL=$ac_ct_DSYMUTIL
9733  fi
9734else
9735  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9736fi
9737
9738    if test -n "$ac_tool_prefix"; then
9739  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9740set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9742$as_echo_n "checking for $ac_word... " >&6; }
9743if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9744  $as_echo_n "(cached) " >&6
9745else
9746  if test -n "$NMEDIT"; then
9747  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9748else
9749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9750for as_dir in $PATH
9751do
9752  IFS=$as_save_IFS
9753  test -z "$as_dir" && as_dir=.
9754    for ac_exec_ext in '' $ac_executable_extensions; do
9755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9756    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758    break 2
9759  fi
9760done
9761  done
9762IFS=$as_save_IFS
9763
9764fi
9765fi
9766NMEDIT=$ac_cv_prog_NMEDIT
9767if test -n "$NMEDIT"; then
9768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9769$as_echo "$NMEDIT" >&6; }
9770else
9771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9772$as_echo "no" >&6; }
9773fi
9774
9775
9776fi
9777if test -z "$ac_cv_prog_NMEDIT"; then
9778  ac_ct_NMEDIT=$NMEDIT
9779  # Extract the first word of "nmedit", so it can be a program name with args.
9780set dummy nmedit; ac_word=$2
9781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9782$as_echo_n "checking for $ac_word... " >&6; }
9783if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9784  $as_echo_n "(cached) " >&6
9785else
9786  if test -n "$ac_ct_NMEDIT"; then
9787  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9788else
9789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9790for as_dir in $PATH
9791do
9792  IFS=$as_save_IFS
9793  test -z "$as_dir" && as_dir=.
9794    for ac_exec_ext in '' $ac_executable_extensions; do
9795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9796    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798    break 2
9799  fi
9800done
9801  done
9802IFS=$as_save_IFS
9803
9804fi
9805fi
9806ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9807if test -n "$ac_ct_NMEDIT"; then
9808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9809$as_echo "$ac_ct_NMEDIT" >&6; }
9810else
9811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815  if test "x$ac_ct_NMEDIT" = x; then
9816    NMEDIT=":"
9817  else
9818    case $cross_compiling:$ac_tool_warned in
9819yes:)
9820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9822ac_tool_warned=yes ;;
9823esac
9824    NMEDIT=$ac_ct_NMEDIT
9825  fi
9826else
9827  NMEDIT="$ac_cv_prog_NMEDIT"
9828fi
9829
9830    if test -n "$ac_tool_prefix"; then
9831  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9832set dummy ${ac_tool_prefix}lipo; ac_word=$2
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9834$as_echo_n "checking for $ac_word... " >&6; }
9835if test "${ac_cv_prog_LIPO+set}" = set; then :
9836  $as_echo_n "(cached) " >&6
9837else
9838  if test -n "$LIPO"; then
9839  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9840else
9841as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9842for as_dir in $PATH
9843do
9844  IFS=$as_save_IFS
9845  test -z "$as_dir" && as_dir=.
9846    for ac_exec_ext in '' $ac_executable_extensions; do
9847  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9848    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9849    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850    break 2
9851  fi
9852done
9853  done
9854IFS=$as_save_IFS
9855
9856fi
9857fi
9858LIPO=$ac_cv_prog_LIPO
9859if test -n "$LIPO"; then
9860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9861$as_echo "$LIPO" >&6; }
9862else
9863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9864$as_echo "no" >&6; }
9865fi
9866
9867
9868fi
9869if test -z "$ac_cv_prog_LIPO"; then
9870  ac_ct_LIPO=$LIPO
9871  # Extract the first word of "lipo", so it can be a program name with args.
9872set dummy lipo; ac_word=$2
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9874$as_echo_n "checking for $ac_word... " >&6; }
9875if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9876  $as_echo_n "(cached) " >&6
9877else
9878  if test -n "$ac_ct_LIPO"; then
9879  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9880else
9881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9882for as_dir in $PATH
9883do
9884  IFS=$as_save_IFS
9885  test -z "$as_dir" && as_dir=.
9886    for ac_exec_ext in '' $ac_executable_extensions; do
9887  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9888    ac_cv_prog_ac_ct_LIPO="lipo"
9889    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890    break 2
9891  fi
9892done
9893  done
9894IFS=$as_save_IFS
9895
9896fi
9897fi
9898ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9899if test -n "$ac_ct_LIPO"; then
9900  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9901$as_echo "$ac_ct_LIPO" >&6; }
9902else
9903  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9904$as_echo "no" >&6; }
9905fi
9906
9907  if test "x$ac_ct_LIPO" = x; then
9908    LIPO=":"
9909  else
9910    case $cross_compiling:$ac_tool_warned in
9911yes:)
9912{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9913$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9914ac_tool_warned=yes ;;
9915esac
9916    LIPO=$ac_ct_LIPO
9917  fi
9918else
9919  LIPO="$ac_cv_prog_LIPO"
9920fi
9921
9922    if test -n "$ac_tool_prefix"; then
9923  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9924set dummy ${ac_tool_prefix}otool; ac_word=$2
9925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926$as_echo_n "checking for $ac_word... " >&6; }
9927if test "${ac_cv_prog_OTOOL+set}" = set; then :
9928  $as_echo_n "(cached) " >&6
9929else
9930  if test -n "$OTOOL"; then
9931  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9932else
9933as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9934for as_dir in $PATH
9935do
9936  IFS=$as_save_IFS
9937  test -z "$as_dir" && as_dir=.
9938    for ac_exec_ext in '' $ac_executable_extensions; do
9939  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9941    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942    break 2
9943  fi
9944done
9945  done
9946IFS=$as_save_IFS
9947
9948fi
9949fi
9950OTOOL=$ac_cv_prog_OTOOL
9951if test -n "$OTOOL"; then
9952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9953$as_echo "$OTOOL" >&6; }
9954else
9955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956$as_echo "no" >&6; }
9957fi
9958
9959
9960fi
9961if test -z "$ac_cv_prog_OTOOL"; then
9962  ac_ct_OTOOL=$OTOOL
9963  # Extract the first word of "otool", so it can be a program name with args.
9964set dummy otool; ac_word=$2
9965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966$as_echo_n "checking for $ac_word... " >&6; }
9967if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9968  $as_echo_n "(cached) " >&6
9969else
9970  if test -n "$ac_ct_OTOOL"; then
9971  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9972else
9973as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9974for as_dir in $PATH
9975do
9976  IFS=$as_save_IFS
9977  test -z "$as_dir" && as_dir=.
9978    for ac_exec_ext in '' $ac_executable_extensions; do
9979  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980    ac_cv_prog_ac_ct_OTOOL="otool"
9981    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982    break 2
9983  fi
9984done
9985  done
9986IFS=$as_save_IFS
9987
9988fi
9989fi
9990ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9991if test -n "$ac_ct_OTOOL"; then
9992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9993$as_echo "$ac_ct_OTOOL" >&6; }
9994else
9995  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996$as_echo "no" >&6; }
9997fi
9998
9999  if test "x$ac_ct_OTOOL" = x; then
10000    OTOOL=":"
10001  else
10002    case $cross_compiling:$ac_tool_warned in
10003yes:)
10004{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006ac_tool_warned=yes ;;
10007esac
10008    OTOOL=$ac_ct_OTOOL
10009  fi
10010else
10011  OTOOL="$ac_cv_prog_OTOOL"
10012fi
10013
10014    if test -n "$ac_tool_prefix"; then
10015  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10016set dummy ${ac_tool_prefix}otool64; ac_word=$2
10017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10018$as_echo_n "checking for $ac_word... " >&6; }
10019if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10020  $as_echo_n "(cached) " >&6
10021else
10022  if test -n "$OTOOL64"; then
10023  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10024else
10025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10026for as_dir in $PATH
10027do
10028  IFS=$as_save_IFS
10029  test -z "$as_dir" && as_dir=.
10030    for ac_exec_ext in '' $ac_executable_extensions; do
10031  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10032    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10033    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034    break 2
10035  fi
10036done
10037  done
10038IFS=$as_save_IFS
10039
10040fi
10041fi
10042OTOOL64=$ac_cv_prog_OTOOL64
10043if test -n "$OTOOL64"; then
10044  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10045$as_echo "$OTOOL64" >&6; }
10046else
10047  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10048$as_echo "no" >&6; }
10049fi
10050
10051
10052fi
10053if test -z "$ac_cv_prog_OTOOL64"; then
10054  ac_ct_OTOOL64=$OTOOL64
10055  # Extract the first word of "otool64", so it can be a program name with args.
10056set dummy otool64; ac_word=$2
10057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058$as_echo_n "checking for $ac_word... " >&6; }
10059if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10060  $as_echo_n "(cached) " >&6
10061else
10062  if test -n "$ac_ct_OTOOL64"; then
10063  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10064else
10065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10066for as_dir in $PATH
10067do
10068  IFS=$as_save_IFS
10069  test -z "$as_dir" && as_dir=.
10070    for ac_exec_ext in '' $ac_executable_extensions; do
10071  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10072    ac_cv_prog_ac_ct_OTOOL64="otool64"
10073    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074    break 2
10075  fi
10076done
10077  done
10078IFS=$as_save_IFS
10079
10080fi
10081fi
10082ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10083if test -n "$ac_ct_OTOOL64"; then
10084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10085$as_echo "$ac_ct_OTOOL64" >&6; }
10086else
10087  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088$as_echo "no" >&6; }
10089fi
10090
10091  if test "x$ac_ct_OTOOL64" = x; then
10092    OTOOL64=":"
10093  else
10094    case $cross_compiling:$ac_tool_warned in
10095yes:)
10096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10098ac_tool_warned=yes ;;
10099esac
10100    OTOOL64=$ac_ct_OTOOL64
10101  fi
10102else
10103  OTOOL64="$ac_cv_prog_OTOOL64"
10104fi
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10133$as_echo_n "checking for -single_module linker flag... " >&6; }
10134if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10135  $as_echo_n "(cached) " >&6
10136else
10137  lt_cv_apple_cc_single_mod=no
10138      if test -z "${LT_MULTI_MODULE}"; then
10139	# By default we will add the -single_module flag. You can override
10140	# by either setting the environment variable LT_MULTI_MODULE
10141	# non-empty at configure time, or by adding -multi_module to the
10142	# link flags.
10143	rm -rf libconftest.dylib*
10144	echo "int foo(void){return 1;}" > conftest.c
10145	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10146-dynamiclib -Wl,-single_module conftest.c" >&5
10147	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10148	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10149        _lt_result=$?
10150	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10151	  lt_cv_apple_cc_single_mod=yes
10152	else
10153	  cat conftest.err >&5
10154	fi
10155	rm -rf libconftest.dylib*
10156	rm -f conftest.*
10157      fi
10158fi
10159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10160$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10161    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10162$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10163if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  lt_cv_ld_exported_symbols_list=no
10167      save_LDFLAGS=$LDFLAGS
10168      echo "_main" > conftest.sym
10169      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10170      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10171/* end confdefs.h.  */
10172
10173int
10174main ()
10175{
10176
10177  ;
10178  return 0;
10179}
10180_ACEOF
10181if ac_fn_c_try_link "$LINENO"; then :
10182  lt_cv_ld_exported_symbols_list=yes
10183else
10184  lt_cv_ld_exported_symbols_list=no
10185fi
10186rm -f core conftest.err conftest.$ac_objext \
10187    conftest$ac_exeext conftest.$ac_ext
10188	LDFLAGS="$save_LDFLAGS"
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10192$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10193    case $host_os in
10194    rhapsody* | darwin1.[012])
10195      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10196    darwin1.*)
10197      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10198    darwin*) # darwin 5.x on
10199      # if running on 10.5 or later, the deployment target defaults
10200      # to the OS version, if on x86, and 10.4, the deployment
10201      # target defaults to 10.4. Don't you love it?
10202      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10203	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10204	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10205	10.[012]*)
10206	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10207	10.*)
10208	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10209      esac
10210    ;;
10211  esac
10212    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10213      _lt_dar_single_mod='$single_module'
10214    fi
10215    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10216      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10217    else
10218      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10219    fi
10220    if test "$DSYMUTIL" != ":"; then
10221      _lt_dsymutil='~$DSYMUTIL $lib || :'
10222    else
10223      _lt_dsymutil=
10224    fi
10225    ;;
10226  esac
10227
10228for ac_header in dlfcn.h
10229do :
10230  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10231"
10232if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10233  cat >>confdefs.h <<_ACEOF
10234#define HAVE_DLFCN_H 1
10235_ACEOF
10236
10237fi
10238
10239done
10240
10241
10242
10243# Set options
10244
10245
10246
10247        enable_dlopen=no
10248
10249
10250  enable_win32_dll=no
10251
10252
10253            # Check whether --enable-shared was given.
10254if test "${enable_shared+set}" = set; then :
10255  enableval=$enable_shared; p=${PACKAGE-default}
10256    case $enableval in
10257    yes) enable_shared=yes ;;
10258    no) enable_shared=no ;;
10259    *)
10260      enable_shared=no
10261      # Look at the argument we got.  We use all the common list separators.
10262      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10263      for pkg in $enableval; do
10264	IFS="$lt_save_ifs"
10265	if test "X$pkg" = "X$p"; then
10266	  enable_shared=yes
10267	fi
10268      done
10269      IFS="$lt_save_ifs"
10270      ;;
10271    esac
10272else
10273  enable_shared=yes
10274fi
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284  # Check whether --enable-static was given.
10285if test "${enable_static+set}" = set; then :
10286  enableval=$enable_static; p=${PACKAGE-default}
10287    case $enableval in
10288    yes) enable_static=yes ;;
10289    no) enable_static=no ;;
10290    *)
10291     enable_static=no
10292      # Look at the argument we got.  We use all the common list separators.
10293      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10294      for pkg in $enableval; do
10295	IFS="$lt_save_ifs"
10296	if test "X$pkg" = "X$p"; then
10297	  enable_static=yes
10298	fi
10299      done
10300      IFS="$lt_save_ifs"
10301      ;;
10302    esac
10303else
10304  enable_static=yes
10305fi
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316# Check whether --with-pic was given.
10317if test "${with_pic+set}" = set; then :
10318  withval=$with_pic; pic_mode="$withval"
10319else
10320  pic_mode=default
10321fi
10322
10323
10324test -z "$pic_mode" && pic_mode=default
10325
10326
10327
10328
10329
10330
10331
10332  # Check whether --enable-fast-install was given.
10333if test "${enable_fast_install+set}" = set; then :
10334  enableval=$enable_fast_install; p=${PACKAGE-default}
10335    case $enableval in
10336    yes) enable_fast_install=yes ;;
10337    no) enable_fast_install=no ;;
10338    *)
10339      enable_fast_install=no
10340      # Look at the argument we got.  We use all the common list separators.
10341      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10342      for pkg in $enableval; do
10343	IFS="$lt_save_ifs"
10344	if test "X$pkg" = "X$p"; then
10345	  enable_fast_install=yes
10346	fi
10347      done
10348      IFS="$lt_save_ifs"
10349      ;;
10350    esac
10351else
10352  enable_fast_install=yes
10353fi
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365# This can be used to rebuild libtool when needed
10366LIBTOOL_DEPS="$ltmain"
10367
10368# Always use our own libtool.
10369LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395test -z "$LN_S" && LN_S="ln -s"
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410if test -n "${ZSH_VERSION+set}" ; then
10411   setopt NO_GLOB_SUBST
10412fi
10413
10414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10415$as_echo_n "checking for objdir... " >&6; }
10416if test "${lt_cv_objdir+set}" = set; then :
10417  $as_echo_n "(cached) " >&6
10418else
10419  rm -f .libs 2>/dev/null
10420mkdir .libs 2>/dev/null
10421if test -d .libs; then
10422  lt_cv_objdir=.libs
10423else
10424  # MS-DOS does not allow filenames that begin with a dot.
10425  lt_cv_objdir=_libs
10426fi
10427rmdir .libs 2>/dev/null
10428fi
10429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10430$as_echo "$lt_cv_objdir" >&6; }
10431objdir=$lt_cv_objdir
10432
10433
10434
10435
10436
10437cat >>confdefs.h <<_ACEOF
10438#define LT_OBJDIR "$lt_cv_objdir/"
10439_ACEOF
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457case $host_os in
10458aix3*)
10459  # AIX sometimes has problems with the GCC collect2 program.  For some
10460  # reason, if we set the COLLECT_NAMES environment variable, the problems
10461  # vanish in a puff of smoke.
10462  if test "X${COLLECT_NAMES+set}" != Xset; then
10463    COLLECT_NAMES=
10464    export COLLECT_NAMES
10465  fi
10466  ;;
10467esac
10468
10469# Sed substitution that helps us do robust quoting.  It backslashifies
10470# metacharacters that are still active within double-quoted strings.
10471sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10472
10473# Same as above, but do not quote variable references.
10474double_quote_subst='s/\(["`\\]\)/\\\1/g'
10475
10476# Sed substitution to delay expansion of an escaped shell variable in a
10477# double_quote_subst'ed string.
10478delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10479
10480# Sed substitution to delay expansion of an escaped single quote.
10481delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10482
10483# Sed substitution to avoid accidental globbing in evaled expressions
10484no_glob_subst='s/\*/\\\*/g'
10485
10486# Global variables:
10487ofile=libtool
10488can_build_shared=yes
10489
10490# All known linkers require a `.a' archive for static linking (except MSVC,
10491# which needs '.lib').
10492libext=a
10493
10494with_gnu_ld="$lt_cv_prog_gnu_ld"
10495
10496old_CC="$CC"
10497old_CFLAGS="$CFLAGS"
10498
10499# Set sane defaults for various variables
10500test -z "$CC" && CC=cc
10501test -z "$LTCC" && LTCC=$CC
10502test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10503test -z "$LD" && LD=ld
10504test -z "$ac_objext" && ac_objext=o
10505
10506for cc_temp in $compiler""; do
10507  case $cc_temp in
10508    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10509    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10510    \-*) ;;
10511    *) break;;
10512  esac
10513done
10514cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10515
10516
10517# Only perform the check for file, if the check method requires it
10518test -z "$MAGIC_CMD" && MAGIC_CMD=file
10519case $deplibs_check_method in
10520file_magic*)
10521  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10522    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10523$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10524if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10525  $as_echo_n "(cached) " >&6
10526else
10527  case $MAGIC_CMD in
10528[\\/*] |  ?:[\\/]*)
10529  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10530  ;;
10531*)
10532  lt_save_MAGIC_CMD="$MAGIC_CMD"
10533  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10534  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10535  for ac_dir in $ac_dummy; do
10536    IFS="$lt_save_ifs"
10537    test -z "$ac_dir" && ac_dir=.
10538    if test -f $ac_dir/${ac_tool_prefix}file; then
10539      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10540      if test -n "$file_magic_test_file"; then
10541	case $deplibs_check_method in
10542	"file_magic "*)
10543	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10544	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10545	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10546	    $EGREP "$file_magic_regex" > /dev/null; then
10547	    :
10548	  else
10549	    cat <<_LT_EOF 1>&2
10550
10551*** Warning: the command libtool uses to detect shared libraries,
10552*** $file_magic_cmd, produces output that libtool cannot recognize.
10553*** The result is that libtool may fail to recognize shared libraries
10554*** as such.  This will affect the creation of libtool libraries that
10555*** depend on shared libraries, but programs linked with such libtool
10556*** libraries will work regardless of this problem.  Nevertheless, you
10557*** may want to report the problem to your system manager and/or to
10558*** bug-libtool@gnu.org
10559
10560_LT_EOF
10561	  fi ;;
10562	esac
10563      fi
10564      break
10565    fi
10566  done
10567  IFS="$lt_save_ifs"
10568  MAGIC_CMD="$lt_save_MAGIC_CMD"
10569  ;;
10570esac
10571fi
10572
10573MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10574if test -n "$MAGIC_CMD"; then
10575  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10576$as_echo "$MAGIC_CMD" >&6; }
10577else
10578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10579$as_echo "no" >&6; }
10580fi
10581
10582
10583
10584
10585
10586if test -z "$lt_cv_path_MAGIC_CMD"; then
10587  if test -n "$ac_tool_prefix"; then
10588    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10589$as_echo_n "checking for file... " >&6; }
10590if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10591  $as_echo_n "(cached) " >&6
10592else
10593  case $MAGIC_CMD in
10594[\\/*] |  ?:[\\/]*)
10595  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10596  ;;
10597*)
10598  lt_save_MAGIC_CMD="$MAGIC_CMD"
10599  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10600  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10601  for ac_dir in $ac_dummy; do
10602    IFS="$lt_save_ifs"
10603    test -z "$ac_dir" && ac_dir=.
10604    if test -f $ac_dir/file; then
10605      lt_cv_path_MAGIC_CMD="$ac_dir/file"
10606      if test -n "$file_magic_test_file"; then
10607	case $deplibs_check_method in
10608	"file_magic "*)
10609	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10610	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10611	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10612	    $EGREP "$file_magic_regex" > /dev/null; then
10613	    :
10614	  else
10615	    cat <<_LT_EOF 1>&2
10616
10617*** Warning: the command libtool uses to detect shared libraries,
10618*** $file_magic_cmd, produces output that libtool cannot recognize.
10619*** The result is that libtool may fail to recognize shared libraries
10620*** as such.  This will affect the creation of libtool libraries that
10621*** depend on shared libraries, but programs linked with such libtool
10622*** libraries will work regardless of this problem.  Nevertheless, you
10623*** may want to report the problem to your system manager and/or to
10624*** bug-libtool@gnu.org
10625
10626_LT_EOF
10627	  fi ;;
10628	esac
10629      fi
10630      break
10631    fi
10632  done
10633  IFS="$lt_save_ifs"
10634  MAGIC_CMD="$lt_save_MAGIC_CMD"
10635  ;;
10636esac
10637fi
10638
10639MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10640if test -n "$MAGIC_CMD"; then
10641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10642$as_echo "$MAGIC_CMD" >&6; }
10643else
10644  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10645$as_echo "no" >&6; }
10646fi
10647
10648
10649  else
10650    MAGIC_CMD=:
10651  fi
10652fi
10653
10654  fi
10655  ;;
10656esac
10657
10658# Use C for the default configuration in the libtool script
10659
10660lt_save_CC="$CC"
10661ac_ext=c
10662ac_cpp='$CPP $CPPFLAGS'
10663ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10664ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10665ac_compiler_gnu=$ac_cv_c_compiler_gnu
10666
10667
10668# Source file extension for C test sources.
10669ac_ext=c
10670
10671# Object file extension for compiled C test sources.
10672objext=o
10673objext=$objext
10674
10675# Code to be used in simple compile tests
10676lt_simple_compile_test_code="int some_variable = 0;"
10677
10678# Code to be used in simple link tests
10679lt_simple_link_test_code='int main(){return(0);}'
10680
10681
10682
10683
10684
10685
10686
10687# If no C compiler was specified, use CC.
10688LTCC=${LTCC-"$CC"}
10689
10690# If no C compiler flags were specified, use CFLAGS.
10691LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10692
10693# Allow CC to be a program name with arguments.
10694compiler=$CC
10695
10696# Save the default compiler, since it gets overwritten when the other
10697# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10698compiler_DEFAULT=$CC
10699
10700# save warnings/boilerplate of simple test code
10701ac_outfile=conftest.$ac_objext
10702echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10703eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10704_lt_compiler_boilerplate=`cat conftest.err`
10705$RM conftest*
10706
10707ac_outfile=conftest.$ac_objext
10708echo "$lt_simple_link_test_code" >conftest.$ac_ext
10709eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10710_lt_linker_boilerplate=`cat conftest.err`
10711$RM -r conftest*
10712
10713
10714## CAVEAT EMPTOR:
10715## There is no encapsulation within the following macros, do not change
10716## the running order or otherwise move them around unless you know exactly
10717## what you are doing...
10718if test -n "$compiler"; then
10719
10720lt_prog_compiler_no_builtin_flag=
10721
10722if test "$GCC" = yes; then
10723  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10724
10725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10726$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10727if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10728  $as_echo_n "(cached) " >&6
10729else
10730  lt_cv_prog_compiler_rtti_exceptions=no
10731   ac_outfile=conftest.$ac_objext
10732   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10733   lt_compiler_flag="-fno-rtti -fno-exceptions"
10734   # Insert the option either (1) after the last *FLAGS variable, or
10735   # (2) before a word containing "conftest.", or (3) at the end.
10736   # Note that $ac_compile itself does not contain backslashes and begins
10737   # with a dollar sign (not a hyphen), so the echo should work correctly.
10738   # The option is referenced via a variable to avoid confusing sed.
10739   lt_compile=`echo "$ac_compile" | $SED \
10740   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10741   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10742   -e 's:$: $lt_compiler_flag:'`
10743   (eval echo "\"\$as_me:10743: $lt_compile\"" >&5)
10744   (eval "$lt_compile" 2>conftest.err)
10745   ac_status=$?
10746   cat conftest.err >&5
10747   echo "$as_me:10747: \$? = $ac_status" >&5
10748   if (exit $ac_status) && test -s "$ac_outfile"; then
10749     # The compiler can only warn and ignore the option if not recognized
10750     # So say no if there are warnings other than the usual output.
10751     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10752     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10753     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10754       lt_cv_prog_compiler_rtti_exceptions=yes
10755     fi
10756   fi
10757   $RM conftest*
10758
10759fi
10760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10761$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10762
10763if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10764    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10765else
10766    :
10767fi
10768
10769fi
10770
10771
10772
10773
10774
10775
10776  lt_prog_compiler_wl=
10777lt_prog_compiler_pic=
10778lt_prog_compiler_static=
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10781$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10782
10783  if test "$GCC" = yes; then
10784    lt_prog_compiler_wl='-Wl,'
10785    lt_prog_compiler_static='-static'
10786
10787    case $host_os in
10788      aix*)
10789      # All AIX code is PIC.
10790      if test "$host_cpu" = ia64; then
10791	# AIX 5 now supports IA64 processor
10792	lt_prog_compiler_static='-Bstatic'
10793      fi
10794      ;;
10795
10796    amigaos*)
10797      case $host_cpu in
10798      powerpc)
10799            # see comment about AmigaOS4 .so support
10800            lt_prog_compiler_pic='-fPIC'
10801        ;;
10802      m68k)
10803            # FIXME: we need at least 68020 code to build shared libraries, but
10804            # adding the `-m68020' flag to GCC prevents building anything better,
10805            # like `-m68040'.
10806            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10807        ;;
10808      esac
10809      ;;
10810
10811    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10812      # PIC is the default for these OSes.
10813      ;;
10814
10815    mingw* | cygwin* | pw32* | os2* | cegcc*)
10816      # This hack is so that the source file can tell whether it is being
10817      # built for inclusion in a dll (and should export symbols for example).
10818      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10819      # (--disable-auto-import) libraries
10820      lt_prog_compiler_pic='-DDLL_EXPORT'
10821      ;;
10822
10823    darwin* | rhapsody*)
10824      # PIC is the default on this platform
10825      # Common symbols not allowed in MH_DYLIB files
10826      lt_prog_compiler_pic='-fno-common'
10827      ;;
10828
10829    hpux*)
10830      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10831      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10832      # sets the default TLS model and affects inlining.
10833      case $host_cpu in
10834      hppa*64*)
10835	# +Z the default
10836	;;
10837      *)
10838	lt_prog_compiler_pic='-fPIC'
10839	;;
10840      esac
10841      ;;
10842
10843    interix[3-9]*)
10844      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10845      # Instead, we relocate shared libraries at runtime.
10846      ;;
10847
10848    msdosdjgpp*)
10849      # Just because we use GCC doesn't mean we suddenly get shared libraries
10850      # on systems that don't support them.
10851      lt_prog_compiler_can_build_shared=no
10852      enable_shared=no
10853      ;;
10854
10855    *nto* | *qnx*)
10856      # QNX uses GNU C++, but need to define -shared option too, otherwise
10857      # it will coredump.
10858      lt_prog_compiler_pic='-fPIC -shared'
10859      ;;
10860
10861    sysv4*MP*)
10862      if test -d /usr/nec; then
10863	lt_prog_compiler_pic=-Kconform_pic
10864      fi
10865      ;;
10866
10867    *)
10868      lt_prog_compiler_pic='-fPIC'
10869      ;;
10870    esac
10871  else
10872    # PORTME Check for flag to pass linker flags through the system compiler.
10873    case $host_os in
10874    aix*)
10875      lt_prog_compiler_wl='-Wl,'
10876      if test "$host_cpu" = ia64; then
10877	# AIX 5 now supports IA64 processor
10878	lt_prog_compiler_static='-Bstatic'
10879      else
10880	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10881      fi
10882      ;;
10883
10884    mingw* | cygwin* | pw32* | os2* | cegcc*)
10885      # This hack is so that the source file can tell whether it is being
10886      # built for inclusion in a dll (and should export symbols for example).
10887      lt_prog_compiler_pic='-DDLL_EXPORT'
10888      ;;
10889
10890    hpux9* | hpux10* | hpux11*)
10891      lt_prog_compiler_wl='-Wl,'
10892      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10893      # not for PA HP-UX.
10894      case $host_cpu in
10895      hppa*64*|ia64*)
10896	# +Z the default
10897	;;
10898      *)
10899	lt_prog_compiler_pic='+Z'
10900	;;
10901      esac
10902      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10903      lt_prog_compiler_static='${wl}-a ${wl}archive'
10904      ;;
10905
10906    irix5* | irix6* | nonstopux*)
10907      lt_prog_compiler_wl='-Wl,'
10908      # PIC (with -KPIC) is the default.
10909      lt_prog_compiler_static='-non_shared'
10910      ;;
10911
10912    linux* | k*bsd*-gnu)
10913      case $cc_basename in
10914      # old Intel for x86_64 which still supported -KPIC.
10915      ecc*)
10916	lt_prog_compiler_wl='-Wl,'
10917	lt_prog_compiler_pic='-KPIC'
10918	lt_prog_compiler_static='-static'
10919        ;;
10920      # icc used to be incompatible with GCC.
10921      # ICC 10 doesn't accept -KPIC any more.
10922      icc* | ifort*)
10923	lt_prog_compiler_wl='-Wl,'
10924	lt_prog_compiler_pic='-fPIC'
10925	lt_prog_compiler_static='-static'
10926        ;;
10927      # Lahey Fortran 8.1.
10928      lf95*)
10929	lt_prog_compiler_wl='-Wl,'
10930	lt_prog_compiler_pic='--shared'
10931	lt_prog_compiler_static='--static'
10932	;;
10933      pgcc* | pgf77* | pgf90* | pgf95*)
10934        # Portland Group compilers (*not* the Pentium gcc compiler,
10935	# which looks to be a dead project)
10936	lt_prog_compiler_wl='-Wl,'
10937	lt_prog_compiler_pic='-fpic'
10938	lt_prog_compiler_static='-Bstatic'
10939        ;;
10940      ccc*)
10941        lt_prog_compiler_wl='-Wl,'
10942        # All Alpha code is PIC.
10943        lt_prog_compiler_static='-non_shared'
10944        ;;
10945      xl*)
10946	# IBM XL C 8.0/Fortran 10.1 on PPC
10947	lt_prog_compiler_wl='-Wl,'
10948	lt_prog_compiler_pic='-qpic'
10949	lt_prog_compiler_static='-qstaticlink'
10950	;;
10951      *)
10952	case `$CC -V 2>&1 | sed 5q` in
10953	*Sun\ C*)
10954	  # Sun C 5.9
10955	  lt_prog_compiler_pic='-KPIC'
10956	  lt_prog_compiler_static='-Bstatic'
10957	  lt_prog_compiler_wl='-Wl,'
10958	  ;;
10959	*Sun\ F*)
10960	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10961	  lt_prog_compiler_pic='-KPIC'
10962	  lt_prog_compiler_static='-Bstatic'
10963	  lt_prog_compiler_wl=''
10964	  ;;
10965	esac
10966	;;
10967      esac
10968      ;;
10969
10970    newsos6)
10971      lt_prog_compiler_pic='-KPIC'
10972      lt_prog_compiler_static='-Bstatic'
10973      ;;
10974
10975    *nto* | *qnx*)
10976      # QNX uses GNU C++, but need to define -shared option too, otherwise
10977      # it will coredump.
10978      lt_prog_compiler_pic='-fPIC -shared'
10979      ;;
10980
10981    osf3* | osf4* | osf5*)
10982      lt_prog_compiler_wl='-Wl,'
10983      # All OSF/1 code is PIC.
10984      lt_prog_compiler_static='-non_shared'
10985      ;;
10986
10987    rdos*)
10988      lt_prog_compiler_static='-non_shared'
10989      ;;
10990
10991    solaris*)
10992      lt_prog_compiler_pic='-KPIC'
10993      lt_prog_compiler_static='-Bstatic'
10994      case $cc_basename in
10995      f77* | f90* | f95*)
10996	lt_prog_compiler_wl='-Qoption ld ';;
10997      *)
10998	lt_prog_compiler_wl='-Wl,';;
10999      esac
11000      ;;
11001
11002    sunos4*)
11003      lt_prog_compiler_wl='-Qoption ld '
11004      lt_prog_compiler_pic='-PIC'
11005      lt_prog_compiler_static='-Bstatic'
11006      ;;
11007
11008    sysv4 | sysv4.2uw2* | sysv4.3*)
11009      lt_prog_compiler_wl='-Wl,'
11010      lt_prog_compiler_pic='-KPIC'
11011      lt_prog_compiler_static='-Bstatic'
11012      ;;
11013
11014    sysv4*MP*)
11015      if test -d /usr/nec ;then
11016	lt_prog_compiler_pic='-Kconform_pic'
11017	lt_prog_compiler_static='-Bstatic'
11018      fi
11019      ;;
11020
11021    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11022      lt_prog_compiler_wl='-Wl,'
11023      lt_prog_compiler_pic='-KPIC'
11024      lt_prog_compiler_static='-Bstatic'
11025      ;;
11026
11027    unicos*)
11028      lt_prog_compiler_wl='-Wl,'
11029      lt_prog_compiler_can_build_shared=no
11030      ;;
11031
11032    uts4*)
11033      lt_prog_compiler_pic='-pic'
11034      lt_prog_compiler_static='-Bstatic'
11035      ;;
11036
11037    *)
11038      lt_prog_compiler_can_build_shared=no
11039      ;;
11040    esac
11041  fi
11042
11043case $host_os in
11044  # For platforms which do not support PIC, -DPIC is meaningless:
11045  *djgpp*)
11046    lt_prog_compiler_pic=
11047    ;;
11048  *)
11049    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11050    ;;
11051esac
11052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11053$as_echo "$lt_prog_compiler_pic" >&6; }
11054
11055
11056
11057
11058
11059
11060#
11061# Check to make sure the PIC flag actually works.
11062#
11063if test -n "$lt_prog_compiler_pic"; then
11064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11065$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11066if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11067  $as_echo_n "(cached) " >&6
11068else
11069  lt_cv_prog_compiler_pic_works=no
11070   ac_outfile=conftest.$ac_objext
11071   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11072   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11073   # Insert the option either (1) after the last *FLAGS variable, or
11074   # (2) before a word containing "conftest.", or (3) at the end.
11075   # Note that $ac_compile itself does not contain backslashes and begins
11076   # with a dollar sign (not a hyphen), so the echo should work correctly.
11077   # The option is referenced via a variable to avoid confusing sed.
11078   lt_compile=`echo "$ac_compile" | $SED \
11079   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11080   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11081   -e 's:$: $lt_compiler_flag:'`
11082   (eval echo "\"\$as_me:11082: $lt_compile\"" >&5)
11083   (eval "$lt_compile" 2>conftest.err)
11084   ac_status=$?
11085   cat conftest.err >&5
11086   echo "$as_me:11086: \$? = $ac_status" >&5
11087   if (exit $ac_status) && test -s "$ac_outfile"; then
11088     # The compiler can only warn and ignore the option if not recognized
11089     # So say no if there are warnings other than the usual output.
11090     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11091     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11092     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11093       lt_cv_prog_compiler_pic_works=yes
11094     fi
11095   fi
11096   $RM conftest*
11097
11098fi
11099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11100$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11101
11102if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11103    case $lt_prog_compiler_pic in
11104     "" | " "*) ;;
11105     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11106     esac
11107else
11108    lt_prog_compiler_pic=
11109     lt_prog_compiler_can_build_shared=no
11110fi
11111
11112fi
11113
11114
11115
11116
11117
11118
11119#
11120# Check to make sure the static flag actually works.
11121#
11122wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11124$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11125if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11126  $as_echo_n "(cached) " >&6
11127else
11128  lt_cv_prog_compiler_static_works=no
11129   save_LDFLAGS="$LDFLAGS"
11130   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11131   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11132   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11133     # The linker can only warn and ignore the option if not recognized
11134     # So say no if there are warnings
11135     if test -s conftest.err; then
11136       # Append any errors to the config.log.
11137       cat conftest.err 1>&5
11138       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11139       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11140       if diff conftest.exp conftest.er2 >/dev/null; then
11141         lt_cv_prog_compiler_static_works=yes
11142       fi
11143     else
11144       lt_cv_prog_compiler_static_works=yes
11145     fi
11146   fi
11147   $RM -r conftest*
11148   LDFLAGS="$save_LDFLAGS"
11149
11150fi
11151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11152$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11153
11154if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11155    :
11156else
11157    lt_prog_compiler_static=
11158fi
11159
11160
11161
11162
11163
11164
11165
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11167$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11168if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11169  $as_echo_n "(cached) " >&6
11170else
11171  lt_cv_prog_compiler_c_o=no
11172   $RM -r conftest 2>/dev/null
11173   mkdir conftest
11174   cd conftest
11175   mkdir out
11176   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11177
11178   lt_compiler_flag="-o out/conftest2.$ac_objext"
11179   # Insert the option either (1) after the last *FLAGS variable, or
11180   # (2) before a word containing "conftest.", or (3) at the end.
11181   # Note that $ac_compile itself does not contain backslashes and begins
11182   # with a dollar sign (not a hyphen), so the echo should work correctly.
11183   lt_compile=`echo "$ac_compile" | $SED \
11184   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11185   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11186   -e 's:$: $lt_compiler_flag:'`
11187   (eval echo "\"\$as_me:11187: $lt_compile\"" >&5)
11188   (eval "$lt_compile" 2>out/conftest.err)
11189   ac_status=$?
11190   cat out/conftest.err >&5
11191   echo "$as_me:11191: \$? = $ac_status" >&5
11192   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11193   then
11194     # The compiler can only warn and ignore the option if not recognized
11195     # So say no if there are warnings
11196     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11197     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11198     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11199       lt_cv_prog_compiler_c_o=yes
11200     fi
11201   fi
11202   chmod u+w . 2>&5
11203   $RM conftest*
11204   # SGI C++ compiler will create directory out/ii_files/ for
11205   # template instantiation
11206   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11207   $RM out/* && rmdir out
11208   cd ..
11209   $RM -r conftest
11210   $RM conftest*
11211
11212fi
11213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11214$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11215
11216
11217
11218
11219
11220
11221  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11222$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11223if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11224  $as_echo_n "(cached) " >&6
11225else
11226  lt_cv_prog_compiler_c_o=no
11227   $RM -r conftest 2>/dev/null
11228   mkdir conftest
11229   cd conftest
11230   mkdir out
11231   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11232
11233   lt_compiler_flag="-o out/conftest2.$ac_objext"
11234   # Insert the option either (1) after the last *FLAGS variable, or
11235   # (2) before a word containing "conftest.", or (3) at the end.
11236   # Note that $ac_compile itself does not contain backslashes and begins
11237   # with a dollar sign (not a hyphen), so the echo should work correctly.
11238   lt_compile=`echo "$ac_compile" | $SED \
11239   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11240   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11241   -e 's:$: $lt_compiler_flag:'`
11242   (eval echo "\"\$as_me:11242: $lt_compile\"" >&5)
11243   (eval "$lt_compile" 2>out/conftest.err)
11244   ac_status=$?
11245   cat out/conftest.err >&5
11246   echo "$as_me:11246: \$? = $ac_status" >&5
11247   if (exit $ac_status) && test -s out/conftest2.$ac_objext
11248   then
11249     # The compiler can only warn and ignore the option if not recognized
11250     # So say no if there are warnings
11251     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11252     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11253     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11254       lt_cv_prog_compiler_c_o=yes
11255     fi
11256   fi
11257   chmod u+w . 2>&5
11258   $RM conftest*
11259   # SGI C++ compiler will create directory out/ii_files/ for
11260   # template instantiation
11261   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11262   $RM out/* && rmdir out
11263   cd ..
11264   $RM -r conftest
11265   $RM conftest*
11266
11267fi
11268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11269$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11270
11271
11272
11273
11274hard_links="nottested"
11275if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11276  # do not overwrite the value of need_locks provided by the user
11277  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11278$as_echo_n "checking if we can lock with hard links... " >&6; }
11279  hard_links=yes
11280  $RM conftest*
11281  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11282  touch conftest.a
11283  ln conftest.a conftest.b 2>&5 || hard_links=no
11284  ln conftest.a conftest.b 2>/dev/null && hard_links=no
11285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11286$as_echo "$hard_links" >&6; }
11287  if test "$hard_links" = no; then
11288    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11289$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11290    need_locks=warn
11291  fi
11292else
11293  need_locks=no
11294fi
11295
11296
11297
11298
11299
11300
11301  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11302$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11303
11304  runpath_var=
11305  allow_undefined_flag=
11306  always_export_symbols=no
11307  archive_cmds=
11308  archive_expsym_cmds=
11309  compiler_needs_object=no
11310  enable_shared_with_static_runtimes=no
11311  export_dynamic_flag_spec=
11312  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11313  hardcode_automatic=no
11314  hardcode_direct=no
11315  hardcode_direct_absolute=no
11316  hardcode_libdir_flag_spec=
11317  hardcode_libdir_flag_spec_ld=
11318  hardcode_libdir_separator=
11319  hardcode_minus_L=no
11320  hardcode_shlibpath_var=unsupported
11321  inherit_rpath=no
11322  link_all_deplibs=unknown
11323  module_cmds=
11324  module_expsym_cmds=
11325  old_archive_from_new_cmds=
11326  old_archive_from_expsyms_cmds=
11327  thread_safe_flag_spec=
11328  whole_archive_flag_spec=
11329  # include_expsyms should be a list of space-separated symbols to be *always*
11330  # included in the symbol list
11331  include_expsyms=
11332  # exclude_expsyms can be an extended regexp of symbols to exclude
11333  # it will be wrapped by ` (' and `)$', so one must not match beginning or
11334  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11335  # as well as any symbol that contains `d'.
11336  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11337  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11338  # platforms (ab)use it in PIC code, but their linkers get confused if
11339  # the symbol is explicitly referenced.  Since portable code cannot
11340  # rely on this symbol name, it's probably fine to never include it in
11341  # preloaded symbol tables.
11342  # Exclude shared library initialization/finalization symbols.
11343  extract_expsyms_cmds=
11344
11345  case $host_os in
11346  cygwin* | mingw* | pw32* | cegcc*)
11347    # FIXME: the MSVC++ port hasn't been tested in a loooong time
11348    # When not using gcc, we currently assume that we are using
11349    # Microsoft Visual C++.
11350    if test "$GCC" != yes; then
11351      with_gnu_ld=no
11352    fi
11353    ;;
11354  interix*)
11355    # we just hope/assume this is gcc and not c89 (= MSVC++)
11356    with_gnu_ld=yes
11357    ;;
11358  openbsd*)
11359    with_gnu_ld=no
11360    ;;
11361  linux* | k*bsd*-gnu)
11362    link_all_deplibs=no
11363    ;;
11364  esac
11365
11366  ld_shlibs=yes
11367  if test "$with_gnu_ld" = yes; then
11368    # If archive_cmds runs LD, not CC, wlarc should be empty
11369    wlarc='${wl}'
11370
11371    # Set some defaults for GNU ld with shared library support. These
11372    # are reset later if shared libraries are not supported. Putting them
11373    # here allows them to be overridden if necessary.
11374    runpath_var=LD_RUN_PATH
11375    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11376    export_dynamic_flag_spec='${wl}--export-dynamic'
11377    # ancient GNU ld didn't support --whole-archive et. al.
11378    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11379      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11380    else
11381      whole_archive_flag_spec=
11382    fi
11383    supports_anon_versioning=no
11384    case `$LD -v 2>&1` in
11385      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11386      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11387      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11388      *\ 2.11.*) ;; # other 2.11 versions
11389      *) supports_anon_versioning=yes ;;
11390    esac
11391
11392    # See if GNU ld supports shared libraries.
11393    case $host_os in
11394    aix[3-9]*)
11395      # On AIX/PPC, the GNU linker is very broken
11396      if test "$host_cpu" != ia64; then
11397	ld_shlibs=no
11398	cat <<_LT_EOF 1>&2
11399
11400*** Warning: the GNU linker, at least up to release 2.9.1, is reported
11401*** to be unable to reliably create shared libraries on AIX.
11402*** Therefore, libtool is disabling shared libraries support.  If you
11403*** really care for shared libraries, you may want to modify your PATH
11404*** so that a non-GNU linker is found, and then restart.
11405
11406_LT_EOF
11407      fi
11408      ;;
11409
11410    amigaos*)
11411      case $host_cpu in
11412      powerpc)
11413            # see comment about AmigaOS4 .so support
11414            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415            archive_expsym_cmds=''
11416        ;;
11417      m68k)
11418            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)'
11419            hardcode_libdir_flag_spec='-L$libdir'
11420            hardcode_minus_L=yes
11421        ;;
11422      esac
11423      ;;
11424
11425    beos*)
11426      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11427	allow_undefined_flag=unsupported
11428	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11429	# support --undefined.  This deserves some investigation.  FIXME
11430	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11431      else
11432	ld_shlibs=no
11433      fi
11434      ;;
11435
11436    cygwin* | mingw* | pw32* | cegcc*)
11437      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11438      # as there is no search path for DLLs.
11439      hardcode_libdir_flag_spec='-L$libdir'
11440      allow_undefined_flag=unsupported
11441      always_export_symbols=no
11442      enable_shared_with_static_runtimes=yes
11443      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11444
11445      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11446        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11447	# If the export-symbols file already is a .def file (1st line
11448	# is EXPORTS), use it as is; otherwise, prepend...
11449	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11450	  cp $export_symbols $output_objdir/$soname.def;
11451	else
11452	  echo EXPORTS > $output_objdir/$soname.def;
11453	  cat $export_symbols >> $output_objdir/$soname.def;
11454	fi~
11455	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11456      else
11457	ld_shlibs=no
11458      fi
11459      ;;
11460
11461    interix[3-9]*)
11462      hardcode_direct=no
11463      hardcode_shlibpath_var=no
11464      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11465      export_dynamic_flag_spec='${wl}-E'
11466      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11467      # Instead, shared libraries are loaded at an image base (0x10000000 by
11468      # default) and relocated if they conflict, which is a slow very memory
11469      # consuming and fragmenting process.  To avoid this, we pick a random,
11470      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11471      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11472      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11473      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'
11474      ;;
11475
11476    gnu* | linux* | tpf* | k*bsd*-gnu)
11477      tmp_diet=no
11478      if test "$host_os" = linux-dietlibc; then
11479	case $cc_basename in
11480	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11481	esac
11482      fi
11483      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11484	 && test "$tmp_diet" = no
11485      then
11486	tmp_addflag=
11487	tmp_sharedflag='-shared'
11488	case $cc_basename,$host_cpu in
11489        pgcc*)				# Portland Group C compiler
11490	  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'
11491	  tmp_addflag=' $pic_flag'
11492	  ;;
11493	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
11494	  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'
11495	  tmp_addflag=' $pic_flag -Mnomain' ;;
11496	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11497	  tmp_addflag=' -i_dynamic' ;;
11498	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11499	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11500	ifc* | ifort*)			# Intel Fortran compiler
11501	  tmp_addflag=' -nofor_main' ;;
11502	lf95*)				# Lahey Fortran 8.1
11503	  whole_archive_flag_spec=
11504	  tmp_sharedflag='--shared' ;;
11505	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
11506	  tmp_sharedflag='-qmkshrobj'
11507	  tmp_addflag= ;;
11508	esac
11509	case `$CC -V 2>&1 | sed 5q` in
11510	*Sun\ C*)			# Sun C 5.9
11511	  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'
11512	  compiler_needs_object=yes
11513	  tmp_sharedflag='-G' ;;
11514	*Sun\ F*)			# Sun Fortran 8.3
11515	  tmp_sharedflag='-G' ;;
11516	esac
11517	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11518
11519        if test "x$supports_anon_versioning" = xyes; then
11520          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11521	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11522	    echo "local: *; };" >> $output_objdir/$libname.ver~
11523	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11524        fi
11525
11526	case $cc_basename in
11527	xlf*)
11528	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11529	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11530	  hardcode_libdir_flag_spec=
11531	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
11532	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11533	  if test "x$supports_anon_versioning" = xyes; then
11534	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11535	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11536	      echo "local: *; };" >> $output_objdir/$libname.ver~
11537	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11538	  fi
11539	  ;;
11540	esac
11541      else
11542        ld_shlibs=no
11543      fi
11544      ;;
11545
11546    netbsd* | netbsdelf*-gnu)
11547      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11548	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11549	wlarc=
11550      else
11551	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11552	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11553      fi
11554      ;;
11555
11556    solaris*)
11557      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11558	ld_shlibs=no
11559	cat <<_LT_EOF 1>&2
11560
11561*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11562*** create shared libraries on Solaris systems.  Therefore, libtool
11563*** is disabling shared libraries support.  We urge you to upgrade GNU
11564*** binutils to release 2.9.1 or newer.  Another option is to modify
11565*** your PATH or compiler configuration so that the native linker is
11566*** used, and then restart.
11567
11568_LT_EOF
11569      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11570	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11571	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11572      else
11573	ld_shlibs=no
11574      fi
11575      ;;
11576
11577    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11578      case `$LD -v 2>&1` in
11579        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11580	ld_shlibs=no
11581	cat <<_LT_EOF 1>&2
11582
11583*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11584*** reliably create shared libraries on SCO systems.  Therefore, libtool
11585*** is disabling shared libraries support.  We urge you to upgrade GNU
11586*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11587*** your PATH or compiler configuration so that the native linker is
11588*** used, and then restart.
11589
11590_LT_EOF
11591	;;
11592	*)
11593	  # For security reasons, it is highly recommended that you always
11594	  # use absolute paths for naming shared libraries, and exclude the
11595	  # DT_RUNPATH tag from executables and libraries.  But doing so
11596	  # requires that you compile everything twice, which is a pain.
11597	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11598	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11599	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11600	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11601	  else
11602	    ld_shlibs=no
11603	  fi
11604	;;
11605      esac
11606      ;;
11607
11608    sunos4*)
11609      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11610      wlarc=
11611      hardcode_direct=yes
11612      hardcode_shlibpath_var=no
11613      ;;
11614
11615    *)
11616      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11617	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11618	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11619      else
11620	ld_shlibs=no
11621      fi
11622      ;;
11623    esac
11624
11625    if test "$ld_shlibs" = no; then
11626      runpath_var=
11627      hardcode_libdir_flag_spec=
11628      export_dynamic_flag_spec=
11629      whole_archive_flag_spec=
11630    fi
11631  else
11632    # PORTME fill in a description of your system's linker (not GNU ld)
11633    case $host_os in
11634    aix3*)
11635      allow_undefined_flag=unsupported
11636      always_export_symbols=yes
11637      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'
11638      # Note: this linker hardcodes the directories in LIBPATH if there
11639      # are no directories specified by -L.
11640      hardcode_minus_L=yes
11641      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11642	# Neither direct hardcoding nor static linking is supported with a
11643	# broken collect2.
11644	hardcode_direct=unsupported
11645      fi
11646      ;;
11647
11648    aix[4-9]*)
11649      if test "$host_cpu" = ia64; then
11650	# On IA64, the linker does run time linking by default, so we don't
11651	# have to do anything special.
11652	aix_use_runtimelinking=no
11653	exp_sym_flag='-Bexport'
11654	no_entry_flag=""
11655      else
11656	# If we're using GNU nm, then we don't want the "-C" option.
11657	# -C means demangle to AIX nm, but means don't demangle with GNU nm
11658	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11659	  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'
11660	else
11661	  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'
11662	fi
11663	aix_use_runtimelinking=no
11664
11665	# Test if we are trying to use run time linking or normal
11666	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11667	# need to do runtime linking.
11668	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11669	  for ld_flag in $LDFLAGS; do
11670	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11671	    aix_use_runtimelinking=yes
11672	    break
11673	  fi
11674	  done
11675	  ;;
11676	esac
11677
11678	exp_sym_flag='-bexport'
11679	no_entry_flag='-bnoentry'
11680      fi
11681
11682      # When large executables or shared objects are built, AIX ld can
11683      # have problems creating the table of contents.  If linking a library
11684      # or program results in "error TOC overflow" add -mminimal-toc to
11685      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11686      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11687
11688      archive_cmds=''
11689      hardcode_direct=yes
11690      hardcode_direct_absolute=yes
11691      hardcode_libdir_separator=':'
11692      link_all_deplibs=yes
11693      file_list_spec='${wl}-f,'
11694
11695      if test "$GCC" = yes; then
11696	case $host_os in aix4.[012]|aix4.[012].*)
11697	# We only want to do this on AIX 4.2 and lower, the check
11698	# below for broken collect2 doesn't work under 4.3+
11699	  collect2name=`${CC} -print-prog-name=collect2`
11700	  if test -f "$collect2name" &&
11701	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11702	  then
11703	  # We have reworked collect2
11704	  :
11705	  else
11706	  # We have old collect2
11707	  hardcode_direct=unsupported
11708	  # It fails to find uninstalled libraries when the uninstalled
11709	  # path is not listed in the libpath.  Setting hardcode_minus_L
11710	  # to unsupported forces relinking
11711	  hardcode_minus_L=yes
11712	  hardcode_libdir_flag_spec='-L$libdir'
11713	  hardcode_libdir_separator=
11714	  fi
11715	  ;;
11716	esac
11717	shared_flag='-shared'
11718	if test "$aix_use_runtimelinking" = yes; then
11719	  shared_flag="$shared_flag "'${wl}-G'
11720	fi
11721	link_all_deplibs=no
11722      else
11723	# not using gcc
11724	if test "$host_cpu" = ia64; then
11725	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11726	# chokes on -Wl,-G. The following line is correct:
11727	  shared_flag='-G'
11728	else
11729	  if test "$aix_use_runtimelinking" = yes; then
11730	    shared_flag='${wl}-G'
11731	  else
11732	    shared_flag='${wl}-bM:SRE'
11733	  fi
11734	fi
11735      fi
11736
11737      export_dynamic_flag_spec='${wl}-bexpall'
11738      # It seems that -bexpall does not export symbols beginning with
11739      # underscore (_), so it is better to generate a list of symbols to export.
11740      always_export_symbols=yes
11741      if test "$aix_use_runtimelinking" = yes; then
11742	# Warning - without using the other runtime loading flags (-brtl),
11743	# -berok will link without error, but may produce a broken library.
11744	allow_undefined_flag='-berok'
11745        # Determine the default libpath from the value encoded in an
11746        # empty executable.
11747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11748/* end confdefs.h.  */
11749
11750int
11751main ()
11752{
11753
11754  ;
11755  return 0;
11756}
11757_ACEOF
11758if ac_fn_c_try_link "$LINENO"; then :
11759
11760lt_aix_libpath_sed='
11761    /Import File Strings/,/^$/ {
11762	/^0/ {
11763	    s/^0  *\(.*\)$/\1/
11764	    p
11765	}
11766    }'
11767aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11768# Check for a 64-bit object if we didn't find anything.
11769if test -z "$aix_libpath"; then
11770  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11771fi
11772fi
11773rm -f core conftest.err conftest.$ac_objext \
11774    conftest$ac_exeext conftest.$ac_ext
11775if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11776
11777        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11778        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11779      else
11780	if test "$host_cpu" = ia64; then
11781	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11782	  allow_undefined_flag="-z nodefs"
11783	  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"
11784	else
11785	 # Determine the default libpath from the value encoded in an
11786	 # empty executable.
11787	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11788/* end confdefs.h.  */
11789
11790int
11791main ()
11792{
11793
11794  ;
11795  return 0;
11796}
11797_ACEOF
11798if ac_fn_c_try_link "$LINENO"; then :
11799
11800lt_aix_libpath_sed='
11801    /Import File Strings/,/^$/ {
11802	/^0/ {
11803	    s/^0  *\(.*\)$/\1/
11804	    p
11805	}
11806    }'
11807aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11808# Check for a 64-bit object if we didn't find anything.
11809if test -z "$aix_libpath"; then
11810  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11811fi
11812fi
11813rm -f core conftest.err conftest.$ac_objext \
11814    conftest$ac_exeext conftest.$ac_ext
11815if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11816
11817	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11818	  # Warning - without using the other run time loading flags,
11819	  # -berok will link without error, but may produce a broken library.
11820	  no_undefined_flag=' ${wl}-bernotok'
11821	  allow_undefined_flag=' ${wl}-berok'
11822	  # Exported symbols can be pulled into shared objects from archives
11823	  whole_archive_flag_spec='$convenience'
11824	  archive_cmds_need_lc=yes
11825	  # This is similar to how AIX traditionally builds its shared libraries.
11826	  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'
11827	fi
11828      fi
11829      ;;
11830
11831    amigaos*)
11832      case $host_cpu in
11833      powerpc)
11834            # see comment about AmigaOS4 .so support
11835            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11836            archive_expsym_cmds=''
11837        ;;
11838      m68k)
11839            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)'
11840            hardcode_libdir_flag_spec='-L$libdir'
11841            hardcode_minus_L=yes
11842        ;;
11843      esac
11844      ;;
11845
11846    bsdi[45]*)
11847      export_dynamic_flag_spec=-rdynamic
11848      ;;
11849
11850    cygwin* | mingw* | pw32* | cegcc*)
11851      # When not using gcc, we currently assume that we are using
11852      # Microsoft Visual C++.
11853      # hardcode_libdir_flag_spec is actually meaningless, as there is
11854      # no search path for DLLs.
11855      hardcode_libdir_flag_spec=' '
11856      allow_undefined_flag=unsupported
11857      # Tell ltmain to make .lib files, not .a files.
11858      libext=lib
11859      # Tell ltmain to make .dll files, not .so files.
11860      shrext_cmds=".dll"
11861      # FIXME: Setting linknames here is a bad hack.
11862      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11863      # The linker will automatically build a .lib file if we build a DLL.
11864      old_archive_from_new_cmds='true'
11865      # FIXME: Should let the user specify the lib program.
11866      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11867      fix_srcfile_path='`cygpath -w "$srcfile"`'
11868      enable_shared_with_static_runtimes=yes
11869      ;;
11870
11871    darwin* | rhapsody*)
11872
11873
11874  archive_cmds_need_lc=no
11875  hardcode_direct=no
11876  hardcode_automatic=yes
11877  hardcode_shlibpath_var=unsupported
11878  whole_archive_flag_spec=''
11879  link_all_deplibs=yes
11880  allow_undefined_flag="$_lt_dar_allow_undefined"
11881  case $cc_basename in
11882     ifort*) _lt_dar_can_shared=yes ;;
11883     *) _lt_dar_can_shared=$GCC ;;
11884  esac
11885  if test "$_lt_dar_can_shared" = "yes"; then
11886    output_verbose_link_cmd=echo
11887    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11888    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11889    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}"
11890    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}"
11891
11892  else
11893  ld_shlibs=no
11894  fi
11895
11896      ;;
11897
11898    dgux*)
11899      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900      hardcode_libdir_flag_spec='-L$libdir'
11901      hardcode_shlibpath_var=no
11902      ;;
11903
11904    freebsd1*)
11905      ld_shlibs=no
11906      ;;
11907
11908    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11909    # support.  Future versions do this automatically, but an explicit c++rt0.o
11910    # does not break anything, and helps significantly (at the cost of a little
11911    # extra space).
11912    freebsd2.2*)
11913      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11914      hardcode_libdir_flag_spec='-R$libdir'
11915      hardcode_direct=yes
11916      hardcode_shlibpath_var=no
11917      ;;
11918
11919    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11920    freebsd2*)
11921      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11922      hardcode_direct=yes
11923      hardcode_minus_L=yes
11924      hardcode_shlibpath_var=no
11925      ;;
11926
11927    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11928    freebsd* | dragonfly*)
11929      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11930      hardcode_libdir_flag_spec='-R$libdir'
11931      hardcode_direct=yes
11932      hardcode_shlibpath_var=no
11933      ;;
11934
11935    hpux9*)
11936      if test "$GCC" = yes; then
11937	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'
11938      else
11939	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'
11940      fi
11941      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11942      hardcode_libdir_separator=:
11943      hardcode_direct=yes
11944
11945      # hardcode_minus_L: Not really in the search PATH,
11946      # but as the default location of the library.
11947      hardcode_minus_L=yes
11948      export_dynamic_flag_spec='${wl}-E'
11949      ;;
11950
11951    hpux10*)
11952      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11953	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11954      else
11955	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11956      fi
11957      if test "$with_gnu_ld" = no; then
11958	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11959	hardcode_libdir_flag_spec_ld='+b $libdir'
11960	hardcode_libdir_separator=:
11961	hardcode_direct=yes
11962	hardcode_direct_absolute=yes
11963	export_dynamic_flag_spec='${wl}-E'
11964	# hardcode_minus_L: Not really in the search PATH,
11965	# but as the default location of the library.
11966	hardcode_minus_L=yes
11967      fi
11968      ;;
11969
11970    hpux11*)
11971      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11972	case $host_cpu in
11973	hppa*64*)
11974	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11975	  ;;
11976	ia64*)
11977	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11978	  ;;
11979	*)
11980	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11981	  ;;
11982	esac
11983      else
11984	case $host_cpu in
11985	hppa*64*)
11986	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11987	  ;;
11988	ia64*)
11989	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11990	  ;;
11991	*)
11992	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11993	  ;;
11994	esac
11995      fi
11996      if test "$with_gnu_ld" = no; then
11997	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11998	hardcode_libdir_separator=:
11999
12000	case $host_cpu in
12001	hppa*64*|ia64*)
12002	  hardcode_direct=no
12003	  hardcode_shlibpath_var=no
12004	  ;;
12005	*)
12006	  hardcode_direct=yes
12007	  hardcode_direct_absolute=yes
12008	  export_dynamic_flag_spec='${wl}-E'
12009
12010	  # hardcode_minus_L: Not really in the search PATH,
12011	  # but as the default location of the library.
12012	  hardcode_minus_L=yes
12013	  ;;
12014	esac
12015      fi
12016      ;;
12017
12018    irix5* | irix6* | nonstopux*)
12019      if test "$GCC" = yes; then
12020	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12021	# Try to use the -exported_symbol ld option, if it does not
12022	# work, assume that -exports_file does not work either and
12023	# implicitly export all symbols.
12024        save_LDFLAGS="$LDFLAGS"
12025        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12026        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12027/* end confdefs.h.  */
12028int foo(void) {}
12029_ACEOF
12030if ac_fn_c_try_link "$LINENO"; then :
12031  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12032
12033fi
12034rm -f core conftest.err conftest.$ac_objext \
12035    conftest$ac_exeext conftest.$ac_ext
12036        LDFLAGS="$save_LDFLAGS"
12037      else
12038	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12039	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12040      fi
12041      archive_cmds_need_lc='no'
12042      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12043      hardcode_libdir_separator=:
12044      inherit_rpath=yes
12045      link_all_deplibs=yes
12046      ;;
12047
12048    netbsd* | netbsdelf*-gnu)
12049      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12050	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
12051      else
12052	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
12053      fi
12054      hardcode_libdir_flag_spec='-R$libdir'
12055      hardcode_direct=yes
12056      hardcode_shlibpath_var=no
12057      ;;
12058
12059    newsos6)
12060      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12061      hardcode_direct=yes
12062      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12063      hardcode_libdir_separator=:
12064      hardcode_shlibpath_var=no
12065      ;;
12066
12067    *nto* | *qnx*)
12068      ;;
12069
12070    openbsd*)
12071      if test -f /usr/libexec/ld.so; then
12072	hardcode_direct=yes
12073	hardcode_shlibpath_var=no
12074	hardcode_direct_absolute=yes
12075	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12076	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12077	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12078	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12079	  export_dynamic_flag_spec='${wl}-E'
12080	else
12081	  case $host_os in
12082	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12083	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12084	     hardcode_libdir_flag_spec='-R$libdir'
12085	     ;;
12086	   *)
12087	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12088	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12089	     ;;
12090	  esac
12091	fi
12092      else
12093	ld_shlibs=no
12094      fi
12095      ;;
12096
12097    os2*)
12098      hardcode_libdir_flag_spec='-L$libdir'
12099      hardcode_minus_L=yes
12100      allow_undefined_flag=unsupported
12101      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'
12102      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12103      ;;
12104
12105    osf3*)
12106      if test "$GCC" = yes; then
12107	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12108	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12109      else
12110	allow_undefined_flag=' -expect_unresolved \*'
12111	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12112      fi
12113      archive_cmds_need_lc='no'
12114      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12115      hardcode_libdir_separator=:
12116      ;;
12117
12118    osf4* | osf5*)	# as osf3* with the addition of -msym flag
12119      if test "$GCC" = yes; then
12120	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12121	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12122	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12123      else
12124	allow_undefined_flag=' -expect_unresolved \*'
12125	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12126	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12127	$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12128
12129	# Both c and cxx compiler support -rpath directly
12130	hardcode_libdir_flag_spec='-rpath $libdir'
12131      fi
12132      archive_cmds_need_lc='no'
12133      hardcode_libdir_separator=:
12134      ;;
12135
12136    solaris*)
12137      no_undefined_flag=' -z defs'
12138      if test "$GCC" = yes; then
12139	wlarc='${wl}'
12140	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12141	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12142	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12143      else
12144	case `$CC -V 2>&1` in
12145	*"Compilers 5.0"*)
12146	  wlarc=''
12147	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12148	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12149	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12150	  ;;
12151	*)
12152	  wlarc='${wl}'
12153	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12154	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12155	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12156	  ;;
12157	esac
12158      fi
12159      hardcode_libdir_flag_spec='-R$libdir'
12160      hardcode_shlibpath_var=no
12161      case $host_os in
12162      solaris2.[0-5] | solaris2.[0-5].*) ;;
12163      *)
12164	# The compiler driver will combine and reorder linker options,
12165	# but understands `-z linker_flag'.  GCC discards it without `$wl',
12166	# but is careful enough not to reorder.
12167	# Supported since Solaris 2.6 (maybe 2.5.1?)
12168	if test "$GCC" = yes; then
12169	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12170	else
12171	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12172	fi
12173	;;
12174      esac
12175      link_all_deplibs=yes
12176      ;;
12177
12178    sunos4*)
12179      if test "x$host_vendor" = xsequent; then
12180	# Use $CC to link under sequent, because it throws in some extra .o
12181	# files that make .init and .fini sections work.
12182	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12183      else
12184	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12185      fi
12186      hardcode_libdir_flag_spec='-L$libdir'
12187      hardcode_direct=yes
12188      hardcode_minus_L=yes
12189      hardcode_shlibpath_var=no
12190      ;;
12191
12192    sysv4)
12193      case $host_vendor in
12194	sni)
12195	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12196	  hardcode_direct=yes # is this really true???
12197	;;
12198	siemens)
12199	  ## LD is ld it makes a PLAMLIB
12200	  ## CC just makes a GrossModule.
12201	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12202	  reload_cmds='$CC -r -o $output$reload_objs'
12203	  hardcode_direct=no
12204        ;;
12205	motorola)
12206	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12207	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12208	;;
12209      esac
12210      runpath_var='LD_RUN_PATH'
12211      hardcode_shlibpath_var=no
12212      ;;
12213
12214    sysv4.3*)
12215      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12216      hardcode_shlibpath_var=no
12217      export_dynamic_flag_spec='-Bexport'
12218      ;;
12219
12220    sysv4*MP*)
12221      if test -d /usr/nec; then
12222	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12223	hardcode_shlibpath_var=no
12224	runpath_var=LD_RUN_PATH
12225	hardcode_runpath_var=yes
12226	ld_shlibs=yes
12227      fi
12228      ;;
12229
12230    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12231      no_undefined_flag='${wl}-z,text'
12232      archive_cmds_need_lc=no
12233      hardcode_shlibpath_var=no
12234      runpath_var='LD_RUN_PATH'
12235
12236      if test "$GCC" = yes; then
12237	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12238	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12239      else
12240	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12241	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12242      fi
12243      ;;
12244
12245    sysv5* | sco3.2v5* | sco5v6*)
12246      # Note: We can NOT use -z defs as we might desire, because we do not
12247      # link with -lc, and that would cause any symbols used from libc to
12248      # always be unresolved, which means just about no library would
12249      # ever link correctly.  If we're not using GNU ld we use -z text
12250      # though, which does catch some bad symbols but isn't as heavy-handed
12251      # as -z defs.
12252      no_undefined_flag='${wl}-z,text'
12253      allow_undefined_flag='${wl}-z,nodefs'
12254      archive_cmds_need_lc=no
12255      hardcode_shlibpath_var=no
12256      hardcode_libdir_flag_spec='${wl}-R,$libdir'
12257      hardcode_libdir_separator=':'
12258      link_all_deplibs=yes
12259      export_dynamic_flag_spec='${wl}-Bexport'
12260      runpath_var='LD_RUN_PATH'
12261
12262      if test "$GCC" = yes; then
12263	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12264	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265      else
12266	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12267	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12268      fi
12269      ;;
12270
12271    uts4*)
12272      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12273      hardcode_libdir_flag_spec='-L$libdir'
12274      hardcode_shlibpath_var=no
12275      ;;
12276
12277    *)
12278      ld_shlibs=no
12279      ;;
12280    esac
12281
12282    if test x$host_vendor = xsni; then
12283      case $host in
12284      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12285	export_dynamic_flag_spec='${wl}-Blargedynsym'
12286	;;
12287      esac
12288    fi
12289  fi
12290
12291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12292$as_echo "$ld_shlibs" >&6; }
12293test "$ld_shlibs" = no && can_build_shared=no
12294
12295with_gnu_ld=$with_gnu_ld
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311#
12312# Do we need to explicitly link libc?
12313#
12314case "x$archive_cmds_need_lc" in
12315x|xyes)
12316  # Assume -lc should be added
12317  archive_cmds_need_lc=yes
12318
12319  if test "$enable_shared" = yes && test "$GCC" = yes; then
12320    case $archive_cmds in
12321    *'~'*)
12322      # FIXME: we may have to deal with multi-command sequences.
12323      ;;
12324    '$CC '*)
12325      # Test whether the compiler implicitly links with -lc since on some
12326      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12327      # to ld, don't add -lc before -lgcc.
12328      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12329$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12330      $RM conftest*
12331      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12332
12333      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12334  (eval $ac_compile) 2>&5
12335  ac_status=$?
12336  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12337  test $ac_status = 0; } 2>conftest.err; then
12338        soname=conftest
12339        lib=conftest
12340        libobjs=conftest.$ac_objext
12341        deplibs=
12342        wl=$lt_prog_compiler_wl
12343	pic_flag=$lt_prog_compiler_pic
12344        compiler_flags=-v
12345        linker_flags=-v
12346        verstring=
12347        output_objdir=.
12348        libname=conftest
12349        lt_save_allow_undefined_flag=$allow_undefined_flag
12350        allow_undefined_flag=
12351        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12352  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12353  ac_status=$?
12354  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12355  test $ac_status = 0; }
12356        then
12357	  archive_cmds_need_lc=no
12358        else
12359	  archive_cmds_need_lc=yes
12360        fi
12361        allow_undefined_flag=$lt_save_allow_undefined_flag
12362      else
12363        cat conftest.err 1>&5
12364      fi
12365      $RM conftest*
12366      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
12367$as_echo "$archive_cmds_need_lc" >&6; }
12368      ;;
12369    esac
12370  fi
12371  ;;
12372esac
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12531$as_echo_n "checking dynamic linker characteristics... " >&6; }
12532
12533if test "$GCC" = yes; then
12534  case $host_os in
12535    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12536    *) lt_awk_arg="/^libraries:/" ;;
12537  esac
12538  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12539  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12540    # if the path contains ";" then we assume it to be the separator
12541    # otherwise default to the standard path separator (i.e. ":") - it is
12542    # assumed that no part of a normal pathname contains ";" but that should
12543    # okay in the real world where ";" in dirpaths is itself problematic.
12544    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12545  else
12546    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12547  fi
12548  # Ok, now we have the path, separated by spaces, we can step through it
12549  # and add multilib dir if necessary.
12550  lt_tmp_lt_search_path_spec=
12551  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12552  for lt_sys_path in $lt_search_path_spec; do
12553    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12554      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12555    else
12556      test -d "$lt_sys_path" && \
12557	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12558    fi
12559  done
12560  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12561BEGIN {RS=" "; FS="/|\n";} {
12562  lt_foo="";
12563  lt_count=0;
12564  for (lt_i = NF; lt_i > 0; lt_i--) {
12565    if ($lt_i != "" && $lt_i != ".") {
12566      if ($lt_i == "..") {
12567        lt_count++;
12568      } else {
12569        if (lt_count == 0) {
12570          lt_foo="/" $lt_i lt_foo;
12571        } else {
12572          lt_count--;
12573        }
12574      }
12575    }
12576  }
12577  if (lt_foo != "") { lt_freq[lt_foo]++; }
12578  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12579}'`
12580  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12581else
12582  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12583fi
12584library_names_spec=
12585libname_spec='lib$name'
12586soname_spec=
12587shrext_cmds=".so"
12588postinstall_cmds=
12589postuninstall_cmds=
12590finish_cmds=
12591finish_eval=
12592shlibpath_var=
12593shlibpath_overrides_runpath=unknown
12594version_type=none
12595dynamic_linker="$host_os ld.so"
12596sys_lib_dlsearch_path_spec="/lib /usr/lib"
12597need_lib_prefix=unknown
12598hardcode_into_libs=no
12599
12600# when you set need_version to no, make sure it does not cause -set_version
12601# flags to be left without arguments
12602need_version=unknown
12603
12604case $host_os in
12605aix3*)
12606  version_type=linux
12607  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12608  shlibpath_var=LIBPATH
12609
12610  # AIX 3 has no versioning support, so we append a major version to the name.
12611  soname_spec='${libname}${release}${shared_ext}$major'
12612  ;;
12613
12614aix[4-9]*)
12615  version_type=linux
12616  need_lib_prefix=no
12617  need_version=no
12618  hardcode_into_libs=yes
12619  if test "$host_cpu" = ia64; then
12620    # AIX 5 supports IA64
12621    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12622    shlibpath_var=LD_LIBRARY_PATH
12623  else
12624    # With GCC up to 2.95.x, collect2 would create an import file
12625    # for dependence libraries.  The import file would start with
12626    # the line `#! .'.  This would cause the generated library to
12627    # depend on `.', always an invalid library.  This was fixed in
12628    # development snapshots of GCC prior to 3.0.
12629    case $host_os in
12630      aix4 | aix4.[01] | aix4.[01].*)
12631      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12632	   echo ' yes '
12633	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12634	:
12635      else
12636	can_build_shared=no
12637      fi
12638      ;;
12639    esac
12640    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12641    # soname into executable. Probably we can add versioning support to
12642    # collect2, so additional links can be useful in future.
12643    if test "$aix_use_runtimelinking" = yes; then
12644      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12645      # instead of lib<name>.a to let people know that these are not
12646      # typical AIX shared libraries.
12647      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12648    else
12649      # We preserve .a as extension for shared libraries through AIX4.2
12650      # and later when we are not doing run time linking.
12651      library_names_spec='${libname}${release}.a $libname.a'
12652      soname_spec='${libname}${release}${shared_ext}$major'
12653    fi
12654    shlibpath_var=LIBPATH
12655  fi
12656  ;;
12657
12658amigaos*)
12659  case $host_cpu in
12660  powerpc)
12661    # Since July 2007 AmigaOS4 officially supports .so libraries.
12662    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12663    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12664    ;;
12665  m68k)
12666    library_names_spec='$libname.ixlibrary $libname.a'
12667    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12668    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'
12669    ;;
12670  esac
12671  ;;
12672
12673beos*)
12674  library_names_spec='${libname}${shared_ext}'
12675  dynamic_linker="$host_os ld.so"
12676  shlibpath_var=LIBRARY_PATH
12677  ;;
12678
12679bsdi[45]*)
12680  version_type=linux
12681  need_version=no
12682  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12683  soname_spec='${libname}${release}${shared_ext}$major'
12684  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12685  shlibpath_var=LD_LIBRARY_PATH
12686  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12687  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12688  # the default ld.so.conf also contains /usr/contrib/lib and
12689  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12690  # libtool to hard-code these into programs
12691  ;;
12692
12693cygwin* | mingw* | pw32* | cegcc*)
12694  version_type=windows
12695  shrext_cmds=".dll"
12696  need_version=no
12697  need_lib_prefix=no
12698
12699  case $GCC,$host_os in
12700  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12701    library_names_spec='$libname.dll.a'
12702    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12703    postinstall_cmds='base_file=`basename \${file}`~
12704      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12705      dldir=$destdir/`dirname \$dlpath`~
12706      test -d \$dldir || mkdir -p \$dldir~
12707      $install_prog $dir/$dlname \$dldir/$dlname~
12708      chmod a+x \$dldir/$dlname~
12709      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12710        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12711      fi'
12712    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12713      dlpath=$dir/\$dldll~
12714       $RM \$dlpath'
12715    shlibpath_overrides_runpath=yes
12716
12717    case $host_os in
12718    cygwin*)
12719      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12720      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12721      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12722      ;;
12723    mingw* | cegcc*)
12724      # MinGW DLLs use traditional 'lib' prefix
12725      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12726      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12727      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12728        # It is most probably a Windows format PATH printed by
12729        # mingw gcc, but we are running on Cygwin. Gcc prints its search
12730        # path with ; separators, and with drive letters. We can handle the
12731        # drive letters (cygwin fileutils understands them), so leave them,
12732        # especially as we might pass files found there to a mingw objdump,
12733        # which wouldn't understand a cygwinified path. Ahh.
12734        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12735      else
12736        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
12737      fi
12738      ;;
12739    pw32*)
12740      # pw32 DLLs use 'pw' prefix rather than 'lib'
12741      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12742      ;;
12743    esac
12744    ;;
12745
12746  *)
12747    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12748    ;;
12749  esac
12750  dynamic_linker='Win32 ld.exe'
12751  # FIXME: first we should search . and the directory the executable is in
12752  shlibpath_var=PATH
12753  ;;
12754
12755darwin* | rhapsody*)
12756  dynamic_linker="$host_os dyld"
12757  version_type=darwin
12758  need_lib_prefix=no
12759  need_version=no
12760  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12761  soname_spec='${libname}${release}${major}$shared_ext'
12762  shlibpath_overrides_runpath=yes
12763  shlibpath_var=DYLD_LIBRARY_PATH
12764  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12765
12766  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12767  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12768  ;;
12769
12770dgux*)
12771  version_type=linux
12772  need_lib_prefix=no
12773  need_version=no
12774  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12775  soname_spec='${libname}${release}${shared_ext}$major'
12776  shlibpath_var=LD_LIBRARY_PATH
12777  ;;
12778
12779freebsd1*)
12780  dynamic_linker=no
12781  ;;
12782
12783freebsd* | dragonfly*)
12784  # DragonFly does not have aout.  When/if they implement a new
12785  # versioning mechanism, adjust this.
12786  if test -x /usr/bin/objformat; then
12787    objformat=`/usr/bin/objformat`
12788  else
12789    case $host_os in
12790    freebsd[123]*) objformat=aout ;;
12791    *) objformat=elf ;;
12792    esac
12793  fi
12794  version_type=freebsd-$objformat
12795  case $version_type in
12796    freebsd-elf*)
12797      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12798      need_version=no
12799      need_lib_prefix=no
12800      ;;
12801    freebsd-*)
12802      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12803      need_version=yes
12804      ;;
12805  esac
12806  shlibpath_var=LD_LIBRARY_PATH
12807  case $host_os in
12808  freebsd2*)
12809    shlibpath_overrides_runpath=yes
12810    ;;
12811  freebsd3.[01]* | freebsdelf3.[01]*)
12812    shlibpath_overrides_runpath=yes
12813    hardcode_into_libs=yes
12814    ;;
12815  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12816  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12817    shlibpath_overrides_runpath=no
12818    hardcode_into_libs=yes
12819    ;;
12820  *) # from 4.6 on, and DragonFly
12821    shlibpath_overrides_runpath=yes
12822    hardcode_into_libs=yes
12823    ;;
12824  esac
12825  ;;
12826
12827gnu*)
12828  version_type=linux
12829  need_lib_prefix=no
12830  need_version=no
12831  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12832  soname_spec='${libname}${release}${shared_ext}$major'
12833  shlibpath_var=LD_LIBRARY_PATH
12834  hardcode_into_libs=yes
12835  ;;
12836
12837hpux9* | hpux10* | hpux11*)
12838  # Give a soname corresponding to the major version so that dld.sl refuses to
12839  # link against other versions.
12840  version_type=sunos
12841  need_lib_prefix=no
12842  need_version=no
12843  case $host_cpu in
12844  ia64*)
12845    shrext_cmds='.so'
12846    hardcode_into_libs=yes
12847    dynamic_linker="$host_os dld.so"
12848    shlibpath_var=LD_LIBRARY_PATH
12849    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12850    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12851    soname_spec='${libname}${release}${shared_ext}$major'
12852    if test "X$HPUX_IA64_MODE" = X32; then
12853      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12854    else
12855      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12856    fi
12857    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12858    ;;
12859  hppa*64*)
12860    shrext_cmds='.sl'
12861    hardcode_into_libs=yes
12862    dynamic_linker="$host_os dld.sl"
12863    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12864    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12865    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12866    soname_spec='${libname}${release}${shared_ext}$major'
12867    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12868    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12869    ;;
12870  *)
12871    shrext_cmds='.sl'
12872    dynamic_linker="$host_os dld.sl"
12873    shlibpath_var=SHLIB_PATH
12874    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12875    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12876    soname_spec='${libname}${release}${shared_ext}$major'
12877    ;;
12878  esac
12879  # HP-UX runs *really* slowly unless shared libraries are mode 555.
12880  postinstall_cmds='chmod 555 $lib'
12881  ;;
12882
12883interix[3-9]*)
12884  version_type=linux
12885  need_lib_prefix=no
12886  need_version=no
12887  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12888  soname_spec='${libname}${release}${shared_ext}$major'
12889  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12890  shlibpath_var=LD_LIBRARY_PATH
12891  shlibpath_overrides_runpath=no
12892  hardcode_into_libs=yes
12893  ;;
12894
12895irix5* | irix6* | nonstopux*)
12896  case $host_os in
12897    nonstopux*) version_type=nonstopux ;;
12898    *)
12899	if test "$lt_cv_prog_gnu_ld" = yes; then
12900		version_type=linux
12901	else
12902		version_type=irix
12903	fi ;;
12904  esac
12905  need_lib_prefix=no
12906  need_version=no
12907  soname_spec='${libname}${release}${shared_ext}$major'
12908  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12909  case $host_os in
12910  irix5* | nonstopux*)
12911    libsuff= shlibsuff=
12912    ;;
12913  *)
12914    case $LD in # libtool.m4 will add one of these switches to LD
12915    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12916      libsuff= shlibsuff= libmagic=32-bit;;
12917    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12918      libsuff=32 shlibsuff=N32 libmagic=N32;;
12919    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12920      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12921    *) libsuff= shlibsuff= libmagic=never-match;;
12922    esac
12923    ;;
12924  esac
12925  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12926  shlibpath_overrides_runpath=no
12927  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12928  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12929  hardcode_into_libs=yes
12930  ;;
12931
12932# No shared lib support for Linux oldld, aout, or coff.
12933linux*oldld* | linux*aout* | linux*coff*)
12934  dynamic_linker=no
12935  ;;
12936
12937# This must be Linux ELF.
12938linux* | k*bsd*-gnu)
12939  version_type=linux
12940  need_lib_prefix=no
12941  need_version=no
12942  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12943  soname_spec='${libname}${release}${shared_ext}$major'
12944  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12945  shlibpath_var=LD_LIBRARY_PATH
12946  shlibpath_overrides_runpath=no
12947  # Some binutils ld are patched to set DT_RUNPATH
12948  save_LDFLAGS=$LDFLAGS
12949  save_libdir=$libdir
12950  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12951       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12952  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953/* end confdefs.h.  */
12954
12955int
12956main ()
12957{
12958
12959  ;
12960  return 0;
12961}
12962_ACEOF
12963if ac_fn_c_try_link "$LINENO"; then :
12964  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12965  shlibpath_overrides_runpath=yes
12966fi
12967fi
12968rm -f core conftest.err conftest.$ac_objext \
12969    conftest$ac_exeext conftest.$ac_ext
12970  LDFLAGS=$save_LDFLAGS
12971  libdir=$save_libdir
12972
12973  # This implies no fast_install, which is unacceptable.
12974  # Some rework will be needed to allow for fast_install
12975  # before this can be enabled.
12976  hardcode_into_libs=yes
12977
12978  # Append ld.so.conf contents to the search path
12979  if test -f /etc/ld.so.conf; then
12980    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' ' '`
12981    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12982  fi
12983
12984  # We used to test for /lib/ld.so.1 and disable shared libraries on
12985  # powerpc, because MkLinux only supported shared libraries with the
12986  # GNU dynamic linker.  Since this was broken with cross compilers,
12987  # most powerpc-linux boxes support dynamic linking these days and
12988  # people can always --disable-shared, the test was removed, and we
12989  # assume the GNU/Linux dynamic linker is in use.
12990  dynamic_linker='GNU/Linux ld.so'
12991  ;;
12992
12993netbsdelf*-gnu)
12994  version_type=linux
12995  need_lib_prefix=no
12996  need_version=no
12997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12998  soname_spec='${libname}${release}${shared_ext}$major'
12999  shlibpath_var=LD_LIBRARY_PATH
13000  shlibpath_overrides_runpath=no
13001  hardcode_into_libs=yes
13002  dynamic_linker='NetBSD ld.elf_so'
13003  ;;
13004
13005netbsd*)
13006  version_type=sunos
13007  need_lib_prefix=no
13008  need_version=no
13009  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13010    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13011    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13012    dynamic_linker='NetBSD (a.out) ld.so'
13013  else
13014    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13015    soname_spec='${libname}${release}${shared_ext}$major'
13016    dynamic_linker='NetBSD ld.elf_so'
13017  fi
13018  shlibpath_var=LD_LIBRARY_PATH
13019  shlibpath_overrides_runpath=yes
13020  hardcode_into_libs=yes
13021  ;;
13022
13023newsos6)
13024  version_type=linux
13025  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13026  shlibpath_var=LD_LIBRARY_PATH
13027  shlibpath_overrides_runpath=yes
13028  ;;
13029
13030*nto* | *qnx*)
13031  version_type=qnx
13032  need_lib_prefix=no
13033  need_version=no
13034  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13035  soname_spec='${libname}${release}${shared_ext}$major'
13036  shlibpath_var=LD_LIBRARY_PATH
13037  shlibpath_overrides_runpath=no
13038  hardcode_into_libs=yes
13039  dynamic_linker='ldqnx.so'
13040  ;;
13041
13042openbsd*)
13043  version_type=sunos
13044  sys_lib_dlsearch_path_spec="/usr/lib"
13045  need_lib_prefix=no
13046  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13047  case $host_os in
13048    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
13049    *)				need_version=no  ;;
13050  esac
13051  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13052  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13053  shlibpath_var=LD_LIBRARY_PATH
13054  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13055    case $host_os in
13056      openbsd2.[89] | openbsd2.[89].*)
13057	shlibpath_overrides_runpath=no
13058	;;
13059      *)
13060	shlibpath_overrides_runpath=yes
13061	;;
13062      esac
13063  else
13064    shlibpath_overrides_runpath=yes
13065  fi
13066  ;;
13067
13068os2*)
13069  libname_spec='$name'
13070  shrext_cmds=".dll"
13071  need_lib_prefix=no
13072  library_names_spec='$libname${shared_ext} $libname.a'
13073  dynamic_linker='OS/2 ld.exe'
13074  shlibpath_var=LIBPATH
13075  ;;
13076
13077osf3* | osf4* | osf5*)
13078  version_type=osf
13079  need_lib_prefix=no
13080  need_version=no
13081  soname_spec='${libname}${release}${shared_ext}$major'
13082  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13083  shlibpath_var=LD_LIBRARY_PATH
13084  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13085  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13086  ;;
13087
13088rdos*)
13089  dynamic_linker=no
13090  ;;
13091
13092solaris*)
13093  version_type=linux
13094  need_lib_prefix=no
13095  need_version=no
13096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097  soname_spec='${libname}${release}${shared_ext}$major'
13098  shlibpath_var=LD_LIBRARY_PATH
13099  shlibpath_overrides_runpath=yes
13100  hardcode_into_libs=yes
13101  # ldd complains unless libraries are executable
13102  postinstall_cmds='chmod +x $lib'
13103  ;;
13104
13105sunos4*)
13106  version_type=sunos
13107  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13108  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13109  shlibpath_var=LD_LIBRARY_PATH
13110  shlibpath_overrides_runpath=yes
13111  if test "$with_gnu_ld" = yes; then
13112    need_lib_prefix=no
13113  fi
13114  need_version=yes
13115  ;;
13116
13117sysv4 | sysv4.3*)
13118  version_type=linux
13119  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13120  soname_spec='${libname}${release}${shared_ext}$major'
13121  shlibpath_var=LD_LIBRARY_PATH
13122  case $host_vendor in
13123    sni)
13124      shlibpath_overrides_runpath=no
13125      need_lib_prefix=no
13126      runpath_var=LD_RUN_PATH
13127      ;;
13128    siemens)
13129      need_lib_prefix=no
13130      ;;
13131    motorola)
13132      need_lib_prefix=no
13133      need_version=no
13134      shlibpath_overrides_runpath=no
13135      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13136      ;;
13137  esac
13138  ;;
13139
13140sysv4*MP*)
13141  if test -d /usr/nec ;then
13142    version_type=linux
13143    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13144    soname_spec='$libname${shared_ext}.$major'
13145    shlibpath_var=LD_LIBRARY_PATH
13146  fi
13147  ;;
13148
13149sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13150  version_type=freebsd-elf
13151  need_lib_prefix=no
13152  need_version=no
13153  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13154  soname_spec='${libname}${release}${shared_ext}$major'
13155  shlibpath_var=LD_LIBRARY_PATH
13156  shlibpath_overrides_runpath=yes
13157  hardcode_into_libs=yes
13158  if test "$with_gnu_ld" = yes; then
13159    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13160  else
13161    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13162    case $host_os in
13163      sco3.2v5*)
13164        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13165	;;
13166    esac
13167  fi
13168  sys_lib_dlsearch_path_spec='/usr/lib'
13169  ;;
13170
13171tpf*)
13172  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13173  version_type=linux
13174  need_lib_prefix=no
13175  need_version=no
13176  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13177  shlibpath_var=LD_LIBRARY_PATH
13178  shlibpath_overrides_runpath=no
13179  hardcode_into_libs=yes
13180  ;;
13181
13182uts4*)
13183  version_type=linux
13184  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13185  soname_spec='${libname}${release}${shared_ext}$major'
13186  shlibpath_var=LD_LIBRARY_PATH
13187  ;;
13188
13189*)
13190  dynamic_linker=no
13191  ;;
13192esac
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13194$as_echo "$dynamic_linker" >&6; }
13195test "$dynamic_linker" = no && can_build_shared=no
13196
13197variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13198if test "$GCC" = yes; then
13199  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13200fi
13201
13202if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13203  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13204fi
13205if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13206  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13207fi
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13296$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13297hardcode_action=
13298if test -n "$hardcode_libdir_flag_spec" ||
13299   test -n "$runpath_var" ||
13300   test "X$hardcode_automatic" = "Xyes" ; then
13301
13302  # We can hardcode non-existent directories.
13303  if test "$hardcode_direct" != no &&
13304     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13305     # have to relink, otherwise we might link with an installed library
13306     # when we should be linking with a yet-to-be-installed one
13307     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13308     test "$hardcode_minus_L" != no; then
13309    # Linking always hardcodes the temporary library directory.
13310    hardcode_action=relink
13311  else
13312    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13313    hardcode_action=immediate
13314  fi
13315else
13316  # We cannot hardcode anything, or else we can only hardcode existing
13317  # directories.
13318  hardcode_action=unsupported
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13321$as_echo "$hardcode_action" >&6; }
13322
13323if test "$hardcode_action" = relink ||
13324   test "$inherit_rpath" = yes; then
13325  # Fast installation is not supported
13326  enable_fast_install=no
13327elif test "$shlibpath_overrides_runpath" = yes ||
13328     test "$enable_shared" = no; then
13329  # Fast installation is not necessary
13330  enable_fast_install=needless
13331fi
13332
13333
13334
13335
13336
13337
13338  if test "x$enable_dlopen" != xyes; then
13339  enable_dlopen=unknown
13340  enable_dlopen_self=unknown
13341  enable_dlopen_self_static=unknown
13342else
13343  lt_cv_dlopen=no
13344  lt_cv_dlopen_libs=
13345
13346  case $host_os in
13347  beos*)
13348    lt_cv_dlopen="load_add_on"
13349    lt_cv_dlopen_libs=
13350    lt_cv_dlopen_self=yes
13351    ;;
13352
13353  mingw* | pw32* | cegcc*)
13354    lt_cv_dlopen="LoadLibrary"
13355    lt_cv_dlopen_libs=
13356    ;;
13357
13358  cygwin*)
13359    lt_cv_dlopen="dlopen"
13360    lt_cv_dlopen_libs=
13361    ;;
13362
13363  darwin*)
13364  # if libdl is installed we need to link against it
13365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13366$as_echo_n "checking for dlopen in -ldl... " >&6; }
13367if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13368  $as_echo_n "(cached) " >&6
13369else
13370  ac_check_lib_save_LIBS=$LIBS
13371LIBS="-ldl  $LIBS"
13372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13373/* end confdefs.h.  */
13374
13375/* Override any GCC internal prototype to avoid an error.
13376   Use char because int might match the return type of a GCC
13377   builtin and then its argument prototype would still apply.  */
13378#ifdef __cplusplus
13379extern "C"
13380#endif
13381char dlopen ();
13382int
13383main ()
13384{
13385return dlopen ();
13386  ;
13387  return 0;
13388}
13389_ACEOF
13390if ac_fn_c_try_link "$LINENO"; then :
13391  ac_cv_lib_dl_dlopen=yes
13392else
13393  ac_cv_lib_dl_dlopen=no
13394fi
13395rm -f core conftest.err conftest.$ac_objext \
13396    conftest$ac_exeext conftest.$ac_ext
13397LIBS=$ac_check_lib_save_LIBS
13398fi
13399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13400$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13401if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13402  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13403else
13404
13405    lt_cv_dlopen="dyld"
13406    lt_cv_dlopen_libs=
13407    lt_cv_dlopen_self=yes
13408
13409fi
13410
13411    ;;
13412
13413  *)
13414    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13415if test "x$ac_cv_func_shl_load" = x""yes; then :
13416  lt_cv_dlopen="shl_load"
13417else
13418  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13419$as_echo_n "checking for shl_load in -ldld... " >&6; }
13420if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13421  $as_echo_n "(cached) " >&6
13422else
13423  ac_check_lib_save_LIBS=$LIBS
13424LIBS="-ldld  $LIBS"
13425cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13426/* end confdefs.h.  */
13427
13428/* Override any GCC internal prototype to avoid an error.
13429   Use char because int might match the return type of a GCC
13430   builtin and then its argument prototype would still apply.  */
13431#ifdef __cplusplus
13432extern "C"
13433#endif
13434char shl_load ();
13435int
13436main ()
13437{
13438return shl_load ();
13439  ;
13440  return 0;
13441}
13442_ACEOF
13443if ac_fn_c_try_link "$LINENO"; then :
13444  ac_cv_lib_dld_shl_load=yes
13445else
13446  ac_cv_lib_dld_shl_load=no
13447fi
13448rm -f core conftest.err conftest.$ac_objext \
13449    conftest$ac_exeext conftest.$ac_ext
13450LIBS=$ac_check_lib_save_LIBS
13451fi
13452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13453$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13454if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13455  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13456else
13457  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13458if test "x$ac_cv_func_dlopen" = x""yes; then :
13459  lt_cv_dlopen="dlopen"
13460else
13461  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13462$as_echo_n "checking for dlopen in -ldl... " >&6; }
13463if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13464  $as_echo_n "(cached) " >&6
13465else
13466  ac_check_lib_save_LIBS=$LIBS
13467LIBS="-ldl  $LIBS"
13468cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469/* end confdefs.h.  */
13470
13471/* Override any GCC internal prototype to avoid an error.
13472   Use char because int might match the return type of a GCC
13473   builtin and then its argument prototype would still apply.  */
13474#ifdef __cplusplus
13475extern "C"
13476#endif
13477char dlopen ();
13478int
13479main ()
13480{
13481return dlopen ();
13482  ;
13483  return 0;
13484}
13485_ACEOF
13486if ac_fn_c_try_link "$LINENO"; then :
13487  ac_cv_lib_dl_dlopen=yes
13488else
13489  ac_cv_lib_dl_dlopen=no
13490fi
13491rm -f core conftest.err conftest.$ac_objext \
13492    conftest$ac_exeext conftest.$ac_ext
13493LIBS=$ac_check_lib_save_LIBS
13494fi
13495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13496$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13497if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13498  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13499else
13500  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13501$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13502if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13503  $as_echo_n "(cached) " >&6
13504else
13505  ac_check_lib_save_LIBS=$LIBS
13506LIBS="-lsvld  $LIBS"
13507cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13508/* end confdefs.h.  */
13509
13510/* Override any GCC internal prototype to avoid an error.
13511   Use char because int might match the return type of a GCC
13512   builtin and then its argument prototype would still apply.  */
13513#ifdef __cplusplus
13514extern "C"
13515#endif
13516char dlopen ();
13517int
13518main ()
13519{
13520return dlopen ();
13521  ;
13522  return 0;
13523}
13524_ACEOF
13525if ac_fn_c_try_link "$LINENO"; then :
13526  ac_cv_lib_svld_dlopen=yes
13527else
13528  ac_cv_lib_svld_dlopen=no
13529fi
13530rm -f core conftest.err conftest.$ac_objext \
13531    conftest$ac_exeext conftest.$ac_ext
13532LIBS=$ac_check_lib_save_LIBS
13533fi
13534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13535$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13536if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13537  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13538else
13539  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13540$as_echo_n "checking for dld_link in -ldld... " >&6; }
13541if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13542  $as_echo_n "(cached) " >&6
13543else
13544  ac_check_lib_save_LIBS=$LIBS
13545LIBS="-ldld  $LIBS"
13546cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13547/* end confdefs.h.  */
13548
13549/* Override any GCC internal prototype to avoid an error.
13550   Use char because int might match the return type of a GCC
13551   builtin and then its argument prototype would still apply.  */
13552#ifdef __cplusplus
13553extern "C"
13554#endif
13555char dld_link ();
13556int
13557main ()
13558{
13559return dld_link ();
13560  ;
13561  return 0;
13562}
13563_ACEOF
13564if ac_fn_c_try_link "$LINENO"; then :
13565  ac_cv_lib_dld_dld_link=yes
13566else
13567  ac_cv_lib_dld_dld_link=no
13568fi
13569rm -f core conftest.err conftest.$ac_objext \
13570    conftest$ac_exeext conftest.$ac_ext
13571LIBS=$ac_check_lib_save_LIBS
13572fi
13573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13574$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13575if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13576  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13577fi
13578
13579
13580fi
13581
13582
13583fi
13584
13585
13586fi
13587
13588
13589fi
13590
13591
13592fi
13593
13594    ;;
13595  esac
13596
13597  if test "x$lt_cv_dlopen" != xno; then
13598    enable_dlopen=yes
13599  else
13600    enable_dlopen=no
13601  fi
13602
13603  case $lt_cv_dlopen in
13604  dlopen)
13605    save_CPPFLAGS="$CPPFLAGS"
13606    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13607
13608    save_LDFLAGS="$LDFLAGS"
13609    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13610
13611    save_LIBS="$LIBS"
13612    LIBS="$lt_cv_dlopen_libs $LIBS"
13613
13614    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13615$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13616if test "${lt_cv_dlopen_self+set}" = set; then :
13617  $as_echo_n "(cached) " >&6
13618else
13619  	  if test "$cross_compiling" = yes; then :
13620  lt_cv_dlopen_self=cross
13621else
13622  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13623  lt_status=$lt_dlunknown
13624  cat > conftest.$ac_ext <<_LT_EOF
13625#line 13625 "configure"
13626#include "confdefs.h"
13627
13628#if HAVE_DLFCN_H
13629#include <dlfcn.h>
13630#endif
13631
13632#include <stdio.h>
13633
13634#ifdef RTLD_GLOBAL
13635#  define LT_DLGLOBAL		RTLD_GLOBAL
13636#else
13637#  ifdef DL_GLOBAL
13638#    define LT_DLGLOBAL		DL_GLOBAL
13639#  else
13640#    define LT_DLGLOBAL		0
13641#  endif
13642#endif
13643
13644/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13645   find out it does not work in some platform. */
13646#ifndef LT_DLLAZY_OR_NOW
13647#  ifdef RTLD_LAZY
13648#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13649#  else
13650#    ifdef DL_LAZY
13651#      define LT_DLLAZY_OR_NOW		DL_LAZY
13652#    else
13653#      ifdef RTLD_NOW
13654#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13655#      else
13656#        ifdef DL_NOW
13657#          define LT_DLLAZY_OR_NOW	DL_NOW
13658#        else
13659#          define LT_DLLAZY_OR_NOW	0
13660#        endif
13661#      endif
13662#    endif
13663#  endif
13664#endif
13665
13666void fnord() { int i=42;}
13667int main ()
13668{
13669  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13670  int status = $lt_dlunknown;
13671
13672  if (self)
13673    {
13674      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13675      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13676      /* dlclose (self); */
13677    }
13678  else
13679    puts (dlerror ());
13680
13681  return status;
13682}
13683_LT_EOF
13684  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13685  (eval $ac_link) 2>&5
13686  ac_status=$?
13687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13688  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13689    (./conftest; exit; ) >&5 2>/dev/null
13690    lt_status=$?
13691    case x$lt_status in
13692      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13693      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13694      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13695    esac
13696  else :
13697    # compilation failed
13698    lt_cv_dlopen_self=no
13699  fi
13700fi
13701rm -fr conftest*
13702
13703
13704fi
13705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13706$as_echo "$lt_cv_dlopen_self" >&6; }
13707
13708    if test "x$lt_cv_dlopen_self" = xyes; then
13709      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13710      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13711$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13712if test "${lt_cv_dlopen_self_static+set}" = set; then :
13713  $as_echo_n "(cached) " >&6
13714else
13715  	  if test "$cross_compiling" = yes; then :
13716  lt_cv_dlopen_self_static=cross
13717else
13718  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13719  lt_status=$lt_dlunknown
13720  cat > conftest.$ac_ext <<_LT_EOF
13721#line 13721 "configure"
13722#include "confdefs.h"
13723
13724#if HAVE_DLFCN_H
13725#include <dlfcn.h>
13726#endif
13727
13728#include <stdio.h>
13729
13730#ifdef RTLD_GLOBAL
13731#  define LT_DLGLOBAL		RTLD_GLOBAL
13732#else
13733#  ifdef DL_GLOBAL
13734#    define LT_DLGLOBAL		DL_GLOBAL
13735#  else
13736#    define LT_DLGLOBAL		0
13737#  endif
13738#endif
13739
13740/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13741   find out it does not work in some platform. */
13742#ifndef LT_DLLAZY_OR_NOW
13743#  ifdef RTLD_LAZY
13744#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13745#  else
13746#    ifdef DL_LAZY
13747#      define LT_DLLAZY_OR_NOW		DL_LAZY
13748#    else
13749#      ifdef RTLD_NOW
13750#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13751#      else
13752#        ifdef DL_NOW
13753#          define LT_DLLAZY_OR_NOW	DL_NOW
13754#        else
13755#          define LT_DLLAZY_OR_NOW	0
13756#        endif
13757#      endif
13758#    endif
13759#  endif
13760#endif
13761
13762void fnord() { int i=42;}
13763int main ()
13764{
13765  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13766  int status = $lt_dlunknown;
13767
13768  if (self)
13769    {
13770      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13771      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13772      /* dlclose (self); */
13773    }
13774  else
13775    puts (dlerror ());
13776
13777  return status;
13778}
13779_LT_EOF
13780  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13781  (eval $ac_link) 2>&5
13782  ac_status=$?
13783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13784  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13785    (./conftest; exit; ) >&5 2>/dev/null
13786    lt_status=$?
13787    case x$lt_status in
13788      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13789      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13790      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13791    esac
13792  else :
13793    # compilation failed
13794    lt_cv_dlopen_self_static=no
13795  fi
13796fi
13797rm -fr conftest*
13798
13799
13800fi
13801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13802$as_echo "$lt_cv_dlopen_self_static" >&6; }
13803    fi
13804
13805    CPPFLAGS="$save_CPPFLAGS"
13806    LDFLAGS="$save_LDFLAGS"
13807    LIBS="$save_LIBS"
13808    ;;
13809  esac
13810
13811  case $lt_cv_dlopen_self in
13812  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13813  *) enable_dlopen_self=unknown ;;
13814  esac
13815
13816  case $lt_cv_dlopen_self_static in
13817  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13818  *) enable_dlopen_self_static=unknown ;;
13819  esac
13820fi
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835
13836
13837
13838striplib=
13839old_striplib=
13840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13841$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13842if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13843  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13844  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13845  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13846$as_echo "yes" >&6; }
13847else
13848# FIXME - insert some real tests, host_os isn't really good enough
13849  case $host_os in
13850  darwin*)
13851    if test -n "$STRIP" ; then
13852      striplib="$STRIP -x"
13853      old_striplib="$STRIP -S"
13854      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13855$as_echo "yes" >&6; }
13856    else
13857      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13858$as_echo "no" >&6; }
13859    fi
13860    ;;
13861  *)
13862    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13863$as_echo "no" >&6; }
13864    ;;
13865  esac
13866fi
13867
13868
13869
13870
13871
13872
13873
13874
13875
13876
13877
13878
13879  # Report which library types will actually be built
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13881$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13883$as_echo "$can_build_shared" >&6; }
13884
13885  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13886$as_echo_n "checking whether to build shared libraries... " >&6; }
13887  test "$can_build_shared" = "no" && enable_shared=no
13888
13889  # On AIX, shared libraries and static libraries use the same namespace, and
13890  # are all built from PIC.
13891  case $host_os in
13892  aix3*)
13893    test "$enable_shared" = yes && enable_static=no
13894    if test -n "$RANLIB"; then
13895      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13896      postinstall_cmds='$RANLIB $lib'
13897    fi
13898    ;;
13899
13900  aix[4-9]*)
13901    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13902      test "$enable_shared" = yes && enable_static=no
13903    fi
13904    ;;
13905  esac
13906  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13907$as_echo "$enable_shared" >&6; }
13908
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13910$as_echo_n "checking whether to build static libraries... " >&6; }
13911  # Make sure either enable_shared or enable_static is yes.
13912  test "$enable_shared" = yes || enable_static=yes
13913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13914$as_echo "$enable_static" >&6; }
13915
13916
13917
13918
13919fi
13920ac_ext=c
13921ac_cpp='$CPP $CPPFLAGS'
13922ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13923ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13924ac_compiler_gnu=$ac_cv_c_compiler_gnu
13925
13926CC="$lt_save_CC"
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940        ac_config_commands="$ac_config_commands libtool"
13941
13942
13943
13944
13945# Only expand once:
13946
13947
13948
13949
13950#
13951# Party on
13952#
13953
13954ac_config_headers="$ac_config_headers pre-config.h"
13955
13956
13957ac_config_files="$ac_config_files Makefile pixmaps/Makefile intl/Makefile po/Makefile.in"
13958
13959cat >confcache <<\_ACEOF
13960# This file is a shell script that caches the results of configure
13961# tests run on this system so they can be shared between configure
13962# scripts and configure runs, see configure's option --config-cache.
13963# It is not useful on other systems.  If it contains results you don't
13964# want to keep, you may remove or edit it.
13965#
13966# config.status only pays attention to the cache file if you give it
13967# the --recheck option to rerun configure.
13968#
13969# `ac_cv_env_foo' variables (set or unset) will be overridden when
13970# loading this file, other *unset* `ac_cv_foo' will be assigned the
13971# following values.
13972
13973_ACEOF
13974
13975# The following way of writing the cache mishandles newlines in values,
13976# but we know of no workaround that is simple, portable, and efficient.
13977# So, we kill variables containing newlines.
13978# Ultrix sh set writes to stderr and can't be redirected directly,
13979# and sets the high bit in the cache file unless we assign to the vars.
13980(
13981  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13982    eval ac_val=\$$ac_var
13983    case $ac_val in #(
13984    *${as_nl}*)
13985      case $ac_var in #(
13986      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13987$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13988      esac
13989      case $ac_var in #(
13990      _ | IFS | as_nl) ;; #(
13991      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13992      *) { eval $ac_var=; unset $ac_var;} ;;
13993      esac ;;
13994    esac
13995  done
13996
13997  (set) 2>&1 |
13998    case $as_nl`(ac_space=' '; set) 2>&1` in #(
13999    *${as_nl}ac_space=\ *)
14000      # `set' does not quote correctly, so add quotes: double-quote
14001      # substitution turns \\\\ into \\, and sed turns \\ into \.
14002      sed -n \
14003	"s/'/'\\\\''/g;
14004	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14005      ;; #(
14006    *)
14007      # `set' quotes correctly as required by POSIX, so do not add quotes.
14008      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14009      ;;
14010    esac |
14011    sort
14012) |
14013  sed '
14014     /^ac_cv_env_/b end
14015     t clear
14016     :clear
14017     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14018     t end
14019     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14020     :end' >>confcache
14021if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14022  if test -w "$cache_file"; then
14023    test "x$cache_file" != "x/dev/null" &&
14024      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14025$as_echo "$as_me: updating cache $cache_file" >&6;}
14026    cat confcache >$cache_file
14027  else
14028    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14029$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14030  fi
14031fi
14032rm -f confcache
14033
14034test "x$prefix" = xNONE && prefix=$ac_default_prefix
14035# Let make expand exec_prefix.
14036test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14037
14038DEFS=-DHAVE_CONFIG_H
14039
14040ac_libobjs=
14041ac_ltlibobjs=
14042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14043  # 1. Remove the extension, and $U if already installed.
14044  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14045  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14046  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14047  #    will be set to the directory where LIBOBJS objects are built.
14048  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14049  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14050done
14051LIBOBJS=$ac_libobjs
14052
14053LTLIBOBJS=$ac_ltlibobjs
14054
14055
14056 if test -n "$EXEEXT"; then
14057  am__EXEEXT_TRUE=
14058  am__EXEEXT_FALSE='#'
14059else
14060  am__EXEEXT_TRUE='#'
14061  am__EXEEXT_FALSE=
14062fi
14063
14064if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14065  as_fn_error "conditional \"AMDEP\" was never defined.
14066Usually this means the macro was only invoked conditionally." "$LINENO" 5
14067fi
14068if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14069  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14070Usually this means the macro was only invoked conditionally." "$LINENO" 5
14071fi
14072if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14073  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14074Usually this means the macro was only invoked conditionally." "$LINENO" 5
14075fi
14076if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
14077  as_fn_error "conditional \"PLUGINS\" was never defined.
14078Usually this means the macro was only invoked conditionally." "$LINENO" 5
14079fi
14080
14081: ${CONFIG_STATUS=./config.status}
14082ac_write_fail=0
14083ac_clean_files_save=$ac_clean_files
14084ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14085{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14086$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14087as_write_fail=0
14088cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14089#! $SHELL
14090# Generated by $as_me.
14091# Run this file to recreate the current configuration.
14092# Compiler output produced by configure, useful for debugging
14093# configure, is in config.log if it exists.
14094
14095debug=false
14096ac_cs_recheck=false
14097ac_cs_silent=false
14098
14099SHELL=\${CONFIG_SHELL-$SHELL}
14100export SHELL
14101_ASEOF
14102cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14103## -------------------- ##
14104## M4sh Initialization. ##
14105## -------------------- ##
14106
14107# Be more Bourne compatible
14108DUALCASE=1; export DUALCASE # for MKS sh
14109if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14110  emulate sh
14111  NULLCMD=:
14112  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14113  # is contrary to our usage.  Disable this feature.
14114  alias -g '${1+"$@"}'='"$@"'
14115  setopt NO_GLOB_SUBST
14116else
14117  case `(set -o) 2>/dev/null` in #(
14118  *posix*) :
14119    set -o posix ;; #(
14120  *) :
14121     ;;
14122esac
14123fi
14124
14125
14126as_nl='
14127'
14128export as_nl
14129# Printing a long string crashes Solaris 7 /usr/bin/printf.
14130as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14131as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14132as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14133# Prefer a ksh shell builtin over an external printf program on Solaris,
14134# but without wasting forks for bash or zsh.
14135if test -z "$BASH_VERSION$ZSH_VERSION" \
14136    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14137  as_echo='print -r --'
14138  as_echo_n='print -rn --'
14139elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14140  as_echo='printf %s\n'
14141  as_echo_n='printf %s'
14142else
14143  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14144    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14145    as_echo_n='/usr/ucb/echo -n'
14146  else
14147    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14148    as_echo_n_body='eval
14149      arg=$1;
14150      case $arg in #(
14151      *"$as_nl"*)
14152	expr "X$arg" : "X\\(.*\\)$as_nl";
14153	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14154      esac;
14155      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14156    '
14157    export as_echo_n_body
14158    as_echo_n='sh -c $as_echo_n_body as_echo'
14159  fi
14160  export as_echo_body
14161  as_echo='sh -c $as_echo_body as_echo'
14162fi
14163
14164# The user is always right.
14165if test "${PATH_SEPARATOR+set}" != set; then
14166  PATH_SEPARATOR=:
14167  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14168    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14169      PATH_SEPARATOR=';'
14170  }
14171fi
14172
14173
14174# IFS
14175# We need space, tab and new line, in precisely that order.  Quoting is
14176# there to prevent editors from complaining about space-tab.
14177# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14178# splitting by setting IFS to empty value.)
14179IFS=" ""	$as_nl"
14180
14181# Find who we are.  Look in the path if we contain no directory separator.
14182case $0 in #((
14183  *[\\/]* ) as_myself=$0 ;;
14184  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14185for as_dir in $PATH
14186do
14187  IFS=$as_save_IFS
14188  test -z "$as_dir" && as_dir=.
14189    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14190  done
14191IFS=$as_save_IFS
14192
14193     ;;
14194esac
14195# We did not find ourselves, most probably we were run as `sh COMMAND'
14196# in which case we are not to be found in the path.
14197if test "x$as_myself" = x; then
14198  as_myself=$0
14199fi
14200if test ! -f "$as_myself"; then
14201  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14202  exit 1
14203fi
14204
14205# Unset variables that we do not need and which cause bugs (e.g. in
14206# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14207# suppresses any "Segmentation fault" message there.  '((' could
14208# trigger a bug in pdksh 5.2.14.
14209for as_var in BASH_ENV ENV MAIL MAILPATH
14210do eval test x\${$as_var+set} = xset \
14211  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14212done
14213PS1='$ '
14214PS2='> '
14215PS4='+ '
14216
14217# NLS nuisances.
14218LC_ALL=C
14219export LC_ALL
14220LANGUAGE=C
14221export LANGUAGE
14222
14223# CDPATH.
14224(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14225
14226
14227# as_fn_error ERROR [LINENO LOG_FD]
14228# ---------------------------------
14229# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14230# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14231# script with status $?, using 1 if that was 0.
14232as_fn_error ()
14233{
14234  as_status=$?; test $as_status -eq 0 && as_status=1
14235  if test "$3"; then
14236    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14237    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14238  fi
14239  $as_echo "$as_me: error: $1" >&2
14240  as_fn_exit $as_status
14241} # as_fn_error
14242
14243
14244# as_fn_set_status STATUS
14245# -----------------------
14246# Set $? to STATUS, without forking.
14247as_fn_set_status ()
14248{
14249  return $1
14250} # as_fn_set_status
14251
14252# as_fn_exit STATUS
14253# -----------------
14254# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14255as_fn_exit ()
14256{
14257  set +e
14258  as_fn_set_status $1
14259  exit $1
14260} # as_fn_exit
14261
14262# as_fn_unset VAR
14263# ---------------
14264# Portably unset VAR.
14265as_fn_unset ()
14266{
14267  { eval $1=; unset $1;}
14268}
14269as_unset=as_fn_unset
14270# as_fn_append VAR VALUE
14271# ----------------------
14272# Append the text in VALUE to the end of the definition contained in VAR. Take
14273# advantage of any shell optimizations that allow amortized linear growth over
14274# repeated appends, instead of the typical quadratic growth present in naive
14275# implementations.
14276if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14277  eval 'as_fn_append ()
14278  {
14279    eval $1+=\$2
14280  }'
14281else
14282  as_fn_append ()
14283  {
14284    eval $1=\$$1\$2
14285  }
14286fi # as_fn_append
14287
14288# as_fn_arith ARG...
14289# ------------------
14290# Perform arithmetic evaluation on the ARGs, and store the result in the
14291# global $as_val. Take advantage of shells that can avoid forks. The arguments
14292# must be portable across $(()) and expr.
14293if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14294  eval 'as_fn_arith ()
14295  {
14296    as_val=$(( $* ))
14297  }'
14298else
14299  as_fn_arith ()
14300  {
14301    as_val=`expr "$@" || test $? -eq 1`
14302  }
14303fi # as_fn_arith
14304
14305
14306if expr a : '\(a\)' >/dev/null 2>&1 &&
14307   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14308  as_expr=expr
14309else
14310  as_expr=false
14311fi
14312
14313if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14314  as_basename=basename
14315else
14316  as_basename=false
14317fi
14318
14319if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14320  as_dirname=dirname
14321else
14322  as_dirname=false
14323fi
14324
14325as_me=`$as_basename -- "$0" ||
14326$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14327	 X"$0" : 'X\(//\)$' \| \
14328	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14329$as_echo X/"$0" |
14330    sed '/^.*\/\([^/][^/]*\)\/*$/{
14331	    s//\1/
14332	    q
14333	  }
14334	  /^X\/\(\/\/\)$/{
14335	    s//\1/
14336	    q
14337	  }
14338	  /^X\/\(\/\).*/{
14339	    s//\1/
14340	    q
14341	  }
14342	  s/.*/./; q'`
14343
14344# Avoid depending upon Character Ranges.
14345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14348as_cr_digits='0123456789'
14349as_cr_alnum=$as_cr_Letters$as_cr_digits
14350
14351ECHO_C= ECHO_N= ECHO_T=
14352case `echo -n x` in #(((((
14353-n*)
14354  case `echo 'xy\c'` in
14355  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
14356  xy)  ECHO_C='\c';;
14357  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
14358       ECHO_T='	';;
14359  esac;;
14360*)
14361  ECHO_N='-n';;
14362esac
14363
14364rm -f conf$$ conf$$.exe conf$$.file
14365if test -d conf$$.dir; then
14366  rm -f conf$$.dir/conf$$.file
14367else
14368  rm -f conf$$.dir
14369  mkdir conf$$.dir 2>/dev/null
14370fi
14371if (echo >conf$$.file) 2>/dev/null; then
14372  if ln -s conf$$.file conf$$ 2>/dev/null; then
14373    as_ln_s='ln -s'
14374    # ... but there are two gotchas:
14375    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14376    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14377    # In both cases, we have to default to `cp -p'.
14378    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14379      as_ln_s='cp -p'
14380  elif ln conf$$.file conf$$ 2>/dev/null; then
14381    as_ln_s=ln
14382  else
14383    as_ln_s='cp -p'
14384  fi
14385else
14386  as_ln_s='cp -p'
14387fi
14388rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14389rmdir conf$$.dir 2>/dev/null
14390
14391
14392# as_fn_mkdir_p
14393# -------------
14394# Create "$as_dir" as a directory, including parents if necessary.
14395as_fn_mkdir_p ()
14396{
14397
14398  case $as_dir in #(
14399  -*) as_dir=./$as_dir;;
14400  esac
14401  test -d "$as_dir" || eval $as_mkdir_p || {
14402    as_dirs=
14403    while :; do
14404      case $as_dir in #(
14405      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14406      *) as_qdir=$as_dir;;
14407      esac
14408      as_dirs="'$as_qdir' $as_dirs"
14409      as_dir=`$as_dirname -- "$as_dir" ||
14410$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14411	 X"$as_dir" : 'X\(//\)[^/]' \| \
14412	 X"$as_dir" : 'X\(//\)$' \| \
14413	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14414$as_echo X"$as_dir" |
14415    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14416	    s//\1/
14417	    q
14418	  }
14419	  /^X\(\/\/\)[^/].*/{
14420	    s//\1/
14421	    q
14422	  }
14423	  /^X\(\/\/\)$/{
14424	    s//\1/
14425	    q
14426	  }
14427	  /^X\(\/\).*/{
14428	    s//\1/
14429	    q
14430	  }
14431	  s/.*/./; q'`
14432      test -d "$as_dir" && break
14433    done
14434    test -z "$as_dirs" || eval "mkdir $as_dirs"
14435  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14436
14437
14438} # as_fn_mkdir_p
14439if mkdir -p . 2>/dev/null; then
14440  as_mkdir_p='mkdir -p "$as_dir"'
14441else
14442  test -d ./-p && rmdir ./-p
14443  as_mkdir_p=false
14444fi
14445
14446if test -x / >/dev/null 2>&1; then
14447  as_test_x='test -x'
14448else
14449  if ls -dL / >/dev/null 2>&1; then
14450    as_ls_L_option=L
14451  else
14452    as_ls_L_option=
14453  fi
14454  as_test_x='
14455    eval sh -c '\''
14456      if test -d "$1"; then
14457	test -d "$1/.";
14458      else
14459	case $1 in #(
14460	-*)set "./$1";;
14461	esac;
14462	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14463	???[sx]*):;;*)false;;esac;fi
14464    '\'' sh
14465  '
14466fi
14467as_executable_p=$as_test_x
14468
14469# Sed expression to map a string onto a valid CPP name.
14470as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14471
14472# Sed expression to map a string onto a valid variable name.
14473as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14474
14475
14476exec 6>&1
14477## ----------------------------------- ##
14478## Main body of $CONFIG_STATUS script. ##
14479## ----------------------------------- ##
14480_ASEOF
14481test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14482
14483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484# Save the log message, to keep $0 and so on meaningful, and to
14485# report actual input values of CONFIG_FILES etc. instead of their
14486# values after options handling.
14487ac_log="
14488This file was extended by $as_me, which was
14489generated by GNU Autoconf 2.64.  Invocation command line was
14490
14491  CONFIG_FILES    = $CONFIG_FILES
14492  CONFIG_HEADERS  = $CONFIG_HEADERS
14493  CONFIG_LINKS    = $CONFIG_LINKS
14494  CONFIG_COMMANDS = $CONFIG_COMMANDS
14495  $ $0 $@
14496
14497on `(hostname || uname -n) 2>/dev/null | sed 1q`
14498"
14499
14500_ACEOF
14501
14502case $ac_config_files in *"
14503"*) set x $ac_config_files; shift; ac_config_files=$*;;
14504esac
14505
14506case $ac_config_headers in *"
14507"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14508esac
14509
14510
14511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14512# Files that config.status was made for.
14513config_files="$ac_config_files"
14514config_headers="$ac_config_headers"
14515config_commands="$ac_config_commands"
14516
14517_ACEOF
14518
14519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14520ac_cs_usage="\
14521\`$as_me' instantiates files and other configuration actions
14522from templates according to the current configuration.  Unless the files
14523and actions are specified as TAGs, all are instantiated by default.
14524
14525Usage: $0 [OPTION]... [TAG]...
14526
14527  -h, --help       print this help, then exit
14528  -V, --version    print version number and configuration settings, then exit
14529  -q, --quiet, --silent
14530                   do not print progress messages
14531  -d, --debug      don't remove temporary files
14532      --recheck    update $as_me by reconfiguring in the same conditions
14533      --file=FILE[:TEMPLATE]
14534                   instantiate the configuration file FILE
14535      --header=FILE[:TEMPLATE]
14536                   instantiate the configuration header FILE
14537
14538Configuration files:
14539$config_files
14540
14541Configuration headers:
14542$config_headers
14543
14544Configuration commands:
14545$config_commands
14546
14547Report bugs to the package provider."
14548
14549_ACEOF
14550cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14551ac_cs_version="\\
14552config.status
14553configured by $0, generated by GNU Autoconf 2.64,
14554  with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14555
14556Copyright (C) 2009 Free Software Foundation, Inc.
14557This config.status script is free software; the Free Software Foundation
14558gives unlimited permission to copy, distribute and modify it."
14559
14560ac_pwd='$ac_pwd'
14561srcdir='$srcdir'
14562INSTALL='$INSTALL'
14563MKDIR_P='$MKDIR_P'
14564AWK='$AWK'
14565test -n "\$AWK" || AWK=awk
14566_ACEOF
14567
14568cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14569# The default lists apply if the user does not specify any file.
14570ac_need_defaults=:
14571while test $# != 0
14572do
14573  case $1 in
14574  --*=*)
14575    ac_option=`expr "X$1" : 'X\([^=]*\)='`
14576    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14577    ac_shift=:
14578    ;;
14579  *)
14580    ac_option=$1
14581    ac_optarg=$2
14582    ac_shift=shift
14583    ;;
14584  esac
14585
14586  case $ac_option in
14587  # Handling of the options.
14588  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14589    ac_cs_recheck=: ;;
14590  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14591    $as_echo "$ac_cs_version"; exit ;;
14592  --debug | --debu | --deb | --de | --d | -d )
14593    debug=: ;;
14594  --file | --fil | --fi | --f )
14595    $ac_shift
14596    case $ac_optarg in
14597    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14598    esac
14599    as_fn_append CONFIG_FILES " '$ac_optarg'"
14600    ac_need_defaults=false;;
14601  --header | --heade | --head | --hea )
14602    $ac_shift
14603    case $ac_optarg in
14604    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14605    esac
14606    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14607    ac_need_defaults=false;;
14608  --he | --h)
14609    # Conflict between --help and --header
14610    as_fn_error "ambiguous option: \`$1'
14611Try \`$0 --help' for more information.";;
14612  --help | --hel | -h )
14613    $as_echo "$ac_cs_usage"; exit ;;
14614  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14615  | -silent | --silent | --silen | --sile | --sil | --si | --s)
14616    ac_cs_silent=: ;;
14617
14618  # This is an error.
14619  -*) as_fn_error "unrecognized option: \`$1'
14620Try \`$0 --help' for more information." ;;
14621
14622  *) as_fn_append ac_config_targets " $1"
14623     ac_need_defaults=false ;;
14624
14625  esac
14626  shift
14627done
14628
14629ac_configure_extra_args=
14630
14631if $ac_cs_silent; then
14632  exec 6>/dev/null
14633  ac_configure_extra_args="$ac_configure_extra_args --silent"
14634fi
14635
14636_ACEOF
14637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14638if \$ac_cs_recheck; then
14639  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14640  shift
14641  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14642  CONFIG_SHELL='$SHELL'
14643  export CONFIG_SHELL
14644  exec "\$@"
14645fi
14646
14647_ACEOF
14648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14649exec 5>>config.log
14650{
14651  echo
14652  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14653## Running $as_me. ##
14654_ASBOX
14655  $as_echo "$ac_log"
14656} >&5
14657
14658_ACEOF
14659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14660#
14661# INIT-COMMANDS
14662#
14663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14664
14665
14666
14667# The HP-UX ksh and POSIX shell print the target directory to stdout
14668# if CDPATH is set.
14669(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14670
14671sed_quote_subst='$sed_quote_subst'
14672double_quote_subst='$double_quote_subst'
14673delay_variable_subst='$delay_variable_subst'
14674macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14675macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14676enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14677enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14678pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14679enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14680host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14681host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14682host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14683build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14684build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14685build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14686SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14687Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14688GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14689EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14690FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14691LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14692NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14693LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14694max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14695ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14696exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14697lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14698lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14699lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14700reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14701reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14702OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14703deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14704file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14705AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14706AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14707STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14708RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14709old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14710old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14711old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14712CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14713CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14714compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14715GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14716lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14717lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14718lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14719lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14720objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14721SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14722ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14723MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14724lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14725lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14726lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14727lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14728lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14729need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14730DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14731NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14732LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14733OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14734OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14735libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14736shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14737extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14738archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14739enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14740export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14741whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14742compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14743old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14744old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14745archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14746archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14747module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14748module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14749with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14750allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14751no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14752hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14753hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14754hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14755hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14756hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14757hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14758hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14759hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14760inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14761link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14762fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14763always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14764export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14765exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14766include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14767prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14768file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14769variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14770need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14771need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14772version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14773runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14774shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14775shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14776libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14777library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14778soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14779postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14780postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14781finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14782finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14783hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14784sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14785sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14786hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14787enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14788enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14789enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14790old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14791striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14792
14793LTCC='$LTCC'
14794LTCFLAGS='$LTCFLAGS'
14795compiler='$compiler_DEFAULT'
14796
14797# Quote evaled strings.
14798for var in SED \
14799GREP \
14800EGREP \
14801FGREP \
14802LD \
14803NM \
14804LN_S \
14805lt_SP2NL \
14806lt_NL2SP \
14807reload_flag \
14808OBJDUMP \
14809deplibs_check_method \
14810file_magic_cmd \
14811AR \
14812AR_FLAGS \
14813STRIP \
14814RANLIB \
14815CC \
14816CFLAGS \
14817compiler \
14818lt_cv_sys_global_symbol_pipe \
14819lt_cv_sys_global_symbol_to_cdecl \
14820lt_cv_sys_global_symbol_to_c_name_address \
14821lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14822SHELL \
14823ECHO \
14824lt_prog_compiler_no_builtin_flag \
14825lt_prog_compiler_wl \
14826lt_prog_compiler_pic \
14827lt_prog_compiler_static \
14828lt_cv_prog_compiler_c_o \
14829need_locks \
14830DSYMUTIL \
14831NMEDIT \
14832LIPO \
14833OTOOL \
14834OTOOL64 \
14835shrext_cmds \
14836export_dynamic_flag_spec \
14837whole_archive_flag_spec \
14838compiler_needs_object \
14839with_gnu_ld \
14840allow_undefined_flag \
14841no_undefined_flag \
14842hardcode_libdir_flag_spec \
14843hardcode_libdir_flag_spec_ld \
14844hardcode_libdir_separator \
14845fix_srcfile_path \
14846exclude_expsyms \
14847include_expsyms \
14848file_list_spec \
14849variables_saved_for_relink \
14850libname_spec \
14851library_names_spec \
14852soname_spec \
14853finish_eval \
14854old_striplib \
14855striplib; do
14856    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14857    *[\\\\\\\`\\"\\\$]*)
14858      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14859      ;;
14860    *)
14861      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14862      ;;
14863    esac
14864done
14865
14866# Double-quote double-evaled strings.
14867for var in reload_cmds \
14868old_postinstall_cmds \
14869old_postuninstall_cmds \
14870old_archive_cmds \
14871extract_expsyms_cmds \
14872old_archive_from_new_cmds \
14873old_archive_from_expsyms_cmds \
14874archive_cmds \
14875archive_expsym_cmds \
14876module_cmds \
14877module_expsym_cmds \
14878export_symbols_cmds \
14879prelink_cmds \
14880postinstall_cmds \
14881postuninstall_cmds \
14882finish_cmds \
14883sys_lib_search_path_spec \
14884sys_lib_dlsearch_path_spec; do
14885    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14886    *[\\\\\\\`\\"\\\$]*)
14887      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14888      ;;
14889    *)
14890      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14891      ;;
14892    esac
14893done
14894
14895# Fix-up fallback echo if it was mangled by the above quoting rules.
14896case \$lt_ECHO in
14897*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14898  ;;
14899esac
14900
14901ac_aux_dir='$ac_aux_dir'
14902xsi_shell='$xsi_shell'
14903lt_shell_append='$lt_shell_append'
14904
14905# See if we are running on zsh, and set the options which allow our
14906# commands through without removal of \ escapes INIT.
14907if test -n "\${ZSH_VERSION+set}" ; then
14908   setopt NO_GLOB_SUBST
14909fi
14910
14911
14912    PACKAGE='$PACKAGE'
14913    VERSION='$VERSION'
14914    TIMESTAMP='$TIMESTAMP'
14915    RM='$RM'
14916    ofile='$ofile'
14917
14918
14919
14920
14921_ACEOF
14922
14923cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14924
14925# Handling of arguments.
14926for ac_config_target in $ac_config_targets
14927do
14928  case $ac_config_target in
14929    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14930    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
14931    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14932    "pre-config.h") CONFIG_HEADERS="$CONFIG_HEADERS pre-config.h" ;;
14933    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14934    "pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
14935    "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
14936    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
14937
14938  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14939  esac
14940done
14941
14942
14943# If the user did not use the arguments to specify the items to instantiate,
14944# then the envvar interface is used.  Set only those that are not.
14945# We use the long form for the default assignment because of an extremely
14946# bizarre bug on SunOS 4.1.3.
14947if $ac_need_defaults; then
14948  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14949  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14950  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14951fi
14952
14953# Have a temporary directory for convenience.  Make it in the build tree
14954# simply because there is no reason against having it here, and in addition,
14955# creating and moving files from /tmp can sometimes cause problems.
14956# Hook for its removal unless debugging.
14957# Note that there is a small window in which the directory will not be cleaned:
14958# after its creation but before its name has been assigned to `$tmp'.
14959$debug ||
14960{
14961  tmp=
14962  trap 'exit_status=$?
14963  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14964' 0
14965  trap 'as_fn_exit 1' 1 2 13 15
14966}
14967# Create a (secure) tmp directory for tmp files.
14968
14969{
14970  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14971  test -n "$tmp" && test -d "$tmp"
14972}  ||
14973{
14974  tmp=./conf$$-$RANDOM
14975  (umask 077 && mkdir "$tmp")
14976} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14977
14978# Set up the scripts for CONFIG_FILES section.
14979# No need to generate them if there are no CONFIG_FILES.
14980# This happens for instance with `./config.status config.h'.
14981if test -n "$CONFIG_FILES"; then
14982
14983
14984ac_cr=`echo X | tr X '\015'`
14985# On cygwin, bash can eat \r inside `` if the user requested igncr.
14986# But we know of no other shell where ac_cr would be empty at this
14987# point, so we can use a bashism as a fallback.
14988if test "x$ac_cr" = x; then
14989  eval ac_cr=\$\'\\r\'
14990fi
14991ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14992if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14993  ac_cs_awk_cr='\r'
14994else
14995  ac_cs_awk_cr=$ac_cr
14996fi
14997
14998echo 'BEGIN {' >"$tmp/subs1.awk" &&
14999_ACEOF
15000
15001
15002{
15003  echo "cat >conf$$subs.awk <<_ACEOF" &&
15004  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15005  echo "_ACEOF"
15006} >conf$$subs.sh ||
15007  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15008ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15009ac_delim='%!_!# '
15010for ac_last_try in false false false false false :; do
15011  . ./conf$$subs.sh ||
15012    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15013
15014  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15015  if test $ac_delim_n = $ac_delim_num; then
15016    break
15017  elif $ac_last_try; then
15018    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15019  else
15020    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15021  fi
15022done
15023rm -f conf$$subs.sh
15024
15025cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15026cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15027_ACEOF
15028sed -n '
15029h
15030s/^/S["/; s/!.*/"]=/
15031p
15032g
15033s/^[^!]*!//
15034:repl
15035t repl
15036s/'"$ac_delim"'$//
15037t delim
15038:nl
15039h
15040s/\(.\{148\}\).*/\1/
15041t more1
15042s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15043p
15044n
15045b repl
15046:more1
15047s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15048p
15049g
15050s/.\{148\}//
15051t nl
15052:delim
15053h
15054s/\(.\{148\}\).*/\1/
15055t more2
15056s/["\\]/\\&/g; s/^/"/; s/$/"/
15057p
15058b
15059:more2
15060s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15061p
15062g
15063s/.\{148\}//
15064t delim
15065' <conf$$subs.awk | sed '
15066/^[^""]/{
15067  N
15068  s/\n//
15069}
15070' >>$CONFIG_STATUS || ac_write_fail=1
15071rm -f conf$$subs.awk
15072cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15073_ACAWK
15074cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15075  for (key in S) S_is_set[key] = 1
15076  FS = ""
15077
15078}
15079{
15080  line = $ 0
15081  nfields = split(line, field, "@")
15082  substed = 0
15083  len = length(field[1])
15084  for (i = 2; i < nfields; i++) {
15085    key = field[i]
15086    keylen = length(key)
15087    if (S_is_set[key]) {
15088      value = S[key]
15089      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15090      len += length(value) + length(field[++i])
15091      substed = 1
15092    } else
15093      len += 1 + keylen
15094  }
15095
15096  print line
15097}
15098
15099_ACAWK
15100_ACEOF
15101cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15102if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15103  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15104else
15105  cat
15106fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15107  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15108_ACEOF
15109
15110# VPATH may cause trouble with some makes, so we remove $(srcdir),
15111# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15112# trailing colons and then remove the whole line if VPATH becomes empty
15113# (actually we leave an empty line to preserve line numbers).
15114if test "x$srcdir" = x.; then
15115  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15116s/:*\$(srcdir):*/:/
15117s/:*\${srcdir}:*/:/
15118s/:*@srcdir@:*/:/
15119s/^\([^=]*=[	 ]*\):*/\1/
15120s/:*$//
15121s/^[^=]*=[	 ]*$//
15122}'
15123fi
15124
15125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15126fi # test -n "$CONFIG_FILES"
15127
15128# Set up the scripts for CONFIG_HEADERS section.
15129# No need to generate them if there are no CONFIG_HEADERS.
15130# This happens for instance with `./config.status Makefile'.
15131if test -n "$CONFIG_HEADERS"; then
15132cat >"$tmp/defines.awk" <<\_ACAWK ||
15133BEGIN {
15134_ACEOF
15135
15136# Transform confdefs.h into an awk script `defines.awk', embedded as
15137# here-document in config.status, that substitutes the proper values into
15138# config.h.in to produce config.h.
15139
15140# Create a delimiter string that does not exist in confdefs.h, to ease
15141# handling of long lines.
15142ac_delim='%!_!# '
15143for ac_last_try in false false :; do
15144  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15145  if test -z "$ac_t"; then
15146    break
15147  elif $ac_last_try; then
15148    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15149  else
15150    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15151  fi
15152done
15153
15154# For the awk script, D is an array of macro values keyed by name,
15155# likewise P contains macro parameters if any.  Preserve backslash
15156# newline sequences.
15157
15158ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15159sed -n '
15160s/.\{148\}/&'"$ac_delim"'/g
15161t rset
15162:rset
15163s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15164t def
15165d
15166:def
15167s/\\$//
15168t bsnl
15169s/["\\]/\\&/g
15170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15171D["\1"]=" \3"/p
15172s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15173d
15174:bsnl
15175s/["\\]/\\&/g
15176s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15177D["\1"]=" \3\\\\\\n"\\/p
15178t cont
15179s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15180t cont
15181d
15182:cont
15183n
15184s/.\{148\}/&'"$ac_delim"'/g
15185t clear
15186:clear
15187s/\\$//
15188t bsnlc
15189s/["\\]/\\&/g; s/^/"/; s/$/"/p
15190d
15191:bsnlc
15192s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15193b cont
15194' <confdefs.h | sed '
15195s/'"$ac_delim"'/"\\\
15196"/g' >>$CONFIG_STATUS || ac_write_fail=1
15197
15198cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15199  for (key in D) D_is_set[key] = 1
15200  FS = ""
15201}
15202/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15203  line = \$ 0
15204  split(line, arg, " ")
15205  if (arg[1] == "#") {
15206    defundef = arg[2]
15207    mac1 = arg[3]
15208  } else {
15209    defundef = substr(arg[1], 2)
15210    mac1 = arg[2]
15211  }
15212  split(mac1, mac2, "(") #)
15213  macro = mac2[1]
15214  prefix = substr(line, 1, index(line, defundef) - 1)
15215  if (D_is_set[macro]) {
15216    # Preserve the white space surrounding the "#".
15217    print prefix "define", macro P[macro] D[macro]
15218    next
15219  } else {
15220    # Replace #undef with comments.  This is necessary, for example,
15221    # in the case of _POSIX_SOURCE, which is predefined and required
15222    # on some systems where configure will not decide to define it.
15223    if (defundef == "undef") {
15224      print "/*", prefix defundef, macro, "*/"
15225      next
15226    }
15227  }
15228}
15229{ print }
15230_ACAWK
15231_ACEOF
15232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15233  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15234fi # test -n "$CONFIG_HEADERS"
15235
15236
15237eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15238shift
15239for ac_tag
15240do
15241  case $ac_tag in
15242  :[FHLC]) ac_mode=$ac_tag; continue;;
15243  esac
15244  case $ac_mode$ac_tag in
15245  :[FHL]*:*);;
15246  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15247  :[FH]-) ac_tag=-:-;;
15248  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15249  esac
15250  ac_save_IFS=$IFS
15251  IFS=:
15252  set x $ac_tag
15253  IFS=$ac_save_IFS
15254  shift
15255  ac_file=$1
15256  shift
15257
15258  case $ac_mode in
15259  :L) ac_source=$1;;
15260  :[FH])
15261    ac_file_inputs=
15262    for ac_f
15263    do
15264      case $ac_f in
15265      -) ac_f="$tmp/stdin";;
15266      *) # Look for the file first in the build tree, then in the source tree
15267	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15268	 # because $ac_f cannot contain `:'.
15269	 test -f "$ac_f" ||
15270	   case $ac_f in
15271	   [\\/$]*) false;;
15272	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15273	   esac ||
15274	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15275      esac
15276      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15277      as_fn_append ac_file_inputs " '$ac_f'"
15278    done
15279
15280    # Let's still pretend it is `configure' which instantiates (i.e., don't
15281    # use $as_me), people would be surprised to read:
15282    #    /* config.h.  Generated by config.status.  */
15283    configure_input='Generated from '`
15284	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15285	`' by configure.'
15286    if test x"$ac_file" != x-; then
15287      configure_input="$ac_file.  $configure_input"
15288      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15289$as_echo "$as_me: creating $ac_file" >&6;}
15290    fi
15291    # Neutralize special characters interpreted by sed in replacement strings.
15292    case $configure_input in #(
15293    *\&* | *\|* | *\\* )
15294       ac_sed_conf_input=`$as_echo "$configure_input" |
15295       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15296    *) ac_sed_conf_input=$configure_input;;
15297    esac
15298
15299    case $ac_tag in
15300    *:-:* | *:-) cat >"$tmp/stdin" \
15301      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15302    esac
15303    ;;
15304  esac
15305
15306  ac_dir=`$as_dirname -- "$ac_file" ||
15307$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15308	 X"$ac_file" : 'X\(//\)[^/]' \| \
15309	 X"$ac_file" : 'X\(//\)$' \| \
15310	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15311$as_echo X"$ac_file" |
15312    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15313	    s//\1/
15314	    q
15315	  }
15316	  /^X\(\/\/\)[^/].*/{
15317	    s//\1/
15318	    q
15319	  }
15320	  /^X\(\/\/\)$/{
15321	    s//\1/
15322	    q
15323	  }
15324	  /^X\(\/\).*/{
15325	    s//\1/
15326	    q
15327	  }
15328	  s/.*/./; q'`
15329  as_dir="$ac_dir"; as_fn_mkdir_p
15330  ac_builddir=.
15331
15332case "$ac_dir" in
15333.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15334*)
15335  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15336  # A ".." for each directory in $ac_dir_suffix.
15337  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15338  case $ac_top_builddir_sub in
15339  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15340  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15341  esac ;;
15342esac
15343ac_abs_top_builddir=$ac_pwd
15344ac_abs_builddir=$ac_pwd$ac_dir_suffix
15345# for backward compatibility:
15346ac_top_builddir=$ac_top_build_prefix
15347
15348case $srcdir in
15349  .)  # We are building in place.
15350    ac_srcdir=.
15351    ac_top_srcdir=$ac_top_builddir_sub
15352    ac_abs_top_srcdir=$ac_pwd ;;
15353  [\\/]* | ?:[\\/]* )  # Absolute name.
15354    ac_srcdir=$srcdir$ac_dir_suffix;
15355    ac_top_srcdir=$srcdir
15356    ac_abs_top_srcdir=$srcdir ;;
15357  *) # Relative name.
15358    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15359    ac_top_srcdir=$ac_top_build_prefix$srcdir
15360    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15361esac
15362ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15363
15364
15365  case $ac_mode in
15366  :F)
15367  #
15368  # CONFIG_FILE
15369  #
15370
15371  case $INSTALL in
15372  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15373  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15374  esac
15375  ac_MKDIR_P=$MKDIR_P
15376  case $MKDIR_P in
15377  [\\/$]* | ?:[\\/]* ) ;;
15378  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15379  esac
15380_ACEOF
15381
15382cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15383# If the template does not know about datarootdir, expand it.
15384# FIXME: This hack should be removed a few years after 2.60.
15385ac_datarootdir_hack=; ac_datarootdir_seen=
15386ac_sed_dataroot='
15387/datarootdir/ {
15388  p
15389  q
15390}
15391/@datadir@/p
15392/@docdir@/p
15393/@infodir@/p
15394/@localedir@/p
15395/@mandir@/p'
15396case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15397*datarootdir*) ac_datarootdir_seen=yes;;
15398*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15399  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15400$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15401_ACEOF
15402cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15403  ac_datarootdir_hack='
15404  s&@datadir@&$datadir&g
15405  s&@docdir@&$docdir&g
15406  s&@infodir@&$infodir&g
15407  s&@localedir@&$localedir&g
15408  s&@mandir@&$mandir&g
15409  s&\\\${datarootdir}&$datarootdir&g' ;;
15410esac
15411_ACEOF
15412
15413# Neutralize VPATH when `$srcdir' = `.'.
15414# Shell code in configure.ac might set extrasub.
15415# FIXME: do we really want to maintain this feature?
15416cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417ac_sed_extra="$ac_vpsub
15418$extrasub
15419_ACEOF
15420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15421:t
15422/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15423s|@configure_input@|$ac_sed_conf_input|;t t
15424s&@top_builddir@&$ac_top_builddir_sub&;t t
15425s&@top_build_prefix@&$ac_top_build_prefix&;t t
15426s&@srcdir@&$ac_srcdir&;t t
15427s&@abs_srcdir@&$ac_abs_srcdir&;t t
15428s&@top_srcdir@&$ac_top_srcdir&;t t
15429s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15430s&@builddir@&$ac_builddir&;t t
15431s&@abs_builddir@&$ac_abs_builddir&;t t
15432s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15433s&@INSTALL@&$ac_INSTALL&;t t
15434s&@MKDIR_P@&$ac_MKDIR_P&;t t
15435$ac_datarootdir_hack
15436"
15437eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15438  || as_fn_error "could not create $ac_file" "$LINENO" 5
15439
15440test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15441  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15442  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15443  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15444which seems to be undefined.  Please make sure it is defined." >&5
15445$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15446which seems to be undefined.  Please make sure it is defined." >&2;}
15447
15448  rm -f "$tmp/stdin"
15449  case $ac_file in
15450  -) cat "$tmp/out" && rm -f "$tmp/out";;
15451  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15452  esac \
15453  || as_fn_error "could not create $ac_file" "$LINENO" 5
15454 ;;
15455  :H)
15456  #
15457  # CONFIG_HEADER
15458  #
15459  if test x"$ac_file" != x-; then
15460    {
15461      $as_echo "/* $configure_input  */" \
15462      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15463    } >"$tmp/config.h" \
15464      || as_fn_error "could not create $ac_file" "$LINENO" 5
15465    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15466      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15467$as_echo "$as_me: $ac_file is unchanged" >&6;}
15468    else
15469      rm -f "$ac_file"
15470      mv "$tmp/config.h" "$ac_file" \
15471	|| as_fn_error "could not create $ac_file" "$LINENO" 5
15472    fi
15473  else
15474    $as_echo "/* $configure_input  */" \
15475      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15476      || as_fn_error "could not create -" "$LINENO" 5
15477  fi
15478# Compute "$ac_file"'s index in $config_headers.
15479_am_arg="$ac_file"
15480_am_stamp_count=1
15481for _am_header in $config_headers :; do
15482  case $_am_header in
15483    $_am_arg | $_am_arg:* )
15484      break ;;
15485    * )
15486      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15487  esac
15488done
15489echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15490$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15491	 X"$_am_arg" : 'X\(//\)[^/]' \| \
15492	 X"$_am_arg" : 'X\(//\)$' \| \
15493	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15494$as_echo X"$_am_arg" |
15495    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15496	    s//\1/
15497	    q
15498	  }
15499	  /^X\(\/\/\)[^/].*/{
15500	    s//\1/
15501	    q
15502	  }
15503	  /^X\(\/\/\)$/{
15504	    s//\1/
15505	    q
15506	  }
15507	  /^X\(\/\).*/{
15508	    s//\1/
15509	    q
15510	  }
15511	  s/.*/./; q'`/stamp-h$_am_stamp_count
15512 ;;
15513
15514  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15515$as_echo "$as_me: executing $ac_file commands" >&6;}
15516 ;;
15517  esac
15518
15519
15520  case $ac_file$ac_mode in
15521    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15522  # Autoconf 2.62 quotes --file arguments for eval, but not when files
15523  # are listed without --file.  Let's play safe and only enable the eval
15524  # if we detect the quoting.
15525  case $CONFIG_FILES in
15526  *\'*) eval set x "$CONFIG_FILES" ;;
15527  *)   set x $CONFIG_FILES ;;
15528  esac
15529  shift
15530  for mf
15531  do
15532    # Strip MF so we end up with the name of the file.
15533    mf=`echo "$mf" | sed -e 's/:.*$//'`
15534    # Check whether this is an Automake generated Makefile or not.
15535    # We used to match only the files named `Makefile.in', but
15536    # some people rename them; so instead we look at the file content.
15537    # Grep'ing the first line is not enough: some people post-process
15538    # each Makefile.in and add a new line on top of each file to say so.
15539    # Grep'ing the whole file is not good either: AIX grep has a line
15540    # limit of 2048, but all sed's we know have understand at least 4000.
15541    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15542      dirpart=`$as_dirname -- "$mf" ||
15543$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15544	 X"$mf" : 'X\(//\)[^/]' \| \
15545	 X"$mf" : 'X\(//\)$' \| \
15546	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15547$as_echo X"$mf" |
15548    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15549	    s//\1/
15550	    q
15551	  }
15552	  /^X\(\/\/\)[^/].*/{
15553	    s//\1/
15554	    q
15555	  }
15556	  /^X\(\/\/\)$/{
15557	    s//\1/
15558	    q
15559	  }
15560	  /^X\(\/\).*/{
15561	    s//\1/
15562	    q
15563	  }
15564	  s/.*/./; q'`
15565    else
15566      continue
15567    fi
15568    # Extract the definition of DEPDIR, am__include, and am__quote
15569    # from the Makefile without running `make'.
15570    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15571    test -z "$DEPDIR" && continue
15572    am__include=`sed -n 's/^am__include = //p' < "$mf"`
15573    test -z "am__include" && continue
15574    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15575    # When using ansi2knr, U may be empty or an underscore; expand it
15576    U=`sed -n 's/^U = //p' < "$mf"`
15577    # Find all dependency output files, they are included files with
15578    # $(DEPDIR) in their names.  We invoke sed twice because it is the
15579    # simplest approach to changing $(DEPDIR) to its actual value in the
15580    # expansion.
15581    for file in `sed -n "
15582      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15583	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15584      # Make sure the directory exists.
15585      test -f "$dirpart/$file" && continue
15586      fdir=`$as_dirname -- "$file" ||
15587$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15588	 X"$file" : 'X\(//\)[^/]' \| \
15589	 X"$file" : 'X\(//\)$' \| \
15590	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15591$as_echo X"$file" |
15592    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15593	    s//\1/
15594	    q
15595	  }
15596	  /^X\(\/\/\)[^/].*/{
15597	    s//\1/
15598	    q
15599	  }
15600	  /^X\(\/\/\)$/{
15601	    s//\1/
15602	    q
15603	  }
15604	  /^X\(\/\).*/{
15605	    s//\1/
15606	    q
15607	  }
15608	  s/.*/./; q'`
15609      as_dir=$dirpart/$fdir; as_fn_mkdir_p
15610      # echo "creating $dirpart/$file"
15611      echo '# dummy' > "$dirpart/$file"
15612    done
15613  done
15614}
15615 ;;
15616    "default-1":C) for ac_file in $CONFIG_FILES; do
15617        # Support "outfile[:infile[:infile...]]"
15618        case "$ac_file" in
15619          *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15620        esac
15621        # PO directories have a Makefile.in generated from Makefile.in.in.
15622        case "$ac_file" in */Makefile.in)
15623          # Adjust a relative srcdir.
15624          ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
15625          ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
15626          ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15627          # In autoconf-2.13 it is called $ac_given_srcdir.
15628          # In autoconf-2.50 it is called $srcdir.
15629          test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15630          case "$ac_given_srcdir" in
15631            .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15632            /*) top_srcdir="$ac_given_srcdir" ;;
15633            *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
15634          esac
15635          if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15636            rm -f "$ac_dir/POTFILES"
15637            test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
15638            sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
15639            test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15640            sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15641          fi
15642          ;;
15643        esac
15644      done ;;
15645    "libtool":C)
15646
15647    # See if we are running on zsh, and set the options which allow our
15648    # commands through without removal of \ escapes.
15649    if test -n "${ZSH_VERSION+set}" ; then
15650      setopt NO_GLOB_SUBST
15651    fi
15652
15653    cfgfile="${ofile}T"
15654    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15655    $RM "$cfgfile"
15656
15657    cat <<_LT_EOF >> "$cfgfile"
15658#! $SHELL
15659
15660# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15661# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15662# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15663# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15664#
15665#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15666#                 2006, 2007, 2008 Free Software Foundation, Inc.
15667#   Written by Gordon Matzigkeit, 1996
15668#
15669#   This file is part of GNU Libtool.
15670#
15671# GNU Libtool is free software; you can redistribute it and/or
15672# modify it under the terms of the GNU General Public License as
15673# published by the Free Software Foundation; either version 2 of
15674# the License, or (at your option) any later version.
15675#
15676# As a special exception to the GNU General Public License,
15677# if you distribute this file as part of a program or library that
15678# is built using GNU Libtool, you may include this file under the
15679# same distribution terms that you use for the rest of that program.
15680#
15681# GNU Libtool is distributed in the hope that it will be useful,
15682# but WITHOUT ANY WARRANTY; without even the implied warranty of
15683# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15684# GNU General Public License for more details.
15685#
15686# You should have received a copy of the GNU General Public License
15687# along with GNU Libtool; see the file COPYING.  If not, a copy
15688# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15689# obtained by writing to the Free Software Foundation, Inc.,
15690# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15691
15692
15693# The names of the tagged configurations supported by this script.
15694available_tags=""
15695
15696# ### BEGIN LIBTOOL CONFIG
15697
15698# Which release of libtool.m4 was used?
15699macro_version=$macro_version
15700macro_revision=$macro_revision
15701
15702# Whether or not to build shared libraries.
15703build_libtool_libs=$enable_shared
15704
15705# Whether or not to build static libraries.
15706build_old_libs=$enable_static
15707
15708# What type of objects to build.
15709pic_mode=$pic_mode
15710
15711# Whether or not to optimize for fast installation.
15712fast_install=$enable_fast_install
15713
15714# The host system.
15715host_alias=$host_alias
15716host=$host
15717host_os=$host_os
15718
15719# The build system.
15720build_alias=$build_alias
15721build=$build
15722build_os=$build_os
15723
15724# A sed program that does not truncate output.
15725SED=$lt_SED
15726
15727# Sed that helps us avoid accidentally triggering echo(1) options like -n.
15728Xsed="\$SED -e 1s/^X//"
15729
15730# A grep program that handles long lines.
15731GREP=$lt_GREP
15732
15733# An ERE matcher.
15734EGREP=$lt_EGREP
15735
15736# A literal string matcher.
15737FGREP=$lt_FGREP
15738
15739# A BSD- or MS-compatible name lister.
15740NM=$lt_NM
15741
15742# Whether we need soft or hard links.
15743LN_S=$lt_LN_S
15744
15745# What is the maximum length of a command?
15746max_cmd_len=$max_cmd_len
15747
15748# Object file suffix (normally "o").
15749objext=$ac_objext
15750
15751# Executable file suffix (normally "").
15752exeext=$exeext
15753
15754# whether the shell understands "unset".
15755lt_unset=$lt_unset
15756
15757# turn spaces into newlines.
15758SP2NL=$lt_lt_SP2NL
15759
15760# turn newlines into spaces.
15761NL2SP=$lt_lt_NL2SP
15762
15763# How to create reloadable object files.
15764reload_flag=$lt_reload_flag
15765reload_cmds=$lt_reload_cmds
15766
15767# An object symbol dumper.
15768OBJDUMP=$lt_OBJDUMP
15769
15770# Method to check whether dependent libraries are shared objects.
15771deplibs_check_method=$lt_deplibs_check_method
15772
15773# Command to use when deplibs_check_method == "file_magic".
15774file_magic_cmd=$lt_file_magic_cmd
15775
15776# The archiver.
15777AR=$lt_AR
15778AR_FLAGS=$lt_AR_FLAGS
15779
15780# A symbol stripping program.
15781STRIP=$lt_STRIP
15782
15783# Commands used to install an old-style archive.
15784RANLIB=$lt_RANLIB
15785old_postinstall_cmds=$lt_old_postinstall_cmds
15786old_postuninstall_cmds=$lt_old_postuninstall_cmds
15787
15788# A C compiler.
15789LTCC=$lt_CC
15790
15791# LTCC compiler flags.
15792LTCFLAGS=$lt_CFLAGS
15793
15794# Take the output of nm and produce a listing of raw symbols and C names.
15795global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15796
15797# Transform the output of nm in a proper C declaration.
15798global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15799
15800# Transform the output of nm in a C name address pair.
15801global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15802
15803# Transform the output of nm in a C name address pair when lib prefix is needed.
15804global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15805
15806# The name of the directory that contains temporary libtool files.
15807objdir=$objdir
15808
15809# Shell to use when invoking shell scripts.
15810SHELL=$lt_SHELL
15811
15812# An echo program that does not interpret backslashes.
15813ECHO=$lt_ECHO
15814
15815# Used to examine libraries when file_magic_cmd begins with "file".
15816MAGIC_CMD=$MAGIC_CMD
15817
15818# Must we lock files when doing compilation?
15819need_locks=$lt_need_locks
15820
15821# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15822DSYMUTIL=$lt_DSYMUTIL
15823
15824# Tool to change global to local symbols on Mac OS X.
15825NMEDIT=$lt_NMEDIT
15826
15827# Tool to manipulate fat objects and archives on Mac OS X.
15828LIPO=$lt_LIPO
15829
15830# ldd/readelf like tool for Mach-O binaries on Mac OS X.
15831OTOOL=$lt_OTOOL
15832
15833# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15834OTOOL64=$lt_OTOOL64
15835
15836# Old archive suffix (normally "a").
15837libext=$libext
15838
15839# Shared library suffix (normally ".so").
15840shrext_cmds=$lt_shrext_cmds
15841
15842# The commands to extract the exported symbol list from a shared archive.
15843extract_expsyms_cmds=$lt_extract_expsyms_cmds
15844
15845# Variables whose values should be saved in libtool wrapper scripts and
15846# restored at link time.
15847variables_saved_for_relink=$lt_variables_saved_for_relink
15848
15849# Do we need the "lib" prefix for modules?
15850need_lib_prefix=$need_lib_prefix
15851
15852# Do we need a version for libraries?
15853need_version=$need_version
15854
15855# Library versioning type.
15856version_type=$version_type
15857
15858# Shared library runtime path variable.
15859runpath_var=$runpath_var
15860
15861# Shared library path variable.
15862shlibpath_var=$shlibpath_var
15863
15864# Is shlibpath searched before the hard-coded library search path?
15865shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15866
15867# Format of library name prefix.
15868libname_spec=$lt_libname_spec
15869
15870# List of archive names.  First name is the real one, the rest are links.
15871# The last name is the one that the linker finds with -lNAME
15872library_names_spec=$lt_library_names_spec
15873
15874# The coded name of the library, if different from the real name.
15875soname_spec=$lt_soname_spec
15876
15877# Command to use after installation of a shared archive.
15878postinstall_cmds=$lt_postinstall_cmds
15879
15880# Command to use after uninstallation of a shared archive.
15881postuninstall_cmds=$lt_postuninstall_cmds
15882
15883# Commands used to finish a libtool library installation in a directory.
15884finish_cmds=$lt_finish_cmds
15885
15886# As "finish_cmds", except a single script fragment to be evaled but
15887# not shown.
15888finish_eval=$lt_finish_eval
15889
15890# Whether we should hardcode library paths into libraries.
15891hardcode_into_libs=$hardcode_into_libs
15892
15893# Compile-time system search path for libraries.
15894sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15895
15896# Run-time system search path for libraries.
15897sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15898
15899# Whether dlopen is supported.
15900dlopen_support=$enable_dlopen
15901
15902# Whether dlopen of programs is supported.
15903dlopen_self=$enable_dlopen_self
15904
15905# Whether dlopen of statically linked programs is supported.
15906dlopen_self_static=$enable_dlopen_self_static
15907
15908# Commands to strip libraries.
15909old_striplib=$lt_old_striplib
15910striplib=$lt_striplib
15911
15912
15913# The linker used to build libraries.
15914LD=$lt_LD
15915
15916# Commands used to build an old-style archive.
15917old_archive_cmds=$lt_old_archive_cmds
15918
15919# A language specific compiler.
15920CC=$lt_compiler
15921
15922# Is the compiler the GNU compiler?
15923with_gcc=$GCC
15924
15925# Compiler flag to turn off builtin functions.
15926no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15927
15928# How to pass a linker flag through the compiler.
15929wl=$lt_lt_prog_compiler_wl
15930
15931# Additional compiler flags for building library objects.
15932pic_flag=$lt_lt_prog_compiler_pic
15933
15934# Compiler flag to prevent dynamic linking.
15935link_static_flag=$lt_lt_prog_compiler_static
15936
15937# Does compiler simultaneously support -c and -o options?
15938compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15939
15940# Whether or not to add -lc for building shared libraries.
15941build_libtool_need_lc=$archive_cmds_need_lc
15942
15943# Whether or not to disallow shared libs when runtime libs are static.
15944allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15945
15946# Compiler flag to allow reflexive dlopens.
15947export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15948
15949# Compiler flag to generate shared objects directly from archives.
15950whole_archive_flag_spec=$lt_whole_archive_flag_spec
15951
15952# Whether the compiler copes with passing no objects directly.
15953compiler_needs_object=$lt_compiler_needs_object
15954
15955# Create an old-style archive from a shared archive.
15956old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15957
15958# Create a temporary old-style archive to link instead of a shared archive.
15959old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15960
15961# Commands used to build a shared archive.
15962archive_cmds=$lt_archive_cmds
15963archive_expsym_cmds=$lt_archive_expsym_cmds
15964
15965# Commands used to build a loadable module if different from building
15966# a shared archive.
15967module_cmds=$lt_module_cmds
15968module_expsym_cmds=$lt_module_expsym_cmds
15969
15970# Whether we are building with GNU ld or not.
15971with_gnu_ld=$lt_with_gnu_ld
15972
15973# Flag that allows shared libraries with undefined symbols to be built.
15974allow_undefined_flag=$lt_allow_undefined_flag
15975
15976# Flag that enforces no undefined symbols.
15977no_undefined_flag=$lt_no_undefined_flag
15978
15979# Flag to hardcode \$libdir into a binary during linking.
15980# This must work even if \$libdir does not exist
15981hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15982
15983# If ld is used when linking, flag to hardcode \$libdir into a binary
15984# during linking.  This must work even if \$libdir does not exist.
15985hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15986
15987# Whether we need a single "-rpath" flag with a separated argument.
15988hardcode_libdir_separator=$lt_hardcode_libdir_separator
15989
15990# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15991# DIR into the resulting binary.
15992hardcode_direct=$hardcode_direct
15993
15994# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15995# DIR into the resulting binary and the resulting library dependency is
15996# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15997# library is relocated.
15998hardcode_direct_absolute=$hardcode_direct_absolute
15999
16000# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16001# into the resulting binary.
16002hardcode_minus_L=$hardcode_minus_L
16003
16004# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16005# into the resulting binary.
16006hardcode_shlibpath_var=$hardcode_shlibpath_var
16007
16008# Set to "yes" if building a shared library automatically hardcodes DIR
16009# into the library and all subsequent libraries and executables linked
16010# against it.
16011hardcode_automatic=$hardcode_automatic
16012
16013# Set to yes if linker adds runtime paths of dependent libraries
16014# to runtime path list.
16015inherit_rpath=$inherit_rpath
16016
16017# Whether libtool must link a program against all its dependency libraries.
16018link_all_deplibs=$link_all_deplibs
16019
16020# Fix the shell variable \$srcfile for the compiler.
16021fix_srcfile_path=$lt_fix_srcfile_path
16022
16023# Set to "yes" if exported symbols are required.
16024always_export_symbols=$always_export_symbols
16025
16026# The commands to list exported symbols.
16027export_symbols_cmds=$lt_export_symbols_cmds
16028
16029# Symbols that should not be listed in the preloaded symbols.
16030exclude_expsyms=$lt_exclude_expsyms
16031
16032# Symbols that must always be exported.
16033include_expsyms=$lt_include_expsyms
16034
16035# Commands necessary for linking programs (against libraries) with templates.
16036prelink_cmds=$lt_prelink_cmds
16037
16038# Specify filename containing input files.
16039file_list_spec=$lt_file_list_spec
16040
16041# How to hardcode a shared library path into an executable.
16042hardcode_action=$hardcode_action
16043
16044# ### END LIBTOOL CONFIG
16045
16046_LT_EOF
16047
16048  case $host_os in
16049  aix3*)
16050    cat <<\_LT_EOF >> "$cfgfile"
16051# AIX sometimes has problems with the GCC collect2 program.  For some
16052# reason, if we set the COLLECT_NAMES environment variable, the problems
16053# vanish in a puff of smoke.
16054if test "X${COLLECT_NAMES+set}" != Xset; then
16055  COLLECT_NAMES=
16056  export COLLECT_NAMES
16057fi
16058_LT_EOF
16059    ;;
16060  esac
16061
16062
16063ltmain="$ac_aux_dir/ltmain.sh"
16064
16065
16066  # We use sed instead of cat because bash on DJGPP gets confused if
16067  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16068  # text mode, it properly converts lines to CR/LF.  This bash problem
16069  # is reportedly fixed, but why not run on old versions too?
16070  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16071    || (rm -f "$cfgfile"; exit 1)
16072
16073  case $xsi_shell in
16074  yes)
16075    cat << \_LT_EOF >> "$cfgfile"
16076
16077# func_dirname file append nondir_replacement
16078# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16079# otherwise set result to NONDIR_REPLACEMENT.
16080func_dirname ()
16081{
16082  case ${1} in
16083    */*) func_dirname_result="${1%/*}${2}" ;;
16084    *  ) func_dirname_result="${3}" ;;
16085  esac
16086}
16087
16088# func_basename file
16089func_basename ()
16090{
16091  func_basename_result="${1##*/}"
16092}
16093
16094# func_dirname_and_basename file append nondir_replacement
16095# perform func_basename and func_dirname in a single function
16096# call:
16097#   dirname:  Compute the dirname of FILE.  If nonempty,
16098#             add APPEND to the result, otherwise set result
16099#             to NONDIR_REPLACEMENT.
16100#             value returned in "$func_dirname_result"
16101#   basename: Compute filename of FILE.
16102#             value retuned in "$func_basename_result"
16103# Implementation must be kept synchronized with func_dirname
16104# and func_basename. For efficiency, we do not delegate to
16105# those functions but instead duplicate the functionality here.
16106func_dirname_and_basename ()
16107{
16108  case ${1} in
16109    */*) func_dirname_result="${1%/*}${2}" ;;
16110    *  ) func_dirname_result="${3}" ;;
16111  esac
16112  func_basename_result="${1##*/}"
16113}
16114
16115# func_stripname prefix suffix name
16116# strip PREFIX and SUFFIX off of NAME.
16117# PREFIX and SUFFIX must not contain globbing or regex special
16118# characters, hashes, percent signs, but SUFFIX may contain a leading
16119# dot (in which case that matches only a dot).
16120func_stripname ()
16121{
16122  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16123  # positional parameters, so assign one to ordinary parameter first.
16124  func_stripname_result=${3}
16125  func_stripname_result=${func_stripname_result#"${1}"}
16126  func_stripname_result=${func_stripname_result%"${2}"}
16127}
16128
16129# func_opt_split
16130func_opt_split ()
16131{
16132  func_opt_split_opt=${1%%=*}
16133  func_opt_split_arg=${1#*=}
16134}
16135
16136# func_lo2o object
16137func_lo2o ()
16138{
16139  case ${1} in
16140    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16141    *)    func_lo2o_result=${1} ;;
16142  esac
16143}
16144
16145# func_xform libobj-or-source
16146func_xform ()
16147{
16148  func_xform_result=${1%.*}.lo
16149}
16150
16151# func_arith arithmetic-term...
16152func_arith ()
16153{
16154  func_arith_result=$(( $* ))
16155}
16156
16157# func_len string
16158# STRING may not start with a hyphen.
16159func_len ()
16160{
16161  func_len_result=${#1}
16162}
16163
16164_LT_EOF
16165    ;;
16166  *) # Bourne compatible functions.
16167    cat << \_LT_EOF >> "$cfgfile"
16168
16169# func_dirname file append nondir_replacement
16170# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16171# otherwise set result to NONDIR_REPLACEMENT.
16172func_dirname ()
16173{
16174  # Extract subdirectory from the argument.
16175  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16176  if test "X$func_dirname_result" = "X${1}"; then
16177    func_dirname_result="${3}"
16178  else
16179    func_dirname_result="$func_dirname_result${2}"
16180  fi
16181}
16182
16183# func_basename file
16184func_basename ()
16185{
16186  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16187}
16188
16189
16190# func_stripname prefix suffix name
16191# strip PREFIX and SUFFIX off of NAME.
16192# PREFIX and SUFFIX must not contain globbing or regex special
16193# characters, hashes, percent signs, but SUFFIX may contain a leading
16194# dot (in which case that matches only a dot).
16195# func_strip_suffix prefix name
16196func_stripname ()
16197{
16198  case ${2} in
16199    .*) func_stripname_result=`$ECHO "X${3}" \
16200           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16201    *)  func_stripname_result=`$ECHO "X${3}" \
16202           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16203  esac
16204}
16205
16206# sed scripts:
16207my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16208my_sed_long_arg='1s/^-[^=]*=//'
16209
16210# func_opt_split
16211func_opt_split ()
16212{
16213  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16214  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16215}
16216
16217# func_lo2o object
16218func_lo2o ()
16219{
16220  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16221}
16222
16223# func_xform libobj-or-source
16224func_xform ()
16225{
16226  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16227}
16228
16229# func_arith arithmetic-term...
16230func_arith ()
16231{
16232  func_arith_result=`expr "$@"`
16233}
16234
16235# func_len string
16236# STRING may not start with a hyphen.
16237func_len ()
16238{
16239  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16240}
16241
16242_LT_EOF
16243esac
16244
16245case $lt_shell_append in
16246  yes)
16247    cat << \_LT_EOF >> "$cfgfile"
16248
16249# func_append var value
16250# Append VALUE to the end of shell variable VAR.
16251func_append ()
16252{
16253  eval "$1+=\$2"
16254}
16255_LT_EOF
16256    ;;
16257  *)
16258    cat << \_LT_EOF >> "$cfgfile"
16259
16260# func_append var value
16261# Append VALUE to the end of shell variable VAR.
16262func_append ()
16263{
16264  eval "$1=\$$1\$2"
16265}
16266
16267_LT_EOF
16268    ;;
16269  esac
16270
16271
16272  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16273    || (rm -f "$cfgfile"; exit 1)
16274
16275  mv -f "$cfgfile" "$ofile" ||
16276    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16277  chmod +x "$ofile"
16278
16279 ;;
16280
16281  esac
16282done # for ac_tag
16283
16284
16285as_fn_exit 0
16286_ACEOF
16287ac_clean_files=$ac_clean_files_save
16288
16289test $ac_write_fail = 0 ||
16290  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16291
16292
16293# configure is writing to config.log, and then calls config.status.
16294# config.status does its own redirection, appending to config.log.
16295# Unfortunately, on DOS this fails, as config.log is still kept open
16296# by configure, so config.status won't be able to write to it; its
16297# output is simply discarded.  So we exec the FD to /dev/null,
16298# effectively closing config.log, so it can be properly (re)opened and
16299# appended to by config.status.  When coming back to configure, we
16300# need to make the FD available again.
16301if test "$no_create" != yes; then
16302  ac_cs_success=:
16303  ac_config_status_args=
16304  test "$silent" = yes &&
16305    ac_config_status_args="$ac_config_status_args --quiet"
16306  exec 5>/dev/null
16307  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16308  exec 5>>config.log
16309  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16310  # would make configure fail if this is the last instruction.
16311  $ac_cs_success || as_fn_exit $?
16312fi
16313if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16314  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16315$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16316fi
16317
16318