1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.71 for pidgin 2.14.8.
4#
5# Report bugs to <devel@pidgin.im>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9# Inc.
10#
11#
12# This configure script is free software; the Free Software Foundation
13# gives unlimited permission to copy, distribute and modify it.
14## -------------------- ##
15## M4sh Initialization. ##
16## -------------------- ##
17
18# Be more Bourne compatible
19DUALCASE=1; export DUALCASE # for MKS sh
20as_nop=:
21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22then :
23  emulate sh
24  NULLCMD=:
25  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28  setopt NO_GLOB_SUBST
29else $as_nop
30  case `(set -o) 2>/dev/null` in #(
31  *posix*) :
32    set -o posix ;; #(
33  *) :
34     ;;
35esac
36fi
37
38
39
40# Reset variables that may have inherited troublesome values from
41# the environment.
42
43# IFS needs to be set, to space, tab, and newline, in precisely that order.
44# (If _AS_PATH_WALK were called with IFS unset, it would have the
45# side effect of setting IFS to empty, thus disabling word splitting.)
46# Quoting is to prevent editors from complaining about space-tab.
47as_nl='
48'
49export as_nl
50IFS=" ""	$as_nl"
51
52PS1='$ '
53PS2='> '
54PS4='+ '
55
56# Ensure predictable behavior from utilities with locale-dependent output.
57LC_ALL=C
58export LC_ALL
59LANGUAGE=C
60export LANGUAGE
61
62# We cannot yet rely on "unset" to work, but we need these variables
63# to be unset--not just set to an empty or harmless value--now, to
64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
65# also avoids known problems related to "unset" and subshell syntax
66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68do eval test \${$as_var+y} \
69  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70done
71
72# Ensure that fds 0, 1, and 2 are open.
73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
76
77# The user is always right.
78if ${PATH_SEPARATOR+false} :; then
79  PATH_SEPARATOR=:
80  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82      PATH_SEPARATOR=';'
83  }
84fi
85
86
87# Find who we are.  Look in the path if we contain no directory separator.
88as_myself=
89case $0 in #((
90  *[\\/]* ) as_myself=$0 ;;
91  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92for as_dir in $PATH
93do
94  IFS=$as_save_IFS
95  case $as_dir in #(((
96    '') as_dir=./ ;;
97    */) ;;
98    *) as_dir=$as_dir/ ;;
99  esac
100    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116
117# Use a proper internal environment variable to ensure we don't fall
118  # into an infinite loop, continuously re-executing ourselves.
119  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120    _as_can_reexec=no; export _as_can_reexec;
121    # We cannot yet assume a decent shell, so we have to provide a
122# neutralization value for shells without unset; and this also
123# works around shells that cannot unset nonexistent variables.
124# Preserve -v and -x to the replacement shell.
125BASH_ENV=/dev/null
126ENV=/dev/null
127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128case $- in # ((((
129  *v*x* | *x*v* ) as_opts=-vx ;;
130  *v* ) as_opts=-v ;;
131  *x* ) as_opts=-x ;;
132  * ) as_opts= ;;
133esac
134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135# Admittedly, this is quite paranoid, since all the known shells bail
136# out after a failed `exec'.
137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138exit 255
139  fi
140  # We don't want this to propagate to other subprocesses.
141          { _as_can_reexec=; unset _as_can_reexec;}
142if test "x$CONFIG_SHELL" = x; then
143  as_bourne_compatible="as_nop=:
144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145then :
146  emulate sh
147  NULLCMD=:
148  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149  # is contrary to our usage.  Disable this feature.
150  alias -g '\${1+\"\$@\"}'='\"\$@\"'
151  setopt NO_GLOB_SUBST
152else \$as_nop
153  case \`(set -o) 2>/dev/null\` in #(
154  *posix*) :
155    set -o posix ;; #(
156  *) :
157     ;;
158esac
159fi
160"
161  as_required="as_fn_return () { (exit \$1); }
162as_fn_success () { as_fn_return 0; }
163as_fn_failure () { as_fn_return 1; }
164as_fn_ret_success () { return 0; }
165as_fn_ret_failure () { return 1; }
166
167exitcode=0
168as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173then :
174
175else \$as_nop
176  exitcode=1; echo positional parameters were not saved.
177fi
178test x\$exitcode = x0 || exit 1
179blah=\$(echo \$(echo blah))
180test x\"\$blah\" = xblah || exit 1
181test -x / || exit 1"
182  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191    PATH=/empty FPATH=/empty; export PATH FPATH
192    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194test \$(( 1 + 1 )) = 2 || exit 1"
195  if (eval "$as_required") 2>/dev/null
196then :
197  as_have_required=yes
198else $as_nop
199  as_have_required=no
200fi
201  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202then :
203
204else $as_nop
205  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206as_found=false
207for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208do
209  IFS=$as_save_IFS
210  case $as_dir in #(((
211    '') as_dir=./ ;;
212    */) ;;
213    *) as_dir=$as_dir/ ;;
214  esac
215  as_found=:
216  case $as_dir in #(
217	 /*)
218	   for as_base in sh bash ksh sh5; do
219	     # Try only shells that exist, to save several forks.
220	     as_shell=$as_dir$as_base
221	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222		    as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223then :
224  CONFIG_SHELL=$as_shell as_have_required=yes
225		   if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226then :
227  break 2
228fi
229fi
230	   done;;
231       esac
232  as_found=false
233done
234IFS=$as_save_IFS
235if $as_found
236then :
237
238else $as_nop
239  if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241then :
242  CONFIG_SHELL=$SHELL as_have_required=yes
243fi
244fi
245
246
247      if test "x$CONFIG_SHELL" != x
248then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno
271then :
272  printf "%s\n" "$0: This script requires a shell more modern than all"
273  printf "%s\n" "$0: the shells that I found on your system."
274  if test ${ZSH_VERSION+y} ; then
275    printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276    printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277  else
278    printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and devel@pidgin.im
279$0: about your system, including any error possibly output
280$0: before this message. Then install a modern shell, or
281$0: manually run the script under such a shell if you do
282$0: have one."
283  fi
284  exit 1
285fi
286fi
287fi
288SHELL=${CONFIG_SHELL-/bin/sh}
289export SHELL
290# Unset more variables known to interfere with behavior of common tools.
291CLICOLOR_FORCE= GREP_OPTIONS=
292unset CLICOLOR_FORCE GREP_OPTIONS
293
294## --------------------- ##
295## M4sh Shell Functions. ##
296## --------------------- ##
297# as_fn_unset VAR
298# ---------------
299# Portably unset VAR.
300as_fn_unset ()
301{
302  { eval $1=; unset $1;}
303}
304as_unset=as_fn_unset
305
306
307# as_fn_set_status STATUS
308# -----------------------
309# Set $? to STATUS, without forking.
310as_fn_set_status ()
311{
312  return $1
313} # as_fn_set_status
314
315# as_fn_exit STATUS
316# -----------------
317# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
318as_fn_exit ()
319{
320  set +e
321  as_fn_set_status $1
322  exit $1
323} # as_fn_exit
324# as_fn_nop
325# ---------
326# Do nothing but, unlike ":", preserve the value of $?.
327as_fn_nop ()
328{
329  return $?
330}
331as_nop=as_fn_nop
332
333# as_fn_mkdir_p
334# -------------
335# Create "$as_dir" as a directory, including parents if necessary.
336as_fn_mkdir_p ()
337{
338
339  case $as_dir in #(
340  -*) as_dir=./$as_dir;;
341  esac
342  test -d "$as_dir" || eval $as_mkdir_p || {
343    as_dirs=
344    while :; do
345      case $as_dir in #(
346      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
347      *) as_qdir=$as_dir;;
348      esac
349      as_dirs="'$as_qdir' $as_dirs"
350      as_dir=`$as_dirname -- "$as_dir" ||
351$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
352	 X"$as_dir" : 'X\(//\)[^/]' \| \
353	 X"$as_dir" : 'X\(//\)$' \| \
354	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
355printf "%s\n" X"$as_dir" |
356    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
357	    s//\1/
358	    q
359	  }
360	  /^X\(\/\/\)[^/].*/{
361	    s//\1/
362	    q
363	  }
364	  /^X\(\/\/\)$/{
365	    s//\1/
366	    q
367	  }
368	  /^X\(\/\).*/{
369	    s//\1/
370	    q
371	  }
372	  s/.*/./; q'`
373      test -d "$as_dir" && break
374    done
375    test -z "$as_dirs" || eval "mkdir $as_dirs"
376  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
377
378
379} # as_fn_mkdir_p
380
381# as_fn_executable_p FILE
382# -----------------------
383# Test if FILE is an executable regular file.
384as_fn_executable_p ()
385{
386  test -f "$1" && test -x "$1"
387} # as_fn_executable_p
388# as_fn_append VAR VALUE
389# ----------------------
390# Append the text in VALUE to the end of the definition contained in VAR. Take
391# advantage of any shell optimizations that allow amortized linear growth over
392# repeated appends, instead of the typical quadratic growth present in naive
393# implementations.
394if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
395then :
396  eval 'as_fn_append ()
397  {
398    eval $1+=\$2
399  }'
400else $as_nop
401  as_fn_append ()
402  {
403    eval $1=\$$1\$2
404  }
405fi # as_fn_append
406
407# as_fn_arith ARG...
408# ------------------
409# Perform arithmetic evaluation on the ARGs, and store the result in the
410# global $as_val. Take advantage of shells that can avoid forks. The arguments
411# must be portable across $(()) and expr.
412if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
413then :
414  eval 'as_fn_arith ()
415  {
416    as_val=$(( $* ))
417  }'
418else $as_nop
419  as_fn_arith ()
420  {
421    as_val=`expr "$@" || test $? -eq 1`
422  }
423fi # as_fn_arith
424
425# as_fn_nop
426# ---------
427# Do nothing but, unlike ":", preserve the value of $?.
428as_fn_nop ()
429{
430  return $?
431}
432as_nop=as_fn_nop
433
434# as_fn_error STATUS ERROR [LINENO LOG_FD]
435# ----------------------------------------
436# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
437# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
438# script with STATUS, using 1 if that was 0.
439as_fn_error ()
440{
441  as_status=$1; test $as_status -eq 0 && as_status=1
442  if test "$4"; then
443    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
444    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
445  fi
446  printf "%s\n" "$as_me: error: $2" >&2
447  as_fn_exit $as_status
448} # as_fn_error
449
450if expr a : '\(a\)' >/dev/null 2>&1 &&
451   test "X`expr 00001 : '.*\(...\)'`" = X001; then
452  as_expr=expr
453else
454  as_expr=false
455fi
456
457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
458  as_basename=basename
459else
460  as_basename=false
461fi
462
463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
464  as_dirname=dirname
465else
466  as_dirname=false
467fi
468
469as_me=`$as_basename -- "$0" ||
470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
471	 X"$0" : 'X\(//\)$' \| \
472	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
473printf "%s\n" X/"$0" |
474    sed '/^.*\/\([^/][^/]*\)\/*$/{
475	    s//\1/
476	    q
477	  }
478	  /^X\/\(\/\/\)$/{
479	    s//\1/
480	    q
481	  }
482	  /^X\/\(\/\).*/{
483	    s//\1/
484	    q
485	  }
486	  s/.*/./; q'`
487
488# Avoid depending upon Character Ranges.
489as_cr_letters='abcdefghijklmnopqrstuvwxyz'
490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
491as_cr_Letters=$as_cr_letters$as_cr_LETTERS
492as_cr_digits='0123456789'
493as_cr_alnum=$as_cr_Letters$as_cr_digits
494
495
496  as_lineno_1=$LINENO as_lineno_1a=$LINENO
497  as_lineno_2=$LINENO as_lineno_2a=$LINENO
498  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
499  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
500  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
501  sed -n '
502    p
503    /[$]LINENO/=
504  ' <$as_myself |
505    sed '
506      s/[$]LINENO.*/&-/
507      t lineno
508      b
509      :lineno
510      N
511      :loop
512      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
513      t loop
514      s/-\n.*//
515    ' >$as_me.lineno &&
516  chmod +x "$as_me.lineno" ||
517    { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
518
519  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
520  # already done that, so ensure we don't try to do so again and fall
521  # in an infinite loop.  This has already happened in practice.
522  _as_can_reexec=no; export _as_can_reexec
523  # Don't try to exec as it changes $[0], causing all sort of problems
524  # (the dirname of $[0] is not the place where we might find the
525  # original and so on.  Autoconf is especially sensitive to this).
526  . "./$as_me.lineno"
527  # Exit status is that of the last command.
528  exit
529}
530
531
532# Determine whether it's possible to make 'echo' print without a newline.
533# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
534# for compatibility with existing Makefiles.
535ECHO_C= ECHO_N= ECHO_T=
536case `echo -n x` in #(((((
537-n*)
538  case `echo 'xy\c'` in
539  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
540  xy)  ECHO_C='\c';;
541  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
542       ECHO_T='	';;
543  esac;;
544*)
545  ECHO_N='-n';;
546esac
547
548# For backward compatibility with old third-party macros, we provide
549# the shell variables $as_echo and $as_echo_n.  New code should use
550# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
551as_echo='printf %s\n'
552as_echo_n='printf %s'
553
554
555rm -f conf$$ conf$$.exe conf$$.file
556if test -d conf$$.dir; then
557  rm -f conf$$.dir/conf$$.file
558else
559  rm -f conf$$.dir
560  mkdir conf$$.dir 2>/dev/null
561fi
562if (echo >conf$$.file) 2>/dev/null; then
563  if ln -s conf$$.file conf$$ 2>/dev/null; then
564    as_ln_s='ln -s'
565    # ... but there are two gotchas:
566    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
567    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
568    # In both cases, we have to default to `cp -pR'.
569    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
570      as_ln_s='cp -pR'
571  elif ln conf$$.file conf$$ 2>/dev/null; then
572    as_ln_s=ln
573  else
574    as_ln_s='cp -pR'
575  fi
576else
577  as_ln_s='cp -pR'
578fi
579rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
580rmdir conf$$.dir 2>/dev/null
581
582if mkdir -p . 2>/dev/null; then
583  as_mkdir_p='mkdir -p "$as_dir"'
584else
585  test -d ./-p && rmdir ./-p
586  as_mkdir_p=false
587fi
588
589as_test_x='test -x'
590as_executable_p=as_fn_executable_p
591
592# Sed expression to map a string onto a valid CPP name.
593as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
594
595# Sed expression to map a string onto a valid variable name.
596as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
597
598SHELL=${CONFIG_SHELL-/bin/sh}
599
600
601test -n "$DJDIR" || exec 7<&0 </dev/null
602exec 6>&1
603
604# Name of the host.
605# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
606# so uname gets run too.
607ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
608
609#
610# Initializations.
611#
612ac_default_prefix=/usr/local
613ac_clean_files=
614ac_config_libobj_dir=.
615LIBOBJS=
616cross_compiling=no
617subdirs=
618MFLAGS=
619MAKEFLAGS=
620
621# Identity of this package.
622PACKAGE_NAME='pidgin'
623PACKAGE_TARNAME='pidgin'
624PACKAGE_VERSION='2.14.8'
625PACKAGE_STRING='pidgin 2.14.8'
626PACKAGE_BUGREPORT='devel@pidgin.im'
627PACKAGE_URL=''
628
629# Factoring default headers for most tests.
630ac_includes_default="\
631#include <stddef.h>
632#ifdef HAVE_STDIO_H
633# include <stdio.h>
634#endif
635#ifdef HAVE_STDLIB_H
636# include <stdlib.h>
637#endif
638#ifdef HAVE_STRING_H
639# include <string.h>
640#endif
641#ifdef HAVE_INTTYPES_H
642# include <inttypes.h>
643#endif
644#ifdef HAVE_STDINT_H
645# include <stdint.h>
646#endif
647#ifdef HAVE_STRINGS_H
648# include <strings.h>
649#endif
650#ifdef HAVE_SYS_TYPES_H
651# include <sys/types.h>
652#endif
653#ifdef HAVE_SYS_STAT_H
654# include <sys/stat.h>
655#endif
656#ifdef HAVE_UNISTD_H
657# include <unistd.h>
658#endif"
659
660ac_header_c_list=
661ac_subst_vars='am__EXEEXT_FALSE
662am__EXEEXT_TRUE
663LTLIBOBJS
664PURPLE_AVAILABLE_FALSE
665PURPLE_AVAILABLE_TRUE
666FUZZ_FALSE
667FUZZ_TRUE
668HAVE_XSLTPROC_FALSE
669HAVE_XSLTPROC_TRUE
670HAVE_DOXYGEN_FALSE
671HAVE_DOXYGEN_TRUE
672enable_devhelp
673enable_dot
674enable_doxygen
675XSLTPROC
676DOT
677DOXYGEN
678ENABLE_TRAYCOMPAT_FALSE
679ENABLE_TRAYCOMPAT_TRUE
680INSTALL_PIXMAPS_FALSE
681INSTALL_PIXMAPS_TRUE
682HAVE_CHECK_FALSE
683HAVE_CHECK_TRUE
684CHECK_LIBS
685CHECK_CFLAGS
686ZEPHYR_LIBS
687ZEPHYR_LDFLAGS
688ZEPHYR_CFLAGS
689KRB4_LIBS
690KRB4_LDFLAGS
691KRB4_CFLAGS
692USE_CYRUS_SASL_FALSE
693USE_CYRUS_SASL_TRUE
694SASL_LIBS
695PLUGINS_DEFINE
696PLUGINS_FALSE
697PLUGINS_TRUE
698LDADD
699DEBUG_CFLAGS
700TK_LIBS
701USE_TK_FALSE
702USE_TK_TRUE
703TCL_CFLAGS
704TCL_LIBS
705USE_TCL_FALSE
706USE_TCL_TRUE
707USE_NSS_FALSE
708USE_NSS_TRUE
709NSS_LIBS
710NSS_CFLAGS
711USE_GNUTLS_FALSE
712USE_GNUTLS_TRUE
713GNUTLS_LIBS
714GNUTLS_CFLAGS
715INSTALL_SSL_CERTIFICATES_FALSE
716INSTALL_SSL_CERTIFICATES_TRUE
717SSL_CERTIFICATES_DIR
718LIBPERL_A
719DYNALOADER_A
720PERL_LIBS
721PERL_CFLAGS
722USE_PERL_FALSE
723USE_PERL_TRUE
724PERL
725perlpath
726USE_MONO_FALSE
727USE_MONO_TRUE
728MONO_LIBS
729MONO_CFLAGS
730ENABLE_DBUS_FALSE
731ENABLE_DBUS_TRUE
732DBUS_SERVICES_DIR
733PYTHON3
734ENABLE_UNITY_FALSE
735ENABLE_UNITY_TRUE
736USES_MM_CHAT_SECTION
737UNITY_LIBS
738UNITY_CFLAGS
739NETWORKMANAGER_LIBS
740NETWORKMANAGER_CFLAGS
741DBUS_LIBS
742DBUS_CFLAGS
743enable_dbus
744pidginpath
745EXTERNAL_LIBZEPHYR_FALSE
746EXTERNAL_LIBZEPHYR_TRUE
747DYNAMIC_PRPLS
748STATIC_LINK_LIBS
749STATIC_ZEPHYR_FALSE
750STATIC_ZEPHYR_TRUE
751STATIC_SIMPLE_FALSE
752STATIC_SIMPLE_TRUE
753STATIC_SILC_FALSE
754STATIC_SILC_TRUE
755STATIC_SAMETIME_FALSE
756STATIC_SAMETIME_TRUE
757STATIC_NOVELL_FALSE
758STATIC_NOVELL_TRUE
759STATIC_JABBER_FALSE
760STATIC_JABBER_TRUE
761STATIC_IRC_FALSE
762STATIC_IRC_TRUE
763STATIC_GG_FALSE
764STATIC_GG_TRUE
765STATIC_BONJOUR_FALSE
766STATIC_BONJOUR_TRUE
767STATIC_PRPLS
768DISTRIB_FALSE
769DISTRIB_TRUE
770GNUTLS_2_10_LIBS
771GNUTLS_2_10_CFLAGS
772HAVE_LIBGADU_FALSE
773HAVE_LIBGADU_TRUE
774LIBGADU_LIBS
775LIBGADU_CFLAGS
776SILC_LIBS
777SILC_CFLAGS
778AVAHI_LIBS
779AVAHI_CFLAGS
780MEANWHILE_LIBS
781MEANWHILE_CFLAGS
782IDN_LIBS
783IDN_CFLAGS
784GSTAPP_LIBS
785GSTAPP_CFLAGS
786USE_VV_FALSE
787USE_VV_TRUE
788FARSTREAM_LIBS
789FARSTREAM_CFLAGS
790GSTINTERFACES_LIBS
791GSTINTERFACES_CFLAGS
792GSTVIDEO_LIBS
793GSTVIDEO_CFLAGS
794GSTREAMER_VER
795GSTREAMER_LIBS
796GSTREAMER_CFLAGS
797GCONF_SCHEMAS_INSTALL_FALSE
798GCONF_SCHEMAS_INSTALL_TRUE
799GCONF_SCHEMA_FILE_DIR
800GCONF_SCHEMA_CONFIG_SOURCE
801USE_GCONFTOOL_FALSE
802USE_GCONFTOOL_TRUE
803GCONFTOOL
804LIBXML_LIBS
805LIBXML_CFLAGS
806ENABLE_GNT_FALSE
807ENABLE_GNT_TRUE
808GNT_LIBS
809GNT_CFLAGS
810LIBGNT_LIBS
811LIBGNT_CFLAGS
812ENABLE_GESTURES_FALSE
813ENABLE_GESTURES_TRUE
814ENABLE_CAP_FALSE
815ENABLE_CAP_TRUE
816BUILD_GEVOLUTION_FALSE
817BUILD_GEVOLUTION_TRUE
818ENABLE_GTK_FALSE
819ENABLE_GTK_TRUE
820SQLITE3_LIBS
821SQLITE3_CFLAGS
822EVOLUTION_ADDRESSBOOK_LIBS
823EVOLUTION_ADDRESSBOOK_CFLAGS
824GTKSPELL_LIBS
825GTKSPELL_CFLAGS
826SM_LIBS
827XSS_LIBS
828X11_LIBS
829X11_CFLAGS
830PANGO_LIBS
831PANGO_CFLAGS
832GTK_LIBS
833GTK_CFLAGS
834X_EXTRA_LIBS
835X_LIBS
836X_PRE_LIBS
837X_CFLAGS
838CPP
839XMKMF
840GLIB_GENMARSHAL
841GIO_UNIX_LIBS
842GIO_UNIX_CFLAGS
843GLIB_LIBS
844GLIB_CFLAGS
845INSTALL_I18N_FALSE
846INSTALL_I18N_TRUE
847MKINSTALLDIRS
848POSUB
849POFILES
850PO_IN_DATADIR_FALSE
851PO_IN_DATADIR_TRUE
852INTLLIBS
853INSTOBJEXT
854GMOFILES
855DATADIRNAME
856CATOBJEXT
857CATALOGS
858MSGFMT_OPTS
859INTL_MACOSX_LIBS
860GETTEXT_PACKAGE
861ALL_LINGUAS
862INTLTOOL_PERL
863GMSGFMT
864MSGFMT
865MSGMERGE
866XGETTEXT
867INTLTOOL_POLICY_RULE
868INTLTOOL_SERVICE_RULE
869INTLTOOL_THEME_RULE
870INTLTOOL_SCHEMAS_RULE
871INTLTOOL_CAVES_RULE
872INTLTOOL_XML_NOMERGE_RULE
873INTLTOOL_XML_RULE
874INTLTOOL_KBD_RULE
875INTLTOOL_XAM_RULE
876INTLTOOL_UI_RULE
877INTLTOOL_SOUNDLIST_RULE
878INTLTOOL_SHEET_RULE
879INTLTOOL_SERVER_RULE
880INTLTOOL_PONG_RULE
881INTLTOOL_OAF_RULE
882INTLTOOL_PROP_RULE
883INTLTOOL_KEYS_RULE
884INTLTOOL_DIRECTORY_RULE
885INTLTOOL_DESKTOP_RULE
886intltool__v_merge_options_0
887intltool__v_merge_options_
888INTLTOOL_V_MERGE_OPTIONS
889INTLTOOL__v_MERGE_0
890INTLTOOL__v_MERGE_
891INTLTOOL_V_MERGE
892INTLTOOL_EXTRACT
893INTLTOOL_MERGE
894INTLTOOL_UPDATE
895USE_NLS
896LIBOBJS
897LIBM
898ALLOCA
899PKG_CONFIG_LIBDIR
900PKG_CONFIG_PATH
901PKG_CONFIG
902LT_SYS_LIBRARY_PATH
903OTOOL64
904OTOOL
905LIPO
906NMEDIT
907DSYMUTIL
908MANIFEST_TOOL
909RANLIB
910ac_ct_AR
911AR
912DLLTOOL
913OBJDUMP
914LN_S
915NM
916ac_ct_DUMPBIN
917DUMPBIN
918LD
919FGREP
920EGREP
921GREP
922SED
923LIBTOOL
924am__fastdepCC_FALSE
925am__fastdepCC_TRUE
926CCDEPMODE
927am__nodep
928AMDEPBACKSLASH
929AMDEP_FALSE
930AMDEP_TRUE
931am__include
932DEPDIR
933OBJEXT
934EXEEXT
935ac_ct_CC
936CPPFLAGS
937LDFLAGS
938CFLAGS
939CC
940sedpath
941PURPLE_LT_VERSION_INFO
942PURPLE_VERSION
943PURPLE_MICRO_VERSION
944PURPLE_MINOR_VERSION
945PURPLE_MAJOR_VERSION
946AM_BACKSLASH
947AM_DEFAULT_VERBOSITY
948AM_DEFAULT_V
949AM_V
950CSCOPE
951ETAGS
952CTAGS
953am__untar
954am__tar
955AMTAR
956am__leading_dot
957SET_MAKE
958AWK
959mkdir_p
960MKDIR_P
961INSTALL_STRIP_PROGRAM
962STRIP
963install_sh
964MAKEINFO
965AUTOHEADER
966AUTOMAKE
967AUTOCONF
968ACLOCAL
969VERSION
970PACKAGE
971CYGPATH_W
972am__isrc
973INSTALL_DATA
974INSTALL_SCRIPT
975INSTALL_PROGRAM
976host_os
977host_vendor
978host_cpu
979host
980build_os
981build_vendor
982build_cpu
983build
984target_alias
985host_alias
986build_alias
987LIBS
988ECHO_T
989ECHO_N
990ECHO_C
991DEFS
992mandir
993localedir
994libdir
995psdir
996pdfdir
997dvidir
998htmldir
999infodir
1000docdir
1001oldincludedir
1002includedir
1003runstatedir
1004localstatedir
1005sharedstatedir
1006sysconfdir
1007datadir
1008datarootdir
1009libexecdir
1010sbindir
1011bindir
1012program_transform_name
1013prefix
1014exec_prefix
1015PACKAGE_URL
1016PACKAGE_BUGREPORT
1017PACKAGE_STRING
1018PACKAGE_VERSION
1019PACKAGE_TARNAME
1020PACKAGE_NAME
1021PATH_SEPARATOR
1022SHELL
1023am__quote'
1024ac_subst_files=''
1025ac_user_opts='
1026enable_option_checking
1027enable_silent_rules
1028enable_dependency_tracking
1029enable_static
1030enable_shared
1031with_pic
1032enable_fast_install
1033with_aix_soname
1034with_gnu_ld
1035with_sysroot
1036enable_libtool_lock
1037enable_largefile
1038enable_nls
1039with_extraversion
1040enable_missing_dependencies
1041with_x
1042enable_gtkui
1043enable_consoleui
1044enable_screensaver
1045enable_sm
1046enable_startup_notification
1047enable_gtkspell
1048enable_gevolution
1049enable_cap
1050enable_gestures
1051with_ncurses_headers
1052with_gconf_source
1053with_gconf_schema_file_dir
1054enable_schemas_install
1055enable_gstreamer
1056with_gstreamer
1057enable_gstreamer_video
1058enable_gstreamer_interfaces
1059enable_farstream
1060enable_vv
1061enable_idn
1062enable_meanwhile
1063enable_avahi
1064with_avahi_client_includes
1065with_avahi_client_libs
1066with_silc_includes
1067with_silc_libs
1068enable_distrib
1069with_static_prpls
1070with_dynamic_prpls
1071enable_plugins
1072with_krb4
1073with_zephyr
1074enable_fortify
1075enable_dbus
1076enable_nm
1077enable_unity
1078with_python3
1079with_dbus_services
1080enable_mono
1081enable_perl
1082with_system_ssl_certs
1083enable_gnutls
1084enable_nss
1085with_gnutls_includes
1086with_gnutls_libs
1087with_nspr_includes
1088with_nspr_libs
1089with_nss_includes
1090with_nss_libs
1091enable_tcl
1092with_tclconfig
1093enable_tk
1094with_tkconfig
1095enable_cyrus_sasl
1096enable_pixmaps_install
1097enable_trayicon_compat
1098enable_doxygen
1099enable_dot
1100enable_devhelp
1101enable_fuzzing
1102enable_debug
1103'
1104      ac_precious_vars='build_alias
1105host_alias
1106target_alias
1107CC
1108CFLAGS
1109LDFLAGS
1110LIBS
1111CPPFLAGS
1112LT_SYS_LIBRARY_PATH
1113PKG_CONFIG
1114PKG_CONFIG_PATH
1115PKG_CONFIG_LIBDIR
1116GLIB_CFLAGS
1117GLIB_LIBS
1118GIO_UNIX_CFLAGS
1119GIO_UNIX_LIBS
1120XMKMF
1121CPP
1122GTK_CFLAGS
1123GTK_LIBS
1124PANGO_CFLAGS
1125PANGO_LIBS
1126X11_CFLAGS
1127X11_LIBS
1128GTKSPELL_CFLAGS
1129GTKSPELL_LIBS
1130EVOLUTION_ADDRESSBOOK_CFLAGS
1131EVOLUTION_ADDRESSBOOK_LIBS
1132SQLITE3_CFLAGS
1133SQLITE3_LIBS
1134LIBGNT_CFLAGS
1135LIBGNT_LIBS
1136GNT_CFLAGS
1137GNT_LIBS
1138LIBXML_CFLAGS
1139LIBXML_LIBS
1140GSTREAMER_CFLAGS
1141GSTREAMER_LIBS
1142GSTVIDEO_CFLAGS
1143GSTVIDEO_LIBS
1144GSTINTERFACES_CFLAGS
1145GSTINTERFACES_LIBS
1146FARSTREAM_CFLAGS
1147FARSTREAM_LIBS
1148GSTAPP_CFLAGS
1149GSTAPP_LIBS
1150IDN_CFLAGS
1151IDN_LIBS
1152MEANWHILE_CFLAGS
1153MEANWHILE_LIBS
1154AVAHI_CFLAGS
1155AVAHI_LIBS
1156SILC_CFLAGS
1157SILC_LIBS
1158LIBGADU_CFLAGS
1159LIBGADU_LIBS
1160GNUTLS_2_10_CFLAGS
1161GNUTLS_2_10_LIBS
1162DBUS_CFLAGS
1163DBUS_LIBS
1164NETWORKMANAGER_CFLAGS
1165NETWORKMANAGER_LIBS
1166UNITY_CFLAGS
1167UNITY_LIBS
1168MONO_CFLAGS
1169MONO_LIBS
1170NSS_CFLAGS
1171NSS_LIBS
1172CHECK_CFLAGS
1173CHECK_LIBS'
1174
1175
1176# Initialize some variables set by options.
1177ac_init_help=
1178ac_init_version=false
1179ac_unrecognized_opts=
1180ac_unrecognized_sep=
1181# The variables have the same names as the options, with
1182# dashes changed to underlines.
1183cache_file=/dev/null
1184exec_prefix=NONE
1185no_create=
1186no_recursion=
1187prefix=NONE
1188program_prefix=NONE
1189program_suffix=NONE
1190program_transform_name=s,x,x,
1191silent=
1192site=
1193srcdir=
1194verbose=
1195x_includes=NONE
1196x_libraries=NONE
1197
1198# Installation directory options.
1199# These are left unexpanded so users can "make install exec_prefix=/foo"
1200# and all the variables that are supposed to be based on exec_prefix
1201# by default will actually change.
1202# Use braces instead of parens because sh, perl, etc. also accept them.
1203# (The list follows the same order as the GNU Coding Standards.)
1204bindir='${exec_prefix}/bin'
1205sbindir='${exec_prefix}/sbin'
1206libexecdir='${exec_prefix}/libexec'
1207datarootdir='${prefix}/share'
1208datadir='${datarootdir}'
1209sysconfdir='${prefix}/etc'
1210sharedstatedir='${prefix}/com'
1211localstatedir='${prefix}/var'
1212runstatedir='${localstatedir}/run'
1213includedir='${prefix}/include'
1214oldincludedir='/usr/include'
1215docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1216infodir='${datarootdir}/info'
1217htmldir='${docdir}'
1218dvidir='${docdir}'
1219pdfdir='${docdir}'
1220psdir='${docdir}'
1221libdir='${exec_prefix}/lib'
1222localedir='${datarootdir}/locale'
1223mandir='${datarootdir}/man'
1224
1225ac_prev=
1226ac_dashdash=
1227for ac_option
1228do
1229  # If the previous option needs an argument, assign it.
1230  if test -n "$ac_prev"; then
1231    eval $ac_prev=\$ac_option
1232    ac_prev=
1233    continue
1234  fi
1235
1236  case $ac_option in
1237  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1238  *=)   ac_optarg= ;;
1239  *)    ac_optarg=yes ;;
1240  esac
1241
1242  case $ac_dashdash$ac_option in
1243  --)
1244    ac_dashdash=yes ;;
1245
1246  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1247    ac_prev=bindir ;;
1248  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1249    bindir=$ac_optarg ;;
1250
1251  -build | --build | --buil | --bui | --bu)
1252    ac_prev=build_alias ;;
1253  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1254    build_alias=$ac_optarg ;;
1255
1256  -cache-file | --cache-file | --cache-fil | --cache-fi \
1257  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1258    ac_prev=cache_file ;;
1259  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1260  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1261    cache_file=$ac_optarg ;;
1262
1263  --config-cache | -C)
1264    cache_file=config.cache ;;
1265
1266  -datadir | --datadir | --datadi | --datad)
1267    ac_prev=datadir ;;
1268  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1269    datadir=$ac_optarg ;;
1270
1271  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1272  | --dataroo | --dataro | --datar)
1273    ac_prev=datarootdir ;;
1274  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1275  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1276    datarootdir=$ac_optarg ;;
1277
1278  -disable-* | --disable-*)
1279    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1280    # Reject names that are not valid shell variable names.
1281    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1282      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1283    ac_useropt_orig=$ac_useropt
1284    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1285    case $ac_user_opts in
1286      *"
1287"enable_$ac_useropt"
1288"*) ;;
1289      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1290	 ac_unrecognized_sep=', ';;
1291    esac
1292    eval enable_$ac_useropt=no ;;
1293
1294  -docdir | --docdir | --docdi | --doc | --do)
1295    ac_prev=docdir ;;
1296  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1297    docdir=$ac_optarg ;;
1298
1299  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1300    ac_prev=dvidir ;;
1301  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1302    dvidir=$ac_optarg ;;
1303
1304  -enable-* | --enable-*)
1305    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1306    # Reject names that are not valid shell variable names.
1307    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1308      as_fn_error $? "invalid feature name: \`$ac_useropt'"
1309    ac_useropt_orig=$ac_useropt
1310    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1311    case $ac_user_opts in
1312      *"
1313"enable_$ac_useropt"
1314"*) ;;
1315      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1316	 ac_unrecognized_sep=', ';;
1317    esac
1318    eval enable_$ac_useropt=\$ac_optarg ;;
1319
1320  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1321  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1322  | --exec | --exe | --ex)
1323    ac_prev=exec_prefix ;;
1324  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1325  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1326  | --exec=* | --exe=* | --ex=*)
1327    exec_prefix=$ac_optarg ;;
1328
1329  -gas | --gas | --ga | --g)
1330    # Obsolete; use --with-gas.
1331    with_gas=yes ;;
1332
1333  -help | --help | --hel | --he | -h)
1334    ac_init_help=long ;;
1335  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1336    ac_init_help=recursive ;;
1337  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1338    ac_init_help=short ;;
1339
1340  -host | --host | --hos | --ho)
1341    ac_prev=host_alias ;;
1342  -host=* | --host=* | --hos=* | --ho=*)
1343    host_alias=$ac_optarg ;;
1344
1345  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1346    ac_prev=htmldir ;;
1347  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1348  | --ht=*)
1349    htmldir=$ac_optarg ;;
1350
1351  -includedir | --includedir | --includedi | --included | --include \
1352  | --includ | --inclu | --incl | --inc)
1353    ac_prev=includedir ;;
1354  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1355  | --includ=* | --inclu=* | --incl=* | --inc=*)
1356    includedir=$ac_optarg ;;
1357
1358  -infodir | --infodir | --infodi | --infod | --info | --inf)
1359    ac_prev=infodir ;;
1360  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1361    infodir=$ac_optarg ;;
1362
1363  -libdir | --libdir | --libdi | --libd)
1364    ac_prev=libdir ;;
1365  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1366    libdir=$ac_optarg ;;
1367
1368  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1369  | --libexe | --libex | --libe)
1370    ac_prev=libexecdir ;;
1371  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1372  | --libexe=* | --libex=* | --libe=*)
1373    libexecdir=$ac_optarg ;;
1374
1375  -localedir | --localedir | --localedi | --localed | --locale)
1376    ac_prev=localedir ;;
1377  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1378    localedir=$ac_optarg ;;
1379
1380  -localstatedir | --localstatedir | --localstatedi | --localstated \
1381  | --localstate | --localstat | --localsta | --localst | --locals)
1382    ac_prev=localstatedir ;;
1383  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1384  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1385    localstatedir=$ac_optarg ;;
1386
1387  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1388    ac_prev=mandir ;;
1389  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1390    mandir=$ac_optarg ;;
1391
1392  -nfp | --nfp | --nf)
1393    # Obsolete; use --without-fp.
1394    with_fp=no ;;
1395
1396  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1397  | --no-cr | --no-c | -n)
1398    no_create=yes ;;
1399
1400  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1401  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1402    no_recursion=yes ;;
1403
1404  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1405  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1406  | --oldin | --oldi | --old | --ol | --o)
1407    ac_prev=oldincludedir ;;
1408  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1409  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1410  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1411    oldincludedir=$ac_optarg ;;
1412
1413  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1414    ac_prev=prefix ;;
1415  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1416    prefix=$ac_optarg ;;
1417
1418  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1419  | --program-pre | --program-pr | --program-p)
1420    ac_prev=program_prefix ;;
1421  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1422  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1423    program_prefix=$ac_optarg ;;
1424
1425  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1426  | --program-suf | --program-su | --program-s)
1427    ac_prev=program_suffix ;;
1428  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1429  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1430    program_suffix=$ac_optarg ;;
1431
1432  -program-transform-name | --program-transform-name \
1433  | --program-transform-nam | --program-transform-na \
1434  | --program-transform-n | --program-transform- \
1435  | --program-transform | --program-transfor \
1436  | --program-transfo | --program-transf \
1437  | --program-trans | --program-tran \
1438  | --progr-tra | --program-tr | --program-t)
1439    ac_prev=program_transform_name ;;
1440  -program-transform-name=* | --program-transform-name=* \
1441  | --program-transform-nam=* | --program-transform-na=* \
1442  | --program-transform-n=* | --program-transform-=* \
1443  | --program-transform=* | --program-transfor=* \
1444  | --program-transfo=* | --program-transf=* \
1445  | --program-trans=* | --program-tran=* \
1446  | --progr-tra=* | --program-tr=* | --program-t=*)
1447    program_transform_name=$ac_optarg ;;
1448
1449  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1450    ac_prev=pdfdir ;;
1451  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1452    pdfdir=$ac_optarg ;;
1453
1454  -psdir | --psdir | --psdi | --psd | --ps)
1455    ac_prev=psdir ;;
1456  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1457    psdir=$ac_optarg ;;
1458
1459  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1460  | -silent | --silent | --silen | --sile | --sil)
1461    silent=yes ;;
1462
1463  -runstatedir | --runstatedir | --runstatedi | --runstated \
1464  | --runstate | --runstat | --runsta | --runst | --runs \
1465  | --run | --ru | --r)
1466    ac_prev=runstatedir ;;
1467  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1468  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1469  | --run=* | --ru=* | --r=*)
1470    runstatedir=$ac_optarg ;;
1471
1472  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1473    ac_prev=sbindir ;;
1474  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1475  | --sbi=* | --sb=*)
1476    sbindir=$ac_optarg ;;
1477
1478  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1479  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1480  | --sharedst | --shareds | --shared | --share | --shar \
1481  | --sha | --sh)
1482    ac_prev=sharedstatedir ;;
1483  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1484  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1485  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1486  | --sha=* | --sh=*)
1487    sharedstatedir=$ac_optarg ;;
1488
1489  -site | --site | --sit)
1490    ac_prev=site ;;
1491  -site=* | --site=* | --sit=*)
1492    site=$ac_optarg ;;
1493
1494  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1495    ac_prev=srcdir ;;
1496  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1497    srcdir=$ac_optarg ;;
1498
1499  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1500  | --syscon | --sysco | --sysc | --sys | --sy)
1501    ac_prev=sysconfdir ;;
1502  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1503  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1504    sysconfdir=$ac_optarg ;;
1505
1506  -target | --target | --targe | --targ | --tar | --ta | --t)
1507    ac_prev=target_alias ;;
1508  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1509    target_alias=$ac_optarg ;;
1510
1511  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1512    verbose=yes ;;
1513
1514  -version | --version | --versio | --versi | --vers | -V)
1515    ac_init_version=: ;;
1516
1517  -with-* | --with-*)
1518    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1519    # Reject names that are not valid shell variable names.
1520    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1521      as_fn_error $? "invalid package name: \`$ac_useropt'"
1522    ac_useropt_orig=$ac_useropt
1523    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1524    case $ac_user_opts in
1525      *"
1526"with_$ac_useropt"
1527"*) ;;
1528      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1529	 ac_unrecognized_sep=', ';;
1530    esac
1531    eval with_$ac_useropt=\$ac_optarg ;;
1532
1533  -without-* | --without-*)
1534    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1535    # Reject names that are not valid shell variable names.
1536    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1537      as_fn_error $? "invalid package name: \`$ac_useropt'"
1538    ac_useropt_orig=$ac_useropt
1539    ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1540    case $ac_user_opts in
1541      *"
1542"with_$ac_useropt"
1543"*) ;;
1544      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1545	 ac_unrecognized_sep=', ';;
1546    esac
1547    eval with_$ac_useropt=no ;;
1548
1549  --x)
1550    # Obsolete; use --with-x.
1551    with_x=yes ;;
1552
1553  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1554  | --x-incl | --x-inc | --x-in | --x-i)
1555    ac_prev=x_includes ;;
1556  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1557  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1558    x_includes=$ac_optarg ;;
1559
1560  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1561  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1562    ac_prev=x_libraries ;;
1563  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1564  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1565    x_libraries=$ac_optarg ;;
1566
1567  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1568Try \`$0 --help' for more information"
1569    ;;
1570
1571  *=*)
1572    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1573    # Reject names that are not valid shell variable names.
1574    case $ac_envvar in #(
1575      '' | [0-9]* | *[!_$as_cr_alnum]* )
1576      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1577    esac
1578    eval $ac_envvar=\$ac_optarg
1579    export $ac_envvar ;;
1580
1581  *)
1582    # FIXME: should be removed in autoconf 3.0.
1583    printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1584    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1585      printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1586    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1587    ;;
1588
1589  esac
1590done
1591
1592if test -n "$ac_prev"; then
1593  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1594  as_fn_error $? "missing argument to $ac_option"
1595fi
1596
1597if test -n "$ac_unrecognized_opts"; then
1598  case $enable_option_checking in
1599    no) ;;
1600    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1601    *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1602  esac
1603fi
1604
1605# Check all directory arguments for consistency.
1606for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1607		datadir sysconfdir sharedstatedir localstatedir includedir \
1608		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1609		libdir localedir mandir runstatedir
1610do
1611  eval ac_val=\$$ac_var
1612  # Remove trailing slashes.
1613  case $ac_val in
1614    */ )
1615      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1616      eval $ac_var=\$ac_val;;
1617  esac
1618  # Be sure to have absolute directory names.
1619  case $ac_val in
1620    [\\/$]* | ?:[\\/]* )  continue;;
1621    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622  esac
1623  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1624done
1625
1626# There might be people who depend on the old broken behavior: `$host'
1627# used to hold the argument of --host etc.
1628# FIXME: To remove some day.
1629build=$build_alias
1630host=$host_alias
1631target=$target_alias
1632
1633# FIXME: To remove some day.
1634if test "x$host_alias" != x; then
1635  if test "x$build_alias" = x; then
1636    cross_compiling=maybe
1637  elif test "x$build_alias" != "x$host_alias"; then
1638    cross_compiling=yes
1639  fi
1640fi
1641
1642ac_tool_prefix=
1643test -n "$host_alias" && ac_tool_prefix=$host_alias-
1644
1645test "$silent" = yes && exec 6>/dev/null
1646
1647
1648ac_pwd=`pwd` && test -n "$ac_pwd" &&
1649ac_ls_di=`ls -di .` &&
1650ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1651  as_fn_error $? "working directory cannot be determined"
1652test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1653  as_fn_error $? "pwd does not report name of working directory"
1654
1655
1656# Find the source files, if location was not specified.
1657if test -z "$srcdir"; then
1658  ac_srcdir_defaulted=yes
1659  # Try the directory containing this script, then the parent directory.
1660  ac_confdir=`$as_dirname -- "$as_myself" ||
1661$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1662	 X"$as_myself" : 'X\(//\)[^/]' \| \
1663	 X"$as_myself" : 'X\(//\)$' \| \
1664	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1665printf "%s\n" X"$as_myself" |
1666    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1667	    s//\1/
1668	    q
1669	  }
1670	  /^X\(\/\/\)[^/].*/{
1671	    s//\1/
1672	    q
1673	  }
1674	  /^X\(\/\/\)$/{
1675	    s//\1/
1676	    q
1677	  }
1678	  /^X\(\/\).*/{
1679	    s//\1/
1680	    q
1681	  }
1682	  s/.*/./; q'`
1683  srcdir=$ac_confdir
1684  if test ! -r "$srcdir/$ac_unique_file"; then
1685    srcdir=..
1686  fi
1687else
1688  ac_srcdir_defaulted=no
1689fi
1690if test ! -r "$srcdir/$ac_unique_file"; then
1691  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1692  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1693fi
1694ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1695ac_abs_confdir=`(
1696	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1697	pwd)`
1698# When building in place, set srcdir=.
1699if test "$ac_abs_confdir" = "$ac_pwd"; then
1700  srcdir=.
1701fi
1702# Remove unnecessary trailing slashes from srcdir.
1703# Double slashes in file names in object file debugging info
1704# mess up M-x gdb in Emacs.
1705case $srcdir in
1706*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1707esac
1708for ac_var in $ac_precious_vars; do
1709  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1710  eval ac_env_${ac_var}_value=\$${ac_var}
1711  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1712  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1713done
1714
1715#
1716# Report the --help message.
1717#
1718if test "$ac_init_help" = "long"; then
1719  # Omit some internal or obsolete options to make the list less imposing.
1720  # This message is too long to be a string in the A/UX 3.1 sh.
1721  cat <<_ACEOF
1722\`configure' configures pidgin 2.14.8 to adapt to many kinds of systems.
1723
1724Usage: $0 [OPTION]... [VAR=VALUE]...
1725
1726To assign environment variables (e.g., CC, CFLAGS...), specify them as
1727VAR=VALUE.  See below for descriptions of some of the useful variables.
1728
1729Defaults for the options are specified in brackets.
1730
1731Configuration:
1732  -h, --help              display this help and exit
1733      --help=short        display options specific to this package
1734      --help=recursive    display the short help of all the included packages
1735  -V, --version           display version information and exit
1736  -q, --quiet, --silent   do not print \`checking ...' messages
1737      --cache-file=FILE   cache test results in FILE [disabled]
1738  -C, --config-cache      alias for \`--cache-file=config.cache'
1739  -n, --no-create         do not create output files
1740      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1741
1742Installation directories:
1743  --prefix=PREFIX         install architecture-independent files in PREFIX
1744                          [$ac_default_prefix]
1745  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1746                          [PREFIX]
1747
1748By default, \`make install' will install all the files in
1749\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1750an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1751for instance \`--prefix=\$HOME'.
1752
1753For better control, use the options below.
1754
1755Fine tuning of the installation directories:
1756  --bindir=DIR            user executables [EPREFIX/bin]
1757  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1758  --libexecdir=DIR        program executables [EPREFIX/libexec]
1759  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1760  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1761  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1762  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1763  --libdir=DIR            object code libraries [EPREFIX/lib]
1764  --includedir=DIR        C header files [PREFIX/include]
1765  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1766  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1767  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1768  --infodir=DIR           info documentation [DATAROOTDIR/info]
1769  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1770  --mandir=DIR            man documentation [DATAROOTDIR/man]
1771  --docdir=DIR            documentation root [DATAROOTDIR/doc/pidgin]
1772  --htmldir=DIR           html documentation [DOCDIR]
1773  --dvidir=DIR            dvi documentation [DOCDIR]
1774  --pdfdir=DIR            pdf documentation [DOCDIR]
1775  --psdir=DIR             ps documentation [DOCDIR]
1776_ACEOF
1777
1778  cat <<\_ACEOF
1779
1780Program names:
1781  --program-prefix=PREFIX            prepend PREFIX to installed program names
1782  --program-suffix=SUFFIX            append SUFFIX to installed program names
1783  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1784
1785X features:
1786  --x-includes=DIR    X include files are in DIR
1787  --x-libraries=DIR   X library files are in DIR
1788
1789System types:
1790  --build=BUILD     configure for building on BUILD [guessed]
1791  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1792_ACEOF
1793fi
1794
1795if test -n "$ac_init_help"; then
1796  case $ac_init_help in
1797     short | recursive ) echo "Configuration of pidgin 2.14.8:";;
1798   esac
1799  cat <<\_ACEOF
1800
1801Optional Features:
1802  --disable-option-checking  ignore unrecognized --enable/--with options
1803  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1804  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1805  --enable-silent-rules   less verbose build output (undo: "make V=1")
1806  --disable-silent-rules  verbose build output (undo: "make V=0")
1807  --enable-dependency-tracking
1808                          do not reject slow dependency extractors
1809  --disable-dependency-tracking
1810                          speeds up one-time build
1811  --enable-static[=PKGS]  build static libraries [default=no]
1812  --enable-shared[=PKGS]  build shared libraries [default=yes]
1813  --enable-fast-install[=PKGS]
1814                          optimize for fast installation [default=yes]
1815  --disable-libtool-lock  avoid locking (might break parallel builds)
1816  --disable-largefile     omit support for large files
1817  --disable-nls           disable installation of translation files
1818  --disable-nls           do not use Native Language Support
1819  --disable-missing-dependencies
1820                          skip missing dependencies instead of aborting
1821                          configure
1822  --disable-gtkui         compile without GTK+ user interface
1823  --disable-consoleui     compile without console user interface
1824  --disable-screensaver   compile without X screensaver extension (used to
1825                          detect idleness)
1826  --disable-sm            compile without X session management support
1827  --disable-startup-notification
1828                          compile without startup notification support
1829  --disable-gtkspell      compile without GtkSpell automatic spell checking
1830  --enable-gevolution     compile with the Evolution plugin
1831  --enable-cap            compile with Contact Availability Prediction plugin
1832  --disable-gestures      compile without the gestures plugin
1833  --disable-schemas-install	Disable the schemas installation
1834  --disable-gstreamer     compile without GStreamer audio support
1835  --disable-gstreamer-video
1836                          compile without GStreamer 1.0 Video Overlay support
1837  --disable-gstreamer-interfaces
1838                          compile without GStreamer 0.10 interface support
1839  --disable-farstream     compile without farstream support
1840  --disable-vv            compile without voice and video support
1841  --disable-idn           compile without IDN support
1842  --disable-meanwhile     compile without meanwhile (required for Sametime
1843                          support)
1844  --disable-avahi         compile without avahi (required for Bonjour support)
1845
1846  --disable-plugins       compile without plugin support
1847  --disable-fortify       compile without FORTIFY_SOURCE support
1848  --disable-dbus          disable D-Bus support
1849  --disable-nm            disable NetworkManager support (requires D-Bus)
1850  --enable-unity          compile with support for unity integration plugin
1851  --enable-mono           compile with Mono runtime support (experimental)
1852  --disable-perl          compile without perl scripting
1853  --enable-gnutls=yes,no  attempt to use GnuTLS for SSL support default=yes
1854  --enable-nss=yes,no,static    attempt to use Mozilla libnss for SSL support default=yes
1855  --disable-tcl           compile without Tcl scripting
1856  --disable-tk            compile without Tcl support for Tk
1857  --enable-cyrus-sasl     enable Cyrus SASL support for xmpp/irc
1858  --disable-pixmaps-install
1859                          disable installation of pixmap files - Pidgin still
1860                          needs them!
1861  --enable-trayicon-compat
1862                          install tray icons in location compatible with older
1863                          releases of hicolor-icon-theme
1864  --disable-doxygen       disable documentation with doxygen
1865  --disable-dot           disable graphs in doxygen via 'dot'
1866  --disable-devhelp       disable building index for devhelp documentation
1867                          browser
1868--enable-fuzzing    Turn on fuzzing
1869  --enable-debug          compile with debugging support
1870
1871Optional Packages:
1872  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1873  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1874  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1875                          both]
1876  --with-aix-soname=aix|svr4|both
1877                          shared library versioning (aka "SONAME") variant to
1878                          provide on AIX, [default=aix].
1879  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1880  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1881                          compiler's sysroot if not specified).
1882  --with-extraversion=STRING
1883                          extra version number to be displayed in Help->About
1884                          and --help (for packagers)
1885
1886  --with-x                use the X Window System
1887  --with-ncurses-headers=DIR
1888                          compile finch against the ncurses includes in DIR
1889  --with-gconf-source=sourceaddress      Config database for installing schema files.
1890  --with-gconf-schema-file-dir=dir        Directory for installing schema files.
1891  --with-gstreamer=<version>
1892                          compile with GStreamer 0.10 or 1.0 interface
1893                          (default: auto)
1894  --with-avahi-client-includes=DIR
1895                          compile the Bonjour plugin against the Avahi Client
1896                          includes in DIR
1897  --with-avahi-client-libs=DIR
1898                          compile the Bonjour plugin against the Avahi Client
1899                          libs in DIR
1900  --with-silc-includes=DIR
1901                          compile the SILC plugin against includes in DIR
1902  --with-silc-libs=DIR    compile the SILC plugin against the SILC libs in DIR
1903  --with-static-prpls     Link to certain protocols statically
1904  --with-dynamic-prpls    specify which protocols to build dynamically
1905  --with-krb4=PREFIX      compile Zephyr plugin with Kerberos 4 support
1906  --with-zephyr=PREFIX    compile Zephyr plugin against external libzephyr
1907  --with-python3=PATH     which python interpreter to use for dbus code
1908                          generation
1909  --with-dbus-services=<dir>
1910                          where the D-Bus services directory is located.
1911  --with-system-ssl-certs=<dir>
1912                          directory containing system-wide SSL CA certificates
1913  --with-gnutls-includes=PREFIX   location of GnuTLS includes.
1914  --with-gnutls-libs=PREFIX
1915                          location of GnuTLS libraries.
1916  --with-nspr-includes=PREFIX
1917                          specify location of Mozilla nspr4 includes.
1918  --with-nspr-libs=PREFIX specify location of Mozilla nspr4 libs.
1919  --with-nss-includes=PREFIX
1920                          specify location of Mozilla nss3 includes.
1921  --with-nss-libs=PREFIX  specify location of Mozilla nss3 libs.
1922  --with-tclconfig=DIR    directory containing tclConfig.sh
1923  --with-tkconfig=DIR     directory containing tkConfig.sh
1924
1925Some influential environment variables:
1926  CC          C compiler command
1927  CFLAGS      C compiler flags
1928  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1929              nonstandard directory <lib dir>
1930  LIBS        libraries to pass to the linker, e.g. -l<library>
1931  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1932              you have headers in a nonstandard directory <include dir>
1933  LT_SYS_LIBRARY_PATH
1934              User-defined run-time library search path.
1935  PKG_CONFIG  path to pkg-config utility
1936  PKG_CONFIG_PATH
1937              directories to add to pkg-config's search path
1938  PKG_CONFIG_LIBDIR
1939              path overriding pkg-config's built-in search path
1940  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1941  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1942  GIO_UNIX_CFLAGS
1943              C compiler flags for GIO_UNIX, overriding pkg-config
1944  GIO_UNIX_LIBS
1945              linker flags for GIO_UNIX, overriding pkg-config
1946  XMKMF       Path to xmkmf, Makefile generator for X Window System
1947  CPP         C preprocessor
1948  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1949  GTK_LIBS    linker flags for GTK, overriding pkg-config
1950  PANGO_CFLAGS
1951              C compiler flags for PANGO, overriding pkg-config
1952  PANGO_LIBS  linker flags for PANGO, overriding pkg-config
1953  X11_CFLAGS  C compiler flags for X11, overriding pkg-config
1954  X11_LIBS    linker flags for X11, overriding pkg-config
1955  GTKSPELL_CFLAGS
1956              C compiler flags for GTKSPELL, overriding pkg-config
1957  GTKSPELL_LIBS
1958              linker flags for GTKSPELL, overriding pkg-config
1959  EVOLUTION_ADDRESSBOOK_CFLAGS
1960              C compiler flags for EVOLUTION_ADDRESSBOOK, overriding
1961              pkg-config
1962  EVOLUTION_ADDRESSBOOK_LIBS
1963              linker flags for EVOLUTION_ADDRESSBOOK, overriding pkg-config
1964  SQLITE3_CFLAGS
1965              C compiler flags for SQLITE3, overriding pkg-config
1966  SQLITE3_LIBS
1967              linker flags for SQLITE3, overriding pkg-config
1968  LIBGNT_CFLAGS
1969              C compiler flags for LIBGNT, overriding pkg-config
1970  LIBGNT_LIBS linker flags for LIBGNT, overriding pkg-config
1971  GNT_CFLAGS  C compiler flags for GNT, overriding pkg-config
1972  GNT_LIBS    linker flags for GNT, overriding pkg-config
1973  LIBXML_CFLAGS
1974              C compiler flags for LIBXML, overriding pkg-config
1975  LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1976  GSTREAMER_CFLAGS
1977              C compiler flags for GSTREAMER, overriding pkg-config
1978  GSTREAMER_LIBS
1979              linker flags for GSTREAMER, overriding pkg-config
1980  GSTVIDEO_CFLAGS
1981              C compiler flags for GSTVIDEO, overriding pkg-config
1982  GSTVIDEO_LIBS
1983              linker flags for GSTVIDEO, overriding pkg-config
1984  GSTINTERFACES_CFLAGS
1985              C compiler flags for GSTINTERFACES, overriding pkg-config
1986  GSTINTERFACES_LIBS
1987              linker flags for GSTINTERFACES, overriding pkg-config
1988  FARSTREAM_CFLAGS
1989              C compiler flags for FARSTREAM, overriding pkg-config
1990  FARSTREAM_LIBS
1991              linker flags for FARSTREAM, overriding pkg-config
1992  GSTAPP_CFLAGS
1993              C compiler flags for GSTAPP, overriding pkg-config
1994  GSTAPP_LIBS linker flags for GSTAPP, overriding pkg-config
1995  IDN_CFLAGS  C compiler flags for IDN, overriding pkg-config
1996  IDN_LIBS    linker flags for IDN, overriding pkg-config
1997  MEANWHILE_CFLAGS
1998              C compiler flags for MEANWHILE, overriding pkg-config
1999  MEANWHILE_LIBS
2000              linker flags for MEANWHILE, overriding pkg-config
2001  AVAHI_CFLAGS
2002              C compiler flags for AVAHI, overriding pkg-config
2003  AVAHI_LIBS  linker flags for AVAHI, overriding pkg-config
2004  SILC_CFLAGS C compiler flags for SILC, overriding pkg-config
2005  SILC_LIBS   linker flags for SILC, overriding pkg-config
2006  LIBGADU_CFLAGS
2007              C compiler flags for LIBGADU, overriding pkg-config
2008  LIBGADU_LIBS
2009              linker flags for LIBGADU, overriding pkg-config
2010  GNUTLS_2_10_CFLAGS
2011              C compiler flags for GNUTLS_2_10, overriding pkg-config
2012  GNUTLS_2_10_LIBS
2013              linker flags for GNUTLS_2_10, overriding pkg-config
2014  DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config
2015  DBUS_LIBS   linker flags for DBUS, overriding pkg-config
2016  NETWORKMANAGER_CFLAGS
2017              C compiler flags for NETWORKMANAGER, overriding pkg-config
2018  NETWORKMANAGER_LIBS
2019              linker flags for NETWORKMANAGER, overriding pkg-config
2020  UNITY_CFLAGS
2021              C compiler flags for UNITY, overriding pkg-config
2022  UNITY_LIBS  linker flags for UNITY, overriding pkg-config
2023  MONO_CFLAGS C compiler flags for MONO, overriding pkg-config
2024  MONO_LIBS   linker flags for MONO, overriding pkg-config
2025  NSS_CFLAGS  C compiler flags for NSS, overriding pkg-config
2026  NSS_LIBS    linker flags for NSS, overriding pkg-config
2027  CHECK_CFLAGS
2028              C compiler flags for CHECK, overriding pkg-config
2029  CHECK_LIBS  linker flags for CHECK, overriding pkg-config
2030
2031Use these variables to override the choices made by `configure' or to help
2032it to find libraries and programs with nonstandard names/locations.
2033
2034Report bugs to <devel@pidgin.im>.
2035_ACEOF
2036ac_status=$?
2037fi
2038
2039if test "$ac_init_help" = "recursive"; then
2040  # If there are subdirs, report their specific --help.
2041  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042    test -d "$ac_dir" ||
2043      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2044      continue
2045    ac_builddir=.
2046
2047case "$ac_dir" in
2048.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2049*)
2050  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2051  # A ".." for each directory in $ac_dir_suffix.
2052  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053  case $ac_top_builddir_sub in
2054  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2056  esac ;;
2057esac
2058ac_abs_top_builddir=$ac_pwd
2059ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060# for backward compatibility:
2061ac_top_builddir=$ac_top_build_prefix
2062
2063case $srcdir in
2064  .)  # We are building in place.
2065    ac_srcdir=.
2066    ac_top_srcdir=$ac_top_builddir_sub
2067    ac_abs_top_srcdir=$ac_pwd ;;
2068  [\\/]* | ?:[\\/]* )  # Absolute name.
2069    ac_srcdir=$srcdir$ac_dir_suffix;
2070    ac_top_srcdir=$srcdir
2071    ac_abs_top_srcdir=$srcdir ;;
2072  *) # Relative name.
2073    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074    ac_top_srcdir=$ac_top_build_prefix$srcdir
2075    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2076esac
2077ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2078
2079    cd "$ac_dir" || { ac_status=$?; continue; }
2080    # Check for configure.gnu first; this name is used for a wrapper for
2081    # Metaconfig's "Configure" on case-insensitive file systems.
2082    if test -f "$ac_srcdir/configure.gnu"; then
2083      echo &&
2084      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2085    elif test -f "$ac_srcdir/configure"; then
2086      echo &&
2087      $SHELL "$ac_srcdir/configure" --help=recursive
2088    else
2089      printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090    fi || ac_status=$?
2091    cd "$ac_pwd" || { ac_status=$?; break; }
2092  done
2093fi
2094
2095test -n "$ac_init_help" && exit $ac_status
2096if $ac_init_version; then
2097  cat <<\_ACEOF
2098pidgin configure 2.14.8
2099generated by GNU Autoconf 2.71
2100
2101Copyright (C) 2021 Free Software Foundation, Inc.
2102This configure script is free software; the Free Software Foundation
2103gives unlimited permission to copy, distribute and modify it.
2104_ACEOF
2105  exit
2106fi
2107
2108## ------------------------ ##
2109## Autoconf initialization. ##
2110## ------------------------ ##
2111
2112# ac_fn_c_try_compile LINENO
2113# --------------------------
2114# Try to compile conftest.$ac_ext, and return whether this succeeded.
2115ac_fn_c_try_compile ()
2116{
2117  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2118  rm -f conftest.$ac_objext conftest.beam
2119  if { { ac_try="$ac_compile"
2120case "(($ac_try" in
2121  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2122  *) ac_try_echo=$ac_try;;
2123esac
2124eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2125printf "%s\n" "$ac_try_echo"; } >&5
2126  (eval "$ac_compile") 2>conftest.err
2127  ac_status=$?
2128  if test -s conftest.err; then
2129    grep -v '^ *+' conftest.err >conftest.er1
2130    cat conftest.er1 >&5
2131    mv -f conftest.er1 conftest.err
2132  fi
2133  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134  test $ac_status = 0; } && {
2135	 test -z "$ac_c_werror_flag" ||
2136	 test ! -s conftest.err
2137       } && test -s conftest.$ac_objext
2138then :
2139  ac_retval=0
2140else $as_nop
2141  printf "%s\n" "$as_me: failed program was:" >&5
2142sed 's/^/| /' conftest.$ac_ext >&5
2143
2144	ac_retval=1
2145fi
2146  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2147  as_fn_set_status $ac_retval
2148
2149} # ac_fn_c_try_compile
2150
2151# ac_fn_c_try_link LINENO
2152# -----------------------
2153# Try to link conftest.$ac_ext, and return whether this succeeded.
2154ac_fn_c_try_link ()
2155{
2156  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2157  rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2158  if { { ac_try="$ac_link"
2159case "(($ac_try" in
2160  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161  *) ac_try_echo=$ac_try;;
2162esac
2163eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2164printf "%s\n" "$ac_try_echo"; } >&5
2165  (eval "$ac_link") 2>conftest.err
2166  ac_status=$?
2167  if test -s conftest.err; then
2168    grep -v '^ *+' conftest.err >conftest.er1
2169    cat conftest.er1 >&5
2170    mv -f conftest.er1 conftest.err
2171  fi
2172  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2173  test $ac_status = 0; } && {
2174	 test -z "$ac_c_werror_flag" ||
2175	 test ! -s conftest.err
2176       } && test -s conftest$ac_exeext && {
2177	 test "$cross_compiling" = yes ||
2178	 test -x conftest$ac_exeext
2179       }
2180then :
2181  ac_retval=0
2182else $as_nop
2183  printf "%s\n" "$as_me: failed program was:" >&5
2184sed 's/^/| /' conftest.$ac_ext >&5
2185
2186	ac_retval=1
2187fi
2188  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2189  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2190  # interfere with the next link command; also delete a directory that is
2191  # left behind by Apple's compiler.  We do this before executing the actions.
2192  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2193  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194  as_fn_set_status $ac_retval
2195
2196} # ac_fn_c_try_link
2197
2198# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2199# -------------------------------------------------------
2200# Tests whether HEADER exists and can be compiled using the include files in
2201# INCLUDES, setting the cache variable VAR accordingly.
2202ac_fn_c_check_header_compile ()
2203{
2204  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2206printf %s "checking for $2... " >&6; }
2207if eval test \${$3+y}
2208then :
2209  printf %s "(cached) " >&6
2210else $as_nop
2211  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h.  */
2213$4
2214#include <$2>
2215_ACEOF
2216if ac_fn_c_try_compile "$LINENO"
2217then :
2218  eval "$3=yes"
2219else $as_nop
2220  eval "$3=no"
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2223fi
2224eval ac_res=\$$3
2225	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2226printf "%s\n" "$ac_res" >&6; }
2227  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228
2229} # ac_fn_c_check_header_compile
2230
2231# ac_fn_c_check_func LINENO FUNC VAR
2232# ----------------------------------
2233# Tests whether FUNC exists, setting the cache variable VAR accordingly
2234ac_fn_c_check_func ()
2235{
2236  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238printf %s "checking for $2... " >&6; }
2239if eval test \${$3+y}
2240then :
2241  printf %s "(cached) " >&6
2242else $as_nop
2243  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2244/* end confdefs.h.  */
2245/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2246   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2247#define $2 innocuous_$2
2248
2249/* System header to define __stub macros and hopefully few prototypes,
2250   which can conflict with char $2 (); below.  */
2251
2252#include <limits.h>
2253#undef $2
2254
2255/* Override any GCC internal prototype to avoid an error.
2256   Use char because int might match the return type of a GCC
2257   builtin and then its argument prototype would still apply.  */
2258#ifdef __cplusplus
2259extern "C"
2260#endif
2261char $2 ();
2262/* The GNU C library defines this for functions which it implements
2263    to always fail with ENOSYS.  Some functions are actually named
2264    something starting with __ and the normal name is an alias.  */
2265#if defined __stub_$2 || defined __stub___$2
2266choke me
2267#endif
2268
2269int
2270main (void)
2271{
2272return $2 ();
2273  ;
2274  return 0;
2275}
2276_ACEOF
2277if ac_fn_c_try_link "$LINENO"
2278then :
2279  eval "$3=yes"
2280else $as_nop
2281  eval "$3=no"
2282fi
2283rm -f core conftest.err conftest.$ac_objext conftest.beam \
2284    conftest$ac_exeext conftest.$ac_ext
2285fi
2286eval ac_res=\$$3
2287	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288printf "%s\n" "$ac_res" >&6; }
2289  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290
2291} # ac_fn_c_check_func
2292
2293# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2294# -------------------------------------------
2295# Tests whether TYPE exists after having included INCLUDES, setting cache
2296# variable VAR accordingly.
2297ac_fn_c_check_type ()
2298{
2299  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2301printf %s "checking for $2... " >&6; }
2302if eval test \${$3+y}
2303then :
2304  printf %s "(cached) " >&6
2305else $as_nop
2306  eval "$3=no"
2307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2308/* end confdefs.h.  */
2309$4
2310int
2311main (void)
2312{
2313if (sizeof ($2))
2314	 return 0;
2315  ;
2316  return 0;
2317}
2318_ACEOF
2319if ac_fn_c_try_compile "$LINENO"
2320then :
2321  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h.  */
2323$4
2324int
2325main (void)
2326{
2327if (sizeof (($2)))
2328	    return 0;
2329  ;
2330  return 0;
2331}
2332_ACEOF
2333if ac_fn_c_try_compile "$LINENO"
2334then :
2335
2336else $as_nop
2337  eval "$3=yes"
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2340fi
2341rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2342fi
2343eval ac_res=\$$3
2344	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345printf "%s\n" "$ac_res" >&6; }
2346  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2347
2348} # ac_fn_c_check_type
2349
2350# ac_fn_c_try_run LINENO
2351# ----------------------
2352# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2353# executables *can* be run.
2354ac_fn_c_try_run ()
2355{
2356  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357  if { { ac_try="$ac_link"
2358case "(($ac_try" in
2359  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2360  *) ac_try_echo=$ac_try;;
2361esac
2362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2363printf "%s\n" "$ac_try_echo"; } >&5
2364  (eval "$ac_link") 2>&5
2365  ac_status=$?
2366  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2367  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2368  { { case "(($ac_try" in
2369  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2370  *) ac_try_echo=$ac_try;;
2371esac
2372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2373printf "%s\n" "$ac_try_echo"; } >&5
2374  (eval "$ac_try") 2>&5
2375  ac_status=$?
2376  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2377  test $ac_status = 0; }; }
2378then :
2379  ac_retval=0
2380else $as_nop
2381  printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2382       printf "%s\n" "$as_me: failed program was:" >&5
2383sed 's/^/| /' conftest.$ac_ext >&5
2384
2385       ac_retval=$ac_status
2386fi
2387  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2388  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2389  as_fn_set_status $ac_retval
2390
2391} # ac_fn_c_try_run
2392
2393# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2394# ------------------------------------------------------------------
2395# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2396# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2397ac_fn_check_decl ()
2398{
2399  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2400  as_decl_name=`echo $2|sed 's/ *(.*//'`
2401  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2402printf %s "checking whether $as_decl_name is declared... " >&6; }
2403if eval test \${$3+y}
2404then :
2405  printf %s "(cached) " >&6
2406else $as_nop
2407  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2408  eval ac_save_FLAGS=\$$6
2409  as_fn_append $6 " $5"
2410  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2411/* end confdefs.h.  */
2412$4
2413int
2414main (void)
2415{
2416#ifndef $as_decl_name
2417#ifdef __cplusplus
2418  (void) $as_decl_use;
2419#else
2420  (void) $as_decl_name;
2421#endif
2422#endif
2423
2424  ;
2425  return 0;
2426}
2427_ACEOF
2428if ac_fn_c_try_compile "$LINENO"
2429then :
2430  eval "$3=yes"
2431else $as_nop
2432  eval "$3=no"
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2435  eval $6=\$ac_save_FLAGS
2436
2437fi
2438eval ac_res=\$$3
2439	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440printf "%s\n" "$ac_res" >&6; }
2441  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442
2443} # ac_fn_check_decl
2444
2445# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2446# --------------------------------------------
2447# Tries to find the compile-time value of EXPR in a program that includes
2448# INCLUDES, setting VAR accordingly. Returns whether the value could be
2449# computed
2450ac_fn_c_compute_int ()
2451{
2452  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453  if test "$cross_compiling" = yes; then
2454    # Depending upon the size, compute the lo and hi bounds.
2455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456/* end confdefs.h.  */
2457$4
2458int
2459main (void)
2460{
2461static int test_array [1 - 2 * !(($2) >= 0)];
2462test_array [0] = 0;
2463return test_array [0];
2464
2465  ;
2466  return 0;
2467}
2468_ACEOF
2469if ac_fn_c_try_compile "$LINENO"
2470then :
2471  ac_lo=0 ac_mid=0
2472  while :; do
2473    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2474/* end confdefs.h.  */
2475$4
2476int
2477main (void)
2478{
2479static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2480test_array [0] = 0;
2481return test_array [0];
2482
2483  ;
2484  return 0;
2485}
2486_ACEOF
2487if ac_fn_c_try_compile "$LINENO"
2488then :
2489  ac_hi=$ac_mid; break
2490else $as_nop
2491  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2492			if test $ac_lo -le $ac_mid; then
2493			  ac_lo= ac_hi=
2494			  break
2495			fi
2496			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2497fi
2498rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2499  done
2500else $as_nop
2501  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2502/* end confdefs.h.  */
2503$4
2504int
2505main (void)
2506{
2507static int test_array [1 - 2 * !(($2) < 0)];
2508test_array [0] = 0;
2509return test_array [0];
2510
2511  ;
2512  return 0;
2513}
2514_ACEOF
2515if ac_fn_c_try_compile "$LINENO"
2516then :
2517  ac_hi=-1 ac_mid=-1
2518  while :; do
2519    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520/* end confdefs.h.  */
2521$4
2522int
2523main (void)
2524{
2525static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2526test_array [0] = 0;
2527return test_array [0];
2528
2529  ;
2530  return 0;
2531}
2532_ACEOF
2533if ac_fn_c_try_compile "$LINENO"
2534then :
2535  ac_lo=$ac_mid; break
2536else $as_nop
2537  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2538			if test $ac_mid -le $ac_hi; then
2539			  ac_lo= ac_hi=
2540			  break
2541			fi
2542			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2543fi
2544rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2545  done
2546else $as_nop
2547  ac_lo= ac_hi=
2548fi
2549rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2550fi
2551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2552# Binary search between lo and hi bounds.
2553while test "x$ac_lo" != "x$ac_hi"; do
2554  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2555  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2556/* end confdefs.h.  */
2557$4
2558int
2559main (void)
2560{
2561static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2562test_array [0] = 0;
2563return test_array [0];
2564
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569if ac_fn_c_try_compile "$LINENO"
2570then :
2571  ac_hi=$ac_mid
2572else $as_nop
2573  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2574fi
2575rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2576done
2577case $ac_lo in #((
2578?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2579'') ac_retval=1 ;;
2580esac
2581  else
2582    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2583/* end confdefs.h.  */
2584$4
2585static long int longval (void) { return $2; }
2586static unsigned long int ulongval (void) { return $2; }
2587#include <stdio.h>
2588#include <stdlib.h>
2589int
2590main (void)
2591{
2592
2593  FILE *f = fopen ("conftest.val", "w");
2594  if (! f)
2595    return 1;
2596  if (($2) < 0)
2597    {
2598      long int i = longval ();
2599      if (i != ($2))
2600	return 1;
2601      fprintf (f, "%ld", i);
2602    }
2603  else
2604    {
2605      unsigned long int i = ulongval ();
2606      if (i != ($2))
2607	return 1;
2608      fprintf (f, "%lu", i);
2609    }
2610  /* Do not output a trailing newline, as this causes \r\n confusion
2611     on some platforms.  */
2612  return ferror (f) || fclose (f) != 0;
2613
2614  ;
2615  return 0;
2616}
2617_ACEOF
2618if ac_fn_c_try_run "$LINENO"
2619then :
2620  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2621else $as_nop
2622  ac_retval=1
2623fi
2624rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2625  conftest.$ac_objext conftest.beam conftest.$ac_ext
2626rm -f conftest.val
2627
2628  fi
2629  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2630  as_fn_set_status $ac_retval
2631
2632} # ac_fn_c_compute_int
2633
2634# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2635# ----------------------------------------------------
2636# Tries to find if the field MEMBER exists in type AGGR, after including
2637# INCLUDES, setting cache variable VAR accordingly.
2638ac_fn_c_check_member ()
2639{
2640  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2642printf %s "checking for $2.$3... " >&6; }
2643if eval test \${$4+y}
2644then :
2645  printf %s "(cached) " >&6
2646else $as_nop
2647  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2648/* end confdefs.h.  */
2649$5
2650int
2651main (void)
2652{
2653static $2 ac_aggr;
2654if (ac_aggr.$3)
2655return 0;
2656  ;
2657  return 0;
2658}
2659_ACEOF
2660if ac_fn_c_try_compile "$LINENO"
2661then :
2662  eval "$4=yes"
2663else $as_nop
2664  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h.  */
2666$5
2667int
2668main (void)
2669{
2670static $2 ac_aggr;
2671if (sizeof ac_aggr.$3)
2672return 0;
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"
2678then :
2679  eval "$4=yes"
2680else $as_nop
2681  eval "$4=no"
2682fi
2683rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2684fi
2685rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2686fi
2687eval ac_res=\$$4
2688	       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2689printf "%s\n" "$ac_res" >&6; }
2690  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2691
2692} # ac_fn_c_check_member
2693
2694# ac_fn_c_try_cpp LINENO
2695# ----------------------
2696# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2697ac_fn_c_try_cpp ()
2698{
2699  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2700  if { { ac_try="$ac_cpp conftest.$ac_ext"
2701case "(($ac_try" in
2702  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703  *) ac_try_echo=$ac_try;;
2704esac
2705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2706printf "%s\n" "$ac_try_echo"; } >&5
2707  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2708  ac_status=$?
2709  if test -s conftest.err; then
2710    grep -v '^ *+' conftest.err >conftest.er1
2711    cat conftest.er1 >&5
2712    mv -f conftest.er1 conftest.err
2713  fi
2714  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2715  test $ac_status = 0; } > conftest.i && {
2716	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2717	 test ! -s conftest.err
2718       }
2719then :
2720  ac_retval=0
2721else $as_nop
2722  printf "%s\n" "$as_me: failed program was:" >&5
2723sed 's/^/| /' conftest.$ac_ext >&5
2724
2725    ac_retval=1
2726fi
2727  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2728  as_fn_set_status $ac_retval
2729
2730} # ac_fn_c_try_cpp
2731ac_configure_args_raw=
2732for ac_arg
2733do
2734  case $ac_arg in
2735  *\'*)
2736    ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2737  esac
2738  as_fn_append ac_configure_args_raw " '$ac_arg'"
2739done
2740
2741case $ac_configure_args_raw in
2742  *$as_nl*)
2743    ac_safe_unquote= ;;
2744  *)
2745    ac_unsafe_z='|&;<>()$`\\"*?[ ''	' # This string ends in space, tab.
2746    ac_unsafe_a="$ac_unsafe_z#~"
2747    ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2748    ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2749esac
2750
2751cat >config.log <<_ACEOF
2752This file contains any messages produced by compilers while
2753running configure, to aid debugging if configure makes a mistake.
2754
2755It was created by pidgin $as_me 2.14.8, which was
2756generated by GNU Autoconf 2.71.  Invocation command line was
2757
2758  $ $0$ac_configure_args_raw
2759
2760_ACEOF
2761exec 5>>config.log
2762{
2763cat <<_ASUNAME
2764## --------- ##
2765## Platform. ##
2766## --------- ##
2767
2768hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2769uname -m = `(uname -m) 2>/dev/null || echo unknown`
2770uname -r = `(uname -r) 2>/dev/null || echo unknown`
2771uname -s = `(uname -s) 2>/dev/null || echo unknown`
2772uname -v = `(uname -v) 2>/dev/null || echo unknown`
2773
2774/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2775/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2776
2777/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2778/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2779/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2780/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2781/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2782/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2783/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2784
2785_ASUNAME
2786
2787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2788for as_dir in $PATH
2789do
2790  IFS=$as_save_IFS
2791  case $as_dir in #(((
2792    '') as_dir=./ ;;
2793    */) ;;
2794    *) as_dir=$as_dir/ ;;
2795  esac
2796    printf "%s\n" "PATH: $as_dir"
2797  done
2798IFS=$as_save_IFS
2799
2800} >&5
2801
2802cat >&5 <<_ACEOF
2803
2804
2805## ----------- ##
2806## Core tests. ##
2807## ----------- ##
2808
2809_ACEOF
2810
2811
2812# Keep a trace of the command line.
2813# Strip out --no-create and --no-recursion so they do not pile up.
2814# Strip out --silent because we don't want to record it for future runs.
2815# Also quote any args containing shell meta-characters.
2816# Make two passes to allow for proper duplicate-argument suppression.
2817ac_configure_args=
2818ac_configure_args0=
2819ac_configure_args1=
2820ac_must_keep_next=false
2821for ac_pass in 1 2
2822do
2823  for ac_arg
2824  do
2825    case $ac_arg in
2826    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2827    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2828    | -silent | --silent | --silen | --sile | --sil)
2829      continue ;;
2830    *\'*)
2831      ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2832    esac
2833    case $ac_pass in
2834    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2835    2)
2836      as_fn_append ac_configure_args1 " '$ac_arg'"
2837      if test $ac_must_keep_next = true; then
2838	ac_must_keep_next=false # Got value, back to normal.
2839      else
2840	case $ac_arg in
2841	  *=* | --config-cache | -C | -disable-* | --disable-* \
2842	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2843	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2844	  | -with-* | --with-* | -without-* | --without-* | --x)
2845	    case "$ac_configure_args0 " in
2846	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2847	    esac
2848	    ;;
2849	  -* ) ac_must_keep_next=true ;;
2850	esac
2851      fi
2852      as_fn_append ac_configure_args " '$ac_arg'"
2853      ;;
2854    esac
2855  done
2856done
2857{ ac_configure_args0=; unset ac_configure_args0;}
2858{ ac_configure_args1=; unset ac_configure_args1;}
2859
2860# When interrupted or exit'd, cleanup temporary files, and complete
2861# config.log.  We remove comments because anyway the quotes in there
2862# would cause problems or look ugly.
2863# WARNING: Use '\'' to represent an apostrophe within the trap.
2864# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2865trap 'exit_status=$?
2866  # Sanitize IFS.
2867  IFS=" ""	$as_nl"
2868  # Save into config.log some information that might help in debugging.
2869  {
2870    echo
2871
2872    printf "%s\n" "## ---------------- ##
2873## Cache variables. ##
2874## ---------------- ##"
2875    echo
2876    # The following way of writing the cache mishandles newlines in values,
2877(
2878  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2879    eval ac_val=\$$ac_var
2880    case $ac_val in #(
2881    *${as_nl}*)
2882      case $ac_var in #(
2883      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2884printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2885      esac
2886      case $ac_var in #(
2887      _ | IFS | as_nl) ;; #(
2888      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2889      *) { eval $ac_var=; unset $ac_var;} ;;
2890      esac ;;
2891    esac
2892  done
2893  (set) 2>&1 |
2894    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2895    *${as_nl}ac_space=\ *)
2896      sed -n \
2897	"s/'\''/'\''\\\\'\'''\''/g;
2898	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2899      ;; #(
2900    *)
2901      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2902      ;;
2903    esac |
2904    sort
2905)
2906    echo
2907
2908    printf "%s\n" "## ----------------- ##
2909## Output variables. ##
2910## ----------------- ##"
2911    echo
2912    for ac_var in $ac_subst_vars
2913    do
2914      eval ac_val=\$$ac_var
2915      case $ac_val in
2916      *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2917      esac
2918      printf "%s\n" "$ac_var='\''$ac_val'\''"
2919    done | sort
2920    echo
2921
2922    if test -n "$ac_subst_files"; then
2923      printf "%s\n" "## ------------------- ##
2924## File substitutions. ##
2925## ------------------- ##"
2926      echo
2927      for ac_var in $ac_subst_files
2928      do
2929	eval ac_val=\$$ac_var
2930	case $ac_val in
2931	*\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2932	esac
2933	printf "%s\n" "$ac_var='\''$ac_val'\''"
2934      done | sort
2935      echo
2936    fi
2937
2938    if test -s confdefs.h; then
2939      printf "%s\n" "## ----------- ##
2940## confdefs.h. ##
2941## ----------- ##"
2942      echo
2943      cat confdefs.h
2944      echo
2945    fi
2946    test "$ac_signal" != 0 &&
2947      printf "%s\n" "$as_me: caught signal $ac_signal"
2948    printf "%s\n" "$as_me: exit $exit_status"
2949  } >&5
2950  rm -f core *.core core.conftest.* &&
2951    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2952    exit $exit_status
2953' 0
2954for ac_signal in 1 2 13 15; do
2955  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2956done
2957ac_signal=0
2958
2959# confdefs.h avoids OS command line length limits that DEFS can exceed.
2960rm -f -r conftest* confdefs.h
2961
2962printf "%s\n" "/* confdefs.h */" > confdefs.h
2963
2964# Predefined preprocessor variables.
2965
2966printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2967
2968printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2969
2970printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2971
2972printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2973
2974printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2975
2976printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2977
2978
2979# Let the site file select an alternate cache file if it wants to.
2980# Prefer an explicitly selected file to automatically selected ones.
2981if test -n "$CONFIG_SITE"; then
2982  ac_site_files="$CONFIG_SITE"
2983elif test "x$prefix" != xNONE; then
2984  ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2985else
2986  ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2987fi
2988
2989for ac_site_file in $ac_site_files
2990do
2991  case $ac_site_file in #(
2992  */*) :
2993     ;; #(
2994  *) :
2995    ac_site_file=./$ac_site_file ;;
2996esac
2997  if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2998    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2999printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3000    sed 's/^/| /' "$ac_site_file" >&5
3001    . "$ac_site_file" \
3002      || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3003printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3004as_fn_error $? "failed to load site script $ac_site_file
3005See \`config.log' for more details" "$LINENO" 5; }
3006  fi
3007done
3008
3009if test -r "$cache_file"; then
3010  # Some versions of bash will fail to source /dev/null (special files
3011  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3012  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3013    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3014printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3015    case $cache_file in
3016      [\\/]* | ?:[\\/]* ) . "$cache_file";;
3017      *)                      . "./$cache_file";;
3018    esac
3019  fi
3020else
3021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3022printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3023  >$cache_file
3024fi
3025
3026# Test code for whether the C compiler supports C89 (global declarations)
3027ac_c_conftest_c89_globals='
3028/* Does the compiler advertise C89 conformance?
3029   Do not test the value of __STDC__, because some compilers set it to 0
3030   while being otherwise adequately conformant. */
3031#if !defined __STDC__
3032# error "Compiler does not advertise C89 conformance"
3033#endif
3034
3035#include <stddef.h>
3036#include <stdarg.h>
3037struct stat;
3038/* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
3039struct buf { int x; };
3040struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3041static char *e (p, i)
3042     char **p;
3043     int i;
3044{
3045  return p[i];
3046}
3047static char *f (char * (*g) (char **, int), char **p, ...)
3048{
3049  char *s;
3050  va_list v;
3051  va_start (v,p);
3052  s = g (p, va_arg (v,int));
3053  va_end (v);
3054  return s;
3055}
3056
3057/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3058   function prototypes and stuff, but not \xHH hex character constants.
3059   These do not provoke an error unfortunately, instead are silently treated
3060   as an "x".  The following induces an error, until -std is added to get
3061   proper ANSI mode.  Curiously \x00 != x always comes out true, for an
3062   array size at least.  It is necessary to write \x00 == 0 to get something
3063   that is true only with -std.  */
3064int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3065
3066/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3067   inside strings and character constants.  */
3068#define FOO(x) '\''x'\''
3069int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3070
3071int test (int i, double x);
3072struct s1 {int (*f) (int a);};
3073struct s2 {int (*f) (double a);};
3074int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3075               int, int);'
3076
3077# Test code for whether the C compiler supports C89 (body of main).
3078ac_c_conftest_c89_main='
3079ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3080'
3081
3082# Test code for whether the C compiler supports C99 (global declarations)
3083ac_c_conftest_c99_globals='
3084// Does the compiler advertise C99 conformance?
3085#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3086# error "Compiler does not advertise C99 conformance"
3087#endif
3088
3089#include <stdbool.h>
3090extern int puts (const char *);
3091extern int printf (const char *, ...);
3092extern int dprintf (int, const char *, ...);
3093extern void *malloc (size_t);
3094
3095// Check varargs macros.  These examples are taken from C99 6.10.3.5.
3096// dprintf is used instead of fprintf to avoid needing to declare
3097// FILE and stderr.
3098#define debug(...) dprintf (2, __VA_ARGS__)
3099#define showlist(...) puts (#__VA_ARGS__)
3100#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3101static void
3102test_varargs_macros (void)
3103{
3104  int x = 1234;
3105  int y = 5678;
3106  debug ("Flag");
3107  debug ("X = %d\n", x);
3108  showlist (The first, second, and third items.);
3109  report (x>y, "x is %d but y is %d", x, y);
3110}
3111
3112// Check long long types.
3113#define BIG64 18446744073709551615ull
3114#define BIG32 4294967295ul
3115#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3116#if !BIG_OK
3117  #error "your preprocessor is broken"
3118#endif
3119#if BIG_OK
3120#else
3121  #error "your preprocessor is broken"
3122#endif
3123static long long int bignum = -9223372036854775807LL;
3124static unsigned long long int ubignum = BIG64;
3125
3126struct incomplete_array
3127{
3128  int datasize;
3129  double data[];
3130};
3131
3132struct named_init {
3133  int number;
3134  const wchar_t *name;
3135  double average;
3136};
3137
3138typedef const char *ccp;
3139
3140static inline int
3141test_restrict (ccp restrict text)
3142{
3143  // See if C++-style comments work.
3144  // Iterate through items via the restricted pointer.
3145  // Also check for declarations in for loops.
3146  for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3147    continue;
3148  return 0;
3149}
3150
3151// Check varargs and va_copy.
3152static bool
3153test_varargs (const char *format, ...)
3154{
3155  va_list args;
3156  va_start (args, format);
3157  va_list args_copy;
3158  va_copy (args_copy, args);
3159
3160  const char *str = "";
3161  int number = 0;
3162  float fnumber = 0;
3163
3164  while (*format)
3165    {
3166      switch (*format++)
3167	{
3168	case '\''s'\'': // string
3169	  str = va_arg (args_copy, const char *);
3170	  break;
3171	case '\''d'\'': // int
3172	  number = va_arg (args_copy, int);
3173	  break;
3174	case '\''f'\'': // float
3175	  fnumber = va_arg (args_copy, double);
3176	  break;
3177	default:
3178	  break;
3179	}
3180    }
3181  va_end (args_copy);
3182  va_end (args);
3183
3184  return *str && number && fnumber;
3185}
3186'
3187
3188# Test code for whether the C compiler supports C99 (body of main).
3189ac_c_conftest_c99_main='
3190  // Check bool.
3191  _Bool success = false;
3192  success |= (argc != 0);
3193
3194  // Check restrict.
3195  if (test_restrict ("String literal") == 0)
3196    success = true;
3197  char *restrict newvar = "Another string";
3198
3199  // Check varargs.
3200  success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3201  test_varargs_macros ();
3202
3203  // Check flexible array members.
3204  struct incomplete_array *ia =
3205    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3206  ia->datasize = 10;
3207  for (int i = 0; i < ia->datasize; ++i)
3208    ia->data[i] = i * 1.234;
3209
3210  // Check named initializers.
3211  struct named_init ni = {
3212    .number = 34,
3213    .name = L"Test wide string",
3214    .average = 543.34343,
3215  };
3216
3217  ni.number = 58;
3218
3219  int dynamic_array[ni.number];
3220  dynamic_array[0] = argv[0][0];
3221  dynamic_array[ni.number - 1] = 543;
3222
3223  // work around unused variable warnings
3224  ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3225	 || dynamic_array[ni.number - 1] != 543);
3226'
3227
3228# Test code for whether the C compiler supports C11 (global declarations)
3229ac_c_conftest_c11_globals='
3230// Does the compiler advertise C11 conformance?
3231#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3232# error "Compiler does not advertise C11 conformance"
3233#endif
3234
3235// Check _Alignas.
3236char _Alignas (double) aligned_as_double;
3237char _Alignas (0) no_special_alignment;
3238extern char aligned_as_int;
3239char _Alignas (0) _Alignas (int) aligned_as_int;
3240
3241// Check _Alignof.
3242enum
3243{
3244  int_alignment = _Alignof (int),
3245  int_array_alignment = _Alignof (int[100]),
3246  char_alignment = _Alignof (char)
3247};
3248_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3249
3250// Check _Noreturn.
3251int _Noreturn does_not_return (void) { for (;;) continue; }
3252
3253// Check _Static_assert.
3254struct test_static_assert
3255{
3256  int x;
3257  _Static_assert (sizeof (int) <= sizeof (long int),
3258                  "_Static_assert does not work in struct");
3259  long int y;
3260};
3261
3262// Check UTF-8 literals.
3263#define u8 syntax error!
3264char const utf8_literal[] = u8"happens to be ASCII" "another string";
3265
3266// Check duplicate typedefs.
3267typedef long *long_ptr;
3268typedef long int *long_ptr;
3269typedef long_ptr long_ptr;
3270
3271// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3272struct anonymous
3273{
3274  union {
3275    struct { int i; int j; };
3276    struct { int k; long int l; } w;
3277  };
3278  int m;
3279} v1;
3280'
3281
3282# Test code for whether the C compiler supports C11 (body of main).
3283ac_c_conftest_c11_main='
3284  _Static_assert ((offsetof (struct anonymous, i)
3285		   == offsetof (struct anonymous, w.k)),
3286		  "Anonymous union alignment botch");
3287  v1.i = 2;
3288  v1.w.k = 5;
3289  ok |= v1.i != 5;
3290'
3291
3292# Test code for whether the C compiler supports C11 (complete).
3293ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3294${ac_c_conftest_c99_globals}
3295${ac_c_conftest_c11_globals}
3296
3297int
3298main (int argc, char **argv)
3299{
3300  int ok = 0;
3301  ${ac_c_conftest_c89_main}
3302  ${ac_c_conftest_c99_main}
3303  ${ac_c_conftest_c11_main}
3304  return ok;
3305}
3306"
3307
3308# Test code for whether the C compiler supports C99 (complete).
3309ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3310${ac_c_conftest_c99_globals}
3311
3312int
3313main (int argc, char **argv)
3314{
3315  int ok = 0;
3316  ${ac_c_conftest_c89_main}
3317  ${ac_c_conftest_c99_main}
3318  return ok;
3319}
3320"
3321
3322# Test code for whether the C compiler supports C89 (complete).
3323ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3324
3325int
3326main (int argc, char **argv)
3327{
3328  int ok = 0;
3329  ${ac_c_conftest_c89_main}
3330  return ok;
3331}
3332"
3333
3334as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3335as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3336as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3337as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3338as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3339as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3340as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3341as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3342as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3343
3344# Auxiliary files required by this configure script.
3345ac_aux_files="ltmain.sh compile missing install-sh config.guess config.sub"
3346
3347# Locations in which to look for auxiliary files.
3348ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3349
3350# Search for a directory containing all of the required auxiliary files,
3351# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3352# If we don't find one directory that contains all the files we need,
3353# we report the set of missing files from the *first* directory in
3354# $ac_aux_dir_candidates and give up.
3355ac_missing_aux_files=""
3356ac_first_candidate=:
3357printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3359as_found=false
3360for as_dir in $ac_aux_dir_candidates
3361do
3362  IFS=$as_save_IFS
3363  case $as_dir in #(((
3364    '') as_dir=./ ;;
3365    */) ;;
3366    *) as_dir=$as_dir/ ;;
3367  esac
3368  as_found=:
3369
3370  printf "%s\n" "$as_me:${as_lineno-$LINENO}:  trying $as_dir" >&5
3371  ac_aux_dir_found=yes
3372  ac_install_sh=
3373  for ac_aux in $ac_aux_files
3374  do
3375    # As a special case, if "install-sh" is required, that requirement
3376    # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3377    # and $ac_install_sh is set appropriately for whichever one is found.
3378    if test x"$ac_aux" = x"install-sh"
3379    then
3380      if test -f "${as_dir}install-sh"; then
3381        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install-sh found" >&5
3382        ac_install_sh="${as_dir}install-sh -c"
3383      elif test -f "${as_dir}install.sh"; then
3384        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}install.sh found" >&5
3385        ac_install_sh="${as_dir}install.sh -c"
3386      elif test -f "${as_dir}shtool"; then
3387        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}shtool found" >&5
3388        ac_install_sh="${as_dir}shtool install -c"
3389      else
3390        ac_aux_dir_found=no
3391        if $ac_first_candidate; then
3392          ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3393        else
3394          break
3395        fi
3396      fi
3397    else
3398      if test -f "${as_dir}${ac_aux}"; then
3399        printf "%s\n" "$as_me:${as_lineno-$LINENO}:   ${as_dir}${ac_aux} found" >&5
3400      else
3401        ac_aux_dir_found=no
3402        if $ac_first_candidate; then
3403          ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3404        else
3405          break
3406        fi
3407      fi
3408    fi
3409  done
3410  if test "$ac_aux_dir_found" = yes; then
3411    ac_aux_dir="$as_dir"
3412    break
3413  fi
3414  ac_first_candidate=false
3415
3416  as_found=false
3417done
3418IFS=$as_save_IFS
3419if $as_found
3420then :
3421
3422else $as_nop
3423  as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3424fi
3425
3426
3427# These three variables are undocumented and unsupported,
3428# and are intended to be withdrawn in a future Autoconf release.
3429# They can cause serious problems if a builder's source tree is in a directory
3430# whose full name contains unusual characters.
3431if test -f "${ac_aux_dir}config.guess"; then
3432  ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3433fi
3434if test -f "${ac_aux_dir}config.sub"; then
3435  ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3436fi
3437if test -f "$ac_aux_dir/configure"; then
3438  ac_configure="$SHELL ${ac_aux_dir}configure"
3439fi
3440
3441# Check that the precious variables saved in the cache have kept the same
3442# value.
3443ac_cache_corrupted=false
3444for ac_var in $ac_precious_vars; do
3445  eval ac_old_set=\$ac_cv_env_${ac_var}_set
3446  eval ac_new_set=\$ac_env_${ac_var}_set
3447  eval ac_old_val=\$ac_cv_env_${ac_var}_value
3448  eval ac_new_val=\$ac_env_${ac_var}_value
3449  case $ac_old_set,$ac_new_set in
3450    set,)
3451      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3452printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3453      ac_cache_corrupted=: ;;
3454    ,set)
3455      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3456printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3457      ac_cache_corrupted=: ;;
3458    ,);;
3459    *)
3460      if test "x$ac_old_val" != "x$ac_new_val"; then
3461	# differences in whitespace do not lead to failure.
3462	ac_old_val_w=`echo x $ac_old_val`
3463	ac_new_val_w=`echo x $ac_new_val`
3464	if test "$ac_old_val_w" != "$ac_new_val_w"; then
3465	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3466printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3467	  ac_cache_corrupted=:
3468	else
3469	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3470printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3471	  eval $ac_var=\$ac_old_val
3472	fi
3473	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3474printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3475	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3476printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3477      fi;;
3478  esac
3479  # Pass precious variables to config.status.
3480  if test "$ac_new_set" = set; then
3481    case $ac_new_val in
3482    *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3483    *) ac_arg=$ac_var=$ac_new_val ;;
3484    esac
3485    case " $ac_configure_args " in
3486      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3487      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3488    esac
3489  fi
3490done
3491if $ac_cache_corrupted; then
3492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3493printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3495printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3496  as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3497	    and start over" "$LINENO" 5
3498fi
3499## -------------------- ##
3500## Main body of script. ##
3501## -------------------- ##
3502
3503ac_ext=c
3504ac_cpp='$CPP $CPPFLAGS'
3505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3507ac_compiler_gnu=$ac_cv_c_compiler_gnu
3508
3509
3510
3511if test `pwd | wc -w` -ne 1; then
3512	as_fn_error $? "
3513You are attempting to build in a path that contains spaces.  This
3514will fail.  Relocate this source tree to a path that does not contain
3515spaces and run configure again.
3516" "$LINENO" 5
3517fi
3518
3519
3520
3521
3522  # Make sure we can run config.sub.
3523$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3524  as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3525
3526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3527printf %s "checking build system type... " >&6; }
3528if test ${ac_cv_build+y}
3529then :
3530  printf %s "(cached) " >&6
3531else $as_nop
3532  ac_build_alias=$build_alias
3533test "x$ac_build_alias" = x &&
3534  ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3535test "x$ac_build_alias" = x &&
3536  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3537ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3538  as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3539
3540fi
3541{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3542printf "%s\n" "$ac_cv_build" >&6; }
3543case $ac_cv_build in
3544*-*-*) ;;
3545*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3546esac
3547build=$ac_cv_build
3548ac_save_IFS=$IFS; IFS='-'
3549set x $ac_cv_build
3550shift
3551build_cpu=$1
3552build_vendor=$2
3553shift; shift
3554# Remember, the first character of IFS is used to create $*,
3555# except with old shells:
3556build_os=$*
3557IFS=$ac_save_IFS
3558case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3559
3560
3561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3562printf %s "checking host system type... " >&6; }
3563if test ${ac_cv_host+y}
3564then :
3565  printf %s "(cached) " >&6
3566else $as_nop
3567  if test "x$host_alias" = x; then
3568  ac_cv_host=$ac_cv_build
3569else
3570  ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3571    as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3572fi
3573
3574fi
3575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3576printf "%s\n" "$ac_cv_host" >&6; }
3577case $ac_cv_host in
3578*-*-*) ;;
3579*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3580esac
3581host=$ac_cv_host
3582ac_save_IFS=$IFS; IFS='-'
3583set x $ac_cv_host
3584shift
3585host_cpu=$1
3586host_vendor=$2
3587shift; shift
3588# Remember, the first character of IFS is used to create $*,
3589# except with old shells:
3590host_os=$*
3591IFS=$ac_save_IFS
3592case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3593
3594
3595ac_config_headers="$ac_config_headers config.h"
3596
3597am__api_version='1.16'
3598
3599
3600  # Find a good install program.  We prefer a C program (faster),
3601# so one script is as good as another.  But avoid the broken or
3602# incompatible versions:
3603# SysV /etc/install, /usr/sbin/install
3604# SunOS /usr/etc/install
3605# IRIX /sbin/install
3606# AIX /bin/install
3607# AmigaOS /C/install, which installs bootblocks on floppy discs
3608# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3609# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3610# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3611# OS/2's system install, which has a completely different semantic
3612# ./install, which can be erroneously created by make from ./install.sh.
3613# Reject install programs that cannot install multiple files.
3614{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3615printf %s "checking for a BSD-compatible install... " >&6; }
3616if test -z "$INSTALL"; then
3617if test ${ac_cv_path_install+y}
3618then :
3619  printf %s "(cached) " >&6
3620else $as_nop
3621  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622for as_dir in $PATH
3623do
3624  IFS=$as_save_IFS
3625  case $as_dir in #(((
3626    '') as_dir=./ ;;
3627    */) ;;
3628    *) as_dir=$as_dir/ ;;
3629  esac
3630    # Account for fact that we put trailing slashes in our PATH walk.
3631case $as_dir in #((
3632  ./ | /[cC]/* | \
3633  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3634  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3635  /usr/ucb/* ) ;;
3636  *)
3637    # OSF1 and SCO ODT 3.0 have their own names for install.
3638    # Don't use installbsd from OSF since it installs stuff as root
3639    # by default.
3640    for ac_prog in ginstall scoinst install; do
3641      for ac_exec_ext in '' $ac_executable_extensions; do
3642	if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3643	  if test $ac_prog = install &&
3644	    grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3645	    # AIX install.  It has an incompatible calling convention.
3646	    :
3647	  elif test $ac_prog = install &&
3648	    grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3649	    # program-specific install script used by HP pwplus--don't use.
3650	    :
3651	  else
3652	    rm -rf conftest.one conftest.two conftest.dir
3653	    echo one > conftest.one
3654	    echo two > conftest.two
3655	    mkdir conftest.dir
3656	    if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3657	      test -s conftest.one && test -s conftest.two &&
3658	      test -s conftest.dir/conftest.one &&
3659	      test -s conftest.dir/conftest.two
3660	    then
3661	      ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3662	      break 3
3663	    fi
3664	  fi
3665	fi
3666      done
3667    done
3668    ;;
3669esac
3670
3671  done
3672IFS=$as_save_IFS
3673
3674rm -rf conftest.one conftest.two conftest.dir
3675
3676fi
3677  if test ${ac_cv_path_install+y}; then
3678    INSTALL=$ac_cv_path_install
3679  else
3680    # As a last resort, use the slow shell script.  Don't cache a
3681    # value for INSTALL within a source directory, because that will
3682    # break other packages using the cache if that directory is
3683    # removed, or if the value is a relative name.
3684    INSTALL=$ac_install_sh
3685  fi
3686fi
3687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3688printf "%s\n" "$INSTALL" >&6; }
3689
3690# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3691# It thinks the first close brace ends the variable substitution.
3692test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3693
3694test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3695
3696test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3697
3698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3699printf %s "checking whether build environment is sane... " >&6; }
3700# Reject unsafe characters in $srcdir or the absolute working directory
3701# name.  Accept space and tab only in the latter.
3702am_lf='
3703'
3704case `pwd` in
3705  *[\\\"\#\$\&\'\`$am_lf]*)
3706    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3707esac
3708case $srcdir in
3709  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
3710    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3711esac
3712
3713# Do 'set' in a subshell so we don't clobber the current shell's
3714# arguments.  Must try -L first in case configure is actually a
3715# symlink; some systems play weird games with the mod time of symlinks
3716# (eg FreeBSD returns the mod time of the symlink's containing
3717# directory).
3718if (
3719   am_has_slept=no
3720   for am_try in 1 2; do
3721     echo "timestamp, slept: $am_has_slept" > conftest.file
3722     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3723     if test "$*" = "X"; then
3724	# -L didn't work.
3725	set X `ls -t "$srcdir/configure" conftest.file`
3726     fi
3727     if test "$*" != "X $srcdir/configure conftest.file" \
3728	&& test "$*" != "X conftest.file $srcdir/configure"; then
3729
3730	# If neither matched, then we have a broken ls.  This can happen
3731	# if, for instance, CONFIG_SHELL is bash and it inherits a
3732	# broken ls alias from the environment.  This has actually
3733	# happened.  Such a system could not be considered "sane".
3734	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3735  alias in your environment" "$LINENO" 5
3736     fi
3737     if test "$2" = conftest.file || test $am_try -eq 2; then
3738       break
3739     fi
3740     # Just in case.
3741     sleep 1
3742     am_has_slept=yes
3743   done
3744   test "$2" = conftest.file
3745   )
3746then
3747   # Ok.
3748   :
3749else
3750   as_fn_error $? "newly created file is older than distributed files!
3751Check your system clock" "$LINENO" 5
3752fi
3753{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3754printf "%s\n" "yes" >&6; }
3755# If we didn't sleep, we still need to ensure time stamps of config.status and
3756# generated files are strictly newer.
3757am_sleep_pid=
3758if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3759  ( sleep 1 ) &
3760  am_sleep_pid=$!
3761fi
3762
3763rm -f conftest.file
3764
3765test "$program_prefix" != NONE &&
3766  program_transform_name="s&^&$program_prefix&;$program_transform_name"
3767# Use a double $ so make ignores it.
3768test "$program_suffix" != NONE &&
3769  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3770# Double any \ or $.
3771# By default was `s,x,x', remove it if useless.
3772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3773program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3774
3775
3776# Expand $ac_aux_dir to an absolute path.
3777am_aux_dir=`cd "$ac_aux_dir" && pwd`
3778
3779
3780  if test x"${MISSING+set}" != xset; then
3781  MISSING="\${SHELL} '$am_aux_dir/missing'"
3782fi
3783# Use eval to expand $SHELL
3784if eval "$MISSING --is-lightweight"; then
3785  am_missing_run="$MISSING "
3786else
3787  am_missing_run=
3788  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3789printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3790fi
3791
3792if test x"${install_sh+set}" != xset; then
3793  case $am_aux_dir in
3794  *\ * | *\	*)
3795    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3796  *)
3797    install_sh="\${SHELL} $am_aux_dir/install-sh"
3798  esac
3799fi
3800
3801# Installed binaries are usually stripped using 'strip' when the user
3802# run "make install-strip".  However 'strip' might not be the right
3803# tool to use in cross-compilation environments, therefore Automake
3804# will honor the 'STRIP' environment variable to overrule this program.
3805if test "$cross_compiling" != no; then
3806  if test -n "$ac_tool_prefix"; then
3807  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3808set dummy ${ac_tool_prefix}strip; ac_word=$2
3809{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3810printf %s "checking for $ac_word... " >&6; }
3811if test ${ac_cv_prog_STRIP+y}
3812then :
3813  printf %s "(cached) " >&6
3814else $as_nop
3815  if test -n "$STRIP"; then
3816  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3817else
3818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3819for as_dir in $PATH
3820do
3821  IFS=$as_save_IFS
3822  case $as_dir in #(((
3823    '') as_dir=./ ;;
3824    */) ;;
3825    *) as_dir=$as_dir/ ;;
3826  esac
3827    for ac_exec_ext in '' $ac_executable_extensions; do
3828  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3829    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3830    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3831    break 2
3832  fi
3833done
3834  done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839STRIP=$ac_cv_prog_STRIP
3840if test -n "$STRIP"; then
3841  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3842printf "%s\n" "$STRIP" >&6; }
3843else
3844  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845printf "%s\n" "no" >&6; }
3846fi
3847
3848
3849fi
3850if test -z "$ac_cv_prog_STRIP"; then
3851  ac_ct_STRIP=$STRIP
3852  # Extract the first word of "strip", so it can be a program name with args.
3853set dummy strip; ac_word=$2
3854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855printf %s "checking for $ac_word... " >&6; }
3856if test ${ac_cv_prog_ac_ct_STRIP+y}
3857then :
3858  printf %s "(cached) " >&6
3859else $as_nop
3860  if test -n "$ac_ct_STRIP"; then
3861  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866  IFS=$as_save_IFS
3867  case $as_dir in #(((
3868    '') as_dir=./ ;;
3869    */) ;;
3870    *) as_dir=$as_dir/ ;;
3871  esac
3872    for ac_exec_ext in '' $ac_executable_extensions; do
3873  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3874    ac_cv_prog_ac_ct_STRIP="strip"
3875    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3876    break 2
3877  fi
3878done
3879  done
3880IFS=$as_save_IFS
3881
3882fi
3883fi
3884ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3885if test -n "$ac_ct_STRIP"; then
3886  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3887printf "%s\n" "$ac_ct_STRIP" >&6; }
3888else
3889  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890printf "%s\n" "no" >&6; }
3891fi
3892
3893  if test "x$ac_ct_STRIP" = x; then
3894    STRIP=":"
3895  else
3896    case $cross_compiling:$ac_tool_warned in
3897yes:)
3898{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900ac_tool_warned=yes ;;
3901esac
3902    STRIP=$ac_ct_STRIP
3903  fi
3904else
3905  STRIP="$ac_cv_prog_STRIP"
3906fi
3907
3908fi
3909INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3910
3911
3912  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3913printf %s "checking for a race-free mkdir -p... " >&6; }
3914if test -z "$MKDIR_P"; then
3915  if test ${ac_cv_path_mkdir+y}
3916then :
3917  printf %s "(cached) " >&6
3918else $as_nop
3919  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3921do
3922  IFS=$as_save_IFS
3923  case $as_dir in #(((
3924    '') as_dir=./ ;;
3925    */) ;;
3926    *) as_dir=$as_dir/ ;;
3927  esac
3928    for ac_prog in mkdir gmkdir; do
3929	 for ac_exec_ext in '' $ac_executable_extensions; do
3930	   as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3931	   case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3932	     'mkdir ('*'coreutils) '* | \
3933	     'BusyBox '* | \
3934	     'mkdir (fileutils) '4.1*)
3935	       ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3936	       break 3;;
3937	   esac
3938	 done
3939       done
3940  done
3941IFS=$as_save_IFS
3942
3943fi
3944
3945  test -d ./--version && rmdir ./--version
3946  if test ${ac_cv_path_mkdir+y}; then
3947    MKDIR_P="$ac_cv_path_mkdir -p"
3948  else
3949    # As a last resort, use the slow shell script.  Don't cache a
3950    # value for MKDIR_P within a source directory, because that will
3951    # break other packages using the cache if that directory is
3952    # removed, or if the value is a relative name.
3953    MKDIR_P="$ac_install_sh -d"
3954  fi
3955fi
3956{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3957printf "%s\n" "$MKDIR_P" >&6; }
3958
3959for ac_prog in gawk mawk nawk awk
3960do
3961  # Extract the first word of "$ac_prog", so it can be a program name with args.
3962set dummy $ac_prog; ac_word=$2
3963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3964printf %s "checking for $ac_word... " >&6; }
3965if test ${ac_cv_prog_AWK+y}
3966then :
3967  printf %s "(cached) " >&6
3968else $as_nop
3969  if test -n "$AWK"; then
3970  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3971else
3972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973for as_dir in $PATH
3974do
3975  IFS=$as_save_IFS
3976  case $as_dir in #(((
3977    '') as_dir=./ ;;
3978    */) ;;
3979    *) as_dir=$as_dir/ ;;
3980  esac
3981    for ac_exec_ext in '' $ac_executable_extensions; do
3982  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3983    ac_cv_prog_AWK="$ac_prog"
3984    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3985    break 2
3986  fi
3987done
3988  done
3989IFS=$as_save_IFS
3990
3991fi
3992fi
3993AWK=$ac_cv_prog_AWK
3994if test -n "$AWK"; then
3995  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3996printf "%s\n" "$AWK" >&6; }
3997else
3998  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999printf "%s\n" "no" >&6; }
4000fi
4001
4002
4003  test -n "$AWK" && break
4004done
4005
4006{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4007printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4008set x ${MAKE-make}
4009ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4010if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4011then :
4012  printf %s "(cached) " >&6
4013else $as_nop
4014  cat >conftest.make <<\_ACEOF
4015SHELL = /bin/sh
4016all:
4017	@echo '@@@%%%=$(MAKE)=@@@%%%'
4018_ACEOF
4019# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4020case `${MAKE-make} -f conftest.make 2>/dev/null` in
4021  *@@@%%%=?*=@@@%%%*)
4022    eval ac_cv_prog_make_${ac_make}_set=yes;;
4023  *)
4024    eval ac_cv_prog_make_${ac_make}_set=no;;
4025esac
4026rm -f conftest.make
4027fi
4028if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4030printf "%s\n" "yes" >&6; }
4031  SET_MAKE=
4032else
4033  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4034printf "%s\n" "no" >&6; }
4035  SET_MAKE="MAKE=${MAKE-make}"
4036fi
4037
4038rm -rf .tst 2>/dev/null
4039mkdir .tst 2>/dev/null
4040if test -d .tst; then
4041  am__leading_dot=.
4042else
4043  am__leading_dot=_
4044fi
4045rmdir .tst 2>/dev/null
4046
4047# Check whether --enable-silent-rules was given.
4048if test ${enable_silent_rules+y}
4049then :
4050  enableval=$enable_silent_rules;
4051fi
4052
4053case $enable_silent_rules in # (((
4054  yes) AM_DEFAULT_VERBOSITY=0;;
4055   no) AM_DEFAULT_VERBOSITY=1;;
4056    *) AM_DEFAULT_VERBOSITY=1;;
4057esac
4058am_make=${MAKE-make}
4059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4060printf %s "checking whether $am_make supports nested variables... " >&6; }
4061if test ${am_cv_make_support_nested_variables+y}
4062then :
4063  printf %s "(cached) " >&6
4064else $as_nop
4065  if printf "%s\n" 'TRUE=$(BAR$(V))
4066BAR0=false
4067BAR1=true
4068V=1
4069am__doit:
4070	@$(TRUE)
4071.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4072  am_cv_make_support_nested_variables=yes
4073else
4074  am_cv_make_support_nested_variables=no
4075fi
4076fi
4077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4078printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4079if test $am_cv_make_support_nested_variables = yes; then
4080    AM_V='$(V)'
4081  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4082else
4083  AM_V=$AM_DEFAULT_VERBOSITY
4084  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4085fi
4086AM_BACKSLASH='\'
4087
4088if test "`cd $srcdir && pwd`" != "`pwd`"; then
4089  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4090  # is not polluted with repeated "-I."
4091  am__isrc=' -I$(srcdir)'
4092  # test to see if srcdir already configured
4093  if test -f $srcdir/config.status; then
4094    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4095  fi
4096fi
4097
4098# test whether we have cygpath
4099if test -z "$CYGPATH_W"; then
4100  if (cygpath --version) >/dev/null 2>/dev/null; then
4101    CYGPATH_W='cygpath -w'
4102  else
4103    CYGPATH_W=echo
4104  fi
4105fi
4106
4107
4108# Define the identity of the package.
4109 PACKAGE='pidgin'
4110 VERSION='2.14.8'
4111
4112
4113printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4114
4115
4116printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4117
4118# Some tools Automake needs.
4119
4120ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4121
4122
4123AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4124
4125
4126AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4127
4128
4129AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4130
4131
4132MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4133
4134# For better backward compatibility.  To be removed once Automake 1.9.x
4135# dies out for good.  For more background, see:
4136# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4137# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4138mkdir_p='$(MKDIR_P)'
4139
4140# We need awk for the "check" target (and possibly the TAP driver).  The
4141# system "awk" is bad on some platforms.
4142# Always define AMTAR for backward compatibility.  Yes, it's still used
4143# in the wild :-(  We should find a proper way to deprecate it ...
4144AMTAR='$${TAR-tar}'
4145
4146
4147# We'll loop over all known methods to create a tar archive until one works.
4148_am_tools='gnutar  pax cpio none'
4149
4150am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4151
4152
4153
4154
4155
4156# Variables for tags utilities; see am/tags.am
4157if test -z "$CTAGS"; then
4158  CTAGS=ctags
4159fi
4160
4161if test -z "$ETAGS"; then
4162  ETAGS=etags
4163fi
4164
4165if test -z "$CSCOPE"; then
4166  CSCOPE=cscope
4167fi
4168
4169
4170
4171# POSIX will say in a future version that running "rm -f" with no argument
4172# is OK; and we want to be able to make that assumption in our Makefile
4173# recipes.  So use an aggressive probe to check that the usage we want is
4174# actually supported "in the wild" to an acceptable degree.
4175# See automake bug#10828.
4176# To make any issue more visible, cause the running configure to be aborted
4177# by default if the 'rm' program in use doesn't match our expectations; the
4178# user can still override this though.
4179if rm -f && rm -fr && rm -rf; then : OK; else
4180  cat >&2 <<'END'
4181Oops!
4182
4183Your 'rm' program seems unable to run without file operands specified
4184on the command line, even when the '-f' option is present.  This is contrary
4185to the behaviour of most rm programs out there, and not conforming with
4186the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4187
4188Please tell bug-automake@gnu.org about your system, including the value
4189of your $PATH and any error possibly output before this message.  This
4190can help us improve future automake versions.
4191
4192END
4193  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4194    echo 'Configuration will proceed anyway, since you have set the' >&2
4195    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4196    echo >&2
4197  else
4198    cat >&2 <<'END'
4199Aborting the configuration process, to ensure you take notice of the issue.
4200
4201You can download and install GNU coreutils to get an 'rm' implementation
4202that behaves properly: <https://www.gnu.org/software/coreutils/>.
4203
4204If you want to complete the configuration process using your problematic
4205'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4206to "yes", and re-run configure.
4207
4208END
4209    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4210  fi
4211fi
4212
4213# Check whether --enable-silent-rules was given.
4214if test ${enable_silent_rules+y}
4215then :
4216  enableval=$enable_silent_rules;
4217fi
4218
4219case $enable_silent_rules in # (((
4220  yes) AM_DEFAULT_VERBOSITY=0;;
4221   no) AM_DEFAULT_VERBOSITY=1;;
4222    *) AM_DEFAULT_VERBOSITY=0;;
4223esac
4224am_make=${MAKE-make}
4225{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4226printf %s "checking whether $am_make supports nested variables... " >&6; }
4227if test ${am_cv_make_support_nested_variables+y}
4228then :
4229  printf %s "(cached) " >&6
4230else $as_nop
4231  if printf "%s\n" 'TRUE=$(BAR$(V))
4232BAR0=false
4233BAR1=true
4234V=1
4235am__doit:
4236	@$(TRUE)
4237.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4238  am_cv_make_support_nested_variables=yes
4239else
4240  am_cv_make_support_nested_variables=no
4241fi
4242fi
4243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4244printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4245if test $am_cv_make_support_nested_variables = yes; then
4246    AM_V='$(V)'
4247  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4248else
4249  AM_V=$AM_DEFAULT_VERBOSITY
4250  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4251fi
4252AM_BACKSLASH='\'
4253
4254
4255PURPLE_MAJOR_VERSION=2
4256PURPLE_MINOR_VERSION=14
4257PURPLE_MICRO_VERSION=8
4258PURPLE_VERSION=purple_display_version
4259
4260
4261
4262
4263
4264PURPLE_LT_VERSION_INFO="14:8:14"
4265
4266
4267# Extract the first word of "sed", so it can be a program name with args.
4268set dummy sed; ac_word=$2
4269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270printf %s "checking for $ac_word... " >&6; }
4271if test ${ac_cv_path_sedpath+y}
4272then :
4273  printf %s "(cached) " >&6
4274else $as_nop
4275  case $sedpath in
4276  [\\/]* | ?:[\\/]*)
4277  ac_cv_path_sedpath="$sedpath" # Let the user override the test with a path.
4278  ;;
4279  *)
4280  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4281for as_dir in $PATH
4282do
4283  IFS=$as_save_IFS
4284  case $as_dir in #(((
4285    '') as_dir=./ ;;
4286    */) ;;
4287    *) as_dir=$as_dir/ ;;
4288  esac
4289    for ac_exec_ext in '' $ac_executable_extensions; do
4290  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4291    ac_cv_path_sedpath="$as_dir$ac_word$ac_exec_ext"
4292    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4293    break 2
4294  fi
4295done
4296  done
4297IFS=$as_save_IFS
4298
4299  ;;
4300esac
4301fi
4302sedpath=$ac_cv_path_sedpath
4303if test -n "$sedpath"; then
4304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $sedpath" >&5
4305printf "%s\n" "$sedpath" >&6; }
4306else
4307  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4308printf "%s\n" "no" >&6; }
4309fi
4310
4311
4312
4313
4314printf "%s\n" "#define CONFIG_ARGS \"$ac_configure_args\"" >>confdefs.h
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326ac_ext=c
4327ac_cpp='$CPP $CPPFLAGS'
4328ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331if test -n "$ac_tool_prefix"; then
4332  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4333set dummy ${ac_tool_prefix}gcc; ac_word=$2
4334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335printf %s "checking for $ac_word... " >&6; }
4336if test ${ac_cv_prog_CC+y}
4337then :
4338  printf %s "(cached) " >&6
4339else $as_nop
4340  if test -n "$CC"; then
4341  ac_cv_prog_CC="$CC" # Let the user override the test.
4342else
4343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346  IFS=$as_save_IFS
4347  case $as_dir in #(((
4348    '') as_dir=./ ;;
4349    */) ;;
4350    *) as_dir=$as_dir/ ;;
4351  esac
4352    for ac_exec_ext in '' $ac_executable_extensions; do
4353  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4354    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4355    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4356    break 2
4357  fi
4358done
4359  done
4360IFS=$as_save_IFS
4361
4362fi
4363fi
4364CC=$ac_cv_prog_CC
4365if test -n "$CC"; then
4366  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4367printf "%s\n" "$CC" >&6; }
4368else
4369  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4370printf "%s\n" "no" >&6; }
4371fi
4372
4373
4374fi
4375if test -z "$ac_cv_prog_CC"; then
4376  ac_ct_CC=$CC
4377  # Extract the first word of "gcc", so it can be a program name with args.
4378set dummy gcc; ac_word=$2
4379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380printf %s "checking for $ac_word... " >&6; }
4381if test ${ac_cv_prog_ac_ct_CC+y}
4382then :
4383  printf %s "(cached) " >&6
4384else $as_nop
4385  if test -n "$ac_ct_CC"; then
4386  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4387else
4388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389for as_dir in $PATH
4390do
4391  IFS=$as_save_IFS
4392  case $as_dir in #(((
4393    '') as_dir=./ ;;
4394    */) ;;
4395    *) as_dir=$as_dir/ ;;
4396  esac
4397    for ac_exec_ext in '' $ac_executable_extensions; do
4398  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4399    ac_cv_prog_ac_ct_CC="gcc"
4400    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4401    break 2
4402  fi
4403done
4404  done
4405IFS=$as_save_IFS
4406
4407fi
4408fi
4409ac_ct_CC=$ac_cv_prog_ac_ct_CC
4410if test -n "$ac_ct_CC"; then
4411  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4412printf "%s\n" "$ac_ct_CC" >&6; }
4413else
4414  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4415printf "%s\n" "no" >&6; }
4416fi
4417
4418  if test "x$ac_ct_CC" = x; then
4419    CC=""
4420  else
4421    case $cross_compiling:$ac_tool_warned in
4422yes:)
4423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4424printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4425ac_tool_warned=yes ;;
4426esac
4427    CC=$ac_ct_CC
4428  fi
4429else
4430  CC="$ac_cv_prog_CC"
4431fi
4432
4433if test -z "$CC"; then
4434          if test -n "$ac_tool_prefix"; then
4435    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4436set dummy ${ac_tool_prefix}cc; ac_word=$2
4437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4438printf %s "checking for $ac_word... " >&6; }
4439if test ${ac_cv_prog_CC+y}
4440then :
4441  printf %s "(cached) " >&6
4442else $as_nop
4443  if test -n "$CC"; then
4444  ac_cv_prog_CC="$CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449  IFS=$as_save_IFS
4450  case $as_dir in #(((
4451    '') as_dir=./ ;;
4452    */) ;;
4453    *) as_dir=$as_dir/ ;;
4454  esac
4455    for ac_exec_ext in '' $ac_executable_extensions; do
4456  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4457    ac_cv_prog_CC="${ac_tool_prefix}cc"
4458    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4459    break 2
4460  fi
4461done
4462  done
4463IFS=$as_save_IFS
4464
4465fi
4466fi
4467CC=$ac_cv_prog_CC
4468if test -n "$CC"; then
4469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4470printf "%s\n" "$CC" >&6; }
4471else
4472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4473printf "%s\n" "no" >&6; }
4474fi
4475
4476
4477  fi
4478fi
4479if test -z "$CC"; then
4480  # Extract the first word of "cc", so it can be a program name with args.
4481set dummy cc; ac_word=$2
4482{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4483printf %s "checking for $ac_word... " >&6; }
4484if test ${ac_cv_prog_CC+y}
4485then :
4486  printf %s "(cached) " >&6
4487else $as_nop
4488  if test -n "$CC"; then
4489  ac_cv_prog_CC="$CC" # Let the user override the test.
4490else
4491  ac_prog_rejected=no
4492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493for as_dir in $PATH
4494do
4495  IFS=$as_save_IFS
4496  case $as_dir in #(((
4497    '') as_dir=./ ;;
4498    */) ;;
4499    *) as_dir=$as_dir/ ;;
4500  esac
4501    for ac_exec_ext in '' $ac_executable_extensions; do
4502  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4503    if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4504       ac_prog_rejected=yes
4505       continue
4506     fi
4507    ac_cv_prog_CC="cc"
4508    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4509    break 2
4510  fi
4511done
4512  done
4513IFS=$as_save_IFS
4514
4515if test $ac_prog_rejected = yes; then
4516  # We found a bogon in the path, so make sure we never use it.
4517  set dummy $ac_cv_prog_CC
4518  shift
4519  if test $# != 0; then
4520    # We chose a different compiler from the bogus one.
4521    # However, it has the same basename, so the bogon will be chosen
4522    # first if we set CC to just the basename; use the full file name.
4523    shift
4524    ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4525  fi
4526fi
4527fi
4528fi
4529CC=$ac_cv_prog_CC
4530if test -n "$CC"; then
4531  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4532printf "%s\n" "$CC" >&6; }
4533else
4534  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535printf "%s\n" "no" >&6; }
4536fi
4537
4538
4539fi
4540if test -z "$CC"; then
4541  if test -n "$ac_tool_prefix"; then
4542  for ac_prog in cl.exe
4543  do
4544    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4545set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4546{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4547printf %s "checking for $ac_word... " >&6; }
4548if test ${ac_cv_prog_CC+y}
4549then :
4550  printf %s "(cached) " >&6
4551else $as_nop
4552  if test -n "$CC"; then
4553  ac_cv_prog_CC="$CC" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558  IFS=$as_save_IFS
4559  case $as_dir in #(((
4560    '') as_dir=./ ;;
4561    */) ;;
4562    *) as_dir=$as_dir/ ;;
4563  esac
4564    for ac_exec_ext in '' $ac_executable_extensions; do
4565  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4566    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4567    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4568    break 2
4569  fi
4570done
4571  done
4572IFS=$as_save_IFS
4573
4574fi
4575fi
4576CC=$ac_cv_prog_CC
4577if test -n "$CC"; then
4578  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4579printf "%s\n" "$CC" >&6; }
4580else
4581  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4582printf "%s\n" "no" >&6; }
4583fi
4584
4585
4586    test -n "$CC" && break
4587  done
4588fi
4589if test -z "$CC"; then
4590  ac_ct_CC=$CC
4591  for ac_prog in cl.exe
4592do
4593  # Extract the first word of "$ac_prog", so it can be a program name with args.
4594set dummy $ac_prog; ac_word=$2
4595{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4596printf %s "checking for $ac_word... " >&6; }
4597if test ${ac_cv_prog_ac_ct_CC+y}
4598then :
4599  printf %s "(cached) " >&6
4600else $as_nop
4601  if test -n "$ac_ct_CC"; then
4602  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4603else
4604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607  IFS=$as_save_IFS
4608  case $as_dir in #(((
4609    '') as_dir=./ ;;
4610    */) ;;
4611    *) as_dir=$as_dir/ ;;
4612  esac
4613    for ac_exec_ext in '' $ac_executable_extensions; do
4614  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4615    ac_cv_prog_ac_ct_CC="$ac_prog"
4616    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4617    break 2
4618  fi
4619done
4620  done
4621IFS=$as_save_IFS
4622
4623fi
4624fi
4625ac_ct_CC=$ac_cv_prog_ac_ct_CC
4626if test -n "$ac_ct_CC"; then
4627  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4628printf "%s\n" "$ac_ct_CC" >&6; }
4629else
4630  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4631printf "%s\n" "no" >&6; }
4632fi
4633
4634
4635  test -n "$ac_ct_CC" && break
4636done
4637
4638  if test "x$ac_ct_CC" = x; then
4639    CC=""
4640  else
4641    case $cross_compiling:$ac_tool_warned in
4642yes:)
4643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4644printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4645ac_tool_warned=yes ;;
4646esac
4647    CC=$ac_ct_CC
4648  fi
4649fi
4650
4651fi
4652if test -z "$CC"; then
4653  if test -n "$ac_tool_prefix"; then
4654  # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4655set dummy ${ac_tool_prefix}clang; ac_word=$2
4656{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4657printf %s "checking for $ac_word... " >&6; }
4658if test ${ac_cv_prog_CC+y}
4659then :
4660  printf %s "(cached) " >&6
4661else $as_nop
4662  if test -n "$CC"; then
4663  ac_cv_prog_CC="$CC" # Let the user override the test.
4664else
4665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666for as_dir in $PATH
4667do
4668  IFS=$as_save_IFS
4669  case $as_dir in #(((
4670    '') as_dir=./ ;;
4671    */) ;;
4672    *) as_dir=$as_dir/ ;;
4673  esac
4674    for ac_exec_ext in '' $ac_executable_extensions; do
4675  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4676    ac_cv_prog_CC="${ac_tool_prefix}clang"
4677    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4678    break 2
4679  fi
4680done
4681  done
4682IFS=$as_save_IFS
4683
4684fi
4685fi
4686CC=$ac_cv_prog_CC
4687if test -n "$CC"; then
4688  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4689printf "%s\n" "$CC" >&6; }
4690else
4691  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692printf "%s\n" "no" >&6; }
4693fi
4694
4695
4696fi
4697if test -z "$ac_cv_prog_CC"; then
4698  ac_ct_CC=$CC
4699  # Extract the first word of "clang", so it can be a program name with args.
4700set dummy clang; ac_word=$2
4701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4702printf %s "checking for $ac_word... " >&6; }
4703if test ${ac_cv_prog_ac_ct_CC+y}
4704then :
4705  printf %s "(cached) " >&6
4706else $as_nop
4707  if test -n "$ac_ct_CC"; then
4708  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4709else
4710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711for as_dir in $PATH
4712do
4713  IFS=$as_save_IFS
4714  case $as_dir in #(((
4715    '') as_dir=./ ;;
4716    */) ;;
4717    *) as_dir=$as_dir/ ;;
4718  esac
4719    for ac_exec_ext in '' $ac_executable_extensions; do
4720  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4721    ac_cv_prog_ac_ct_CC="clang"
4722    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4723    break 2
4724  fi
4725done
4726  done
4727IFS=$as_save_IFS
4728
4729fi
4730fi
4731ac_ct_CC=$ac_cv_prog_ac_ct_CC
4732if test -n "$ac_ct_CC"; then
4733  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4734printf "%s\n" "$ac_ct_CC" >&6; }
4735else
4736  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737printf "%s\n" "no" >&6; }
4738fi
4739
4740  if test "x$ac_ct_CC" = x; then
4741    CC=""
4742  else
4743    case $cross_compiling:$ac_tool_warned in
4744yes:)
4745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4746printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4747ac_tool_warned=yes ;;
4748esac
4749    CC=$ac_ct_CC
4750  fi
4751else
4752  CC="$ac_cv_prog_CC"
4753fi
4754
4755fi
4756
4757
4758test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4759printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4760as_fn_error $? "no acceptable C compiler found in \$PATH
4761See \`config.log' for more details" "$LINENO" 5; }
4762
4763# Provide some information about the compiler.
4764printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4765set X $ac_compile
4766ac_compiler=$2
4767for ac_option in --version -v -V -qversion -version; do
4768  { { ac_try="$ac_compiler $ac_option >&5"
4769case "(($ac_try" in
4770  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771  *) ac_try_echo=$ac_try;;
4772esac
4773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774printf "%s\n" "$ac_try_echo"; } >&5
4775  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4776  ac_status=$?
4777  if test -s conftest.err; then
4778    sed '10a\
4779... rest of stderr output deleted ...
4780         10q' conftest.err >conftest.er1
4781    cat conftest.er1 >&5
4782  fi
4783  rm -f conftest.er1 conftest.err
4784  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4785  test $ac_status = 0; }
4786done
4787
4788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789/* end confdefs.h.  */
4790
4791int
4792main (void)
4793{
4794
4795  ;
4796  return 0;
4797}
4798_ACEOF
4799ac_clean_files_save=$ac_clean_files
4800ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4801# Try to create an executable without -o first, disregard a.out.
4802# It will help us diagnose broken compilers, and finding out an intuition
4803# of exeext.
4804{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4805printf %s "checking whether the C compiler works... " >&6; }
4806ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4807
4808# The possible output files:
4809ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4810
4811ac_rmfiles=
4812for ac_file in $ac_files
4813do
4814  case $ac_file in
4815    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4816    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4817  esac
4818done
4819rm -f $ac_rmfiles
4820
4821if { { ac_try="$ac_link_default"
4822case "(($ac_try" in
4823  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4824  *) ac_try_echo=$ac_try;;
4825esac
4826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4827printf "%s\n" "$ac_try_echo"; } >&5
4828  (eval "$ac_link_default") 2>&5
4829  ac_status=$?
4830  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4831  test $ac_status = 0; }
4832then :
4833  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4834# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4835# in a Makefile.  We should not override ac_cv_exeext if it was cached,
4836# so that the user can short-circuit this test for compilers unknown to
4837# Autoconf.
4838for ac_file in $ac_files ''
4839do
4840  test -f "$ac_file" || continue
4841  case $ac_file in
4842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4843	;;
4844    [ab].out )
4845	# We found the default executable, but exeext='' is most
4846	# certainly right.
4847	break;;
4848    *.* )
4849	if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4850	then :; else
4851	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4852	fi
4853	# We set ac_cv_exeext here because the later test for it is not
4854	# safe: cross compilers may not add the suffix if given an `-o'
4855	# argument, so we may need to know it at that point already.
4856	# Even if this section looks crufty: it has the advantage of
4857	# actually working.
4858	break;;
4859    * )
4860	break;;
4861  esac
4862done
4863test "$ac_cv_exeext" = no && ac_cv_exeext=
4864
4865else $as_nop
4866  ac_file=''
4867fi
4868if test -z "$ac_file"
4869then :
4870  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4871printf "%s\n" "no" >&6; }
4872printf "%s\n" "$as_me: failed program was:" >&5
4873sed 's/^/| /' conftest.$ac_ext >&5
4874
4875{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4876printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4877as_fn_error 77 "C compiler cannot create executables
4878See \`config.log' for more details" "$LINENO" 5; }
4879else $as_nop
4880  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4881printf "%s\n" "yes" >&6; }
4882fi
4883{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4884printf %s "checking for C compiler default output file name... " >&6; }
4885{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4886printf "%s\n" "$ac_file" >&6; }
4887ac_exeext=$ac_cv_exeext
4888
4889rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4890ac_clean_files=$ac_clean_files_save
4891{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4892printf %s "checking for suffix of executables... " >&6; }
4893if { { ac_try="$ac_link"
4894case "(($ac_try" in
4895  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4896  *) ac_try_echo=$ac_try;;
4897esac
4898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4899printf "%s\n" "$ac_try_echo"; } >&5
4900  (eval "$ac_link") 2>&5
4901  ac_status=$?
4902  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4903  test $ac_status = 0; }
4904then :
4905  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4906# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4907# work properly (i.e., refer to `conftest.exe'), while it won't with
4908# `rm'.
4909for ac_file in conftest.exe conftest conftest.*; do
4910  test -f "$ac_file" || continue
4911  case $ac_file in
4912    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4913    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4914	  break;;
4915    * ) break;;
4916  esac
4917done
4918else $as_nop
4919  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4920printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4921as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4922See \`config.log' for more details" "$LINENO" 5; }
4923fi
4924rm -f conftest conftest$ac_cv_exeext
4925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4926printf "%s\n" "$ac_cv_exeext" >&6; }
4927
4928rm -f conftest.$ac_ext
4929EXEEXT=$ac_cv_exeext
4930ac_exeext=$EXEEXT
4931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932/* end confdefs.h.  */
4933#include <stdio.h>
4934int
4935main (void)
4936{
4937FILE *f = fopen ("conftest.out", "w");
4938 return ferror (f) || fclose (f) != 0;
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944ac_clean_files="$ac_clean_files conftest.out"
4945# Check that the compiler produces executables we can run.  If not, either
4946# the compiler is broken, or we cross compile.
4947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4948printf %s "checking whether we are cross compiling... " >&6; }
4949if test "$cross_compiling" != yes; then
4950  { { ac_try="$ac_link"
4951case "(($ac_try" in
4952  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4953  *) ac_try_echo=$ac_try;;
4954esac
4955eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4956printf "%s\n" "$ac_try_echo"; } >&5
4957  (eval "$ac_link") 2>&5
4958  ac_status=$?
4959  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4960  test $ac_status = 0; }
4961  if { ac_try='./conftest$ac_cv_exeext'
4962  { { case "(($ac_try" in
4963  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964  *) ac_try_echo=$ac_try;;
4965esac
4966eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4967printf "%s\n" "$ac_try_echo"; } >&5
4968  (eval "$ac_try") 2>&5
4969  ac_status=$?
4970  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4971  test $ac_status = 0; }; }; then
4972    cross_compiling=no
4973  else
4974    if test "$cross_compiling" = maybe; then
4975	cross_compiling=yes
4976    else
4977	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4978printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4979as_fn_error 77 "cannot run C compiled programs.
4980If you meant to cross compile, use \`--host'.
4981See \`config.log' for more details" "$LINENO" 5; }
4982    fi
4983  fi
4984fi
4985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4986printf "%s\n" "$cross_compiling" >&6; }
4987
4988rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4989ac_clean_files=$ac_clean_files_save
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4991printf %s "checking for suffix of object files... " >&6; }
4992if test ${ac_cv_objext+y}
4993then :
4994  printf %s "(cached) " >&6
4995else $as_nop
4996  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4997/* end confdefs.h.  */
4998
4999int
5000main (void)
5001{
5002
5003  ;
5004  return 0;
5005}
5006_ACEOF
5007rm -f conftest.o conftest.obj
5008if { { ac_try="$ac_compile"
5009case "(($ac_try" in
5010  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011  *) ac_try_echo=$ac_try;;
5012esac
5013eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5014printf "%s\n" "$ac_try_echo"; } >&5
5015  (eval "$ac_compile") 2>&5
5016  ac_status=$?
5017  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5018  test $ac_status = 0; }
5019then :
5020  for ac_file in conftest.o conftest.obj conftest.*; do
5021  test -f "$ac_file" || continue;
5022  case $ac_file in
5023    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5024    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5025       break;;
5026  esac
5027done
5028else $as_nop
5029  printf "%s\n" "$as_me: failed program was:" >&5
5030sed 's/^/| /' conftest.$ac_ext >&5
5031
5032{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5033printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5034as_fn_error $? "cannot compute suffix of object files: cannot compile
5035See \`config.log' for more details" "$LINENO" 5; }
5036fi
5037rm -f conftest.$ac_cv_objext conftest.$ac_ext
5038fi
5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5040printf "%s\n" "$ac_cv_objext" >&6; }
5041OBJEXT=$ac_cv_objext
5042ac_objext=$OBJEXT
5043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5044printf %s "checking whether the compiler supports GNU C... " >&6; }
5045if test ${ac_cv_c_compiler_gnu+y}
5046then :
5047  printf %s "(cached) " >&6
5048else $as_nop
5049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h.  */
5051
5052int
5053main (void)
5054{
5055#ifndef __GNUC__
5056       choke me
5057#endif
5058
5059  ;
5060  return 0;
5061}
5062_ACEOF
5063if ac_fn_c_try_compile "$LINENO"
5064then :
5065  ac_compiler_gnu=yes
5066else $as_nop
5067  ac_compiler_gnu=no
5068fi
5069rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5070ac_cv_c_compiler_gnu=$ac_compiler_gnu
5071
5072fi
5073{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5074printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5075ac_compiler_gnu=$ac_cv_c_compiler_gnu
5076
5077if test $ac_compiler_gnu = yes; then
5078  GCC=yes
5079else
5080  GCC=
5081fi
5082ac_test_CFLAGS=${CFLAGS+y}
5083ac_save_CFLAGS=$CFLAGS
5084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5085printf %s "checking whether $CC accepts -g... " >&6; }
5086if test ${ac_cv_prog_cc_g+y}
5087then :
5088  printf %s "(cached) " >&6
5089else $as_nop
5090  ac_save_c_werror_flag=$ac_c_werror_flag
5091   ac_c_werror_flag=yes
5092   ac_cv_prog_cc_g=no
5093   CFLAGS="-g"
5094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096
5097int
5098main (void)
5099{
5100
5101  ;
5102  return 0;
5103}
5104_ACEOF
5105if ac_fn_c_try_compile "$LINENO"
5106then :
5107  ac_cv_prog_cc_g=yes
5108else $as_nop
5109  CFLAGS=""
5110      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5111/* end confdefs.h.  */
5112
5113int
5114main (void)
5115{
5116
5117  ;
5118  return 0;
5119}
5120_ACEOF
5121if ac_fn_c_try_compile "$LINENO"
5122then :
5123
5124else $as_nop
5125  ac_c_werror_flag=$ac_save_c_werror_flag
5126	 CFLAGS="-g"
5127	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h.  */
5129
5130int
5131main (void)
5132{
5133
5134  ;
5135  return 0;
5136}
5137_ACEOF
5138if ac_fn_c_try_compile "$LINENO"
5139then :
5140  ac_cv_prog_cc_g=yes
5141fi
5142rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5143fi
5144rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5145fi
5146rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5147   ac_c_werror_flag=$ac_save_c_werror_flag
5148fi
5149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5150printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5151if test $ac_test_CFLAGS; then
5152  CFLAGS=$ac_save_CFLAGS
5153elif test $ac_cv_prog_cc_g = yes; then
5154  if test "$GCC" = yes; then
5155    CFLAGS="-g -O2"
5156  else
5157    CFLAGS="-g"
5158  fi
5159else
5160  if test "$GCC" = yes; then
5161    CFLAGS="-O2"
5162  else
5163    CFLAGS=
5164  fi
5165fi
5166ac_prog_cc_stdc=no
5167if test x$ac_prog_cc_stdc = xno
5168then :
5169  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5170printf %s "checking for $CC option to enable C11 features... " >&6; }
5171if test ${ac_cv_prog_cc_c11+y}
5172then :
5173  printf %s "(cached) " >&6
5174else $as_nop
5175  ac_cv_prog_cc_c11=no
5176ac_save_CC=$CC
5177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5178/* end confdefs.h.  */
5179$ac_c_conftest_c11_program
5180_ACEOF
5181for ac_arg in '' -std=gnu11
5182do
5183  CC="$ac_save_CC $ac_arg"
5184  if ac_fn_c_try_compile "$LINENO"
5185then :
5186  ac_cv_prog_cc_c11=$ac_arg
5187fi
5188rm -f core conftest.err conftest.$ac_objext conftest.beam
5189  test "x$ac_cv_prog_cc_c11" != "xno" && break
5190done
5191rm -f conftest.$ac_ext
5192CC=$ac_save_CC
5193fi
5194
5195if test "x$ac_cv_prog_cc_c11" = xno
5196then :
5197  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5198printf "%s\n" "unsupported" >&6; }
5199else $as_nop
5200  if test "x$ac_cv_prog_cc_c11" = x
5201then :
5202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5203printf "%s\n" "none needed" >&6; }
5204else $as_nop
5205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5206printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5207     CC="$CC $ac_cv_prog_cc_c11"
5208fi
5209  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5210  ac_prog_cc_stdc=c11
5211fi
5212fi
5213if test x$ac_prog_cc_stdc = xno
5214then :
5215  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5216printf %s "checking for $CC option to enable C99 features... " >&6; }
5217if test ${ac_cv_prog_cc_c99+y}
5218then :
5219  printf %s "(cached) " >&6
5220else $as_nop
5221  ac_cv_prog_cc_c99=no
5222ac_save_CC=$CC
5223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224/* end confdefs.h.  */
5225$ac_c_conftest_c99_program
5226_ACEOF
5227for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5228do
5229  CC="$ac_save_CC $ac_arg"
5230  if ac_fn_c_try_compile "$LINENO"
5231then :
5232  ac_cv_prog_cc_c99=$ac_arg
5233fi
5234rm -f core conftest.err conftest.$ac_objext conftest.beam
5235  test "x$ac_cv_prog_cc_c99" != "xno" && break
5236done
5237rm -f conftest.$ac_ext
5238CC=$ac_save_CC
5239fi
5240
5241if test "x$ac_cv_prog_cc_c99" = xno
5242then :
5243  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5244printf "%s\n" "unsupported" >&6; }
5245else $as_nop
5246  if test "x$ac_cv_prog_cc_c99" = x
5247then :
5248  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5249printf "%s\n" "none needed" >&6; }
5250else $as_nop
5251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5252printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5253     CC="$CC $ac_cv_prog_cc_c99"
5254fi
5255  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5256  ac_prog_cc_stdc=c99
5257fi
5258fi
5259if test x$ac_prog_cc_stdc = xno
5260then :
5261  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5262printf %s "checking for $CC option to enable C89 features... " >&6; }
5263if test ${ac_cv_prog_cc_c89+y}
5264then :
5265  printf %s "(cached) " >&6
5266else $as_nop
5267  ac_cv_prog_cc_c89=no
5268ac_save_CC=$CC
5269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5270/* end confdefs.h.  */
5271$ac_c_conftest_c89_program
5272_ACEOF
5273for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5274do
5275  CC="$ac_save_CC $ac_arg"
5276  if ac_fn_c_try_compile "$LINENO"
5277then :
5278  ac_cv_prog_cc_c89=$ac_arg
5279fi
5280rm -f core conftest.err conftest.$ac_objext conftest.beam
5281  test "x$ac_cv_prog_cc_c89" != "xno" && break
5282done
5283rm -f conftest.$ac_ext
5284CC=$ac_save_CC
5285fi
5286
5287if test "x$ac_cv_prog_cc_c89" = xno
5288then :
5289  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5290printf "%s\n" "unsupported" >&6; }
5291else $as_nop
5292  if test "x$ac_cv_prog_cc_c89" = x
5293then :
5294  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5295printf "%s\n" "none needed" >&6; }
5296else $as_nop
5297  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5298printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5299     CC="$CC $ac_cv_prog_cc_c89"
5300fi
5301  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5302  ac_prog_cc_stdc=c89
5303fi
5304fi
5305
5306ac_ext=c
5307ac_cpp='$CPP $CPPFLAGS'
5308ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5309ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5310ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311
5312
5313  ac_ext=c
5314ac_cpp='$CPP $CPPFLAGS'
5315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_c_compiler_gnu
5318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5319printf %s "checking whether $CC understands -c and -o together... " >&6; }
5320if test ${am_cv_prog_cc_c_o+y}
5321then :
5322  printf %s "(cached) " >&6
5323else $as_nop
5324  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5325/* end confdefs.h.  */
5326
5327int
5328main (void)
5329{
5330
5331  ;
5332  return 0;
5333}
5334_ACEOF
5335  # Make sure it works both with $CC and with simple cc.
5336  # Following AC_PROG_CC_C_O, we do the test twice because some
5337  # compilers refuse to overwrite an existing .o file with -o,
5338  # though they will create one.
5339  am_cv_prog_cc_c_o=yes
5340  for am_i in 1 2; do
5341    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5342   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5343   ac_status=$?
5344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5345   (exit $ac_status); } \
5346         && test -f conftest2.$ac_objext; then
5347      : OK
5348    else
5349      am_cv_prog_cc_c_o=no
5350      break
5351    fi
5352  done
5353  rm -f core conftest*
5354  unset am_i
5355fi
5356{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5357printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5358if test "$am_cv_prog_cc_c_o" != yes; then
5359   # Losing compiler, so override with the script.
5360   # FIXME: It is wrong to rewrite CC.
5361   # But if we don't then we get into trouble of one sort or another.
5362   # A longer-term fix would be to have automake use am__CC in this case,
5363   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5364   CC="$am_aux_dir/compile $CC"
5365fi
5366ac_ext=c
5367ac_cpp='$CPP $CPPFLAGS'
5368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_c_compiler_gnu
5371
5372DEPDIR="${am__leading_dot}deps"
5373
5374ac_config_commands="$ac_config_commands depfiles"
5375
5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5377printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5378cat > confinc.mk << 'END'
5379am__doit:
5380	@echo this is the am__doit target >confinc.out
5381.PHONY: am__doit
5382END
5383am__include="#"
5384am__quote=
5385# BSD make does it like this.
5386echo '.include "confinc.mk" # ignored' > confmf.BSD
5387# Other make implementations (GNU, Solaris 10, AIX) do it like this.
5388echo 'include confinc.mk # ignored' > confmf.GNU
5389_am_result=no
5390for s in GNU BSD; do
5391  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5392   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }
5396  case $?:`cat confinc.out 2>/dev/null` in #(
5397  '0:this is the am__doit target') :
5398    case $s in #(
5399  BSD) :
5400    am__include='.include' am__quote='"' ;; #(
5401  *) :
5402    am__include='include' am__quote='' ;;
5403esac ;; #(
5404  *) :
5405     ;;
5406esac
5407  if test "$am__include" != "#"; then
5408    _am_result="yes ($s style)"
5409    break
5410  fi
5411done
5412rm -f confinc.* confmf.*
5413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5414printf "%s\n" "${_am_result}" >&6; }
5415
5416# Check whether --enable-dependency-tracking was given.
5417if test ${enable_dependency_tracking+y}
5418then :
5419  enableval=$enable_dependency_tracking;
5420fi
5421
5422if test "x$enable_dependency_tracking" != xno; then
5423  am_depcomp="$ac_aux_dir/depcomp"
5424  AMDEPBACKSLASH='\'
5425  am__nodep='_no'
5426fi
5427 if test "x$enable_dependency_tracking" != xno; then
5428  AMDEP_TRUE=
5429  AMDEP_FALSE='#'
5430else
5431  AMDEP_TRUE='#'
5432  AMDEP_FALSE=
5433fi
5434
5435
5436
5437depcc="$CC"   am_compiler_list=
5438
5439{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5440printf %s "checking dependency style of $depcc... " >&6; }
5441if test ${am_cv_CC_dependencies_compiler_type+y}
5442then :
5443  printf %s "(cached) " >&6
5444else $as_nop
5445  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5446  # We make a subdir and do the tests there.  Otherwise we can end up
5447  # making bogus files that we don't know about and never remove.  For
5448  # instance it was reported that on HP-UX the gcc test will end up
5449  # making a dummy file named 'D' -- because '-MD' means "put the output
5450  # in D".
5451  rm -rf conftest.dir
5452  mkdir conftest.dir
5453  # Copy depcomp to subdir because otherwise we won't find it if we're
5454  # using a relative directory.
5455  cp "$am_depcomp" conftest.dir
5456  cd conftest.dir
5457  # We will build objects and dependencies in a subdirectory because
5458  # it helps to detect inapplicable dependency modes.  For instance
5459  # both Tru64's cc and ICC support -MD to output dependencies as a
5460  # side effect of compilation, but ICC will put the dependencies in
5461  # the current directory while Tru64 will put them in the object
5462  # directory.
5463  mkdir sub
5464
5465  am_cv_CC_dependencies_compiler_type=none
5466  if test "$am_compiler_list" = ""; then
5467     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5468  fi
5469  am__universal=false
5470  case " $depcc " in #(
5471     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5472     esac
5473
5474  for depmode in $am_compiler_list; do
5475    # Setup a source with many dependencies, because some compilers
5476    # like to wrap large dependency lists on column 80 (with \), and
5477    # we should not choose a depcomp mode which is confused by this.
5478    #
5479    # We need to recreate these files for each test, as the compiler may
5480    # overwrite some of them when testing with obscure command lines.
5481    # This happens at least with the AIX C compiler.
5482    : > sub/conftest.c
5483    for i in 1 2 3 4 5 6; do
5484      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5485      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5486      # Solaris 10 /bin/sh.
5487      echo '/* dummy */' > sub/conftst$i.h
5488    done
5489    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5490
5491    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5492    # mode.  It turns out that the SunPro C++ compiler does not properly
5493    # handle '-M -o', and we need to detect this.  Also, some Intel
5494    # versions had trouble with output in subdirs.
5495    am__obj=sub/conftest.${OBJEXT-o}
5496    am__minus_obj="-o $am__obj"
5497    case $depmode in
5498    gcc)
5499      # This depmode causes a compiler race in universal mode.
5500      test "$am__universal" = false || continue
5501      ;;
5502    nosideeffect)
5503      # After this tag, mechanisms are not by side-effect, so they'll
5504      # only be used when explicitly requested.
5505      if test "x$enable_dependency_tracking" = xyes; then
5506	continue
5507      else
5508	break
5509      fi
5510      ;;
5511    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5512      # This compiler won't grok '-c -o', but also, the minuso test has
5513      # not run yet.  These depmodes are late enough in the game, and
5514      # so weak that their functioning should not be impacted.
5515      am__obj=conftest.${OBJEXT-o}
5516      am__minus_obj=
5517      ;;
5518    none) break ;;
5519    esac
5520    if depmode=$depmode \
5521       source=sub/conftest.c object=$am__obj \
5522       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5523       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5524         >/dev/null 2>conftest.err &&
5525       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5526       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5527       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5528       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5529      # icc doesn't choke on unknown options, it will just issue warnings
5530      # or remarks (even with -Werror).  So we grep stderr for any message
5531      # that says an option was ignored or not supported.
5532      # When given -MP, icc 7.0 and 7.1 complain thusly:
5533      #   icc: Command line warning: ignoring option '-M'; no argument required
5534      # The diagnosis changed in icc 8.0:
5535      #   icc: Command line remark: option '-MP' not supported
5536      if (grep 'ignoring option' conftest.err ||
5537          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5538        am_cv_CC_dependencies_compiler_type=$depmode
5539        break
5540      fi
5541    fi
5542  done
5543
5544  cd ..
5545  rm -rf conftest.dir
5546else
5547  am_cv_CC_dependencies_compiler_type=none
5548fi
5549
5550fi
5551{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5552printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5553CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5554
5555 if
5556  test "x$enable_dependency_tracking" != xno \
5557  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5558  am__fastdepCC_TRUE=
5559  am__fastdepCC_FALSE='#'
5560else
5561  am__fastdepCC_TRUE='#'
5562  am__fastdepCC_FALSE=
5563fi
5564
5565
5566
5567# Check whether --enable-static was given.
5568if test ${enable_static+y}
5569then :
5570  enableval=$enable_static; p=${PACKAGE-default}
5571    case $enableval in
5572    yes) enable_static=yes ;;
5573    no) enable_static=no ;;
5574    *)
5575     enable_static=no
5576      # Look at the argument we got.  We use all the common list separators.
5577      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
5578      for pkg in $enableval; do
5579	IFS=$lt_save_ifs
5580	if test "X$pkg" = "X$p"; then
5581	  enable_static=yes
5582	fi
5583      done
5584      IFS=$lt_save_ifs
5585      ;;
5586    esac
5587else $as_nop
5588  enable_static=no
5589fi
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599case `pwd` in
5600  *\ * | *\	*)
5601    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5602printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5603esac
5604
5605
5606
5607macro_version='2.4.6'
5608macro_revision='2.4.6'
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623ltmain=$ac_aux_dir/ltmain.sh
5624
5625# Backslashify metacharacters that are still active within
5626# double-quoted strings.
5627sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5628
5629# Same as above, but do not quote variable references.
5630double_quote_subst='s/\(["`\\]\)/\\\1/g'
5631
5632# Sed substitution to delay expansion of an escaped shell variable in a
5633# double_quote_subst'ed string.
5634delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5635
5636# Sed substitution to delay expansion of an escaped single quote.
5637delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5638
5639# Sed substitution to avoid accidental globbing in evaled expressions
5640no_glob_subst='s/\*/\\\*/g'
5641
5642ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5643ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5644ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5645
5646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5647printf %s "checking how to print strings... " >&6; }
5648# Test print first, because it will be a builtin if present.
5649if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5650   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5651  ECHO='print -r --'
5652elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5653  ECHO='printf %s\n'
5654else
5655  # Use this function as a fallback that always works.
5656  func_fallback_echo ()
5657  {
5658    eval 'cat <<_LTECHO_EOF
5659$1
5660_LTECHO_EOF'
5661  }
5662  ECHO='func_fallback_echo'
5663fi
5664
5665# func_echo_all arg...
5666# Invoke $ECHO with all args, space-separated.
5667func_echo_all ()
5668{
5669    $ECHO ""
5670}
5671
5672case $ECHO in
5673  printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5674printf "%s\n" "printf" >&6; } ;;
5675  print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5676printf "%s\n" "print -r" >&6; } ;;
5677  *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5678printf "%s\n" "cat" >&6; } ;;
5679esac
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5695printf %s "checking for a sed that does not truncate output... " >&6; }
5696if test ${ac_cv_path_SED+y}
5697then :
5698  printf %s "(cached) " >&6
5699else $as_nop
5700            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5701     for ac_i in 1 2 3 4 5 6 7; do
5702       ac_script="$ac_script$as_nl$ac_script"
5703     done
5704     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5705     { ac_script=; unset ac_script;}
5706     if test -z "$SED"; then
5707  ac_path_SED_found=false
5708  # Loop through the user's path and test for each of PROGNAME-LIST
5709  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5710for as_dir in $PATH
5711do
5712  IFS=$as_save_IFS
5713  case $as_dir in #(((
5714    '') as_dir=./ ;;
5715    */) ;;
5716    *) as_dir=$as_dir/ ;;
5717  esac
5718    for ac_prog in sed gsed
5719   do
5720    for ac_exec_ext in '' $ac_executable_extensions; do
5721      ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5722      as_fn_executable_p "$ac_path_SED" || continue
5723# Check for GNU ac_path_SED and select it if it is found.
5724  # Check for GNU $ac_path_SED
5725case `"$ac_path_SED" --version 2>&1` in
5726*GNU*)
5727  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5728*)
5729  ac_count=0
5730  printf %s 0123456789 >"conftest.in"
5731  while :
5732  do
5733    cat "conftest.in" "conftest.in" >"conftest.tmp"
5734    mv "conftest.tmp" "conftest.in"
5735    cp "conftest.in" "conftest.nl"
5736    printf "%s\n" '' >> "conftest.nl"
5737    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739    as_fn_arith $ac_count + 1 && ac_count=$as_val
5740    if test $ac_count -gt ${ac_path_SED_max-0}; then
5741      # Best one so far, save it but keep looking for a better one
5742      ac_cv_path_SED="$ac_path_SED"
5743      ac_path_SED_max=$ac_count
5744    fi
5745    # 10*(2^10) chars as input seems more than enough
5746    test $ac_count -gt 10 && break
5747  done
5748  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749esac
5750
5751      $ac_path_SED_found && break 3
5752    done
5753  done
5754  done
5755IFS=$as_save_IFS
5756  if test -z "$ac_cv_path_SED"; then
5757    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5758  fi
5759else
5760  ac_cv_path_SED=$SED
5761fi
5762
5763fi
5764{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5765printf "%s\n" "$ac_cv_path_SED" >&6; }
5766 SED="$ac_cv_path_SED"
5767  rm -f conftest.sed
5768
5769test -z "$SED" && SED=sed
5770Xsed="$SED -e 1s/^X//"
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5783printf %s "checking for grep that handles long lines and -e... " >&6; }
5784if test ${ac_cv_path_GREP+y}
5785then :
5786  printf %s "(cached) " >&6
5787else $as_nop
5788  if test -z "$GREP"; then
5789  ac_path_GREP_found=false
5790  # Loop through the user's path and test for each of PROGNAME-LIST
5791  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5793do
5794  IFS=$as_save_IFS
5795  case $as_dir in #(((
5796    '') as_dir=./ ;;
5797    */) ;;
5798    *) as_dir=$as_dir/ ;;
5799  esac
5800    for ac_prog in grep ggrep
5801   do
5802    for ac_exec_ext in '' $ac_executable_extensions; do
5803      ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5804      as_fn_executable_p "$ac_path_GREP" || continue
5805# Check for GNU ac_path_GREP and select it if it is found.
5806  # Check for GNU $ac_path_GREP
5807case `"$ac_path_GREP" --version 2>&1` in
5808*GNU*)
5809  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5810*)
5811  ac_count=0
5812  printf %s 0123456789 >"conftest.in"
5813  while :
5814  do
5815    cat "conftest.in" "conftest.in" >"conftest.tmp"
5816    mv "conftest.tmp" "conftest.in"
5817    cp "conftest.in" "conftest.nl"
5818    printf "%s\n" 'GREP' >> "conftest.nl"
5819    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5820    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5821    as_fn_arith $ac_count + 1 && ac_count=$as_val
5822    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5823      # Best one so far, save it but keep looking for a better one
5824      ac_cv_path_GREP="$ac_path_GREP"
5825      ac_path_GREP_max=$ac_count
5826    fi
5827    # 10*(2^10) chars as input seems more than enough
5828    test $ac_count -gt 10 && break
5829  done
5830  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5831esac
5832
5833      $ac_path_GREP_found && break 3
5834    done
5835  done
5836  done
5837IFS=$as_save_IFS
5838  if test -z "$ac_cv_path_GREP"; then
5839    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5840  fi
5841else
5842  ac_cv_path_GREP=$GREP
5843fi
5844
5845fi
5846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5847printf "%s\n" "$ac_cv_path_GREP" >&6; }
5848 GREP="$ac_cv_path_GREP"
5849
5850
5851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5852printf %s "checking for egrep... " >&6; }
5853if test ${ac_cv_path_EGREP+y}
5854then :
5855  printf %s "(cached) " >&6
5856else $as_nop
5857  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5858   then ac_cv_path_EGREP="$GREP -E"
5859   else
5860     if test -z "$EGREP"; then
5861  ac_path_EGREP_found=false
5862  # Loop through the user's path and test for each of PROGNAME-LIST
5863  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5865do
5866  IFS=$as_save_IFS
5867  case $as_dir in #(((
5868    '') as_dir=./ ;;
5869    */) ;;
5870    *) as_dir=$as_dir/ ;;
5871  esac
5872    for ac_prog in egrep
5873   do
5874    for ac_exec_ext in '' $ac_executable_extensions; do
5875      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5876      as_fn_executable_p "$ac_path_EGREP" || continue
5877# Check for GNU ac_path_EGREP and select it if it is found.
5878  # Check for GNU $ac_path_EGREP
5879case `"$ac_path_EGREP" --version 2>&1` in
5880*GNU*)
5881  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5882*)
5883  ac_count=0
5884  printf %s 0123456789 >"conftest.in"
5885  while :
5886  do
5887    cat "conftest.in" "conftest.in" >"conftest.tmp"
5888    mv "conftest.tmp" "conftest.in"
5889    cp "conftest.in" "conftest.nl"
5890    printf "%s\n" 'EGREP' >> "conftest.nl"
5891    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5892    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5893    as_fn_arith $ac_count + 1 && ac_count=$as_val
5894    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5895      # Best one so far, save it but keep looking for a better one
5896      ac_cv_path_EGREP="$ac_path_EGREP"
5897      ac_path_EGREP_max=$ac_count
5898    fi
5899    # 10*(2^10) chars as input seems more than enough
5900    test $ac_count -gt 10 && break
5901  done
5902  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5903esac
5904
5905      $ac_path_EGREP_found && break 3
5906    done
5907  done
5908  done
5909IFS=$as_save_IFS
5910  if test -z "$ac_cv_path_EGREP"; then
5911    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5912  fi
5913else
5914  ac_cv_path_EGREP=$EGREP
5915fi
5916
5917   fi
5918fi
5919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5920printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5921 EGREP="$ac_cv_path_EGREP"
5922
5923
5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5925printf %s "checking for fgrep... " >&6; }
5926if test ${ac_cv_path_FGREP+y}
5927then :
5928  printf %s "(cached) " >&6
5929else $as_nop
5930  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5931   then ac_cv_path_FGREP="$GREP -F"
5932   else
5933     if test -z "$FGREP"; then
5934  ac_path_FGREP_found=false
5935  # Loop through the user's path and test for each of PROGNAME-LIST
5936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5938do
5939  IFS=$as_save_IFS
5940  case $as_dir in #(((
5941    '') as_dir=./ ;;
5942    */) ;;
5943    *) as_dir=$as_dir/ ;;
5944  esac
5945    for ac_prog in fgrep
5946   do
5947    for ac_exec_ext in '' $ac_executable_extensions; do
5948      ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5949      as_fn_executable_p "$ac_path_FGREP" || continue
5950# Check for GNU ac_path_FGREP and select it if it is found.
5951  # Check for GNU $ac_path_FGREP
5952case `"$ac_path_FGREP" --version 2>&1` in
5953*GNU*)
5954  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5955*)
5956  ac_count=0
5957  printf %s 0123456789 >"conftest.in"
5958  while :
5959  do
5960    cat "conftest.in" "conftest.in" >"conftest.tmp"
5961    mv "conftest.tmp" "conftest.in"
5962    cp "conftest.in" "conftest.nl"
5963    printf "%s\n" 'FGREP' >> "conftest.nl"
5964    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5966    as_fn_arith $ac_count + 1 && ac_count=$as_val
5967    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5968      # Best one so far, save it but keep looking for a better one
5969      ac_cv_path_FGREP="$ac_path_FGREP"
5970      ac_path_FGREP_max=$ac_count
5971    fi
5972    # 10*(2^10) chars as input seems more than enough
5973    test $ac_count -gt 10 && break
5974  done
5975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5976esac
5977
5978      $ac_path_FGREP_found && break 3
5979    done
5980  done
5981  done
5982IFS=$as_save_IFS
5983  if test -z "$ac_cv_path_FGREP"; then
5984    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5985  fi
5986else
5987  ac_cv_path_FGREP=$FGREP
5988fi
5989
5990   fi
5991fi
5992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5993printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5994 FGREP="$ac_cv_path_FGREP"
5995
5996
5997test -z "$GREP" && GREP=grep
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017# Check whether --with-gnu-ld was given.
6018if test ${with_gnu_ld+y}
6019then :
6020  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6021else $as_nop
6022  with_gnu_ld=no
6023fi
6024
6025ac_prog=ld
6026if test yes = "$GCC"; then
6027  # Check if gcc -print-prog-name=ld gives a path.
6028  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6029printf %s "checking for ld used by $CC... " >&6; }
6030  case $host in
6031  *-*-mingw*)
6032    # gcc leaves a trailing carriage return, which upsets mingw
6033    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6034  *)
6035    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6036  esac
6037  case $ac_prog in
6038    # Accept absolute paths.
6039    [\\/]* | ?:[\\/]*)
6040      re_direlt='/[^/][^/]*/\.\./'
6041      # Canonicalize the pathname of ld
6042      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6043      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6044	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6045      done
6046      test -z "$LD" && LD=$ac_prog
6047      ;;
6048  "")
6049    # If it fails, then pretend we aren't using GCC.
6050    ac_prog=ld
6051    ;;
6052  *)
6053    # If it is relative, then search for the first ld in PATH.
6054    with_gnu_ld=unknown
6055    ;;
6056  esac
6057elif test yes = "$with_gnu_ld"; then
6058  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6059printf %s "checking for GNU ld... " >&6; }
6060else
6061  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6062printf %s "checking for non-GNU ld... " >&6; }
6063fi
6064if test ${lt_cv_path_LD+y}
6065then :
6066  printf %s "(cached) " >&6
6067else $as_nop
6068  if test -z "$LD"; then
6069  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6070  for ac_dir in $PATH; do
6071    IFS=$lt_save_ifs
6072    test -z "$ac_dir" && ac_dir=.
6073    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6074      lt_cv_path_LD=$ac_dir/$ac_prog
6075      # Check to see if the program is GNU ld.  I'd rather use --version,
6076      # but apparently some variants of GNU ld only accept -v.
6077      # Break only if it was the GNU/non-GNU ld that we prefer.
6078      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6079      *GNU* | *'with BFD'*)
6080	test no != "$with_gnu_ld" && break
6081	;;
6082      *)
6083	test yes != "$with_gnu_ld" && break
6084	;;
6085      esac
6086    fi
6087  done
6088  IFS=$lt_save_ifs
6089else
6090  lt_cv_path_LD=$LD # Let the user override the test with a path.
6091fi
6092fi
6093
6094LD=$lt_cv_path_LD
6095if test -n "$LD"; then
6096  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6097printf "%s\n" "$LD" >&6; }
6098else
6099  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100printf "%s\n" "no" >&6; }
6101fi
6102test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6104printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
6105if test ${lt_cv_prog_gnu_ld+y}
6106then :
6107  printf %s "(cached) " >&6
6108else $as_nop
6109  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6110case `$LD -v 2>&1 </dev/null` in
6111*GNU* | *'with BFD'*)
6112  lt_cv_prog_gnu_ld=yes
6113  ;;
6114*)
6115  lt_cv_prog_gnu_ld=no
6116  ;;
6117esac
6118fi
6119{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6120printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
6121with_gnu_ld=$lt_cv_prog_gnu_ld
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6132printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6133if test ${lt_cv_path_NM+y}
6134then :
6135  printf %s "(cached) " >&6
6136else $as_nop
6137  if test -n "$NM"; then
6138  # Let the user override the test.
6139  lt_cv_path_NM=$NM
6140else
6141  lt_nm_to_check=${ac_tool_prefix}nm
6142  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6143    lt_nm_to_check="$lt_nm_to_check nm"
6144  fi
6145  for lt_tmp_nm in $lt_nm_to_check; do
6146    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6147    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6148      IFS=$lt_save_ifs
6149      test -z "$ac_dir" && ac_dir=.
6150      tmp_nm=$ac_dir/$lt_tmp_nm
6151      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6152	# Check to see if the nm accepts a BSD-compat flag.
6153	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6154	#   nm: unknown option "B" ignored
6155	# Tru64's nm complains that /dev/null is an invalid object file
6156	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6157	case $build_os in
6158	mingw*) lt_bad_file=conftest.nm/nofile ;;
6159	*) lt_bad_file=/dev/null ;;
6160	esac
6161	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6162	*$lt_bad_file* | *'Invalid file or object type'*)
6163	  lt_cv_path_NM="$tmp_nm -B"
6164	  break 2
6165	  ;;
6166	*)
6167	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6168	  */dev/null*)
6169	    lt_cv_path_NM="$tmp_nm -p"
6170	    break 2
6171	    ;;
6172	  *)
6173	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6174	    continue # so that we can try to find one that supports BSD flags
6175	    ;;
6176	  esac
6177	  ;;
6178	esac
6179      fi
6180    done
6181    IFS=$lt_save_ifs
6182  done
6183  : ${lt_cv_path_NM=no}
6184fi
6185fi
6186{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6187printf "%s\n" "$lt_cv_path_NM" >&6; }
6188if test no != "$lt_cv_path_NM"; then
6189  NM=$lt_cv_path_NM
6190else
6191  # Didn't find any BSD compatible name lister, look for dumpbin.
6192  if test -n "$DUMPBIN"; then :
6193    # Let the user override the test.
6194  else
6195    if test -n "$ac_tool_prefix"; then
6196  for ac_prog in dumpbin "link -dump"
6197  do
6198    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201printf %s "checking for $ac_word... " >&6; }
6202if test ${ac_cv_prog_DUMPBIN+y}
6203then :
6204  printf %s "(cached) " >&6
6205else $as_nop
6206  if test -n "$DUMPBIN"; then
6207  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  case $as_dir in #(((
6214    '') as_dir=./ ;;
6215    */) ;;
6216    *) as_dir=$as_dir/ ;;
6217  esac
6218    for ac_exec_ext in '' $ac_executable_extensions; do
6219  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6220    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6221    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225  done
6226IFS=$as_save_IFS
6227
6228fi
6229fi
6230DUMPBIN=$ac_cv_prog_DUMPBIN
6231if test -n "$DUMPBIN"; then
6232  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6233printf "%s\n" "$DUMPBIN" >&6; }
6234else
6235  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236printf "%s\n" "no" >&6; }
6237fi
6238
6239
6240    test -n "$DUMPBIN" && break
6241  done
6242fi
6243if test -z "$DUMPBIN"; then
6244  ac_ct_DUMPBIN=$DUMPBIN
6245  for ac_prog in dumpbin "link -dump"
6246do
6247  # Extract the first word of "$ac_prog", so it can be a program name with args.
6248set dummy $ac_prog; ac_word=$2
6249{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6250printf %s "checking for $ac_word... " >&6; }
6251if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
6252then :
6253  printf %s "(cached) " >&6
6254else $as_nop
6255  if test -n "$ac_ct_DUMPBIN"; then
6256  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6257else
6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6259for as_dir in $PATH
6260do
6261  IFS=$as_save_IFS
6262  case $as_dir in #(((
6263    '') as_dir=./ ;;
6264    */) ;;
6265    *) as_dir=$as_dir/ ;;
6266  esac
6267    for ac_exec_ext in '' $ac_executable_extensions; do
6268  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6269    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6270    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6271    break 2
6272  fi
6273done
6274  done
6275IFS=$as_save_IFS
6276
6277fi
6278fi
6279ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6280if test -n "$ac_ct_DUMPBIN"; then
6281  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6282printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
6283else
6284  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285printf "%s\n" "no" >&6; }
6286fi
6287
6288
6289  test -n "$ac_ct_DUMPBIN" && break
6290done
6291
6292  if test "x$ac_ct_DUMPBIN" = x; then
6293    DUMPBIN=":"
6294  else
6295    case $cross_compiling:$ac_tool_warned in
6296yes:)
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6298printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6299ac_tool_warned=yes ;;
6300esac
6301    DUMPBIN=$ac_ct_DUMPBIN
6302  fi
6303fi
6304
6305    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6306    *COFF*)
6307      DUMPBIN="$DUMPBIN -symbols -headers"
6308      ;;
6309    *)
6310      DUMPBIN=:
6311      ;;
6312    esac
6313  fi
6314
6315  if test : != "$DUMPBIN"; then
6316    NM=$DUMPBIN
6317  fi
6318fi
6319test -z "$NM" && NM=nm
6320
6321
6322
6323
6324
6325
6326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6327printf %s "checking the name lister ($NM) interface... " >&6; }
6328if test ${lt_cv_nm_interface+y}
6329then :
6330  printf %s "(cached) " >&6
6331else $as_nop
6332  lt_cv_nm_interface="BSD nm"
6333  echo "int some_variable = 0;" > conftest.$ac_ext
6334  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6335  (eval "$ac_compile" 2>conftest.err)
6336  cat conftest.err >&5
6337  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6338  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6339  cat conftest.err >&5
6340  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6341  cat conftest.out >&5
6342  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6343    lt_cv_nm_interface="MS dumpbin"
6344  fi
6345  rm -f conftest*
6346fi
6347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6348printf "%s\n" "$lt_cv_nm_interface" >&6; }
6349
6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6351printf %s "checking whether ln -s works... " >&6; }
6352LN_S=$as_ln_s
6353if test "$LN_S" = "ln -s"; then
6354  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6355printf "%s\n" "yes" >&6; }
6356else
6357  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6358printf "%s\n" "no, using $LN_S" >&6; }
6359fi
6360
6361# find the maximum length of command line arguments
6362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6363printf %s "checking the maximum length of command line arguments... " >&6; }
6364if test ${lt_cv_sys_max_cmd_len+y}
6365then :
6366  printf %s "(cached) " >&6
6367else $as_nop
6368    i=0
6369  teststring=ABCD
6370
6371  case $build_os in
6372  msdosdjgpp*)
6373    # On DJGPP, this test can blow up pretty badly due to problems in libc
6374    # (any single argument exceeding 2000 bytes causes a buffer overrun
6375    # during glob expansion).  Even if it were fixed, the result of this
6376    # check would be larger than it should be.
6377    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6378    ;;
6379
6380  gnu*)
6381    # Under GNU Hurd, this test is not required because there is
6382    # no limit to the length of command line arguments.
6383    # Libtool will interpret -1 as no limit whatsoever
6384    lt_cv_sys_max_cmd_len=-1;
6385    ;;
6386
6387  cygwin* | mingw* | cegcc*)
6388    # On Win9x/ME, this test blows up -- it succeeds, but takes
6389    # about 5 minutes as the teststring grows exponentially.
6390    # Worse, since 9x/ME are not pre-emptively multitasking,
6391    # you end up with a "frozen" computer, even though with patience
6392    # the test eventually succeeds (with a max line length of 256k).
6393    # Instead, let's just punt: use the minimum linelength reported by
6394    # all of the supported platforms: 8192 (on NT/2K/XP).
6395    lt_cv_sys_max_cmd_len=8192;
6396    ;;
6397
6398  mint*)
6399    # On MiNT this can take a long time and run out of memory.
6400    lt_cv_sys_max_cmd_len=8192;
6401    ;;
6402
6403  amigaos*)
6404    # On AmigaOS with pdksh, this test takes hours, literally.
6405    # So we just punt and use a minimum line length of 8192.
6406    lt_cv_sys_max_cmd_len=8192;
6407    ;;
6408
6409  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6410    # This has been around since 386BSD, at least.  Likely further.
6411    if test -x /sbin/sysctl; then
6412      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6413    elif test -x /usr/sbin/sysctl; then
6414      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6415    else
6416      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6417    fi
6418    # And add a safety zone
6419    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6420    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6421    ;;
6422
6423  interix*)
6424    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6425    lt_cv_sys_max_cmd_len=196608
6426    ;;
6427
6428  os2*)
6429    # The test takes a long time on OS/2.
6430    lt_cv_sys_max_cmd_len=8192
6431    ;;
6432
6433  osf*)
6434    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6435    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6436    # nice to cause kernel panics so lets avoid the loop below.
6437    # First set a reasonable default.
6438    lt_cv_sys_max_cmd_len=16384
6439    #
6440    if test -x /sbin/sysconfig; then
6441      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6442        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6443      esac
6444    fi
6445    ;;
6446  sco3.2v5*)
6447    lt_cv_sys_max_cmd_len=102400
6448    ;;
6449  sysv5* | sco5v6* | sysv4.2uw2*)
6450    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6451    if test -n "$kargmax"; then
6452      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6453    else
6454      lt_cv_sys_max_cmd_len=32768
6455    fi
6456    ;;
6457  *)
6458    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6459    if test -n "$lt_cv_sys_max_cmd_len" && \
6460       test undefined != "$lt_cv_sys_max_cmd_len"; then
6461      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6462      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6463    else
6464      # Make teststring a little bigger before we do anything with it.
6465      # a 1K string should be a reasonable start.
6466      for i in 1 2 3 4 5 6 7 8; do
6467        teststring=$teststring$teststring
6468      done
6469      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6470      # If test is not a shell built-in, we'll probably end up computing a
6471      # maximum length that is only half of the actual maximum length, but
6472      # we can't tell.
6473      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6474	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6475	      test 17 != "$i" # 1/2 MB should be enough
6476      do
6477        i=`expr $i + 1`
6478        teststring=$teststring$teststring
6479      done
6480      # Only check the string length outside the loop.
6481      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6482      teststring=
6483      # Add a significant safety factor because C++ compilers can tack on
6484      # massive amounts of additional arguments before passing them to the
6485      # linker.  It appears as though 1/2 is a usable value.
6486      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6487    fi
6488    ;;
6489  esac
6490
6491fi
6492
6493if test -n "$lt_cv_sys_max_cmd_len"; then
6494  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6495printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6496else
6497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6498printf "%s\n" "none" >&6; }
6499fi
6500max_cmd_len=$lt_cv_sys_max_cmd_len
6501
6502
6503
6504
6505
6506
6507: ${CP="cp -f"}
6508: ${MV="mv -f"}
6509: ${RM="rm -f"}
6510
6511if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6512  lt_unset=unset
6513else
6514  lt_unset=false
6515fi
6516
6517
6518
6519
6520
6521# test EBCDIC or ASCII
6522case `echo X|tr X '\101'` in
6523 A) # ASCII based system
6524    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6525  lt_SP2NL='tr \040 \012'
6526  lt_NL2SP='tr \015\012 \040\040'
6527  ;;
6528 *) # EBCDIC based system
6529  lt_SP2NL='tr \100 \n'
6530  lt_NL2SP='tr \r\n \100\100'
6531  ;;
6532esac
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6543printf %s "checking how to convert $build file names to $host format... " >&6; }
6544if test ${lt_cv_to_host_file_cmd+y}
6545then :
6546  printf %s "(cached) " >&6
6547else $as_nop
6548  case $host in
6549  *-*-mingw* )
6550    case $build in
6551      *-*-mingw* ) # actually msys
6552        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6553        ;;
6554      *-*-cygwin* )
6555        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6556        ;;
6557      * ) # otherwise, assume *nix
6558        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6559        ;;
6560    esac
6561    ;;
6562  *-*-cygwin* )
6563    case $build in
6564      *-*-mingw* ) # actually msys
6565        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6566        ;;
6567      *-*-cygwin* )
6568        lt_cv_to_host_file_cmd=func_convert_file_noop
6569        ;;
6570      * ) # otherwise, assume *nix
6571        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6572        ;;
6573    esac
6574    ;;
6575  * ) # unhandled hosts (and "normal" native builds)
6576    lt_cv_to_host_file_cmd=func_convert_file_noop
6577    ;;
6578esac
6579
6580fi
6581
6582to_host_file_cmd=$lt_cv_to_host_file_cmd
6583{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6584printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6585
6586
6587
6588
6589
6590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6591printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6592if test ${lt_cv_to_tool_file_cmd+y}
6593then :
6594  printf %s "(cached) " >&6
6595else $as_nop
6596  #assume ordinary cross tools, or native build.
6597lt_cv_to_tool_file_cmd=func_convert_file_noop
6598case $host in
6599  *-*-mingw* )
6600    case $build in
6601      *-*-mingw* ) # actually msys
6602        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6603        ;;
6604    esac
6605    ;;
6606esac
6607
6608fi
6609
6610to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6611{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6612printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6613
6614
6615
6616
6617
6618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6619printf %s "checking for $LD option to reload object files... " >&6; }
6620if test ${lt_cv_ld_reload_flag+y}
6621then :
6622  printf %s "(cached) " >&6
6623else $as_nop
6624  lt_cv_ld_reload_flag='-r'
6625fi
6626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6627printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6628reload_flag=$lt_cv_ld_reload_flag
6629case $reload_flag in
6630"" | " "*) ;;
6631*) reload_flag=" $reload_flag" ;;
6632esac
6633reload_cmds='$LD$reload_flag -o $output$reload_objs'
6634case $host_os in
6635  cygwin* | mingw* | pw32* | cegcc*)
6636    if test yes != "$GCC"; then
6637      reload_cmds=false
6638    fi
6639    ;;
6640  darwin*)
6641    if test yes = "$GCC"; then
6642      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6643    else
6644      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6645    fi
6646    ;;
6647esac
6648
6649
6650
6651
6652
6653
6654
6655
6656
6657if test -n "$ac_tool_prefix"; then
6658  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6659set dummy ${ac_tool_prefix}objdump; ac_word=$2
6660{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6661printf %s "checking for $ac_word... " >&6; }
6662if test ${ac_cv_prog_OBJDUMP+y}
6663then :
6664  printf %s "(cached) " >&6
6665else $as_nop
6666  if test -n "$OBJDUMP"; then
6667  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6668else
6669as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670for as_dir in $PATH
6671do
6672  IFS=$as_save_IFS
6673  case $as_dir in #(((
6674    '') as_dir=./ ;;
6675    */) ;;
6676    *) as_dir=$as_dir/ ;;
6677  esac
6678    for ac_exec_ext in '' $ac_executable_extensions; do
6679  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6680    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6681    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6682    break 2
6683  fi
6684done
6685  done
6686IFS=$as_save_IFS
6687
6688fi
6689fi
6690OBJDUMP=$ac_cv_prog_OBJDUMP
6691if test -n "$OBJDUMP"; then
6692  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6693printf "%s\n" "$OBJDUMP" >&6; }
6694else
6695  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6696printf "%s\n" "no" >&6; }
6697fi
6698
6699
6700fi
6701if test -z "$ac_cv_prog_OBJDUMP"; then
6702  ac_ct_OBJDUMP=$OBJDUMP
6703  # Extract the first word of "objdump", so it can be a program name with args.
6704set dummy objdump; ac_word=$2
6705{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6706printf %s "checking for $ac_word... " >&6; }
6707if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6708then :
6709  printf %s "(cached) " >&6
6710else $as_nop
6711  if test -n "$ac_ct_OBJDUMP"; then
6712  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6713else
6714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715for as_dir in $PATH
6716do
6717  IFS=$as_save_IFS
6718  case $as_dir in #(((
6719    '') as_dir=./ ;;
6720    */) ;;
6721    *) as_dir=$as_dir/ ;;
6722  esac
6723    for ac_exec_ext in '' $ac_executable_extensions; do
6724  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6725    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6726    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6727    break 2
6728  fi
6729done
6730  done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6736if test -n "$ac_ct_OBJDUMP"; then
6737  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6738printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6739else
6740  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741printf "%s\n" "no" >&6; }
6742fi
6743
6744  if test "x$ac_ct_OBJDUMP" = x; then
6745    OBJDUMP="false"
6746  else
6747    case $cross_compiling:$ac_tool_warned in
6748yes:)
6749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6750printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6751ac_tool_warned=yes ;;
6752esac
6753    OBJDUMP=$ac_ct_OBJDUMP
6754  fi
6755else
6756  OBJDUMP="$ac_cv_prog_OBJDUMP"
6757fi
6758
6759test -z "$OBJDUMP" && OBJDUMP=objdump
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6770printf %s "checking how to recognize dependent libraries... " >&6; }
6771if test ${lt_cv_deplibs_check_method+y}
6772then :
6773  printf %s "(cached) " >&6
6774else $as_nop
6775  lt_cv_file_magic_cmd='$MAGIC_CMD'
6776lt_cv_file_magic_test_file=
6777lt_cv_deplibs_check_method='unknown'
6778# Need to set the preceding variable on all platforms that support
6779# interlibrary dependencies.
6780# 'none' -- dependencies not supported.
6781# 'unknown' -- same as none, but documents that we really don't know.
6782# 'pass_all' -- all dependencies passed with no checks.
6783# 'test_compile' -- check by making test program.
6784# 'file_magic [[regex]]' -- check by looking for files in library path
6785# that responds to the $file_magic_cmd with a given extended regex.
6786# If you have 'file' or equivalent on your system and you're not sure
6787# whether 'pass_all' will *always* work, you probably want this one.
6788
6789case $host_os in
6790aix[4-9]*)
6791  lt_cv_deplibs_check_method=pass_all
6792  ;;
6793
6794beos*)
6795  lt_cv_deplibs_check_method=pass_all
6796  ;;
6797
6798bsdi[45]*)
6799  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6800  lt_cv_file_magic_cmd='/usr/bin/file -L'
6801  lt_cv_file_magic_test_file=/shlib/libc.so
6802  ;;
6803
6804cygwin*)
6805  # func_win32_libid is a shell function defined in ltmain.sh
6806  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6807  lt_cv_file_magic_cmd='func_win32_libid'
6808  ;;
6809
6810mingw* | pw32*)
6811  # Base MSYS/MinGW do not provide the 'file' command needed by
6812  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6813  # unless we find 'file', for example because we are cross-compiling.
6814  if ( file / ) >/dev/null 2>&1; then
6815    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6816    lt_cv_file_magic_cmd='func_win32_libid'
6817  else
6818    # Keep this pattern in sync with the one in func_win32_libid.
6819    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6820    lt_cv_file_magic_cmd='$OBJDUMP -f'
6821  fi
6822  ;;
6823
6824cegcc*)
6825  # use the weaker test based on 'objdump'. See mingw*.
6826  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6827  lt_cv_file_magic_cmd='$OBJDUMP -f'
6828  ;;
6829
6830darwin* | rhapsody*)
6831  lt_cv_deplibs_check_method=pass_all
6832  ;;
6833
6834freebsd* | dragonfly*)
6835  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6836    case $host_cpu in
6837    i*86 )
6838      # Not sure whether the presence of OpenBSD here was a mistake.
6839      # Let's accept both of them until this is cleared up.
6840      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6841      lt_cv_file_magic_cmd=/usr/bin/file
6842      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6843      ;;
6844    esac
6845  else
6846    lt_cv_deplibs_check_method=pass_all
6847  fi
6848  ;;
6849
6850haiku*)
6851  lt_cv_deplibs_check_method=pass_all
6852  ;;
6853
6854hpux10.20* | hpux11*)
6855  lt_cv_file_magic_cmd=/usr/bin/file
6856  case $host_cpu in
6857  ia64*)
6858    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6859    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6860    ;;
6861  hppa*64*)
6862    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6863    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6864    ;;
6865  *)
6866    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6867    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6868    ;;
6869  esac
6870  ;;
6871
6872interix[3-9]*)
6873  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6874  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6875  ;;
6876
6877irix5* | irix6* | nonstopux*)
6878  case $LD in
6879  *-32|*"-32 ") libmagic=32-bit;;
6880  *-n32|*"-n32 ") libmagic=N32;;
6881  *-64|*"-64 ") libmagic=64-bit;;
6882  *) libmagic=never-match;;
6883  esac
6884  lt_cv_deplibs_check_method=pass_all
6885  ;;
6886
6887# This must be glibc/ELF.
6888linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6889  lt_cv_deplibs_check_method=pass_all
6890  ;;
6891
6892netbsd* | netbsdelf*-gnu)
6893  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6894    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6895  else
6896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6897  fi
6898  ;;
6899
6900newos6*)
6901  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6902  lt_cv_file_magic_cmd=/usr/bin/file
6903  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6904  ;;
6905
6906*nto* | *qnx*)
6907  lt_cv_deplibs_check_method=pass_all
6908  ;;
6909
6910openbsd* | bitrig*)
6911  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6912    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6913  else
6914    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6915  fi
6916  ;;
6917
6918osf3* | osf4* | osf5*)
6919  lt_cv_deplibs_check_method=pass_all
6920  ;;
6921
6922rdos*)
6923  lt_cv_deplibs_check_method=pass_all
6924  ;;
6925
6926solaris*)
6927  lt_cv_deplibs_check_method=pass_all
6928  ;;
6929
6930sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6931  lt_cv_deplibs_check_method=pass_all
6932  ;;
6933
6934sysv4 | sysv4.3*)
6935  case $host_vendor in
6936  motorola)
6937    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]'
6938    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6939    ;;
6940  ncr)
6941    lt_cv_deplibs_check_method=pass_all
6942    ;;
6943  sequent)
6944    lt_cv_file_magic_cmd='/bin/file'
6945    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6946    ;;
6947  sni)
6948    lt_cv_file_magic_cmd='/bin/file'
6949    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6950    lt_cv_file_magic_test_file=/lib/libc.so
6951    ;;
6952  siemens)
6953    lt_cv_deplibs_check_method=pass_all
6954    ;;
6955  pc)
6956    lt_cv_deplibs_check_method=pass_all
6957    ;;
6958  esac
6959  ;;
6960
6961tpf*)
6962  lt_cv_deplibs_check_method=pass_all
6963  ;;
6964os2*)
6965  lt_cv_deplibs_check_method=pass_all
6966  ;;
6967esac
6968
6969fi
6970{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6971printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6972
6973file_magic_glob=
6974want_nocaseglob=no
6975if test "$build" = "$host"; then
6976  case $host_os in
6977  mingw* | pw32*)
6978    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6979      want_nocaseglob=yes
6980    else
6981      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6982    fi
6983    ;;
6984  esac
6985fi
6986
6987file_magic_cmd=$lt_cv_file_magic_cmd
6988deplibs_check_method=$lt_cv_deplibs_check_method
6989test -z "$deplibs_check_method" && deplibs_check_method=unknown
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006
7007
7008
7009
7010
7011
7012if test -n "$ac_tool_prefix"; then
7013  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7014set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7016printf %s "checking for $ac_word... " >&6; }
7017if test ${ac_cv_prog_DLLTOOL+y}
7018then :
7019  printf %s "(cached) " >&6
7020else $as_nop
7021  if test -n "$DLLTOOL"; then
7022  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7023else
7024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7025for as_dir in $PATH
7026do
7027  IFS=$as_save_IFS
7028  case $as_dir in #(((
7029    '') as_dir=./ ;;
7030    */) ;;
7031    *) as_dir=$as_dir/ ;;
7032  esac
7033    for ac_exec_ext in '' $ac_executable_extensions; do
7034  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7035    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7036    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7037    break 2
7038  fi
7039done
7040  done
7041IFS=$as_save_IFS
7042
7043fi
7044fi
7045DLLTOOL=$ac_cv_prog_DLLTOOL
7046if test -n "$DLLTOOL"; then
7047  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7048printf "%s\n" "$DLLTOOL" >&6; }
7049else
7050  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051printf "%s\n" "no" >&6; }
7052fi
7053
7054
7055fi
7056if test -z "$ac_cv_prog_DLLTOOL"; then
7057  ac_ct_DLLTOOL=$DLLTOOL
7058  # Extract the first word of "dlltool", so it can be a program name with args.
7059set dummy dlltool; ac_word=$2
7060{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7061printf %s "checking for $ac_word... " >&6; }
7062if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
7063then :
7064  printf %s "(cached) " >&6
7065else $as_nop
7066  if test -n "$ac_ct_DLLTOOL"; then
7067  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7068else
7069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7070for as_dir in $PATH
7071do
7072  IFS=$as_save_IFS
7073  case $as_dir in #(((
7074    '') as_dir=./ ;;
7075    */) ;;
7076    *) as_dir=$as_dir/ ;;
7077  esac
7078    for ac_exec_ext in '' $ac_executable_extensions; do
7079  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7080    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7081    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7082    break 2
7083  fi
7084done
7085  done
7086IFS=$as_save_IFS
7087
7088fi
7089fi
7090ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7091if test -n "$ac_ct_DLLTOOL"; then
7092  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7093printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
7094else
7095  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096printf "%s\n" "no" >&6; }
7097fi
7098
7099  if test "x$ac_ct_DLLTOOL" = x; then
7100    DLLTOOL="false"
7101  else
7102    case $cross_compiling:$ac_tool_warned in
7103yes:)
7104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7105printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106ac_tool_warned=yes ;;
7107esac
7108    DLLTOOL=$ac_ct_DLLTOOL
7109  fi
7110else
7111  DLLTOOL="$ac_cv_prog_DLLTOOL"
7112fi
7113
7114test -z "$DLLTOOL" && DLLTOOL=dlltool
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7126printf %s "checking how to associate runtime and link libraries... " >&6; }
7127if test ${lt_cv_sharedlib_from_linklib_cmd+y}
7128then :
7129  printf %s "(cached) " >&6
7130else $as_nop
7131  lt_cv_sharedlib_from_linklib_cmd='unknown'
7132
7133case $host_os in
7134cygwin* | mingw* | pw32* | cegcc*)
7135  # two different shell functions defined in ltmain.sh;
7136  # decide which one to use based on capabilities of $DLLTOOL
7137  case `$DLLTOOL --help 2>&1` in
7138  *--identify-strict*)
7139    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7140    ;;
7141  *)
7142    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7143    ;;
7144  esac
7145  ;;
7146*)
7147  # fallback: assume linklib IS sharedlib
7148  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7149  ;;
7150esac
7151
7152fi
7153{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7154printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7155sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7156test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7157
7158
7159
7160
7161
7162
7163
7164
7165if test -n "$ac_tool_prefix"; then
7166  for ac_prog in ar
7167  do
7168    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7169set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7170{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7171printf %s "checking for $ac_word... " >&6; }
7172if test ${ac_cv_prog_AR+y}
7173then :
7174  printf %s "(cached) " >&6
7175else $as_nop
7176  if test -n "$AR"; then
7177  ac_cv_prog_AR="$AR" # Let the user override the test.
7178else
7179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180for as_dir in $PATH
7181do
7182  IFS=$as_save_IFS
7183  case $as_dir in #(((
7184    '') as_dir=./ ;;
7185    */) ;;
7186    *) as_dir=$as_dir/ ;;
7187  esac
7188    for ac_exec_ext in '' $ac_executable_extensions; do
7189  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7190    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7191    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7192    break 2
7193  fi
7194done
7195  done
7196IFS=$as_save_IFS
7197
7198fi
7199fi
7200AR=$ac_cv_prog_AR
7201if test -n "$AR"; then
7202  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7203printf "%s\n" "$AR" >&6; }
7204else
7205  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7206printf "%s\n" "no" >&6; }
7207fi
7208
7209
7210    test -n "$AR" && break
7211  done
7212fi
7213if test -z "$AR"; then
7214  ac_ct_AR=$AR
7215  for ac_prog in ar
7216do
7217  # Extract the first word of "$ac_prog", so it can be a program name with args.
7218set dummy $ac_prog; ac_word=$2
7219{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220printf %s "checking for $ac_word... " >&6; }
7221if test ${ac_cv_prog_ac_ct_AR+y}
7222then :
7223  printf %s "(cached) " >&6
7224else $as_nop
7225  if test -n "$ac_ct_AR"; then
7226  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7227else
7228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7229for as_dir in $PATH
7230do
7231  IFS=$as_save_IFS
7232  case $as_dir in #(((
7233    '') as_dir=./ ;;
7234    */) ;;
7235    *) as_dir=$as_dir/ ;;
7236  esac
7237    for ac_exec_ext in '' $ac_executable_extensions; do
7238  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7239    ac_cv_prog_ac_ct_AR="$ac_prog"
7240    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7241    break 2
7242  fi
7243done
7244  done
7245IFS=$as_save_IFS
7246
7247fi
7248fi
7249ac_ct_AR=$ac_cv_prog_ac_ct_AR
7250if test -n "$ac_ct_AR"; then
7251  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7252printf "%s\n" "$ac_ct_AR" >&6; }
7253else
7254  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7255printf "%s\n" "no" >&6; }
7256fi
7257
7258
7259  test -n "$ac_ct_AR" && break
7260done
7261
7262  if test "x$ac_ct_AR" = x; then
7263    AR="false"
7264  else
7265    case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271    AR=$ac_ct_AR
7272  fi
7273fi
7274
7275: ${AR=ar}
7276: ${AR_FLAGS=cr}
7277
7278
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7289printf %s "checking for archiver @FILE support... " >&6; }
7290if test ${lt_cv_ar_at_file+y}
7291then :
7292  printf %s "(cached) " >&6
7293else $as_nop
7294  lt_cv_ar_at_file=no
7295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7296/* end confdefs.h.  */
7297
7298int
7299main (void)
7300{
7301
7302  ;
7303  return 0;
7304}
7305_ACEOF
7306if ac_fn_c_try_compile "$LINENO"
7307then :
7308  echo conftest.$ac_objext > conftest.lst
7309      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7310      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7311  (eval $lt_ar_try) 2>&5
7312  ac_status=$?
7313  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7314  test $ac_status = 0; }
7315      if test 0 -eq "$ac_status"; then
7316	# Ensure the archiver fails upon bogus file names.
7317	rm -f conftest.$ac_objext libconftest.a
7318	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7319  (eval $lt_ar_try) 2>&5
7320  ac_status=$?
7321  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7322  test $ac_status = 0; }
7323	if test 0 -ne "$ac_status"; then
7324          lt_cv_ar_at_file=@
7325        fi
7326      fi
7327      rm -f conftest.* libconftest.a
7328
7329fi
7330rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7331
7332fi
7333{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7334printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7335
7336if test no = "$lt_cv_ar_at_file"; then
7337  archiver_list_spec=
7338else
7339  archiver_list_spec=$lt_cv_ar_at_file
7340fi
7341
7342
7343
7344
7345
7346
7347
7348if test -n "$ac_tool_prefix"; then
7349  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7350set dummy ${ac_tool_prefix}strip; ac_word=$2
7351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352printf %s "checking for $ac_word... " >&6; }
7353if test ${ac_cv_prog_STRIP+y}
7354then :
7355  printf %s "(cached) " >&6
7356else $as_nop
7357  if test -n "$STRIP"; then
7358  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7359else
7360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361for as_dir in $PATH
7362do
7363  IFS=$as_save_IFS
7364  case $as_dir in #(((
7365    '') as_dir=./ ;;
7366    */) ;;
7367    *) as_dir=$as_dir/ ;;
7368  esac
7369    for ac_exec_ext in '' $ac_executable_extensions; do
7370  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7371    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7372    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7373    break 2
7374  fi
7375done
7376  done
7377IFS=$as_save_IFS
7378
7379fi
7380fi
7381STRIP=$ac_cv_prog_STRIP
7382if test -n "$STRIP"; then
7383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7384printf "%s\n" "$STRIP" >&6; }
7385else
7386  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7387printf "%s\n" "no" >&6; }
7388fi
7389
7390
7391fi
7392if test -z "$ac_cv_prog_STRIP"; then
7393  ac_ct_STRIP=$STRIP
7394  # Extract the first word of "strip", so it can be a program name with args.
7395set dummy strip; ac_word=$2
7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397printf %s "checking for $ac_word... " >&6; }
7398if test ${ac_cv_prog_ac_ct_STRIP+y}
7399then :
7400  printf %s "(cached) " >&6
7401else $as_nop
7402  if test -n "$ac_ct_STRIP"; then
7403  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408  IFS=$as_save_IFS
7409  case $as_dir in #(((
7410    '') as_dir=./ ;;
7411    */) ;;
7412    *) as_dir=$as_dir/ ;;
7413  esac
7414    for ac_exec_ext in '' $ac_executable_extensions; do
7415  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7416    ac_cv_prog_ac_ct_STRIP="strip"
7417    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7418    break 2
7419  fi
7420done
7421  done
7422IFS=$as_save_IFS
7423
7424fi
7425fi
7426ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7427if test -n "$ac_ct_STRIP"; then
7428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7429printf "%s\n" "$ac_ct_STRIP" >&6; }
7430else
7431  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7432printf "%s\n" "no" >&6; }
7433fi
7434
7435  if test "x$ac_ct_STRIP" = x; then
7436    STRIP=":"
7437  else
7438    case $cross_compiling:$ac_tool_warned in
7439yes:)
7440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442ac_tool_warned=yes ;;
7443esac
7444    STRIP=$ac_ct_STRIP
7445  fi
7446else
7447  STRIP="$ac_cv_prog_STRIP"
7448fi
7449
7450test -z "$STRIP" && STRIP=:
7451
7452
7453
7454
7455
7456
7457if test -n "$ac_tool_prefix"; then
7458  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7459set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7460{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461printf %s "checking for $ac_word... " >&6; }
7462if test ${ac_cv_prog_RANLIB+y}
7463then :
7464  printf %s "(cached) " >&6
7465else $as_nop
7466  if test -n "$RANLIB"; then
7467  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7468else
7469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470for as_dir in $PATH
7471do
7472  IFS=$as_save_IFS
7473  case $as_dir in #(((
7474    '') as_dir=./ ;;
7475    */) ;;
7476    *) as_dir=$as_dir/ ;;
7477  esac
7478    for ac_exec_ext in '' $ac_executable_extensions; do
7479  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7480    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7481    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7482    break 2
7483  fi
7484done
7485  done
7486IFS=$as_save_IFS
7487
7488fi
7489fi
7490RANLIB=$ac_cv_prog_RANLIB
7491if test -n "$RANLIB"; then
7492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7493printf "%s\n" "$RANLIB" >&6; }
7494else
7495  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7496printf "%s\n" "no" >&6; }
7497fi
7498
7499
7500fi
7501if test -z "$ac_cv_prog_RANLIB"; then
7502  ac_ct_RANLIB=$RANLIB
7503  # Extract the first word of "ranlib", so it can be a program name with args.
7504set dummy ranlib; ac_word=$2
7505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7506printf %s "checking for $ac_word... " >&6; }
7507if test ${ac_cv_prog_ac_ct_RANLIB+y}
7508then :
7509  printf %s "(cached) " >&6
7510else $as_nop
7511  if test -n "$ac_ct_RANLIB"; then
7512  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7513else
7514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515for as_dir in $PATH
7516do
7517  IFS=$as_save_IFS
7518  case $as_dir in #(((
7519    '') as_dir=./ ;;
7520    */) ;;
7521    *) as_dir=$as_dir/ ;;
7522  esac
7523    for ac_exec_ext in '' $ac_executable_extensions; do
7524  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7525    ac_cv_prog_ac_ct_RANLIB="ranlib"
7526    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7527    break 2
7528  fi
7529done
7530  done
7531IFS=$as_save_IFS
7532
7533fi
7534fi
7535ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7536if test -n "$ac_ct_RANLIB"; then
7537  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7538printf "%s\n" "$ac_ct_RANLIB" >&6; }
7539else
7540  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7541printf "%s\n" "no" >&6; }
7542fi
7543
7544  if test "x$ac_ct_RANLIB" = x; then
7545    RANLIB=":"
7546  else
7547    case $cross_compiling:$ac_tool_warned in
7548yes:)
7549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7550printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7551ac_tool_warned=yes ;;
7552esac
7553    RANLIB=$ac_ct_RANLIB
7554  fi
7555else
7556  RANLIB="$ac_cv_prog_RANLIB"
7557fi
7558
7559test -z "$RANLIB" && RANLIB=:
7560
7561
7562
7563
7564
7565
7566# Determine commands to create old-style static archives.
7567old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7568old_postinstall_cmds='chmod 644 $oldlib'
7569old_postuninstall_cmds=
7570
7571if test -n "$RANLIB"; then
7572  case $host_os in
7573  bitrig* | openbsd*)
7574    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7575    ;;
7576  *)
7577    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7578    ;;
7579  esac
7580  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7581fi
7582
7583case $host_os in
7584  darwin*)
7585    lock_old_archive_extraction=yes ;;
7586  *)
7587    lock_old_archive_extraction=no ;;
7588esac
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599
7600
7601
7602
7603
7604
7605
7606
7607
7608
7609
7610
7611
7612
7613
7614
7615
7616
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626
7627
7628# If no C compiler was specified, use CC.
7629LTCC=${LTCC-"$CC"}
7630
7631# If no C compiler flags were specified, use CFLAGS.
7632LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7633
7634# Allow CC to be a program name with arguments.
7635compiler=$CC
7636
7637
7638# Check for command to grab the raw symbol name followed by C symbol from nm.
7639{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7640printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7641if test ${lt_cv_sys_global_symbol_pipe+y}
7642then :
7643  printf %s "(cached) " >&6
7644else $as_nop
7645
7646# These are sane defaults that work on at least a few old systems.
7647# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7648
7649# Character class describing NM global symbol codes.
7650symcode='[BCDEGRST]'
7651
7652# Regexp to match symbols that can be accessed directly from C.
7653sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7654
7655# Define system-specific variables.
7656case $host_os in
7657aix*)
7658  symcode='[BCDT]'
7659  ;;
7660cygwin* | mingw* | pw32* | cegcc*)
7661  symcode='[ABCDGISTW]'
7662  ;;
7663hpux*)
7664  if test ia64 = "$host_cpu"; then
7665    symcode='[ABCDEGRST]'
7666  fi
7667  ;;
7668irix* | nonstopux*)
7669  symcode='[BCDEGRST]'
7670  ;;
7671osf*)
7672  symcode='[BCDEGQRST]'
7673  ;;
7674solaris*)
7675  symcode='[BDRT]'
7676  ;;
7677sco3.2v5*)
7678  symcode='[DT]'
7679  ;;
7680sysv4.2uw2*)
7681  symcode='[DT]'
7682  ;;
7683sysv5* | sco5v6* | unixware* | OpenUNIX*)
7684  symcode='[ABDT]'
7685  ;;
7686sysv4)
7687  symcode='[DFNSTU]'
7688  ;;
7689esac
7690
7691# If we're using GNU nm, then use its standard symbol codes.
7692case `$NM -V 2>&1` in
7693*GNU* | *'with BFD'*)
7694  symcode='[ABCDGIRSTW]' ;;
7695esac
7696
7697if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7698  # Gets list of data symbols to import.
7699  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7700  # Adjust the below global symbol transforms to fixup imported variables.
7701  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7702  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7703  lt_c_name_lib_hook="\
7704  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7705  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7706else
7707  # Disable hooks by default.
7708  lt_cv_sys_global_symbol_to_import=
7709  lt_cdecl_hook=
7710  lt_c_name_hook=
7711  lt_c_name_lib_hook=
7712fi
7713
7714# Transform an extracted symbol line into a proper C declaration.
7715# Some systems (esp. on ia64) link data and code symbols differently,
7716# so use this general approach.
7717lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7718$lt_cdecl_hook\
7719" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7720" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7721
7722# Transform an extracted symbol line into symbol name and symbol address
7723lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7724$lt_c_name_hook\
7725" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7726" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7727
7728# Transform an extracted symbol line into symbol name with lib prefix and
7729# symbol address.
7730lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7731$lt_c_name_lib_hook\
7732" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7733" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7734" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7735
7736# Handle CRLF in mingw tool chain
7737opt_cr=
7738case $build_os in
7739mingw*)
7740  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7741  ;;
7742esac
7743
7744# Try without a prefix underscore, then with it.
7745for ac_symprfx in "" "_"; do
7746
7747  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7748  symxfrm="\\1 $ac_symprfx\\2 \\2"
7749
7750  # Write the raw and C identifiers.
7751  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7752    # Fake it for dumpbin and say T for any non-static function,
7753    # D for any global variable and I for any imported variable.
7754    # Also find C++ and __fastcall symbols from MSVC++,
7755    # which start with @ or ?.
7756    lt_cv_sys_global_symbol_pipe="$AWK '"\
7757"     {last_section=section; section=\$ 3};"\
7758"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7759"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7760"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7761"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7762"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7763"     \$ 0!~/External *\|/{next};"\
7764"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7765"     {if(hide[section]) next};"\
7766"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7767"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7768"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7769"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7770"     ' prfx=^$ac_symprfx"
7771  else
7772    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7773  fi
7774  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7775
7776  # Check to see that the pipe works correctly.
7777  pipe_works=no
7778
7779  rm -f conftest*
7780  cat > conftest.$ac_ext <<_LT_EOF
7781#ifdef __cplusplus
7782extern "C" {
7783#endif
7784char nm_test_var;
7785void nm_test_func(void);
7786void nm_test_func(void){}
7787#ifdef __cplusplus
7788}
7789#endif
7790int main(){nm_test_var='a';nm_test_func();return(0);}
7791_LT_EOF
7792
7793  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7794  (eval $ac_compile) 2>&5
7795  ac_status=$?
7796  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7797  test $ac_status = 0; }; then
7798    # Now try to grab the symbols.
7799    nlist=conftest.nm
7800    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7801    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7802      # Try sorting and uniquifying the output.
7803      if sort "$nlist" | uniq > "$nlist"T; then
7804	mv -f "$nlist"T "$nlist"
7805      else
7806	rm -f "$nlist"T
7807      fi
7808
7809      # Make sure that we snagged all the symbols we need.
7810      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7811	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7812	  cat <<_LT_EOF > conftest.$ac_ext
7813/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7814#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7815/* DATA imports from DLLs on WIN32 can't be const, because runtime
7816   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7817# define LT_DLSYM_CONST
7818#elif defined __osf__
7819/* This system does not cope well with relocations in const data.  */
7820# define LT_DLSYM_CONST
7821#else
7822# define LT_DLSYM_CONST const
7823#endif
7824
7825#ifdef __cplusplus
7826extern "C" {
7827#endif
7828
7829_LT_EOF
7830	  # Now generate the symbol file.
7831	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7832
7833	  cat <<_LT_EOF >> conftest.$ac_ext
7834
7835/* The mapping between symbol names and symbols.  */
7836LT_DLSYM_CONST struct {
7837  const char *name;
7838  void       *address;
7839}
7840lt__PROGRAM__LTX_preloaded_symbols[] =
7841{
7842  { "@PROGRAM@", (void *) 0 },
7843_LT_EOF
7844	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7845	  cat <<\_LT_EOF >> conftest.$ac_ext
7846  {0, (void *) 0}
7847};
7848
7849/* This works around a problem in FreeBSD linker */
7850#ifdef FREEBSD_WORKAROUND
7851static const void *lt_preloaded_setup() {
7852  return lt__PROGRAM__LTX_preloaded_symbols;
7853}
7854#endif
7855
7856#ifdef __cplusplus
7857}
7858#endif
7859_LT_EOF
7860	  # Now try linking the two files.
7861	  mv conftest.$ac_objext conftstm.$ac_objext
7862	  lt_globsym_save_LIBS=$LIBS
7863	  lt_globsym_save_CFLAGS=$CFLAGS
7864	  LIBS=conftstm.$ac_objext
7865	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7866	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7867  (eval $ac_link) 2>&5
7868  ac_status=$?
7869  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7870  test $ac_status = 0; } && test -s conftest$ac_exeext; then
7871	    pipe_works=yes
7872	  fi
7873	  LIBS=$lt_globsym_save_LIBS
7874	  CFLAGS=$lt_globsym_save_CFLAGS
7875	else
7876	  echo "cannot find nm_test_func in $nlist" >&5
7877	fi
7878      else
7879	echo "cannot find nm_test_var in $nlist" >&5
7880      fi
7881    else
7882      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7883    fi
7884  else
7885    echo "$progname: failed program was:" >&5
7886    cat conftest.$ac_ext >&5
7887  fi
7888  rm -rf conftest* conftst*
7889
7890  # Do not use the global_symbol_pipe unless it works.
7891  if test yes = "$pipe_works"; then
7892    break
7893  else
7894    lt_cv_sys_global_symbol_pipe=
7895  fi
7896done
7897
7898fi
7899
7900if test -z "$lt_cv_sys_global_symbol_pipe"; then
7901  lt_cv_sys_global_symbol_to_cdecl=
7902fi
7903if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7904  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7905printf "%s\n" "failed" >&6; }
7906else
7907  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7908printf "%s\n" "ok" >&6; }
7909fi
7910
7911# Response file support.
7912if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7913  nm_file_list_spec='@'
7914elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7915  nm_file_list_spec='@'
7916fi
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950
7951
7952
7953
7954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7955printf %s "checking for sysroot... " >&6; }
7956
7957# Check whether --with-sysroot was given.
7958if test ${with_sysroot+y}
7959then :
7960  withval=$with_sysroot;
7961else $as_nop
7962  with_sysroot=no
7963fi
7964
7965
7966lt_sysroot=
7967case $with_sysroot in #(
7968 yes)
7969   if test yes = "$GCC"; then
7970     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7971   fi
7972   ;; #(
7973 /*)
7974   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7975   ;; #(
7976 no|'')
7977   ;; #(
7978 *)
7979   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7980printf "%s\n" "$with_sysroot" >&6; }
7981   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7982   ;;
7983esac
7984
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7986printf "%s\n" "${lt_sysroot:-no}" >&6; }
7987
7988
7989
7990
7991
7992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7993printf %s "checking for a working dd... " >&6; }
7994if test ${ac_cv_path_lt_DD+y}
7995then :
7996  printf %s "(cached) " >&6
7997else $as_nop
7998  printf 0123456789abcdef0123456789abcdef >conftest.i
7999cat conftest.i conftest.i >conftest2.i
8000: ${lt_DD:=$DD}
8001if test -z "$lt_DD"; then
8002  ac_path_lt_DD_found=false
8003  # Loop through the user's path and test for each of PROGNAME-LIST
8004  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8005for as_dir in $PATH
8006do
8007  IFS=$as_save_IFS
8008  case $as_dir in #(((
8009    '') as_dir=./ ;;
8010    */) ;;
8011    *) as_dir=$as_dir/ ;;
8012  esac
8013    for ac_prog in dd
8014   do
8015    for ac_exec_ext in '' $ac_executable_extensions; do
8016      ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
8017      as_fn_executable_p "$ac_path_lt_DD" || continue
8018if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8019  cmp -s conftest.i conftest.out \
8020  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8021fi
8022      $ac_path_lt_DD_found && break 3
8023    done
8024  done
8025  done
8026IFS=$as_save_IFS
8027  if test -z "$ac_cv_path_lt_DD"; then
8028    :
8029  fi
8030else
8031  ac_cv_path_lt_DD=$lt_DD
8032fi
8033
8034rm -f conftest.i conftest2.i conftest.out
8035fi
8036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8037printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
8038
8039
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8041printf %s "checking how to truncate binary pipes... " >&6; }
8042if test ${lt_cv_truncate_bin+y}
8043then :
8044  printf %s "(cached) " >&6
8045else $as_nop
8046  printf 0123456789abcdef0123456789abcdef >conftest.i
8047cat conftest.i conftest.i >conftest2.i
8048lt_cv_truncate_bin=
8049if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8050  cmp -s conftest.i conftest.out \
8051  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8052fi
8053rm -f conftest.i conftest2.i conftest.out
8054test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8055fi
8056{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8057printf "%s\n" "$lt_cv_truncate_bin" >&6; }
8058
8059
8060
8061
8062
8063
8064
8065# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8066func_cc_basename ()
8067{
8068    for cc_temp in $*""; do
8069      case $cc_temp in
8070        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8071        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8072        \-*) ;;
8073        *) break;;
8074      esac
8075    done
8076    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8077}
8078
8079# Check whether --enable-libtool-lock was given.
8080if test ${enable_libtool_lock+y}
8081then :
8082  enableval=$enable_libtool_lock;
8083fi
8084
8085test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8086
8087# Some flags need to be propagated to the compiler or linker for good
8088# libtool support.
8089case $host in
8090ia64-*-hpux*)
8091  # Find out what ABI is being produced by ac_compile, and set mode
8092  # options accordingly.
8093  echo 'int i;' > conftest.$ac_ext
8094  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8095  (eval $ac_compile) 2>&5
8096  ac_status=$?
8097  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098  test $ac_status = 0; }; then
8099    case `/usr/bin/file conftest.$ac_objext` in
8100      *ELF-32*)
8101	HPUX_IA64_MODE=32
8102	;;
8103      *ELF-64*)
8104	HPUX_IA64_MODE=64
8105	;;
8106    esac
8107  fi
8108  rm -rf conftest*
8109  ;;
8110*-*-irix6*)
8111  # Find out what ABI is being produced by ac_compile, and set linker
8112  # options accordingly.
8113  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8114  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115  (eval $ac_compile) 2>&5
8116  ac_status=$?
8117  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118  test $ac_status = 0; }; then
8119    if test yes = "$lt_cv_prog_gnu_ld"; then
8120      case `/usr/bin/file conftest.$ac_objext` in
8121	*32-bit*)
8122	  LD="${LD-ld} -melf32bsmip"
8123	  ;;
8124	*N32*)
8125	  LD="${LD-ld} -melf32bmipn32"
8126	  ;;
8127	*64-bit*)
8128	  LD="${LD-ld} -melf64bmip"
8129	;;
8130      esac
8131    else
8132      case `/usr/bin/file conftest.$ac_objext` in
8133	*32-bit*)
8134	  LD="${LD-ld} -32"
8135	  ;;
8136	*N32*)
8137	  LD="${LD-ld} -n32"
8138	  ;;
8139	*64-bit*)
8140	  LD="${LD-ld} -64"
8141	  ;;
8142      esac
8143    fi
8144  fi
8145  rm -rf conftest*
8146  ;;
8147
8148mips64*-*linux*)
8149  # Find out what ABI is being produced by ac_compile, and set linker
8150  # options accordingly.
8151  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8152  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153  (eval $ac_compile) 2>&5
8154  ac_status=$?
8155  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156  test $ac_status = 0; }; then
8157    emul=elf
8158    case `/usr/bin/file conftest.$ac_objext` in
8159      *32-bit*)
8160	emul="${emul}32"
8161	;;
8162      *64-bit*)
8163	emul="${emul}64"
8164	;;
8165    esac
8166    case `/usr/bin/file conftest.$ac_objext` in
8167      *MSB*)
8168	emul="${emul}btsmip"
8169	;;
8170      *LSB*)
8171	emul="${emul}ltsmip"
8172	;;
8173    esac
8174    case `/usr/bin/file conftest.$ac_objext` in
8175      *N32*)
8176	emul="${emul}n32"
8177	;;
8178    esac
8179    LD="${LD-ld} -m $emul"
8180  fi
8181  rm -rf conftest*
8182  ;;
8183
8184x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8185s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8186  # Find out what ABI is being produced by ac_compile, and set linker
8187  # options accordingly.  Note that the listed cases only cover the
8188  # situations where additional linker options are needed (such as when
8189  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8190  # vice versa); the common cases where no linker options are needed do
8191  # not appear in the list.
8192  echo 'int i;' > conftest.$ac_ext
8193  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8194  (eval $ac_compile) 2>&5
8195  ac_status=$?
8196  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8197  test $ac_status = 0; }; then
8198    case `/usr/bin/file conftest.o` in
8199      *32-bit*)
8200	case $host in
8201	  x86_64-*kfreebsd*-gnu)
8202	    LD="${LD-ld} -m elf_i386_fbsd"
8203	    ;;
8204	  x86_64-*linux*)
8205	    case `/usr/bin/file conftest.o` in
8206	      *x86-64*)
8207		LD="${LD-ld} -m elf32_x86_64"
8208		;;
8209	      *)
8210		LD="${LD-ld} -m elf_i386"
8211		;;
8212	    esac
8213	    ;;
8214	  powerpc64le-*linux*)
8215	    LD="${LD-ld} -m elf32lppclinux"
8216	    ;;
8217	  powerpc64-*linux*)
8218	    LD="${LD-ld} -m elf32ppclinux"
8219	    ;;
8220	  s390x-*linux*)
8221	    LD="${LD-ld} -m elf_s390"
8222	    ;;
8223	  sparc64-*linux*)
8224	    LD="${LD-ld} -m elf32_sparc"
8225	    ;;
8226	esac
8227	;;
8228      *64-bit*)
8229	case $host in
8230	  x86_64-*kfreebsd*-gnu)
8231	    LD="${LD-ld} -m elf_x86_64_fbsd"
8232	    ;;
8233	  x86_64-*linux*)
8234	    LD="${LD-ld} -m elf_x86_64"
8235	    ;;
8236	  powerpcle-*linux*)
8237	    LD="${LD-ld} -m elf64lppc"
8238	    ;;
8239	  powerpc-*linux*)
8240	    LD="${LD-ld} -m elf64ppc"
8241	    ;;
8242	  s390*-*linux*|s390*-*tpf*)
8243	    LD="${LD-ld} -m elf64_s390"
8244	    ;;
8245	  sparc*-*linux*)
8246	    LD="${LD-ld} -m elf64_sparc"
8247	    ;;
8248	esac
8249	;;
8250    esac
8251  fi
8252  rm -rf conftest*
8253  ;;
8254
8255*-*-sco3.2v5*)
8256  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8257  SAVE_CFLAGS=$CFLAGS
8258  CFLAGS="$CFLAGS -belf"
8259  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8260printf %s "checking whether the C compiler needs -belf... " >&6; }
8261if test ${lt_cv_cc_needs_belf+y}
8262then :
8263  printf %s "(cached) " >&6
8264else $as_nop
8265  ac_ext=c
8266ac_cpp='$CPP $CPPFLAGS'
8267ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8268ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8269ac_compiler_gnu=$ac_cv_c_compiler_gnu
8270
8271     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272/* end confdefs.h.  */
8273
8274int
8275main (void)
8276{
8277
8278  ;
8279  return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_link "$LINENO"
8283then :
8284  lt_cv_cc_needs_belf=yes
8285else $as_nop
8286  lt_cv_cc_needs_belf=no
8287fi
8288rm -f core conftest.err conftest.$ac_objext conftest.beam \
8289    conftest$ac_exeext conftest.$ac_ext
8290     ac_ext=c
8291ac_cpp='$CPP $CPPFLAGS'
8292ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8293ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8294ac_compiler_gnu=$ac_cv_c_compiler_gnu
8295
8296fi
8297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8298printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
8299  if test yes != "$lt_cv_cc_needs_belf"; then
8300    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8301    CFLAGS=$SAVE_CFLAGS
8302  fi
8303  ;;
8304*-*solaris*)
8305  # Find out what ABI is being produced by ac_compile, and set linker
8306  # options accordingly.
8307  echo 'int i;' > conftest.$ac_ext
8308  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309  (eval $ac_compile) 2>&5
8310  ac_status=$?
8311  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312  test $ac_status = 0; }; then
8313    case `/usr/bin/file conftest.o` in
8314    *64-bit*)
8315      case $lt_cv_prog_gnu_ld in
8316      yes*)
8317        case $host in
8318        i?86-*-solaris*|x86_64-*-solaris*)
8319          LD="${LD-ld} -m elf_x86_64"
8320          ;;
8321        sparc*-*-solaris*)
8322          LD="${LD-ld} -m elf64_sparc"
8323          ;;
8324        esac
8325        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8326        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8327          LD=${LD-ld}_sol2
8328        fi
8329        ;;
8330      *)
8331	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8332	  LD="${LD-ld} -64"
8333	fi
8334	;;
8335      esac
8336      ;;
8337    esac
8338  fi
8339  rm -rf conftest*
8340  ;;
8341esac
8342
8343need_locks=$enable_libtool_lock
8344
8345if test -n "$ac_tool_prefix"; then
8346  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8347set dummy ${ac_tool_prefix}mt; ac_word=$2
8348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8349printf %s "checking for $ac_word... " >&6; }
8350if test ${ac_cv_prog_MANIFEST_TOOL+y}
8351then :
8352  printf %s "(cached) " >&6
8353else $as_nop
8354  if test -n "$MANIFEST_TOOL"; then
8355  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8356else
8357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358for as_dir in $PATH
8359do
8360  IFS=$as_save_IFS
8361  case $as_dir in #(((
8362    '') as_dir=./ ;;
8363    */) ;;
8364    *) as_dir=$as_dir/ ;;
8365  esac
8366    for ac_exec_ext in '' $ac_executable_extensions; do
8367  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8368    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8369    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8370    break 2
8371  fi
8372done
8373  done
8374IFS=$as_save_IFS
8375
8376fi
8377fi
8378MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8379if test -n "$MANIFEST_TOOL"; then
8380  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8381printf "%s\n" "$MANIFEST_TOOL" >&6; }
8382else
8383  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384printf "%s\n" "no" >&6; }
8385fi
8386
8387
8388fi
8389if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8390  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8391  # Extract the first word of "mt", so it can be a program name with args.
8392set dummy mt; ac_word=$2
8393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394printf %s "checking for $ac_word... " >&6; }
8395if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8396then :
8397  printf %s "(cached) " >&6
8398else $as_nop
8399  if test -n "$ac_ct_MANIFEST_TOOL"; then
8400  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8401else
8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405  IFS=$as_save_IFS
8406  case $as_dir in #(((
8407    '') as_dir=./ ;;
8408    */) ;;
8409    *) as_dir=$as_dir/ ;;
8410  esac
8411    for ac_exec_ext in '' $ac_executable_extensions; do
8412  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8413    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8414    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8415    break 2
8416  fi
8417done
8418  done
8419IFS=$as_save_IFS
8420
8421fi
8422fi
8423ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8424if test -n "$ac_ct_MANIFEST_TOOL"; then
8425  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8426printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8427else
8428  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429printf "%s\n" "no" >&6; }
8430fi
8431
8432  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8433    MANIFEST_TOOL=":"
8434  else
8435    case $cross_compiling:$ac_tool_warned in
8436yes:)
8437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8438printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8439ac_tool_warned=yes ;;
8440esac
8441    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8442  fi
8443else
8444  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8445fi
8446
8447test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8448{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8449printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8450if test ${lt_cv_path_mainfest_tool+y}
8451then :
8452  printf %s "(cached) " >&6
8453else $as_nop
8454  lt_cv_path_mainfest_tool=no
8455  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8456  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8457  cat conftest.err >&5
8458  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8459    lt_cv_path_mainfest_tool=yes
8460  fi
8461  rm -f conftest*
8462fi
8463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8464printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
8465if test yes != "$lt_cv_path_mainfest_tool"; then
8466  MANIFEST_TOOL=:
8467fi
8468
8469
8470
8471
8472
8473
8474  case $host_os in
8475    rhapsody* | darwin*)
8476    if test -n "$ac_tool_prefix"; then
8477  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8478set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8480printf %s "checking for $ac_word... " >&6; }
8481if test ${ac_cv_prog_DSYMUTIL+y}
8482then :
8483  printf %s "(cached) " >&6
8484else $as_nop
8485  if test -n "$DSYMUTIL"; then
8486  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8487else
8488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489for as_dir in $PATH
8490do
8491  IFS=$as_save_IFS
8492  case $as_dir in #(((
8493    '') as_dir=./ ;;
8494    */) ;;
8495    *) as_dir=$as_dir/ ;;
8496  esac
8497    for ac_exec_ext in '' $ac_executable_extensions; do
8498  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8499    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8500    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8501    break 2
8502  fi
8503done
8504  done
8505IFS=$as_save_IFS
8506
8507fi
8508fi
8509DSYMUTIL=$ac_cv_prog_DSYMUTIL
8510if test -n "$DSYMUTIL"; then
8511  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8512printf "%s\n" "$DSYMUTIL" >&6; }
8513else
8514  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8515printf "%s\n" "no" >&6; }
8516fi
8517
8518
8519fi
8520if test -z "$ac_cv_prog_DSYMUTIL"; then
8521  ac_ct_DSYMUTIL=$DSYMUTIL
8522  # Extract the first word of "dsymutil", so it can be a program name with args.
8523set dummy dsymutil; ac_word=$2
8524{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8525printf %s "checking for $ac_word... " >&6; }
8526if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8527then :
8528  printf %s "(cached) " >&6
8529else $as_nop
8530  if test -n "$ac_ct_DSYMUTIL"; then
8531  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8532else
8533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534for as_dir in $PATH
8535do
8536  IFS=$as_save_IFS
8537  case $as_dir in #(((
8538    '') as_dir=./ ;;
8539    */) ;;
8540    *) as_dir=$as_dir/ ;;
8541  esac
8542    for ac_exec_ext in '' $ac_executable_extensions; do
8543  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8544    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8545    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8546    break 2
8547  fi
8548done
8549  done
8550IFS=$as_save_IFS
8551
8552fi
8553fi
8554ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8555if test -n "$ac_ct_DSYMUTIL"; then
8556  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8557printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8558else
8559  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560printf "%s\n" "no" >&6; }
8561fi
8562
8563  if test "x$ac_ct_DSYMUTIL" = x; then
8564    DSYMUTIL=":"
8565  else
8566    case $cross_compiling:$ac_tool_warned in
8567yes:)
8568{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570ac_tool_warned=yes ;;
8571esac
8572    DSYMUTIL=$ac_ct_DSYMUTIL
8573  fi
8574else
8575  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8576fi
8577
8578    if test -n "$ac_tool_prefix"; then
8579  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8580set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582printf %s "checking for $ac_word... " >&6; }
8583if test ${ac_cv_prog_NMEDIT+y}
8584then :
8585  printf %s "(cached) " >&6
8586else $as_nop
8587  if test -n "$NMEDIT"; then
8588  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8589else
8590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591for as_dir in $PATH
8592do
8593  IFS=$as_save_IFS
8594  case $as_dir in #(((
8595    '') as_dir=./ ;;
8596    */) ;;
8597    *) as_dir=$as_dir/ ;;
8598  esac
8599    for ac_exec_ext in '' $ac_executable_extensions; do
8600  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8601    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8602    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8603    break 2
8604  fi
8605done
8606  done
8607IFS=$as_save_IFS
8608
8609fi
8610fi
8611NMEDIT=$ac_cv_prog_NMEDIT
8612if test -n "$NMEDIT"; then
8613  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8614printf "%s\n" "$NMEDIT" >&6; }
8615else
8616  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8617printf "%s\n" "no" >&6; }
8618fi
8619
8620
8621fi
8622if test -z "$ac_cv_prog_NMEDIT"; then
8623  ac_ct_NMEDIT=$NMEDIT
8624  # Extract the first word of "nmedit", so it can be a program name with args.
8625set dummy nmedit; ac_word=$2
8626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8627printf %s "checking for $ac_word... " >&6; }
8628if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8629then :
8630  printf %s "(cached) " >&6
8631else $as_nop
8632  if test -n "$ac_ct_NMEDIT"; then
8633  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638  IFS=$as_save_IFS
8639  case $as_dir in #(((
8640    '') as_dir=./ ;;
8641    */) ;;
8642    *) as_dir=$as_dir/ ;;
8643  esac
8644    for ac_exec_ext in '' $ac_executable_extensions; do
8645  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8646    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8647    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8648    break 2
8649  fi
8650done
8651  done
8652IFS=$as_save_IFS
8653
8654fi
8655fi
8656ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8657if test -n "$ac_ct_NMEDIT"; then
8658  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8659printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8660else
8661  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662printf "%s\n" "no" >&6; }
8663fi
8664
8665  if test "x$ac_ct_NMEDIT" = x; then
8666    NMEDIT=":"
8667  else
8668    case $cross_compiling:$ac_tool_warned in
8669yes:)
8670{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8671printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8672ac_tool_warned=yes ;;
8673esac
8674    NMEDIT=$ac_ct_NMEDIT
8675  fi
8676else
8677  NMEDIT="$ac_cv_prog_NMEDIT"
8678fi
8679
8680    if test -n "$ac_tool_prefix"; then
8681  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8682set dummy ${ac_tool_prefix}lipo; ac_word=$2
8683{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8684printf %s "checking for $ac_word... " >&6; }
8685if test ${ac_cv_prog_LIPO+y}
8686then :
8687  printf %s "(cached) " >&6
8688else $as_nop
8689  if test -n "$LIPO"; then
8690  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8691else
8692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8693for as_dir in $PATH
8694do
8695  IFS=$as_save_IFS
8696  case $as_dir in #(((
8697    '') as_dir=./ ;;
8698    */) ;;
8699    *) as_dir=$as_dir/ ;;
8700  esac
8701    for ac_exec_ext in '' $ac_executable_extensions; do
8702  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8703    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8704    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8705    break 2
8706  fi
8707done
8708  done
8709IFS=$as_save_IFS
8710
8711fi
8712fi
8713LIPO=$ac_cv_prog_LIPO
8714if test -n "$LIPO"; then
8715  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8716printf "%s\n" "$LIPO" >&6; }
8717else
8718  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719printf "%s\n" "no" >&6; }
8720fi
8721
8722
8723fi
8724if test -z "$ac_cv_prog_LIPO"; then
8725  ac_ct_LIPO=$LIPO
8726  # Extract the first word of "lipo", so it can be a program name with args.
8727set dummy lipo; ac_word=$2
8728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729printf %s "checking for $ac_word... " >&6; }
8730if test ${ac_cv_prog_ac_ct_LIPO+y}
8731then :
8732  printf %s "(cached) " >&6
8733else $as_nop
8734  if test -n "$ac_ct_LIPO"; then
8735  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8736else
8737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738for as_dir in $PATH
8739do
8740  IFS=$as_save_IFS
8741  case $as_dir in #(((
8742    '') as_dir=./ ;;
8743    */) ;;
8744    *) as_dir=$as_dir/ ;;
8745  esac
8746    for ac_exec_ext in '' $ac_executable_extensions; do
8747  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8748    ac_cv_prog_ac_ct_LIPO="lipo"
8749    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8750    break 2
8751  fi
8752done
8753  done
8754IFS=$as_save_IFS
8755
8756fi
8757fi
8758ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8759if test -n "$ac_ct_LIPO"; then
8760  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8761printf "%s\n" "$ac_ct_LIPO" >&6; }
8762else
8763  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764printf "%s\n" "no" >&6; }
8765fi
8766
8767  if test "x$ac_ct_LIPO" = x; then
8768    LIPO=":"
8769  else
8770    case $cross_compiling:$ac_tool_warned in
8771yes:)
8772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8773printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8774ac_tool_warned=yes ;;
8775esac
8776    LIPO=$ac_ct_LIPO
8777  fi
8778else
8779  LIPO="$ac_cv_prog_LIPO"
8780fi
8781
8782    if test -n "$ac_tool_prefix"; then
8783  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8784set dummy ${ac_tool_prefix}otool; ac_word=$2
8785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8786printf %s "checking for $ac_word... " >&6; }
8787if test ${ac_cv_prog_OTOOL+y}
8788then :
8789  printf %s "(cached) " >&6
8790else $as_nop
8791  if test -n "$OTOOL"; then
8792  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8793else
8794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8795for as_dir in $PATH
8796do
8797  IFS=$as_save_IFS
8798  case $as_dir in #(((
8799    '') as_dir=./ ;;
8800    */) ;;
8801    *) as_dir=$as_dir/ ;;
8802  esac
8803    for ac_exec_ext in '' $ac_executable_extensions; do
8804  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8805    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8806    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8807    break 2
8808  fi
8809done
8810  done
8811IFS=$as_save_IFS
8812
8813fi
8814fi
8815OTOOL=$ac_cv_prog_OTOOL
8816if test -n "$OTOOL"; then
8817  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8818printf "%s\n" "$OTOOL" >&6; }
8819else
8820  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821printf "%s\n" "no" >&6; }
8822fi
8823
8824
8825fi
8826if test -z "$ac_cv_prog_OTOOL"; then
8827  ac_ct_OTOOL=$OTOOL
8828  # Extract the first word of "otool", so it can be a program name with args.
8829set dummy otool; ac_word=$2
8830{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831printf %s "checking for $ac_word... " >&6; }
8832if test ${ac_cv_prog_ac_ct_OTOOL+y}
8833then :
8834  printf %s "(cached) " >&6
8835else $as_nop
8836  if test -n "$ac_ct_OTOOL"; then
8837  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8838else
8839as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840for as_dir in $PATH
8841do
8842  IFS=$as_save_IFS
8843  case $as_dir in #(((
8844    '') as_dir=./ ;;
8845    */) ;;
8846    *) as_dir=$as_dir/ ;;
8847  esac
8848    for ac_exec_ext in '' $ac_executable_extensions; do
8849  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8850    ac_cv_prog_ac_ct_OTOOL="otool"
8851    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8852    break 2
8853  fi
8854done
8855  done
8856IFS=$as_save_IFS
8857
8858fi
8859fi
8860ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8861if test -n "$ac_ct_OTOOL"; then
8862  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8863printf "%s\n" "$ac_ct_OTOOL" >&6; }
8864else
8865  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866printf "%s\n" "no" >&6; }
8867fi
8868
8869  if test "x$ac_ct_OTOOL" = x; then
8870    OTOOL=":"
8871  else
8872    case $cross_compiling:$ac_tool_warned in
8873yes:)
8874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8875printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8876ac_tool_warned=yes ;;
8877esac
8878    OTOOL=$ac_ct_OTOOL
8879  fi
8880else
8881  OTOOL="$ac_cv_prog_OTOOL"
8882fi
8883
8884    if test -n "$ac_tool_prefix"; then
8885  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8886set dummy ${ac_tool_prefix}otool64; ac_word=$2
8887{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888printf %s "checking for $ac_word... " >&6; }
8889if test ${ac_cv_prog_OTOOL64+y}
8890then :
8891  printf %s "(cached) " >&6
8892else $as_nop
8893  if test -n "$OTOOL64"; then
8894  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8895else
8896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8897for as_dir in $PATH
8898do
8899  IFS=$as_save_IFS
8900  case $as_dir in #(((
8901    '') as_dir=./ ;;
8902    */) ;;
8903    *) as_dir=$as_dir/ ;;
8904  esac
8905    for ac_exec_ext in '' $ac_executable_extensions; do
8906  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8907    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8908    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8909    break 2
8910  fi
8911done
8912  done
8913IFS=$as_save_IFS
8914
8915fi
8916fi
8917OTOOL64=$ac_cv_prog_OTOOL64
8918if test -n "$OTOOL64"; then
8919  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8920printf "%s\n" "$OTOOL64" >&6; }
8921else
8922  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923printf "%s\n" "no" >&6; }
8924fi
8925
8926
8927fi
8928if test -z "$ac_cv_prog_OTOOL64"; then
8929  ac_ct_OTOOL64=$OTOOL64
8930  # Extract the first word of "otool64", so it can be a program name with args.
8931set dummy otool64; ac_word=$2
8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8933printf %s "checking for $ac_word... " >&6; }
8934if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8935then :
8936  printf %s "(cached) " >&6
8937else $as_nop
8938  if test -n "$ac_ct_OTOOL64"; then
8939  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8940else
8941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942for as_dir in $PATH
8943do
8944  IFS=$as_save_IFS
8945  case $as_dir in #(((
8946    '') as_dir=./ ;;
8947    */) ;;
8948    *) as_dir=$as_dir/ ;;
8949  esac
8950    for ac_exec_ext in '' $ac_executable_extensions; do
8951  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8952    ac_cv_prog_ac_ct_OTOOL64="otool64"
8953    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8954    break 2
8955  fi
8956done
8957  done
8958IFS=$as_save_IFS
8959
8960fi
8961fi
8962ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8963if test -n "$ac_ct_OTOOL64"; then
8964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8965printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8966else
8967  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968printf "%s\n" "no" >&6; }
8969fi
8970
8971  if test "x$ac_ct_OTOOL64" = x; then
8972    OTOOL64=":"
8973  else
8974    case $cross_compiling:$ac_tool_warned in
8975yes:)
8976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8977printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8978ac_tool_warned=yes ;;
8979esac
8980    OTOOL64=$ac_ct_OTOOL64
8981  fi
8982else
8983  OTOOL64="$ac_cv_prog_OTOOL64"
8984fi
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
9007
9008
9009
9010
9011
9012    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9013printf %s "checking for -single_module linker flag... " >&6; }
9014if test ${lt_cv_apple_cc_single_mod+y}
9015then :
9016  printf %s "(cached) " >&6
9017else $as_nop
9018  lt_cv_apple_cc_single_mod=no
9019      if test -z "$LT_MULTI_MODULE"; then
9020	# By default we will add the -single_module flag. You can override
9021	# by either setting the environment variable LT_MULTI_MODULE
9022	# non-empty at configure time, or by adding -multi_module to the
9023	# link flags.
9024	rm -rf libconftest.dylib*
9025	echo "int foo(void){return 1;}" > conftest.c
9026	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9027-dynamiclib -Wl,-single_module conftest.c" >&5
9028	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9029	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9030        _lt_result=$?
9031	# If there is a non-empty error log, and "single_module"
9032	# appears in it, assume the flag caused a linker warning
9033        if test -s conftest.err && $GREP single_module conftest.err; then
9034	  cat conftest.err >&5
9035	# Otherwise, if the output was created with a 0 exit code from
9036	# the compiler, it worked.
9037	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9038	  lt_cv_apple_cc_single_mod=yes
9039	else
9040	  cat conftest.err >&5
9041	fi
9042	rm -rf libconftest.dylib*
9043	rm -f conftest.*
9044      fi
9045fi
9046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9047printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
9048
9049    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9050printf %s "checking for -exported_symbols_list linker flag... " >&6; }
9051if test ${lt_cv_ld_exported_symbols_list+y}
9052then :
9053  printf %s "(cached) " >&6
9054else $as_nop
9055  lt_cv_ld_exported_symbols_list=no
9056      save_LDFLAGS=$LDFLAGS
9057      echo "_main" > conftest.sym
9058      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h.  */
9061
9062int
9063main (void)
9064{
9065
9066  ;
9067  return 0;
9068}
9069_ACEOF
9070if ac_fn_c_try_link "$LINENO"
9071then :
9072  lt_cv_ld_exported_symbols_list=yes
9073else $as_nop
9074  lt_cv_ld_exported_symbols_list=no
9075fi
9076rm -f core conftest.err conftest.$ac_objext conftest.beam \
9077    conftest$ac_exeext conftest.$ac_ext
9078	LDFLAGS=$save_LDFLAGS
9079
9080fi
9081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9082printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
9083
9084    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9085printf %s "checking for -force_load linker flag... " >&6; }
9086if test ${lt_cv_ld_force_load+y}
9087then :
9088  printf %s "(cached) " >&6
9089else $as_nop
9090  lt_cv_ld_force_load=no
9091      cat > conftest.c << _LT_EOF
9092int forced_loaded() { return 2;}
9093_LT_EOF
9094      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9095      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9096      echo "$AR cr libconftest.a conftest.o" >&5
9097      $AR cr libconftest.a conftest.o 2>&5
9098      echo "$RANLIB libconftest.a" >&5
9099      $RANLIB libconftest.a 2>&5
9100      cat > conftest.c << _LT_EOF
9101int main() { return 0;}
9102_LT_EOF
9103      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9104      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9105      _lt_result=$?
9106      if test -s conftest.err && $GREP force_load conftest.err; then
9107	cat conftest.err >&5
9108      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9109	lt_cv_ld_force_load=yes
9110      else
9111	cat conftest.err >&5
9112      fi
9113        rm -f conftest.err libconftest.a conftest conftest.c
9114        rm -rf conftest.dSYM
9115
9116fi
9117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9118printf "%s\n" "$lt_cv_ld_force_load" >&6; }
9119    case $host_os in
9120    rhapsody* | darwin1.[012])
9121      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9122    darwin1.*)
9123      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9124    darwin*) # darwin 5.x on
9125      # if running on 10.5 or later, the deployment target defaults
9126      # to the OS version, if on x86, and 10.4, the deployment
9127      # target defaults to 10.4. Don't you love it?
9128      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9129	10.0,*86*-darwin8*|10.0,*-darwin[912]*)
9130	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9131	10.[012][,.]*)
9132	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9133	10.*|11.*)
9134	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9135      esac
9136    ;;
9137  esac
9138    if test yes = "$lt_cv_apple_cc_single_mod"; then
9139      _lt_dar_single_mod='$single_module'
9140    fi
9141    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9142      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9143    else
9144      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9145    fi
9146    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9147      _lt_dsymutil='~$DSYMUTIL $lib || :'
9148    else
9149      _lt_dsymutil=
9150    fi
9151    ;;
9152  esac
9153
9154# func_munge_path_list VARIABLE PATH
9155# -----------------------------------
9156# VARIABLE is name of variable containing _space_ separated list of
9157# directories to be munged by the contents of PATH, which is string
9158# having a format:
9159# "DIR[:DIR]:"
9160#       string "DIR[ DIR]" will be prepended to VARIABLE
9161# ":DIR[:DIR]"
9162#       string "DIR[ DIR]" will be appended to VARIABLE
9163# "DIRP[:DIRP]::[DIRA:]DIRA"
9164#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9165#       "DIRA[ DIRA]" will be appended to VARIABLE
9166# "DIR[:DIR]"
9167#       VARIABLE will be replaced by "DIR[ DIR]"
9168func_munge_path_list ()
9169{
9170    case x$2 in
9171    x)
9172        ;;
9173    *:)
9174        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9175        ;;
9176    x:*)
9177        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9178        ;;
9179    *::*)
9180        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9181        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9182        ;;
9183    *)
9184        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9185        ;;
9186    esac
9187}
9188
9189ac_header= ac_cache=
9190for ac_item in $ac_header_c_list
9191do
9192  if test $ac_cache; then
9193    ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
9194    if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
9195      printf "%s\n" "#define $ac_item 1" >> confdefs.h
9196    fi
9197    ac_header= ac_cache=
9198  elif test $ac_header; then
9199    ac_cache=$ac_item
9200  else
9201    ac_header=$ac_item
9202  fi
9203done
9204
9205
9206
9207
9208
9209
9210
9211
9212if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
9213then :
9214
9215printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
9216
9217fi
9218ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9219"
9220if test "x$ac_cv_header_dlfcn_h" = xyes
9221then :
9222  printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
9223
9224fi
9225
9226
9227
9228
9229
9230# Set options
9231
9232
9233
9234        enable_dlopen=no
9235
9236
9237  enable_win32_dll=no
9238
9239
9240            # Check whether --enable-shared was given.
9241if test ${enable_shared+y}
9242then :
9243  enableval=$enable_shared; p=${PACKAGE-default}
9244    case $enableval in
9245    yes) enable_shared=yes ;;
9246    no) enable_shared=no ;;
9247    *)
9248      enable_shared=no
9249      # Look at the argument we got.  We use all the common list separators.
9250      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9251      for pkg in $enableval; do
9252	IFS=$lt_save_ifs
9253	if test "X$pkg" = "X$p"; then
9254	  enable_shared=yes
9255	fi
9256      done
9257      IFS=$lt_save_ifs
9258      ;;
9259    esac
9260else $as_nop
9261  enable_shared=yes
9262fi
9263
9264
9265
9266
9267
9268
9269
9270
9271
9272
9273
9274# Check whether --with-pic was given.
9275if test ${with_pic+y}
9276then :
9277  withval=$with_pic; lt_p=${PACKAGE-default}
9278    case $withval in
9279    yes|no) pic_mode=$withval ;;
9280    *)
9281      pic_mode=default
9282      # Look at the argument we got.  We use all the common list separators.
9283      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9284      for lt_pkg in $withval; do
9285	IFS=$lt_save_ifs
9286	if test "X$lt_pkg" = "X$lt_p"; then
9287	  pic_mode=yes
9288	fi
9289      done
9290      IFS=$lt_save_ifs
9291      ;;
9292    esac
9293else $as_nop
9294  pic_mode=default
9295fi
9296
9297
9298
9299
9300
9301
9302
9303
9304  # Check whether --enable-fast-install was given.
9305if test ${enable_fast_install+y}
9306then :
9307  enableval=$enable_fast_install; p=${PACKAGE-default}
9308    case $enableval in
9309    yes) enable_fast_install=yes ;;
9310    no) enable_fast_install=no ;;
9311    *)
9312      enable_fast_install=no
9313      # Look at the argument we got.  We use all the common list separators.
9314      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9315      for pkg in $enableval; do
9316	IFS=$lt_save_ifs
9317	if test "X$pkg" = "X$p"; then
9318	  enable_fast_install=yes
9319	fi
9320      done
9321      IFS=$lt_save_ifs
9322      ;;
9323    esac
9324else $as_nop
9325  enable_fast_install=yes
9326fi
9327
9328
9329
9330
9331
9332
9333
9334
9335  shared_archive_member_spec=
9336case $host,$enable_shared in
9337power*-*-aix[5-9]*,yes)
9338  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9339printf %s "checking which variant of shared library versioning to provide... " >&6; }
9340
9341# Check whether --with-aix-soname was given.
9342if test ${with_aix_soname+y}
9343then :
9344  withval=$with_aix_soname; case $withval in
9345    aix|svr4|both)
9346      ;;
9347    *)
9348      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9349      ;;
9350    esac
9351    lt_cv_with_aix_soname=$with_aix_soname
9352else $as_nop
9353  if test ${lt_cv_with_aix_soname+y}
9354then :
9355  printf %s "(cached) " >&6
9356else $as_nop
9357  lt_cv_with_aix_soname=aix
9358fi
9359
9360    with_aix_soname=$lt_cv_with_aix_soname
9361fi
9362
9363  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9364printf "%s\n" "$with_aix_soname" >&6; }
9365  if test aix != "$with_aix_soname"; then
9366    # For the AIX way of multilib, we name the shared archive member
9367    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9368    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9369    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9370    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9371    if test 64 = "${OBJECT_MODE-32}"; then
9372      shared_archive_member_spec=shr_64
9373    else
9374      shared_archive_member_spec=shr
9375    fi
9376  fi
9377  ;;
9378*)
9379  with_aix_soname=aix
9380  ;;
9381esac
9382
9383
9384
9385
9386
9387
9388
9389
9390
9391
9392# This can be used to rebuild libtool when needed
9393LIBTOOL_DEPS=$ltmain
9394
9395# Always use our own libtool.
9396LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9397
9398
9399
9400
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427test -z "$LN_S" && LN_S="ln -s"
9428
9429
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442if test -n "${ZSH_VERSION+set}"; then
9443   setopt NO_GLOB_SUBST
9444fi
9445
9446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9447printf %s "checking for objdir... " >&6; }
9448if test ${lt_cv_objdir+y}
9449then :
9450  printf %s "(cached) " >&6
9451else $as_nop
9452  rm -f .libs 2>/dev/null
9453mkdir .libs 2>/dev/null
9454if test -d .libs; then
9455  lt_cv_objdir=.libs
9456else
9457  # MS-DOS does not allow filenames that begin with a dot.
9458  lt_cv_objdir=_libs
9459fi
9460rmdir .libs 2>/dev/null
9461fi
9462{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9463printf "%s\n" "$lt_cv_objdir" >&6; }
9464objdir=$lt_cv_objdir
9465
9466
9467
9468
9469
9470printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9471
9472
9473
9474
9475case $host_os in
9476aix3*)
9477  # AIX sometimes has problems with the GCC collect2 program.  For some
9478  # reason, if we set the COLLECT_NAMES environment variable, the problems
9479  # vanish in a puff of smoke.
9480  if test set != "${COLLECT_NAMES+set}"; then
9481    COLLECT_NAMES=
9482    export COLLECT_NAMES
9483  fi
9484  ;;
9485esac
9486
9487# Global variables:
9488ofile=libtool
9489can_build_shared=yes
9490
9491# All known linkers require a '.a' archive for static linking (except MSVC,
9492# which needs '.lib').
9493libext=a
9494
9495with_gnu_ld=$lt_cv_prog_gnu_ld
9496
9497old_CC=$CC
9498old_CFLAGS=$CFLAGS
9499
9500# Set sane defaults for various variables
9501test -z "$CC" && CC=cc
9502test -z "$LTCC" && LTCC=$CC
9503test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9504test -z "$LD" && LD=ld
9505test -z "$ac_objext" && ac_objext=o
9506
9507func_cc_basename $compiler
9508cc_basename=$func_cc_basename_result
9509
9510
9511# Only perform the check for file, if the check method requires it
9512test -z "$MAGIC_CMD" && MAGIC_CMD=file
9513case $deplibs_check_method in
9514file_magic*)
9515  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9516    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9517printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9518if test ${lt_cv_path_MAGIC_CMD+y}
9519then :
9520  printf %s "(cached) " >&6
9521else $as_nop
9522  case $MAGIC_CMD in
9523[\\/*] |  ?:[\\/]*)
9524  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9525  ;;
9526*)
9527  lt_save_MAGIC_CMD=$MAGIC_CMD
9528  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9529  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9530  for ac_dir in $ac_dummy; do
9531    IFS=$lt_save_ifs
9532    test -z "$ac_dir" && ac_dir=.
9533    if test -f "$ac_dir/${ac_tool_prefix}file"; then
9534      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9535      if test -n "$file_magic_test_file"; then
9536	case $deplibs_check_method in
9537	"file_magic "*)
9538	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9539	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9540	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9541	    $EGREP "$file_magic_regex" > /dev/null; then
9542	    :
9543	  else
9544	    cat <<_LT_EOF 1>&2
9545
9546*** Warning: the command libtool uses to detect shared libraries,
9547*** $file_magic_cmd, produces output that libtool cannot recognize.
9548*** The result is that libtool may fail to recognize shared libraries
9549*** as such.  This will affect the creation of libtool libraries that
9550*** depend on shared libraries, but programs linked with such libtool
9551*** libraries will work regardless of this problem.  Nevertheless, you
9552*** may want to report the problem to your system manager and/or to
9553*** bug-libtool@gnu.org
9554
9555_LT_EOF
9556	  fi ;;
9557	esac
9558      fi
9559      break
9560    fi
9561  done
9562  IFS=$lt_save_ifs
9563  MAGIC_CMD=$lt_save_MAGIC_CMD
9564  ;;
9565esac
9566fi
9567
9568MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9569if test -n "$MAGIC_CMD"; then
9570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9571printf "%s\n" "$MAGIC_CMD" >&6; }
9572else
9573  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9574printf "%s\n" "no" >&6; }
9575fi
9576
9577
9578
9579
9580
9581if test -z "$lt_cv_path_MAGIC_CMD"; then
9582  if test -n "$ac_tool_prefix"; then
9583    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9584printf %s "checking for file... " >&6; }
9585if test ${lt_cv_path_MAGIC_CMD+y}
9586then :
9587  printf %s "(cached) " >&6
9588else $as_nop
9589  case $MAGIC_CMD in
9590[\\/*] |  ?:[\\/]*)
9591  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9592  ;;
9593*)
9594  lt_save_MAGIC_CMD=$MAGIC_CMD
9595  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9596  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9597  for ac_dir in $ac_dummy; do
9598    IFS=$lt_save_ifs
9599    test -z "$ac_dir" && ac_dir=.
9600    if test -f "$ac_dir/file"; then
9601      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9602      if test -n "$file_magic_test_file"; then
9603	case $deplibs_check_method in
9604	"file_magic "*)
9605	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9606	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9607	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9608	    $EGREP "$file_magic_regex" > /dev/null; then
9609	    :
9610	  else
9611	    cat <<_LT_EOF 1>&2
9612
9613*** Warning: the command libtool uses to detect shared libraries,
9614*** $file_magic_cmd, produces output that libtool cannot recognize.
9615*** The result is that libtool may fail to recognize shared libraries
9616*** as such.  This will affect the creation of libtool libraries that
9617*** depend on shared libraries, but programs linked with such libtool
9618*** libraries will work regardless of this problem.  Nevertheless, you
9619*** may want to report the problem to your system manager and/or to
9620*** bug-libtool@gnu.org
9621
9622_LT_EOF
9623	  fi ;;
9624	esac
9625      fi
9626      break
9627    fi
9628  done
9629  IFS=$lt_save_ifs
9630  MAGIC_CMD=$lt_save_MAGIC_CMD
9631  ;;
9632esac
9633fi
9634
9635MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9636if test -n "$MAGIC_CMD"; then
9637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9638printf "%s\n" "$MAGIC_CMD" >&6; }
9639else
9640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9641printf "%s\n" "no" >&6; }
9642fi
9643
9644
9645  else
9646    MAGIC_CMD=:
9647  fi
9648fi
9649
9650  fi
9651  ;;
9652esac
9653
9654# Use C for the default configuration in the libtool script
9655
9656lt_save_CC=$CC
9657ac_ext=c
9658ac_cpp='$CPP $CPPFLAGS'
9659ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9660ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9661ac_compiler_gnu=$ac_cv_c_compiler_gnu
9662
9663
9664# Source file extension for C test sources.
9665ac_ext=c
9666
9667# Object file extension for compiled C test sources.
9668objext=o
9669objext=$objext
9670
9671# Code to be used in simple compile tests
9672lt_simple_compile_test_code="int some_variable = 0;"
9673
9674# Code to be used in simple link tests
9675lt_simple_link_test_code='int main(){return(0);}'
9676
9677
9678
9679
9680
9681
9682
9683# If no C compiler was specified, use CC.
9684LTCC=${LTCC-"$CC"}
9685
9686# If no C compiler flags were specified, use CFLAGS.
9687LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9688
9689# Allow CC to be a program name with arguments.
9690compiler=$CC
9691
9692# Save the default compiler, since it gets overwritten when the other
9693# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9694compiler_DEFAULT=$CC
9695
9696# save warnings/boilerplate of simple test code
9697ac_outfile=conftest.$ac_objext
9698echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9699eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9700_lt_compiler_boilerplate=`cat conftest.err`
9701$RM conftest*
9702
9703ac_outfile=conftest.$ac_objext
9704echo "$lt_simple_link_test_code" >conftest.$ac_ext
9705eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9706_lt_linker_boilerplate=`cat conftest.err`
9707$RM -r conftest*
9708
9709
9710if test -n "$compiler"; then
9711
9712lt_prog_compiler_no_builtin_flag=
9713
9714if test yes = "$GCC"; then
9715  case $cc_basename in
9716  nvcc*)
9717    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9718  *)
9719    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9720  esac
9721
9722  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9723printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9724if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9725then :
9726  printf %s "(cached) " >&6
9727else $as_nop
9728  lt_cv_prog_compiler_rtti_exceptions=no
9729   ac_outfile=conftest.$ac_objext
9730   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9731   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9732   # Insert the option either (1) after the last *FLAGS variable, or
9733   # (2) before a word containing "conftest.", or (3) at the end.
9734   # Note that $ac_compile itself does not contain backslashes and begins
9735   # with a dollar sign (not a hyphen), so the echo should work correctly.
9736   # The option is referenced via a variable to avoid confusing sed.
9737   lt_compile=`echo "$ac_compile" | $SED \
9738   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9739   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9740   -e 's:$: $lt_compiler_flag:'`
9741   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9742   (eval "$lt_compile" 2>conftest.err)
9743   ac_status=$?
9744   cat conftest.err >&5
9745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746   if (exit $ac_status) && test -s "$ac_outfile"; then
9747     # The compiler can only warn and ignore the option if not recognized
9748     # So say no if there are warnings other than the usual output.
9749     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9750     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9751     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9752       lt_cv_prog_compiler_rtti_exceptions=yes
9753     fi
9754   fi
9755   $RM conftest*
9756
9757fi
9758{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9759printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9760
9761if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9762    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9763else
9764    :
9765fi
9766
9767fi
9768
9769
9770
9771
9772
9773
9774  lt_prog_compiler_wl=
9775lt_prog_compiler_pic=
9776lt_prog_compiler_static=
9777
9778
9779  if test yes = "$GCC"; then
9780    lt_prog_compiler_wl='-Wl,'
9781    lt_prog_compiler_static='-static'
9782
9783    case $host_os in
9784      aix*)
9785      # All AIX code is PIC.
9786      if test ia64 = "$host_cpu"; then
9787	# AIX 5 now supports IA64 processor
9788	lt_prog_compiler_static='-Bstatic'
9789      fi
9790      lt_prog_compiler_pic='-fPIC'
9791      ;;
9792
9793    amigaos*)
9794      case $host_cpu in
9795      powerpc)
9796            # see comment about AmigaOS4 .so support
9797            lt_prog_compiler_pic='-fPIC'
9798        ;;
9799      m68k)
9800            # FIXME: we need at least 68020 code to build shared libraries, but
9801            # adding the '-m68020' flag to GCC prevents building anything better,
9802            # like '-m68040'.
9803            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9804        ;;
9805      esac
9806      ;;
9807
9808    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9809      # PIC is the default for these OSes.
9810      ;;
9811
9812    mingw* | cygwin* | pw32* | os2* | cegcc*)
9813      # This hack is so that the source file can tell whether it is being
9814      # built for inclusion in a dll (and should export symbols for example).
9815      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9816      # (--disable-auto-import) libraries
9817      lt_prog_compiler_pic='-DDLL_EXPORT'
9818      case $host_os in
9819      os2*)
9820	lt_prog_compiler_static='$wl-static'
9821	;;
9822      esac
9823      ;;
9824
9825    darwin* | rhapsody*)
9826      # PIC is the default on this platform
9827      # Common symbols not allowed in MH_DYLIB files
9828      lt_prog_compiler_pic='-fno-common'
9829      ;;
9830
9831    haiku*)
9832      # PIC is the default for Haiku.
9833      # The "-static" flag exists, but is broken.
9834      lt_prog_compiler_static=
9835      ;;
9836
9837    hpux*)
9838      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9839      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9840      # sets the default TLS model and affects inlining.
9841      case $host_cpu in
9842      hppa*64*)
9843	# +Z the default
9844	;;
9845      *)
9846	lt_prog_compiler_pic='-fPIC'
9847	;;
9848      esac
9849      ;;
9850
9851    interix[3-9]*)
9852      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9853      # Instead, we relocate shared libraries at runtime.
9854      ;;
9855
9856    msdosdjgpp*)
9857      # Just because we use GCC doesn't mean we suddenly get shared libraries
9858      # on systems that don't support them.
9859      lt_prog_compiler_can_build_shared=no
9860      enable_shared=no
9861      ;;
9862
9863    *nto* | *qnx*)
9864      # QNX uses GNU C++, but need to define -shared option too, otherwise
9865      # it will coredump.
9866      lt_prog_compiler_pic='-fPIC -shared'
9867      ;;
9868
9869    sysv4*MP*)
9870      if test -d /usr/nec; then
9871	lt_prog_compiler_pic=-Kconform_pic
9872      fi
9873      ;;
9874
9875    *)
9876      lt_prog_compiler_pic='-fPIC'
9877      ;;
9878    esac
9879
9880    case $cc_basename in
9881    nvcc*) # Cuda Compiler Driver 2.2
9882      lt_prog_compiler_wl='-Xlinker '
9883      if test -n "$lt_prog_compiler_pic"; then
9884        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9885      fi
9886      ;;
9887    esac
9888  else
9889    # PORTME Check for flag to pass linker flags through the system compiler.
9890    case $host_os in
9891    aix*)
9892      lt_prog_compiler_wl='-Wl,'
9893      if test ia64 = "$host_cpu"; then
9894	# AIX 5 now supports IA64 processor
9895	lt_prog_compiler_static='-Bstatic'
9896      else
9897	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9898      fi
9899      ;;
9900
9901    darwin* | rhapsody*)
9902      # PIC is the default on this platform
9903      # Common symbols not allowed in MH_DYLIB files
9904      lt_prog_compiler_pic='-fno-common'
9905      case $cc_basename in
9906      nagfor*)
9907        # NAG Fortran compiler
9908        lt_prog_compiler_wl='-Wl,-Wl,,'
9909        lt_prog_compiler_pic='-PIC'
9910        lt_prog_compiler_static='-Bstatic'
9911        ;;
9912      esac
9913      ;;
9914
9915    mingw* | cygwin* | pw32* | os2* | cegcc*)
9916      # This hack is so that the source file can tell whether it is being
9917      # built for inclusion in a dll (and should export symbols for example).
9918      lt_prog_compiler_pic='-DDLL_EXPORT'
9919      case $host_os in
9920      os2*)
9921	lt_prog_compiler_static='$wl-static'
9922	;;
9923      esac
9924      ;;
9925
9926    hpux9* | hpux10* | hpux11*)
9927      lt_prog_compiler_wl='-Wl,'
9928      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9929      # not for PA HP-UX.
9930      case $host_cpu in
9931      hppa*64*|ia64*)
9932	# +Z the default
9933	;;
9934      *)
9935	lt_prog_compiler_pic='+Z'
9936	;;
9937      esac
9938      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9939      lt_prog_compiler_static='$wl-a ${wl}archive'
9940      ;;
9941
9942    irix5* | irix6* | nonstopux*)
9943      lt_prog_compiler_wl='-Wl,'
9944      # PIC (with -KPIC) is the default.
9945      lt_prog_compiler_static='-non_shared'
9946      ;;
9947
9948    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9949      case $cc_basename in
9950      # old Intel for x86_64, which still supported -KPIC.
9951      ecc*)
9952	lt_prog_compiler_wl='-Wl,'
9953	lt_prog_compiler_pic='-KPIC'
9954	lt_prog_compiler_static='-static'
9955        ;;
9956      # flang / f18. f95 an alias for gfortran or flang on Debian
9957      flang* | f18* | f95*)
9958	lt_prog_compiler_wl='-Wl,'
9959	lt_prog_compiler_pic='-fPIC'
9960	lt_prog_compiler_static='-static'
9961        ;;
9962      # icc used to be incompatible with GCC.
9963      # ICC 10 doesn't accept -KPIC any more.
9964      icc* | ifort*)
9965	lt_prog_compiler_wl='-Wl,'
9966	lt_prog_compiler_pic='-fPIC'
9967	lt_prog_compiler_static='-static'
9968        ;;
9969      # Lahey Fortran 8.1.
9970      lf95*)
9971	lt_prog_compiler_wl='-Wl,'
9972	lt_prog_compiler_pic='--shared'
9973	lt_prog_compiler_static='--static'
9974	;;
9975      nagfor*)
9976	# NAG Fortran compiler
9977	lt_prog_compiler_wl='-Wl,-Wl,,'
9978	lt_prog_compiler_pic='-PIC'
9979	lt_prog_compiler_static='-Bstatic'
9980	;;
9981      tcc*)
9982	# Fabrice Bellard et al's Tiny C Compiler
9983	lt_prog_compiler_wl='-Wl,'
9984	lt_prog_compiler_pic='-fPIC'
9985	lt_prog_compiler_static='-static'
9986	;;
9987      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9988        # Portland Group compilers (*not* the Pentium gcc compiler,
9989	# which looks to be a dead project)
9990	lt_prog_compiler_wl='-Wl,'
9991	lt_prog_compiler_pic='-fpic'
9992	lt_prog_compiler_static='-Bstatic'
9993        ;;
9994      ccc*)
9995        lt_prog_compiler_wl='-Wl,'
9996        # All Alpha code is PIC.
9997        lt_prog_compiler_static='-non_shared'
9998        ;;
9999      xl* | bgxl* | bgf* | mpixl*)
10000	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10001	lt_prog_compiler_wl='-Wl,'
10002	lt_prog_compiler_pic='-qpic'
10003	lt_prog_compiler_static='-qstaticlink'
10004	;;
10005      *)
10006	case `$CC -V 2>&1 | sed 5q` in
10007	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10008	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10009	  lt_prog_compiler_pic='-KPIC'
10010	  lt_prog_compiler_static='-Bstatic'
10011	  lt_prog_compiler_wl=''
10012	  ;;
10013	*Sun\ F* | *Sun*Fortran*)
10014	  lt_prog_compiler_pic='-KPIC'
10015	  lt_prog_compiler_static='-Bstatic'
10016	  lt_prog_compiler_wl='-Qoption ld '
10017	  ;;
10018	*Sun\ C*)
10019	  # Sun C 5.9
10020	  lt_prog_compiler_pic='-KPIC'
10021	  lt_prog_compiler_static='-Bstatic'
10022	  lt_prog_compiler_wl='-Wl,'
10023	  ;;
10024        *Intel*\ [CF]*Compiler*)
10025	  lt_prog_compiler_wl='-Wl,'
10026	  lt_prog_compiler_pic='-fPIC'
10027	  lt_prog_compiler_static='-static'
10028	  ;;
10029	*Portland\ Group*)
10030	  lt_prog_compiler_wl='-Wl,'
10031	  lt_prog_compiler_pic='-fpic'
10032	  lt_prog_compiler_static='-Bstatic'
10033	  ;;
10034	esac
10035	;;
10036      esac
10037      ;;
10038
10039    newsos6)
10040      lt_prog_compiler_pic='-KPIC'
10041      lt_prog_compiler_static='-Bstatic'
10042      ;;
10043
10044    *nto* | *qnx*)
10045      # QNX uses GNU C++, but need to define -shared option too, otherwise
10046      # it will coredump.
10047      lt_prog_compiler_pic='-fPIC -shared'
10048      ;;
10049
10050    osf3* | osf4* | osf5*)
10051      lt_prog_compiler_wl='-Wl,'
10052      # All OSF/1 code is PIC.
10053      lt_prog_compiler_static='-non_shared'
10054      ;;
10055
10056    rdos*)
10057      lt_prog_compiler_static='-non_shared'
10058      ;;
10059
10060    solaris*)
10061      lt_prog_compiler_pic='-KPIC'
10062      lt_prog_compiler_static='-Bstatic'
10063      case $cc_basename in
10064      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10065	lt_prog_compiler_wl='-Qoption ld ';;
10066      *)
10067	lt_prog_compiler_wl='-Wl,';;
10068      esac
10069      ;;
10070
10071    sunos4*)
10072      lt_prog_compiler_wl='-Qoption ld '
10073      lt_prog_compiler_pic='-PIC'
10074      lt_prog_compiler_static='-Bstatic'
10075      ;;
10076
10077    sysv4 | sysv4.2uw2* | sysv4.3*)
10078      lt_prog_compiler_wl='-Wl,'
10079      lt_prog_compiler_pic='-KPIC'
10080      lt_prog_compiler_static='-Bstatic'
10081      ;;
10082
10083    sysv4*MP*)
10084      if test -d /usr/nec; then
10085	lt_prog_compiler_pic='-Kconform_pic'
10086	lt_prog_compiler_static='-Bstatic'
10087      fi
10088      ;;
10089
10090    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10091      lt_prog_compiler_wl='-Wl,'
10092      lt_prog_compiler_pic='-KPIC'
10093      lt_prog_compiler_static='-Bstatic'
10094      ;;
10095
10096    unicos*)
10097      lt_prog_compiler_wl='-Wl,'
10098      lt_prog_compiler_can_build_shared=no
10099      ;;
10100
10101    uts4*)
10102      lt_prog_compiler_pic='-pic'
10103      lt_prog_compiler_static='-Bstatic'
10104      ;;
10105
10106    *)
10107      lt_prog_compiler_can_build_shared=no
10108      ;;
10109    esac
10110  fi
10111
10112case $host_os in
10113  # For platforms that do not support PIC, -DPIC is meaningless:
10114  *djgpp*)
10115    lt_prog_compiler_pic=
10116    ;;
10117  *)
10118    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10119    ;;
10120esac
10121
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10123printf %s "checking for $compiler option to produce PIC... " >&6; }
10124if test ${lt_cv_prog_compiler_pic+y}
10125then :
10126  printf %s "(cached) " >&6
10127else $as_nop
10128  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10129fi
10130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10131printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
10132lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10133
10134#
10135# Check to make sure the PIC flag actually works.
10136#
10137if test -n "$lt_prog_compiler_pic"; then
10138  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10139printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10140if test ${lt_cv_prog_compiler_pic_works+y}
10141then :
10142  printf %s "(cached) " >&6
10143else $as_nop
10144  lt_cv_prog_compiler_pic_works=no
10145   ac_outfile=conftest.$ac_objext
10146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10147   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10148   # Insert the option either (1) after the last *FLAGS variable, or
10149   # (2) before a word containing "conftest.", or (3) at the end.
10150   # Note that $ac_compile itself does not contain backslashes and begins
10151   # with a dollar sign (not a hyphen), so the echo should work correctly.
10152   # The option is referenced via a variable to avoid confusing sed.
10153   lt_compile=`echo "$ac_compile" | $SED \
10154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10156   -e 's:$: $lt_compiler_flag:'`
10157   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10158   (eval "$lt_compile" 2>conftest.err)
10159   ac_status=$?
10160   cat conftest.err >&5
10161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162   if (exit $ac_status) && test -s "$ac_outfile"; then
10163     # The compiler can only warn and ignore the option if not recognized
10164     # So say no if there are warnings other than the usual output.
10165     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10168       lt_cv_prog_compiler_pic_works=yes
10169     fi
10170   fi
10171   $RM conftest*
10172
10173fi
10174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10175printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
10176
10177if test yes = "$lt_cv_prog_compiler_pic_works"; then
10178    case $lt_prog_compiler_pic in
10179     "" | " "*) ;;
10180     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10181     esac
10182else
10183    lt_prog_compiler_pic=
10184     lt_prog_compiler_can_build_shared=no
10185fi
10186
10187fi
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199#
10200# Check to make sure the static flag actually works.
10201#
10202wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10204printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10205if test ${lt_cv_prog_compiler_static_works+y}
10206then :
10207  printf %s "(cached) " >&6
10208else $as_nop
10209  lt_cv_prog_compiler_static_works=no
10210   save_LDFLAGS=$LDFLAGS
10211   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10212   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10213   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10214     # The linker can only warn and ignore the option if not recognized
10215     # So say no if there are warnings
10216     if test -s conftest.err; then
10217       # Append any errors to the config.log.
10218       cat conftest.err 1>&5
10219       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10220       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10221       if diff conftest.exp conftest.er2 >/dev/null; then
10222         lt_cv_prog_compiler_static_works=yes
10223       fi
10224     else
10225       lt_cv_prog_compiler_static_works=yes
10226     fi
10227   fi
10228   $RM -r conftest*
10229   LDFLAGS=$save_LDFLAGS
10230
10231fi
10232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10233printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
10234
10235if test yes = "$lt_cv_prog_compiler_static_works"; then
10236    :
10237else
10238    lt_prog_compiler_static=
10239fi
10240
10241
10242
10243
10244
10245
10246
10247  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10248printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10249if test ${lt_cv_prog_compiler_c_o+y}
10250then :
10251  printf %s "(cached) " >&6
10252else $as_nop
10253  lt_cv_prog_compiler_c_o=no
10254   $RM -r conftest 2>/dev/null
10255   mkdir conftest
10256   cd conftest
10257   mkdir out
10258   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10259
10260   lt_compiler_flag="-o out/conftest2.$ac_objext"
10261   # Insert the option either (1) after the last *FLAGS variable, or
10262   # (2) before a word containing "conftest.", or (3) at the end.
10263   # Note that $ac_compile itself does not contain backslashes and begins
10264   # with a dollar sign (not a hyphen), so the echo should work correctly.
10265   lt_compile=`echo "$ac_compile" | $SED \
10266   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10267   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10268   -e 's:$: $lt_compiler_flag:'`
10269   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10270   (eval "$lt_compile" 2>out/conftest.err)
10271   ac_status=$?
10272   cat out/conftest.err >&5
10273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10275   then
10276     # The compiler can only warn and ignore the option if not recognized
10277     # So say no if there are warnings
10278     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10279     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10280     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10281       lt_cv_prog_compiler_c_o=yes
10282     fi
10283   fi
10284   chmod u+w . 2>&5
10285   $RM conftest*
10286   # SGI C++ compiler will create directory out/ii_files/ for
10287   # template instantiation
10288   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10289   $RM out/* && rmdir out
10290   cd ..
10291   $RM -r conftest
10292   $RM conftest*
10293
10294fi
10295{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10296printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10297
10298
10299
10300
10301
10302
10303  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10304printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10305if test ${lt_cv_prog_compiler_c_o+y}
10306then :
10307  printf %s "(cached) " >&6
10308else $as_nop
10309  lt_cv_prog_compiler_c_o=no
10310   $RM -r conftest 2>/dev/null
10311   mkdir conftest
10312   cd conftest
10313   mkdir out
10314   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10315
10316   lt_compiler_flag="-o out/conftest2.$ac_objext"
10317   # Insert the option either (1) after the last *FLAGS variable, or
10318   # (2) before a word containing "conftest.", or (3) at the end.
10319   # Note that $ac_compile itself does not contain backslashes and begins
10320   # with a dollar sign (not a hyphen), so the echo should work correctly.
10321   lt_compile=`echo "$ac_compile" | $SED \
10322   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10323   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10324   -e 's:$: $lt_compiler_flag:'`
10325   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10326   (eval "$lt_compile" 2>out/conftest.err)
10327   ac_status=$?
10328   cat out/conftest.err >&5
10329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10330   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10331   then
10332     # The compiler can only warn and ignore the option if not recognized
10333     # So say no if there are warnings
10334     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10335     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10336     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10337       lt_cv_prog_compiler_c_o=yes
10338     fi
10339   fi
10340   chmod u+w . 2>&5
10341   $RM conftest*
10342   # SGI C++ compiler will create directory out/ii_files/ for
10343   # template instantiation
10344   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10345   $RM out/* && rmdir out
10346   cd ..
10347   $RM -r conftest
10348   $RM conftest*
10349
10350fi
10351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10352printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10353
10354
10355
10356
10357hard_links=nottested
10358if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10359  # do not overwrite the value of need_locks provided by the user
10360  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10361printf %s "checking if we can lock with hard links... " >&6; }
10362  hard_links=yes
10363  $RM conftest*
10364  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10365  touch conftest.a
10366  ln conftest.a conftest.b 2>&5 || hard_links=no
10367  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10368  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10369printf "%s\n" "$hard_links" >&6; }
10370  if test no = "$hard_links"; then
10371    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10372printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10373    need_locks=warn
10374  fi
10375else
10376  need_locks=no
10377fi
10378
10379
10380
10381
10382
10383
10384  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10385printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10386
10387  runpath_var=
10388  allow_undefined_flag=
10389  always_export_symbols=no
10390  archive_cmds=
10391  archive_expsym_cmds=
10392  compiler_needs_object=no
10393  enable_shared_with_static_runtimes=no
10394  export_dynamic_flag_spec=
10395  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10396  hardcode_automatic=no
10397  hardcode_direct=no
10398  hardcode_direct_absolute=no
10399  hardcode_libdir_flag_spec=
10400  hardcode_libdir_separator=
10401  hardcode_minus_L=no
10402  hardcode_shlibpath_var=unsupported
10403  inherit_rpath=no
10404  link_all_deplibs=unknown
10405  module_cmds=
10406  module_expsym_cmds=
10407  old_archive_from_new_cmds=
10408  old_archive_from_expsyms_cmds=
10409  thread_safe_flag_spec=
10410  whole_archive_flag_spec=
10411  # include_expsyms should be a list of space-separated symbols to be *always*
10412  # included in the symbol list
10413  include_expsyms=
10414  # exclude_expsyms can be an extended regexp of symbols to exclude
10415  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10416  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10417  # as well as any symbol that contains 'd'.
10418  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10419  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10420  # platforms (ab)use it in PIC code, but their linkers get confused if
10421  # the symbol is explicitly referenced.  Since portable code cannot
10422  # rely on this symbol name, it's probably fine to never include it in
10423  # preloaded symbol tables.
10424  # Exclude shared library initialization/finalization symbols.
10425  extract_expsyms_cmds=
10426
10427  case $host_os in
10428  cygwin* | mingw* | pw32* | cegcc*)
10429    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10430    # When not using gcc, we currently assume that we are using
10431    # Microsoft Visual C++.
10432    if test yes != "$GCC"; then
10433      with_gnu_ld=no
10434    fi
10435    ;;
10436  interix*)
10437    # we just hope/assume this is gcc and not c89 (= MSVC++)
10438    with_gnu_ld=yes
10439    ;;
10440  openbsd* | bitrig*)
10441    with_gnu_ld=no
10442    ;;
10443  linux* | k*bsd*-gnu | gnu*)
10444    link_all_deplibs=no
10445    ;;
10446  esac
10447
10448  ld_shlibs=yes
10449
10450  # On some targets, GNU ld is compatible enough with the native linker
10451  # that we're better off using the native interface for both.
10452  lt_use_gnu_ld_interface=no
10453  if test yes = "$with_gnu_ld"; then
10454    case $host_os in
10455      aix*)
10456	# The AIX port of GNU ld has always aspired to compatibility
10457	# with the native linker.  However, as the warning in the GNU ld
10458	# block says, versions before 2.19.5* couldn't really create working
10459	# shared libraries, regardless of the interface used.
10460	case `$LD -v 2>&1` in
10461	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10462	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10463	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10464	  *)
10465	    lt_use_gnu_ld_interface=yes
10466	    ;;
10467	esac
10468	;;
10469      *)
10470	lt_use_gnu_ld_interface=yes
10471	;;
10472    esac
10473  fi
10474
10475  if test yes = "$lt_use_gnu_ld_interface"; then
10476    # If archive_cmds runs LD, not CC, wlarc should be empty
10477    wlarc='$wl'
10478
10479    # Set some defaults for GNU ld with shared library support. These
10480    # are reset later if shared libraries are not supported. Putting them
10481    # here allows them to be overridden if necessary.
10482    runpath_var=LD_RUN_PATH
10483    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10484    export_dynamic_flag_spec='$wl--export-dynamic'
10485    # ancient GNU ld didn't support --whole-archive et. al.
10486    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10487      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10488    else
10489      whole_archive_flag_spec=
10490    fi
10491    supports_anon_versioning=no
10492    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10493      *GNU\ gold*) supports_anon_versioning=yes ;;
10494      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10495      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10496      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10497      *\ 2.11.*) ;; # other 2.11 versions
10498      *) supports_anon_versioning=yes ;;
10499    esac
10500
10501    # See if GNU ld supports shared libraries.
10502    case $host_os in
10503    aix[3-9]*)
10504      # On AIX/PPC, the GNU linker is very broken
10505      if test ia64 != "$host_cpu"; then
10506	ld_shlibs=no
10507	cat <<_LT_EOF 1>&2
10508
10509*** Warning: the GNU linker, at least up to release 2.19, is reported
10510*** to be unable to reliably create shared libraries on AIX.
10511*** Therefore, libtool is disabling shared libraries support.  If you
10512*** really care for shared libraries, you may want to install binutils
10513*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10514*** You will then need to restart the configuration process.
10515
10516_LT_EOF
10517      fi
10518      ;;
10519
10520    amigaos*)
10521      case $host_cpu in
10522      powerpc)
10523            # see comment about AmigaOS4 .so support
10524            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10525            archive_expsym_cmds=''
10526        ;;
10527      m68k)
10528            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)'
10529            hardcode_libdir_flag_spec='-L$libdir'
10530            hardcode_minus_L=yes
10531        ;;
10532      esac
10533      ;;
10534
10535    beos*)
10536      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10537	allow_undefined_flag=unsupported
10538	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10539	# support --undefined.  This deserves some investigation.  FIXME
10540	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10541      else
10542	ld_shlibs=no
10543      fi
10544      ;;
10545
10546    cygwin* | mingw* | pw32* | cegcc*)
10547      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10548      # as there is no search path for DLLs.
10549      hardcode_libdir_flag_spec='-L$libdir'
10550      export_dynamic_flag_spec='$wl--export-all-symbols'
10551      allow_undefined_flag=unsupported
10552      always_export_symbols=no
10553      enable_shared_with_static_runtimes=yes
10554      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10555      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10556
10557      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10558        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10559	# If the export-symbols file already is a .def file, use it as
10560	# is; otherwise, prepend EXPORTS...
10561	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10562          cp $export_symbols $output_objdir/$soname.def;
10563        else
10564          echo EXPORTS > $output_objdir/$soname.def;
10565          cat $export_symbols >> $output_objdir/$soname.def;
10566        fi~
10567        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10568      else
10569	ld_shlibs=no
10570      fi
10571      ;;
10572
10573    haiku*)
10574      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10575      link_all_deplibs=yes
10576      ;;
10577
10578    os2*)
10579      hardcode_libdir_flag_spec='-L$libdir'
10580      hardcode_minus_L=yes
10581      allow_undefined_flag=unsupported
10582      shrext_cmds=.dll
10583      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10584	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10585	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10586	$ECHO EXPORTS >> $output_objdir/$libname.def~
10587	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10588	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10589	emximp -o $lib $output_objdir/$libname.def'
10590      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10591	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10592	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10593	$ECHO EXPORTS >> $output_objdir/$libname.def~
10594	prefix_cmds="$SED"~
10595	if test EXPORTS = "`$SED 1q $export_symbols`"; then
10596	  prefix_cmds="$prefix_cmds -e 1d";
10597	fi~
10598	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10599	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10600	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10601	emximp -o $lib $output_objdir/$libname.def'
10602      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10603      enable_shared_with_static_runtimes=yes
10604      ;;
10605
10606    interix[3-9]*)
10607      hardcode_direct=no
10608      hardcode_shlibpath_var=no
10609      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10610      export_dynamic_flag_spec='$wl-E'
10611      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10612      # Instead, shared libraries are loaded at an image base (0x10000000 by
10613      # default) and relocated if they conflict, which is a slow very memory
10614      # consuming and fragmenting process.  To avoid this, we pick a random,
10615      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10616      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10617      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10618      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'
10619      ;;
10620
10621    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10622      tmp_diet=no
10623      if test linux-dietlibc = "$host_os"; then
10624	case $cc_basename in
10625	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10626	esac
10627      fi
10628      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10629	 && test no = "$tmp_diet"
10630      then
10631	tmp_addflag=' $pic_flag'
10632	tmp_sharedflag='-shared'
10633	case $cc_basename,$host_cpu in
10634        pgcc*)				# Portland Group C compiler
10635	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10636	  tmp_addflag=' $pic_flag'
10637	  ;;
10638	pgf77* | pgf90* | pgf95* | pgfortran*)
10639					# Portland Group f77 and f90 compilers
10640	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10641	  tmp_addflag=' $pic_flag -Mnomain' ;;
10642	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10643	  tmp_addflag=' -i_dynamic' ;;
10644	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10645	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10646	ifc* | ifort*)			# Intel Fortran compiler
10647	  tmp_addflag=' -nofor_main' ;;
10648	lf95*)				# Lahey Fortran 8.1
10649	  whole_archive_flag_spec=
10650	  tmp_sharedflag='--shared' ;;
10651        nagfor*)                        # NAGFOR 5.3
10652          tmp_sharedflag='-Wl,-shared' ;;
10653	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10654	  tmp_sharedflag='-qmkshrobj'
10655	  tmp_addflag= ;;
10656	nvcc*)	# Cuda Compiler Driver 2.2
10657	  whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10658	  compiler_needs_object=yes
10659	  ;;
10660	esac
10661	case `$CC -V 2>&1 | sed 5q` in
10662	*Sun\ C*)			# Sun C 5.9
10663	  whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
10664	  compiler_needs_object=yes
10665	  tmp_sharedflag='-G' ;;
10666	*Sun\ F*)			# Sun Fortran 8.3
10667	  tmp_sharedflag='-G' ;;
10668	esac
10669	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10670
10671        if test yes = "$supports_anon_versioning"; then
10672          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10673            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10674            echo "local: *; };" >> $output_objdir/$libname.ver~
10675            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10676        fi
10677
10678	case $cc_basename in
10679	tcc*)
10680	  export_dynamic_flag_spec='-rdynamic'
10681	  ;;
10682	xlf* | bgf* | bgxlf* | mpixlf*)
10683	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10684	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10685	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10686	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10687	  if test yes = "$supports_anon_versioning"; then
10688	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10689              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10690              echo "local: *; };" >> $output_objdir/$libname.ver~
10691              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10692	  fi
10693	  ;;
10694	esac
10695      else
10696        ld_shlibs=no
10697      fi
10698      ;;
10699
10700    netbsd* | netbsdelf*-gnu)
10701      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10702	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10703	wlarc=
10704      else
10705	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10706	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10707      fi
10708      ;;
10709
10710    solaris*)
10711      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10712	ld_shlibs=no
10713	cat <<_LT_EOF 1>&2
10714
10715*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10716*** create shared libraries on Solaris systems.  Therefore, libtool
10717*** is disabling shared libraries support.  We urge you to upgrade GNU
10718*** binutils to release 2.9.1 or newer.  Another option is to modify
10719*** your PATH or compiler configuration so that the native linker is
10720*** used, and then restart.
10721
10722_LT_EOF
10723      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10724	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10725	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10726      else
10727	ld_shlibs=no
10728      fi
10729      ;;
10730
10731    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10732      case `$LD -v 2>&1` in
10733        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10734	ld_shlibs=no
10735	cat <<_LT_EOF 1>&2
10736
10737*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10738*** reliably create shared libraries on SCO systems.  Therefore, libtool
10739*** is disabling shared libraries support.  We urge you to upgrade GNU
10740*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10741*** your PATH or compiler configuration so that the native linker is
10742*** used, and then restart.
10743
10744_LT_EOF
10745	;;
10746	*)
10747	  # For security reasons, it is highly recommended that you always
10748	  # use absolute paths for naming shared libraries, and exclude the
10749	  # DT_RUNPATH tag from executables and libraries.  But doing so
10750	  # requires that you compile everything twice, which is a pain.
10751	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10752	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10753	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10754	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10755	  else
10756	    ld_shlibs=no
10757	  fi
10758	;;
10759      esac
10760      ;;
10761
10762    sunos4*)
10763      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10764      wlarc=
10765      hardcode_direct=yes
10766      hardcode_shlibpath_var=no
10767      ;;
10768
10769    *)
10770      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10771	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10772	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10773      else
10774	ld_shlibs=no
10775      fi
10776      ;;
10777    esac
10778
10779    if test no = "$ld_shlibs"; then
10780      runpath_var=
10781      hardcode_libdir_flag_spec=
10782      export_dynamic_flag_spec=
10783      whole_archive_flag_spec=
10784    fi
10785  else
10786    # PORTME fill in a description of your system's linker (not GNU ld)
10787    case $host_os in
10788    aix3*)
10789      allow_undefined_flag=unsupported
10790      always_export_symbols=yes
10791      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'
10792      # Note: this linker hardcodes the directories in LIBPATH if there
10793      # are no directories specified by -L.
10794      hardcode_minus_L=yes
10795      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10796	# Neither direct hardcoding nor static linking is supported with a
10797	# broken collect2.
10798	hardcode_direct=unsupported
10799      fi
10800      ;;
10801
10802    aix[4-9]*)
10803      if test ia64 = "$host_cpu"; then
10804	# On IA64, the linker does run time linking by default, so we don't
10805	# have to do anything special.
10806	aix_use_runtimelinking=no
10807	exp_sym_flag='-Bexport'
10808	no_entry_flag=
10809      else
10810	# If we're using GNU nm, then we don't want the "-C" option.
10811	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
10812	# Without the "-l" option, or with the "-B" option, AIX nm treats
10813	# weak defined symbols like other global defined symbols, whereas
10814	# GNU nm marks them as "W".
10815	# While the 'weak' keyword is ignored in the Export File, we need
10816	# it in the Import File for the 'aix-soname' feature, so we have
10817	# to replace the "-B" option with "-P" for AIX nm.
10818	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10819	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10820	else
10821	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10822	fi
10823	aix_use_runtimelinking=no
10824
10825	# Test if we are trying to use run time linking or normal
10826	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10827	# have runtime linking enabled, and use it for executables.
10828	# For shared libraries, we enable/disable runtime linking
10829	# depending on the kind of the shared library created -
10830	# when "with_aix_soname,aix_use_runtimelinking" is:
10831	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10832	# "aix,yes"  lib.so          shared, rtl:yes, for executables
10833	#            lib.a           static archive
10834	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
10835	#            lib.a(lib.so.V) shared, rtl:no,  for executables
10836	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10837	#            lib.a(lib.so.V) shared, rtl:no
10838	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10839	#            lib.a           static archive
10840	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10841	  for ld_flag in $LDFLAGS; do
10842	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10843	    aix_use_runtimelinking=yes
10844	    break
10845	  fi
10846	  done
10847	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10848	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
10849	    # so we don't have lib.a shared libs to link our executables.
10850	    # We have to force runtime linking in this case.
10851	    aix_use_runtimelinking=yes
10852	    LDFLAGS="$LDFLAGS -Wl,-brtl"
10853	  fi
10854	  ;;
10855	esac
10856
10857	exp_sym_flag='-bexport'
10858	no_entry_flag='-bnoentry'
10859      fi
10860
10861      # When large executables or shared objects are built, AIX ld can
10862      # have problems creating the table of contents.  If linking a library
10863      # or program results in "error TOC overflow" add -mminimal-toc to
10864      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10865      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10866
10867      archive_cmds=''
10868      hardcode_direct=yes
10869      hardcode_direct_absolute=yes
10870      hardcode_libdir_separator=':'
10871      link_all_deplibs=yes
10872      file_list_spec='$wl-f,'
10873      case $with_aix_soname,$aix_use_runtimelinking in
10874      aix,*) ;; # traditional, no import file
10875      svr4,* | *,yes) # use import file
10876	# The Import File defines what to hardcode.
10877	hardcode_direct=no
10878	hardcode_direct_absolute=no
10879	;;
10880      esac
10881
10882      if test yes = "$GCC"; then
10883	case $host_os in aix4.[012]|aix4.[012].*)
10884	# We only want to do this on AIX 4.2 and lower, the check
10885	# below for broken collect2 doesn't work under 4.3+
10886	  collect2name=`$CC -print-prog-name=collect2`
10887	  if test -f "$collect2name" &&
10888	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10889	  then
10890	  # We have reworked collect2
10891	  :
10892	  else
10893	  # We have old collect2
10894	  hardcode_direct=unsupported
10895	  # It fails to find uninstalled libraries when the uninstalled
10896	  # path is not listed in the libpath.  Setting hardcode_minus_L
10897	  # to unsupported forces relinking
10898	  hardcode_minus_L=yes
10899	  hardcode_libdir_flag_spec='-L$libdir'
10900	  hardcode_libdir_separator=
10901	  fi
10902	  ;;
10903	esac
10904	shared_flag='-shared'
10905	if test yes = "$aix_use_runtimelinking"; then
10906	  shared_flag="$shared_flag "'$wl-G'
10907	fi
10908	# Need to ensure runtime linking is disabled for the traditional
10909	# shared library, or the linker may eventually find shared libraries
10910	# /with/ Import File - we do not want to mix them.
10911	shared_flag_aix='-shared'
10912	shared_flag_svr4='-shared $wl-G'
10913      else
10914	# not using gcc
10915	if test ia64 = "$host_cpu"; then
10916	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10917	# chokes on -Wl,-G. The following line is correct:
10918	  shared_flag='-G'
10919	else
10920	  if test yes = "$aix_use_runtimelinking"; then
10921	    shared_flag='$wl-G'
10922	  else
10923	    shared_flag='$wl-bM:SRE'
10924	  fi
10925	  shared_flag_aix='$wl-bM:SRE'
10926	  shared_flag_svr4='$wl-G'
10927	fi
10928      fi
10929
10930      export_dynamic_flag_spec='$wl-bexpall'
10931      # It seems that -bexpall does not export symbols beginning with
10932      # underscore (_), so it is better to generate a list of symbols to export.
10933      always_export_symbols=yes
10934      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10935	# Warning - without using the other runtime loading flags (-brtl),
10936	# -berok will link without error, but may produce a broken library.
10937	allow_undefined_flag='-berok'
10938        # Determine the default libpath from the value encoded in an
10939        # empty executable.
10940        if test set = "${lt_cv_aix_libpath+set}"; then
10941  aix_libpath=$lt_cv_aix_libpath
10942else
10943  if test ${lt_cv_aix_libpath_+y}
10944then :
10945  printf %s "(cached) " >&6
10946else $as_nop
10947  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948/* end confdefs.h.  */
10949
10950int
10951main (void)
10952{
10953
10954  ;
10955  return 0;
10956}
10957_ACEOF
10958if ac_fn_c_try_link "$LINENO"
10959then :
10960
10961  lt_aix_libpath_sed='
10962      /Import File Strings/,/^$/ {
10963	  /^0/ {
10964	      s/^0  *\([^ ]*\) *$/\1/
10965	      p
10966	  }
10967      }'
10968  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10969  # Check for a 64-bit object if we didn't find anything.
10970  if test -z "$lt_cv_aix_libpath_"; then
10971    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10972  fi
10973fi
10974rm -f core conftest.err conftest.$ac_objext conftest.beam \
10975    conftest$ac_exeext conftest.$ac_ext
10976  if test -z "$lt_cv_aix_libpath_"; then
10977    lt_cv_aix_libpath_=/usr/lib:/lib
10978  fi
10979
10980fi
10981
10982  aix_libpath=$lt_cv_aix_libpath_
10983fi
10984
10985        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10986        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10987      else
10988	if test ia64 = "$host_cpu"; then
10989	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10990	  allow_undefined_flag="-z nodefs"
10991	  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"
10992	else
10993	 # Determine the default libpath from the value encoded in an
10994	 # empty executable.
10995	 if test set = "${lt_cv_aix_libpath+set}"; then
10996  aix_libpath=$lt_cv_aix_libpath
10997else
10998  if test ${lt_cv_aix_libpath_+y}
10999then :
11000  printf %s "(cached) " >&6
11001else $as_nop
11002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11003/* end confdefs.h.  */
11004
11005int
11006main (void)
11007{
11008
11009  ;
11010  return 0;
11011}
11012_ACEOF
11013if ac_fn_c_try_link "$LINENO"
11014then :
11015
11016  lt_aix_libpath_sed='
11017      /Import File Strings/,/^$/ {
11018	  /^0/ {
11019	      s/^0  *\([^ ]*\) *$/\1/
11020	      p
11021	  }
11022      }'
11023  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11024  # Check for a 64-bit object if we didn't find anything.
11025  if test -z "$lt_cv_aix_libpath_"; then
11026    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11027  fi
11028fi
11029rm -f core conftest.err conftest.$ac_objext conftest.beam \
11030    conftest$ac_exeext conftest.$ac_ext
11031  if test -z "$lt_cv_aix_libpath_"; then
11032    lt_cv_aix_libpath_=/usr/lib:/lib
11033  fi
11034
11035fi
11036
11037  aix_libpath=$lt_cv_aix_libpath_
11038fi
11039
11040	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11041	  # Warning - without using the other run time loading flags,
11042	  # -berok will link without error, but may produce a broken library.
11043	  no_undefined_flag=' $wl-bernotok'
11044	  allow_undefined_flag=' $wl-berok'
11045	  if test yes = "$with_gnu_ld"; then
11046	    # We only use this code for GNU lds that support --whole-archive.
11047	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11048	  else
11049	    # Exported symbols can be pulled into shared objects from archives
11050	    whole_archive_flag_spec='$convenience'
11051	  fi
11052	  archive_cmds_need_lc=yes
11053	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11054	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11055	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11056	  if test svr4 != "$with_aix_soname"; then
11057	    # This is similar to how AIX traditionally builds its shared libraries.
11058	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11059	  fi
11060	  if test aix != "$with_aix_soname"; then
11061	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11062	  else
11063	    # used by -dlpreopen to get the symbols
11064	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11065	  fi
11066	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11067	fi
11068      fi
11069      ;;
11070
11071    amigaos*)
11072      case $host_cpu in
11073      powerpc)
11074            # see comment about AmigaOS4 .so support
11075            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11076            archive_expsym_cmds=''
11077        ;;
11078      m68k)
11079            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)'
11080            hardcode_libdir_flag_spec='-L$libdir'
11081            hardcode_minus_L=yes
11082        ;;
11083      esac
11084      ;;
11085
11086    bsdi[45]*)
11087      export_dynamic_flag_spec=-rdynamic
11088      ;;
11089
11090    cygwin* | mingw* | pw32* | cegcc*)
11091      # When not using gcc, we currently assume that we are using
11092      # Microsoft Visual C++.
11093      # hardcode_libdir_flag_spec is actually meaningless, as there is
11094      # no search path for DLLs.
11095      case $cc_basename in
11096      cl*)
11097	# Native MSVC
11098	hardcode_libdir_flag_spec=' '
11099	allow_undefined_flag=unsupported
11100	always_export_symbols=yes
11101	file_list_spec='@'
11102	# Tell ltmain to make .lib files, not .a files.
11103	libext=lib
11104	# Tell ltmain to make .dll files, not .so files.
11105	shrext_cmds=.dll
11106	# FIXME: Setting linknames here is a bad hack.
11107	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11108	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11109            cp "$export_symbols" "$output_objdir/$soname.def";
11110            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11111          else
11112            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11113          fi~
11114          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11115          linknames='
11116	# The linker will not automatically build a static lib if we build a DLL.
11117	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11118	enable_shared_with_static_runtimes=yes
11119	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11120	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11121	# Don't use ranlib
11122	old_postinstall_cmds='chmod 644 $oldlib'
11123	postlink_cmds='lt_outputfile="@OUTPUT@"~
11124          lt_tool_outputfile="@TOOL_OUTPUT@"~
11125          case $lt_outputfile in
11126            *.exe|*.EXE) ;;
11127            *)
11128              lt_outputfile=$lt_outputfile.exe
11129              lt_tool_outputfile=$lt_tool_outputfile.exe
11130              ;;
11131          esac~
11132          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11133            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11134            $RM "$lt_outputfile.manifest";
11135          fi'
11136	;;
11137      *)
11138	# Assume MSVC wrapper
11139	hardcode_libdir_flag_spec=' '
11140	allow_undefined_flag=unsupported
11141	# Tell ltmain to make .lib files, not .a files.
11142	libext=lib
11143	# Tell ltmain to make .dll files, not .so files.
11144	shrext_cmds=.dll
11145	# FIXME: Setting linknames here is a bad hack.
11146	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11147	# The linker will automatically build a .lib file if we build a DLL.
11148	old_archive_from_new_cmds='true'
11149	# FIXME: Should let the user specify the lib program.
11150	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11151	enable_shared_with_static_runtimes=yes
11152	;;
11153      esac
11154      ;;
11155
11156    darwin* | rhapsody*)
11157
11158
11159  archive_cmds_need_lc=no
11160  hardcode_direct=no
11161  hardcode_automatic=yes
11162  hardcode_shlibpath_var=unsupported
11163  if test yes = "$lt_cv_ld_force_load"; then
11164    whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11165
11166  else
11167    whole_archive_flag_spec=''
11168  fi
11169  link_all_deplibs=yes
11170  allow_undefined_flag=$_lt_dar_allow_undefined
11171  case $cc_basename in
11172     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11173     *) _lt_dar_can_shared=$GCC ;;
11174  esac
11175  if test yes = "$_lt_dar_can_shared"; then
11176    output_verbose_link_cmd=func_echo_all
11177    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11178    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11179    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"
11180    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"
11181
11182  else
11183  ld_shlibs=no
11184  fi
11185
11186      ;;
11187
11188    dgux*)
11189      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11190      hardcode_libdir_flag_spec='-L$libdir'
11191      hardcode_shlibpath_var=no
11192      ;;
11193
11194    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11195    # support.  Future versions do this automatically, but an explicit c++rt0.o
11196    # does not break anything, and helps significantly (at the cost of a little
11197    # extra space).
11198    freebsd2.2*)
11199      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11200      hardcode_libdir_flag_spec='-R$libdir'
11201      hardcode_direct=yes
11202      hardcode_shlibpath_var=no
11203      ;;
11204
11205    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11206    freebsd2.*)
11207      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11208      hardcode_direct=yes
11209      hardcode_minus_L=yes
11210      hardcode_shlibpath_var=no
11211      ;;
11212
11213    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11214    freebsd* | dragonfly*)
11215      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11216      hardcode_libdir_flag_spec='-R$libdir'
11217      hardcode_direct=yes
11218      hardcode_shlibpath_var=no
11219      ;;
11220
11221    hpux9*)
11222      if test yes = "$GCC"; then
11223	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11224      else
11225	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11226      fi
11227      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11228      hardcode_libdir_separator=:
11229      hardcode_direct=yes
11230
11231      # hardcode_minus_L: Not really in the search PATH,
11232      # but as the default location of the library.
11233      hardcode_minus_L=yes
11234      export_dynamic_flag_spec='$wl-E'
11235      ;;
11236
11237    hpux10*)
11238      if test yes,no = "$GCC,$with_gnu_ld"; then
11239	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11240      else
11241	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11242      fi
11243      if test no = "$with_gnu_ld"; then
11244	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11245	hardcode_libdir_separator=:
11246	hardcode_direct=yes
11247	hardcode_direct_absolute=yes
11248	export_dynamic_flag_spec='$wl-E'
11249	# hardcode_minus_L: Not really in the search PATH,
11250	# but as the default location of the library.
11251	hardcode_minus_L=yes
11252      fi
11253      ;;
11254
11255    hpux11*)
11256      if test yes,no = "$GCC,$with_gnu_ld"; then
11257	case $host_cpu in
11258	hppa*64*)
11259	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11260	  ;;
11261	ia64*)
11262	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11263	  ;;
11264	*)
11265	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11266	  ;;
11267	esac
11268      else
11269	case $host_cpu in
11270	hppa*64*)
11271	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11272	  ;;
11273	ia64*)
11274	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11275	  ;;
11276	*)
11277
11278	  # Older versions of the 11.00 compiler do not understand -b yet
11279	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11280	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11281printf %s "checking if $CC understands -b... " >&6; }
11282if test ${lt_cv_prog_compiler__b+y}
11283then :
11284  printf %s "(cached) " >&6
11285else $as_nop
11286  lt_cv_prog_compiler__b=no
11287   save_LDFLAGS=$LDFLAGS
11288   LDFLAGS="$LDFLAGS -b"
11289   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11290   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11291     # The linker can only warn and ignore the option if not recognized
11292     # So say no if there are warnings
11293     if test -s conftest.err; then
11294       # Append any errors to the config.log.
11295       cat conftest.err 1>&5
11296       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11297       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11298       if diff conftest.exp conftest.er2 >/dev/null; then
11299         lt_cv_prog_compiler__b=yes
11300       fi
11301     else
11302       lt_cv_prog_compiler__b=yes
11303     fi
11304   fi
11305   $RM -r conftest*
11306   LDFLAGS=$save_LDFLAGS
11307
11308fi
11309{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11310printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11311
11312if test yes = "$lt_cv_prog_compiler__b"; then
11313    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11314else
11315    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11316fi
11317
11318	  ;;
11319	esac
11320      fi
11321      if test no = "$with_gnu_ld"; then
11322	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11323	hardcode_libdir_separator=:
11324
11325	case $host_cpu in
11326	hppa*64*|ia64*)
11327	  hardcode_direct=no
11328	  hardcode_shlibpath_var=no
11329	  ;;
11330	*)
11331	  hardcode_direct=yes
11332	  hardcode_direct_absolute=yes
11333	  export_dynamic_flag_spec='$wl-E'
11334
11335	  # hardcode_minus_L: Not really in the search PATH,
11336	  # but as the default location of the library.
11337	  hardcode_minus_L=yes
11338	  ;;
11339	esac
11340      fi
11341      ;;
11342
11343    irix5* | irix6* | nonstopux*)
11344      if test yes = "$GCC"; then
11345	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11346	# Try to use the -exported_symbol ld option, if it does not
11347	# work, assume that -exports_file does not work either and
11348	# implicitly export all symbols.
11349	# This should be the same for all languages, so no per-tag cache variable.
11350	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11351printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11352if test ${lt_cv_irix_exported_symbol+y}
11353then :
11354  printf %s "(cached) " >&6
11355else $as_nop
11356  save_LDFLAGS=$LDFLAGS
11357	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11358	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359/* end confdefs.h.  */
11360int foo (void) { return 0; }
11361_ACEOF
11362if ac_fn_c_try_link "$LINENO"
11363then :
11364  lt_cv_irix_exported_symbol=yes
11365else $as_nop
11366  lt_cv_irix_exported_symbol=no
11367fi
11368rm -f core conftest.err conftest.$ac_objext conftest.beam \
11369    conftest$ac_exeext conftest.$ac_ext
11370           LDFLAGS=$save_LDFLAGS
11371fi
11372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11373printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11374	if test yes = "$lt_cv_irix_exported_symbol"; then
11375          archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
11376	fi
11377	link_all_deplibs=no
11378      else
11379	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11380	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
11381      fi
11382      archive_cmds_need_lc='no'
11383      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11384      hardcode_libdir_separator=:
11385      inherit_rpath=yes
11386      link_all_deplibs=yes
11387      ;;
11388
11389    linux*)
11390      case $cc_basename in
11391      tcc*)
11392	# Fabrice Bellard et al's Tiny C Compiler
11393	ld_shlibs=yes
11394	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11395	;;
11396      esac
11397      ;;
11398
11399    netbsd* | netbsdelf*-gnu)
11400      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11401	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11402      else
11403	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11404      fi
11405      hardcode_libdir_flag_spec='-R$libdir'
11406      hardcode_direct=yes
11407      hardcode_shlibpath_var=no
11408      ;;
11409
11410    newsos6)
11411      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11412      hardcode_direct=yes
11413      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11414      hardcode_libdir_separator=:
11415      hardcode_shlibpath_var=no
11416      ;;
11417
11418    *nto* | *qnx*)
11419      ;;
11420
11421    openbsd* | bitrig*)
11422      if test -f /usr/libexec/ld.so; then
11423	hardcode_direct=yes
11424	hardcode_shlibpath_var=no
11425	hardcode_direct_absolute=yes
11426	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11427	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11428	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11429	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11430	  export_dynamic_flag_spec='$wl-E'
11431	else
11432	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11433	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11434	fi
11435      else
11436	ld_shlibs=no
11437      fi
11438      ;;
11439
11440    os2*)
11441      hardcode_libdir_flag_spec='-L$libdir'
11442      hardcode_minus_L=yes
11443      allow_undefined_flag=unsupported
11444      shrext_cmds=.dll
11445      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11446	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11447	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11448	$ECHO EXPORTS >> $output_objdir/$libname.def~
11449	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11450	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11451	emximp -o $lib $output_objdir/$libname.def'
11452      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11453	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11454	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11455	$ECHO EXPORTS >> $output_objdir/$libname.def~
11456	prefix_cmds="$SED"~
11457	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11458	  prefix_cmds="$prefix_cmds -e 1d";
11459	fi~
11460	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11461	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11462	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11463	emximp -o $lib $output_objdir/$libname.def'
11464      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11465      enable_shared_with_static_runtimes=yes
11466      ;;
11467
11468    osf3*)
11469      if test yes = "$GCC"; then
11470	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11471	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11472      else
11473	allow_undefined_flag=' -expect_unresolved \*'
11474	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11475      fi
11476      archive_cmds_need_lc='no'
11477      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11478      hardcode_libdir_separator=:
11479      ;;
11480
11481    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11482      if test yes = "$GCC"; then
11483	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11484	archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
11485	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11486      else
11487	allow_undefined_flag=' -expect_unresolved \*'
11488	archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
11489	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~
11490          $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
11491
11492	# Both c and cxx compiler support -rpath directly
11493	hardcode_libdir_flag_spec='-rpath $libdir'
11494      fi
11495      archive_cmds_need_lc='no'
11496      hardcode_libdir_separator=:
11497      ;;
11498
11499    solaris*)
11500      no_undefined_flag=' -z defs'
11501      if test yes = "$GCC"; then
11502	wlarc='$wl'
11503	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11504	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11505          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11506      else
11507	case `$CC -V 2>&1` in
11508	*"Compilers 5.0"*)
11509	  wlarc=''
11510	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11511	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11512            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11513	  ;;
11514	*)
11515	  wlarc='$wl'
11516	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11517	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11518            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11519	  ;;
11520	esac
11521      fi
11522      hardcode_libdir_flag_spec='-R$libdir'
11523      hardcode_shlibpath_var=no
11524      case $host_os in
11525      solaris2.[0-5] | solaris2.[0-5].*) ;;
11526      *)
11527	# The compiler driver will combine and reorder linker options,
11528	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11529	# but is careful enough not to reorder.
11530	# Supported since Solaris 2.6 (maybe 2.5.1?)
11531	if test yes = "$GCC"; then
11532	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11533	else
11534	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11535	fi
11536	;;
11537      esac
11538      link_all_deplibs=yes
11539      ;;
11540
11541    sunos4*)
11542      if test sequent = "$host_vendor"; then
11543	# Use $CC to link under sequent, because it throws in some extra .o
11544	# files that make .init and .fini sections work.
11545	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11546      else
11547	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11548      fi
11549      hardcode_libdir_flag_spec='-L$libdir'
11550      hardcode_direct=yes
11551      hardcode_minus_L=yes
11552      hardcode_shlibpath_var=no
11553      ;;
11554
11555    sysv4)
11556      case $host_vendor in
11557	sni)
11558	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11559	  hardcode_direct=yes # is this really true???
11560	;;
11561	siemens)
11562	  ## LD is ld it makes a PLAMLIB
11563	  ## CC just makes a GrossModule.
11564	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11565	  reload_cmds='$CC -r -o $output$reload_objs'
11566	  hardcode_direct=no
11567        ;;
11568	motorola)
11569	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11570	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11571	;;
11572      esac
11573      runpath_var='LD_RUN_PATH'
11574      hardcode_shlibpath_var=no
11575      ;;
11576
11577    sysv4.3*)
11578      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11579      hardcode_shlibpath_var=no
11580      export_dynamic_flag_spec='-Bexport'
11581      ;;
11582
11583    sysv4*MP*)
11584      if test -d /usr/nec; then
11585	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11586	hardcode_shlibpath_var=no
11587	runpath_var=LD_RUN_PATH
11588	hardcode_runpath_var=yes
11589	ld_shlibs=yes
11590      fi
11591      ;;
11592
11593    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11594      no_undefined_flag='$wl-z,text'
11595      archive_cmds_need_lc=no
11596      hardcode_shlibpath_var=no
11597      runpath_var='LD_RUN_PATH'
11598
11599      if test yes = "$GCC"; then
11600	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11601	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11602      else
11603	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11604	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11605      fi
11606      ;;
11607
11608    sysv5* | sco3.2v5* | sco5v6*)
11609      # Note: We CANNOT use -z defs as we might desire, because we do not
11610      # link with -lc, and that would cause any symbols used from libc to
11611      # always be unresolved, which means just about no library would
11612      # ever link correctly.  If we're not using GNU ld we use -z text
11613      # though, which does catch some bad symbols but isn't as heavy-handed
11614      # as -z defs.
11615      no_undefined_flag='$wl-z,text'
11616      allow_undefined_flag='$wl-z,nodefs'
11617      archive_cmds_need_lc=no
11618      hardcode_shlibpath_var=no
11619      hardcode_libdir_flag_spec='$wl-R,$libdir'
11620      hardcode_libdir_separator=':'
11621      link_all_deplibs=yes
11622      export_dynamic_flag_spec='$wl-Bexport'
11623      runpath_var='LD_RUN_PATH'
11624
11625      if test yes = "$GCC"; then
11626	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11627	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11628      else
11629	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11630	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11631      fi
11632      ;;
11633
11634    uts4*)
11635      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11636      hardcode_libdir_flag_spec='-L$libdir'
11637      hardcode_shlibpath_var=no
11638      ;;
11639
11640    *)
11641      ld_shlibs=no
11642      ;;
11643    esac
11644
11645    if test sni = "$host_vendor"; then
11646      case $host in
11647      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11648	export_dynamic_flag_spec='$wl-Blargedynsym'
11649	;;
11650      esac
11651    fi
11652  fi
11653
11654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11655printf "%s\n" "$ld_shlibs" >&6; }
11656test no = "$ld_shlibs" && can_build_shared=no
11657
11658with_gnu_ld=$with_gnu_ld
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674#
11675# Do we need to explicitly link libc?
11676#
11677case "x$archive_cmds_need_lc" in
11678x|xyes)
11679  # Assume -lc should be added
11680  archive_cmds_need_lc=yes
11681
11682  if test yes,yes = "$GCC,$enable_shared"; then
11683    case $archive_cmds in
11684    *'~'*)
11685      # FIXME: we may have to deal with multi-command sequences.
11686      ;;
11687    '$CC '*)
11688      # Test whether the compiler implicitly links with -lc since on some
11689      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11690      # to ld, don't add -lc before -lgcc.
11691      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11692printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11693if test ${lt_cv_archive_cmds_need_lc+y}
11694then :
11695  printf %s "(cached) " >&6
11696else $as_nop
11697  $RM conftest*
11698	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11699
11700	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11701  (eval $ac_compile) 2>&5
11702  ac_status=$?
11703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11704  test $ac_status = 0; } 2>conftest.err; then
11705	  soname=conftest
11706	  lib=conftest
11707	  libobjs=conftest.$ac_objext
11708	  deplibs=
11709	  wl=$lt_prog_compiler_wl
11710	  pic_flag=$lt_prog_compiler_pic
11711	  compiler_flags=-v
11712	  linker_flags=-v
11713	  verstring=
11714	  output_objdir=.
11715	  libname=conftest
11716	  lt_save_allow_undefined_flag=$allow_undefined_flag
11717	  allow_undefined_flag=
11718	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11719  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11720  ac_status=$?
11721  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11722  test $ac_status = 0; }
11723	  then
11724	    lt_cv_archive_cmds_need_lc=no
11725	  else
11726	    lt_cv_archive_cmds_need_lc=yes
11727	  fi
11728	  allow_undefined_flag=$lt_save_allow_undefined_flag
11729	else
11730	  cat conftest.err 1>&5
11731	fi
11732	$RM conftest*
11733
11734fi
11735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11736printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11737      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11738      ;;
11739    esac
11740  fi
11741  ;;
11742esac
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11896printf %s "checking dynamic linker characteristics... " >&6; }
11897
11898if test yes = "$GCC"; then
11899  case $host_os in
11900    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11901    *) lt_awk_arg='/^libraries:/' ;;
11902  esac
11903  case $host_os in
11904    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11905    *) lt_sed_strip_eq='s|=/|/|g' ;;
11906  esac
11907  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11908  case $lt_search_path_spec in
11909  *\;*)
11910    # if the path contains ";" then we assume it to be the separator
11911    # otherwise default to the standard path separator (i.e. ":") - it is
11912    # assumed that no part of a normal pathname contains ";" but that should
11913    # okay in the real world where ";" in dirpaths is itself problematic.
11914    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11915    ;;
11916  *)
11917    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11918    ;;
11919  esac
11920  # Ok, now we have the path, separated by spaces, we can step through it
11921  # and add multilib dir if necessary...
11922  lt_tmp_lt_search_path_spec=
11923  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11924  # ...but if some path component already ends with the multilib dir we assume
11925  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11926  case "$lt_multi_os_dir; $lt_search_path_spec " in
11927  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11928    lt_multi_os_dir=
11929    ;;
11930  esac
11931  for lt_sys_path in $lt_search_path_spec; do
11932    if test -d "$lt_sys_path$lt_multi_os_dir"; then
11933      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11934    elif test -n "$lt_multi_os_dir"; then
11935      test -d "$lt_sys_path" && \
11936	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11937    fi
11938  done
11939  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11940BEGIN {RS = " "; FS = "/|\n";} {
11941  lt_foo = "";
11942  lt_count = 0;
11943  for (lt_i = NF; lt_i > 0; lt_i--) {
11944    if ($lt_i != "" && $lt_i != ".") {
11945      if ($lt_i == "..") {
11946        lt_count++;
11947      } else {
11948        if (lt_count == 0) {
11949          lt_foo = "/" $lt_i lt_foo;
11950        } else {
11951          lt_count--;
11952        }
11953      }
11954    }
11955  }
11956  if (lt_foo != "") { lt_freq[lt_foo]++; }
11957  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11958}'`
11959  # AWK program above erroneously prepends '/' to C:/dos/paths
11960  # for these hosts.
11961  case $host_os in
11962    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11963      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11964  esac
11965  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11966else
11967  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11968fi
11969library_names_spec=
11970libname_spec='lib$name'
11971soname_spec=
11972shrext_cmds=.so
11973postinstall_cmds=
11974postuninstall_cmds=
11975finish_cmds=
11976finish_eval=
11977shlibpath_var=
11978shlibpath_overrides_runpath=unknown
11979version_type=none
11980dynamic_linker="$host_os ld.so"
11981sys_lib_dlsearch_path_spec="/lib /usr/lib"
11982need_lib_prefix=unknown
11983hardcode_into_libs=no
11984
11985# when you set need_version to no, make sure it does not cause -set_version
11986# flags to be left without arguments
11987need_version=unknown
11988
11989
11990
11991case $host_os in
11992aix3*)
11993  version_type=linux # correct to gnu/linux during the next big refactor
11994  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11995  shlibpath_var=LIBPATH
11996
11997  # AIX 3 has no versioning support, so we append a major version to the name.
11998  soname_spec='$libname$release$shared_ext$major'
11999  ;;
12000
12001aix[4-9]*)
12002  version_type=linux # correct to gnu/linux during the next big refactor
12003  need_lib_prefix=no
12004  need_version=no
12005  hardcode_into_libs=yes
12006  if test ia64 = "$host_cpu"; then
12007    # AIX 5 supports IA64
12008    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12009    shlibpath_var=LD_LIBRARY_PATH
12010  else
12011    # With GCC up to 2.95.x, collect2 would create an import file
12012    # for dependence libraries.  The import file would start with
12013    # the line '#! .'.  This would cause the generated library to
12014    # depend on '.', always an invalid library.  This was fixed in
12015    # development snapshots of GCC prior to 3.0.
12016    case $host_os in
12017      aix4 | aix4.[01] | aix4.[01].*)
12018      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12019	   echo ' yes '
12020	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12021	:
12022      else
12023	can_build_shared=no
12024      fi
12025      ;;
12026    esac
12027    # Using Import Files as archive members, it is possible to support
12028    # filename-based versioning of shared library archives on AIX. While
12029    # this would work for both with and without runtime linking, it will
12030    # prevent static linking of such archives. So we do filename-based
12031    # shared library versioning with .so extension only, which is used
12032    # when both runtime linking and shared linking is enabled.
12033    # Unfortunately, runtime linking may impact performance, so we do
12034    # not want this to be the default eventually. Also, we use the
12035    # versioned .so libs for executables only if there is the -brtl
12036    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12037    # To allow for filename-based versioning support, we need to create
12038    # libNAME.so.V as an archive file, containing:
12039    # *) an Import File, referring to the versioned filename of the
12040    #    archive as well as the shared archive member, telling the
12041    #    bitwidth (32 or 64) of that shared object, and providing the
12042    #    list of exported symbols of that shared object, eventually
12043    #    decorated with the 'weak' keyword
12044    # *) the shared object with the F_LOADONLY flag set, to really avoid
12045    #    it being seen by the linker.
12046    # At run time we better use the real file rather than another symlink,
12047    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12048
12049    case $with_aix_soname,$aix_use_runtimelinking in
12050    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12051    # soname into executable. Probably we can add versioning support to
12052    # collect2, so additional links can be useful in future.
12053    aix,yes) # traditional libtool
12054      dynamic_linker='AIX unversionable lib.so'
12055      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12056      # instead of lib<name>.a to let people know that these are not
12057      # typical AIX shared libraries.
12058      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059      ;;
12060    aix,no) # traditional AIX only
12061      dynamic_linker='AIX lib.a(lib.so.V)'
12062      # We preserve .a as extension for shared libraries through AIX4.2
12063      # and later when we are not doing run time linking.
12064      library_names_spec='$libname$release.a $libname.a'
12065      soname_spec='$libname$release$shared_ext$major'
12066      ;;
12067    svr4,*) # full svr4 only
12068      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12069      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12070      # We do not specify a path in Import Files, so LIBPATH fires.
12071      shlibpath_overrides_runpath=yes
12072      ;;
12073    *,yes) # both, prefer svr4
12074      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12075      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12076      # unpreferred sharedlib libNAME.a needs extra handling
12077      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12078      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12079      # We do not specify a path in Import Files, so LIBPATH fires.
12080      shlibpath_overrides_runpath=yes
12081      ;;
12082    *,no) # both, prefer aix
12083      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12084      library_names_spec='$libname$release.a $libname.a'
12085      soname_spec='$libname$release$shared_ext$major'
12086      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12087      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12088      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12089      ;;
12090    esac
12091    shlibpath_var=LIBPATH
12092  fi
12093  ;;
12094
12095amigaos*)
12096  case $host_cpu in
12097  powerpc)
12098    # Since July 2007 AmigaOS4 officially supports .so libraries.
12099    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12100    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12101    ;;
12102  m68k)
12103    library_names_spec='$libname.ixlibrary $libname.a'
12104    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12105    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12106    ;;
12107  esac
12108  ;;
12109
12110beos*)
12111  library_names_spec='$libname$shared_ext'
12112  dynamic_linker="$host_os ld.so"
12113  shlibpath_var=LIBRARY_PATH
12114  ;;
12115
12116bsdi[45]*)
12117  version_type=linux # correct to gnu/linux during the next big refactor
12118  need_version=no
12119  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12120  soname_spec='$libname$release$shared_ext$major'
12121  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12122  shlibpath_var=LD_LIBRARY_PATH
12123  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12124  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12125  # the default ld.so.conf also contains /usr/contrib/lib and
12126  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12127  # libtool to hard-code these into programs
12128  ;;
12129
12130cygwin* | mingw* | pw32* | cegcc*)
12131  version_type=windows
12132  shrext_cmds=.dll
12133  need_version=no
12134  need_lib_prefix=no
12135
12136  case $GCC,$cc_basename in
12137  yes,*)
12138    # gcc
12139    library_names_spec='$libname.dll.a'
12140    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12141    postinstall_cmds='base_file=`basename \$file`~
12142      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12143      dldir=$destdir/`dirname \$dlpath`~
12144      test -d \$dldir || mkdir -p \$dldir~
12145      $install_prog $dir/$dlname \$dldir/$dlname~
12146      chmod a+x \$dldir/$dlname~
12147      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12148        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12149      fi'
12150    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12151      dlpath=$dir/\$dldll~
12152       $RM \$dlpath'
12153    shlibpath_overrides_runpath=yes
12154
12155    case $host_os in
12156    cygwin*)
12157      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12158      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12159
12160      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12161      ;;
12162    mingw* | cegcc*)
12163      # MinGW DLLs use traditional 'lib' prefix
12164      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12165      ;;
12166    pw32*)
12167      # pw32 DLLs use 'pw' prefix rather than 'lib'
12168      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12169      ;;
12170    esac
12171    dynamic_linker='Win32 ld.exe'
12172    ;;
12173
12174  *,cl*)
12175    # Native MSVC
12176    libname_spec='$name'
12177    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12178    library_names_spec='$libname.dll.lib'
12179
12180    case $build_os in
12181    mingw*)
12182      sys_lib_search_path_spec=
12183      lt_save_ifs=$IFS
12184      IFS=';'
12185      for lt_path in $LIB
12186      do
12187        IFS=$lt_save_ifs
12188        # Let DOS variable expansion print the short 8.3 style file name.
12189        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12190        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12191      done
12192      IFS=$lt_save_ifs
12193      # Convert to MSYS style.
12194      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12195      ;;
12196    cygwin*)
12197      # Convert to unix form, then to dos form, then back to unix form
12198      # but this time dos style (no spaces!) so that the unix form looks
12199      # like /cygdrive/c/PROGRA~1:/cygdr...
12200      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12201      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12202      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12203      ;;
12204    *)
12205      sys_lib_search_path_spec=$LIB
12206      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12207        # It is most probably a Windows format PATH.
12208        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12209      else
12210        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12211      fi
12212      # FIXME: find the short name or the path components, as spaces are
12213      # common. (e.g. "Program Files" -> "PROGRA~1")
12214      ;;
12215    esac
12216
12217    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12218    postinstall_cmds='base_file=`basename \$file`~
12219      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12220      dldir=$destdir/`dirname \$dlpath`~
12221      test -d \$dldir || mkdir -p \$dldir~
12222      $install_prog $dir/$dlname \$dldir/$dlname'
12223    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12224      dlpath=$dir/\$dldll~
12225       $RM \$dlpath'
12226    shlibpath_overrides_runpath=yes
12227    dynamic_linker='Win32 link.exe'
12228    ;;
12229
12230  *)
12231    # Assume MSVC wrapper
12232    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12233    dynamic_linker='Win32 ld.exe'
12234    ;;
12235  esac
12236  # FIXME: first we should search . and the directory the executable is in
12237  shlibpath_var=PATH
12238  ;;
12239
12240darwin* | rhapsody*)
12241  dynamic_linker="$host_os dyld"
12242  version_type=darwin
12243  need_lib_prefix=no
12244  need_version=no
12245  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12246  soname_spec='$libname$release$major$shared_ext'
12247  shlibpath_overrides_runpath=yes
12248  shlibpath_var=DYLD_LIBRARY_PATH
12249  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12250
12251  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12252  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12253  ;;
12254
12255dgux*)
12256  version_type=linux # correct to gnu/linux during the next big refactor
12257  need_lib_prefix=no
12258  need_version=no
12259  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12260  soname_spec='$libname$release$shared_ext$major'
12261  shlibpath_var=LD_LIBRARY_PATH
12262  ;;
12263
12264freebsd* | dragonfly*)
12265  # DragonFly does not have aout.  When/if they implement a new
12266  # versioning mechanism, adjust this.
12267  if test -x /usr/bin/objformat; then
12268    objformat=`/usr/bin/objformat`
12269  else
12270    case $host_os in
12271    freebsd[23].*) objformat=aout ;;
12272    *) objformat=elf ;;
12273    esac
12274  fi
12275  version_type=freebsd-$objformat
12276  case $version_type in
12277    freebsd-elf*)
12278      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12279      soname_spec='$libname$release$shared_ext$major'
12280      need_version=no
12281      need_lib_prefix=no
12282      ;;
12283    freebsd-*)
12284      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12285      need_version=yes
12286      ;;
12287  esac
12288  shlibpath_var=LD_LIBRARY_PATH
12289  case $host_os in
12290  freebsd2.*)
12291    shlibpath_overrides_runpath=yes
12292    ;;
12293  freebsd3.[01]* | freebsdelf3.[01]*)
12294    shlibpath_overrides_runpath=yes
12295    hardcode_into_libs=yes
12296    ;;
12297  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12298  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12299    shlibpath_overrides_runpath=no
12300    hardcode_into_libs=yes
12301    ;;
12302  *) # from 4.6 on, and DragonFly
12303    shlibpath_overrides_runpath=yes
12304    hardcode_into_libs=yes
12305    ;;
12306  esac
12307  ;;
12308
12309haiku*)
12310  version_type=linux # correct to gnu/linux during the next big refactor
12311  need_lib_prefix=no
12312  need_version=no
12313  dynamic_linker="$host_os runtime_loader"
12314  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12315  soname_spec='$libname$release$shared_ext$major'
12316  shlibpath_var=LIBRARY_PATH
12317  shlibpath_overrides_runpath=no
12318  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12319  hardcode_into_libs=yes
12320  ;;
12321
12322hpux9* | hpux10* | hpux11*)
12323  # Give a soname corresponding to the major version so that dld.sl refuses to
12324  # link against other versions.
12325  version_type=sunos
12326  need_lib_prefix=no
12327  need_version=no
12328  case $host_cpu in
12329  ia64*)
12330    shrext_cmds='.so'
12331    hardcode_into_libs=yes
12332    dynamic_linker="$host_os dld.so"
12333    shlibpath_var=LD_LIBRARY_PATH
12334    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12335    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12336    soname_spec='$libname$release$shared_ext$major'
12337    if test 32 = "$HPUX_IA64_MODE"; then
12338      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12339      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12340    else
12341      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12342      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12343    fi
12344    ;;
12345  hppa*64*)
12346    shrext_cmds='.sl'
12347    hardcode_into_libs=yes
12348    dynamic_linker="$host_os dld.sl"
12349    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12350    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12351    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12352    soname_spec='$libname$release$shared_ext$major'
12353    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12354    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12355    ;;
12356  *)
12357    shrext_cmds='.sl'
12358    dynamic_linker="$host_os dld.sl"
12359    shlibpath_var=SHLIB_PATH
12360    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12361    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12362    soname_spec='$libname$release$shared_ext$major'
12363    ;;
12364  esac
12365  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12366  postinstall_cmds='chmod 555 $lib'
12367  # or fails outright, so override atomically:
12368  install_override_mode=555
12369  ;;
12370
12371interix[3-9]*)
12372  version_type=linux # correct to gnu/linux during the next big refactor
12373  need_lib_prefix=no
12374  need_version=no
12375  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12376  soname_spec='$libname$release$shared_ext$major'
12377  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12378  shlibpath_var=LD_LIBRARY_PATH
12379  shlibpath_overrides_runpath=no
12380  hardcode_into_libs=yes
12381  ;;
12382
12383irix5* | irix6* | nonstopux*)
12384  case $host_os in
12385    nonstopux*) version_type=nonstopux ;;
12386    *)
12387	if test yes = "$lt_cv_prog_gnu_ld"; then
12388		version_type=linux # correct to gnu/linux during the next big refactor
12389	else
12390		version_type=irix
12391	fi ;;
12392  esac
12393  need_lib_prefix=no
12394  need_version=no
12395  soname_spec='$libname$release$shared_ext$major'
12396  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12397  case $host_os in
12398  irix5* | nonstopux*)
12399    libsuff= shlibsuff=
12400    ;;
12401  *)
12402    case $LD in # libtool.m4 will add one of these switches to LD
12403    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12404      libsuff= shlibsuff= libmagic=32-bit;;
12405    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12406      libsuff=32 shlibsuff=N32 libmagic=N32;;
12407    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12408      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12409    *) libsuff= shlibsuff= libmagic=never-match;;
12410    esac
12411    ;;
12412  esac
12413  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12414  shlibpath_overrides_runpath=no
12415  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12416  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12417  hardcode_into_libs=yes
12418  ;;
12419
12420# No shared lib support for Linux oldld, aout, or coff.
12421linux*oldld* | linux*aout* | linux*coff*)
12422  dynamic_linker=no
12423  ;;
12424
12425linux*android*)
12426  version_type=none # Android doesn't support versioned libraries.
12427  need_lib_prefix=no
12428  need_version=no
12429  library_names_spec='$libname$release$shared_ext'
12430  soname_spec='$libname$release$shared_ext'
12431  finish_cmds=
12432  shlibpath_var=LD_LIBRARY_PATH
12433  shlibpath_overrides_runpath=yes
12434
12435  # This implies no fast_install, which is unacceptable.
12436  # Some rework will be needed to allow for fast_install
12437  # before this can be enabled.
12438  hardcode_into_libs=yes
12439
12440  dynamic_linker='Android linker'
12441  # Don't embed -rpath directories since the linker doesn't support them.
12442  hardcode_libdir_flag_spec='-L$libdir'
12443  ;;
12444
12445# This must be glibc/ELF.
12446linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12447  version_type=linux # correct to gnu/linux during the next big refactor
12448  need_lib_prefix=no
12449  need_version=no
12450  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12451  soname_spec='$libname$release$shared_ext$major'
12452  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12453  shlibpath_var=LD_LIBRARY_PATH
12454  shlibpath_overrides_runpath=no
12455
12456  # Some binutils ld are patched to set DT_RUNPATH
12457  if test ${lt_cv_shlibpath_overrides_runpath+y}
12458then :
12459  printf %s "(cached) " >&6
12460else $as_nop
12461  lt_cv_shlibpath_overrides_runpath=no
12462    save_LDFLAGS=$LDFLAGS
12463    save_libdir=$libdir
12464    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12465	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12466    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12467/* end confdefs.h.  */
12468
12469int
12470main (void)
12471{
12472
12473  ;
12474  return 0;
12475}
12476_ACEOF
12477if ac_fn_c_try_link "$LINENO"
12478then :
12479  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12480then :
12481  lt_cv_shlibpath_overrides_runpath=yes
12482fi
12483fi
12484rm -f core conftest.err conftest.$ac_objext conftest.beam \
12485    conftest$ac_exeext conftest.$ac_ext
12486    LDFLAGS=$save_LDFLAGS
12487    libdir=$save_libdir
12488
12489fi
12490
12491  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12492
12493  # This implies no fast_install, which is unacceptable.
12494  # Some rework will be needed to allow for fast_install
12495  # before this can be enabled.
12496  hardcode_into_libs=yes
12497
12498  # Ideally, we could use ldconfig to report *all* directores which are
12499  # searched for libraries, however this is still not possible.  Aside from not
12500  # being certain /sbin/ldconfig is available, command
12501  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12502  # even though it is searched at run-time.  Try to do the best guess by
12503  # appending ld.so.conf contents (and includes) to the search path.
12504  if test -f /etc/ld.so.conf; then
12505    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[	 ]*hwcap[	 ]/d;s/[:,	]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12506    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12507  fi
12508
12509  # We used to test for /lib/ld.so.1 and disable shared libraries on
12510  # powerpc, because MkLinux only supported shared libraries with the
12511  # GNU dynamic linker.  Since this was broken with cross compilers,
12512  # most powerpc-linux boxes support dynamic linking these days and
12513  # people can always --disable-shared, the test was removed, and we
12514  # assume the GNU/Linux dynamic linker is in use.
12515  dynamic_linker='GNU/Linux ld.so'
12516  ;;
12517
12518netbsdelf*-gnu)
12519  version_type=linux
12520  need_lib_prefix=no
12521  need_version=no
12522  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12523  soname_spec='${libname}${release}${shared_ext}$major'
12524  shlibpath_var=LD_LIBRARY_PATH
12525  shlibpath_overrides_runpath=no
12526  hardcode_into_libs=yes
12527  dynamic_linker='NetBSD ld.elf_so'
12528  ;;
12529
12530netbsd*)
12531  version_type=sunos
12532  need_lib_prefix=no
12533  need_version=no
12534  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12535    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12536    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12537    dynamic_linker='NetBSD (a.out) ld.so'
12538  else
12539    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12540    soname_spec='$libname$release$shared_ext$major'
12541    dynamic_linker='NetBSD ld.elf_so'
12542  fi
12543  shlibpath_var=LD_LIBRARY_PATH
12544  shlibpath_overrides_runpath=yes
12545  hardcode_into_libs=yes
12546  ;;
12547
12548newsos6)
12549  version_type=linux # correct to gnu/linux during the next big refactor
12550  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12551  shlibpath_var=LD_LIBRARY_PATH
12552  shlibpath_overrides_runpath=yes
12553  ;;
12554
12555*nto* | *qnx*)
12556  version_type=qnx
12557  need_lib_prefix=no
12558  need_version=no
12559  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12560  soname_spec='$libname$release$shared_ext$major'
12561  shlibpath_var=LD_LIBRARY_PATH
12562  shlibpath_overrides_runpath=no
12563  hardcode_into_libs=yes
12564  dynamic_linker='ldqnx.so'
12565  ;;
12566
12567openbsd* | bitrig*)
12568  version_type=sunos
12569  sys_lib_dlsearch_path_spec=/usr/lib
12570  need_lib_prefix=no
12571  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12572    need_version=no
12573  else
12574    need_version=yes
12575  fi
12576  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12577  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12578  shlibpath_var=LD_LIBRARY_PATH
12579  shlibpath_overrides_runpath=yes
12580  ;;
12581
12582os2*)
12583  libname_spec='$name'
12584  version_type=windows
12585  shrext_cmds=.dll
12586  need_version=no
12587  need_lib_prefix=no
12588  # OS/2 can only load a DLL with a base name of 8 characters or less.
12589  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12590    v=$($ECHO $release$versuffix | tr -d .-);
12591    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12592    $ECHO $n$v`$shared_ext'
12593  library_names_spec='${libname}_dll.$libext'
12594  dynamic_linker='OS/2 ld.exe'
12595  shlibpath_var=BEGINLIBPATH
12596  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12597  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12598  postinstall_cmds='base_file=`basename \$file`~
12599    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12600    dldir=$destdir/`dirname \$dlpath`~
12601    test -d \$dldir || mkdir -p \$dldir~
12602    $install_prog $dir/$dlname \$dldir/$dlname~
12603    chmod a+x \$dldir/$dlname~
12604    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12605      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12606    fi'
12607  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12608    dlpath=$dir/\$dldll~
12609    $RM \$dlpath'
12610  ;;
12611
12612osf3* | osf4* | osf5*)
12613  version_type=osf
12614  need_lib_prefix=no
12615  need_version=no
12616  soname_spec='$libname$release$shared_ext$major'
12617  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12618  shlibpath_var=LD_LIBRARY_PATH
12619  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12620  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12621  ;;
12622
12623rdos*)
12624  dynamic_linker=no
12625  ;;
12626
12627solaris*)
12628  version_type=linux # correct to gnu/linux during the next big refactor
12629  need_lib_prefix=no
12630  need_version=no
12631  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12632  soname_spec='$libname$release$shared_ext$major'
12633  shlibpath_var=LD_LIBRARY_PATH
12634  shlibpath_overrides_runpath=yes
12635  hardcode_into_libs=yes
12636  # ldd complains unless libraries are executable
12637  postinstall_cmds='chmod +x $lib'
12638  ;;
12639
12640sunos4*)
12641  version_type=sunos
12642  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12643  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12644  shlibpath_var=LD_LIBRARY_PATH
12645  shlibpath_overrides_runpath=yes
12646  if test yes = "$with_gnu_ld"; then
12647    need_lib_prefix=no
12648  fi
12649  need_version=yes
12650  ;;
12651
12652sysv4 | sysv4.3*)
12653  version_type=linux # correct to gnu/linux during the next big refactor
12654  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12655  soname_spec='$libname$release$shared_ext$major'
12656  shlibpath_var=LD_LIBRARY_PATH
12657  case $host_vendor in
12658    sni)
12659      shlibpath_overrides_runpath=no
12660      need_lib_prefix=no
12661      runpath_var=LD_RUN_PATH
12662      ;;
12663    siemens)
12664      need_lib_prefix=no
12665      ;;
12666    motorola)
12667      need_lib_prefix=no
12668      need_version=no
12669      shlibpath_overrides_runpath=no
12670      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12671      ;;
12672  esac
12673  ;;
12674
12675sysv4*MP*)
12676  if test -d /usr/nec; then
12677    version_type=linux # correct to gnu/linux during the next big refactor
12678    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12679    soname_spec='$libname$shared_ext.$major'
12680    shlibpath_var=LD_LIBRARY_PATH
12681  fi
12682  ;;
12683
12684sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12685  version_type=sco
12686  need_lib_prefix=no
12687  need_version=no
12688  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12689  soname_spec='$libname$release$shared_ext$major'
12690  shlibpath_var=LD_LIBRARY_PATH
12691  shlibpath_overrides_runpath=yes
12692  hardcode_into_libs=yes
12693  if test yes = "$with_gnu_ld"; then
12694    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12695  else
12696    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12697    case $host_os in
12698      sco3.2v5*)
12699        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12700	;;
12701    esac
12702  fi
12703  sys_lib_dlsearch_path_spec='/usr/lib'
12704  ;;
12705
12706tpf*)
12707  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12708  version_type=linux # correct to gnu/linux during the next big refactor
12709  need_lib_prefix=no
12710  need_version=no
12711  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12712  shlibpath_var=LD_LIBRARY_PATH
12713  shlibpath_overrides_runpath=no
12714  hardcode_into_libs=yes
12715  ;;
12716
12717uts4*)
12718  version_type=linux # correct to gnu/linux during the next big refactor
12719  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12720  soname_spec='$libname$release$shared_ext$major'
12721  shlibpath_var=LD_LIBRARY_PATH
12722  ;;
12723
12724*)
12725  dynamic_linker=no
12726  ;;
12727esac
12728{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12729printf "%s\n" "$dynamic_linker" >&6; }
12730test no = "$dynamic_linker" && can_build_shared=no
12731
12732variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12733if test yes = "$GCC"; then
12734  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12735fi
12736
12737if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12738  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12739fi
12740
12741if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12742  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12743fi
12744
12745# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12746configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12747
12748# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12749func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12750
12751# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12752configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798
12799
12800
12801
12802
12803
12804
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846
12847
12848
12849
12850  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12851printf %s "checking how to hardcode library paths into programs... " >&6; }
12852hardcode_action=
12853if test -n "$hardcode_libdir_flag_spec" ||
12854   test -n "$runpath_var" ||
12855   test yes = "$hardcode_automatic"; then
12856
12857  # We can hardcode non-existent directories.
12858  if test no != "$hardcode_direct" &&
12859     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12860     # have to relink, otherwise we might link with an installed library
12861     # when we should be linking with a yet-to-be-installed one
12862     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12863     test no != "$hardcode_minus_L"; then
12864    # Linking always hardcodes the temporary library directory.
12865    hardcode_action=relink
12866  else
12867    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12868    hardcode_action=immediate
12869  fi
12870else
12871  # We cannot hardcode anything, or else we can only hardcode existing
12872  # directories.
12873  hardcode_action=unsupported
12874fi
12875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12876printf "%s\n" "$hardcode_action" >&6; }
12877
12878if test relink = "$hardcode_action" ||
12879   test yes = "$inherit_rpath"; then
12880  # Fast installation is not supported
12881  enable_fast_install=no
12882elif test yes = "$shlibpath_overrides_runpath" ||
12883     test no = "$enable_shared"; then
12884  # Fast installation is not necessary
12885  enable_fast_install=needless
12886fi
12887
12888
12889
12890
12891
12892
12893  if test yes != "$enable_dlopen"; then
12894  enable_dlopen=unknown
12895  enable_dlopen_self=unknown
12896  enable_dlopen_self_static=unknown
12897else
12898  lt_cv_dlopen=no
12899  lt_cv_dlopen_libs=
12900
12901  case $host_os in
12902  beos*)
12903    lt_cv_dlopen=load_add_on
12904    lt_cv_dlopen_libs=
12905    lt_cv_dlopen_self=yes
12906    ;;
12907
12908  mingw* | pw32* | cegcc*)
12909    lt_cv_dlopen=LoadLibrary
12910    lt_cv_dlopen_libs=
12911    ;;
12912
12913  cygwin*)
12914    lt_cv_dlopen=dlopen
12915    lt_cv_dlopen_libs=
12916    ;;
12917
12918  darwin*)
12919    # if libdl is installed we need to link against it
12920    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12921printf %s "checking for dlopen in -ldl... " >&6; }
12922if test ${ac_cv_lib_dl_dlopen+y}
12923then :
12924  printf %s "(cached) " >&6
12925else $as_nop
12926  ac_check_lib_save_LIBS=$LIBS
12927LIBS="-ldl  $LIBS"
12928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929/* end confdefs.h.  */
12930
12931/* Override any GCC internal prototype to avoid an error.
12932   Use char because int might match the return type of a GCC
12933   builtin and then its argument prototype would still apply.  */
12934char dlopen ();
12935int
12936main (void)
12937{
12938return dlopen ();
12939  ;
12940  return 0;
12941}
12942_ACEOF
12943if ac_fn_c_try_link "$LINENO"
12944then :
12945  ac_cv_lib_dl_dlopen=yes
12946else $as_nop
12947  ac_cv_lib_dl_dlopen=no
12948fi
12949rm -f core conftest.err conftest.$ac_objext conftest.beam \
12950    conftest$ac_exeext conftest.$ac_ext
12951LIBS=$ac_check_lib_save_LIBS
12952fi
12953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12954printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12955if test "x$ac_cv_lib_dl_dlopen" = xyes
12956then :
12957  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12958else $as_nop
12959
12960    lt_cv_dlopen=dyld
12961    lt_cv_dlopen_libs=
12962    lt_cv_dlopen_self=yes
12963
12964fi
12965
12966    ;;
12967
12968  tpf*)
12969    # Don't try to run any link tests for TPF.  We know it's impossible
12970    # because TPF is a cross-compiler, and we know how we open DSOs.
12971    lt_cv_dlopen=dlopen
12972    lt_cv_dlopen_libs=
12973    lt_cv_dlopen_self=no
12974    ;;
12975
12976  *)
12977    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12978if test "x$ac_cv_func_shl_load" = xyes
12979then :
12980  lt_cv_dlopen=shl_load
12981else $as_nop
12982  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12983printf %s "checking for shl_load in -ldld... " >&6; }
12984if test ${ac_cv_lib_dld_shl_load+y}
12985then :
12986  printf %s "(cached) " >&6
12987else $as_nop
12988  ac_check_lib_save_LIBS=$LIBS
12989LIBS="-ldld  $LIBS"
12990cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991/* end confdefs.h.  */
12992
12993/* Override any GCC internal prototype to avoid an error.
12994   Use char because int might match the return type of a GCC
12995   builtin and then its argument prototype would still apply.  */
12996char shl_load ();
12997int
12998main (void)
12999{
13000return shl_load ();
13001  ;
13002  return 0;
13003}
13004_ACEOF
13005if ac_fn_c_try_link "$LINENO"
13006then :
13007  ac_cv_lib_dld_shl_load=yes
13008else $as_nop
13009  ac_cv_lib_dld_shl_load=no
13010fi
13011rm -f core conftest.err conftest.$ac_objext conftest.beam \
13012    conftest$ac_exeext conftest.$ac_ext
13013LIBS=$ac_check_lib_save_LIBS
13014fi
13015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13016printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13017if test "x$ac_cv_lib_dld_shl_load" = xyes
13018then :
13019  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13020else $as_nop
13021  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13022if test "x$ac_cv_func_dlopen" = xyes
13023then :
13024  lt_cv_dlopen=dlopen
13025else $as_nop
13026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13027printf %s "checking for dlopen in -ldl... " >&6; }
13028if test ${ac_cv_lib_dl_dlopen+y}
13029then :
13030  printf %s "(cached) " >&6
13031else $as_nop
13032  ac_check_lib_save_LIBS=$LIBS
13033LIBS="-ldl  $LIBS"
13034cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035/* end confdefs.h.  */
13036
13037/* Override any GCC internal prototype to avoid an error.
13038   Use char because int might match the return type of a GCC
13039   builtin and then its argument prototype would still apply.  */
13040char dlopen ();
13041int
13042main (void)
13043{
13044return dlopen ();
13045  ;
13046  return 0;
13047}
13048_ACEOF
13049if ac_fn_c_try_link "$LINENO"
13050then :
13051  ac_cv_lib_dl_dlopen=yes
13052else $as_nop
13053  ac_cv_lib_dl_dlopen=no
13054fi
13055rm -f core conftest.err conftest.$ac_objext conftest.beam \
13056    conftest$ac_exeext conftest.$ac_ext
13057LIBS=$ac_check_lib_save_LIBS
13058fi
13059{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13060printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13061if test "x$ac_cv_lib_dl_dlopen" = xyes
13062then :
13063  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13064else $as_nop
13065  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13066printf %s "checking for dlopen in -lsvld... " >&6; }
13067if test ${ac_cv_lib_svld_dlopen+y}
13068then :
13069  printf %s "(cached) " >&6
13070else $as_nop
13071  ac_check_lib_save_LIBS=$LIBS
13072LIBS="-lsvld  $LIBS"
13073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h.  */
13075
13076/* Override any GCC internal prototype to avoid an error.
13077   Use char because int might match the return type of a GCC
13078   builtin and then its argument prototype would still apply.  */
13079char dlopen ();
13080int
13081main (void)
13082{
13083return dlopen ();
13084  ;
13085  return 0;
13086}
13087_ACEOF
13088if ac_fn_c_try_link "$LINENO"
13089then :
13090  ac_cv_lib_svld_dlopen=yes
13091else $as_nop
13092  ac_cv_lib_svld_dlopen=no
13093fi
13094rm -f core conftest.err conftest.$ac_objext conftest.beam \
13095    conftest$ac_exeext conftest.$ac_ext
13096LIBS=$ac_check_lib_save_LIBS
13097fi
13098{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13099printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13100if test "x$ac_cv_lib_svld_dlopen" = xyes
13101then :
13102  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13103else $as_nop
13104  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13105printf %s "checking for dld_link in -ldld... " >&6; }
13106if test ${ac_cv_lib_dld_dld_link+y}
13107then :
13108  printf %s "(cached) " >&6
13109else $as_nop
13110  ac_check_lib_save_LIBS=$LIBS
13111LIBS="-ldld  $LIBS"
13112cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113/* end confdefs.h.  */
13114
13115/* Override any GCC internal prototype to avoid an error.
13116   Use char because int might match the return type of a GCC
13117   builtin and then its argument prototype would still apply.  */
13118char dld_link ();
13119int
13120main (void)
13121{
13122return dld_link ();
13123  ;
13124  return 0;
13125}
13126_ACEOF
13127if ac_fn_c_try_link "$LINENO"
13128then :
13129  ac_cv_lib_dld_dld_link=yes
13130else $as_nop
13131  ac_cv_lib_dld_dld_link=no
13132fi
13133rm -f core conftest.err conftest.$ac_objext conftest.beam \
13134    conftest$ac_exeext conftest.$ac_ext
13135LIBS=$ac_check_lib_save_LIBS
13136fi
13137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13138printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13139if test "x$ac_cv_lib_dld_dld_link" = xyes
13140then :
13141  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13142fi
13143
13144
13145fi
13146
13147
13148fi
13149
13150
13151fi
13152
13153
13154fi
13155
13156
13157fi
13158
13159    ;;
13160  esac
13161
13162  if test no = "$lt_cv_dlopen"; then
13163    enable_dlopen=no
13164  else
13165    enable_dlopen=yes
13166  fi
13167
13168  case $lt_cv_dlopen in
13169  dlopen)
13170    save_CPPFLAGS=$CPPFLAGS
13171    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13172
13173    save_LDFLAGS=$LDFLAGS
13174    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13175
13176    save_LIBS=$LIBS
13177    LIBS="$lt_cv_dlopen_libs $LIBS"
13178
13179    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13180printf %s "checking whether a program can dlopen itself... " >&6; }
13181if test ${lt_cv_dlopen_self+y}
13182then :
13183  printf %s "(cached) " >&6
13184else $as_nop
13185  	  if test yes = "$cross_compiling"; then :
13186  lt_cv_dlopen_self=cross
13187else
13188  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13189  lt_status=$lt_dlunknown
13190  cat > conftest.$ac_ext <<_LT_EOF
13191#line $LINENO "configure"
13192#include "confdefs.h"
13193
13194#if HAVE_DLFCN_H
13195#include <dlfcn.h>
13196#endif
13197
13198#include <stdio.h>
13199
13200#ifdef RTLD_GLOBAL
13201#  define LT_DLGLOBAL		RTLD_GLOBAL
13202#else
13203#  ifdef DL_GLOBAL
13204#    define LT_DLGLOBAL		DL_GLOBAL
13205#  else
13206#    define LT_DLGLOBAL		0
13207#  endif
13208#endif
13209
13210/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13211   find out it does not work in some platform. */
13212#ifndef LT_DLLAZY_OR_NOW
13213#  ifdef RTLD_LAZY
13214#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13215#  else
13216#    ifdef DL_LAZY
13217#      define LT_DLLAZY_OR_NOW		DL_LAZY
13218#    else
13219#      ifdef RTLD_NOW
13220#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13221#      else
13222#        ifdef DL_NOW
13223#          define LT_DLLAZY_OR_NOW	DL_NOW
13224#        else
13225#          define LT_DLLAZY_OR_NOW	0
13226#        endif
13227#      endif
13228#    endif
13229#  endif
13230#endif
13231
13232/* When -fvisibility=hidden is used, assume the code has been annotated
13233   correspondingly for the symbols needed.  */
13234#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13235int fnord () __attribute__((visibility("default")));
13236#endif
13237
13238int fnord () { return 42; }
13239int main ()
13240{
13241  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13242  int status = $lt_dlunknown;
13243
13244  if (self)
13245    {
13246      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13247      else
13248        {
13249	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13250          else puts (dlerror ());
13251	}
13252      /* dlclose (self); */
13253    }
13254  else
13255    puts (dlerror ());
13256
13257  return status;
13258}
13259_LT_EOF
13260  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13261  (eval $ac_link) 2>&5
13262  ac_status=$?
13263  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13264  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13265    (./conftest; exit; ) >&5 2>/dev/null
13266    lt_status=$?
13267    case x$lt_status in
13268      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13269      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13270      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13271    esac
13272  else :
13273    # compilation failed
13274    lt_cv_dlopen_self=no
13275  fi
13276fi
13277rm -fr conftest*
13278
13279
13280fi
13281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13282printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13283
13284    if test yes = "$lt_cv_dlopen_self"; then
13285      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13286      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13287printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13288if test ${lt_cv_dlopen_self_static+y}
13289then :
13290  printf %s "(cached) " >&6
13291else $as_nop
13292  	  if test yes = "$cross_compiling"; then :
13293  lt_cv_dlopen_self_static=cross
13294else
13295  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13296  lt_status=$lt_dlunknown
13297  cat > conftest.$ac_ext <<_LT_EOF
13298#line $LINENO "configure"
13299#include "confdefs.h"
13300
13301#if HAVE_DLFCN_H
13302#include <dlfcn.h>
13303#endif
13304
13305#include <stdio.h>
13306
13307#ifdef RTLD_GLOBAL
13308#  define LT_DLGLOBAL		RTLD_GLOBAL
13309#else
13310#  ifdef DL_GLOBAL
13311#    define LT_DLGLOBAL		DL_GLOBAL
13312#  else
13313#    define LT_DLGLOBAL		0
13314#  endif
13315#endif
13316
13317/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13318   find out it does not work in some platform. */
13319#ifndef LT_DLLAZY_OR_NOW
13320#  ifdef RTLD_LAZY
13321#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13322#  else
13323#    ifdef DL_LAZY
13324#      define LT_DLLAZY_OR_NOW		DL_LAZY
13325#    else
13326#      ifdef RTLD_NOW
13327#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13328#      else
13329#        ifdef DL_NOW
13330#          define LT_DLLAZY_OR_NOW	DL_NOW
13331#        else
13332#          define LT_DLLAZY_OR_NOW	0
13333#        endif
13334#      endif
13335#    endif
13336#  endif
13337#endif
13338
13339/* When -fvisibility=hidden is used, assume the code has been annotated
13340   correspondingly for the symbols needed.  */
13341#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13342int fnord () __attribute__((visibility("default")));
13343#endif
13344
13345int fnord () { return 42; }
13346int main ()
13347{
13348  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13349  int status = $lt_dlunknown;
13350
13351  if (self)
13352    {
13353      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13354      else
13355        {
13356	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13357          else puts (dlerror ());
13358	}
13359      /* dlclose (self); */
13360    }
13361  else
13362    puts (dlerror ());
13363
13364  return status;
13365}
13366_LT_EOF
13367  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13368  (eval $ac_link) 2>&5
13369  ac_status=$?
13370  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13371  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13372    (./conftest; exit; ) >&5 2>/dev/null
13373    lt_status=$?
13374    case x$lt_status in
13375      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13376      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13377      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13378    esac
13379  else :
13380    # compilation failed
13381    lt_cv_dlopen_self_static=no
13382  fi
13383fi
13384rm -fr conftest*
13385
13386
13387fi
13388{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13389printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13390    fi
13391
13392    CPPFLAGS=$save_CPPFLAGS
13393    LDFLAGS=$save_LDFLAGS
13394    LIBS=$save_LIBS
13395    ;;
13396  esac
13397
13398  case $lt_cv_dlopen_self in
13399  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13400  *) enable_dlopen_self=unknown ;;
13401  esac
13402
13403  case $lt_cv_dlopen_self_static in
13404  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13405  *) enable_dlopen_self_static=unknown ;;
13406  esac
13407fi
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425striplib=
13426old_striplib=
13427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13428printf %s "checking whether stripping libraries is possible... " >&6; }
13429if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13430  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13431  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13432  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13433printf "%s\n" "yes" >&6; }
13434else
13435# FIXME - insert some real tests, host_os isn't really good enough
13436  case $host_os in
13437  darwin*)
13438    if test -n "$STRIP"; then
13439      striplib="$STRIP -x"
13440      old_striplib="$STRIP -S"
13441      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13442printf "%s\n" "yes" >&6; }
13443    else
13444      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13445printf "%s\n" "no" >&6; }
13446    fi
13447    ;;
13448  *)
13449    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13450printf "%s\n" "no" >&6; }
13451    ;;
13452  esac
13453fi
13454
13455
13456
13457
13458
13459
13460
13461
13462
13463
13464
13465
13466  # Report what library types will actually be built
13467  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13468printf %s "checking if libtool supports shared libraries... " >&6; }
13469  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13470printf "%s\n" "$can_build_shared" >&6; }
13471
13472  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13473printf %s "checking whether to build shared libraries... " >&6; }
13474  test no = "$can_build_shared" && enable_shared=no
13475
13476  # On AIX, shared libraries and static libraries use the same namespace, and
13477  # are all built from PIC.
13478  case $host_os in
13479  aix3*)
13480    test yes = "$enable_shared" && enable_static=no
13481    if test -n "$RANLIB"; then
13482      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13483      postinstall_cmds='$RANLIB $lib'
13484    fi
13485    ;;
13486
13487  aix[4-9]*)
13488    if test ia64 != "$host_cpu"; then
13489      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13490      yes,aix,yes) ;;			# shared object as lib.so file only
13491      yes,svr4,*) ;;			# shared object as lib.so archive member only
13492      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13493      esac
13494    fi
13495    ;;
13496  esac
13497  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13498printf "%s\n" "$enable_shared" >&6; }
13499
13500  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13501printf %s "checking whether to build static libraries... " >&6; }
13502  # Make sure either enable_shared or enable_static is yes.
13503  test yes = "$enable_shared" || enable_static=yes
13504  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13505printf "%s\n" "$enable_static" >&6; }
13506
13507
13508
13509
13510fi
13511ac_ext=c
13512ac_cpp='$CPP $CPPFLAGS'
13513ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13514ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13515ac_compiler_gnu=$ac_cv_c_compiler_gnu
13516
13517CC=$lt_save_CC
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533        ac_config_commands="$ac_config_commands libtool"
13534
13535
13536
13537
13538# Only expand once:
13539
13540
13541LIBTOOL="$LIBTOOL --silent"
13542
13543
13544
13545
13546
13547
13548
13549
13550if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13551	if test -n "$ac_tool_prefix"; then
13552  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13553set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13554{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13555printf %s "checking for $ac_word... " >&6; }
13556if test ${ac_cv_path_PKG_CONFIG+y}
13557then :
13558  printf %s "(cached) " >&6
13559else $as_nop
13560  case $PKG_CONFIG in
13561  [\\/]* | ?:[\\/]*)
13562  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13563  ;;
13564  *)
13565  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566for as_dir in $PATH
13567do
13568  IFS=$as_save_IFS
13569  case $as_dir in #(((
13570    '') as_dir=./ ;;
13571    */) ;;
13572    *) as_dir=$as_dir/ ;;
13573  esac
13574    for ac_exec_ext in '' $ac_executable_extensions; do
13575  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13576    ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13577    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13578    break 2
13579  fi
13580done
13581  done
13582IFS=$as_save_IFS
13583
13584  ;;
13585esac
13586fi
13587PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13588if test -n "$PKG_CONFIG"; then
13589  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13590printf "%s\n" "$PKG_CONFIG" >&6; }
13591else
13592  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593printf "%s\n" "no" >&6; }
13594fi
13595
13596
13597fi
13598if test -z "$ac_cv_path_PKG_CONFIG"; then
13599  ac_pt_PKG_CONFIG=$PKG_CONFIG
13600  # Extract the first word of "pkg-config", so it can be a program name with args.
13601set dummy pkg-config; ac_word=$2
13602{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13603printf %s "checking for $ac_word... " >&6; }
13604if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13605then :
13606  printf %s "(cached) " >&6
13607else $as_nop
13608  case $ac_pt_PKG_CONFIG in
13609  [\\/]* | ?:[\\/]*)
13610  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13611  ;;
13612  *)
13613  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13614for as_dir in $PATH
13615do
13616  IFS=$as_save_IFS
13617  case $as_dir in #(((
13618    '') as_dir=./ ;;
13619    */) ;;
13620    *) as_dir=$as_dir/ ;;
13621  esac
13622    for ac_exec_ext in '' $ac_executable_extensions; do
13623  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13624    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13625    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13626    break 2
13627  fi
13628done
13629  done
13630IFS=$as_save_IFS
13631
13632  ;;
13633esac
13634fi
13635ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13636if test -n "$ac_pt_PKG_CONFIG"; then
13637  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13638printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13639else
13640  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13641printf "%s\n" "no" >&6; }
13642fi
13643
13644  if test "x$ac_pt_PKG_CONFIG" = x; then
13645    PKG_CONFIG=""
13646  else
13647    case $cross_compiling:$ac_tool_warned in
13648yes:)
13649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13650printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13651ac_tool_warned=yes ;;
13652esac
13653    PKG_CONFIG=$ac_pt_PKG_CONFIG
13654  fi
13655else
13656  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13657fi
13658
13659fi
13660if test -n "$PKG_CONFIG"; then
13661	_pkg_min_version=0.9.0
13662	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13663printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13664	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13665		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13666printf "%s\n" "yes" >&6; }
13667	else
13668		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13669printf "%s\n" "no" >&6; }
13670		PKG_CONFIG=""
13671	fi
13672fi
13673ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13674if test "x$ac_cv_type_size_t" = xyes
13675then :
13676
13677else $as_nop
13678
13679printf "%s\n" "#define size_t unsigned int" >>confdefs.h
13680
13681fi
13682
13683# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13684# for constant arguments.  Useless!
13685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13686printf %s "checking for working alloca.h... " >&6; }
13687if test ${ac_cv_working_alloca_h+y}
13688then :
13689  printf %s "(cached) " >&6
13690else $as_nop
13691  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13692/* end confdefs.h.  */
13693#include <alloca.h>
13694int
13695main (void)
13696{
13697char *p = (char *) alloca (2 * sizeof (int));
13698			  if (p) return 0;
13699  ;
13700  return 0;
13701}
13702_ACEOF
13703if ac_fn_c_try_link "$LINENO"
13704then :
13705  ac_cv_working_alloca_h=yes
13706else $as_nop
13707  ac_cv_working_alloca_h=no
13708fi
13709rm -f core conftest.err conftest.$ac_objext conftest.beam \
13710    conftest$ac_exeext conftest.$ac_ext
13711fi
13712{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13713printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
13714if test $ac_cv_working_alloca_h = yes; then
13715
13716printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
13717
13718fi
13719
13720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13721printf %s "checking for alloca... " >&6; }
13722if test ${ac_cv_func_alloca_works+y}
13723then :
13724  printf %s "(cached) " >&6
13725else $as_nop
13726  if test $ac_cv_working_alloca_h = yes; then
13727  ac_cv_func_alloca_works=yes
13728else
13729  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13730/* end confdefs.h.  */
13731#include <stdlib.h>
13732#include <stddef.h>
13733#ifndef alloca
13734# ifdef __GNUC__
13735#  define alloca __builtin_alloca
13736# elif defined _MSC_VER
13737#  include <malloc.h>
13738#  define alloca _alloca
13739# else
13740#  ifdef  __cplusplus
13741extern "C"
13742#  endif
13743void *alloca (size_t);
13744# endif
13745#endif
13746
13747int
13748main (void)
13749{
13750char *p = (char *) alloca (1);
13751				    if (p) return 0;
13752  ;
13753  return 0;
13754}
13755_ACEOF
13756if ac_fn_c_try_link "$LINENO"
13757then :
13758  ac_cv_func_alloca_works=yes
13759else $as_nop
13760  ac_cv_func_alloca_works=no
13761fi
13762rm -f core conftest.err conftest.$ac_objext conftest.beam \
13763    conftest$ac_exeext conftest.$ac_ext
13764fi
13765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13766printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
13767fi
13768
13769if test $ac_cv_func_alloca_works = yes; then
13770
13771printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
13772
13773else
13774  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13775# that cause trouble.  Some versions do not even contain alloca or
13776# contain a buggy version.  If you still want to use their alloca,
13777# use ar to extract alloca.o from them instead of compiling alloca.c.
13778
13779ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13780
13781printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
13782
13783
13784{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13785printf %s "checking stack direction for C alloca... " >&6; }
13786if test ${ac_cv_c_stack_direction+y}
13787then :
13788  printf %s "(cached) " >&6
13789else $as_nop
13790  if test "$cross_compiling" = yes
13791then :
13792  ac_cv_c_stack_direction=0
13793else $as_nop
13794  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795/* end confdefs.h.  */
13796$ac_includes_default
13797int
13798find_stack_direction (int *addr, int depth)
13799{
13800  int dir, dummy = 0;
13801  if (! addr)
13802    addr = &dummy;
13803  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13804  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13805  return dir + dummy;
13806}
13807
13808int
13809main (int argc, char **argv)
13810{
13811  return find_stack_direction (0, argc + !argv + 20) < 0;
13812}
13813_ACEOF
13814if ac_fn_c_try_run "$LINENO"
13815then :
13816  ac_cv_c_stack_direction=1
13817else $as_nop
13818  ac_cv_c_stack_direction=-1
13819fi
13820rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13821  conftest.$ac_objext conftest.beam conftest.$ac_ext
13822fi
13823
13824fi
13825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13826printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
13827printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
13828
13829
13830fi
13831
13832
13833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13834printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13835if test ${ac_cv_c_undeclared_builtin_options+y}
13836then :
13837  printf %s "(cached) " >&6
13838else $as_nop
13839  ac_save_CFLAGS=$CFLAGS
13840   ac_cv_c_undeclared_builtin_options='cannot detect'
13841   for ac_arg in '' -fno-builtin; do
13842     CFLAGS="$ac_save_CFLAGS $ac_arg"
13843     # This test program should *not* compile successfully.
13844     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845/* end confdefs.h.  */
13846
13847int
13848main (void)
13849{
13850(void) strchr;
13851  ;
13852  return 0;
13853}
13854_ACEOF
13855if ac_fn_c_try_compile "$LINENO"
13856then :
13857
13858else $as_nop
13859  # This test program should compile successfully.
13860        # No library function is consistently available on
13861        # freestanding implementations, so test against a dummy
13862        # declaration.  Include always-available headers on the
13863        # off chance that they somehow elicit warnings.
13864        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13865/* end confdefs.h.  */
13866#include <float.h>
13867#include <limits.h>
13868#include <stdarg.h>
13869#include <stddef.h>
13870extern void ac_decl (int, char *);
13871
13872int
13873main (void)
13874{
13875(void) ac_decl (0, (char *) 0);
13876  (void) ac_decl;
13877
13878  ;
13879  return 0;
13880}
13881_ACEOF
13882if ac_fn_c_try_compile "$LINENO"
13883then :
13884  if test x"$ac_arg" = x
13885then :
13886  ac_cv_c_undeclared_builtin_options='none needed'
13887else $as_nop
13888  ac_cv_c_undeclared_builtin_options=$ac_arg
13889fi
13890          break
13891fi
13892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13893fi
13894rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13895    done
13896    CFLAGS=$ac_save_CFLAGS
13897
13898fi
13899{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13900printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13901  case $ac_cv_c_undeclared_builtin_options in #(
13902  'cannot detect') :
13903    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13904printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13905as_fn_error $? "cannot make $CC report undeclared builtins
13906See \`config.log' for more details" "$LINENO" 5; } ;; #(
13907  'none needed') :
13908    ac_c_undeclared_builtin_options='' ;; #(
13909  *) :
13910    ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13911esac
13912
13913ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13914if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13915then :
13916  SUNCC="yes"
13917else $as_nop
13918  SUNCC="no"
13919fi
13920
13921# Autoupdate added the next two lines to ensure that your configure
13922# script's behavior did not change.  They are probably safe to remove.
13923
13924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
13925printf %s "checking for egrep... " >&6; }
13926if test ${ac_cv_path_EGREP+y}
13927then :
13928  printf %s "(cached) " >&6
13929else $as_nop
13930  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
13931   then ac_cv_path_EGREP="$GREP -E"
13932   else
13933     if test -z "$EGREP"; then
13934  ac_path_EGREP_found=false
13935  # Loop through the user's path and test for each of PROGNAME-LIST
13936  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13937for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
13938do
13939  IFS=$as_save_IFS
13940  case $as_dir in #(((
13941    '') as_dir=./ ;;
13942    */) ;;
13943    *) as_dir=$as_dir/ ;;
13944  esac
13945    for ac_prog in egrep
13946   do
13947    for ac_exec_ext in '' $ac_executable_extensions; do
13948      ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
13949      as_fn_executable_p "$ac_path_EGREP" || continue
13950# Check for GNU ac_path_EGREP and select it if it is found.
13951  # Check for GNU $ac_path_EGREP
13952case `"$ac_path_EGREP" --version 2>&1` in
13953*GNU*)
13954  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
13955*)
13956  ac_count=0
13957  printf %s 0123456789 >"conftest.in"
13958  while :
13959  do
13960    cat "conftest.in" "conftest.in" >"conftest.tmp"
13961    mv "conftest.tmp" "conftest.in"
13962    cp "conftest.in" "conftest.nl"
13963    printf "%s\n" 'EGREP' >> "conftest.nl"
13964    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
13965    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
13966    as_fn_arith $ac_count + 1 && ac_count=$as_val
13967    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
13968      # Best one so far, save it but keep looking for a better one
13969      ac_cv_path_EGREP="$ac_path_EGREP"
13970      ac_path_EGREP_max=$ac_count
13971    fi
13972    # 10*(2^10) chars as input seems more than enough
13973    test $ac_count -gt 10 && break
13974  done
13975  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
13976esac
13977
13978      $ac_path_EGREP_found && break 3
13979    done
13980  done
13981  done
13982IFS=$as_save_IFS
13983  if test -z "$ac_cv_path_EGREP"; then
13984    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
13985  fi
13986else
13987  ac_cv_path_EGREP=$EGREP
13988fi
13989
13990   fi
13991fi
13992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
13993printf "%s\n" "$ac_cv_path_EGREP" >&6; }
13994 EGREP="$ac_cv_path_EGREP"
13995
13996
13997
13998{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13999printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14000if test ${ac_cv_header_sys_wait_h+y}
14001then :
14002  printf %s "(cached) " >&6
14003else $as_nop
14004  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005/* end confdefs.h.  */
14006#include <sys/types.h>
14007#include <sys/wait.h>
14008#ifndef WEXITSTATUS
14009# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14010#endif
14011#ifndef WIFEXITED
14012# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14013#endif
14014
14015int
14016main (void)
14017{
14018  int s;
14019  wait (&s);
14020  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14021  ;
14022  return 0;
14023}
14024_ACEOF
14025if ac_fn_c_try_compile "$LINENO"
14026then :
14027  ac_cv_header_sys_wait_h=yes
14028else $as_nop
14029  ac_cv_header_sys_wait_h=no
14030fi
14031rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14032fi
14033{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14034printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
14035if test $ac_cv_header_sys_wait_h = yes; then
14036
14037printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14038
14039fi
14040
14041ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "$ac_includes_default"
14042if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes
14043then :
14044  printf "%s\n" "#define HAVE_ARPA_NAMESER_COMPAT_H 1" >>confdefs.h
14045
14046fi
14047ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
14048if test "x$ac_cv_header_fcntl_h" = xyes
14049then :
14050  printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
14051
14052fi
14053ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
14054if test "x$ac_cv_header_sys_time_h" = xyes
14055then :
14056  printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
14057
14058fi
14059ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
14060if test "x$ac_cv_header_unistd_h" = xyes
14061then :
14062  printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
14063
14064fi
14065ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
14066if test "x$ac_cv_header_locale_h" = xyes
14067then :
14068  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
14069
14070fi
14071ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
14072if test "x$ac_cv_header_signal_h" = xyes
14073then :
14074  printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
14075
14076fi
14077ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
14078if test "x$ac_cv_header_stdint_h" = xyes
14079then :
14080  printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
14081
14082fi
14083ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
14084if test "x$ac_cv_header_regex_h" = xyes
14085then :
14086  printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
14087
14088fi
14089
14090
14091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14092printf %s "checking for an ANSI C-conforming const... " >&6; }
14093if test ${ac_cv_c_const+y}
14094then :
14095  printf %s "(cached) " >&6
14096else $as_nop
14097  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14098/* end confdefs.h.  */
14099
14100int
14101main (void)
14102{
14103
14104#ifndef __cplusplus
14105  /* Ultrix mips cc rejects this sort of thing.  */
14106  typedef int charset[2];
14107  const charset cs = { 0, 0 };
14108  /* SunOS 4.1.1 cc rejects this.  */
14109  char const *const *pcpcc;
14110  char **ppc;
14111  /* NEC SVR4.0.2 mips cc rejects this.  */
14112  struct point {int x, y;};
14113  static struct point const zero = {0,0};
14114  /* IBM XL C 1.02.0.0 rejects this.
14115     It does not let you subtract one const X* pointer from another in
14116     an arm of an if-expression whose if-part is not a constant
14117     expression */
14118  const char *g = "string";
14119  pcpcc = &g + (g ? g-g : 0);
14120  /* HPUX 7.0 cc rejects these. */
14121  ++pcpcc;
14122  ppc = (char**) pcpcc;
14123  pcpcc = (char const *const *) ppc;
14124  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14125    char tx;
14126    char *t = &tx;
14127    char const *s = 0 ? (char *) 0 : (char const *) 0;
14128
14129    *t++ = 0;
14130    if (s) return 0;
14131  }
14132  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14133    int x[] = {25, 17};
14134    const int *foo = &x[0];
14135    ++foo;
14136  }
14137  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14138    typedef const int *iptr;
14139    iptr p = 0;
14140    ++p;
14141  }
14142  { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
14143       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14144    struct s { int j; const int *ap[3]; } bx;
14145    struct s *b = &bx; b->j = 5;
14146  }
14147  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14148    const int foo = 10;
14149    if (!foo) return 0;
14150  }
14151  return !cs[0] && !zero.x;
14152#endif
14153
14154  ;
14155  return 0;
14156}
14157_ACEOF
14158if ac_fn_c_try_compile "$LINENO"
14159then :
14160  ac_cv_c_const=yes
14161else $as_nop
14162  ac_cv_c_const=no
14163fi
14164rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14165fi
14166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14167printf "%s\n" "$ac_cv_c_const" >&6; }
14168if test $ac_cv_c_const = no; then
14169
14170printf "%s\n" "#define const /**/" >>confdefs.h
14171
14172fi
14173
14174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14175printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14176if test ${ac_cv_struct_tm+y}
14177then :
14178  printf %s "(cached) " >&6
14179else $as_nop
14180  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14181/* end confdefs.h.  */
14182#include <sys/types.h>
14183#include <time.h>
14184
14185int
14186main (void)
14187{
14188struct tm tm;
14189				     int *p = &tm.tm_sec;
14190				     return !p;
14191  ;
14192  return 0;
14193}
14194_ACEOF
14195if ac_fn_c_try_compile "$LINENO"
14196then :
14197  ac_cv_struct_tm=time.h
14198else $as_nop
14199  ac_cv_struct_tm=sys/time.h
14200fi
14201rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14202fi
14203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14204printf "%s\n" "$ac_cv_struct_tm" >&6; }
14205if test $ac_cv_struct_tm = sys/time.h; then
14206
14207printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
14208
14209fi
14210
14211# The cast to long int works around a bug in the HP C Compiler
14212# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14213# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14214# This bug is HP SR number 8606223364.
14215{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
14216printf %s "checking size of time_t... " >&6; }
14217if test ${ac_cv_sizeof_time_t+y}
14218then :
14219  printf %s "(cached) " >&6
14220else $as_nop
14221  if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t"        "
14222#include <stdio.h>
14223#include <time.h>
14224"
14225then :
14226
14227else $as_nop
14228  if test "$ac_cv_type_time_t" = yes; then
14229     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14230printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14231as_fn_error 77 "cannot compute sizeof (time_t)
14232See \`config.log' for more details" "$LINENO" 5; }
14233   else
14234     ac_cv_sizeof_time_t=0
14235   fi
14236fi
14237
14238fi
14239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
14240printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
14241
14242
14243
14244printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
14245
14246
14247
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14249printf %s "checking whether byte ordering is bigendian... " >&6; }
14250if test ${ac_cv_c_bigendian+y}
14251then :
14252  printf %s "(cached) " >&6
14253else $as_nop
14254  ac_cv_c_bigendian=unknown
14255    # See if we're dealing with a universal compiler.
14256    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h.  */
14258#ifndef __APPLE_CC__
14259	       not a universal capable compiler
14260	     #endif
14261	     typedef int dummy;
14262
14263_ACEOF
14264if ac_fn_c_try_compile "$LINENO"
14265then :
14266
14267	# Check for potential -arch flags.  It is not universal unless
14268	# there are at least two -arch flags with different values.
14269	ac_arch=
14270	ac_prev=
14271	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14272	 if test -n "$ac_prev"; then
14273	   case $ac_word in
14274	     i?86 | x86_64 | ppc | ppc64)
14275	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14276		 ac_arch=$ac_word
14277	       else
14278		 ac_cv_c_bigendian=universal
14279		 break
14280	       fi
14281	       ;;
14282	   esac
14283	   ac_prev=
14284	 elif test "x$ac_word" = "x-arch"; then
14285	   ac_prev=arch
14286	 fi
14287       done
14288fi
14289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14290    if test $ac_cv_c_bigendian = unknown; then
14291      # See if sys/param.h defines the BYTE_ORDER macro.
14292      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293/* end confdefs.h.  */
14294#include <sys/types.h>
14295	     #include <sys/param.h>
14296
14297int
14298main (void)
14299{
14300#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14301		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14302		     && LITTLE_ENDIAN)
14303	      bogus endian macros
14304	     #endif
14305
14306  ;
14307  return 0;
14308}
14309_ACEOF
14310if ac_fn_c_try_compile "$LINENO"
14311then :
14312  # It does; now see whether it defined to BIG_ENDIAN or not.
14313	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314/* end confdefs.h.  */
14315#include <sys/types.h>
14316		#include <sys/param.h>
14317
14318int
14319main (void)
14320{
14321#if BYTE_ORDER != BIG_ENDIAN
14322		 not big endian
14323		#endif
14324
14325  ;
14326  return 0;
14327}
14328_ACEOF
14329if ac_fn_c_try_compile "$LINENO"
14330then :
14331  ac_cv_c_bigendian=yes
14332else $as_nop
14333  ac_cv_c_bigendian=no
14334fi
14335rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14336fi
14337rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14338    fi
14339    if test $ac_cv_c_bigendian = unknown; then
14340      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14341      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14342/* end confdefs.h.  */
14343#include <limits.h>
14344
14345int
14346main (void)
14347{
14348#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14349	      bogus endian macros
14350	     #endif
14351
14352  ;
14353  return 0;
14354}
14355_ACEOF
14356if ac_fn_c_try_compile "$LINENO"
14357then :
14358  # It does; now see whether it defined to _BIG_ENDIAN or not.
14359	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14360/* end confdefs.h.  */
14361#include <limits.h>
14362
14363int
14364main (void)
14365{
14366#ifndef _BIG_ENDIAN
14367		 not big endian
14368		#endif
14369
14370  ;
14371  return 0;
14372}
14373_ACEOF
14374if ac_fn_c_try_compile "$LINENO"
14375then :
14376  ac_cv_c_bigendian=yes
14377else $as_nop
14378  ac_cv_c_bigendian=no
14379fi
14380rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14381fi
14382rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14383    fi
14384    if test $ac_cv_c_bigendian = unknown; then
14385      # Compile a test program.
14386      if test "$cross_compiling" = yes
14387then :
14388  # Try to guess by grepping values from an object file.
14389	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390/* end confdefs.h.  */
14391unsigned short int ascii_mm[] =
14392		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14393		unsigned short int ascii_ii[] =
14394		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14395		int use_ascii (int i) {
14396		  return ascii_mm[i] + ascii_ii[i];
14397		}
14398		unsigned short int ebcdic_ii[] =
14399		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14400		unsigned short int ebcdic_mm[] =
14401		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14402		int use_ebcdic (int i) {
14403		  return ebcdic_mm[i] + ebcdic_ii[i];
14404		}
14405		extern int foo;
14406
14407int
14408main (void)
14409{
14410return use_ascii (foo) == use_ebcdic (foo);
14411  ;
14412  return 0;
14413}
14414_ACEOF
14415if ac_fn_c_try_compile "$LINENO"
14416then :
14417  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14418	      ac_cv_c_bigendian=yes
14419	    fi
14420	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14421	      if test "$ac_cv_c_bigendian" = unknown; then
14422		ac_cv_c_bigendian=no
14423	      else
14424		# finding both strings is unlikely to happen, but who knows?
14425		ac_cv_c_bigendian=unknown
14426	      fi
14427	    fi
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14430else $as_nop
14431  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14432/* end confdefs.h.  */
14433$ac_includes_default
14434int
14435main (void)
14436{
14437
14438	     /* Are we little or big endian?  From Harbison&Steele.  */
14439	     union
14440	     {
14441	       long int l;
14442	       char c[sizeof (long int)];
14443	     } u;
14444	     u.l = 1;
14445	     return u.c[sizeof (long int) - 1] == 1;
14446
14447  ;
14448  return 0;
14449}
14450_ACEOF
14451if ac_fn_c_try_run "$LINENO"
14452then :
14453  ac_cv_c_bigendian=no
14454else $as_nop
14455  ac_cv_c_bigendian=yes
14456fi
14457rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14458  conftest.$ac_objext conftest.beam conftest.$ac_ext
14459fi
14460
14461    fi
14462fi
14463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14464printf "%s\n" "$ac_cv_c_bigendian" >&6; }
14465 case $ac_cv_c_bigendian in #(
14466   yes)
14467     printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
14468;; #(
14469   no)
14470      ;; #(
14471   universal)
14472
14473printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14474
14475     ;; #(
14476   *)
14477     as_fn_error $? "unknown endianness
14478 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14479 esac
14480
14481
14482LIBM=
14483case $host in
14484*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
14485  # These system don't have libm, or don't need it
14486  ;;
14487*-ncr-sysv4.3*)
14488  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
14489printf %s "checking for _mwvalidcheckl in -lmw... " >&6; }
14490if test ${ac_cv_lib_mw__mwvalidcheckl+y}
14491then :
14492  printf %s "(cached) " >&6
14493else $as_nop
14494  ac_check_lib_save_LIBS=$LIBS
14495LIBS="-lmw  $LIBS"
14496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h.  */
14498
14499/* Override any GCC internal prototype to avoid an error.
14500   Use char because int might match the return type of a GCC
14501   builtin and then its argument prototype would still apply.  */
14502char _mwvalidcheckl ();
14503int
14504main (void)
14505{
14506return _mwvalidcheckl ();
14507  ;
14508  return 0;
14509}
14510_ACEOF
14511if ac_fn_c_try_link "$LINENO"
14512then :
14513  ac_cv_lib_mw__mwvalidcheckl=yes
14514else $as_nop
14515  ac_cv_lib_mw__mwvalidcheckl=no
14516fi
14517rm -f core conftest.err conftest.$ac_objext conftest.beam \
14518    conftest$ac_exeext conftest.$ac_ext
14519LIBS=$ac_check_lib_save_LIBS
14520fi
14521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
14522printf "%s\n" "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
14523if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes
14524then :
14525  LIBM=-lmw
14526fi
14527
14528  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14529printf %s "checking for cos in -lm... " >&6; }
14530if test ${ac_cv_lib_m_cos+y}
14531then :
14532  printf %s "(cached) " >&6
14533else $as_nop
14534  ac_check_lib_save_LIBS=$LIBS
14535LIBS="-lm  $LIBS"
14536cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14537/* end confdefs.h.  */
14538
14539/* Override any GCC internal prototype to avoid an error.
14540   Use char because int might match the return type of a GCC
14541   builtin and then its argument prototype would still apply.  */
14542char cos ();
14543int
14544main (void)
14545{
14546return cos ();
14547  ;
14548  return 0;
14549}
14550_ACEOF
14551if ac_fn_c_try_link "$LINENO"
14552then :
14553  ac_cv_lib_m_cos=yes
14554else $as_nop
14555  ac_cv_lib_m_cos=no
14556fi
14557rm -f core conftest.err conftest.$ac_objext conftest.beam \
14558    conftest$ac_exeext conftest.$ac_ext
14559LIBS=$ac_check_lib_save_LIBS
14560fi
14561{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14562printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
14563if test "x$ac_cv_lib_m_cos" = xyes
14564then :
14565  LIBM="$LIBM -lm"
14566fi
14567
14568  ;;
14569*)
14570  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14571printf %s "checking for cos in -lm... " >&6; }
14572if test ${ac_cv_lib_m_cos+y}
14573then :
14574  printf %s "(cached) " >&6
14575else $as_nop
14576  ac_check_lib_save_LIBS=$LIBS
14577LIBS="-lm  $LIBS"
14578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14579/* end confdefs.h.  */
14580
14581/* Override any GCC internal prototype to avoid an error.
14582   Use char because int might match the return type of a GCC
14583   builtin and then its argument prototype would still apply.  */
14584char cos ();
14585int
14586main (void)
14587{
14588return cos ();
14589  ;
14590  return 0;
14591}
14592_ACEOF
14593if ac_fn_c_try_link "$LINENO"
14594then :
14595  ac_cv_lib_m_cos=yes
14596else $as_nop
14597  ac_cv_lib_m_cos=no
14598fi
14599rm -f core conftest.err conftest.$ac_objext conftest.beam \
14600    conftest$ac_exeext conftest.$ac_ext
14601LIBS=$ac_check_lib_save_LIBS
14602fi
14603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14604printf "%s\n" "$ac_cv_lib_m_cos" >&6; }
14605if test "x$ac_cv_lib_m_cos" = xyes
14606then :
14607  LIBM=-lm
14608fi
14609
14610  ;;
14611esac
14612
14613
14614
14615
14616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14617printf %s "checking return type of signal handlers... " >&6; }
14618if test ${ac_cv_type_signal+y}
14619then :
14620  printf %s "(cached) " >&6
14621else $as_nop
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624#include <sys/types.h>
14625#include <signal.h>
14626
14627int
14628main (void)
14629{
14630return *(signal (0, 0)) (0) == 1;
14631  ;
14632  return 0;
14633}
14634_ACEOF
14635if ac_fn_c_try_compile "$LINENO"
14636then :
14637  ac_cv_type_signal=int
14638else $as_nop
14639  ac_cv_type_signal=void
14640fi
14641rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14642fi
14643{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14644printf "%s\n" "$ac_cv_type_signal" >&6; }
14645
14646printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
14647
14648
14649
14650  for ac_func in strftime
14651do :
14652  ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
14653if test "x$ac_cv_func_strftime" = xyes
14654then :
14655  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
14656
14657else $as_nop
14658  # strftime is in -lintl on SCO UNIX.
14659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
14660printf %s "checking for strftime in -lintl... " >&6; }
14661if test ${ac_cv_lib_intl_strftime+y}
14662then :
14663  printf %s "(cached) " >&6
14664else $as_nop
14665  ac_check_lib_save_LIBS=$LIBS
14666LIBS="-lintl  $LIBS"
14667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14668/* end confdefs.h.  */
14669
14670/* Override any GCC internal prototype to avoid an error.
14671   Use char because int might match the return type of a GCC
14672   builtin and then its argument prototype would still apply.  */
14673char strftime ();
14674int
14675main (void)
14676{
14677return strftime ();
14678  ;
14679  return 0;
14680}
14681_ACEOF
14682if ac_fn_c_try_link "$LINENO"
14683then :
14684  ac_cv_lib_intl_strftime=yes
14685else $as_nop
14686  ac_cv_lib_intl_strftime=no
14687fi
14688rm -f core conftest.err conftest.$ac_objext conftest.beam \
14689    conftest$ac_exeext conftest.$ac_ext
14690LIBS=$ac_check_lib_save_LIBS
14691fi
14692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
14693printf "%s\n" "$ac_cv_lib_intl_strftime" >&6; }
14694if test "x$ac_cv_lib_intl_strftime" = xyes
14695then :
14696  printf "%s\n" "#define HAVE_STRFTIME 1" >>confdefs.h
14697
14698LIBS="-lintl $LIBS"
14699fi
14700
14701fi
14702
14703done
14704ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
14705if test "x$ac_cv_func_strdup" = xyes
14706then :
14707  printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
14708
14709fi
14710ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
14711if test "x$ac_cv_func_strstr" = xyes
14712then :
14713  printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
14714
14715fi
14716ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
14717if test "x$ac_cv_func_atexit" = xyes
14718then :
14719  printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
14720
14721fi
14722ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
14723if test "x$ac_cv_func_setlocale" = xyes
14724then :
14725  printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h
14726
14727fi
14728
14729
14730  for ac_func in getopt_long
14731do :
14732  ac_fn_c_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
14733if test "x$ac_cv_func_getopt_long" = xyes
14734then :
14735  printf "%s\n" "#define HAVE_GETOPT_LONG 1" >>confdefs.h
14736
14737else $as_nop
14738
14739	case " $LIBOBJS " in
14740  *" getopt.$ac_objext "* ) ;;
14741  *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
14742 ;;
14743esac
14744
14745	case " $LIBOBJS " in
14746  *" getopt1.$ac_objext "* ) ;;
14747  *) LIBOBJS="$LIBOBJS getopt1.$ac_objext"
14748 ;;
14749esac
14750
14751
14752fi
14753
14754done
14755
14756ac_fn_c_check_func "$LINENO" "inet_aton" "ac_cv_func_inet_aton"
14757if test "x$ac_cv_func_inet_aton" = xyes
14758then :
14759
14760else $as_nop
14761  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inet_aton in -lresolv" >&5
14762printf %s "checking for inet_aton in -lresolv... " >&6; }
14763if test ${ac_cv_lib_resolv_inet_aton+y}
14764then :
14765  printf %s "(cached) " >&6
14766else $as_nop
14767  ac_check_lib_save_LIBS=$LIBS
14768LIBS="-lresolv  $LIBS"
14769cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h.  */
14771
14772/* Override any GCC internal prototype to avoid an error.
14773   Use char because int might match the return type of a GCC
14774   builtin and then its argument prototype would still apply.  */
14775char inet_aton ();
14776int
14777main (void)
14778{
14779return inet_aton ();
14780  ;
14781  return 0;
14782}
14783_ACEOF
14784if ac_fn_c_try_link "$LINENO"
14785then :
14786  ac_cv_lib_resolv_inet_aton=yes
14787else $as_nop
14788  ac_cv_lib_resolv_inet_aton=no
14789fi
14790rm -f core conftest.err conftest.$ac_objext conftest.beam \
14791    conftest$ac_exeext conftest.$ac_ext
14792LIBS=$ac_check_lib_save_LIBS
14793fi
14794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_inet_aton" >&5
14795printf "%s\n" "$ac_cv_lib_resolv_inet_aton" >&6; }
14796if test "x$ac_cv_lib_resolv_inet_aton" = xyes
14797then :
14798  printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
14799
14800  LIBS="-lresolv $LIBS"
14801
14802else $as_nop
14803  as_fn_error $? "inet_aton not found" "$LINENO" 5
14804fi
14805
14806fi
14807
14808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __res_query in -lresolv" >&5
14809printf %s "checking for __res_query in -lresolv... " >&6; }
14810if test ${ac_cv_lib_resolv___res_query+y}
14811then :
14812  printf %s "(cached) " >&6
14813else $as_nop
14814  ac_check_lib_save_LIBS=$LIBS
14815LIBS="-lresolv  $LIBS"
14816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14817/* end confdefs.h.  */
14818
14819/* Override any GCC internal prototype to avoid an error.
14820   Use char because int might match the return type of a GCC
14821   builtin and then its argument prototype would still apply.  */
14822char __res_query ();
14823int
14824main (void)
14825{
14826return __res_query ();
14827  ;
14828  return 0;
14829}
14830_ACEOF
14831if ac_fn_c_try_link "$LINENO"
14832then :
14833  ac_cv_lib_resolv___res_query=yes
14834else $as_nop
14835  ac_cv_lib_resolv___res_query=no
14836fi
14837rm -f core conftest.err conftest.$ac_objext conftest.beam \
14838    conftest$ac_exeext conftest.$ac_ext
14839LIBS=$ac_check_lib_save_LIBS
14840fi
14841{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_query" >&5
14842printf "%s\n" "$ac_cv_lib_resolv___res_query" >&6; }
14843if test "x$ac_cv_lib_resolv___res_query" = xyes
14844then :
14845  printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
14846
14847  LIBS="-lresolv $LIBS"
14848
14849fi
14850
14851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostent in -lnsl" >&5
14852printf %s "checking for gethostent in -lnsl... " >&6; }
14853if test ${ac_cv_lib_nsl_gethostent+y}
14854then :
14855  printf %s "(cached) " >&6
14856else $as_nop
14857  ac_check_lib_save_LIBS=$LIBS
14858LIBS="-lnsl  $LIBS"
14859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14860/* end confdefs.h.  */
14861
14862/* Override any GCC internal prototype to avoid an error.
14863   Use char because int might match the return type of a GCC
14864   builtin and then its argument prototype would still apply.  */
14865char gethostent ();
14866int
14867main (void)
14868{
14869return gethostent ();
14870  ;
14871  return 0;
14872}
14873_ACEOF
14874if ac_fn_c_try_link "$LINENO"
14875then :
14876  ac_cv_lib_nsl_gethostent=yes
14877else $as_nop
14878  ac_cv_lib_nsl_gethostent=no
14879fi
14880rm -f core conftest.err conftest.$ac_objext conftest.beam \
14881    conftest$ac_exeext conftest.$ac_ext
14882LIBS=$ac_check_lib_save_LIBS
14883fi
14884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostent" >&5
14885printf "%s\n" "$ac_cv_lib_nsl_gethostent" >&6; }
14886if test "x$ac_cv_lib_nsl_gethostent" = xyes
14887then :
14888  printf "%s\n" "#define HAVE_LIBNSL 1" >>confdefs.h
14889
14890  LIBS="-lnsl $LIBS"
14891
14892fi
14893
14894ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
14895if test "x$ac_cv_func_socket" = xyes
14896then :
14897
14898else $as_nop
14899  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
14900printf %s "checking for socket in -lsocket... " >&6; }
14901if test ${ac_cv_lib_socket_socket+y}
14902then :
14903  printf %s "(cached) " >&6
14904else $as_nop
14905  ac_check_lib_save_LIBS=$LIBS
14906LIBS="-lsocket  $LIBS"
14907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14908/* end confdefs.h.  */
14909
14910/* Override any GCC internal prototype to avoid an error.
14911   Use char because int might match the return type of a GCC
14912   builtin and then its argument prototype would still apply.  */
14913char socket ();
14914int
14915main (void)
14916{
14917return socket ();
14918  ;
14919  return 0;
14920}
14921_ACEOF
14922if ac_fn_c_try_link "$LINENO"
14923then :
14924  ac_cv_lib_socket_socket=yes
14925else $as_nop
14926  ac_cv_lib_socket_socket=no
14927fi
14928rm -f core conftest.err conftest.$ac_objext conftest.beam \
14929    conftest$ac_exeext conftest.$ac_ext
14930LIBS=$ac_check_lib_save_LIBS
14931fi
14932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
14933printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
14934if test "x$ac_cv_lib_socket_socket" = xyes
14935then :
14936  printf "%s\n" "#define HAVE_LIBSOCKET 1" >>confdefs.h
14937
14938  LIBS="-lsocket $LIBS"
14939
14940else $as_nop
14941  as_fn_error $? "socket not found" "$LINENO" 5
14942fi
14943
14944fi
14945
14946ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
14947if test "x$ac_cv_func_getaddrinfo" = xyes
14948then :
14949
14950printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
14951
14952else $as_nop
14953  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
14954printf %s "checking for getaddrinfo in -lsocket... " >&6; }
14955if test ${ac_cv_lib_socket_getaddrinfo+y}
14956then :
14957  printf %s "(cached) " >&6
14958else $as_nop
14959  ac_check_lib_save_LIBS=$LIBS
14960LIBS="-lsocket  $LIBS"
14961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14962/* end confdefs.h.  */
14963
14964/* Override any GCC internal prototype to avoid an error.
14965   Use char because int might match the return type of a GCC
14966   builtin and then its argument prototype would still apply.  */
14967char getaddrinfo ();
14968int
14969main (void)
14970{
14971return getaddrinfo ();
14972  ;
14973  return 0;
14974}
14975_ACEOF
14976if ac_fn_c_try_link "$LINENO"
14977then :
14978  ac_cv_lib_socket_getaddrinfo=yes
14979else $as_nop
14980  ac_cv_lib_socket_getaddrinfo=no
14981fi
14982rm -f core conftest.err conftest.$ac_objext conftest.beam \
14983    conftest$ac_exeext conftest.$ac_ext
14984LIBS=$ac_check_lib_save_LIBS
14985fi
14986{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
14987printf "%s\n" "$ac_cv_lib_socket_getaddrinfo" >&6; }
14988if test "x$ac_cv_lib_socket_getaddrinfo" = xyes
14989then :
14990  printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
14991 LIBS="-lsocket -lsnl $LIBS"
14992fi
14993
14994fi
14995
14996ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
14997if test "x$ac_cv_func_inet_ntop" = xyes
14998then :
14999  printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
15000
15001fi
15002
15003ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
15004if test "x$ac_cv_func_getifaddrs" = xyes
15005then :
15006  printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
15007
15008fi
15009
15010{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
15011printf %s "checking for socklen_t... " >&6; }
15012cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15013/* end confdefs.h.  */
15014
15015	#include <sys/types.h>
15016	#include <sys/socket.h>
15017	socklen_t x;
15018
15019int
15020main (void)
15021{
15022
15023  ;
15024  return 0;
15025}
15026_ACEOF
15027if ac_fn_c_try_compile "$LINENO"
15028then :
15029
15030	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15031printf "%s\n" "yes" >&6; }
15032
15033else $as_nop
15034
15035	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15036/* end confdefs.h.  */
15037
15038		#include <sys/types.h>
15039		#include <sys/socket.h>
15040		int accept(int, struct sockaddr *, size_t *);
15041
15042int
15043main (void)
15044{
15045
15046  ;
15047  return 0;
15048}
15049_ACEOF
15050if ac_fn_c_try_compile "$LINENO"
15051then :
15052
15053		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: size_t" >&5
15054printf "%s\n" "size_t" >&6; }
15055
15056printf "%s\n" "#define socklen_t size_t" >>confdefs.h
15057
15058
15059else $as_nop
15060
15061		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: int" >&5
15062printf "%s\n" "int" >&6; }
15063
15064printf "%s\n" "#define socklen_t int" >>confdefs.h
15065
15066
15067fi
15068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15069
15070fi
15071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15072
15073ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
15074"
15075if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
15076then :
15077
15078printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_SA_LEN 1" >>confdefs.h
15079
15080else $as_nop
15081  :
15082fi
15083
15084
15085ac_fn_check_decl "$LINENO" "IPV6_V6ONLY" "ac_cv_have_decl_IPV6_V6ONLY" "#include <netinet/in.h>
15086" "$ac_c_undeclared_builtin_options" "CFLAGS"
15087if test "x$ac_cv_have_decl_IPV6_V6ONLY" = xyes
15088then :
15089
15090printf "%s\n" "#define HAVE_IPV6_V6ONLY 1" >>confdefs.h
15091
15092fi
15093
15094# Check whether --enable-largefile was given.
15095if test ${enable_largefile+y}
15096then :
15097  enableval=$enable_largefile;
15098fi
15099
15100if test "$enable_largefile" != no; then
15101
15102  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15103printf %s "checking for special C compiler options needed for large files... " >&6; }
15104if test ${ac_cv_sys_largefile_CC+y}
15105then :
15106  printf %s "(cached) " >&6
15107else $as_nop
15108  ac_cv_sys_largefile_CC=no
15109     if test "$GCC" != yes; then
15110       ac_save_CC=$CC
15111       while :; do
15112	 # IRIX 6.2 and later do not support large files by default,
15113	 # so use the C compiler's -n32 option if that helps.
15114	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115/* end confdefs.h.  */
15116#include <sys/types.h>
15117 /* Check that off_t can represent 2**63 - 1 correctly.
15118    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15119    since some C++ compilers masquerading as C compilers
15120    incorrectly reject 9223372036854775807.  */
15121#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15122  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15123		       && LARGE_OFF_T % 2147483647 == 1)
15124		      ? 1 : -1];
15125int
15126main (void)
15127{
15128
15129  ;
15130  return 0;
15131}
15132_ACEOF
15133	 if ac_fn_c_try_compile "$LINENO"
15134then :
15135  break
15136fi
15137rm -f core conftest.err conftest.$ac_objext conftest.beam
15138	 CC="$CC -n32"
15139	 if ac_fn_c_try_compile "$LINENO"
15140then :
15141  ac_cv_sys_largefile_CC=' -n32'; break
15142fi
15143rm -f core conftest.err conftest.$ac_objext conftest.beam
15144	 break
15145       done
15146       CC=$ac_save_CC
15147       rm -f conftest.$ac_ext
15148    fi
15149fi
15150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15151printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
15152  if test "$ac_cv_sys_largefile_CC" != no; then
15153    CC=$CC$ac_cv_sys_largefile_CC
15154  fi
15155
15156  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15157printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15158if test ${ac_cv_sys_file_offset_bits+y}
15159then :
15160  printf %s "(cached) " >&6
15161else $as_nop
15162  while :; do
15163  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164/* end confdefs.h.  */
15165#include <sys/types.h>
15166 /* Check that off_t can represent 2**63 - 1 correctly.
15167    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15168    since some C++ compilers masquerading as C compilers
15169    incorrectly reject 9223372036854775807.  */
15170#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15171  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15172		       && LARGE_OFF_T % 2147483647 == 1)
15173		      ? 1 : -1];
15174int
15175main (void)
15176{
15177
15178  ;
15179  return 0;
15180}
15181_ACEOF
15182if ac_fn_c_try_compile "$LINENO"
15183then :
15184  ac_cv_sys_file_offset_bits=no; break
15185fi
15186rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188/* end confdefs.h.  */
15189#define _FILE_OFFSET_BITS 64
15190#include <sys/types.h>
15191 /* Check that off_t can represent 2**63 - 1 correctly.
15192    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15193    since some C++ compilers masquerading as C compilers
15194    incorrectly reject 9223372036854775807.  */
15195#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15196  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15197		       && LARGE_OFF_T % 2147483647 == 1)
15198		      ? 1 : -1];
15199int
15200main (void)
15201{
15202
15203  ;
15204  return 0;
15205}
15206_ACEOF
15207if ac_fn_c_try_compile "$LINENO"
15208then :
15209  ac_cv_sys_file_offset_bits=64; break
15210fi
15211rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15212  ac_cv_sys_file_offset_bits=unknown
15213  break
15214done
15215fi
15216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15217printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
15218case $ac_cv_sys_file_offset_bits in #(
15219  no | unknown) ;;
15220  *)
15221printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
15222;;
15223esac
15224rm -rf conftest*
15225  if test $ac_cv_sys_file_offset_bits = unknown; then
15226    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15227printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
15228if test ${ac_cv_sys_large_files+y}
15229then :
15230  printf %s "(cached) " >&6
15231else $as_nop
15232  while :; do
15233  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234/* end confdefs.h.  */
15235#include <sys/types.h>
15236 /* Check that off_t can represent 2**63 - 1 correctly.
15237    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15238    since some C++ compilers masquerading as C compilers
15239    incorrectly reject 9223372036854775807.  */
15240#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15241  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15242		       && LARGE_OFF_T % 2147483647 == 1)
15243		      ? 1 : -1];
15244int
15245main (void)
15246{
15247
15248  ;
15249  return 0;
15250}
15251_ACEOF
15252if ac_fn_c_try_compile "$LINENO"
15253then :
15254  ac_cv_sys_large_files=no; break
15255fi
15256rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15257  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258/* end confdefs.h.  */
15259#define _LARGE_FILES 1
15260#include <sys/types.h>
15261 /* Check that off_t can represent 2**63 - 1 correctly.
15262    We can't simply define LARGE_OFF_T to be 9223372036854775807,
15263    since some C++ compilers masquerading as C compilers
15264    incorrectly reject 9223372036854775807.  */
15265#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
15266  int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15267		       && LARGE_OFF_T % 2147483647 == 1)
15268		      ? 1 : -1];
15269int
15270main (void)
15271{
15272
15273  ;
15274  return 0;
15275}
15276_ACEOF
15277if ac_fn_c_try_compile "$LINENO"
15278then :
15279  ac_cv_sys_large_files=1; break
15280fi
15281rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15282  ac_cv_sys_large_files=unknown
15283  break
15284done
15285fi
15286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15287printf "%s\n" "$ac_cv_sys_large_files" >&6; }
15288case $ac_cv_sys_large_files in #(
15289  no | unknown) ;;
15290  *)
15291printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
15292;;
15293esac
15294rm -rf conftest*
15295  fi
15296fi
15297
15298
15299ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15300if test "x$ac_cv_func_dlopen" = xyes
15301then :
15302  LIBDL=""
15303else $as_nop
15304  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15305printf %s "checking for dlopen in -ldl... " >&6; }
15306if test ${ac_cv_lib_dl_dlopen+y}
15307then :
15308  printf %s "(cached) " >&6
15309else $as_nop
15310  ac_check_lib_save_LIBS=$LIBS
15311LIBS="-ldl  $LIBS"
15312cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313/* end confdefs.h.  */
15314
15315/* Override any GCC internal prototype to avoid an error.
15316   Use char because int might match the return type of a GCC
15317   builtin and then its argument prototype would still apply.  */
15318char dlopen ();
15319int
15320main (void)
15321{
15322return dlopen ();
15323  ;
15324  return 0;
15325}
15326_ACEOF
15327if ac_fn_c_try_link "$LINENO"
15328then :
15329  ac_cv_lib_dl_dlopen=yes
15330else $as_nop
15331  ac_cv_lib_dl_dlopen=no
15332fi
15333rm -f core conftest.err conftest.$ac_objext conftest.beam \
15334    conftest$ac_exeext conftest.$ac_ext
15335LIBS=$ac_check_lib_save_LIBS
15336fi
15337{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15338printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15339if test "x$ac_cv_lib_dl_dlopen" = xyes
15340then :
15341  LIBDL="-ldl"
15342fi
15343
15344fi
15345
15346
15347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing ceil" >&5
15348printf %s "checking for library containing ceil... " >&6; }
15349if test ${ac_cv_search_ceil+y}
15350then :
15351  printf %s "(cached) " >&6
15352else $as_nop
15353  ac_func_search_save_LIBS=$LIBS
15354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355/* end confdefs.h.  */
15356
15357/* Override any GCC internal prototype to avoid an error.
15358   Use char because int might match the return type of a GCC
15359   builtin and then its argument prototype would still apply.  */
15360char ceil ();
15361int
15362main (void)
15363{
15364return ceil ();
15365  ;
15366  return 0;
15367}
15368_ACEOF
15369for ac_lib in '' m
15370do
15371  if test -z "$ac_lib"; then
15372    ac_res="none required"
15373  else
15374    ac_res=-l$ac_lib
15375    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15376  fi
15377  if ac_fn_c_try_link "$LINENO"
15378then :
15379  ac_cv_search_ceil=$ac_res
15380fi
15381rm -f core conftest.err conftest.$ac_objext conftest.beam \
15382    conftest$ac_exeext
15383  if test ${ac_cv_search_ceil+y}
15384then :
15385  break
15386fi
15387done
15388if test ${ac_cv_search_ceil+y}
15389then :
15390
15391else $as_nop
15392  ac_cv_search_ceil=no
15393fi
15394rm conftest.$ac_ext
15395LIBS=$ac_func_search_save_LIBS
15396fi
15397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ceil" >&5
15398printf "%s\n" "$ac_cv_search_ceil" >&6; }
15399ac_res=$ac_cv_search_ceil
15400if test "$ac_res" != no
15401then :
15402  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15403
15404else $as_nop
15405
15406  as_fn_error $? "unable to find the floor() function" "$LINENO" 5
15407
15408fi
15409
15410
15411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fileno()" >&5
15412printf %s "checking for fileno()... " >&6; }
15413if test "$cross_compiling" = yes
15414then :
15415
15416	# Fallback for Cross Compiling...
15417	# This will enable the compatibility code.
15418	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15419printf "%s\n" "no" >&6; }
15420
15421else $as_nop
15422  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15423/* end confdefs.h.  */
15424
15425#include <stdio.h>
15426
15427int main(int argc, char *argv[])
15428{
15429	int fd;
15430
15431	fd = fileno(stdout);
15432
15433	return !(fd > 0);
15434}
15435
15436_ACEOF
15437if ac_fn_c_try_run "$LINENO"
15438then :
15439
15440	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15441printf "%s\n" "yes" >&6; }
15442
15443printf "%s\n" "#define HAVE_FILENO 1" >>confdefs.h
15444
15445
15446else $as_nop
15447
15448	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449printf "%s\n" "no" >&6; }
15450
15451fi
15452rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15453  conftest.$ac_objext conftest.beam conftest.$ac_ext
15454fi
15455
15456
15457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the %z format string in strftime()" >&5
15458printf %s "checking for the %z format string in strftime()... " >&6; }
15459if test "$cross_compiling" = yes
15460then :
15461
15462	# Fallback for Cross Compiling...
15463	# This will enable the compatibility code.
15464	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15465printf "%s\n" "no" >&6; }
15466
15467else $as_nop
15468  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15469/* end confdefs.h.  */
15470
15471#ifdef HAVE_SYS_TIME_H
15472#include <sys/time.h>
15473#endif
15474#include <time.h>
15475#include <stdio.h>
15476
15477int main()
15478{
15479	char buf[6];
15480	time_t t = time(NULL);
15481
15482	if (strftime(buf, sizeof(buf), "%z", localtime(&t)) != 5)
15483		return 1;
15484
15485	fprintf(stderr, "strftime(\"%%z\") yields: \"%s\"\n", buf);
15486
15487	return !((buf[0] == '-' || buf[0] == '+') &&
15488	         (buf[1] >= '0' && buf[1] <= '9') &&
15489	         (buf[2] >= '0' && buf[2] <= '9') &&
15490	         (buf[3] >= '0' && buf[3] <= '9') &&
15491	         (buf[4] >= '0' && buf[4] <= '9')
15492	        );
15493}
15494
15495_ACEOF
15496if ac_fn_c_try_run "$LINENO"
15497then :
15498
15499	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15500printf "%s\n" "yes" >&6; }
15501
15502printf "%s\n" "#define HAVE_STRFTIME_Z_FORMAT 1" >>confdefs.h
15503
15504
15505else $as_nop
15506
15507	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15508printf "%s\n" "no" >&6; }
15509
15510fi
15511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15512  conftest.$ac_objext conftest.beam conftest.$ac_ext
15513fi
15514
15515
15516# before gettexting, in case iconv matters
15517case "$host_os" in
15518darwin*)
15519	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for res_query in -lresolv" >&5
15520printf %s "checking for res_query in -lresolv... " >&6; }
15521if test ${ac_cv_lib_resolv_res_query+y}
15522then :
15523  printf %s "(cached) " >&6
15524else $as_nop
15525  ac_check_lib_save_LIBS=$LIBS
15526LIBS="-lresolv  $LIBS"
15527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528/* end confdefs.h.  */
15529
15530/* Override any GCC internal prototype to avoid an error.
15531   Use char because int might match the return type of a GCC
15532   builtin and then its argument prototype would still apply.  */
15533char res_query ();
15534int
15535main (void)
15536{
15537return res_query ();
15538  ;
15539  return 0;
15540}
15541_ACEOF
15542if ac_fn_c_try_link "$LINENO"
15543then :
15544  ac_cv_lib_resolv_res_query=yes
15545else $as_nop
15546  ac_cv_lib_resolv_res_query=no
15547fi
15548rm -f core conftest.err conftest.$ac_objext conftest.beam \
15549    conftest$ac_exeext conftest.$ac_ext
15550LIBS=$ac_check_lib_save_LIBS
15551fi
15552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_query" >&5
15553printf "%s\n" "$ac_cv_lib_resolv_res_query" >&6; }
15554if test "x$ac_cv_lib_resolv_res_query" = xyes
15555then :
15556  printf "%s\n" "#define HAVE_LIBRESOLV 1" >>confdefs.h
15557
15558  LIBS="-lresolv $LIBS"
15559
15560fi
15561
15562
15563	ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
15564if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes
15565then :
15566
15567		ac_fn_c_check_header_compile "$LINENO" "IOKit/IOKitLib.h" "ac_cv_header_IOKit_IOKitLib_h" "$ac_includes_default"
15568if test "x$ac_cv_header_IOKit_IOKitLib_h" = xyes
15569then :
15570
15571
15572printf "%s\n" "#define HAVE_IOKIT 1" >>confdefs.h
15573
15574			LIBS="$LIBS -framework IOKit -framework CoreFoundation"
15575
15576fi
15577
15578
15579fi
15580
15581
15582	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fink" >&5
15583printf %s "checking for fink... " >&6; }
15584	if test -d /sw; then
15585		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found, adding /sw to search paths" >&5
15586printf "%s\n" "found, adding /sw to search paths" >&6; }
15587		CPPFLAGS="$CPPFLAGS -I/sw/include"
15588		LDFLAGS="$LDFLAGS -L/sw/lib"
15589	else
15590		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found" >&5
15591printf "%s\n" "not found" >&6; }
15592	fi
15593	;;
15594*)
15595	;;
15596esac
15597
15598# Check whether --enable-nls was given.
15599if test ${enable_nls+y}
15600then :
15601  enableval=$enable_nls; enable_i18n="$enableval"
15602else $as_nop
15603  enable_i18n=yes
15604fi
15605
15606
15607if test x$enable_i18n = xyes; then
15608
15609  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15610printf %s "checking whether NLS is requested... " >&6; }
15611    # Check whether --enable-nls was given.
15612if test ${enable_nls+y}
15613then :
15614  enableval=$enable_nls; USE_NLS=$enableval
15615else $as_nop
15616  USE_NLS=yes
15617fi
15618
15619  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15620printf "%s\n" "$USE_NLS" >&6; }
15621
15622
15623
15624
15625case "$am__api_version" in
15626    1.01234)
15627	as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
15628    ;;
15629    *)
15630    ;;
15631esac
15632
15633INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15634INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
15635INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
15636if test -n ""; then
15637    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intltool >= " >&5
15638printf %s "checking for intltool >= ... " >&6; }
15639    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
15640printf "%s\n" "$INTLTOOL_APPLIED_VERSION found" >&6; }
15641    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
15642	as_fn_error $? "Your intltool is too old.  You need intltool  or later." "$LINENO" 5
15643fi
15644
15645# Extract the first word of "intltool-update", so it can be a program name with args.
15646set dummy intltool-update; ac_word=$2
15647{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15648printf %s "checking for $ac_word... " >&6; }
15649if test ${ac_cv_path_INTLTOOL_UPDATE+y}
15650then :
15651  printf %s "(cached) " >&6
15652else $as_nop
15653  case $INTLTOOL_UPDATE in
15654  [\\/]* | ?:[\\/]*)
15655  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
15656  ;;
15657  *)
15658  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659for as_dir in $PATH
15660do
15661  IFS=$as_save_IFS
15662  case $as_dir in #(((
15663    '') as_dir=./ ;;
15664    */) ;;
15665    *) as_dir=$as_dir/ ;;
15666  esac
15667    for ac_exec_ext in '' $ac_executable_extensions; do
15668  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15669    ac_cv_path_INTLTOOL_UPDATE="$as_dir$ac_word$ac_exec_ext"
15670    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15671    break 2
15672  fi
15673done
15674  done
15675IFS=$as_save_IFS
15676
15677  ;;
15678esac
15679fi
15680INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
15681if test -n "$INTLTOOL_UPDATE"; then
15682  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
15683printf "%s\n" "$INTLTOOL_UPDATE" >&6; }
15684else
15685  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15686printf "%s\n" "no" >&6; }
15687fi
15688
15689
15690# Extract the first word of "intltool-merge", so it can be a program name with args.
15691set dummy intltool-merge; ac_word=$2
15692{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15693printf %s "checking for $ac_word... " >&6; }
15694if test ${ac_cv_path_INTLTOOL_MERGE+y}
15695then :
15696  printf %s "(cached) " >&6
15697else $as_nop
15698  case $INTLTOOL_MERGE in
15699  [\\/]* | ?:[\\/]*)
15700  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
15701  ;;
15702  *)
15703  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15704for as_dir in $PATH
15705do
15706  IFS=$as_save_IFS
15707  case $as_dir in #(((
15708    '') as_dir=./ ;;
15709    */) ;;
15710    *) as_dir=$as_dir/ ;;
15711  esac
15712    for ac_exec_ext in '' $ac_executable_extensions; do
15713  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15714    ac_cv_path_INTLTOOL_MERGE="$as_dir$ac_word$ac_exec_ext"
15715    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15716    break 2
15717  fi
15718done
15719  done
15720IFS=$as_save_IFS
15721
15722  ;;
15723esac
15724fi
15725INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
15726if test -n "$INTLTOOL_MERGE"; then
15727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
15728printf "%s\n" "$INTLTOOL_MERGE" >&6; }
15729else
15730  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731printf "%s\n" "no" >&6; }
15732fi
15733
15734
15735# Extract the first word of "intltool-extract", so it can be a program name with args.
15736set dummy intltool-extract; ac_word=$2
15737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15738printf %s "checking for $ac_word... " >&6; }
15739if test ${ac_cv_path_INTLTOOL_EXTRACT+y}
15740then :
15741  printf %s "(cached) " >&6
15742else $as_nop
15743  case $INTLTOOL_EXTRACT in
15744  [\\/]* | ?:[\\/]*)
15745  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
15746  ;;
15747  *)
15748  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15749for as_dir in $PATH
15750do
15751  IFS=$as_save_IFS
15752  case $as_dir in #(((
15753    '') as_dir=./ ;;
15754    */) ;;
15755    *) as_dir=$as_dir/ ;;
15756  esac
15757    for ac_exec_ext in '' $ac_executable_extensions; do
15758  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15759    ac_cv_path_INTLTOOL_EXTRACT="$as_dir$ac_word$ac_exec_ext"
15760    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15761    break 2
15762  fi
15763done
15764  done
15765IFS=$as_save_IFS
15766
15767  ;;
15768esac
15769fi
15770INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
15771if test -n "$INTLTOOL_EXTRACT"; then
15772  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
15773printf "%s\n" "$INTLTOOL_EXTRACT" >&6; }
15774else
15775  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15776printf "%s\n" "no" >&6; }
15777fi
15778
15779
15780if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
15781    as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
15782fi
15783
15784if test -z "$AM_DEFAULT_VERBOSITY"; then
15785  AM_DEFAULT_VERBOSITY=1
15786fi
15787
15788
15789INTLTOOL_V_MERGE='$(INTLTOOL__v_MERGE_$(V))'
15790INTLTOOL__v_MERGE_='$(INTLTOOL__v_MERGE_$(AM_DEFAULT_VERBOSITY))'
15791INTLTOOL__v_MERGE_0='@echo "  ITMRG " $@;'
15792
15793
15794
15795
15796INTLTOOL_V_MERGE_OPTIONS='$(intltool__v_merge_options_$(V))'
15797intltool__v_merge_options_='$(intltool__v_merge_options_$(AM_DEFAULT_VERBOSITY))'
15798intltool__v_merge_options_0='-q'
15799
15800
15801
15802
15803  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15804INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15805     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15806     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15807      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -p $(top_srcdir)/po $< $@'
15808     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15809   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15810    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15811INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15812       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15813      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15814if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge 5000; then
15815      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u --no-translations $< $@'
15816else
15817      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; $(INTLTOOL_V_MERGE)_it_tmp_dir=tmp.intltool.$$RANDOM && mkdir $$_it_tmp_dir && LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u $$_it_tmp_dir $< $@ && rmdir $$_it_tmp_dir'
15818fi
15819      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15820      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15821    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15822  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15823    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15824    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15825   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_V_MERGE)LC_ALL=C $(INTLTOOL_MERGE) $(INTLTOOL_V_MERGE_OPTIONS) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923# Check the gettext tools to make sure they are GNU
15924# Extract the first word of "xgettext", so it can be a program name with args.
15925set dummy xgettext; ac_word=$2
15926{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15927printf %s "checking for $ac_word... " >&6; }
15928if test ${ac_cv_path_XGETTEXT+y}
15929then :
15930  printf %s "(cached) " >&6
15931else $as_nop
15932  case $XGETTEXT in
15933  [\\/]* | ?:[\\/]*)
15934  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15935  ;;
15936  *)
15937  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15938for as_dir in $PATH
15939do
15940  IFS=$as_save_IFS
15941  case $as_dir in #(((
15942    '') as_dir=./ ;;
15943    */) ;;
15944    *) as_dir=$as_dir/ ;;
15945  esac
15946    for ac_exec_ext in '' $ac_executable_extensions; do
15947  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15948    ac_cv_path_XGETTEXT="$as_dir$ac_word$ac_exec_ext"
15949    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15950    break 2
15951  fi
15952done
15953  done
15954IFS=$as_save_IFS
15955
15956  ;;
15957esac
15958fi
15959XGETTEXT=$ac_cv_path_XGETTEXT
15960if test -n "$XGETTEXT"; then
15961  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15962printf "%s\n" "$XGETTEXT" >&6; }
15963else
15964  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15965printf "%s\n" "no" >&6; }
15966fi
15967
15968
15969# Extract the first word of "msgmerge", so it can be a program name with args.
15970set dummy msgmerge; ac_word=$2
15971{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15972printf %s "checking for $ac_word... " >&6; }
15973if test ${ac_cv_path_MSGMERGE+y}
15974then :
15975  printf %s "(cached) " >&6
15976else $as_nop
15977  case $MSGMERGE in
15978  [\\/]* | ?:[\\/]*)
15979  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15980  ;;
15981  *)
15982  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15983for as_dir in $PATH
15984do
15985  IFS=$as_save_IFS
15986  case $as_dir in #(((
15987    '') as_dir=./ ;;
15988    */) ;;
15989    *) as_dir=$as_dir/ ;;
15990  esac
15991    for ac_exec_ext in '' $ac_executable_extensions; do
15992  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15993    ac_cv_path_MSGMERGE="$as_dir$ac_word$ac_exec_ext"
15994    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15995    break 2
15996  fi
15997done
15998  done
15999IFS=$as_save_IFS
16000
16001  ;;
16002esac
16003fi
16004MSGMERGE=$ac_cv_path_MSGMERGE
16005if test -n "$MSGMERGE"; then
16006  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16007printf "%s\n" "$MSGMERGE" >&6; }
16008else
16009  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16010printf "%s\n" "no" >&6; }
16011fi
16012
16013
16014# Extract the first word of "msgfmt", so it can be a program name with args.
16015set dummy msgfmt; ac_word=$2
16016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16017printf %s "checking for $ac_word... " >&6; }
16018if test ${ac_cv_path_MSGFMT+y}
16019then :
16020  printf %s "(cached) " >&6
16021else $as_nop
16022  case $MSGFMT in
16023  [\\/]* | ?:[\\/]*)
16024  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16025  ;;
16026  *)
16027  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028for as_dir in $PATH
16029do
16030  IFS=$as_save_IFS
16031  case $as_dir in #(((
16032    '') as_dir=./ ;;
16033    */) ;;
16034    *) as_dir=$as_dir/ ;;
16035  esac
16036    for ac_exec_ext in '' $ac_executable_extensions; do
16037  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16038    ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext"
16039    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16040    break 2
16041  fi
16042done
16043  done
16044IFS=$as_save_IFS
16045
16046  ;;
16047esac
16048fi
16049MSGFMT=$ac_cv_path_MSGFMT
16050if test -n "$MSGFMT"; then
16051  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16052printf "%s\n" "$MSGFMT" >&6; }
16053else
16054  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16055printf "%s\n" "no" >&6; }
16056fi
16057
16058
16059# Extract the first word of "gmsgfmt", so it can be a program name with args.
16060set dummy gmsgfmt; ac_word=$2
16061{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16062printf %s "checking for $ac_word... " >&6; }
16063if test ${ac_cv_path_GMSGFMT+y}
16064then :
16065  printf %s "(cached) " >&6
16066else $as_nop
16067  case $GMSGFMT in
16068  [\\/]* | ?:[\\/]*)
16069  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16070  ;;
16071  *)
16072  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16073for as_dir in $PATH
16074do
16075  IFS=$as_save_IFS
16076  case $as_dir in #(((
16077    '') as_dir=./ ;;
16078    */) ;;
16079    *) as_dir=$as_dir/ ;;
16080  esac
16081    for ac_exec_ext in '' $ac_executable_extensions; do
16082  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16083    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16084    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16085    break 2
16086  fi
16087done
16088  done
16089IFS=$as_save_IFS
16090
16091  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16092  ;;
16093esac
16094fi
16095GMSGFMT=$ac_cv_path_GMSGFMT
16096if test -n "$GMSGFMT"; then
16097  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16098printf "%s\n" "$GMSGFMT" >&6; }
16099else
16100  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16101printf "%s\n" "no" >&6; }
16102fi
16103
16104
16105if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
16106    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16107fi
16108xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
16109mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
16110mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
16111if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
16112    as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
16113fi
16114
16115# Extract the first word of "perl", so it can be a program name with args.
16116set dummy perl; ac_word=$2
16117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16118printf %s "checking for $ac_word... " >&6; }
16119if test ${ac_cv_path_INTLTOOL_PERL+y}
16120then :
16121  printf %s "(cached) " >&6
16122else $as_nop
16123  case $INTLTOOL_PERL in
16124  [\\/]* | ?:[\\/]*)
16125  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
16126  ;;
16127  *)
16128  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16129for as_dir in $PATH
16130do
16131  IFS=$as_save_IFS
16132  case $as_dir in #(((
16133    '') as_dir=./ ;;
16134    */) ;;
16135    *) as_dir=$as_dir/ ;;
16136  esac
16137    for ac_exec_ext in '' $ac_executable_extensions; do
16138  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16139    ac_cv_path_INTLTOOL_PERL="$as_dir$ac_word$ac_exec_ext"
16140    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16141    break 2
16142  fi
16143done
16144  done
16145IFS=$as_save_IFS
16146
16147  ;;
16148esac
16149fi
16150INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
16151if test -n "$INTLTOOL_PERL"; then
16152  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
16153printf "%s\n" "$INTLTOOL_PERL" >&6; }
16154else
16155  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16156printf "%s\n" "no" >&6; }
16157fi
16158
16159
16160if test -z "$INTLTOOL_PERL"; then
16161   as_fn_error $? "perl not found" "$LINENO" 5
16162fi
16163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
16164printf %s "checking for perl >= 5.8.1... " >&6; }
16165$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
16166if test $? -ne 0; then
16167   as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
16168else
16169   IT_PERL_VERSION=`$INTLTOOL_PERL -e "printf '%vd', $^V"`
16170   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
16171printf "%s\n" "$IT_PERL_VERSION" >&6; }
16172fi
16173if test "x" != "xno-xml"; then
16174   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
16175printf %s "checking for XML::Parser... " >&6; }
16176   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
16177       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
16178printf "%s\n" "ok" >&6; }
16179   else
16180       as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
16181   fi
16182fi
16183
16184# Substitute ALL_LINGUAS so we can use it in po/Makefile
16185
16186
16187
16188
16189
16190	GETTEXT_PACKAGE=pidgin
16191
16192
16193	ALL_LINGUAS="af am ar ar_SA as ast az be@latin bg bn_IN bn br brx bs ca ca@valencia cs da de dz el en_AU en_CA en_GB eo es_AR es et eu fa fi fr ga gl gu he hi hr hu id it ja ka kk km kn ko ks ku_IQ ku lt lv mai mhr mk ml mn mr ms_MY my_MM nb ne nl nn oc or pa pl ps pt_BR pt ro ru sd si sk sl sq sr@latin sr sv sw ta te th tr tt uk ur uz vi xh zh_CN zh_HK zh_TW"
16194
16195   ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
16196if test "x$ac_cv_header_locale_h" = xyes
16197then :
16198  printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
16199
16200fi
16201
16202    if test $ac_cv_header_locale_h = yes; then
16203    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
16204printf %s "checking for LC_MESSAGES... " >&6; }
16205if test ${am_cv_val_LC_MESSAGES+y}
16206then :
16207  printf %s "(cached) " >&6
16208else $as_nop
16209  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16210/* end confdefs.h.  */
16211#include <locale.h>
16212int
16213main (void)
16214{
16215return LC_MESSAGES
16216  ;
16217  return 0;
16218}
16219_ACEOF
16220if ac_fn_c_try_link "$LINENO"
16221then :
16222  am_cv_val_LC_MESSAGES=yes
16223else $as_nop
16224  am_cv_val_LC_MESSAGES=no
16225fi
16226rm -f core conftest.err conftest.$ac_objext conftest.beam \
16227    conftest$ac_exeext conftest.$ac_ext
16228fi
16229{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
16230printf "%s\n" "$am_cv_val_LC_MESSAGES" >&6; }
16231    if test $am_cv_val_LC_MESSAGES = yes; then
16232
16233printf "%s\n" "#define HAVE_LC_MESSAGES 1" >>confdefs.h
16234
16235    fi
16236  fi
16237     USE_NLS=yes
16238
16239
16240    gt_cv_have_gettext=no
16241
16242    CATOBJEXT=NONE
16243    XGETTEXT=:
16244    INTLLIBS=
16245
16246
16247    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16248printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
16249if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
16250then :
16251  printf %s "(cached) " >&6
16252else $as_nop
16253  gt_save_LIBS="$LIBS"
16254     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16255     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16256/* end confdefs.h.  */
16257#include <CoreFoundation/CFPreferences.h>
16258int
16259main (void)
16260{
16261CFPreferencesCopyAppValue(NULL, NULL)
16262  ;
16263  return 0;
16264}
16265_ACEOF
16266if ac_fn_c_try_link "$LINENO"
16267then :
16268  gt_cv_func_CFPreferencesCopyAppValue=yes
16269else $as_nop
16270  gt_cv_func_CFPreferencesCopyAppValue=no
16271fi
16272rm -f core conftest.err conftest.$ac_objext conftest.beam \
16273    conftest$ac_exeext conftest.$ac_ext
16274     LIBS="$gt_save_LIBS"
16275fi
16276{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16277printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16278  if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16279
16280printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16281
16282  fi
16283    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16284printf %s "checking for CFLocaleCopyCurrent... " >&6; }
16285if test ${gt_cv_func_CFLocaleCopyCurrent+y}
16286then :
16287  printf %s "(cached) " >&6
16288else $as_nop
16289  gt_save_LIBS="$LIBS"
16290     LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16291     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16292/* end confdefs.h.  */
16293#include <CoreFoundation/CFLocale.h>
16294int
16295main (void)
16296{
16297CFLocaleCopyCurrent();
16298  ;
16299  return 0;
16300}
16301_ACEOF
16302if ac_fn_c_try_link "$LINENO"
16303then :
16304  gt_cv_func_CFLocaleCopyCurrent=yes
16305else $as_nop
16306  gt_cv_func_CFLocaleCopyCurrent=no
16307fi
16308rm -f core conftest.err conftest.$ac_objext conftest.beam \
16309    conftest$ac_exeext conftest.$ac_ext
16310     LIBS="$gt_save_LIBS"
16311fi
16312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16313printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16314  if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16315
16316printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16317
16318  fi
16319  INTL_MACOSX_LIBS=
16320  if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16321    INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16322  fi
16323
16324
16325
16326    ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16327if test "x$ac_cv_header_libintl_h" = xyes
16328then :
16329  gt_cv_func_dgettext_libintl="no"
16330      libintl_extra_libs=""
16331
16332      #
16333      # First check in libc
16334      #
16335      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
16336printf %s "checking for ngettext in libc... " >&6; }
16337if test ${gt_cv_func_ngettext_libc+y}
16338then :
16339  printf %s "(cached) " >&6
16340else $as_nop
16341  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16342/* end confdefs.h.  */
16343
16344#include <libintl.h>
16345
16346int
16347main (void)
16348{
16349return !ngettext ("","", 1)
16350  ;
16351  return 0;
16352}
16353_ACEOF
16354if ac_fn_c_try_link "$LINENO"
16355then :
16356  gt_cv_func_ngettext_libc=yes
16357else $as_nop
16358  gt_cv_func_ngettext_libc=no
16359fi
16360rm -f core conftest.err conftest.$ac_objext conftest.beam \
16361    conftest$ac_exeext conftest.$ac_ext
16362
16363fi
16364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
16365printf "%s\n" "$gt_cv_func_ngettext_libc" >&6; }
16366
16367      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16368	      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
16369printf %s "checking for dgettext in libc... " >&6; }
16370if test ${gt_cv_func_dgettext_libc+y}
16371then :
16372  printf %s "(cached) " >&6
16373else $as_nop
16374  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16375/* end confdefs.h.  */
16376
16377#include <libintl.h>
16378
16379int
16380main (void)
16381{
16382return !dgettext ("","")
16383  ;
16384  return 0;
16385}
16386_ACEOF
16387if ac_fn_c_try_link "$LINENO"
16388then :
16389  gt_cv_func_dgettext_libc=yes
16390else $as_nop
16391  gt_cv_func_dgettext_libc=no
16392fi
16393rm -f core conftest.err conftest.$ac_objext conftest.beam \
16394    conftest$ac_exeext conftest.$ac_ext
16395
16396fi
16397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
16398printf "%s\n" "$gt_cv_func_dgettext_libc" >&6; }
16399      fi
16400
16401      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
16402        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16403if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
16404then :
16405  printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
16406
16407fi
16408
16409      fi
16410
16411      #
16412      # If we don't have everything we want, check in libintl
16413      #
16414      if test "$gt_cv_func_dgettext_libc" != "yes" \
16415	 || test "$gt_cv_func_ngettext_libc" != "yes" \
16416         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
16417
16418        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
16419printf %s "checking for bindtextdomain in -lintl... " >&6; }
16420if test ${ac_cv_lib_intl_bindtextdomain+y}
16421then :
16422  printf %s "(cached) " >&6
16423else $as_nop
16424  ac_check_lib_save_LIBS=$LIBS
16425LIBS="-lintl  $LIBS"
16426cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427/* end confdefs.h.  */
16428
16429/* Override any GCC internal prototype to avoid an error.
16430   Use char because int might match the return type of a GCC
16431   builtin and then its argument prototype would still apply.  */
16432char bindtextdomain ();
16433int
16434main (void)
16435{
16436return bindtextdomain ();
16437  ;
16438  return 0;
16439}
16440_ACEOF
16441if ac_fn_c_try_link "$LINENO"
16442then :
16443  ac_cv_lib_intl_bindtextdomain=yes
16444else $as_nop
16445  ac_cv_lib_intl_bindtextdomain=no
16446fi
16447rm -f core conftest.err conftest.$ac_objext conftest.beam \
16448    conftest$ac_exeext conftest.$ac_ext
16449LIBS=$ac_check_lib_save_LIBS
16450fi
16451{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
16452printf "%s\n" "$ac_cv_lib_intl_bindtextdomain" >&6; }
16453if test "x$ac_cv_lib_intl_bindtextdomain" = xyes
16454then :
16455  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
16456printf %s "checking for ngettext in -lintl... " >&6; }
16457if test ${ac_cv_lib_intl_ngettext+y}
16458then :
16459  printf %s "(cached) " >&6
16460else $as_nop
16461  ac_check_lib_save_LIBS=$LIBS
16462LIBS="-lintl  $LIBS"
16463cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16464/* end confdefs.h.  */
16465
16466/* Override any GCC internal prototype to avoid an error.
16467   Use char because int might match the return type of a GCC
16468   builtin and then its argument prototype would still apply.  */
16469char ngettext ();
16470int
16471main (void)
16472{
16473return ngettext ();
16474  ;
16475  return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_link "$LINENO"
16479then :
16480  ac_cv_lib_intl_ngettext=yes
16481else $as_nop
16482  ac_cv_lib_intl_ngettext=no
16483fi
16484rm -f core conftest.err conftest.$ac_objext conftest.beam \
16485    conftest$ac_exeext conftest.$ac_ext
16486LIBS=$ac_check_lib_save_LIBS
16487fi
16488{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16489printf "%s\n" "$ac_cv_lib_intl_ngettext" >&6; }
16490if test "x$ac_cv_lib_intl_ngettext" = xyes
16491then :
16492  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
16493printf %s "checking for dgettext in -lintl... " >&6; }
16494if test ${ac_cv_lib_intl_dgettext+y}
16495then :
16496  printf %s "(cached) " >&6
16497else $as_nop
16498  ac_check_lib_save_LIBS=$LIBS
16499LIBS="-lintl  $LIBS"
16500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501/* end confdefs.h.  */
16502
16503/* Override any GCC internal prototype to avoid an error.
16504   Use char because int might match the return type of a GCC
16505   builtin and then its argument prototype would still apply.  */
16506char dgettext ();
16507int
16508main (void)
16509{
16510return dgettext ();
16511  ;
16512  return 0;
16513}
16514_ACEOF
16515if ac_fn_c_try_link "$LINENO"
16516then :
16517  ac_cv_lib_intl_dgettext=yes
16518else $as_nop
16519  ac_cv_lib_intl_dgettext=no
16520fi
16521rm -f core conftest.err conftest.$ac_objext conftest.beam \
16522    conftest$ac_exeext conftest.$ac_ext
16523LIBS=$ac_check_lib_save_LIBS
16524fi
16525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
16526printf "%s\n" "$ac_cv_lib_intl_dgettext" >&6; }
16527if test "x$ac_cv_lib_intl_dgettext" = xyes
16528then :
16529  gt_cv_func_dgettext_libintl=yes
16530fi
16531
16532fi
16533
16534fi
16535
16536
16537	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
16538	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
16539printf %s "checking if -liconv is needed to use gettext... " >&6; }
16540	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: " >&5
16541printf "%s\n" "" >&6; }
16542  	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
16543printf %s "checking for ngettext in -lintl... " >&6; }
16544if test ${ac_cv_lib_intl_ngettext+y}
16545then :
16546  printf %s "(cached) " >&6
16547else $as_nop
16548  ac_check_lib_save_LIBS=$LIBS
16549LIBS="-lintl -liconv $LIBS"
16550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551/* end confdefs.h.  */
16552
16553/* Override any GCC internal prototype to avoid an error.
16554   Use char because int might match the return type of a GCC
16555   builtin and then its argument prototype would still apply.  */
16556char ngettext ();
16557int
16558main (void)
16559{
16560return ngettext ();
16561  ;
16562  return 0;
16563}
16564_ACEOF
16565if ac_fn_c_try_link "$LINENO"
16566then :
16567  ac_cv_lib_intl_ngettext=yes
16568else $as_nop
16569  ac_cv_lib_intl_ngettext=no
16570fi
16571rm -f core conftest.err conftest.$ac_objext conftest.beam \
16572    conftest$ac_exeext conftest.$ac_ext
16573LIBS=$ac_check_lib_save_LIBS
16574fi
16575{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
16576printf "%s\n" "$ac_cv_lib_intl_ngettext" >&6; }
16577if test "x$ac_cv_lib_intl_ngettext" = xyes
16578then :
16579  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
16580printf %s "checking for dcgettext in -lintl... " >&6; }
16581if test ${ac_cv_lib_intl_dcgettext+y}
16582then :
16583  printf %s "(cached) " >&6
16584else $as_nop
16585  ac_check_lib_save_LIBS=$LIBS
16586LIBS="-lintl -liconv $LIBS"
16587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16588/* end confdefs.h.  */
16589
16590/* Override any GCC internal prototype to avoid an error.
16591   Use char because int might match the return type of a GCC
16592   builtin and then its argument prototype would still apply.  */
16593char dcgettext ();
16594int
16595main (void)
16596{
16597return dcgettext ();
16598  ;
16599  return 0;
16600}
16601_ACEOF
16602if ac_fn_c_try_link "$LINENO"
16603then :
16604  ac_cv_lib_intl_dcgettext=yes
16605else $as_nop
16606  ac_cv_lib_intl_dcgettext=no
16607fi
16608rm -f core conftest.err conftest.$ac_objext conftest.beam \
16609    conftest$ac_exeext conftest.$ac_ext
16610LIBS=$ac_check_lib_save_LIBS
16611fi
16612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
16613printf "%s\n" "$ac_cv_lib_intl_dcgettext" >&6; }
16614if test "x$ac_cv_lib_intl_dcgettext" = xyes
16615then :
16616  gt_cv_func_dgettext_libintl=yes
16617			libintl_extra_libs=-liconv
16618else $as_nop
16619  :
16620fi
16621
16622else $as_nop
16623  :
16624fi
16625
16626        fi
16627
16628        #
16629        # If we found libintl, then check in it for bind_textdomain_codeset();
16630        # we'll prefer libc if neither have bind_textdomain_codeset(),
16631        # and both have dgettext and ngettext
16632        #
16633        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
16634          glib_save_LIBS="$LIBS"
16635          LIBS="$LIBS -lintl $libintl_extra_libs"
16636          unset ac_cv_func_bind_textdomain_codeset
16637          ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16638if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
16639then :
16640  printf "%s\n" "#define HAVE_BIND_TEXTDOMAIN_CODESET 1" >>confdefs.h
16641
16642fi
16643
16644          LIBS="$glib_save_LIBS"
16645
16646          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
16647            gt_cv_func_dgettext_libc=no
16648          else
16649            if test "$gt_cv_func_dgettext_libc" = "yes" \
16650		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
16651              gt_cv_func_dgettext_libintl=no
16652            fi
16653          fi
16654        fi
16655      fi
16656
16657      if test "$gt_cv_func_dgettext_libc" = "yes" \
16658	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
16659        gt_cv_have_gettext=yes
16660      fi
16661
16662      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
16663        INTLLIBS="-lintl $libintl_extra_libs $INTL_MACOSX_LIBS"
16664      fi
16665
16666      if test "$gt_cv_have_gettext" = "yes"; then
16667
16668printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
16669
16670	# Extract the first word of "msgfmt", so it can be a program name with args.
16671set dummy msgfmt; ac_word=$2
16672{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16673printf %s "checking for $ac_word... " >&6; }
16674if test ${ac_cv_path_MSGFMT+y}
16675then :
16676  printf %s "(cached) " >&6
16677else $as_nop
16678  case "$MSGFMT" in
16679  /*)
16680  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16681  ;;
16682  *)
16683  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16684  for ac_dir in $PATH; do
16685    test -z "$ac_dir" && ac_dir=.
16686    if test -f $ac_dir/$ac_word; then
16687      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
16688	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
16689	break
16690      fi
16691    fi
16692  done
16693  IFS="$ac_save_ifs"
16694  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
16695  ;;
16696esac
16697fi
16698MSGFMT="$ac_cv_path_MSGFMT"
16699if test "$MSGFMT" != "no"; then
16700  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16701printf "%s\n" "$MSGFMT" >&6; }
16702else
16703  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16704printf "%s\n" "no" >&6; }
16705fi
16706	if test "$MSGFMT" != "no"; then
16707          glib_save_LIBS="$LIBS"
16708          LIBS="$LIBS $INTLLIBS"
16709	  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
16710if test "x$ac_cv_func_dcgettext" = xyes
16711then :
16712  printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
16713
16714fi
16715
16716	  MSGFMT_OPTS=
16717	  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
16718printf %s "checking if msgfmt accepts -c... " >&6; }
16719	  cat >conftest.foo <<_ACEOF
16720
16721msgid ""
16722msgstr ""
16723"Content-Type: text/plain; charset=UTF-8\n"
16724"Project-Id-Version: test 1.0\n"
16725"PO-Revision-Date: 2007-02-15 12:01+0100\n"
16726"Last-Translator: test <foo@bar.xx>\n"
16727"Language-Team: C <LL@li.org>\n"
16728"MIME-Version: 1.0\n"
16729"Content-Transfer-Encoding: 8bit\n"
16730
16731_ACEOF
16732if { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
16733  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
16734  ac_status=$?
16735  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16736  test $ac_status = 0; }; then
16737  MSGFMT_OPTS=-c; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16738printf "%s\n" "yes" >&6; }
16739else { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16740printf "%s\n" "no" >&6; }
16741echo "$as_me: failed input was:" >&5
16742sed 's/^/| /' conftest.foo >&5
16743fi
16744
16745	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
16746set dummy gmsgfmt; ac_word=$2
16747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16748printf %s "checking for $ac_word... " >&6; }
16749if test ${ac_cv_path_GMSGFMT+y}
16750then :
16751  printf %s "(cached) " >&6
16752else $as_nop
16753  case $GMSGFMT in
16754  [\\/]* | ?:[\\/]*)
16755  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16756  ;;
16757  *)
16758  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16759for as_dir in $PATH
16760do
16761  IFS=$as_save_IFS
16762  case $as_dir in #(((
16763    '') as_dir=./ ;;
16764    */) ;;
16765    *) as_dir=$as_dir/ ;;
16766  esac
16767    for ac_exec_ext in '' $ac_executable_extensions; do
16768  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16769    ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
16770    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16771    break 2
16772  fi
16773done
16774  done
16775IFS=$as_save_IFS
16776
16777  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16778  ;;
16779esac
16780fi
16781GMSGFMT=$ac_cv_path_GMSGFMT
16782if test -n "$GMSGFMT"; then
16783  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16784printf "%s\n" "$GMSGFMT" >&6; }
16785else
16786  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16787printf "%s\n" "no" >&6; }
16788fi
16789
16790
16791	  # Extract the first word of "xgettext", so it can be a program name with args.
16792set dummy xgettext; ac_word=$2
16793{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16794printf %s "checking for $ac_word... " >&6; }
16795if test ${ac_cv_path_XGETTEXT+y}
16796then :
16797  printf %s "(cached) " >&6
16798else $as_nop
16799  case "$XGETTEXT" in
16800  /*)
16801  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16802  ;;
16803  *)
16804  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
16805  for ac_dir in $PATH; do
16806    test -z "$ac_dir" && ac_dir=.
16807    if test -f $ac_dir/$ac_word; then
16808      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
16809	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
16810	break
16811      fi
16812    fi
16813  done
16814  IFS="$ac_save_ifs"
16815  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16816  ;;
16817esac
16818fi
16819XGETTEXT="$ac_cv_path_XGETTEXT"
16820if test "$XGETTEXT" != ":"; then
16821  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16822printf "%s\n" "$XGETTEXT" >&6; }
16823else
16824  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16825printf "%s\n" "no" >&6; }
16826fi
16827
16828	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16829/* end confdefs.h.  */
16830
16831int
16832main (void)
16833{
16834extern int _nl_msg_cat_cntr;
16835			 return _nl_msg_cat_cntr
16836  ;
16837  return 0;
16838}
16839_ACEOF
16840if ac_fn_c_try_link "$LINENO"
16841then :
16842  CATOBJEXT=.gmo
16843             DATADIRNAME=share
16844else $as_nop
16845  case $host in
16846	    *-*-solaris*)
16847	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
16848if test "x$ac_cv_func_bind_textdomain_codeset" = xyes
16849then :
16850  CATOBJEXT=.gmo
16851               DATADIRNAME=share
16852else $as_nop
16853  CATOBJEXT=.mo
16854               DATADIRNAME=lib
16855fi
16856
16857	    ;;
16858	    *-*-openbsd*)
16859	    CATOBJEXT=.mo
16860            DATADIRNAME=share
16861	    ;;
16862	    *)
16863	    CATOBJEXT=.mo
16864            DATADIRNAME=lib
16865	    ;;
16866	    esac
16867fi
16868rm -f core conftest.err conftest.$ac_objext conftest.beam \
16869    conftest$ac_exeext conftest.$ac_ext
16870          LIBS="$glib_save_LIBS"
16871	  INSTOBJEXT=.mo
16872	else
16873	  gt_cv_have_gettext=no
16874	fi
16875      fi
16876
16877fi
16878
16879
16880    if test "$gt_cv_have_gettext" = "yes" ; then
16881
16882printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
16883
16884    fi
16885
16886        if test "$XGETTEXT" != ":"; then
16887                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
16888        : ;
16889      else
16890        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16891printf "%s\n" "found xgettext program is not GNU xgettext; ignore it" >&6; }
16892        XGETTEXT=":"
16893      fi
16894    fi
16895
16896    # We need to process the po/ directory.
16897    POSUB=po
16898
16899    ac_config_commands="$ac_config_commands default-1"
16900
16901
16902                for lang in $ALL_LINGUAS; do
16903      GMOFILES="$GMOFILES $lang.gmo"
16904      POFILES="$POFILES $lang.po"
16905    done
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919   if test "$gt_cv_have_gettext" = "yes"; then
16920     if test "x$ALL_LINGUAS" = "x"; then
16921       LINGUAS=
16922     else
16923       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
16924printf %s "checking for catalogs to be installed... " >&6; }
16925       NEW_LINGUAS=
16926       for presentlang in $ALL_LINGUAS; do
16927         useit=no
16928         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
16929           desiredlanguages="$LINGUAS"
16930         else
16931           desiredlanguages="$ALL_LINGUAS"
16932         fi
16933         for desiredlang in $desiredlanguages; do
16934 	   # Use the presentlang catalog if desiredlang is
16935           #   a. equal to presentlang, or
16936           #   b. a variant of presentlang (because in this case,
16937           #      presentlang can be used as a fallback for messages
16938           #      which are not translated in the desiredlang catalog).
16939           case "$desiredlang" in
16940             "$presentlang"*) useit=yes;;
16941           esac
16942         done
16943         if test $useit = yes; then
16944           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
16945         fi
16946       done
16947       LINGUAS=$NEW_LINGUAS
16948       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
16949printf "%s\n" "$LINGUAS" >&6; }
16950     fi
16951
16952          if test -n "$LINGUAS"; then
16953       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
16954     fi
16955   fi
16956
16957            MKINSTALLDIRS=
16958   if test -n "$ac_aux_dir"; then
16959     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
16960   fi
16961   if test -z "$MKINSTALLDIRS"; then
16962     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16963   fi
16964
16965
16966         test -d po || mkdir po
16967   if test "x$srcdir" != "x."; then
16968     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
16969       posrcprefix="$srcdir/"
16970     else
16971       posrcprefix="../$srcdir/"
16972     fi
16973   else
16974     posrcprefix="../"
16975   fi
16976   rm -f po/POTFILES
16977   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
16978	< $srcdir/po/POTFILES.in > po/POTFILES
16979
16980
16981
16982	if test x$MSGFMT = xno -o x$MSGFMT$GMSGFMT$INTLTOOL_MSGFMT = x
16983	then
16984		as_fn_error $? "
16985
16986The msgfmt command is required to build libpurple.  If it is installed
16987on your system, ensure that it is in your path.  If it is not, install
16988GNU gettext to continue.
16989
16990If you have msgfmt installed, but for some reason this error message
16991is still displayed, you have encountered what appears to be a bug in
16992third-party configure macros.  Try setting the MSGFMT environment
16993variable to the absolute path to your msgfmt binary and trying
16994configure again, like this:
16995
16996MSGFMT=/path/to/msgfmt ./configure ...
16997	" "$LINENO" 5
16998	fi
16999fi #enable_i18n
17000
17001 if test "x$enable_i18n" = "xyes"; then
17002  INSTALL_I18N_TRUE=
17003  INSTALL_I18N_FALSE='#'
17004else
17005  INSTALL_I18N_TRUE='#'
17006  INSTALL_I18N_FALSE=
17007fi
17008
17009
17010
17011pkg_failed=no
17012{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0" >&5
17013printf %s "checking for glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0... " >&6; }
17014
17015if test -n "$GLIB_CFLAGS"; then
17016    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
17017 elif test -n "$PKG_CONFIG"; then
17018    if test -n "$PKG_CONFIG" && \
17019    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0\""; } >&5
17020  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0") 2>&5
17021  ac_status=$?
17022  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17023  test $ac_status = 0; }; then
17024  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0" 2>/dev/null`
17025		      test "x$?" != "x0" && pkg_failed=yes
17026else
17027  pkg_failed=yes
17028fi
17029 else
17030    pkg_failed=untried
17031fi
17032if test -n "$GLIB_LIBS"; then
17033    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
17034 elif test -n "$PKG_CONFIG"; then
17035    if test -n "$PKG_CONFIG" && \
17036    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0\""; } >&5
17037  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0") 2>&5
17038  ac_status=$?
17039  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17040  test $ac_status = 0; }; then
17041  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0" 2>/dev/null`
17042		      test "x$?" != "x0" && pkg_failed=yes
17043else
17044  pkg_failed=yes
17045fi
17046 else
17047    pkg_failed=untried
17048fi
17049
17050
17051
17052if test $pkg_failed = yes; then
17053        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17054printf "%s\n" "no" >&6; }
17055
17056if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17057        _pkg_short_errors_supported=yes
17058else
17059        _pkg_short_errors_supported=no
17060fi
17061        if test $_pkg_short_errors_supported = yes; then
17062	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0" 2>&1`
17063        else
17064	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0 >= 2.16.0 gobject-2.0 gmodule-2.0 gthread-2.0" 2>&1`
17065        fi
17066	# Put the nasty error message in config.log where it belongs
17067	echo "$GLIB_PKG_ERRORS" >&5
17068
17069
17070	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17071printf "%s\n" "no" >&6; }
17072	as_fn_error $? "
17073
17074You must have GLib 2.16.0 or newer development headers installed to build.
17075
17076If you have these installed already you may need to install pkg-config so
17077I can find them.
17078" "$LINENO" 5
17079elif test $pkg_failed = untried; then
17080        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17081printf "%s\n" "no" >&6; }
17082
17083	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17084printf "%s\n" "no" >&6; }
17085	as_fn_error $? "
17086
17087You must have GLib 2.16.0 or newer development headers installed to build.
17088
17089If you have these installed already you may need to install pkg-config so
17090I can find them.
17091" "$LINENO" 5
17092else
17093	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
17094	GLIB_LIBS=$pkg_cv_GLIB_LIBS
17095        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17096printf "%s\n" "yes" >&6; }
17097
17098fi
17099
17100
17101
17102
17103pkg_failed=no
17104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gio-unix-2.0 >= 2.26" >&5
17105printf %s "checking for gio-unix-2.0 >= 2.26... " >&6; }
17106
17107if test -n "$GIO_UNIX_CFLAGS"; then
17108    pkg_cv_GIO_UNIX_CFLAGS="$GIO_UNIX_CFLAGS"
17109 elif test -n "$PKG_CONFIG"; then
17110    if test -n "$PKG_CONFIG" && \
17111    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.26\""; } >&5
17112  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.26") 2>&5
17113  ac_status=$?
17114  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115  test $ac_status = 0; }; then
17116  pkg_cv_GIO_UNIX_CFLAGS=`$PKG_CONFIG --cflags "gio-unix-2.0 >= 2.26" 2>/dev/null`
17117		      test "x$?" != "x0" && pkg_failed=yes
17118else
17119  pkg_failed=yes
17120fi
17121 else
17122    pkg_failed=untried
17123fi
17124if test -n "$GIO_UNIX_LIBS"; then
17125    pkg_cv_GIO_UNIX_LIBS="$GIO_UNIX_LIBS"
17126 elif test -n "$PKG_CONFIG"; then
17127    if test -n "$PKG_CONFIG" && \
17128    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gio-unix-2.0 >= 2.26\""; } >&5
17129  ($PKG_CONFIG --exists --print-errors "gio-unix-2.0 >= 2.26") 2>&5
17130  ac_status=$?
17131  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17132  test $ac_status = 0; }; then
17133  pkg_cv_GIO_UNIX_LIBS=`$PKG_CONFIG --libs "gio-unix-2.0 >= 2.26" 2>/dev/null`
17134		      test "x$?" != "x0" && pkg_failed=yes
17135else
17136  pkg_failed=yes
17137fi
17138 else
17139    pkg_failed=untried
17140fi
17141
17142
17143
17144if test $pkg_failed = yes; then
17145        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17146printf "%s\n" "no" >&6; }
17147
17148if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17149        _pkg_short_errors_supported=yes
17150else
17151        _pkg_short_errors_supported=no
17152fi
17153        if test $_pkg_short_errors_supported = yes; then
17154	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gio-unix-2.0 >= 2.26" 2>&1`
17155        else
17156	        GIO_UNIX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gio-unix-2.0 >= 2.26" 2>&1`
17157        fi
17158	# Put the nasty error message in config.log where it belongs
17159	echo "$GIO_UNIX_PKG_ERRORS" >&5
17160
17161	as_fn_error $? "Package requirements (gio-unix-2.0 >= 2.26) were not met:
17162
17163$GIO_UNIX_PKG_ERRORS
17164
17165Consider adjusting the PKG_CONFIG_PATH environment variable if you
17166installed software in a non-standard prefix.
17167
17168Alternatively, you may set the environment variables GIO_UNIX_CFLAGS
17169and GIO_UNIX_LIBS to avoid the need to call pkg-config.
17170See the pkg-config man page for more details." "$LINENO" 5
17171elif test $pkg_failed = untried; then
17172        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17173printf "%s\n" "no" >&6; }
17174	{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17175printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17176as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
17177is in your PATH or set the PKG_CONFIG environment variable to the full
17178path to pkg-config.
17179
17180Alternatively, you may set the environment variables GIO_UNIX_CFLAGS
17181and GIO_UNIX_LIBS to avoid the need to call pkg-config.
17182See the pkg-config man page for more details.
17183
17184To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17185See \`config.log' for more details" "$LINENO" 5; }
17186else
17187	GIO_UNIX_CFLAGS=$pkg_cv_GIO_UNIX_CFLAGS
17188	GIO_UNIX_LIBS=$pkg_cv_GIO_UNIX_LIBS
17189        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190printf "%s\n" "yes" >&6; }
17191
17192printf "%s\n" "#define HAVE_GIOUNIX 1" >>confdefs.h
17193
17194fi
17195
17196GLIB_GENMARSHAL=`pkg-config --variable=glib_genmarshal glib-2.0`
17197
17198
17199
17200# Check whether --with-extraversion was given.
17201if test ${with_extraversion+y}
17202then :
17203  withval=$with_extraversion; EXTRA_VERSION=$withval
17204fi
17205
17206
17207if test x"$EXTRA_VERSION" != "x" ; then
17208
17209printf "%s\n" "#define DISPLAY_VERSION \"$VERSION-$EXTRA_VERSION\"" >>confdefs.h
17210
17211else
17212
17213printf "%s\n" "#define DISPLAY_VERSION \"$VERSION\"" >>confdefs.h
17214
17215fi
17216
17217# Check whether --enable-missing-dependencies was given.
17218if test ${enable_missing_dependencies+y}
17219then :
17220  enableval=$enable_missing_dependencies; force_deps="$enableval"
17221else $as_nop
17222  force_deps="yes"
17223fi
17224
17225
17226
17227# Check whether --with-x was given.
17228if test ${with_x+y}
17229then :
17230  withval=$with_x; with_x="$withval"
17231else $as_nop
17232  with_x="yes"
17233fi
17234
17235# Check whether --enable-gtkui was given.
17236if test ${enable_gtkui+y}
17237then :
17238  enableval=$enable_gtkui; enable_gtkui="$enableval"
17239else $as_nop
17240  enable_gtkui="yes"
17241fi
17242
17243# Check whether --enable-consoleui was given.
17244if test ${enable_consoleui+y}
17245then :
17246  enableval=$enable_consoleui; enable_consoleui=$enableval force_finch=$enableval
17247else $as_nop
17248  enable_consoleui=yes force_finch=no
17249fi
17250
17251
17252# Check whether --enable-screensaver was given.
17253if test ${enable_screensaver+y}
17254then :
17255  enableval=$enable_screensaver; enable_screensaver="$enableval"
17256else $as_nop
17257  enable_screensaver="yes"
17258fi
17259
17260# Check whether --enable-sm was given.
17261if test ${enable_sm+y}
17262then :
17263  enableval=$enable_sm; enable_sm="$enableval"
17264else $as_nop
17265  enable_sm="yes"
17266fi
17267
17268# Check whether --enable-startup-notification was given.
17269if test ${enable_startup_notification+y}
17270then :
17271  enableval=$enable_startup_notification; enable_startup_notification="$enableval"
17272else $as_nop
17273  enable_startup_notification="yes"
17274fi
17275
17276# Check whether --enable-gtkspell was given.
17277if test ${enable_gtkspell+y}
17278then :
17279  enableval=$enable_gtkspell; enable_gtkspell="$enableval"
17280else $as_nop
17281  enable_gtkspell="yes"
17282fi
17283
17284# Check whether --enable-gevolution was given.
17285if test ${enable_gevolution+y}
17286then :
17287  enableval=$enable_gevolution; enable_gevolution="$enableval"
17288else $as_nop
17289  enable_gevolution="yes"
17290fi
17291
17292# Check whether --enable-cap was given.
17293if test ${enable_cap+y}
17294then :
17295  enableval=$enable_cap; enable_cap="$enableval"
17296else $as_nop
17297  enable_cap="no"
17298fi
17299
17300# Check whether --enable-gestures was given.
17301if test ${enable_gestures+y}
17302then :
17303  enableval=$enable_gestures; enable_gestures="$enableval"
17304else $as_nop
17305  enable_gestures="yes"
17306fi
17307
17308
17309ac_ext=c
17310ac_cpp='$CPP $CPPFLAGS'
17311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17313ac_compiler_gnu=$ac_cv_c_compiler_gnu
17314{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
17315printf %s "checking how to run the C preprocessor... " >&6; }
17316# On Suns, sometimes $CPP names a directory.
17317if test -n "$CPP" && test -d "$CPP"; then
17318  CPP=
17319fi
17320if test -z "$CPP"; then
17321  if test ${ac_cv_prog_CPP+y}
17322then :
17323  printf %s "(cached) " >&6
17324else $as_nop
17325      # Double quotes because $CC needs to be expanded
17326    for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
17327    do
17328      ac_preproc_ok=false
17329for ac_c_preproc_warn_flag in '' yes
17330do
17331  # Use a header file that comes with gcc, so configuring glibc
17332  # with a fresh cross-compiler works.
17333  # On the NeXT, cc -E runs the code through the compiler's parser,
17334  # not just through cpp. "Syntax error" is here to catch this case.
17335  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336/* end confdefs.h.  */
17337#include <limits.h>
17338		     Syntax error
17339_ACEOF
17340if ac_fn_c_try_cpp "$LINENO"
17341then :
17342
17343else $as_nop
17344  # Broken: fails on valid input.
17345continue
17346fi
17347rm -f conftest.err conftest.i conftest.$ac_ext
17348
17349  # OK, works on sane cases.  Now check whether nonexistent headers
17350  # can be detected and how.
17351  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17352/* end confdefs.h.  */
17353#include <ac_nonexistent.h>
17354_ACEOF
17355if ac_fn_c_try_cpp "$LINENO"
17356then :
17357  # Broken: success on invalid input.
17358continue
17359else $as_nop
17360  # Passes both tests.
17361ac_preproc_ok=:
17362break
17363fi
17364rm -f conftest.err conftest.i conftest.$ac_ext
17365
17366done
17367# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17368rm -f conftest.i conftest.err conftest.$ac_ext
17369if $ac_preproc_ok
17370then :
17371  break
17372fi
17373
17374    done
17375    ac_cv_prog_CPP=$CPP
17376
17377fi
17378  CPP=$ac_cv_prog_CPP
17379else
17380  ac_cv_prog_CPP=$CPP
17381fi
17382{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
17383printf "%s\n" "$CPP" >&6; }
17384ac_preproc_ok=false
17385for ac_c_preproc_warn_flag in '' yes
17386do
17387  # Use a header file that comes with gcc, so configuring glibc
17388  # with a fresh cross-compiler works.
17389  # On the NeXT, cc -E runs the code through the compiler's parser,
17390  # not just through cpp. "Syntax error" is here to catch this case.
17391  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17392/* end confdefs.h.  */
17393#include <limits.h>
17394		     Syntax error
17395_ACEOF
17396if ac_fn_c_try_cpp "$LINENO"
17397then :
17398
17399else $as_nop
17400  # Broken: fails on valid input.
17401continue
17402fi
17403rm -f conftest.err conftest.i conftest.$ac_ext
17404
17405  # OK, works on sane cases.  Now check whether nonexistent headers
17406  # can be detected and how.
17407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408/* end confdefs.h.  */
17409#include <ac_nonexistent.h>
17410_ACEOF
17411if ac_fn_c_try_cpp "$LINENO"
17412then :
17413  # Broken: success on invalid input.
17414continue
17415else $as_nop
17416  # Passes both tests.
17417ac_preproc_ok=:
17418break
17419fi
17420rm -f conftest.err conftest.i conftest.$ac_ext
17421
17422done
17423# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
17424rm -f conftest.i conftest.err conftest.$ac_ext
17425if $ac_preproc_ok
17426then :
17427
17428else $as_nop
17429  { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17430printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17431as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
17432See \`config.log' for more details" "$LINENO" 5; }
17433fi
17434
17435ac_ext=c
17436ac_cpp='$CPP $CPPFLAGS'
17437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17439ac_compiler_gnu=$ac_cv_c_compiler_gnu
17440
17441
17442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X" >&5
17443printf %s "checking for X... " >&6; }
17444
17445
17446# Check whether --with-x was given.
17447if test ${with_x+y}
17448then :
17449  withval=$with_x;
17450fi
17451
17452# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
17453if test "x$with_x" = xno; then
17454  # The user explicitly disabled X.
17455  have_x=disabled
17456else
17457  case $x_includes,$x_libraries in #(
17458    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
17459    *,NONE | NONE,*) if test ${ac_cv_have_x+y}
17460then :
17461  printf %s "(cached) " >&6
17462else $as_nop
17463  # One or both of the vars are not set, and there is no cached value.
17464ac_x_includes=no
17465ac_x_libraries=no
17466# Do we need to do anything special at all?
17467ac_save_LIBS=$LIBS
17468LIBS="-lX11 $LIBS"
17469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17470/* end confdefs.h.  */
17471#include <X11/Xlib.h>
17472int
17473main (void)
17474{
17475XrmInitialize ()
17476  ;
17477  return 0;
17478}
17479_ACEOF
17480if ac_fn_c_try_link "$LINENO"
17481then :
17482  # We can compile and link X programs with no special options.
17483  ac_x_includes=
17484  ac_x_libraries=
17485fi
17486rm -f core conftest.err conftest.$ac_objext conftest.beam \
17487    conftest$ac_exeext conftest.$ac_ext
17488LIBS="$ac_save_LIBS"
17489# If that didn't work, only try xmkmf and file system searches
17490# for native compilation.
17491if test x"$ac_x_includes" = xno && test "$cross_compiling" = no
17492then :
17493  rm -f -r conftest.dir
17494if mkdir conftest.dir; then
17495  cd conftest.dir
17496  cat >Imakefile <<'_ACEOF'
17497incroot:
17498	@echo incroot='${INCROOT}'
17499usrlibdir:
17500	@echo usrlibdir='${USRLIBDIR}'
17501libdir:
17502	@echo libdir='${LIBDIR}'
17503_ACEOF
17504  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
17505    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17506    for ac_var in incroot usrlibdir libdir; do
17507      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
17508    done
17509    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
17510    for ac_extension in a so sl dylib la dll; do
17511      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
17512	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
17513	ac_im_usrlibdir=$ac_im_libdir; break
17514      fi
17515    done
17516    # Screen out bogus values from the imake configuration.  They are
17517    # bogus both because they are the default anyway, and because
17518    # using them would break gcc on systems where it needs fixed includes.
17519    case $ac_im_incroot in
17520	/usr/include) ac_x_includes= ;;
17521	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
17522    esac
17523    case $ac_im_usrlibdir in
17524	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
17525	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
17526    esac
17527  fi
17528  cd ..
17529  rm -f -r conftest.dir
17530fi
17531
17532  # Standard set of common directories for X headers.
17533# Check X11 before X11Rn because it is often a symlink to the current release.
17534ac_x_header_dirs='
17535/usr/X11/include
17536/usr/X11R7/include
17537/usr/X11R6/include
17538/usr/X11R5/include
17539/usr/X11R4/include
17540
17541/usr/include/X11
17542/usr/include/X11R7
17543/usr/include/X11R6
17544/usr/include/X11R5
17545/usr/include/X11R4
17546
17547/usr/local/X11/include
17548/usr/local/X11R7/include
17549/usr/local/X11R6/include
17550/usr/local/X11R5/include
17551/usr/local/X11R4/include
17552
17553/usr/local/include/X11
17554/usr/local/include/X11R7
17555/usr/local/include/X11R6
17556/usr/local/include/X11R5
17557/usr/local/include/X11R4
17558
17559/opt/X11/include
17560
17561/usr/X386/include
17562/usr/x386/include
17563/usr/XFree86/include/X11
17564
17565/usr/include
17566/usr/local/include
17567/usr/unsupported/include
17568/usr/athena/include
17569/usr/local/x11r5/include
17570/usr/lpp/Xamples/include
17571
17572/usr/openwin/include
17573/usr/openwin/share/include'
17574
17575if test "$ac_x_includes" = no; then
17576  # Guess where to find include files, by looking for Xlib.h.
17577  # First, try using that file with no special directory specified.
17578  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17579/* end confdefs.h.  */
17580#include <X11/Xlib.h>
17581_ACEOF
17582if ac_fn_c_try_cpp "$LINENO"
17583then :
17584  # We can compile using X headers with no special include directory.
17585ac_x_includes=
17586else $as_nop
17587  for ac_dir in $ac_x_header_dirs; do
17588  if test -r "$ac_dir/X11/Xlib.h"; then
17589    ac_x_includes=$ac_dir
17590    break
17591  fi
17592done
17593fi
17594rm -f conftest.err conftest.i conftest.$ac_ext
17595fi # $ac_x_includes = no
17596
17597if test "$ac_x_libraries" = no; then
17598  # Check for the libraries.
17599  # See if we find them without any special options.
17600  # Don't add to $LIBS permanently.
17601  ac_save_LIBS=$LIBS
17602  LIBS="-lX11 $LIBS"
17603  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604/* end confdefs.h.  */
17605#include <X11/Xlib.h>
17606int
17607main (void)
17608{
17609XrmInitialize ()
17610  ;
17611  return 0;
17612}
17613_ACEOF
17614if ac_fn_c_try_link "$LINENO"
17615then :
17616  LIBS=$ac_save_LIBS
17617# We can link X programs with no special library path.
17618ac_x_libraries=
17619else $as_nop
17620  LIBS=$ac_save_LIBS
17621for ac_dir in `printf "%s\n" "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
17622do
17623  # Don't even attempt the hair of trying to link an X program!
17624  for ac_extension in a so sl dylib la dll; do
17625    if test -r "$ac_dir/libX11.$ac_extension"; then
17626      ac_x_libraries=$ac_dir
17627      break 2
17628    fi
17629  done
17630done
17631fi
17632rm -f core conftest.err conftest.$ac_objext conftest.beam \
17633    conftest$ac_exeext conftest.$ac_ext
17634fi # $ac_x_libraries = no
17635
17636fi
17637# Record the results.
17638case $ac_x_includes,$ac_x_libraries in #(
17639  no,* | *,no | *\'*) :
17640    # Didn't find X, or a directory has "'" in its name.
17641    ac_cv_have_x="have_x=no" ;; #(
17642  *) :
17643    # Record where we found X for the cache.
17644    ac_cv_have_x="have_x=yes\
17645	ac_x_includes='$ac_x_includes'\
17646	ac_x_libraries='$ac_x_libraries'" ;;
17647esac
17648fi
17649;; #(
17650    *) have_x=yes;;
17651  esac
17652  eval "$ac_cv_have_x"
17653fi # $with_x != no
17654
17655if test "$have_x" != yes; then
17656  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
17657printf "%s\n" "$have_x" >&6; }
17658  no_x=yes
17659else
17660  # If each of the values was on the command line, it overrides each guess.
17661  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
17662  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
17663  # Update the cache value to reflect the command line values.
17664  ac_cv_have_x="have_x=yes\
17665	ac_x_includes='$x_includes'\
17666	ac_x_libraries='$x_libraries'"
17667  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
17668printf "%s\n" "libraries $x_libraries, headers $x_includes" >&6; }
17669fi
17670
17671if test "$no_x" = yes; then
17672  # Not all programs may use this symbol, but it does not hurt to define it.
17673
17674printf "%s\n" "#define X_DISPLAY_MISSING 1" >>confdefs.h
17675
17676  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
17677else
17678  if test -n "$x_includes"; then
17679    X_CFLAGS="$X_CFLAGS -I$x_includes"
17680  fi
17681
17682  # It would also be nice to do this for all -L options, not just this one.
17683  if test -n "$x_libraries"; then
17684    X_LIBS="$X_LIBS -L$x_libraries"
17685    # For Solaris; some versions of Sun CC require a space after -R and
17686    # others require no space.  Words are not sufficient . . . .
17687    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
17688printf %s "checking whether -R must be followed by a space... " >&6; }
17689    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
17690    ac_xsave_c_werror_flag=$ac_c_werror_flag
17691    ac_c_werror_flag=yes
17692    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17693/* end confdefs.h.  */
17694
17695int
17696main (void)
17697{
17698
17699  ;
17700  return 0;
17701}
17702_ACEOF
17703if ac_fn_c_try_link "$LINENO"
17704then :
17705  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706printf "%s\n" "no" >&6; }
17707       X_LIBS="$X_LIBS -R$x_libraries"
17708else $as_nop
17709  LIBS="$ac_xsave_LIBS -R $x_libraries"
17710       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17711/* end confdefs.h.  */
17712
17713int
17714main (void)
17715{
17716
17717  ;
17718  return 0;
17719}
17720_ACEOF
17721if ac_fn_c_try_link "$LINENO"
17722then :
17723  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17724printf "%s\n" "yes" >&6; }
17725	  X_LIBS="$X_LIBS -R $x_libraries"
17726else $as_nop
17727  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
17728printf "%s\n" "neither works" >&6; }
17729fi
17730rm -f core conftest.err conftest.$ac_objext conftest.beam \
17731    conftest$ac_exeext conftest.$ac_ext
17732fi
17733rm -f core conftest.err conftest.$ac_objext conftest.beam \
17734    conftest$ac_exeext conftest.$ac_ext
17735    ac_c_werror_flag=$ac_xsave_c_werror_flag
17736    LIBS=$ac_xsave_LIBS
17737  fi
17738
17739  # Check for system-dependent libraries X programs must link with.
17740  # Do this before checking for the system-independent R6 libraries
17741  # (-lICE), since we may need -lsocket or whatever for X linking.
17742
17743  if test "$ISC" = yes; then
17744    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
17745  else
17746    # Martyn Johnson says this is needed for Ultrix, if the X
17747    # libraries were built with DECnet support.  And Karl Berry says
17748    # the Alpha needs dnet_stub (dnet does not exist).
17749    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
17750    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17751/* end confdefs.h.  */
17752
17753/* Override any GCC internal prototype to avoid an error.
17754   Use char because int might match the return type of a GCC
17755   builtin and then its argument prototype would still apply.  */
17756char XOpenDisplay ();
17757int
17758main (void)
17759{
17760return XOpenDisplay ();
17761  ;
17762  return 0;
17763}
17764_ACEOF
17765if ac_fn_c_try_link "$LINENO"
17766then :
17767
17768else $as_nop
17769  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
17770printf %s "checking for dnet_ntoa in -ldnet... " >&6; }
17771if test ${ac_cv_lib_dnet_dnet_ntoa+y}
17772then :
17773  printf %s "(cached) " >&6
17774else $as_nop
17775  ac_check_lib_save_LIBS=$LIBS
17776LIBS="-ldnet  $LIBS"
17777cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17778/* end confdefs.h.  */
17779
17780/* Override any GCC internal prototype to avoid an error.
17781   Use char because int might match the return type of a GCC
17782   builtin and then its argument prototype would still apply.  */
17783char dnet_ntoa ();
17784int
17785main (void)
17786{
17787return dnet_ntoa ();
17788  ;
17789  return 0;
17790}
17791_ACEOF
17792if ac_fn_c_try_link "$LINENO"
17793then :
17794  ac_cv_lib_dnet_dnet_ntoa=yes
17795else $as_nop
17796  ac_cv_lib_dnet_dnet_ntoa=no
17797fi
17798rm -f core conftest.err conftest.$ac_objext conftest.beam \
17799    conftest$ac_exeext conftest.$ac_ext
17800LIBS=$ac_check_lib_save_LIBS
17801fi
17802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
17803printf "%s\n" "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
17804if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
17805then :
17806  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
17807fi
17808
17809    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
17810      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
17811printf %s "checking for dnet_ntoa in -ldnet_stub... " >&6; }
17812if test ${ac_cv_lib_dnet_stub_dnet_ntoa+y}
17813then :
17814  printf %s "(cached) " >&6
17815else $as_nop
17816  ac_check_lib_save_LIBS=$LIBS
17817LIBS="-ldnet_stub  $LIBS"
17818cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17819/* end confdefs.h.  */
17820
17821/* Override any GCC internal prototype to avoid an error.
17822   Use char because int might match the return type of a GCC
17823   builtin and then its argument prototype would still apply.  */
17824char dnet_ntoa ();
17825int
17826main (void)
17827{
17828return dnet_ntoa ();
17829  ;
17830  return 0;
17831}
17832_ACEOF
17833if ac_fn_c_try_link "$LINENO"
17834then :
17835  ac_cv_lib_dnet_stub_dnet_ntoa=yes
17836else $as_nop
17837  ac_cv_lib_dnet_stub_dnet_ntoa=no
17838fi
17839rm -f core conftest.err conftest.$ac_objext conftest.beam \
17840    conftest$ac_exeext conftest.$ac_ext
17841LIBS=$ac_check_lib_save_LIBS
17842fi
17843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
17844printf "%s\n" "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
17845if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
17846then :
17847  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
17848fi
17849
17850    fi
17851fi
17852rm -f core conftest.err conftest.$ac_objext conftest.beam \
17853    conftest$ac_exeext conftest.$ac_ext
17854    LIBS="$ac_xsave_LIBS"
17855
17856    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
17857    # to get the SysV transport functions.
17858    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
17859    # needs -lnsl.
17860    # The nsl library prevents programs from opening the X display
17861    # on Irix 5.2, according to T.E. Dickey.
17862    # The functions gethostbyname, getservbyname, and inet_addr are
17863    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
17864    ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
17865if test "x$ac_cv_func_gethostbyname" = xyes
17866then :
17867
17868fi
17869
17870    if test $ac_cv_func_gethostbyname = no; then
17871      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
17872printf %s "checking for gethostbyname in -lnsl... " >&6; }
17873if test ${ac_cv_lib_nsl_gethostbyname+y}
17874then :
17875  printf %s "(cached) " >&6
17876else $as_nop
17877  ac_check_lib_save_LIBS=$LIBS
17878LIBS="-lnsl  $LIBS"
17879cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17880/* end confdefs.h.  */
17881
17882/* Override any GCC internal prototype to avoid an error.
17883   Use char because int might match the return type of a GCC
17884   builtin and then its argument prototype would still apply.  */
17885char gethostbyname ();
17886int
17887main (void)
17888{
17889return gethostbyname ();
17890  ;
17891  return 0;
17892}
17893_ACEOF
17894if ac_fn_c_try_link "$LINENO"
17895then :
17896  ac_cv_lib_nsl_gethostbyname=yes
17897else $as_nop
17898  ac_cv_lib_nsl_gethostbyname=no
17899fi
17900rm -f core conftest.err conftest.$ac_objext conftest.beam \
17901    conftest$ac_exeext conftest.$ac_ext
17902LIBS=$ac_check_lib_save_LIBS
17903fi
17904{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
17905printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
17906if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
17907then :
17908  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
17909fi
17910
17911      if test $ac_cv_lib_nsl_gethostbyname = no; then
17912	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
17913printf %s "checking for gethostbyname in -lbsd... " >&6; }
17914if test ${ac_cv_lib_bsd_gethostbyname+y}
17915then :
17916  printf %s "(cached) " >&6
17917else $as_nop
17918  ac_check_lib_save_LIBS=$LIBS
17919LIBS="-lbsd  $LIBS"
17920cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17921/* end confdefs.h.  */
17922
17923/* Override any GCC internal prototype to avoid an error.
17924   Use char because int might match the return type of a GCC
17925   builtin and then its argument prototype would still apply.  */
17926char gethostbyname ();
17927int
17928main (void)
17929{
17930return gethostbyname ();
17931  ;
17932  return 0;
17933}
17934_ACEOF
17935if ac_fn_c_try_link "$LINENO"
17936then :
17937  ac_cv_lib_bsd_gethostbyname=yes
17938else $as_nop
17939  ac_cv_lib_bsd_gethostbyname=no
17940fi
17941rm -f core conftest.err conftest.$ac_objext conftest.beam \
17942    conftest$ac_exeext conftest.$ac_ext
17943LIBS=$ac_check_lib_save_LIBS
17944fi
17945{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
17946printf "%s\n" "$ac_cv_lib_bsd_gethostbyname" >&6; }
17947if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
17948then :
17949  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
17950fi
17951
17952      fi
17953    fi
17954
17955    # lieder@skyler.mavd.honeywell.com says without -lsocket,
17956    # socket/setsockopt and other routines are undefined under SCO ODT
17957    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
17958    # on later versions), says Simon Leinen: it contains gethostby*
17959    # variants that don't use the name server (or something).  -lsocket
17960    # must be given before -lnsl if both are needed.  We assume that
17961    # if connect needs -lnsl, so does gethostbyname.
17962    ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
17963if test "x$ac_cv_func_connect" = xyes
17964then :
17965
17966fi
17967
17968    if test $ac_cv_func_connect = no; then
17969      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
17970printf %s "checking for connect in -lsocket... " >&6; }
17971if test ${ac_cv_lib_socket_connect+y}
17972then :
17973  printf %s "(cached) " >&6
17974else $as_nop
17975  ac_check_lib_save_LIBS=$LIBS
17976LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
17977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978/* end confdefs.h.  */
17979
17980/* Override any GCC internal prototype to avoid an error.
17981   Use char because int might match the return type of a GCC
17982   builtin and then its argument prototype would still apply.  */
17983char connect ();
17984int
17985main (void)
17986{
17987return connect ();
17988  ;
17989  return 0;
17990}
17991_ACEOF
17992if ac_fn_c_try_link "$LINENO"
17993then :
17994  ac_cv_lib_socket_connect=yes
17995else $as_nop
17996  ac_cv_lib_socket_connect=no
17997fi
17998rm -f core conftest.err conftest.$ac_objext conftest.beam \
17999    conftest$ac_exeext conftest.$ac_ext
18000LIBS=$ac_check_lib_save_LIBS
18001fi
18002{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18003printf "%s\n" "$ac_cv_lib_socket_connect" >&6; }
18004if test "x$ac_cv_lib_socket_connect" = xyes
18005then :
18006  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18007fi
18008
18009    fi
18010
18011    # Guillermo Gomez says -lposix is necessary on A/UX.
18012    ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18013if test "x$ac_cv_func_remove" = xyes
18014then :
18015
18016fi
18017
18018    if test $ac_cv_func_remove = no; then
18019      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18020printf %s "checking for remove in -lposix... " >&6; }
18021if test ${ac_cv_lib_posix_remove+y}
18022then :
18023  printf %s "(cached) " >&6
18024else $as_nop
18025  ac_check_lib_save_LIBS=$LIBS
18026LIBS="-lposix  $LIBS"
18027cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18028/* end confdefs.h.  */
18029
18030/* Override any GCC internal prototype to avoid an error.
18031   Use char because int might match the return type of a GCC
18032   builtin and then its argument prototype would still apply.  */
18033char remove ();
18034int
18035main (void)
18036{
18037return remove ();
18038  ;
18039  return 0;
18040}
18041_ACEOF
18042if ac_fn_c_try_link "$LINENO"
18043then :
18044  ac_cv_lib_posix_remove=yes
18045else $as_nop
18046  ac_cv_lib_posix_remove=no
18047fi
18048rm -f core conftest.err conftest.$ac_objext conftest.beam \
18049    conftest$ac_exeext conftest.$ac_ext
18050LIBS=$ac_check_lib_save_LIBS
18051fi
18052{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18053printf "%s\n" "$ac_cv_lib_posix_remove" >&6; }
18054if test "x$ac_cv_lib_posix_remove" = xyes
18055then :
18056  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18057fi
18058
18059    fi
18060
18061    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18062    ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18063if test "x$ac_cv_func_shmat" = xyes
18064then :
18065
18066fi
18067
18068    if test $ac_cv_func_shmat = no; then
18069      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18070printf %s "checking for shmat in -lipc... " >&6; }
18071if test ${ac_cv_lib_ipc_shmat+y}
18072then :
18073  printf %s "(cached) " >&6
18074else $as_nop
18075  ac_check_lib_save_LIBS=$LIBS
18076LIBS="-lipc  $LIBS"
18077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078/* end confdefs.h.  */
18079
18080/* Override any GCC internal prototype to avoid an error.
18081   Use char because int might match the return type of a GCC
18082   builtin and then its argument prototype would still apply.  */
18083char shmat ();
18084int
18085main (void)
18086{
18087return shmat ();
18088  ;
18089  return 0;
18090}
18091_ACEOF
18092if ac_fn_c_try_link "$LINENO"
18093then :
18094  ac_cv_lib_ipc_shmat=yes
18095else $as_nop
18096  ac_cv_lib_ipc_shmat=no
18097fi
18098rm -f core conftest.err conftest.$ac_objext conftest.beam \
18099    conftest$ac_exeext conftest.$ac_ext
18100LIBS=$ac_check_lib_save_LIBS
18101fi
18102{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18103printf "%s\n" "$ac_cv_lib_ipc_shmat" >&6; }
18104if test "x$ac_cv_lib_ipc_shmat" = xyes
18105then :
18106  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18107fi
18108
18109    fi
18110  fi
18111
18112  # Check for libraries that X11R6 Xt/Xaw programs need.
18113  ac_save_LDFLAGS=$LDFLAGS
18114  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18115  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18116  # check for ICE first), but we must link in the order -lSM -lICE or
18117  # we get undefined symbols.  So assume we have SM if we have ICE.
18118  # These have to be linked with before -lX11, unlike the other
18119  # libraries we check for below, so use a different variable.
18120  # John Interrante, Karl Berry
18121  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18122printf %s "checking for IceConnectionNumber in -lICE... " >&6; }
18123if test ${ac_cv_lib_ICE_IceConnectionNumber+y}
18124then :
18125  printf %s "(cached) " >&6
18126else $as_nop
18127  ac_check_lib_save_LIBS=$LIBS
18128LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18129cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18130/* end confdefs.h.  */
18131
18132/* Override any GCC internal prototype to avoid an error.
18133   Use char because int might match the return type of a GCC
18134   builtin and then its argument prototype would still apply.  */
18135char IceConnectionNumber ();
18136int
18137main (void)
18138{
18139return IceConnectionNumber ();
18140  ;
18141  return 0;
18142}
18143_ACEOF
18144if ac_fn_c_try_link "$LINENO"
18145then :
18146  ac_cv_lib_ICE_IceConnectionNumber=yes
18147else $as_nop
18148  ac_cv_lib_ICE_IceConnectionNumber=no
18149fi
18150rm -f core conftest.err conftest.$ac_objext conftest.beam \
18151    conftest$ac_exeext conftest.$ac_ext
18152LIBS=$ac_check_lib_save_LIBS
18153fi
18154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18155printf "%s\n" "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18156if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
18157then :
18158  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18159fi
18160
18161  LDFLAGS=$ac_save_LDFLAGS
18162
18163fi
18164
18165# We can't assume that $x_libraries will be set, because autoconf does not
18166# set it in the case when the X libraries are in a standard place.
18167# Ditto for $x_includes
18168if test X"$x_libraries" = X"" || test X"$x_libraries" = XNONE; then
18169    x_libpath_add=
18170else
18171    x_libpath_add="-L$x_libraries"
18172fi
18173if test X"$x_includes" = X"" || test X"$x_includes" = XNONE; then
18174    x_incpath_add=
18175else
18176    x_incpath_add="-I$x_includes"
18177fi
18178
18179if test "x$enable_gtkui" = "xyes" ; then
18180
18181pkg_failed=no
18182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.10.0" >&5
18183printf %s "checking for gtk+-2.0 >= 2.10.0... " >&6; }
18184
18185if test -n "$GTK_CFLAGS"; then
18186    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
18187 elif test -n "$PKG_CONFIG"; then
18188    if test -n "$PKG_CONFIG" && \
18189    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\""; } >&5
18190  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
18191  ac_status=$?
18192  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18193  test $ac_status = 0; }; then
18194  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.10.0" 2>/dev/null`
18195		      test "x$?" != "x0" && pkg_failed=yes
18196else
18197  pkg_failed=yes
18198fi
18199 else
18200    pkg_failed=untried
18201fi
18202if test -n "$GTK_LIBS"; then
18203    pkg_cv_GTK_LIBS="$GTK_LIBS"
18204 elif test -n "$PKG_CONFIG"; then
18205    if test -n "$PKG_CONFIG" && \
18206    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0 >= 2.10.0\""; } >&5
18207  ($PKG_CONFIG --exists --print-errors "gtk+-2.0 >= 2.10.0") 2>&5
18208  ac_status=$?
18209  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18210  test $ac_status = 0; }; then
18211  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.10.0" 2>/dev/null`
18212		      test "x$?" != "x0" && pkg_failed=yes
18213else
18214  pkg_failed=yes
18215fi
18216 else
18217    pkg_failed=untried
18218fi
18219
18220
18221
18222if test $pkg_failed = yes; then
18223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18224printf "%s\n" "no" >&6; }
18225
18226if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18227        _pkg_short_errors_supported=yes
18228else
18229        _pkg_short_errors_supported=no
18230fi
18231        if test $_pkg_short_errors_supported = yes; then
18232	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0 >= 2.10.0" 2>&1`
18233        else
18234	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0 >= 2.10.0" 2>&1`
18235        fi
18236	# Put the nasty error message in config.log where it belongs
18237	echo "$GTK_PKG_ERRORS" >&5
18238
18239
18240		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18241printf "%s\n" "no" >&6; }
18242		as_fn_error $? "
18243
18244You must have GTK+ 2.10.0 or newer development headers installed to compile
18245Pidgin.  If you want to build only Finch then specify --disable-gtkui when
18246running configure.
18247" "$LINENO" 5
18248elif test $pkg_failed = untried; then
18249        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18250printf "%s\n" "no" >&6; }
18251
18252		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18253printf "%s\n" "no" >&6; }
18254		as_fn_error $? "
18255
18256You must have GTK+ 2.10.0 or newer development headers installed to compile
18257Pidgin.  If you want to build only Finch then specify --disable-gtkui when
18258running configure.
18259" "$LINENO" 5
18260else
18261	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
18262	GTK_LIBS=$pkg_cv_GTK_LIBS
18263        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18264printf "%s\n" "yes" >&6; }
18265
18266fi
18267
18268
18269
18270
18271
18272pkg_failed=no
18273{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pango >= 1.4.0" >&5
18274printf %s "checking for pango >= 1.4.0... " >&6; }
18275
18276if test -n "$PANGO_CFLAGS"; then
18277    pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
18278 elif test -n "$PKG_CONFIG"; then
18279    if test -n "$PKG_CONFIG" && \
18280    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.4.0\""; } >&5
18281  ($PKG_CONFIG --exists --print-errors "pango >= 1.4.0") 2>&5
18282  ac_status=$?
18283  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18284  test $ac_status = 0; }; then
18285  pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.4.0" 2>/dev/null`
18286		      test "x$?" != "x0" && pkg_failed=yes
18287else
18288  pkg_failed=yes
18289fi
18290 else
18291    pkg_failed=untried
18292fi
18293if test -n "$PANGO_LIBS"; then
18294    pkg_cv_PANGO_LIBS="$PANGO_LIBS"
18295 elif test -n "$PKG_CONFIG"; then
18296    if test -n "$PKG_CONFIG" && \
18297    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.4.0\""; } >&5
18298  ($PKG_CONFIG --exists --print-errors "pango >= 1.4.0") 2>&5
18299  ac_status=$?
18300  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18301  test $ac_status = 0; }; then
18302  pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.4.0" 2>/dev/null`
18303		      test "x$?" != "x0" && pkg_failed=yes
18304else
18305  pkg_failed=yes
18306fi
18307 else
18308    pkg_failed=untried
18309fi
18310
18311
18312
18313if test $pkg_failed = yes; then
18314        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18315printf "%s\n" "no" >&6; }
18316
18317if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18318        _pkg_short_errors_supported=yes
18319else
18320        _pkg_short_errors_supported=no
18321fi
18322        if test $_pkg_short_errors_supported = yes; then
18323	        PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "pango >= 1.4.0" 2>&1`
18324        else
18325	        PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "pango >= 1.4.0" 2>&1`
18326        fi
18327	# Put the nasty error message in config.log where it belongs
18328	echo "$PANGO_PKG_ERRORS" >&5
18329
18330	:
18331elif test $pkg_failed = untried; then
18332        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333printf "%s\n" "no" >&6; }
18334	:
18335else
18336	PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
18337	PANGO_LIBS=$pkg_cv_PANGO_LIBS
18338        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18339printf "%s\n" "yes" >&6; }
18340
18341printf "%s\n" "#define HAVE_PANGO14 1" >>confdefs.h
18342
18343fi
18344
18345				if test "x$with_x" = "xyes" ; then
18346
18347pkg_failed=no
18348{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for x11" >&5
18349printf %s "checking for x11... " >&6; }
18350
18351if test -n "$X11_CFLAGS"; then
18352    pkg_cv_X11_CFLAGS="$X11_CFLAGS"
18353 elif test -n "$PKG_CONFIG"; then
18354    if test -n "$PKG_CONFIG" && \
18355    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18356  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18357  ac_status=$?
18358  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18359  test $ac_status = 0; }; then
18360  pkg_cv_X11_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
18361		      test "x$?" != "x0" && pkg_failed=yes
18362else
18363  pkg_failed=yes
18364fi
18365 else
18366    pkg_failed=untried
18367fi
18368if test -n "$X11_LIBS"; then
18369    pkg_cv_X11_LIBS="$X11_LIBS"
18370 elif test -n "$PKG_CONFIG"; then
18371    if test -n "$PKG_CONFIG" && \
18372    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
18373  ($PKG_CONFIG --exists --print-errors "x11") 2>&5
18374  ac_status=$?
18375  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18376  test $ac_status = 0; }; then
18377  pkg_cv_X11_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
18378		      test "x$?" != "x0" && pkg_failed=yes
18379else
18380  pkg_failed=yes
18381fi
18382 else
18383    pkg_failed=untried
18384fi
18385
18386
18387
18388if test $pkg_failed = yes; then
18389        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18390printf "%s\n" "no" >&6; }
18391
18392if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18393        _pkg_short_errors_supported=yes
18394else
18395        _pkg_short_errors_supported=no
18396fi
18397        if test $_pkg_short_errors_supported = yes; then
18398	        X11_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
18399        else
18400	        X11_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
18401        fi
18402	# Put the nasty error message in config.log where it belongs
18403	echo "$X11_PKG_ERRORS" >&5
18404
18405	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18406printf "%s\n" "no" >&6; }
18407				if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
18408					X11_LIBS="$x_libpath_add"
18409					X11_CFLAGS="$x_incpath_add"
18410				else
18411					with_x="no"
18412					if test "x$force_deps" = "xyes" ; then
18413						as_fn_error $? "
18414X11 development headers not found.
18415Use --without-x if you do not need X11 support.
18416" "$LINENO" 5
18417					fi
18418				fi
18419
18420elif test $pkg_failed = untried; then
18421        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18422printf "%s\n" "no" >&6; }
18423	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18424printf "%s\n" "no" >&6; }
18425				if test "x$x_incpath_add" != "x" -a "x$x_libpath_add" != "x"; then
18426					X11_LIBS="$x_libpath_add"
18427					X11_CFLAGS="$x_incpath_add"
18428				else
18429					with_x="no"
18430					if test "x$force_deps" = "xyes" ; then
18431						as_fn_error $? "
18432X11 development headers not found.
18433Use --without-x if you do not need X11 support.
18434" "$LINENO" 5
18435					fi
18436				fi
18437
18438else
18439	X11_CFLAGS=$pkg_cv_X11_CFLAGS
18440	X11_LIBS=$pkg_cv_X11_LIBS
18441        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18442printf "%s\n" "yes" >&6; }
18443
18444printf "%s\n" "#define HAVE_X11 1" >>confdefs.h
18445
18446fi
18447
18448
18449	else
18450		enable_screensaver=no
18451		enable_sm=no
18452		enable_gestures=no
18453	fi
18454
18455				if test "x$enable_screensaver" = "xyes" ; then
18456		if test "x$with_x" = "xyes" ; then
18457			old_LIBS="$LIBS"
18458			LIBS="$LIBS $GTK_LIBS $x_libpath_add"
18459			XSS_LIBS=""
18460			XSS_HEADERS=""
18461			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverRegister in -lXext" >&5
18462printf %s "checking for XScreenSaverRegister in -lXext... " >&6; }
18463if test ${ac_cv_lib_Xext_XScreenSaverRegister+y}
18464then :
18465  printf %s "(cached) " >&6
18466else $as_nop
18467  ac_check_lib_save_LIBS=$LIBS
18468LIBS="-lXext -lX11 -lXext -lm $LIBS"
18469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470/* end confdefs.h.  */
18471
18472/* Override any GCC internal prototype to avoid an error.
18473   Use char because int might match the return type of a GCC
18474   builtin and then its argument prototype would still apply.  */
18475char XScreenSaverRegister ();
18476int
18477main (void)
18478{
18479return XScreenSaverRegister ();
18480  ;
18481  return 0;
18482}
18483_ACEOF
18484if ac_fn_c_try_link "$LINENO"
18485then :
18486  ac_cv_lib_Xext_XScreenSaverRegister=yes
18487else $as_nop
18488  ac_cv_lib_Xext_XScreenSaverRegister=no
18489fi
18490rm -f core conftest.err conftest.$ac_objext conftest.beam \
18491    conftest$ac_exeext conftest.$ac_ext
18492LIBS=$ac_check_lib_save_LIBS
18493fi
18494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XScreenSaverRegister" >&5
18495printf "%s\n" "$ac_cv_lib_Xext_XScreenSaverRegister" >&6; }
18496if test "x$ac_cv_lib_Xext_XScreenSaverRegister" = xyes
18497then :
18498  XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_EXTRA_LIBS"
18499fi
18500
18501			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XScreenSaverRegister in -lXss" >&5
18502printf %s "checking for XScreenSaverRegister in -lXss... " >&6; }
18503if test ${ac_cv_lib_Xss_XScreenSaverRegister+y}
18504then :
18505  printf %s "(cached) " >&6
18506else $as_nop
18507  ac_check_lib_save_LIBS=$LIBS
18508LIBS="-lXss -lX11 -lXext -lm $LIBS"
18509cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18510/* end confdefs.h.  */
18511
18512/* Override any GCC internal prototype to avoid an error.
18513   Use char because int might match the return type of a GCC
18514   builtin and then its argument prototype would still apply.  */
18515char XScreenSaverRegister ();
18516int
18517main (void)
18518{
18519return XScreenSaverRegister ();
18520  ;
18521  return 0;
18522}
18523_ACEOF
18524if ac_fn_c_try_link "$LINENO"
18525then :
18526  ac_cv_lib_Xss_XScreenSaverRegister=yes
18527else $as_nop
18528  ac_cv_lib_Xss_XScreenSaverRegister=no
18529fi
18530rm -f core conftest.err conftest.$ac_objext conftest.beam \
18531    conftest$ac_exeext conftest.$ac_ext
18532LIBS=$ac_check_lib_save_LIBS
18533fi
18534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xss_XScreenSaverRegister" >&5
18535printf "%s\n" "$ac_cv_lib_Xss_XScreenSaverRegister" >&6; }
18536if test "x$ac_cv_lib_Xss_XScreenSaverRegister" = xyes
18537then :
18538  XSS_LIBS="$X_LIBS $X_PRE_LIBS -lX11 -lXext $X_LIBS $X_EXTRA_LIBS -lXss"
18539fi
18540
18541			if test "x$XSS_LIBS" != "x"; then
18542				oldCPPFLAGS="$CPPFLAGS"
18543				CPPFLAGS="$CPPFLAGS $x_incpath_add"
18544				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18545/* end confdefs.h.  */
18546
18547					#include <X11/Xlib.h>
18548					#include <X11/extensions/scrnsaver.h>
18549
18550int
18551main (void)
18552{
18553
18554  ;
18555  return 0;
18556}
18557_ACEOF
18558if ac_fn_c_try_compile "$LINENO"
18559then :
18560
18561else $as_nop
18562  enable_screensaver=no
18563fi
18564rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18565				CPPFLAGS="$oldCPPFLAGS"
18566			else
18567				enable_screensaver=no
18568			fi
18569			LIBS="$old_LIBS"
18570
18571			if test "x$enable_screensaver" = "xyes" ; then
18572
18573printf "%s\n" "#define USE_SCREENSAVER 1" >>confdefs.h
18574
18575
18576			else
18577				if test "x$force_deps" = "xyes" ; then
18578					as_fn_error $? "
18579XScreenSaver extension development headers not found.
18580Use --disable-screensaver if you do not need XScreenSaver extension support,
18581this is required for detecting idle time by mouse and keyboard usage.
18582" "$LINENO" 5
18583				fi
18584			fi
18585		else
18586			as_fn_error $? "X support is required to build with XScreenSaver extensions" "$LINENO" 5
18587		fi
18588	fi
18589
18590				if test "x$enable_sm" = "xyes"; then
18591		if test "x$with_x" = "xyes" ; then
18592			enable_sm=no
18593			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SmcSaveYourselfDone in -lSM" >&5
18594printf %s "checking for SmcSaveYourselfDone in -lSM... " >&6; }
18595if test ${ac_cv_lib_SM_SmcSaveYourselfDone+y}
18596then :
18597  printf %s "(cached) " >&6
18598else $as_nop
18599  ac_check_lib_save_LIBS=$LIBS
18600LIBS="-lSM $x_libpath_add -lICE $LIBS"
18601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602/* end confdefs.h.  */
18603
18604/* Override any GCC internal prototype to avoid an error.
18605   Use char because int might match the return type of a GCC
18606   builtin and then its argument prototype would still apply.  */
18607char SmcSaveYourselfDone ();
18608int
18609main (void)
18610{
18611return SmcSaveYourselfDone ();
18612  ;
18613  return 0;
18614}
18615_ACEOF
18616if ac_fn_c_try_link "$LINENO"
18617then :
18618  ac_cv_lib_SM_SmcSaveYourselfDone=yes
18619else $as_nop
18620  ac_cv_lib_SM_SmcSaveYourselfDone=no
18621fi
18622rm -f core conftest.err conftest.$ac_objext conftest.beam \
18623    conftest$ac_exeext conftest.$ac_ext
18624LIBS=$ac_check_lib_save_LIBS
18625fi
18626{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcSaveYourselfDone" >&5
18627printf "%s\n" "$ac_cv_lib_SM_SmcSaveYourselfDone" >&6; }
18628if test "x$ac_cv_lib_SM_SmcSaveYourselfDone" = xyes
18629then :
18630  found_sm_lib=true
18631fi
18632
18633			if test "x$found_sm_lib" = "xtrue"; then
18634				oldCPPFLAGS="$CPPFLAGS"
18635				CPPFLAGS="$CPPFLAGS $x_incpath_add"
18636				       for ac_header in X11/SM/SMlib.h
18637do :
18638  ac_fn_c_check_header_compile "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
18639if test "x$ac_cv_header_X11_SM_SMlib_h" = xyes
18640then :
18641  printf "%s\n" "#define HAVE_X11_SM_SMLIB_H 1" >>confdefs.h
18642 SM_LIBS="$x_libpath_add -lSM -lICE" enable_sm=yes
18643fi
18644
18645done
18646				CPPFLAGS="$oldCPPFLAGS"
18647			fi
18648
18649			if test "x$enable_sm" = "xyes"; then
18650
18651printf "%s\n" "#define USE_SM 1" >>confdefs.h
18652
18653
18654			else
18655				if test "x$force_deps" = "xyes" ; then
18656					as_fn_error $? "
18657X session management development headers not found.
18658Use --disable-sm if you do not need session management support.
18659" "$LINENO" 5
18660				fi
18661			fi
18662		else
18663			as_fn_error $? "X support is required to build with X session management support" "$LINENO" 5
18664		fi
18665	fi
18666
18667				if test "x$enable_gestures" = "xyes"; then
18668		if test "x$with_x" = "xno" ; then
18669			enable_gestures=no
18670		fi
18671	fi
18672
18673				if test "x$enable_gtkspell" = "xyes" ; then
18674
18675pkg_failed=no
18676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gtkspell-2.0 >= 2.0.2" >&5
18677printf %s "checking for gtkspell-2.0 >= 2.0.2... " >&6; }
18678
18679if test -n "$GTKSPELL_CFLAGS"; then
18680    pkg_cv_GTKSPELL_CFLAGS="$GTKSPELL_CFLAGS"
18681 elif test -n "$PKG_CONFIG"; then
18682    if test -n "$PKG_CONFIG" && \
18683    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkspell-2.0 >= 2.0.2\""; } >&5
18684  ($PKG_CONFIG --exists --print-errors "gtkspell-2.0 >= 2.0.2") 2>&5
18685  ac_status=$?
18686  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18687  test $ac_status = 0; }; then
18688  pkg_cv_GTKSPELL_CFLAGS=`$PKG_CONFIG --cflags "gtkspell-2.0 >= 2.0.2" 2>/dev/null`
18689		      test "x$?" != "x0" && pkg_failed=yes
18690else
18691  pkg_failed=yes
18692fi
18693 else
18694    pkg_failed=untried
18695fi
18696if test -n "$GTKSPELL_LIBS"; then
18697    pkg_cv_GTKSPELL_LIBS="$GTKSPELL_LIBS"
18698 elif test -n "$PKG_CONFIG"; then
18699    if test -n "$PKG_CONFIG" && \
18700    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtkspell-2.0 >= 2.0.2\""; } >&5
18701  ($PKG_CONFIG --exists --print-errors "gtkspell-2.0 >= 2.0.2") 2>&5
18702  ac_status=$?
18703  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18704  test $ac_status = 0; }; then
18705  pkg_cv_GTKSPELL_LIBS=`$PKG_CONFIG --libs "gtkspell-2.0 >= 2.0.2" 2>/dev/null`
18706		      test "x$?" != "x0" && pkg_failed=yes
18707else
18708  pkg_failed=yes
18709fi
18710 else
18711    pkg_failed=untried
18712fi
18713
18714
18715
18716if test $pkg_failed = yes; then
18717        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18718printf "%s\n" "no" >&6; }
18719
18720if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18721        _pkg_short_errors_supported=yes
18722else
18723        _pkg_short_errors_supported=no
18724fi
18725        if test $_pkg_short_errors_supported = yes; then
18726	        GTKSPELL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtkspell-2.0 >= 2.0.2" 2>&1`
18727        else
18728	        GTKSPELL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtkspell-2.0 >= 2.0.2" 2>&1`
18729        fi
18730	# Put the nasty error message in config.log where it belongs
18731	echo "$GTKSPELL_PKG_ERRORS" >&5
18732
18733
18734			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18735printf "%s\n" "no" >&6; }
18736			enable_gtkspell="no"
18737			if test "x$force_deps" = "xyes" ; then
18738				as_fn_error $? "
18739GtkSpell development headers not found.
18740Use --disable-gtkspell if you do not need it.
18741" "$LINENO" 5
18742			fi
18743elif test $pkg_failed = untried; then
18744        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18745printf "%s\n" "no" >&6; }
18746
18747			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18748printf "%s\n" "no" >&6; }
18749			enable_gtkspell="no"
18750			if test "x$force_deps" = "xyes" ; then
18751				as_fn_error $? "
18752GtkSpell development headers not found.
18753Use --disable-gtkspell if you do not need it.
18754" "$LINENO" 5
18755			fi
18756else
18757	GTKSPELL_CFLAGS=$pkg_cv_GTKSPELL_CFLAGS
18758	GTKSPELL_LIBS=$pkg_cv_GTKSPELL_LIBS
18759        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760printf "%s\n" "yes" >&6; }
18761
18762fi
18763		if test "x$enable_gtkspell" = "xyes" ; then
18764
18765printf "%s\n" "#define USE_GTKSPELL 1" >>confdefs.h
18766
18767
18768
18769		fi
18770	fi
18771
18772				if test "x$enable_gevolution" = "xyes"; then
18773		evo_deps="libebook-1.2 libedata-book-1.2 evolution-data-server-1.2 >= 3.6"
18774
18775pkg_failed=no
18776{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $evo_deps" >&5
18777printf %s "checking for $evo_deps... " >&6; }
18778
18779if test -n "$EVOLUTION_ADDRESSBOOK_CFLAGS"; then
18780    pkg_cv_EVOLUTION_ADDRESSBOOK_CFLAGS="$EVOLUTION_ADDRESSBOOK_CFLAGS"
18781 elif test -n "$PKG_CONFIG"; then
18782    if test -n "$PKG_CONFIG" && \
18783    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$evo_deps\""; } >&5
18784  ($PKG_CONFIG --exists --print-errors "$evo_deps") 2>&5
18785  ac_status=$?
18786  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18787  test $ac_status = 0; }; then
18788  pkg_cv_EVOLUTION_ADDRESSBOOK_CFLAGS=`$PKG_CONFIG --cflags "$evo_deps" 2>/dev/null`
18789		      test "x$?" != "x0" && pkg_failed=yes
18790else
18791  pkg_failed=yes
18792fi
18793 else
18794    pkg_failed=untried
18795fi
18796if test -n "$EVOLUTION_ADDRESSBOOK_LIBS"; then
18797    pkg_cv_EVOLUTION_ADDRESSBOOK_LIBS="$EVOLUTION_ADDRESSBOOK_LIBS"
18798 elif test -n "$PKG_CONFIG"; then
18799    if test -n "$PKG_CONFIG" && \
18800    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$evo_deps\""; } >&5
18801  ($PKG_CONFIG --exists --print-errors "$evo_deps") 2>&5
18802  ac_status=$?
18803  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804  test $ac_status = 0; }; then
18805  pkg_cv_EVOLUTION_ADDRESSBOOK_LIBS=`$PKG_CONFIG --libs "$evo_deps" 2>/dev/null`
18806		      test "x$?" != "x0" && pkg_failed=yes
18807else
18808  pkg_failed=yes
18809fi
18810 else
18811    pkg_failed=untried
18812fi
18813
18814
18815
18816if test $pkg_failed = yes; then
18817        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18818printf "%s\n" "no" >&6; }
18819
18820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18821        _pkg_short_errors_supported=yes
18822else
18823        _pkg_short_errors_supported=no
18824fi
18825        if test $_pkg_short_errors_supported = yes; then
18826	        EVOLUTION_ADDRESSBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$evo_deps" 2>&1`
18827        else
18828	        EVOLUTION_ADDRESSBOOK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$evo_deps" 2>&1`
18829        fi
18830	# Put the nasty error message in config.log where it belongs
18831	echo "$EVOLUTION_ADDRESSBOOK_PKG_ERRORS" >&5
18832
18833
18834			enable_gevolution="no"
18835
18836elif test $pkg_failed = untried; then
18837        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18838printf "%s\n" "no" >&6; }
18839
18840			enable_gevolution="no"
18841
18842else
18843	EVOLUTION_ADDRESSBOOK_CFLAGS=$pkg_cv_EVOLUTION_ADDRESSBOOK_CFLAGS
18844	EVOLUTION_ADDRESSBOOK_LIBS=$pkg_cv_EVOLUTION_ADDRESSBOOK_LIBS
18845        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18846printf "%s\n" "yes" >&6; }
18847
18848fi
18849		if test "x$enable_gevolution" = "xyes"; then
18850
18851printf "%s\n" "#define HAVE_EVOLUTION_ADDRESSBOOK 1" >>confdefs.h
18852
18853
18854
18855		else
18856			if test "x$force_deps" = "xyes" ; then
18857				as_fn_error $? "
18858Evolution development headers not found (libebook, libedata-book, evolution-data-server >= 3.6).
18859Use --disable-gevolution if you do not need it.
18860" "$LINENO" 5
18861			fi
18862		fi
18863	fi
18864
18865				if test "x$enable_cap" = "xyes"; then
18866
18867pkg_failed=no
18868{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sqlite3 >= 3.3" >&5
18869printf %s "checking for sqlite3 >= 3.3... " >&6; }
18870
18871if test -n "$SQLITE3_CFLAGS"; then
18872    pkg_cv_SQLITE3_CFLAGS="$SQLITE3_CFLAGS"
18873 elif test -n "$PKG_CONFIG"; then
18874    if test -n "$PKG_CONFIG" && \
18875    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.3\""; } >&5
18876  ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.3") 2>&5
18877  ac_status=$?
18878  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18879  test $ac_status = 0; }; then
18880  pkg_cv_SQLITE3_CFLAGS=`$PKG_CONFIG --cflags "sqlite3 >= 3.3" 2>/dev/null`
18881		      test "x$?" != "x0" && pkg_failed=yes
18882else
18883  pkg_failed=yes
18884fi
18885 else
18886    pkg_failed=untried
18887fi
18888if test -n "$SQLITE3_LIBS"; then
18889    pkg_cv_SQLITE3_LIBS="$SQLITE3_LIBS"
18890 elif test -n "$PKG_CONFIG"; then
18891    if test -n "$PKG_CONFIG" && \
18892    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sqlite3 >= 3.3\""; } >&5
18893  ($PKG_CONFIG --exists --print-errors "sqlite3 >= 3.3") 2>&5
18894  ac_status=$?
18895  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18896  test $ac_status = 0; }; then
18897  pkg_cv_SQLITE3_LIBS=`$PKG_CONFIG --libs "sqlite3 >= 3.3" 2>/dev/null`
18898		      test "x$?" != "x0" && pkg_failed=yes
18899else
18900  pkg_failed=yes
18901fi
18902 else
18903    pkg_failed=untried
18904fi
18905
18906
18907
18908if test $pkg_failed = yes; then
18909        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18910printf "%s\n" "no" >&6; }
18911
18912if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18913        _pkg_short_errors_supported=yes
18914else
18915        _pkg_short_errors_supported=no
18916fi
18917        if test $_pkg_short_errors_supported = yes; then
18918	        SQLITE3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sqlite3 >= 3.3" 2>&1`
18919        else
18920	        SQLITE3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sqlite3 >= 3.3" 2>&1`
18921        fi
18922	# Put the nasty error message in config.log where it belongs
18923	echo "$SQLITE3_PKG_ERRORS" >&5
18924
18925
18926			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18927printf "%s\n" "no" >&6; }
18928			enable_cap="no"
18929			if test "x$force_deps" = "xyes" ; then
18930				as_fn_error $? "
18931sqlite3 development headers not found.
18932Use --disable-cap if you do not need the Contact Availability Prediction plugin.
18933" "$LINENO" 5
18934			fi
18935elif test $pkg_failed = untried; then
18936        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18937printf "%s\n" "no" >&6; }
18938
18939			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18940printf "%s\n" "no" >&6; }
18941			enable_cap="no"
18942			if test "x$force_deps" = "xyes" ; then
18943				as_fn_error $? "
18944sqlite3 development headers not found.
18945Use --disable-cap if you do not need the Contact Availability Prediction plugin.
18946" "$LINENO" 5
18947			fi
18948else
18949	SQLITE3_CFLAGS=$pkg_cv_SQLITE3_CFLAGS
18950	SQLITE3_LIBS=$pkg_cv_SQLITE3_LIBS
18951        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18952printf "%s\n" "yes" >&6; }
18953
18954fi
18955	fi
18956
18957
18958else # GTK
18959	enable_cap=no
18960	enable_gevolution=no
18961	enable_gtkspell=no
18962	enable_screensaver=no
18963	enable_sm=no
18964	enable_startup_notification=no
18965fi	# GTK
18966
18967 if test "x$enable_gtkui" = "xyes"; then
18968  ENABLE_GTK_TRUE=
18969  ENABLE_GTK_FALSE='#'
18970else
18971  ENABLE_GTK_TRUE='#'
18972  ENABLE_GTK_FALSE=
18973fi
18974
18975 if test "x$enable_gevolution" = "xyes"; then
18976  BUILD_GEVOLUTION_TRUE=
18977  BUILD_GEVOLUTION_FALSE='#'
18978else
18979  BUILD_GEVOLUTION_TRUE='#'
18980  BUILD_GEVOLUTION_FALSE=
18981fi
18982
18983 if test "x$enable_cap" = "xyes"; then
18984  ENABLE_CAP_TRUE=
18985  ENABLE_CAP_FALSE='#'
18986else
18987  ENABLE_CAP_TRUE='#'
18988  ENABLE_CAP_FALSE=
18989fi
18990
18991 if test "x$enable_gestures" = "xyes"; then
18992  ENABLE_GESTURES_TRUE=
18993  ENABLE_GESTURES_FALSE='#'
18994else
18995  ENABLE_GESTURES_TRUE='#'
18996  ENABLE_GESTURES_FALSE=
18997fi
18998
18999
19000
19001if test "x$enable_consoleui" = "xyes"; then
19002
19003pkg_failed=no
19004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnt >= 2.14.0" >&5
19005printf %s "checking for gnt >= 2.14.0... " >&6; }
19006
19007if test -n "$LIBGNT_CFLAGS"; then
19008    pkg_cv_LIBGNT_CFLAGS="$LIBGNT_CFLAGS"
19009 elif test -n "$PKG_CONFIG"; then
19010    if test -n "$PKG_CONFIG" && \
19011    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnt >= 2.14.0\""; } >&5
19012  ($PKG_CONFIG --exists --print-errors "gnt >= 2.14.0") 2>&5
19013  ac_status=$?
19014  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19015  test $ac_status = 0; }; then
19016  pkg_cv_LIBGNT_CFLAGS=`$PKG_CONFIG --cflags "gnt >= 2.14.0" 2>/dev/null`
19017		      test "x$?" != "x0" && pkg_failed=yes
19018else
19019  pkg_failed=yes
19020fi
19021 else
19022    pkg_failed=untried
19023fi
19024if test -n "$LIBGNT_LIBS"; then
19025    pkg_cv_LIBGNT_LIBS="$LIBGNT_LIBS"
19026 elif test -n "$PKG_CONFIG"; then
19027    if test -n "$PKG_CONFIG" && \
19028    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnt >= 2.14.0\""; } >&5
19029  ($PKG_CONFIG --exists --print-errors "gnt >= 2.14.0") 2>&5
19030  ac_status=$?
19031  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19032  test $ac_status = 0; }; then
19033  pkg_cv_LIBGNT_LIBS=`$PKG_CONFIG --libs "gnt >= 2.14.0" 2>/dev/null`
19034		      test "x$?" != "x0" && pkg_failed=yes
19035else
19036  pkg_failed=yes
19037fi
19038 else
19039    pkg_failed=untried
19040fi
19041
19042
19043
19044if test $pkg_failed = yes; then
19045        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19046printf "%s\n" "no" >&6; }
19047
19048if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19049        _pkg_short_errors_supported=yes
19050else
19051        _pkg_short_errors_supported=no
19052fi
19053        if test $_pkg_short_errors_supported = yes; then
19054	        LIBGNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnt >= 2.14.0" 2>&1`
19055        else
19056	        LIBGNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnt >= 2.14.0" 2>&1`
19057        fi
19058	# Put the nasty error message in config.log where it belongs
19059	echo "$LIBGNT_PKG_ERRORS" >&5
19060
19061
19062	if test "x$force_finch" = "xyes"; then
19063		as_fn_error $? "
19064
19065Finch will not be built. You must have libgnt >= 2.14.0 development headers installed to build.
19066
19067" "$LINENO" 5
19068	fi
19069	enable_consoleui=no
19070
19071elif test $pkg_failed = untried; then
19072        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19073printf "%s\n" "no" >&6; }
19074
19075	if test "x$force_finch" = "xyes"; then
19076		as_fn_error $? "
19077
19078Finch will not be built. You must have libgnt >= 2.14.0 development headers installed to build.
19079
19080" "$LINENO" 5
19081	fi
19082	enable_consoleui=no
19083
19084else
19085	LIBGNT_CFLAGS=$pkg_cv_LIBGNT_CFLAGS
19086	LIBGNT_LIBS=$pkg_cv_LIBGNT_LIBS
19087        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19088printf "%s\n" "yes" >&6; }
19089
19090fi
19091fi
19092
19093GNT_LIBS=""
19094GNT_CFLAGS=""
19095
19096# Check whether --with-ncurses-headers was given.
19097if test ${with_ncurses_headers+y}
19098then :
19099  withval=$with_ncurses_headers; ac_ncurses_includes="$withval"
19100else $as_nop
19101  ac_ncurses_includes=""
19102fi
19103
19104if test "x$enable_consoleui" = "xyes"; then
19105
19106pkg_failed=no
19107{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncursesw panelw" >&5
19108printf %s "checking for ncursesw panelw... " >&6; }
19109
19110if test -n "$GNT_CFLAGS"; then
19111    pkg_cv_GNT_CFLAGS="$GNT_CFLAGS"
19112 elif test -n "$PKG_CONFIG"; then
19113    if test -n "$PKG_CONFIG" && \
19114    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw panelw\""; } >&5
19115  ($PKG_CONFIG --exists --print-errors "ncursesw panelw") 2>&5
19116  ac_status=$?
19117  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19118  test $ac_status = 0; }; then
19119  pkg_cv_GNT_CFLAGS=`$PKG_CONFIG --cflags "ncursesw panelw" 2>/dev/null`
19120		      test "x$?" != "x0" && pkg_failed=yes
19121else
19122  pkg_failed=yes
19123fi
19124 else
19125    pkg_failed=untried
19126fi
19127if test -n "$GNT_LIBS"; then
19128    pkg_cv_GNT_LIBS="$GNT_LIBS"
19129 elif test -n "$PKG_CONFIG"; then
19130    if test -n "$PKG_CONFIG" && \
19131    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncursesw panelw\""; } >&5
19132  ($PKG_CONFIG --exists --print-errors "ncursesw panelw") 2>&5
19133  ac_status=$?
19134  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19135  test $ac_status = 0; }; then
19136  pkg_cv_GNT_LIBS=`$PKG_CONFIG --libs "ncursesw panelw" 2>/dev/null`
19137		      test "x$?" != "x0" && pkg_failed=yes
19138else
19139  pkg_failed=yes
19140fi
19141 else
19142    pkg_failed=untried
19143fi
19144
19145
19146
19147if test $pkg_failed = yes; then
19148        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149printf "%s\n" "no" >&6; }
19150
19151if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19152        _pkg_short_errors_supported=yes
19153else
19154        _pkg_short_errors_supported=no
19155fi
19156        if test $_pkg_short_errors_supported = yes; then
19157	        GNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncursesw panelw" 2>&1`
19158        else
19159	        GNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncursesw panelw" 2>&1`
19160        fi
19161	# Put the nasty error message in config.log where it belongs
19162	echo "$GNT_PKG_ERRORS" >&5
19163
19164
19165		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
19166printf %s "checking for initscr in -lncursesw... " >&6; }
19167if test ${ac_cv_lib_ncursesw_initscr+y}
19168then :
19169  printf %s "(cached) " >&6
19170else $as_nop
19171  ac_check_lib_save_LIBS=$LIBS
19172LIBS="-lncursesw  $LIBS"
19173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19174/* end confdefs.h.  */
19175
19176/* Override any GCC internal prototype to avoid an error.
19177   Use char because int might match the return type of a GCC
19178   builtin and then its argument prototype would still apply.  */
19179char initscr ();
19180int
19181main (void)
19182{
19183return initscr ();
19184  ;
19185  return 0;
19186}
19187_ACEOF
19188if ac_fn_c_try_link "$LINENO"
19189then :
19190  ac_cv_lib_ncursesw_initscr=yes
19191else $as_nop
19192  ac_cv_lib_ncursesw_initscr=no
19193fi
19194rm -f core conftest.err conftest.$ac_objext conftest.beam \
19195    conftest$ac_exeext conftest.$ac_ext
19196LIBS=$ac_check_lib_save_LIBS
19197fi
19198{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
19199printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
19200if test "x$ac_cv_lib_ncursesw_initscr" = xyes
19201then :
19202  GNT_LIBS="-lncursesw"
19203else $as_nop
19204  enable_consoleui=no
19205fi
19206
19207		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
19208printf %s "checking for update_panels in -lpanelw... " >&6; }
19209if test ${ac_cv_lib_panelw_update_panels+y}
19210then :
19211  printf %s "(cached) " >&6
19212else $as_nop
19213  ac_check_lib_save_LIBS=$LIBS
19214LIBS="-lpanelw $GNT_LIBS $LIBS"
19215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216/* end confdefs.h.  */
19217
19218/* Override any GCC internal prototype to avoid an error.
19219   Use char because int might match the return type of a GCC
19220   builtin and then its argument prototype would still apply.  */
19221char update_panels ();
19222int
19223main (void)
19224{
19225return update_panels ();
19226  ;
19227  return 0;
19228}
19229_ACEOF
19230if ac_fn_c_try_link "$LINENO"
19231then :
19232  ac_cv_lib_panelw_update_panels=yes
19233else $as_nop
19234  ac_cv_lib_panelw_update_panels=no
19235fi
19236rm -f core conftest.err conftest.$ac_objext conftest.beam \
19237    conftest$ac_exeext conftest.$ac_ext
19238LIBS=$ac_check_lib_save_LIBS
19239fi
19240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
19241printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
19242if test "x$ac_cv_lib_panelw_update_panels" = xyes
19243then :
19244  GNT_LIBS="$GNT_LIBS -lpanelw"
19245else $as_nop
19246  enable_consoleui=no
19247fi
19248
19249
19250elif test $pkg_failed = untried; then
19251        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19252printf "%s\n" "no" >&6; }
19253
19254		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncursesw" >&5
19255printf %s "checking for initscr in -lncursesw... " >&6; }
19256if test ${ac_cv_lib_ncursesw_initscr+y}
19257then :
19258  printf %s "(cached) " >&6
19259else $as_nop
19260  ac_check_lib_save_LIBS=$LIBS
19261LIBS="-lncursesw  $LIBS"
19262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19263/* end confdefs.h.  */
19264
19265/* Override any GCC internal prototype to avoid an error.
19266   Use char because int might match the return type of a GCC
19267   builtin and then its argument prototype would still apply.  */
19268char initscr ();
19269int
19270main (void)
19271{
19272return initscr ();
19273  ;
19274  return 0;
19275}
19276_ACEOF
19277if ac_fn_c_try_link "$LINENO"
19278then :
19279  ac_cv_lib_ncursesw_initscr=yes
19280else $as_nop
19281  ac_cv_lib_ncursesw_initscr=no
19282fi
19283rm -f core conftest.err conftest.$ac_objext conftest.beam \
19284    conftest$ac_exeext conftest.$ac_ext
19285LIBS=$ac_check_lib_save_LIBS
19286fi
19287{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncursesw_initscr" >&5
19288printf "%s\n" "$ac_cv_lib_ncursesw_initscr" >&6; }
19289if test "x$ac_cv_lib_ncursesw_initscr" = xyes
19290then :
19291  GNT_LIBS="-lncursesw"
19292else $as_nop
19293  enable_consoleui=no
19294fi
19295
19296		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanelw" >&5
19297printf %s "checking for update_panels in -lpanelw... " >&6; }
19298if test ${ac_cv_lib_panelw_update_panels+y}
19299then :
19300  printf %s "(cached) " >&6
19301else $as_nop
19302  ac_check_lib_save_LIBS=$LIBS
19303LIBS="-lpanelw $GNT_LIBS $LIBS"
19304cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305/* end confdefs.h.  */
19306
19307/* Override any GCC internal prototype to avoid an error.
19308   Use char because int might match the return type of a GCC
19309   builtin and then its argument prototype would still apply.  */
19310char update_panels ();
19311int
19312main (void)
19313{
19314return update_panels ();
19315  ;
19316  return 0;
19317}
19318_ACEOF
19319if ac_fn_c_try_link "$LINENO"
19320then :
19321  ac_cv_lib_panelw_update_panels=yes
19322else $as_nop
19323  ac_cv_lib_panelw_update_panels=no
19324fi
19325rm -f core conftest.err conftest.$ac_objext conftest.beam \
19326    conftest$ac_exeext conftest.$ac_ext
19327LIBS=$ac_check_lib_save_LIBS
19328fi
19329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panelw_update_panels" >&5
19330printf "%s\n" "$ac_cv_lib_panelw_update_panels" >&6; }
19331if test "x$ac_cv_lib_panelw_update_panels" = xyes
19332then :
19333  GNT_LIBS="$GNT_LIBS -lpanelw"
19334else $as_nop
19335  enable_consoleui=no
19336fi
19337
19338
19339else
19340	GNT_CFLAGS=$pkg_cv_GNT_CFLAGS
19341	GNT_LIBS=$pkg_cv_GNT_LIBS
19342        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343printf "%s\n" "yes" >&6; }
19344
19345fi
19346
19347	if test "x$enable_consoleui" = "xyes"; then
19348				found_ncurses_h=no
19349		for location in $ac_ncurses_includes $NCURSES_HEADERS /usr/include/ncursesw /usr/include
19350		do
19351			f="$location/ncurses.h"
19352			orig_CFLAGS="$CFLAGS"
19353			orig_CPPFLAGS="$CPPFLAGS"
19354			CFLAGS="$CFLAGS -I$location"
19355			CPPFLAGS="$CPPFLAGS -I$location"
19356			as_ac_Header=`printf "%s\n" "ac_cv_header_$f" | $as_tr_sh`
19357ac_fn_c_check_header_compile "$LINENO" "$f" "$as_ac_Header" "$ac_includes_default"
19358if eval test \"x\$"$as_ac_Header"\" = x"yes"
19359then :
19360
19361				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $f supports wide characters" >&5
19362printf %s "checking if $f supports wide characters... " >&6; }
19363				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19364/* end confdefs.h.  */
19365
19366					#define _XOPEN_SOURCE_EXTENDED
19367					#include <$f>
19368
19369int
19370main (void)
19371{
19372
19373					#ifndef get_wch
19374					# error get_wch not found!
19375					#endif
19376
19377  ;
19378  return 0;
19379}
19380_ACEOF
19381if ac_fn_c_try_compile "$LINENO"
19382then :
19383
19384					dir=$location
19385					if test x"$dir" != x"." ; then
19386						GNT_CFLAGS="-I$dir/"
19387					else
19388						GNT_CFLAGS=""
19389					fi
19390
19391					found_ncurses_h=yes
19392					CFLAGS="$orig_CFLAGS"
19393					CPPFLAGS="$orig_CPPFLAGS"
19394					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19395printf "%s\n" "yes" >&6; }
19396					break
19397
19398else $as_nop
19399
19400					CFLAGS="$orig_CFLAGS"
19401					CPPFLAGS="$orig_CPPFLAGS"
19402					{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19403printf "%s\n" "no" >&6; }
19404
19405fi
19406rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19407
19408fi
19409
19410		done
19411
19412		if test x"$found_ncurses_h" = x"no" ; then
19413			GNT_LIBS=""
19414			GNT_CFLAGS=""
19415			enable_consoleui=no
19416		fi
19417	else
19418		# ncursesw was not found. Look for plain old ncurses
19419		enable_consoleui=yes
19420
19421
19422pkg_failed=no
19423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ncurses panel" >&5
19424printf %s "checking for ncurses panel... " >&6; }
19425
19426if test -n "$GNT_CFLAGS"; then
19427    pkg_cv_GNT_CFLAGS="$GNT_CFLAGS"
19428 elif test -n "$PKG_CONFIG"; then
19429    if test -n "$PKG_CONFIG" && \
19430    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses panel\""; } >&5
19431  ($PKG_CONFIG --exists --print-errors "ncurses panel") 2>&5
19432  ac_status=$?
19433  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19434  test $ac_status = 0; }; then
19435  pkg_cv_GNT_CFLAGS=`$PKG_CONFIG --cflags "ncurses panel" 2>/dev/null`
19436		      test "x$?" != "x0" && pkg_failed=yes
19437else
19438  pkg_failed=yes
19439fi
19440 else
19441    pkg_failed=untried
19442fi
19443if test -n "$GNT_LIBS"; then
19444    pkg_cv_GNT_LIBS="$GNT_LIBS"
19445 elif test -n "$PKG_CONFIG"; then
19446    if test -n "$PKG_CONFIG" && \
19447    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses panel\""; } >&5
19448  ($PKG_CONFIG --exists --print-errors "ncurses panel") 2>&5
19449  ac_status=$?
19450  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451  test $ac_status = 0; }; then
19452  pkg_cv_GNT_LIBS=`$PKG_CONFIG --libs "ncurses panel" 2>/dev/null`
19453		      test "x$?" != "x0" && pkg_failed=yes
19454else
19455  pkg_failed=yes
19456fi
19457 else
19458    pkg_failed=untried
19459fi
19460
19461
19462
19463if test $pkg_failed = yes; then
19464        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465printf "%s\n" "no" >&6; }
19466
19467if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19468        _pkg_short_errors_supported=yes
19469else
19470        _pkg_short_errors_supported=no
19471fi
19472        if test $_pkg_short_errors_supported = yes; then
19473	        GNT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses panel" 2>&1`
19474        else
19475	        GNT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses panel" 2>&1`
19476        fi
19477	# Put the nasty error message in config.log where it belongs
19478	echo "$GNT_PKG_ERRORS" >&5
19479
19480
19481			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
19482printf %s "checking for initscr in -lncurses... " >&6; }
19483if test ${ac_cv_lib_ncurses_initscr+y}
19484then :
19485  printf %s "(cached) " >&6
19486else $as_nop
19487  ac_check_lib_save_LIBS=$LIBS
19488LIBS="-lncurses  $LIBS"
19489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490/* end confdefs.h.  */
19491
19492/* Override any GCC internal prototype to avoid an error.
19493   Use char because int might match the return type of a GCC
19494   builtin and then its argument prototype would still apply.  */
19495char initscr ();
19496int
19497main (void)
19498{
19499return initscr ();
19500  ;
19501  return 0;
19502}
19503_ACEOF
19504if ac_fn_c_try_link "$LINENO"
19505then :
19506  ac_cv_lib_ncurses_initscr=yes
19507else $as_nop
19508  ac_cv_lib_ncurses_initscr=no
19509fi
19510rm -f core conftest.err conftest.$ac_objext conftest.beam \
19511    conftest$ac_exeext conftest.$ac_ext
19512LIBS=$ac_check_lib_save_LIBS
19513fi
19514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
19515printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
19516if test "x$ac_cv_lib_ncurses_initscr" = xyes
19517then :
19518  GNT_LIBS="-lncurses"
19519else $as_nop
19520  enable_consoleui=no
19521fi
19522
19523			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
19524printf %s "checking for update_panels in -lpanel... " >&6; }
19525if test ${ac_cv_lib_panel_update_panels+y}
19526then :
19527  printf %s "(cached) " >&6
19528else $as_nop
19529  ac_check_lib_save_LIBS=$LIBS
19530LIBS="-lpanel $GNT_LIBS $LIBS"
19531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532/* end confdefs.h.  */
19533
19534/* Override any GCC internal prototype to avoid an error.
19535   Use char because int might match the return type of a GCC
19536   builtin and then its argument prototype would still apply.  */
19537char update_panels ();
19538int
19539main (void)
19540{
19541return update_panels ();
19542  ;
19543  return 0;
19544}
19545_ACEOF
19546if ac_fn_c_try_link "$LINENO"
19547then :
19548  ac_cv_lib_panel_update_panels=yes
19549else $as_nop
19550  ac_cv_lib_panel_update_panels=no
19551fi
19552rm -f core conftest.err conftest.$ac_objext conftest.beam \
19553    conftest$ac_exeext conftest.$ac_ext
19554LIBS=$ac_check_lib_save_LIBS
19555fi
19556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
19557printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
19558if test "x$ac_cv_lib_panel_update_panels" = xyes
19559then :
19560  GNT_LIBS="$GNT_LIBS -lpanel"
19561else $as_nop
19562  enable_consoleui=no
19563fi
19564
19565
19566elif test $pkg_failed = untried; then
19567        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19568printf "%s\n" "no" >&6; }
19569
19570			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initscr in -lncurses" >&5
19571printf %s "checking for initscr in -lncurses... " >&6; }
19572if test ${ac_cv_lib_ncurses_initscr+y}
19573then :
19574  printf %s "(cached) " >&6
19575else $as_nop
19576  ac_check_lib_save_LIBS=$LIBS
19577LIBS="-lncurses  $LIBS"
19578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579/* end confdefs.h.  */
19580
19581/* Override any GCC internal prototype to avoid an error.
19582   Use char because int might match the return type of a GCC
19583   builtin and then its argument prototype would still apply.  */
19584char initscr ();
19585int
19586main (void)
19587{
19588return initscr ();
19589  ;
19590  return 0;
19591}
19592_ACEOF
19593if ac_fn_c_try_link "$LINENO"
19594then :
19595  ac_cv_lib_ncurses_initscr=yes
19596else $as_nop
19597  ac_cv_lib_ncurses_initscr=no
19598fi
19599rm -f core conftest.err conftest.$ac_objext conftest.beam \
19600    conftest$ac_exeext conftest.$ac_ext
19601LIBS=$ac_check_lib_save_LIBS
19602fi
19603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_initscr" >&5
19604printf "%s\n" "$ac_cv_lib_ncurses_initscr" >&6; }
19605if test "x$ac_cv_lib_ncurses_initscr" = xyes
19606then :
19607  GNT_LIBS="-lncurses"
19608else $as_nop
19609  enable_consoleui=no
19610fi
19611
19612			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for update_panels in -lpanel" >&5
19613printf %s "checking for update_panels in -lpanel... " >&6; }
19614if test ${ac_cv_lib_panel_update_panels+y}
19615then :
19616  printf %s "(cached) " >&6
19617else $as_nop
19618  ac_check_lib_save_LIBS=$LIBS
19619LIBS="-lpanel $GNT_LIBS $LIBS"
19620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621/* end confdefs.h.  */
19622
19623/* Override any GCC internal prototype to avoid an error.
19624   Use char because int might match the return type of a GCC
19625   builtin and then its argument prototype would still apply.  */
19626char update_panels ();
19627int
19628main (void)
19629{
19630return update_panels ();
19631  ;
19632  return 0;
19633}
19634_ACEOF
19635if ac_fn_c_try_link "$LINENO"
19636then :
19637  ac_cv_lib_panel_update_panels=yes
19638else $as_nop
19639  ac_cv_lib_panel_update_panels=no
19640fi
19641rm -f core conftest.err conftest.$ac_objext conftest.beam \
19642    conftest$ac_exeext conftest.$ac_ext
19643LIBS=$ac_check_lib_save_LIBS
19644fi
19645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_panel_update_panels" >&5
19646printf "%s\n" "$ac_cv_lib_panel_update_panels" >&6; }
19647if test "x$ac_cv_lib_panel_update_panels" = xyes
19648then :
19649  GNT_LIBS="$GNT_LIBS -lpanel"
19650else $as_nop
19651  enable_consoleui=no
19652fi
19653
19654
19655else
19656	GNT_CFLAGS=$pkg_cv_GNT_CFLAGS
19657	GNT_LIBS=$pkg_cv_GNT_LIBS
19658        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19659printf "%s\n" "yes" >&6; }
19660
19661fi
19662
19663
19664printf "%s\n" "#define NO_WIDECHAR 1" >>confdefs.h
19665
19666		if test x"$ac_ncurses_includes" != "x"; then
19667			GNT_CFLAGS="-I$ac_ncurses_includes"
19668		else
19669			if test x"$NCURSES_HEADERS" != "x"; then
19670				GNT_CFLAGS="-I$NCURSES_HEADERS"
19671			fi
19672		fi
19673	fi
19674fi
19675
19676if test "x$force_finch" = "xyes" -a "x$enable_consoleui" != "xyes"; then
19677	as_fn_error $? "
19678
19679Finch will not be built. You need to install ncursesw (or ncurses) and its development headers.
19680
19681" "$LINENO" 5
19682fi
19683
19684
19685
19686 if test "x$enable_consoleui" = "xyes"; then
19687  ENABLE_GNT_TRUE=
19688  ENABLE_GNT_FALSE='#'
19689else
19690  ENABLE_GNT_TRUE='#'
19691  ENABLE_GNT_FALSE=
19692fi
19693
19694
19695
19696pkg_failed=no
19697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.0" >&5
19698printf %s "checking for libxml-2.0 >= 2.6.0... " >&6; }
19699
19700if test -n "$LIBXML_CFLAGS"; then
19701    pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
19702 elif test -n "$PKG_CONFIG"; then
19703    if test -n "$PKG_CONFIG" && \
19704    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
19705  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
19706  ac_status=$?
19707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19708  test $ac_status = 0; }; then
19709  pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.0" 2>/dev/null`
19710		      test "x$?" != "x0" && pkg_failed=yes
19711else
19712  pkg_failed=yes
19713fi
19714 else
19715    pkg_failed=untried
19716fi
19717if test -n "$LIBXML_LIBS"; then
19718    pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
19719 elif test -n "$PKG_CONFIG"; then
19720    if test -n "$PKG_CONFIG" && \
19721    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.0\""; } >&5
19722  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.0") 2>&5
19723  ac_status=$?
19724  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19725  test $ac_status = 0; }; then
19726  pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.0" 2>/dev/null`
19727		      test "x$?" != "x0" && pkg_failed=yes
19728else
19729  pkg_failed=yes
19730fi
19731 else
19732    pkg_failed=untried
19733fi
19734
19735
19736
19737if test $pkg_failed = yes; then
19738        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19739printf "%s\n" "no" >&6; }
19740
19741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19742        _pkg_short_errors_supported=yes
19743else
19744        _pkg_short_errors_supported=no
19745fi
19746        if test $_pkg_short_errors_supported = yes; then
19747	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
19748        else
19749	        LIBXML_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6.0" 2>&1`
19750        fi
19751	# Put the nasty error message in config.log where it belongs
19752	echo "$LIBXML_PKG_ERRORS" >&5
19753
19754
19755	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19756printf "%s\n" "no" >&6; }
19757	as_fn_error $? "
19758You must have libxml2 >= 2.6.0 development headers installed to build.
19759" "$LINENO" 5
19760elif test $pkg_failed = untried; then
19761        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19762printf "%s\n" "no" >&6; }
19763
19764	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19765printf "%s\n" "no" >&6; }
19766	as_fn_error $? "
19767You must have libxml2 >= 2.6.0 development headers installed to build.
19768" "$LINENO" 5
19769else
19770	LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
19771	LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
19772        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19773printf "%s\n" "yes" >&6; }
19774
19775fi
19776if test -n "$PKG_CONFIG" && \
19777    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6.18\""; } >&5
19778  ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6.18") 2>&5
19779  ac_status=$?
19780  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19781  test $ac_status = 0; }; then
19782  :
19783else
19784
19785	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
19786Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.
19787" >&5
19788printf "%s\n" "$as_me: WARNING:
19789Versions of libxml2 < 2.6.18 may contain bugs that could cause XMPP messages to be discarded.
19790" >&2;}
19791fi
19792
19793
19794
19795
19796# Extract the first word of "gconftool-disabled", so it can be a program name with args.
19797set dummy gconftool-disabled; ac_word=$2
19798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19799printf %s "checking for $ac_word... " >&6; }
19800if test ${ac_cv_path_GCONFTOOL+y}
19801then :
19802  printf %s "(cached) " >&6
19803else $as_nop
19804  case $GCONFTOOL in
19805  [\\/]* | ?:[\\/]*)
19806  ac_cv_path_GCONFTOOL="$GCONFTOOL" # Let the user override the test with a path.
19807  ;;
19808  *)
19809  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19810for as_dir in $PATH
19811do
19812  IFS=$as_save_IFS
19813  case $as_dir in #(((
19814    '') as_dir=./ ;;
19815    */) ;;
19816    *) as_dir=$as_dir/ ;;
19817  esac
19818    for ac_exec_ext in '' $ac_executable_extensions; do
19819  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19820    ac_cv_path_GCONFTOOL="$as_dir$ac_word$ac_exec_ext"
19821    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19822    break 2
19823  fi
19824done
19825  done
19826IFS=$as_save_IFS
19827
19828  test -z "$ac_cv_path_GCONFTOOL" && ac_cv_path_GCONFTOOL="no"
19829  ;;
19830esac
19831fi
19832GCONFTOOL=$ac_cv_path_GCONFTOOL
19833if test -n "$GCONFTOOL"; then
19834  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCONFTOOL" >&5
19835printf "%s\n" "$GCONFTOOL" >&6; }
19836else
19837  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19838printf "%s\n" "no" >&6; }
19839fi
19840
19841
19842 if test "x$GCONFTOOL" != "xno"; then
19843  USE_GCONFTOOL_TRUE=
19844  USE_GCONFTOOL_FALSE='#'
19845else
19846  USE_GCONFTOOL_TRUE='#'
19847  USE_GCONFTOOL_FALSE=
19848fi
19849
19850
19851  if test "x$GCONF_SCHEMA_INSTALL_SOURCE" = "x"; then
19852    GCONF_SCHEMA_CONFIG_SOURCE=`gconftool-disabled --get-default-source`
19853  else
19854    GCONF_SCHEMA_CONFIG_SOURCE=$GCONF_SCHEMA_INSTALL_SOURCE
19855  fi
19856
19857
19858# Check whether --with-gconf-source was given.
19859if test ${with_gconf_source+y}
19860then :
19861  withval=$with_gconf_source; GCONF_SCHEMA_CONFIG_SOURCE="$withval"
19862fi
19863
19864
19865
19866  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&5
19867printf "%s\n" "Using config source $GCONF_SCHEMA_CONFIG_SOURCE for schema installation" >&6; }
19868
19869  if test "x$GCONF_SCHEMA_FILE_DIR" = "x"; then
19870    GCONF_SCHEMA_FILE_DIR='$(sysconfdir)/gconf/schemas'
19871  fi
19872
19873
19874# Check whether --with-gconf-schema-file-dir was given.
19875if test ${with_gconf_schema_file_dir+y}
19876then :
19877  withval=$with_gconf_schema_file_dir; GCONF_SCHEMA_FILE_DIR="$withval"
19878fi
19879
19880
19881
19882  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&5
19883printf "%s\n" "Using $GCONF_SCHEMA_FILE_DIR as install directory for schema files" >&6; }
19884
19885  # Check whether --enable-schemas-install was given.
19886if test ${enable_schemas_install+y}
19887then :
19888  enableval=$enable_schemas_install; case ${enableval} in
19889       yes|no) ;;
19890       *) as_fn_error $? "bad value ${enableval} for --enable-schemas-install" "$LINENO" 5 ;;
19891      esac
19892fi
19893
19894   if test "$enable_schemas_install" != no; then
19895  GCONF_SCHEMAS_INSTALL_TRUE=
19896  GCONF_SCHEMAS_INSTALL_FALSE='#'
19897else
19898  GCONF_SCHEMAS_INSTALL_TRUE='#'
19899  GCONF_SCHEMAS_INSTALL_FALSE=
19900fi
19901
19902
19903
19904# Check whether --enable-gstreamer was given.
19905if test ${enable_gstreamer+y}
19906then :
19907  enableval=$enable_gstreamer; enable_gst="$enableval"
19908else $as_nop
19909  enable_gst="yes"
19910fi
19911
19912
19913# Check whether --with-gstreamer was given.
19914if test ${with_gstreamer+y}
19915then :
19916  withval=$with_gstreamer; with_gstreamer="$withval"
19917else $as_nop
19918  with_gstreamer="auto"
19919fi
19920
19921if test "x$enable_gst" != "xno"; then
19922	if test "x$with_gstreamer" = "xauto"; then
19923
19924pkg_failed=no
19925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-1.0" >&5
19926printf %s "checking for gstreamer-1.0... " >&6; }
19927
19928if test -n "$GSTREAMER_CFLAGS"; then
19929    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
19930 elif test -n "$PKG_CONFIG"; then
19931    if test -n "$PKG_CONFIG" && \
19932    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0\""; } >&5
19933  ($PKG_CONFIG --exists --print-errors "gstreamer-1.0") 2>&5
19934  ac_status=$?
19935  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19936  test $ac_status = 0; }; then
19937  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0" 2>/dev/null`
19938		      test "x$?" != "x0" && pkg_failed=yes
19939else
19940  pkg_failed=yes
19941fi
19942 else
19943    pkg_failed=untried
19944fi
19945if test -n "$GSTREAMER_LIBS"; then
19946    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
19947 elif test -n "$PKG_CONFIG"; then
19948    if test -n "$PKG_CONFIG" && \
19949    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0\""; } >&5
19950  ($PKG_CONFIG --exists --print-errors "gstreamer-1.0") 2>&5
19951  ac_status=$?
19952  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19953  test $ac_status = 0; }; then
19954  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0" 2>/dev/null`
19955		      test "x$?" != "x0" && pkg_failed=yes
19956else
19957  pkg_failed=yes
19958fi
19959 else
19960    pkg_failed=untried
19961fi
19962
19963
19964
19965if test $pkg_failed = yes; then
19966        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967printf "%s\n" "no" >&6; }
19968
19969if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19970        _pkg_short_errors_supported=yes
19971else
19972        _pkg_short_errors_supported=no
19973fi
19974        if test $_pkg_short_errors_supported = yes; then
19975	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0" 2>&1`
19976        else
19977	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0" 2>&1`
19978        fi
19979	# Put the nasty error message in config.log where it belongs
19980	echo "$GSTREAMER_PKG_ERRORS" >&5
19981
19982
19983
19984pkg_failed=no
19985{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-0.10" >&5
19986printf %s "checking for gstreamer-0.10... " >&6; }
19987
19988if test -n "$GSTREAMER_CFLAGS"; then
19989    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
19990 elif test -n "$PKG_CONFIG"; then
19991    if test -n "$PKG_CONFIG" && \
19992    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
19993  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
19994  ac_status=$?
19995  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19996  test $ac_status = 0; }; then
19997  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10" 2>/dev/null`
19998		      test "x$?" != "x0" && pkg_failed=yes
19999else
20000  pkg_failed=yes
20001fi
20002 else
20003    pkg_failed=untried
20004fi
20005if test -n "$GSTREAMER_LIBS"; then
20006    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
20007 elif test -n "$PKG_CONFIG"; then
20008    if test -n "$PKG_CONFIG" && \
20009    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
20010  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
20011  ac_status=$?
20012  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20013  test $ac_status = 0; }; then
20014  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10" 2>/dev/null`
20015		      test "x$?" != "x0" && pkg_failed=yes
20016else
20017  pkg_failed=yes
20018fi
20019 else
20020    pkg_failed=untried
20021fi
20022
20023
20024
20025if test $pkg_failed = yes; then
20026        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20027printf "%s\n" "no" >&6; }
20028
20029if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20030        _pkg_short_errors_supported=yes
20031else
20032        _pkg_short_errors_supported=no
20033fi
20034        if test $_pkg_short_errors_supported = yes; then
20035	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20036        else
20037	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20038        fi
20039	# Put the nasty error message in config.log where it belongs
20040	echo "$GSTREAMER_PKG_ERRORS" >&5
20041
20042
20043				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20044printf "%s\n" "no" >&6; }
20045				enable_gst="no"
20046				if test "x$force_deps" = "xyes" ; then
20047					as_fn_error $? "
20048GStreamer development headers not found.
20049Use --disable-gstreamer if you do not need GStreamer (sound) support.
20050" "$LINENO" 5
20051				fi
20052
20053elif test $pkg_failed = untried; then
20054        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055printf "%s\n" "no" >&6; }
20056
20057				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20058printf "%s\n" "no" >&6; }
20059				enable_gst="no"
20060				if test "x$force_deps" = "xyes" ; then
20061					as_fn_error $? "
20062GStreamer development headers not found.
20063Use --disable-gstreamer if you do not need GStreamer (sound) support.
20064" "$LINENO" 5
20065				fi
20066
20067else
20068	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20069	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20070        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20071printf "%s\n" "yes" >&6; }
20072
20073
20074printf "%s\n" "#define USE_GSTREAMER 1" >>confdefs.h
20075
20076				with_gstreamer="0.10"
20077
20078
20079
20080fi
20081
20082elif test $pkg_failed = untried; then
20083        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20084printf "%s\n" "no" >&6; }
20085
20086
20087pkg_failed=no
20088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-0.10" >&5
20089printf %s "checking for gstreamer-0.10... " >&6; }
20090
20091if test -n "$GSTREAMER_CFLAGS"; then
20092    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
20093 elif test -n "$PKG_CONFIG"; then
20094    if test -n "$PKG_CONFIG" && \
20095    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
20096  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
20097  ac_status=$?
20098  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20099  test $ac_status = 0; }; then
20100  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10" 2>/dev/null`
20101		      test "x$?" != "x0" && pkg_failed=yes
20102else
20103  pkg_failed=yes
20104fi
20105 else
20106    pkg_failed=untried
20107fi
20108if test -n "$GSTREAMER_LIBS"; then
20109    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
20110 elif test -n "$PKG_CONFIG"; then
20111    if test -n "$PKG_CONFIG" && \
20112    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
20113  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
20114  ac_status=$?
20115  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20116  test $ac_status = 0; }; then
20117  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10" 2>/dev/null`
20118		      test "x$?" != "x0" && pkg_failed=yes
20119else
20120  pkg_failed=yes
20121fi
20122 else
20123    pkg_failed=untried
20124fi
20125
20126
20127
20128if test $pkg_failed = yes; then
20129        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20130printf "%s\n" "no" >&6; }
20131
20132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20133        _pkg_short_errors_supported=yes
20134else
20135        _pkg_short_errors_supported=no
20136fi
20137        if test $_pkg_short_errors_supported = yes; then
20138	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20139        else
20140	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20141        fi
20142	# Put the nasty error message in config.log where it belongs
20143	echo "$GSTREAMER_PKG_ERRORS" >&5
20144
20145
20146				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20147printf "%s\n" "no" >&6; }
20148				enable_gst="no"
20149				if test "x$force_deps" = "xyes" ; then
20150					as_fn_error $? "
20151GStreamer development headers not found.
20152Use --disable-gstreamer if you do not need GStreamer (sound) support.
20153" "$LINENO" 5
20154				fi
20155
20156elif test $pkg_failed = untried; then
20157        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20158printf "%s\n" "no" >&6; }
20159
20160				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20161printf "%s\n" "no" >&6; }
20162				enable_gst="no"
20163				if test "x$force_deps" = "xyes" ; then
20164					as_fn_error $? "
20165GStreamer development headers not found.
20166Use --disable-gstreamer if you do not need GStreamer (sound) support.
20167" "$LINENO" 5
20168				fi
20169
20170else
20171	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20172	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20173        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20174printf "%s\n" "yes" >&6; }
20175
20176
20177printf "%s\n" "#define USE_GSTREAMER 1" >>confdefs.h
20178
20179				with_gstreamer="0.10"
20180
20181
20182
20183fi
20184
20185else
20186	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20187	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20188        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20189printf "%s\n" "yes" >&6; }
20190
20191
20192printf "%s\n" "#define USE_GSTREAMER 1" >>confdefs.h
20193
20194			with_gstreamer="1.0"
20195
20196
20197
20198fi
20199	elif test "x$with_gstreamer" = "x1.0"; then
20200
20201pkg_failed=no
20202{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-1.0" >&5
20203printf %s "checking for gstreamer-1.0... " >&6; }
20204
20205if test -n "$GSTREAMER_CFLAGS"; then
20206    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
20207 elif test -n "$PKG_CONFIG"; then
20208    if test -n "$PKG_CONFIG" && \
20209    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0\""; } >&5
20210  ($PKG_CONFIG --exists --print-errors "gstreamer-1.0") 2>&5
20211  ac_status=$?
20212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20213  test $ac_status = 0; }; then
20214  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-1.0" 2>/dev/null`
20215		      test "x$?" != "x0" && pkg_failed=yes
20216else
20217  pkg_failed=yes
20218fi
20219 else
20220    pkg_failed=untried
20221fi
20222if test -n "$GSTREAMER_LIBS"; then
20223    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
20224 elif test -n "$PKG_CONFIG"; then
20225    if test -n "$PKG_CONFIG" && \
20226    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-1.0\""; } >&5
20227  ($PKG_CONFIG --exists --print-errors "gstreamer-1.0") 2>&5
20228  ac_status=$?
20229  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20230  test $ac_status = 0; }; then
20231  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-1.0" 2>/dev/null`
20232		      test "x$?" != "x0" && pkg_failed=yes
20233else
20234  pkg_failed=yes
20235fi
20236 else
20237    pkg_failed=untried
20238fi
20239
20240
20241
20242if test $pkg_failed = yes; then
20243        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244printf "%s\n" "no" >&6; }
20245
20246if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20247        _pkg_short_errors_supported=yes
20248else
20249        _pkg_short_errors_supported=no
20250fi
20251        if test $_pkg_short_errors_supported = yes; then
20252	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-1.0" 2>&1`
20253        else
20254	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-1.0" 2>&1`
20255        fi
20256	# Put the nasty error message in config.log where it belongs
20257	echo "$GSTREAMER_PKG_ERRORS" >&5
20258
20259
20260			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20261printf "%s\n" "no" >&6; }
20262			enable_gst="no"
20263			if test "x$force_deps" = "xyes" ; then
20264				as_fn_error $? "
20265GStreamer development headers not found.
20266Use --disable-gstreamer if you do not need GStreamer (sound) support.
20267" "$LINENO" 5
20268			fi
20269
20270elif test $pkg_failed = untried; then
20271        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20272printf "%s\n" "no" >&6; }
20273
20274			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20275printf "%s\n" "no" >&6; }
20276			enable_gst="no"
20277			if test "x$force_deps" = "xyes" ; then
20278				as_fn_error $? "
20279GStreamer development headers not found.
20280Use --disable-gstreamer if you do not need GStreamer (sound) support.
20281" "$LINENO" 5
20282			fi
20283
20284else
20285	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20286	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20287        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20288printf "%s\n" "yes" >&6; }
20289
20290
20291printf "%s\n" "#define USE_GSTREAMER 1" >>confdefs.h
20292
20293
20294
20295
20296fi
20297	elif test "x$with_gstreamer" = "x0.10"; then
20298
20299pkg_failed=no
20300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-0.10" >&5
20301printf %s "checking for gstreamer-0.10... " >&6; }
20302
20303if test -n "$GSTREAMER_CFLAGS"; then
20304    pkg_cv_GSTREAMER_CFLAGS="$GSTREAMER_CFLAGS"
20305 elif test -n "$PKG_CONFIG"; then
20306    if test -n "$PKG_CONFIG" && \
20307    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
20308  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
20309  ac_status=$?
20310  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20311  test $ac_status = 0; }; then
20312  pkg_cv_GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-0.10" 2>/dev/null`
20313		      test "x$?" != "x0" && pkg_failed=yes
20314else
20315  pkg_failed=yes
20316fi
20317 else
20318    pkg_failed=untried
20319fi
20320if test -n "$GSTREAMER_LIBS"; then
20321    pkg_cv_GSTREAMER_LIBS="$GSTREAMER_LIBS"
20322 elif test -n "$PKG_CONFIG"; then
20323    if test -n "$PKG_CONFIG" && \
20324    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-0.10\""; } >&5
20325  ($PKG_CONFIG --exists --print-errors "gstreamer-0.10") 2>&5
20326  ac_status=$?
20327  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20328  test $ac_status = 0; }; then
20329  pkg_cv_GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-0.10" 2>/dev/null`
20330		      test "x$?" != "x0" && pkg_failed=yes
20331else
20332  pkg_failed=yes
20333fi
20334 else
20335    pkg_failed=untried
20336fi
20337
20338
20339
20340if test $pkg_failed = yes; then
20341        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20342printf "%s\n" "no" >&6; }
20343
20344if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20345        _pkg_short_errors_supported=yes
20346else
20347        _pkg_short_errors_supported=no
20348fi
20349        if test $_pkg_short_errors_supported = yes; then
20350	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20351        else
20352	        GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-0.10" 2>&1`
20353        fi
20354	# Put the nasty error message in config.log where it belongs
20355	echo "$GSTREAMER_PKG_ERRORS" >&5
20356
20357
20358			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20359printf "%s\n" "no" >&6; }
20360			enable_gst="no"
20361			if test "x$force_deps" = "xyes" ; then
20362				as_fn_error $? "
20363GStreamer development headers not found.
20364Use --disable-gstreamer if you do not need GStreamer (sound) support.
20365" "$LINENO" 5
20366			fi
20367
20368elif test $pkg_failed = untried; then
20369        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20370printf "%s\n" "no" >&6; }
20371
20372			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20373printf "%s\n" "no" >&6; }
20374			enable_gst="no"
20375			if test "x$force_deps" = "xyes" ; then
20376				as_fn_error $? "
20377GStreamer development headers not found.
20378Use --disable-gstreamer if you do not need GStreamer (sound) support.
20379" "$LINENO" 5
20380			fi
20381
20382else
20383	GSTREAMER_CFLAGS=$pkg_cv_GSTREAMER_CFLAGS
20384	GSTREAMER_LIBS=$pkg_cv_GSTREAMER_LIBS
20385        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20386printf "%s\n" "yes" >&6; }
20387
20388
20389printf "%s\n" "#define USE_GSTREAMER 1" >>confdefs.h
20390
20391
20392
20393
20394fi
20395	else
20396		as_fn_error $? "--with-gstreamer must specify one of 0.10, 1.0 or auto." "$LINENO" 5
20397	fi
20398fi
20399
20400if test "x$with_gtk" = "x3" -a "x$with_gstreamer" = "x0.10"; then
20401	as_fn_error $? "WebKitGTK+ 3.0 cannot be mixed with GStreamer 0.10.
20402Please switch to WebKitGTK+ 2.0 or GStreamer 1.0." "$LINENO" 5
20403elif test "x$with_gtk" = "x2" -a "x$with_gstreamer" = "x1.0"; then
20404	as_fn_error $? "WebKitGTK+ 2.0 cannot be mixed with GStreamer 1.0.
20405Please switch to WebKitGTK+ 3.0 or GStreamer 0.10." "$LINENO" 5
20406fi
20407if test "x$with_gstreamer" = "x0.10" -o "x$with_gstreamer" = "x1.0"; then
20408	GSTREAMER_VER=$with_gstreamer
20409
20410else
20411	GSTREAMER_VER=""
20412
20413fi
20414
20415if test "x$enable_gst" != "xno" -a "x$with_gstreamer" = "x1.0"; then
20416	# Check whether --enable-gstreamer-video was given.
20417if test ${enable_gstreamer_video+y}
20418then :
20419  enableval=$enable_gstreamer_video; enable_gstvideo="$enableval"
20420else $as_nop
20421  enable_gstvideo="yes"
20422fi
20423
20424	if test "x$enable_gstvideo" != "xno"; then
20425
20426pkg_failed=no
20427{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-video-1.0" >&5
20428printf %s "checking for gstreamer-video-1.0... " >&6; }
20429
20430if test -n "$GSTVIDEO_CFLAGS"; then
20431    pkg_cv_GSTVIDEO_CFLAGS="$GSTVIDEO_CFLAGS"
20432 elif test -n "$PKG_CONFIG"; then
20433    if test -n "$PKG_CONFIG" && \
20434    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-video-1.0\""; } >&5
20435  ($PKG_CONFIG --exists --print-errors "gstreamer-video-1.0") 2>&5
20436  ac_status=$?
20437  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20438  test $ac_status = 0; }; then
20439  pkg_cv_GSTVIDEO_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-video-1.0" 2>/dev/null`
20440		      test "x$?" != "x0" && pkg_failed=yes
20441else
20442  pkg_failed=yes
20443fi
20444 else
20445    pkg_failed=untried
20446fi
20447if test -n "$GSTVIDEO_LIBS"; then
20448    pkg_cv_GSTVIDEO_LIBS="$GSTVIDEO_LIBS"
20449 elif test -n "$PKG_CONFIG"; then
20450    if test -n "$PKG_CONFIG" && \
20451    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-video-1.0\""; } >&5
20452  ($PKG_CONFIG --exists --print-errors "gstreamer-video-1.0") 2>&5
20453  ac_status=$?
20454  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20455  test $ac_status = 0; }; then
20456  pkg_cv_GSTVIDEO_LIBS=`$PKG_CONFIG --libs "gstreamer-video-1.0" 2>/dev/null`
20457		      test "x$?" != "x0" && pkg_failed=yes
20458else
20459  pkg_failed=yes
20460fi
20461 else
20462    pkg_failed=untried
20463fi
20464
20465
20466
20467if test $pkg_failed = yes; then
20468        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20469printf "%s\n" "no" >&6; }
20470
20471if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20472        _pkg_short_errors_supported=yes
20473else
20474        _pkg_short_errors_supported=no
20475fi
20476        if test $_pkg_short_errors_supported = yes; then
20477	        GSTVIDEO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-video-1.0" 2>&1`
20478        else
20479	        GSTVIDEO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-video-1.0" 2>&1`
20480        fi
20481	# Put the nasty error message in config.log where it belongs
20482	echo "$GSTVIDEO_PKG_ERRORS" >&5
20483
20484
20485			enable_gstvideo="no"
20486
20487elif test $pkg_failed = untried; then
20488        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20489printf "%s\n" "no" >&6; }
20490
20491			enable_gstvideo="no"
20492
20493else
20494	GSTVIDEO_CFLAGS=$pkg_cv_GSTVIDEO_CFLAGS
20495	GSTVIDEO_LIBS=$pkg_cv_GSTVIDEO_LIBS
20496        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20497printf "%s\n" "yes" >&6; }
20498
20499
20500printf "%s\n" "#define USE_GSTVIDEO 1" >>confdefs.h
20501
20502
20503
20504
20505fi
20506	fi
20507else
20508	enable_gstvideo="no"
20509fi
20510
20511if test "x$enable_gst" != "xno" -a "x$with_gstreamer" = "x0.10"; then
20512	# Check whether --enable-gstreamer-interfaces was given.
20513if test ${enable_gstreamer_interfaces+y}
20514then :
20515  enableval=$enable_gstreamer_interfaces; enable_gstinterfaces="$enableval"
20516else $as_nop
20517  enable_gstinterfaces="yes"
20518fi
20519
20520	if test "x$enable_gstinterfaces" != "xno"; then
20521
20522pkg_failed=no
20523{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-interfaces-0.10" >&5
20524printf %s "checking for gstreamer-interfaces-0.10... " >&6; }
20525
20526if test -n "$GSTINTERFACES_CFLAGS"; then
20527    pkg_cv_GSTINTERFACES_CFLAGS="$GSTINTERFACES_CFLAGS"
20528 elif test -n "$PKG_CONFIG"; then
20529    if test -n "$PKG_CONFIG" && \
20530    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-interfaces-0.10\""; } >&5
20531  ($PKG_CONFIG --exists --print-errors "gstreamer-interfaces-0.10") 2>&5
20532  ac_status=$?
20533  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20534  test $ac_status = 0; }; then
20535  pkg_cv_GSTINTERFACES_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-interfaces-0.10" 2>/dev/null`
20536		      test "x$?" != "x0" && pkg_failed=yes
20537else
20538  pkg_failed=yes
20539fi
20540 else
20541    pkg_failed=untried
20542fi
20543if test -n "$GSTINTERFACES_LIBS"; then
20544    pkg_cv_GSTINTERFACES_LIBS="$GSTINTERFACES_LIBS"
20545 elif test -n "$PKG_CONFIG"; then
20546    if test -n "$PKG_CONFIG" && \
20547    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-interfaces-0.10\""; } >&5
20548  ($PKG_CONFIG --exists --print-errors "gstreamer-interfaces-0.10") 2>&5
20549  ac_status=$?
20550  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20551  test $ac_status = 0; }; then
20552  pkg_cv_GSTINTERFACES_LIBS=`$PKG_CONFIG --libs "gstreamer-interfaces-0.10" 2>/dev/null`
20553		      test "x$?" != "x0" && pkg_failed=yes
20554else
20555  pkg_failed=yes
20556fi
20557 else
20558    pkg_failed=untried
20559fi
20560
20561
20562
20563if test $pkg_failed = yes; then
20564        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565printf "%s\n" "no" >&6; }
20566
20567if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20568        _pkg_short_errors_supported=yes
20569else
20570        _pkg_short_errors_supported=no
20571fi
20572        if test $_pkg_short_errors_supported = yes; then
20573	        GSTINTERFACES_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-interfaces-0.10" 2>&1`
20574        else
20575	        GSTINTERFACES_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-interfaces-0.10" 2>&1`
20576        fi
20577	# Put the nasty error message in config.log where it belongs
20578	echo "$GSTINTERFACES_PKG_ERRORS" >&5
20579
20580
20581			enable_gstinterfaces="no"
20582
20583elif test $pkg_failed = untried; then
20584        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20585printf "%s\n" "no" >&6; }
20586
20587			enable_gstinterfaces="no"
20588
20589else
20590	GSTINTERFACES_CFLAGS=$pkg_cv_GSTINTERFACES_CFLAGS
20591	GSTINTERFACES_LIBS=$pkg_cv_GSTINTERFACES_LIBS
20592        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20593printf "%s\n" "yes" >&6; }
20594
20595
20596printf "%s\n" "#define USE_GSTINTERFACES 1" >>confdefs.h
20597
20598
20599
20600
20601fi
20602	fi
20603else
20604	enable_gstinterfaces="no"
20605fi
20606
20607# Check whether --enable-farstream was given.
20608if test ${enable_farstream+y}
20609then :
20610  enableval=$enable_farstream; enable_farstream="$enableval"
20611else $as_nop
20612  enable_farstream="yes"
20613fi
20614
20615if test "x$enable_farstream" != "xno"; then
20616	if test "x$with_gstreamer" = "x1.0"; then
20617
20618pkg_failed=no
20619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for farstream-0.2 >= 0.2.7" >&5
20620printf %s "checking for farstream-0.2 >= 0.2.7... " >&6; }
20621
20622if test -n "$FARSTREAM_CFLAGS"; then
20623    pkg_cv_FARSTREAM_CFLAGS="$FARSTREAM_CFLAGS"
20624 elif test -n "$PKG_CONFIG"; then
20625    if test -n "$PKG_CONFIG" && \
20626    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farstream-0.2 >= 0.2.7\""; } >&5
20627  ($PKG_CONFIG --exists --print-errors "farstream-0.2 >= 0.2.7") 2>&5
20628  ac_status=$?
20629  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20630  test $ac_status = 0; }; then
20631  pkg_cv_FARSTREAM_CFLAGS=`$PKG_CONFIG --cflags "farstream-0.2 >= 0.2.7" 2>/dev/null`
20632		      test "x$?" != "x0" && pkg_failed=yes
20633else
20634  pkg_failed=yes
20635fi
20636 else
20637    pkg_failed=untried
20638fi
20639if test -n "$FARSTREAM_LIBS"; then
20640    pkg_cv_FARSTREAM_LIBS="$FARSTREAM_LIBS"
20641 elif test -n "$PKG_CONFIG"; then
20642    if test -n "$PKG_CONFIG" && \
20643    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farstream-0.2 >= 0.2.7\""; } >&5
20644  ($PKG_CONFIG --exists --print-errors "farstream-0.2 >= 0.2.7") 2>&5
20645  ac_status=$?
20646  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20647  test $ac_status = 0; }; then
20648  pkg_cv_FARSTREAM_LIBS=`$PKG_CONFIG --libs "farstream-0.2 >= 0.2.7" 2>/dev/null`
20649		      test "x$?" != "x0" && pkg_failed=yes
20650else
20651  pkg_failed=yes
20652fi
20653 else
20654    pkg_failed=untried
20655fi
20656
20657
20658
20659if test $pkg_failed = yes; then
20660        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20661printf "%s\n" "no" >&6; }
20662
20663if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20664        _pkg_short_errors_supported=yes
20665else
20666        _pkg_short_errors_supported=no
20667fi
20668        if test $_pkg_short_errors_supported = yes; then
20669	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "farstream-0.2 >= 0.2.7" 2>&1`
20670        else
20671	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "farstream-0.2 >= 0.2.7" 2>&1`
20672        fi
20673	# Put the nasty error message in config.log where it belongs
20674	echo "$FARSTREAM_PKG_ERRORS" >&5
20675
20676
20677		        enable_farstream="no"
20678
20679elif test $pkg_failed = untried; then
20680        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681printf "%s\n" "no" >&6; }
20682
20683		        enable_farstream="no"
20684
20685else
20686	FARSTREAM_CFLAGS=$pkg_cv_FARSTREAM_CFLAGS
20687	FARSTREAM_LIBS=$pkg_cv_FARSTREAM_LIBS
20688        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20689printf "%s\n" "yes" >&6; }
20690
20691
20692
20693
20694fi
20695	else
20696
20697pkg_failed=no
20698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for farstream-0.1" >&5
20699printf %s "checking for farstream-0.1... " >&6; }
20700
20701if test -n "$FARSTREAM_CFLAGS"; then
20702    pkg_cv_FARSTREAM_CFLAGS="$FARSTREAM_CFLAGS"
20703 elif test -n "$PKG_CONFIG"; then
20704    if test -n "$PKG_CONFIG" && \
20705    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farstream-0.1\""; } >&5
20706  ($PKG_CONFIG --exists --print-errors "farstream-0.1") 2>&5
20707  ac_status=$?
20708  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20709  test $ac_status = 0; }; then
20710  pkg_cv_FARSTREAM_CFLAGS=`$PKG_CONFIG --cflags "farstream-0.1" 2>/dev/null`
20711		      test "x$?" != "x0" && pkg_failed=yes
20712else
20713  pkg_failed=yes
20714fi
20715 else
20716    pkg_failed=untried
20717fi
20718if test -n "$FARSTREAM_LIBS"; then
20719    pkg_cv_FARSTREAM_LIBS="$FARSTREAM_LIBS"
20720 elif test -n "$PKG_CONFIG"; then
20721    if test -n "$PKG_CONFIG" && \
20722    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farstream-0.1\""; } >&5
20723  ($PKG_CONFIG --exists --print-errors "farstream-0.1") 2>&5
20724  ac_status=$?
20725  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20726  test $ac_status = 0; }; then
20727  pkg_cv_FARSTREAM_LIBS=`$PKG_CONFIG --libs "farstream-0.1" 2>/dev/null`
20728		      test "x$?" != "x0" && pkg_failed=yes
20729else
20730  pkg_failed=yes
20731fi
20732 else
20733    pkg_failed=untried
20734fi
20735
20736
20737
20738if test $pkg_failed = yes; then
20739        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740printf "%s\n" "no" >&6; }
20741
20742if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20743        _pkg_short_errors_supported=yes
20744else
20745        _pkg_short_errors_supported=no
20746fi
20747        if test $_pkg_short_errors_supported = yes; then
20748	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "farstream-0.1" 2>&1`
20749        else
20750	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "farstream-0.1" 2>&1`
20751        fi
20752	# Put the nasty error message in config.log where it belongs
20753	echo "$FARSTREAM_PKG_ERRORS" >&5
20754
20755
20756			# Try farsight.
20757
20758pkg_failed=no
20759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for farsight2-0.10 >= 0.0.9" >&5
20760printf %s "checking for farsight2-0.10 >= 0.0.9... " >&6; }
20761
20762if test -n "$FARSTREAM_CFLAGS"; then
20763    pkg_cv_FARSTREAM_CFLAGS="$FARSTREAM_CFLAGS"
20764 elif test -n "$PKG_CONFIG"; then
20765    if test -n "$PKG_CONFIG" && \
20766    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farsight2-0.10 >= 0.0.9\""; } >&5
20767  ($PKG_CONFIG --exists --print-errors "farsight2-0.10 >= 0.0.9") 2>&5
20768  ac_status=$?
20769  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20770  test $ac_status = 0; }; then
20771  pkg_cv_FARSTREAM_CFLAGS=`$PKG_CONFIG --cflags "farsight2-0.10 >= 0.0.9" 2>/dev/null`
20772		      test "x$?" != "x0" && pkg_failed=yes
20773else
20774  pkg_failed=yes
20775fi
20776 else
20777    pkg_failed=untried
20778fi
20779if test -n "$FARSTREAM_LIBS"; then
20780    pkg_cv_FARSTREAM_LIBS="$FARSTREAM_LIBS"
20781 elif test -n "$PKG_CONFIG"; then
20782    if test -n "$PKG_CONFIG" && \
20783    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farsight2-0.10 >= 0.0.9\""; } >&5
20784  ($PKG_CONFIG --exists --print-errors "farsight2-0.10 >= 0.0.9") 2>&5
20785  ac_status=$?
20786  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20787  test $ac_status = 0; }; then
20788  pkg_cv_FARSTREAM_LIBS=`$PKG_CONFIG --libs "farsight2-0.10 >= 0.0.9" 2>/dev/null`
20789		      test "x$?" != "x0" && pkg_failed=yes
20790else
20791  pkg_failed=yes
20792fi
20793 else
20794    pkg_failed=untried
20795fi
20796
20797
20798
20799if test $pkg_failed = yes; then
20800        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20801printf "%s\n" "no" >&6; }
20802
20803if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20804        _pkg_short_errors_supported=yes
20805else
20806        _pkg_short_errors_supported=no
20807fi
20808        if test $_pkg_short_errors_supported = yes; then
20809	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "farsight2-0.10 >= 0.0.9" 2>&1`
20810        else
20811	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "farsight2-0.10 >= 0.0.9" 2>&1`
20812        fi
20813	# Put the nasty error message in config.log where it belongs
20814	echo "$FARSTREAM_PKG_ERRORS" >&5
20815
20816
20817			        enable_farstream="no"
20818
20819elif test $pkg_failed = untried; then
20820        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20821printf "%s\n" "no" >&6; }
20822
20823			        enable_farstream="no"
20824
20825else
20826	FARSTREAM_CFLAGS=$pkg_cv_FARSTREAM_CFLAGS
20827	FARSTREAM_LIBS=$pkg_cv_FARSTREAM_LIBS
20828        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20829printf "%s\n" "yes" >&6; }
20830
20831
20832printf "%s\n" "#define HAVE_FARSIGHT 1" >>confdefs.h
20833
20834
20835
20836
20837fi
20838
20839elif test $pkg_failed = untried; then
20840        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20841printf "%s\n" "no" >&6; }
20842
20843			# Try farsight.
20844
20845pkg_failed=no
20846{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for farsight2-0.10 >= 0.0.9" >&5
20847printf %s "checking for farsight2-0.10 >= 0.0.9... " >&6; }
20848
20849if test -n "$FARSTREAM_CFLAGS"; then
20850    pkg_cv_FARSTREAM_CFLAGS="$FARSTREAM_CFLAGS"
20851 elif test -n "$PKG_CONFIG"; then
20852    if test -n "$PKG_CONFIG" && \
20853    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farsight2-0.10 >= 0.0.9\""; } >&5
20854  ($PKG_CONFIG --exists --print-errors "farsight2-0.10 >= 0.0.9") 2>&5
20855  ac_status=$?
20856  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857  test $ac_status = 0; }; then
20858  pkg_cv_FARSTREAM_CFLAGS=`$PKG_CONFIG --cflags "farsight2-0.10 >= 0.0.9" 2>/dev/null`
20859		      test "x$?" != "x0" && pkg_failed=yes
20860else
20861  pkg_failed=yes
20862fi
20863 else
20864    pkg_failed=untried
20865fi
20866if test -n "$FARSTREAM_LIBS"; then
20867    pkg_cv_FARSTREAM_LIBS="$FARSTREAM_LIBS"
20868 elif test -n "$PKG_CONFIG"; then
20869    if test -n "$PKG_CONFIG" && \
20870    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"farsight2-0.10 >= 0.0.9\""; } >&5
20871  ($PKG_CONFIG --exists --print-errors "farsight2-0.10 >= 0.0.9") 2>&5
20872  ac_status=$?
20873  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20874  test $ac_status = 0; }; then
20875  pkg_cv_FARSTREAM_LIBS=`$PKG_CONFIG --libs "farsight2-0.10 >= 0.0.9" 2>/dev/null`
20876		      test "x$?" != "x0" && pkg_failed=yes
20877else
20878  pkg_failed=yes
20879fi
20880 else
20881    pkg_failed=untried
20882fi
20883
20884
20885
20886if test $pkg_failed = yes; then
20887        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20888printf "%s\n" "no" >&6; }
20889
20890if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20891        _pkg_short_errors_supported=yes
20892else
20893        _pkg_short_errors_supported=no
20894fi
20895        if test $_pkg_short_errors_supported = yes; then
20896	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "farsight2-0.10 >= 0.0.9" 2>&1`
20897        else
20898	        FARSTREAM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "farsight2-0.10 >= 0.0.9" 2>&1`
20899        fi
20900	# Put the nasty error message in config.log where it belongs
20901	echo "$FARSTREAM_PKG_ERRORS" >&5
20902
20903
20904			        enable_farstream="no"
20905
20906elif test $pkg_failed = untried; then
20907        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20908printf "%s\n" "no" >&6; }
20909
20910			        enable_farstream="no"
20911
20912else
20913	FARSTREAM_CFLAGS=$pkg_cv_FARSTREAM_CFLAGS
20914	FARSTREAM_LIBS=$pkg_cv_FARSTREAM_LIBS
20915        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20916printf "%s\n" "yes" >&6; }
20917
20918
20919printf "%s\n" "#define HAVE_FARSIGHT 1" >>confdefs.h
20920
20921
20922
20923
20924fi
20925
20926else
20927	FARSTREAM_CFLAGS=$pkg_cv_FARSTREAM_CFLAGS
20928	FARSTREAM_LIBS=$pkg_cv_FARSTREAM_LIBS
20929        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20930printf "%s\n" "yes" >&6; }
20931
20932
20933
20934
20935fi
20936	fi
20937fi
20938
20939# Check whether --enable-vv was given.
20940if test ${enable_vv+y}
20941then :
20942  enableval=$enable_vv; enable_vv="$enableval"
20943else $as_nop
20944  enable_vv="yes"
20945fi
20946
20947if test "x$enable_vv" != "xno"; then
20948	if test "x$enable_gst" != "xno" -a "x$with_gstreamer" = "x1.0" -a "x$enable_gstvideo" != "xno" -a "x$enable_farstream" != "xno"; then
20949
20950printf "%s\n" "#define USE_VV 1" >>confdefs.h
20951
20952	elif test "x$enable_gst" != "xno" -a "x$with_gstreamer" = "x0.10" -a "x$enable_gstinterfaces" != "xno" -a "x$enable_farstream" != "xno"; then
20953
20954printf "%s\n" "#define USE_VV 1" >>confdefs.h
20955
20956	else
20957		enable_vv="no"
20958		if test "x$force_deps" = "xyes"; then
20959			as_fn_error $? "
20960Dependencies for voice/video were not met.
20961Install the necessary gstreamer and farstream packages first.
20962Or use --disable-vv if you do not need voice/video support.
20963			" "$LINENO" 5
20964		fi
20965	fi
20966fi
20967 if test "x$enable_vv" != "xno"; then
20968  USE_VV_TRUE=
20969  USE_VV_FALSE='#'
20970else
20971  USE_VV_TRUE='#'
20972  USE_VV_FALSE=
20973fi
20974
20975
20976if test "x$enable_vv" != "xno" -a "x$with_gstreamer" = "x1.0"; then
20977	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for raw data support in Farstream" >&5
20978printf %s "checking for raw data support in Farstream... " >&6; }
20979
20980pkg_failed=no
20981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gstreamer-app-1.0" >&5
20982printf %s "checking for gstreamer-app-1.0... " >&6; }
20983
20984if test -n "$GSTAPP_CFLAGS"; then
20985    pkg_cv_GSTAPP_CFLAGS="$GSTAPP_CFLAGS"
20986 elif test -n "$PKG_CONFIG"; then
20987    if test -n "$PKG_CONFIG" && \
20988    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-1.0\""; } >&5
20989  ($PKG_CONFIG --exists --print-errors "gstreamer-app-1.0") 2>&5
20990  ac_status=$?
20991  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20992  test $ac_status = 0; }; then
20993  pkg_cv_GSTAPP_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-app-1.0" 2>/dev/null`
20994		      test "x$?" != "x0" && pkg_failed=yes
20995else
20996  pkg_failed=yes
20997fi
20998 else
20999    pkg_failed=untried
21000fi
21001if test -n "$GSTAPP_LIBS"; then
21002    pkg_cv_GSTAPP_LIBS="$GSTAPP_LIBS"
21003 elif test -n "$PKG_CONFIG"; then
21004    if test -n "$PKG_CONFIG" && \
21005    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gstreamer-app-1.0\""; } >&5
21006  ($PKG_CONFIG --exists --print-errors "gstreamer-app-1.0") 2>&5
21007  ac_status=$?
21008  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21009  test $ac_status = 0; }; then
21010  pkg_cv_GSTAPP_LIBS=`$PKG_CONFIG --libs "gstreamer-app-1.0" 2>/dev/null`
21011		      test "x$?" != "x0" && pkg_failed=yes
21012else
21013  pkg_failed=yes
21014fi
21015 else
21016    pkg_failed=untried
21017fi
21018
21019
21020
21021if test $pkg_failed = yes; then
21022        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21023printf "%s\n" "no" >&6; }
21024
21025if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21026        _pkg_short_errors_supported=yes
21027else
21028        _pkg_short_errors_supported=no
21029fi
21030        if test $_pkg_short_errors_supported = yes; then
21031	        GSTAPP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gstreamer-app-1.0" 2>&1`
21032        else
21033	        GSTAPP_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gstreamer-app-1.0" 2>&1`
21034        fi
21035	# Put the nasty error message in config.log where it belongs
21036	echo "$GSTAPP_PKG_ERRORS" >&5
21037
21038	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21039printf "%s\n" "no" >&6; }
21040elif test $pkg_failed = untried; then
21041        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21042printf "%s\n" "no" >&6; }
21043	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044printf "%s\n" "no" >&6; }
21045else
21046	GSTAPP_CFLAGS=$pkg_cv_GSTAPP_CFLAGS
21047	GSTAPP_LIBS=$pkg_cv_GSTAPP_LIBS
21048        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21049printf "%s\n" "yes" >&6; }
21050
21051
21052printf "%s\n" "#define USE_GSTAPP 1" >>confdefs.h
21053
21054
21055
21056
21057printf "%s\n" "#define HAVE_MEDIA_APPLICATION 1" >>confdefs.h
21058
21059		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21060printf "%s\n" "yes" >&6; }
21061
21062fi
21063fi
21064
21065
21066# Check whether --enable-idn was given.
21067if test ${enable_idn+y}
21068then :
21069  enableval=$enable_idn; enable_idn="$enableval" force_idn=$enableval
21070else $as_nop
21071  enable_idn="yes" force_idn=no
21072fi
21073
21074if test "x$enable_idn" != "xno"; then
21075
21076pkg_failed=no
21077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn >= 0.0.0" >&5
21078printf %s "checking for libidn >= 0.0.0... " >&6; }
21079
21080if test -n "$IDN_CFLAGS"; then
21081    pkg_cv_IDN_CFLAGS="$IDN_CFLAGS"
21082 elif test -n "$PKG_CONFIG"; then
21083    if test -n "$PKG_CONFIG" && \
21084    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
21085  ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
21086  ac_status=$?
21087  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21088  test $ac_status = 0; }; then
21089  pkg_cv_IDN_CFLAGS=`$PKG_CONFIG --cflags "libidn >= 0.0.0" 2>/dev/null`
21090		      test "x$?" != "x0" && pkg_failed=yes
21091else
21092  pkg_failed=yes
21093fi
21094 else
21095    pkg_failed=untried
21096fi
21097if test -n "$IDN_LIBS"; then
21098    pkg_cv_IDN_LIBS="$IDN_LIBS"
21099 elif test -n "$PKG_CONFIG"; then
21100    if test -n "$PKG_CONFIG" && \
21101    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libidn >= 0.0.0\""; } >&5
21102  ($PKG_CONFIG --exists --print-errors "libidn >= 0.0.0") 2>&5
21103  ac_status=$?
21104  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21105  test $ac_status = 0; }; then
21106  pkg_cv_IDN_LIBS=`$PKG_CONFIG --libs "libidn >= 0.0.0" 2>/dev/null`
21107		      test "x$?" != "x0" && pkg_failed=yes
21108else
21109  pkg_failed=yes
21110fi
21111 else
21112    pkg_failed=untried
21113fi
21114
21115
21116
21117if test $pkg_failed = yes; then
21118        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21119printf "%s\n" "no" >&6; }
21120
21121if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21122        _pkg_short_errors_supported=yes
21123else
21124        _pkg_short_errors_supported=no
21125fi
21126        if test $_pkg_short_errors_supported = yes; then
21127	        IDN_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
21128        else
21129	        IDN_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libidn >= 0.0.0" 2>&1`
21130        fi
21131	# Put the nasty error message in config.log where it belongs
21132	echo "$IDN_PKG_ERRORS" >&5
21133
21134
21135		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21136printf "%s\n" "no" >&6; }
21137		enable_idn="no"
21138		if test "x$force_deps" = "xyes" ; then
21139			as_fn_error $? "
21140GNU Libidn development headers not found.
21141Use --disable-idn if you do not need it.
21142" "$LINENO" 5
21143		fi
21144
21145elif test $pkg_failed = untried; then
21146        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21147printf "%s\n" "no" >&6; }
21148
21149		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21150printf "%s\n" "no" >&6; }
21151		enable_idn="no"
21152		if test "x$force_deps" = "xyes" ; then
21153			as_fn_error $? "
21154GNU Libidn development headers not found.
21155Use --disable-idn if you do not need it.
21156" "$LINENO" 5
21157		fi
21158
21159else
21160	IDN_CFLAGS=$pkg_cv_IDN_CFLAGS
21161	IDN_LIBS=$pkg_cv_IDN_LIBS
21162        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21163printf "%s\n" "yes" >&6; }
21164
21165
21166printf "%s\n" "#define USE_IDN 1" >>confdefs.h
21167
21168
21169
21170
21171fi
21172fi
21173
21174# Check whether --enable-meanwhile was given.
21175if test ${enable_meanwhile+y}
21176then :
21177  enableval=$enable_meanwhile; enable_meanwhile="$enableval"
21178else $as_nop
21179  enable_meanwhile="yes"
21180fi
21181
21182if test "x$enable_meanwhile" = "xyes"; then
21183
21184pkg_failed=no
21185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for meanwhile >= 1.0.0 meanwhile < 2.0.0" >&5
21186printf %s "checking for meanwhile >= 1.0.0 meanwhile < 2.0.0... " >&6; }
21187
21188if test -n "$MEANWHILE_CFLAGS"; then
21189    pkg_cv_MEANWHILE_CFLAGS="$MEANWHILE_CFLAGS"
21190 elif test -n "$PKG_CONFIG"; then
21191    if test -n "$PKG_CONFIG" && \
21192    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"meanwhile >= 1.0.0 meanwhile < 2.0.0\""; } >&5
21193  ($PKG_CONFIG --exists --print-errors "meanwhile >= 1.0.0 meanwhile < 2.0.0") 2>&5
21194  ac_status=$?
21195  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21196  test $ac_status = 0; }; then
21197  pkg_cv_MEANWHILE_CFLAGS=`$PKG_CONFIG --cflags "meanwhile >= 1.0.0 meanwhile < 2.0.0" 2>/dev/null`
21198		      test "x$?" != "x0" && pkg_failed=yes
21199else
21200  pkg_failed=yes
21201fi
21202 else
21203    pkg_failed=untried
21204fi
21205if test -n "$MEANWHILE_LIBS"; then
21206    pkg_cv_MEANWHILE_LIBS="$MEANWHILE_LIBS"
21207 elif test -n "$PKG_CONFIG"; then
21208    if test -n "$PKG_CONFIG" && \
21209    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"meanwhile >= 1.0.0 meanwhile < 2.0.0\""; } >&5
21210  ($PKG_CONFIG --exists --print-errors "meanwhile >= 1.0.0 meanwhile < 2.0.0") 2>&5
21211  ac_status=$?
21212  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21213  test $ac_status = 0; }; then
21214  pkg_cv_MEANWHILE_LIBS=`$PKG_CONFIG --libs "meanwhile >= 1.0.0 meanwhile < 2.0.0" 2>/dev/null`
21215		      test "x$?" != "x0" && pkg_failed=yes
21216else
21217  pkg_failed=yes
21218fi
21219 else
21220    pkg_failed=untried
21221fi
21222
21223
21224
21225if test $pkg_failed = yes; then
21226        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21227printf "%s\n" "no" >&6; }
21228
21229if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21230        _pkg_short_errors_supported=yes
21231else
21232        _pkg_short_errors_supported=no
21233fi
21234        if test $_pkg_short_errors_supported = yes; then
21235	        MEANWHILE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "meanwhile >= 1.0.0 meanwhile < 2.0.0" 2>&1`
21236        else
21237	        MEANWHILE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "meanwhile >= 1.0.0 meanwhile < 2.0.0" 2>&1`
21238        fi
21239	# Put the nasty error message in config.log where it belongs
21240	echo "$MEANWHILE_PKG_ERRORS" >&5
21241
21242
21243		have_meanwhile="no"
21244		if test "x$force_deps" = "xyes" ; then
21245			as_fn_error $? "
21246Meanwhile development headers not found.
21247Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
21248" "$LINENO" 5
21249		fi
21250elif test $pkg_failed = untried; then
21251        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21252printf "%s\n" "no" >&6; }
21253
21254		have_meanwhile="no"
21255		if test "x$force_deps" = "xyes" ; then
21256			as_fn_error $? "
21257Meanwhile development headers not found.
21258Use --disable-meanwhile if you do not need meanwhile (Sametime) support.
21259" "$LINENO" 5
21260		fi
21261else
21262	MEANWHILE_CFLAGS=$pkg_cv_MEANWHILE_CFLAGS
21263	MEANWHILE_LIBS=$pkg_cv_MEANWHILE_LIBS
21264        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21265printf "%s\n" "yes" >&6; }
21266
21267		have_meanwhile="yes"
21268
21269fi
21270fi
21271
21272
21273
21274# Check whether --enable-avahi was given.
21275if test ${enable_avahi+y}
21276then :
21277  enableval=$enable_avahi; enable_avahi="$enableval"
21278else $as_nop
21279  enable_avahi="yes"
21280fi
21281
21282
21283if test "x$enable_avahi" = "xyes"; then
21284
21285# Check whether --with-avahi-client-includes was given.
21286if test ${with_avahi_client_includes+y}
21287then :
21288  withval=$with_avahi_client_includes; ac_avahi_client_includes="$withval"
21289else $as_nop
21290  ac_avahi_client_includes="no"
21291fi
21292
21293
21294# Check whether --with-avahi-client-libs was given.
21295if test ${with_avahi_client_libs+y}
21296then :
21297  withval=$with_avahi_client_libs; ac_avahi_client_libs="$withval"
21298else $as_nop
21299  ac_avahi_client_libs="no"
21300fi
21301
21302	AVAHI_CFLAGS=""
21303	AVAHI_LIBS=""
21304
21305
21306pkg_failed=no
21307{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi-client avahi-glib" >&5
21308printf %s "checking for avahi-client avahi-glib... " >&6; }
21309
21310if test -n "$AVAHI_CFLAGS"; then
21311    pkg_cv_AVAHI_CFLAGS="$AVAHI_CFLAGS"
21312 elif test -n "$PKG_CONFIG"; then
21313    if test -n "$PKG_CONFIG" && \
21314    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client avahi-glib\""; } >&5
21315  ($PKG_CONFIG --exists --print-errors "avahi-client avahi-glib") 2>&5
21316  ac_status=$?
21317  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21318  test $ac_status = 0; }; then
21319  pkg_cv_AVAHI_CFLAGS=`$PKG_CONFIG --cflags "avahi-client avahi-glib" 2>/dev/null`
21320		      test "x$?" != "x0" && pkg_failed=yes
21321else
21322  pkg_failed=yes
21323fi
21324 else
21325    pkg_failed=untried
21326fi
21327if test -n "$AVAHI_LIBS"; then
21328    pkg_cv_AVAHI_LIBS="$AVAHI_LIBS"
21329 elif test -n "$PKG_CONFIG"; then
21330    if test -n "$PKG_CONFIG" && \
21331    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client avahi-glib\""; } >&5
21332  ($PKG_CONFIG --exists --print-errors "avahi-client avahi-glib") 2>&5
21333  ac_status=$?
21334  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21335  test $ac_status = 0; }; then
21336  pkg_cv_AVAHI_LIBS=`$PKG_CONFIG --libs "avahi-client avahi-glib" 2>/dev/null`
21337		      test "x$?" != "x0" && pkg_failed=yes
21338else
21339  pkg_failed=yes
21340fi
21341 else
21342    pkg_failed=untried
21343fi
21344
21345
21346
21347if test $pkg_failed = yes; then
21348        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21349printf "%s\n" "no" >&6; }
21350
21351if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21352        _pkg_short_errors_supported=yes
21353else
21354        _pkg_short_errors_supported=no
21355fi
21356        if test $_pkg_short_errors_supported = yes; then
21357	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client avahi-glib" 2>&1`
21358        else
21359	        AVAHI_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client avahi-glib" 2>&1`
21360        fi
21361	# Put the nasty error message in config.log where it belongs
21362	echo "$AVAHI_PKG_ERRORS" >&5
21363
21364
21365		avahiincludes="no"
21366		avahilibs="no"
21367
21368elif test $pkg_failed = untried; then
21369        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21370printf "%s\n" "no" >&6; }
21371
21372		avahiincludes="no"
21373		avahilibs="no"
21374
21375else
21376	AVAHI_CFLAGS=$pkg_cv_AVAHI_CFLAGS
21377	AVAHI_LIBS=$pkg_cv_AVAHI_LIBS
21378        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21379printf "%s\n" "yes" >&6; }
21380
21381		avahiincludes="yes"
21382		avahilibs="yes"
21383
21384fi
21385
21386		if test "$ac_avahi_client_includes" != "no"; then
21387		AVAHI_CFLAGS="-I$ac_avahi_client_includes"
21388	fi
21389	CPPFLAGS_save="$CPPFLAGS"
21390	CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS"
21391	ac_fn_c_check_header_compile "$LINENO" "avahi-client/client.h" "ac_cv_header_avahi_client_client_h" "$ac_includes_default"
21392if test "x$ac_cv_header_avahi_client_client_h" = xyes
21393then :
21394  avahiincludes=yes
21395else $as_nop
21396  avahiincludes=no
21397fi
21398
21399	CPPFLAGS="$CPPFLAGS $AVAHI_CFLAGS $GLIB_CFLAGS"
21400	ac_fn_c_check_header_compile "$LINENO" "avahi-glib/glib-malloc.h" "ac_cv_header_avahi_glib_glib_malloc_h" "$ac_includes_default"
21401if test "x$ac_cv_header_avahi_glib_glib_malloc_h" = xyes
21402then :
21403  avahiincludes=yes
21404else $as_nop
21405  avahiincludes=no
21406fi
21407
21408	CPPFLAGS="$CPPFLAGS_save"
21409
21410		if test "$ac_avahi_client_libs" != "no"; then
21411		AVAHI_LIBS="-L$ac_avahi_client_libs -lavahi-common -lavahi-client -lavahi-glib "
21412	fi
21413	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
21414printf %s "checking for avahi_client_new in -lavahi-client... " >&6; }
21415if test ${ac_cv_lib_avahi_client_avahi_client_new+y}
21416then :
21417  printf %s "(cached) " >&6
21418else $as_nop
21419  ac_check_lib_save_LIBS=$LIBS
21420LIBS="-lavahi-client $AVAHI_LIBS $LIBS"
21421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21422/* end confdefs.h.  */
21423
21424/* Override any GCC internal prototype to avoid an error.
21425   Use char because int might match the return type of a GCC
21426   builtin and then its argument prototype would still apply.  */
21427char avahi_client_new ();
21428int
21429main (void)
21430{
21431return avahi_client_new ();
21432  ;
21433  return 0;
21434}
21435_ACEOF
21436if ac_fn_c_try_link "$LINENO"
21437then :
21438  ac_cv_lib_avahi_client_avahi_client_new=yes
21439else $as_nop
21440  ac_cv_lib_avahi_client_avahi_client_new=no
21441fi
21442rm -f core conftest.err conftest.$ac_objext conftest.beam \
21443    conftest$ac_exeext conftest.$ac_ext
21444LIBS=$ac_check_lib_save_LIBS
21445fi
21446{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
21447printf "%s\n" "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
21448if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
21449then :
21450  avahilibs=yes
21451else $as_nop
21452  avahilibs=no
21453fi
21454
21455fi
21456
21457if test "x$enable_avahi" = "xyes" -a \( "x$avahiincludes" = "xno" -o "x$avahilibs" = "xno" \); then
21458	enable_avahi="no"
21459	if test "x$force_deps" = "xyes"; then
21460		as_fn_error $? "
21461avahi development headers not found.
21462Use --disable-avahi if you do not need avahi (Bonjour) support.
21463" "$LINENO" 5
21464	fi
21465fi
21466
21467
21468
21469
21470
21471# Check whether --with-silc-includes was given.
21472if test ${with_silc_includes+y}
21473then :
21474  withval=$with_silc_includes; ac_silc_includes="$withval"
21475else $as_nop
21476  ac_silc_includes="no"
21477fi
21478
21479
21480# Check whether --with-silc-libs was given.
21481if test ${with_silc_libs+y}
21482then :
21483  withval=$with_silc_libs; ac_silc_libs="$withval"
21484else $as_nop
21485  ac_silc_libs="no"
21486fi
21487
21488SILC_CFLAGS=""
21489SILC_LIBS=""
21490have_silc="no"
21491if test -n "$with_silc_includes" || test -n "$with_silc_libs"; then
21492	silc_manual_check="yes"
21493else
21494	silc_manual_check="no"
21495fi
21496if test "x$silc_manual_check" = "xno"; then
21497
21498pkg_failed=no
21499{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silcclient >= 1.1" >&5
21500printf %s "checking for silcclient >= 1.1... " >&6; }
21501
21502if test -n "$SILC_CFLAGS"; then
21503    pkg_cv_SILC_CFLAGS="$SILC_CFLAGS"
21504 elif test -n "$PKG_CONFIG"; then
21505    if test -n "$PKG_CONFIG" && \
21506    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silcclient >= 1.1\""; } >&5
21507  ($PKG_CONFIG --exists --print-errors "silcclient >= 1.1") 2>&5
21508  ac_status=$?
21509  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21510  test $ac_status = 0; }; then
21511  pkg_cv_SILC_CFLAGS=`$PKG_CONFIG --cflags "silcclient >= 1.1" 2>/dev/null`
21512		      test "x$?" != "x0" && pkg_failed=yes
21513else
21514  pkg_failed=yes
21515fi
21516 else
21517    pkg_failed=untried
21518fi
21519if test -n "$SILC_LIBS"; then
21520    pkg_cv_SILC_LIBS="$SILC_LIBS"
21521 elif test -n "$PKG_CONFIG"; then
21522    if test -n "$PKG_CONFIG" && \
21523    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silcclient >= 1.1\""; } >&5
21524  ($PKG_CONFIG --exists --print-errors "silcclient >= 1.1") 2>&5
21525  ac_status=$?
21526  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21527  test $ac_status = 0; }; then
21528  pkg_cv_SILC_LIBS=`$PKG_CONFIG --libs "silcclient >= 1.1" 2>/dev/null`
21529		      test "x$?" != "x0" && pkg_failed=yes
21530else
21531  pkg_failed=yes
21532fi
21533 else
21534    pkg_failed=untried
21535fi
21536
21537
21538
21539if test $pkg_failed = yes; then
21540        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21541printf "%s\n" "no" >&6; }
21542
21543if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21544        _pkg_short_errors_supported=yes
21545else
21546        _pkg_short_errors_supported=no
21547fi
21548        if test $_pkg_short_errors_supported = yes; then
21549	        SILC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "silcclient >= 1.1" 2>&1`
21550        else
21551	        SILC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "silcclient >= 1.1" 2>&1`
21552        fi
21553	# Put the nasty error message in config.log where it belongs
21554	echo "$SILC_PKG_ERRORS" >&5
21555
21556
21557		have_silc="no"
21558
21559elif test $pkg_failed = untried; then
21560        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21561printf "%s\n" "no" >&6; }
21562
21563		have_silc="no"
21564
21565else
21566	SILC_CFLAGS=$pkg_cv_SILC_CFLAGS
21567	SILC_LIBS=$pkg_cv_SILC_LIBS
21568        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21569printf "%s\n" "yes" >&6; }
21570
21571		have_silc="yes"
21572		silcincludes="yes"
21573		silcclient="yes"
21574
21575fi
21576	if test "x$have_silc" = "xno"; then
21577
21578pkg_failed=no
21579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silcclient" >&5
21580printf %s "checking for silcclient... " >&6; }
21581
21582if test -n "$SILC_CFLAGS"; then
21583    pkg_cv_SILC_CFLAGS="$SILC_CFLAGS"
21584 elif test -n "$PKG_CONFIG"; then
21585    if test -n "$PKG_CONFIG" && \
21586    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silcclient\""; } >&5
21587  ($PKG_CONFIG --exists --print-errors "silcclient") 2>&5
21588  ac_status=$?
21589  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21590  test $ac_status = 0; }; then
21591  pkg_cv_SILC_CFLAGS=`$PKG_CONFIG --cflags "silcclient" 2>/dev/null`
21592		      test "x$?" != "x0" && pkg_failed=yes
21593else
21594  pkg_failed=yes
21595fi
21596 else
21597    pkg_failed=untried
21598fi
21599if test -n "$SILC_LIBS"; then
21600    pkg_cv_SILC_LIBS="$SILC_LIBS"
21601 elif test -n "$PKG_CONFIG"; then
21602    if test -n "$PKG_CONFIG" && \
21603    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silcclient\""; } >&5
21604  ($PKG_CONFIG --exists --print-errors "silcclient") 2>&5
21605  ac_status=$?
21606  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21607  test $ac_status = 0; }; then
21608  pkg_cv_SILC_LIBS=`$PKG_CONFIG --libs "silcclient" 2>/dev/null`
21609		      test "x$?" != "x0" && pkg_failed=yes
21610else
21611  pkg_failed=yes
21612fi
21613 else
21614    pkg_failed=untried
21615fi
21616
21617
21618
21619if test $pkg_failed = yes; then
21620        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21621printf "%s\n" "no" >&6; }
21622
21623if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21624        _pkg_short_errors_supported=yes
21625else
21626        _pkg_short_errors_supported=no
21627fi
21628        if test $_pkg_short_errors_supported = yes; then
21629	        SILC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "silcclient" 2>&1`
21630        else
21631	        SILC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "silcclient" 2>&1`
21632        fi
21633	# Put the nasty error message in config.log where it belongs
21634	echo "$SILC_PKG_ERRORS" >&5
21635
21636
21637			have_silc="no"
21638
21639elif test $pkg_failed = untried; then
21640        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641printf "%s\n" "no" >&6; }
21642
21643			have_silc="no"
21644
21645else
21646	SILC_CFLAGS=$pkg_cv_SILC_CFLAGS
21647	SILC_LIBS=$pkg_cv_SILC_LIBS
21648        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21649printf "%s\n" "yes" >&6; }
21650
21651			have_silc="yes"
21652			silc10includes="yes"
21653			silc10client="yes"
21654
21655fi
21656				if test "x$have_silc" = "xno"; then
21657
21658pkg_failed=no
21659{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silc" >&5
21660printf %s "checking for silc... " >&6; }
21661
21662if test -n "$SILC_CFLAGS"; then
21663    pkg_cv_SILC_CFLAGS="$SILC_CFLAGS"
21664 elif test -n "$PKG_CONFIG"; then
21665    if test -n "$PKG_CONFIG" && \
21666    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silc\""; } >&5
21667  ($PKG_CONFIG --exists --print-errors "silc") 2>&5
21668  ac_status=$?
21669  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21670  test $ac_status = 0; }; then
21671  pkg_cv_SILC_CFLAGS=`$PKG_CONFIG --cflags "silc" 2>/dev/null`
21672		      test "x$?" != "x0" && pkg_failed=yes
21673else
21674  pkg_failed=yes
21675fi
21676 else
21677    pkg_failed=untried
21678fi
21679if test -n "$SILC_LIBS"; then
21680    pkg_cv_SILC_LIBS="$SILC_LIBS"
21681 elif test -n "$PKG_CONFIG"; then
21682    if test -n "$PKG_CONFIG" && \
21683    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"silc\""; } >&5
21684  ($PKG_CONFIG --exists --print-errors "silc") 2>&5
21685  ac_status=$?
21686  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21687  test $ac_status = 0; }; then
21688  pkg_cv_SILC_LIBS=`$PKG_CONFIG --libs "silc" 2>/dev/null`
21689		      test "x$?" != "x0" && pkg_failed=yes
21690else
21691  pkg_failed=yes
21692fi
21693 else
21694    pkg_failed=untried
21695fi
21696
21697
21698
21699if test $pkg_failed = yes; then
21700        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21701printf "%s\n" "no" >&6; }
21702
21703if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21704        _pkg_short_errors_supported=yes
21705else
21706        _pkg_short_errors_supported=no
21707fi
21708        if test $_pkg_short_errors_supported = yes; then
21709	        SILC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "silc" 2>&1`
21710        else
21711	        SILC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "silc" 2>&1`
21712        fi
21713	# Put the nasty error message in config.log where it belongs
21714	echo "$SILC_PKG_ERRORS" >&5
21715
21716
21717				have_silc="no"
21718
21719elif test $pkg_failed = untried; then
21720        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21721printf "%s\n" "no" >&6; }
21722
21723				have_silc="no"
21724
21725else
21726	SILC_CFLAGS=$pkg_cv_SILC_CFLAGS
21727	SILC_LIBS=$pkg_cv_SILC_LIBS
21728        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21729printf "%s\n" "yes" >&6; }
21730
21731				have_silc="yes"
21732				silc10includes="yes"
21733				silc10client="yes"
21734
21735fi
21736		fi
21737	fi
21738else
21739	if test "$ac_silc_includes" != "no"; then
21740		SILC_CFLAGS="-I$ac_silc_includes"
21741	fi
21742	CPPFLAGS_save="$CPPFLAGS"
21743	CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
21744	ac_fn_c_check_header_compile "$LINENO" "silc.h" "ac_cv_header_silc_h" "$ac_includes_default"
21745if test "x$ac_cv_header_silc_h" = xyes
21746then :
21747  silcincludes=yes
21748fi
21749
21750	CPPFLAGS="$CPPFLAGS_save"
21751
21752	if test "$ac_silc_libs" != "no"; then
21753		SILC_LIBS="-L$ac_silc_libs"
21754	fi
21755	SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread "
21756	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silc_client_init in -lsilcclient" >&5
21757printf %s "checking for silc_client_init in -lsilcclient... " >&6; }
21758if test ${ac_cv_lib_silcclient_silc_client_init+y}
21759then :
21760  printf %s "(cached) " >&6
21761else $as_nop
21762  ac_check_lib_save_LIBS=$LIBS
21763LIBS="-lsilcclient $SILC_LIBS $LIBS"
21764cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765/* end confdefs.h.  */
21766
21767/* Override any GCC internal prototype to avoid an error.
21768   Use char because int might match the return type of a GCC
21769   builtin and then its argument prototype would still apply.  */
21770char silc_client_init ();
21771int
21772main (void)
21773{
21774return silc_client_init ();
21775  ;
21776  return 0;
21777}
21778_ACEOF
21779if ac_fn_c_try_link "$LINENO"
21780then :
21781  ac_cv_lib_silcclient_silc_client_init=yes
21782else $as_nop
21783  ac_cv_lib_silcclient_silc_client_init=no
21784fi
21785rm -f core conftest.err conftest.$ac_objext conftest.beam \
21786    conftest$ac_exeext conftest.$ac_ext
21787LIBS=$ac_check_lib_save_LIBS
21788fi
21789{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_silcclient_silc_client_init" >&5
21790printf "%s\n" "$ac_cv_lib_silcclient_silc_client_init" >&6; }
21791if test "x$ac_cv_lib_silcclient_silc_client_init" = xyes
21792then :
21793  silcclient=yes
21794fi
21795
21796
21797	if test "x$silcincludes" = "xyes" -a "x$silcclient" = "xyes"; then
21798		have_silc="yes"
21799	else
21800		CPPFLAGS_save="$CPPFLAGS"
21801		CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
21802		ac_fn_c_check_header_compile "$LINENO" "silcincludes.h" "ac_cv_header_silcincludes_h" "$ac_includes_default"
21803if test "x$ac_cv_header_silcincludes_h" = xyes
21804then :
21805  silc10includes=yes
21806fi
21807
21808		CPPFLAGS="$CPPFLAGS_save"
21809
21810		SILC_LIBS="$SILC_LIBS -lsilc -lsilcclient -lpthread "
21811		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silc_client_init in -lsilcclient" >&5
21812printf %s "checking for silc_client_init in -lsilcclient... " >&6; }
21813if test ${ac_cv_lib_silcclient_silc_client_init+y}
21814then :
21815  printf %s "(cached) " >&6
21816else $as_nop
21817  ac_check_lib_save_LIBS=$LIBS
21818LIBS="-lsilcclient $SILC_LIBS $LIBS"
21819cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21820/* end confdefs.h.  */
21821
21822/* Override any GCC internal prototype to avoid an error.
21823   Use char because int might match the return type of a GCC
21824   builtin and then its argument prototype would still apply.  */
21825char silc_client_init ();
21826int
21827main (void)
21828{
21829return silc_client_init ();
21830  ;
21831  return 0;
21832}
21833_ACEOF
21834if ac_fn_c_try_link "$LINENO"
21835then :
21836  ac_cv_lib_silcclient_silc_client_init=yes
21837else $as_nop
21838  ac_cv_lib_silcclient_silc_client_init=no
21839fi
21840rm -f core conftest.err conftest.$ac_objext conftest.beam \
21841    conftest$ac_exeext conftest.$ac_ext
21842LIBS=$ac_check_lib_save_LIBS
21843fi
21844{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_silcclient_silc_client_init" >&5
21845printf "%s\n" "$ac_cv_lib_silcclient_silc_client_init" >&6; }
21846if test "x$ac_cv_lib_silcclient_silc_client_init" = xyes
21847then :
21848  silc10client=yes
21849fi
21850
21851		if test "x$silc10includes" = "xyes" -a "x$silc10client" = "xyes"; then
21852			have_silc="yes"
21853		fi
21854	fi
21855fi
21856
21857
21858if test "x$silcclient" = "xyes"; then
21859
21860printf "%s\n" "#define HAVE_SILCMIME_H 1" >>confdefs.h
21861
21862elif test "x$silc10client" = "xyes"; then
21863	CPPFLAGS_save="$CPPFLAGS"
21864	CPPFLAGS="$CPPFLAGS $SILC_CFLAGS"
21865		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for silcmime.h" >&5
21866printf %s "checking for silcmime.h... " >&6; }
21867		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21868/* end confdefs.h.  */
21869
21870#include <silcincludes.h>
21871#include <silcmime.h>
21872
21873int
21874main (void)
21875{
21876
21877  ;
21878  return 0;
21879}
21880_ACEOF
21881if ac_fn_c_try_compile "$LINENO"
21882then :
21883
21884		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21885printf "%s\n" "yes" >&6; }
21886
21887printf "%s\n" "#define HAVE_SILCMIME_H 1" >>confdefs.h
21888
21889
21890else $as_nop
21891
21892		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21893printf "%s\n" "no" >&6; }
21894
21895fi
21896rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21897	CPPFLAGS="$CPPFLAGS_save"
21898fi
21899
21900
21901
21902pkg_failed=no
21903{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libgadu >= 1.12.0" >&5
21904printf %s "checking for libgadu >= 1.12.0... " >&6; }
21905
21906if test -n "$LIBGADU_CFLAGS"; then
21907    pkg_cv_LIBGADU_CFLAGS="$LIBGADU_CFLAGS"
21908 elif test -n "$PKG_CONFIG"; then
21909    if test -n "$PKG_CONFIG" && \
21910    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgadu >= 1.12.0\""; } >&5
21911  ($PKG_CONFIG --exists --print-errors "libgadu >= 1.12.0") 2>&5
21912  ac_status=$?
21913  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21914  test $ac_status = 0; }; then
21915  pkg_cv_LIBGADU_CFLAGS=`$PKG_CONFIG --cflags "libgadu >= 1.12.0" 2>/dev/null`
21916		      test "x$?" != "x0" && pkg_failed=yes
21917else
21918  pkg_failed=yes
21919fi
21920 else
21921    pkg_failed=untried
21922fi
21923if test -n "$LIBGADU_LIBS"; then
21924    pkg_cv_LIBGADU_LIBS="$LIBGADU_LIBS"
21925 elif test -n "$PKG_CONFIG"; then
21926    if test -n "$PKG_CONFIG" && \
21927    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgadu >= 1.12.0\""; } >&5
21928  ($PKG_CONFIG --exists --print-errors "libgadu >= 1.12.0") 2>&5
21929  ac_status=$?
21930  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21931  test $ac_status = 0; }; then
21932  pkg_cv_LIBGADU_LIBS=`$PKG_CONFIG --libs "libgadu >= 1.12.0" 2>/dev/null`
21933		      test "x$?" != "x0" && pkg_failed=yes
21934else
21935  pkg_failed=yes
21936fi
21937 else
21938    pkg_failed=untried
21939fi
21940
21941
21942
21943if test $pkg_failed = yes; then
21944        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21945printf "%s\n" "no" >&6; }
21946
21947if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
21948        _pkg_short_errors_supported=yes
21949else
21950        _pkg_short_errors_supported=no
21951fi
21952        if test $_pkg_short_errors_supported = yes; then
21953	        LIBGADU_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libgadu >= 1.12.0" 2>&1`
21954        else
21955	        LIBGADU_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libgadu >= 1.12.0" 2>&1`
21956        fi
21957	# Put the nasty error message in config.log where it belongs
21958	echo "$LIBGADU_PKG_ERRORS" >&5
21959
21960	have_libgadu=no
21961elif test $pkg_failed = untried; then
21962        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963printf "%s\n" "no" >&6; }
21964	have_libgadu=no
21965else
21966	LIBGADU_CFLAGS=$pkg_cv_LIBGADU_CFLAGS
21967	LIBGADU_LIBS=$pkg_cv_LIBGADU_LIBS
21968        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21969printf "%s\n" "yes" >&6; }
21970	have_libgadu=yes
21971fi
21972
21973if test "x$have_libgadu" = "xyes"; then
21974	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gg_is_gpl_compliant in -lgadu" >&5
21975printf %s "checking for gg_is_gpl_compliant in -lgadu... " >&6; }
21976if test ${ac_cv_lib_gadu_gg_is_gpl_compliant+y}
21977then :
21978  printf %s "(cached) " >&6
21979else $as_nop
21980  ac_check_lib_save_LIBS=$LIBS
21981LIBS="-lgadu  $LIBS"
21982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21983/* end confdefs.h.  */
21984
21985/* Override any GCC internal prototype to avoid an error.
21986   Use char because int might match the return type of a GCC
21987   builtin and then its argument prototype would still apply.  */
21988char gg_is_gpl_compliant ();
21989int
21990main (void)
21991{
21992return gg_is_gpl_compliant ();
21993  ;
21994  return 0;
21995}
21996_ACEOF
21997if ac_fn_c_try_link "$LINENO"
21998then :
21999  ac_cv_lib_gadu_gg_is_gpl_compliant=yes
22000else $as_nop
22001  ac_cv_lib_gadu_gg_is_gpl_compliant=no
22002fi
22003rm -f core conftest.err conftest.$ac_objext conftest.beam \
22004    conftest$ac_exeext conftest.$ac_ext
22005LIBS=$ac_check_lib_save_LIBS
22006fi
22007{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gadu_gg_is_gpl_compliant" >&5
22008printf "%s\n" "$ac_cv_lib_gadu_gg_is_gpl_compliant" >&6; }
22009if test "x$ac_cv_lib_gadu_gg_is_gpl_compliant" = xyes
22010then :
22011  printf "%s\n" "#define HAVE_LIBGADU 1" >>confdefs.h
22012
22013  LIBS="-lgadu $LIBS"
22014
22015else $as_nop
22016
22017		LIBGADU_LIBS=""
22018		LIBGADU_CFLAGS=""
22019		have_libgadu=no
22020		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
22021libgadu is not compatible with the GPL when compiled with OpenSSL support.
22022
22023To compile against system libgadu, please recompile libgadu using:
22024./configure --with-openssl=no
22025Then rerun this ./configure
22026
22027Falling back to using our own copy of libgadu.
22028		" >&5
22029printf "%s\n" "$as_me: WARNING:
22030libgadu is not compatible with the GPL when compiled with OpenSSL support.
22031
22032To compile against system libgadu, please recompile libgadu using:
22033./configure --with-openssl=no
22034Then rerun this ./configure
22035
22036Falling back to using our own copy of libgadu.
22037		" >&2;}
22038
22039fi
22040
22041fi
22042
22043 if test "x$have_libgadu" = "xyes"; then
22044  HAVE_LIBGADU_TRUE=
22045  HAVE_LIBGADU_FALSE='#'
22046else
22047  HAVE_LIBGADU_TRUE='#'
22048  HAVE_LIBGADU_FALSE=
22049fi
22050
22051if test "x$have_libgadu" = "xyes"; then
22052
22053printf "%s\n" "#define HAVE_LIBGADU 1" >>confdefs.h
22054
22055else
22056	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_certificate_set_x509_system_trust in -lgnutls" >&5
22057printf %s "checking for gnutls_certificate_set_x509_system_trust in -lgnutls... " >&6; }
22058if test ${ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust+y}
22059then :
22060  printf %s "(cached) " >&6
22061else $as_nop
22062  ac_check_lib_save_LIBS=$LIBS
22063LIBS="-lgnutls  $LIBS"
22064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22065/* end confdefs.h.  */
22066
22067/* Override any GCC internal prototype to avoid an error.
22068   Use char because int might match the return type of a GCC
22069   builtin and then its argument prototype would still apply.  */
22070char gnutls_certificate_set_x509_system_trust ();
22071int
22072main (void)
22073{
22074return gnutls_certificate_set_x509_system_trust ();
22075  ;
22076  return 0;
22077}
22078_ACEOF
22079if ac_fn_c_try_link "$LINENO"
22080then :
22081  ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=yes
22082else $as_nop
22083  ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust=no
22084fi
22085rm -f core conftest.err conftest.$ac_objext conftest.beam \
22086    conftest$ac_exeext conftest.$ac_ext
22087LIBS=$ac_check_lib_save_LIBS
22088fi
22089{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&5
22090printf "%s\n" "$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" >&6; }
22091if test "x$ac_cv_lib_gnutls_gnutls_certificate_set_x509_system_trust" = xyes
22092then :
22093  gg_have_gnutls_csxst=yes
22094else $as_nop
22095  gg_have_gnutls_csxst=no
22096fi
22097
22098
22099	gg_gnutls_sts=""
22100	if test "x$gg_have_gnutls_csxst" = "xno"; then
22101		for i in /etc/ssl/ca-bundle.pem \
22102			/etc/ssl/certs/ca-certificates.crt \
22103			/etc/pki/tls/cert.pem \
22104			/usr/local/share/certs/ca-root-nss.crt \
22105			/etc/ssl/cert.pem
22106		do
22107			if test -e $i; then
22108				gg_gnutls_sts="$i"
22109				break
22110			fi
22111		done
22112	fi
22113
22114	if test "x$gg_have_gnutls_csxst" = "xyes"; then
22115
22116printf "%s\n" "#define HAVE_GNUTLS_CERTIFICATE_SET_X509_SYSTEM_TRUST 1" >>confdefs.h
22117
22118	fi
22119	if test "x$gg_gnutls_sts" != "x"; then
22120
22121printf "%s\n" "#define GG_CONFIG_GNUTLS_SYSTEM_TRUST_STORE \"$gg_gnutls_sts\"" >>confdefs.h
22122
22123	fi
22124
22125
22126pkg_failed=no
22127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls >= 2.10.0" >&5
22128printf %s "checking for gnutls >= 2.10.0... " >&6; }
22129
22130if test -n "$GNUTLS_2_10_CFLAGS"; then
22131    pkg_cv_GNUTLS_2_10_CFLAGS="$GNUTLS_2_10_CFLAGS"
22132 elif test -n "$PKG_CONFIG"; then
22133    if test -n "$PKG_CONFIG" && \
22134    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.0\""; } >&5
22135  ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.0") 2>&5
22136  ac_status=$?
22137  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22138  test $ac_status = 0; }; then
22139  pkg_cv_GNUTLS_2_10_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.10.0" 2>/dev/null`
22140		      test "x$?" != "x0" && pkg_failed=yes
22141else
22142  pkg_failed=yes
22143fi
22144 else
22145    pkg_failed=untried
22146fi
22147if test -n "$GNUTLS_2_10_LIBS"; then
22148    pkg_cv_GNUTLS_2_10_LIBS="$GNUTLS_2_10_LIBS"
22149 elif test -n "$PKG_CONFIG"; then
22150    if test -n "$PKG_CONFIG" && \
22151    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.10.0\""; } >&5
22152  ($PKG_CONFIG --exists --print-errors "gnutls >= 2.10.0") 2>&5
22153  ac_status=$?
22154  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22155  test $ac_status = 0; }; then
22156  pkg_cv_GNUTLS_2_10_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.10.0" 2>/dev/null`
22157		      test "x$?" != "x0" && pkg_failed=yes
22158else
22159  pkg_failed=yes
22160fi
22161 else
22162    pkg_failed=untried
22163fi
22164
22165
22166
22167if test $pkg_failed = yes; then
22168        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22169printf "%s\n" "no" >&6; }
22170
22171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22172        _pkg_short_errors_supported=yes
22173else
22174        _pkg_short_errors_supported=no
22175fi
22176        if test $_pkg_short_errors_supported = yes; then
22177	        GNUTLS_2_10_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.10.0" 2>&1`
22178        else
22179	        GNUTLS_2_10_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.10.0" 2>&1`
22180        fi
22181	# Put the nasty error message in config.log where it belongs
22182	echo "$GNUTLS_2_10_PKG_ERRORS" >&5
22183
22184	:
22185elif test $pkg_failed = untried; then
22186        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22187printf "%s\n" "no" >&6; }
22188	:
22189else
22190	GNUTLS_2_10_CFLAGS=$pkg_cv_GNUTLS_2_10_CFLAGS
22191	GNUTLS_2_10_LIBS=$pkg_cv_GNUTLS_2_10_LIBS
22192        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22193printf "%s\n" "yes" >&6; }
22194
22195
22196printf "%s\n" "#define HAVE_GNUTLS_2_10 /**/" >>confdefs.h
22197
22198
22199fi
22200fi
22201
22202
22203
22204
22205
22206# Check whether --enable-distrib was given.
22207if test ${enable_distrib+y}
22208then :
22209  enableval=$enable_distrib;
22210else $as_nop
22211  enable_distrib=no
22212fi
22213
22214 if test "x$enable_distrib" = "xyes"; then
22215  DISTRIB_TRUE=
22216  DISTRIB_FALSE='#'
22217else
22218  DISTRIB_TRUE='#'
22219  DISTRIB_FALSE=
22220fi
22221
22222DYNAMIC_PRPLS=all
22223
22224# Check whether --with-static-prpls was given.
22225if test ${with_static_prpls+y}
22226then :
22227  withval=$with_static_prpls; STATIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`
22228else $as_nop
22229  STATIC_PRPLS=""
22230fi
22231
22232if test "x$STATIC_PRPLS" != "x" -a "x$DYNAMIC_PRPLS" = "xall"; then
22233	DYNAMIC_PRPLS=""
22234fi
22235
22236if test "x$STATIC_PRPLS" = "xall" ; then
22237	STATIC_PRPLS="bonjour gg irc jabber novell sametime silc simple zephyr"
22238fi
22239if test "x$have_meanwhile" != "xyes" ; then
22240	STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/sametime//'`
22241fi
22242if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
22243	STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/bonjour//'`
22244fi
22245if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
22246	STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc/silc10/'`
22247fi
22248if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
22249	STATIC_PRPLS=`echo $STATIC_PRPLS | $sedpath 's/silc10//'`
22250fi
22251
22252STATIC_LINK_LIBS=
22253extern_init=
22254load_proto=
22255for i in $STATIC_PRPLS ; do
22256		if test "x$i" = "xsilc"; then
22257		STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib${i}purple.la"
22258	elif test "x$i" = "xsilc10"; then
22259		STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/libsilcpurple.la"
22260	else
22261		STATIC_LINK_LIBS="$STATIC_LINK_LIBS \$(top_builddir)/libpurple/protocols/$i/lib$i.la"
22262	fi
22263	extern_init="$extern_init extern gboolean purple_init_${i}_plugin();"
22264	load_proto="$load_proto purple_init_${i}_plugin();"
22265
22266	case $i in
22267		bonjour)	static_bonjour=yes ;;
22268		gg)			static_gg=yes ;;
22269		irc)		static_irc=yes ;;
22270		jabber)		static_jabber=yes ;;
22271		novell)		static_novell=yes ;;
22272		sametime)	static_sametime=yes ;;
22273		silc)		static_silc=yes ;;
22274		silc10)		static_silc=yes ;;
22275		simple)		static_simple=yes ;;
22276		zephyr)		static_zephyr=yes ;;
22277		*)			echo "Invalid static protocol $i!!" ; exit 1 ;;
22278	esac
22279done
22280 if test "x$static_bonjour" = "xyes"; then
22281  STATIC_BONJOUR_TRUE=
22282  STATIC_BONJOUR_FALSE='#'
22283else
22284  STATIC_BONJOUR_TRUE='#'
22285  STATIC_BONJOUR_FALSE=
22286fi
22287
22288 if test "x$static_gg" = "xyes"; then
22289  STATIC_GG_TRUE=
22290  STATIC_GG_FALSE='#'
22291else
22292  STATIC_GG_TRUE='#'
22293  STATIC_GG_FALSE=
22294fi
22295
22296 if test "x$static_irc" = "xyes"; then
22297  STATIC_IRC_TRUE=
22298  STATIC_IRC_FALSE='#'
22299else
22300  STATIC_IRC_TRUE='#'
22301  STATIC_IRC_FALSE=
22302fi
22303
22304 if test "x$static_jabber" = "xyes"; then
22305  STATIC_JABBER_TRUE=
22306  STATIC_JABBER_FALSE='#'
22307else
22308  STATIC_JABBER_TRUE='#'
22309  STATIC_JABBER_FALSE=
22310fi
22311
22312 if test "x$static_novell" = "xyes"; then
22313  STATIC_NOVELL_TRUE=
22314  STATIC_NOVELL_FALSE='#'
22315else
22316  STATIC_NOVELL_TRUE='#'
22317  STATIC_NOVELL_FALSE=
22318fi
22319
22320 if test "x$static_sametime" = "xyes" -a "x$have_meanwhile" = "xyes"; then
22321  STATIC_SAMETIME_TRUE=
22322  STATIC_SAMETIME_FALSE='#'
22323else
22324  STATIC_SAMETIME_TRUE='#'
22325  STATIC_SAMETIME_FALSE=
22326fi
22327
22328 if test "x$static_silc" = "xyes" -a "x$have_silc" = "xyes"; then
22329  STATIC_SILC_TRUE=
22330  STATIC_SILC_FALSE='#'
22331else
22332  STATIC_SILC_TRUE='#'
22333  STATIC_SILC_FALSE=
22334fi
22335
22336 if test "x$static_simple" = "xyes"; then
22337  STATIC_SIMPLE_TRUE=
22338  STATIC_SIMPLE_FALSE='#'
22339else
22340  STATIC_SIMPLE_TRUE='#'
22341  STATIC_SIMPLE_FALSE=
22342fi
22343
22344 if test "x$static_zephyr" = "xyes"; then
22345  STATIC_ZEPHYR_TRUE=
22346  STATIC_ZEPHYR_FALSE='#'
22347else
22348  STATIC_ZEPHYR_TRUE='#'
22349  STATIC_ZEPHYR_FALSE=
22350fi
22351
22352
22353
22354printf "%s\n" "#define STATIC_PROTO_INIT $extern_init static void static_proto_init(void) { $load_proto }" >>confdefs.h
22355
22356
22357
22358# Check whether --with-dynamic_prpls was given.
22359if test ${with_dynamic_prpls+y}
22360then :
22361  withval=$with_dynamic_prpls; DYNAMIC_PRPLS=`echo $withval | $sedpath 's/,/ /g'`
22362fi
22363
22364if test "x$DYNAMIC_PRPLS" = "xall" ; then
22365	DYNAMIC_PRPLS="bonjour gg irc jabber novell sametime silc simple zephyr"
22366fi
22367if test "x$have_meanwhile" != "xyes"; then
22368	DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/sametime//'`
22369fi
22370if test "x$avahiincludes" != "xyes" -o "x$avahilibs" != "xyes"; then
22371	DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/bonjour//'`
22372fi
22373if test "x$silcincludes" != "xyes" -o "x$silcclient" != "xyes"; then
22374	DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc/silc10/'`
22375fi
22376if test "x$silc10includes" != "xyes" -o "x$silc10client" != "xyes"; then
22377	DYNAMIC_PRPLS=`echo $DYNAMIC_PRPLS | $sedpath 's/silc10//'`
22378fi
22379
22380for i in $DYNAMIC_PRPLS ; do
22381	case $i in
22382		bonjour)	dynamic_bonjour=yes ;;
22383		gg)			dynamic_gg=yes ;;
22384		irc)		dynamic_irc=yes ;;
22385		jabber)		dynamic_jabber=yes ;;
22386		novell)		dynamic_novell=yes ;;
22387		null)		dynamic_null=yes ;;
22388		sametime)	dynamic_sametime=yes ;;
22389		silc)		dynamic_silc=yes ;;
22390		silc10)		dynamic_silc=yes ;;
22391		simple)		dynamic_simple=yes ;;
22392		zephyr)		dynamic_zephyr=yes ;;
22393		*)			echo "Invalid dynamic protocol $i!!" ; exit 1 ;;
22394	esac
22395done
22396
22397# Check whether --enable-plugins was given.
22398if test ${enable_plugins+y}
22399then :
22400  enableval=$enable_plugins;
22401else $as_nop
22402  enable_plugins=yes
22403fi
22404
22405
22406# Check whether --with-krb4 was given.
22407if test ${with_krb4+y}
22408then :
22409  withval=$with_krb4; kerberos="$withval"
22410else $as_nop
22411  kerberos="no"
22412fi
22413
22414
22415# Check whether --with-zephyr was given.
22416if test ${with_zephyr+y}
22417then :
22418  withval=$with_zephyr; zephyr="$withval"
22419else $as_nop
22420  zephyr="no"
22421fi
22422
22423 if test "x$zephyr" != "xno"; then
22424  EXTERNAL_LIBZEPHYR_TRUE=
22425  EXTERNAL_LIBZEPHYR_FALSE='#'
22426else
22427  EXTERNAL_LIBZEPHYR_TRUE='#'
22428  EXTERNAL_LIBZEPHYR_FALSE=
22429fi
22430
22431
22432ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
22433if test "x$ac_cv_header_sys_utsname_h" = xyes
22434then :
22435  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
22436
22437fi
22438
22439ac_fn_c_check_func "$LINENO" "uname" "ac_cv_func_uname"
22440if test "x$ac_cv_func_uname" = xyes
22441then :
22442
22443fi
22444
22445
22446# Check whether --enable-fortify was given.
22447if test ${enable_fortify+y}
22448then :
22449  enableval=$enable_fortify;
22450else $as_nop
22451  enable_fortify=yes
22452fi
22453
22454
22455DEBUG_CFLAGS="$DEBUG_CFLAGS -DPURPLE_DISABLE_DEPRECATED -DPIDGIN_DISABLE_DEPRECATED -DFINCH_DISABLE_DEPRECATED -DGNT_DISABLE_DEPRECATED"
22456if test "x$GCC" = "xyes"; then
22457				CFLAGS=`echo $CFLAGS |$sedpath 's/-Wall//'`
22458
22459																	for newflag in \
22460			"-Waggregate-return" \
22461			"-Wcast-align" \
22462			"-Wdeclaration-after-statement" \
22463			"-Wendif-labels" \
22464			"-Werror-implicit-function-declaration" \
22465			"-Wextra -Wno-unused-parameter" \
22466			"-Wformat-security" \
22467				"-Werror=format-security" \
22468			"-Winit-self" \
22469			"-Wmissing-declarations" \
22470			"-Wmissing-noreturn" \
22471			"-Wmissing-prototypes" \
22472			"-Wpointer-arith" \
22473			"-Wundef" \
22474	; do
22475		orig_CFLAGS="$CFLAGS"
22476		CFLAGS="$CFLAGS $newflag"
22477		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $newflag option to gcc" >&5
22478printf %s "checking for $newflag option to gcc... " >&6; }
22479		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480/* end confdefs.h.  */
22481
22482int
22483main (void)
22484{
22485
22486  ;
22487  return 0;
22488}
22489_ACEOF
22490if ac_fn_c_try_compile "$LINENO"
22491then :
22492
22493			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22494printf "%s\n" "yes" >&6; }
22495			CFLAGS="$orig_CFLAGS"
22496			DEBUG_CFLAGS="$DEBUG_CFLAGS $newflag"
22497
22498else $as_nop
22499
22500			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22501printf "%s\n" "no" >&6; }
22502			CFLAGS="$orig_CFLAGS"
22503
22504fi
22505rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22506	done
22507
22508	if test "x$enable_fortify" = "xyes"; then
22509		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FORTIFY_SOURCE support" >&5
22510printf %s "checking for FORTIFY_SOURCE support... " >&6; }
22511		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22512/* end confdefs.h.  */
22513#include <features.h>
22514int
22515main (void)
22516{
22517
22518			#if !(__GNUC_PREREQ (4, 1) \
22519				|| (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (4, 0)) \
22520				|| (defined __GNUC_RH_RELEASE__ && __GNUC_PREREQ (3, 4) \
22521					&& __GNUC_MINOR__ == 4 \
22522					&& (__GNUC_PATCHLEVEL__ > 2 \
22523						|| (__GNUC_PATCHLEVEL__ == 2 && __GNUC_RH_RELEASE__ >= 8))))
22524			#error No FORTIFY_SOURCE support
22525			#endif
22526				return 0;
22527
22528  ;
22529  return 0;
22530}
22531_ACEOF
22532if ac_fn_c_try_compile "$LINENO"
22533then :
22534
22535			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22536printf "%s\n" "yes" >&6; }
22537			DEBUG_CFLAGS="$DEBUG_CFLAGS -Wp,-D_FORTIFY_SOURCE=2"
22538
22539else $as_nop
22540
22541			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22542printf "%s\n" "no" >&6; }
22543
22544fi
22545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22546	fi
22547
22548	DEBUG_CFLAGS="-Wall $DEBUG_CFLAGS"
22549	CFLAGS="-g $CFLAGS"
22550fi
22551
22552if test "x$SUNCC" = "xyes"; then
22553        CFLAGS="$CFLAGS -features=extensions"
22554fi
22555
22556
22557# Extract the first word of "pidgin", so it can be a program name with args.
22558set dummy pidgin; ac_word=$2
22559{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22560printf %s "checking for $ac_word... " >&6; }
22561if test ${ac_cv_path_pidginpath+y}
22562then :
22563  printf %s "(cached) " >&6
22564else $as_nop
22565  case $pidginpath in
22566  [\\/]* | ?:[\\/]*)
22567  ac_cv_path_pidginpath="$pidginpath" # Let the user override the test with a path.
22568  ;;
22569  *)
22570  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22571for as_dir in $PATH
22572do
22573  IFS=$as_save_IFS
22574  case $as_dir in #(((
22575    '') as_dir=./ ;;
22576    */) ;;
22577    *) as_dir=$as_dir/ ;;
22578  esac
22579    for ac_exec_ext in '' $ac_executable_extensions; do
22580  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22581    ac_cv_path_pidginpath="$as_dir$ac_word$ac_exec_ext"
22582    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22583    break 2
22584  fi
22585done
22586  done
22587IFS=$as_save_IFS
22588
22589  ;;
22590esac
22591fi
22592pidginpath=$ac_cv_path_pidginpath
22593if test -n "$pidginpath"; then
22594  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $pidginpath" >&5
22595printf "%s\n" "$pidginpath" >&6; }
22596else
22597  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22598printf "%s\n" "no" >&6; }
22599fi
22600
22601
22602
22603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604/* end confdefs.h.  */
22605
22606int
22607main (void)
22608{
22609
22610	#if !defined(__clang__)
22611	#error
22612	#endif
22613
22614  ;
22615  return 0;
22616}
22617_ACEOF
22618if ac_fn_c_try_compile "$LINENO"
22619then :
22620  have_clang=yes
22621else $as_nop
22622  have_clang=no
22623fi
22624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22625
22626if test "x$have_clang" = "xyes"; then
22627		DEBUG_CFLAGS=`echo $DEBUG_CFLAGS |$sedpath 's/-Wcast-align//'`
22628fi
22629
22630
22631# Check whether --enable-dbus was given.
22632if test ${enable_dbus+y}
22633then :
22634  enableval=$enable_dbus;
22635else $as_nop
22636  enable_dbus=yes
22637fi
22638
22639# Check whether --enable-nm was given.
22640if test ${enable_nm+y}
22641then :
22642  enableval=$enable_nm; enable_nm=$enableval
22643else $as_nop
22644  enable_nm=yes
22645fi
22646
22647
22648if test "x$enable_dbus" = "xyes" ; then
22649	# Extract the first word of "dbus-binding-tool", so it can be a program name with args.
22650set dummy dbus-binding-tool; ac_word=$2
22651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22652printf %s "checking for $ac_word... " >&6; }
22653if test ${ac_cv_prog_enable_dbus+y}
22654then :
22655  printf %s "(cached) " >&6
22656else $as_nop
22657  if test -n "$enable_dbus"; then
22658  ac_cv_prog_enable_dbus="$enable_dbus" # Let the user override the test.
22659else
22660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22661for as_dir in $PATH
22662do
22663  IFS=$as_save_IFS
22664  case $as_dir in #(((
22665    '') as_dir=./ ;;
22666    */) ;;
22667    *) as_dir=$as_dir/ ;;
22668  esac
22669    for ac_exec_ext in '' $ac_executable_extensions; do
22670  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22671    ac_cv_prog_enable_dbus="yes"
22672    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22673    break 2
22674  fi
22675done
22676  done
22677IFS=$as_save_IFS
22678
22679  test -z "$ac_cv_prog_enable_dbus" && ac_cv_prog_enable_dbus="no"
22680fi
22681fi
22682enable_dbus=$ac_cv_prog_enable_dbus
22683if test -n "$enable_dbus"; then
22684  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_dbus" >&5
22685printf "%s\n" "$enable_dbus" >&6; }
22686else
22687  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22688printf "%s\n" "no" >&6; }
22689fi
22690
22691
22692fi
22693
22694if test "x$enable_dbus" = "xyes" ; then
22695
22696pkg_failed=no
22697{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 0.60 dbus-glib-1 >= 0.60" >&5
22698printf %s "checking for dbus-1 >= 0.60 dbus-glib-1 >= 0.60... " >&6; }
22699
22700if test -n "$DBUS_CFLAGS"; then
22701    pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS"
22702 elif test -n "$PKG_CONFIG"; then
22703    if test -n "$PKG_CONFIG" && \
22704    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60 dbus-glib-1 >= 0.60\""; } >&5
22705  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60 dbus-glib-1 >= 0.60") 2>&5
22706  ac_status=$?
22707  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22708  test $ac_status = 0; }; then
22709  pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 0.60 dbus-glib-1 >= 0.60" 2>/dev/null`
22710		      test "x$?" != "x0" && pkg_failed=yes
22711else
22712  pkg_failed=yes
22713fi
22714 else
22715    pkg_failed=untried
22716fi
22717if test -n "$DBUS_LIBS"; then
22718    pkg_cv_DBUS_LIBS="$DBUS_LIBS"
22719 elif test -n "$PKG_CONFIG"; then
22720    if test -n "$PKG_CONFIG" && \
22721    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1 >= 0.60 dbus-glib-1 >= 0.60\""; } >&5
22722  ($PKG_CONFIG --exists --print-errors "dbus-1 >= 0.60 dbus-glib-1 >= 0.60") 2>&5
22723  ac_status=$?
22724  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22725  test $ac_status = 0; }; then
22726  pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 0.60 dbus-glib-1 >= 0.60" 2>/dev/null`
22727		      test "x$?" != "x0" && pkg_failed=yes
22728else
22729  pkg_failed=yes
22730fi
22731 else
22732    pkg_failed=untried
22733fi
22734
22735
22736
22737if test $pkg_failed = yes; then
22738        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22739printf "%s\n" "no" >&6; }
22740
22741if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22742        _pkg_short_errors_supported=yes
22743else
22744        _pkg_short_errors_supported=no
22745fi
22746        if test $_pkg_short_errors_supported = yes; then
22747	        DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1 >= 0.60 dbus-glib-1 >= 0.60" 2>&1`
22748        else
22749	        DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1 >= 0.60 dbus-glib-1 >= 0.60" 2>&1`
22750        fi
22751	# Put the nasty error message in config.log where it belongs
22752	echo "$DBUS_PKG_ERRORS" >&5
22753
22754
22755	enable_dbus=no
22756	if test "x$force_deps" = "xyes" ; then
22757		as_fn_error $? "
22758D-Bus development headers not found.
22759Use --disable-dbus if you do not need D-Bus support.
22760" "$LINENO" 5
22761	fi
22762elif test $pkg_failed = untried; then
22763        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22764printf "%s\n" "no" >&6; }
22765
22766	enable_dbus=no
22767	if test "x$force_deps" = "xyes" ; then
22768		as_fn_error $? "
22769D-Bus development headers not found.
22770Use --disable-dbus if you do not need D-Bus support.
22771" "$LINENO" 5
22772	fi
22773else
22774	DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS
22775	DBUS_LIBS=$pkg_cv_DBUS_LIBS
22776        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22777printf "%s\n" "yes" >&6; }
22778
22779
22780
22781		enable_dbus=yes
22782
22783fi
22784fi
22785
22786if test "x$enable_dbus" = "xyes" ; then
22787	if test "x$enable_nm" = "xyes" ; then
22788
22789pkg_failed=no
22790{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnm" >&5
22791printf %s "checking for libnm... " >&6; }
22792
22793if test -n "$NETWORKMANAGER_CFLAGS"; then
22794    pkg_cv_NETWORKMANAGER_CFLAGS="$NETWORKMANAGER_CFLAGS"
22795 elif test -n "$PKG_CONFIG"; then
22796    if test -n "$PKG_CONFIG" && \
22797    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm\""; } >&5
22798  ($PKG_CONFIG --exists --print-errors "libnm") 2>&5
22799  ac_status=$?
22800  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22801  test $ac_status = 0; }; then
22802  pkg_cv_NETWORKMANAGER_CFLAGS=`$PKG_CONFIG --cflags "libnm" 2>/dev/null`
22803		      test "x$?" != "x0" && pkg_failed=yes
22804else
22805  pkg_failed=yes
22806fi
22807 else
22808    pkg_failed=untried
22809fi
22810if test -n "$NETWORKMANAGER_LIBS"; then
22811    pkg_cv_NETWORKMANAGER_LIBS="$NETWORKMANAGER_LIBS"
22812 elif test -n "$PKG_CONFIG"; then
22813    if test -n "$PKG_CONFIG" && \
22814    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnm\""; } >&5
22815  ($PKG_CONFIG --exists --print-errors "libnm") 2>&5
22816  ac_status=$?
22817  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22818  test $ac_status = 0; }; then
22819  pkg_cv_NETWORKMANAGER_LIBS=`$PKG_CONFIG --libs "libnm" 2>/dev/null`
22820		      test "x$?" != "x0" && pkg_failed=yes
22821else
22822  pkg_failed=yes
22823fi
22824 else
22825    pkg_failed=untried
22826fi
22827
22828
22829
22830if test $pkg_failed = yes; then
22831        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832printf "%s\n" "no" >&6; }
22833
22834if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22835        _pkg_short_errors_supported=yes
22836else
22837        _pkg_short_errors_supported=no
22838fi
22839        if test $_pkg_short_errors_supported = yes; then
22840	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnm" 2>&1`
22841        else
22842	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnm" 2>&1`
22843        fi
22844	# Put the nasty error message in config.log where it belongs
22845	echo "$NETWORKMANAGER_PKG_ERRORS" >&5
22846
22847
22848
22849pkg_failed=no
22850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetworkManager >= 0.5.0" >&5
22851printf %s "checking for NetworkManager >= 0.5.0... " >&6; }
22852
22853if test -n "$NETWORKMANAGER_CFLAGS"; then
22854    pkg_cv_NETWORKMANAGER_CFLAGS="$NETWORKMANAGER_CFLAGS"
22855 elif test -n "$PKG_CONFIG"; then
22856    if test -n "$PKG_CONFIG" && \
22857    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"NetworkManager >= 0.5.0\""; } >&5
22858  ($PKG_CONFIG --exists --print-errors "NetworkManager >= 0.5.0") 2>&5
22859  ac_status=$?
22860  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22861  test $ac_status = 0; }; then
22862  pkg_cv_NETWORKMANAGER_CFLAGS=`$PKG_CONFIG --cflags "NetworkManager >= 0.5.0" 2>/dev/null`
22863		      test "x$?" != "x0" && pkg_failed=yes
22864else
22865  pkg_failed=yes
22866fi
22867 else
22868    pkg_failed=untried
22869fi
22870if test -n "$NETWORKMANAGER_LIBS"; then
22871    pkg_cv_NETWORKMANAGER_LIBS="$NETWORKMANAGER_LIBS"
22872 elif test -n "$PKG_CONFIG"; then
22873    if test -n "$PKG_CONFIG" && \
22874    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"NetworkManager >= 0.5.0\""; } >&5
22875  ($PKG_CONFIG --exists --print-errors "NetworkManager >= 0.5.0") 2>&5
22876  ac_status=$?
22877  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22878  test $ac_status = 0; }; then
22879  pkg_cv_NETWORKMANAGER_LIBS=`$PKG_CONFIG --libs "NetworkManager >= 0.5.0" 2>/dev/null`
22880		      test "x$?" != "x0" && pkg_failed=yes
22881else
22882  pkg_failed=yes
22883fi
22884 else
22885    pkg_failed=untried
22886fi
22887
22888
22889
22890if test $pkg_failed = yes; then
22891        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22892printf "%s\n" "no" >&6; }
22893
22894if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22895        _pkg_short_errors_supported=yes
22896else
22897        _pkg_short_errors_supported=no
22898fi
22899        if test $_pkg_short_errors_supported = yes; then
22900	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "NetworkManager >= 0.5.0" 2>&1`
22901        else
22902	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "NetworkManager >= 0.5.0" 2>&1`
22903        fi
22904	# Put the nasty error message in config.log where it belongs
22905	echo "$NETWORKMANAGER_PKG_ERRORS" >&5
22906
22907
22908				enable_nm=no
22909				if test "x$force_deps" = "xyes" ; then
22910					as_fn_error $? "
22911NetworkManager development headers not found.
22912Use --disable-nm if you do not need NetworkManager support.
22913" "$LINENO" 5
22914				fi
22915elif test $pkg_failed = untried; then
22916        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22917printf "%s\n" "no" >&6; }
22918
22919				enable_nm=no
22920				if test "x$force_deps" = "xyes" ; then
22921					as_fn_error $? "
22922NetworkManager development headers not found.
22923Use --disable-nm if you do not need NetworkManager support.
22924" "$LINENO" 5
22925				fi
22926else
22927	NETWORKMANAGER_CFLAGS=$pkg_cv_NETWORKMANAGER_CFLAGS
22928	NETWORKMANAGER_LIBS=$pkg_cv_NETWORKMANAGER_LIBS
22929        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22930printf "%s\n" "yes" >&6; }
22931
22932
22933
22934
22935printf "%s\n" "#define HAVE_NETWORKMANAGER 1" >>confdefs.h
22936
22937
22938fi
22939
22940elif test $pkg_failed = untried; then
22941        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22942printf "%s\n" "no" >&6; }
22943
22944
22945pkg_failed=no
22946{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for NetworkManager >= 0.5.0" >&5
22947printf %s "checking for NetworkManager >= 0.5.0... " >&6; }
22948
22949if test -n "$NETWORKMANAGER_CFLAGS"; then
22950    pkg_cv_NETWORKMANAGER_CFLAGS="$NETWORKMANAGER_CFLAGS"
22951 elif test -n "$PKG_CONFIG"; then
22952    if test -n "$PKG_CONFIG" && \
22953    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"NetworkManager >= 0.5.0\""; } >&5
22954  ($PKG_CONFIG --exists --print-errors "NetworkManager >= 0.5.0") 2>&5
22955  ac_status=$?
22956  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22957  test $ac_status = 0; }; then
22958  pkg_cv_NETWORKMANAGER_CFLAGS=`$PKG_CONFIG --cflags "NetworkManager >= 0.5.0" 2>/dev/null`
22959		      test "x$?" != "x0" && pkg_failed=yes
22960else
22961  pkg_failed=yes
22962fi
22963 else
22964    pkg_failed=untried
22965fi
22966if test -n "$NETWORKMANAGER_LIBS"; then
22967    pkg_cv_NETWORKMANAGER_LIBS="$NETWORKMANAGER_LIBS"
22968 elif test -n "$PKG_CONFIG"; then
22969    if test -n "$PKG_CONFIG" && \
22970    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"NetworkManager >= 0.5.0\""; } >&5
22971  ($PKG_CONFIG --exists --print-errors "NetworkManager >= 0.5.0") 2>&5
22972  ac_status=$?
22973  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22974  test $ac_status = 0; }; then
22975  pkg_cv_NETWORKMANAGER_LIBS=`$PKG_CONFIG --libs "NetworkManager >= 0.5.0" 2>/dev/null`
22976		      test "x$?" != "x0" && pkg_failed=yes
22977else
22978  pkg_failed=yes
22979fi
22980 else
22981    pkg_failed=untried
22982fi
22983
22984
22985
22986if test $pkg_failed = yes; then
22987        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22988printf "%s\n" "no" >&6; }
22989
22990if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22991        _pkg_short_errors_supported=yes
22992else
22993        _pkg_short_errors_supported=no
22994fi
22995        if test $_pkg_short_errors_supported = yes; then
22996	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "NetworkManager >= 0.5.0" 2>&1`
22997        else
22998	        NETWORKMANAGER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "NetworkManager >= 0.5.0" 2>&1`
22999        fi
23000	# Put the nasty error message in config.log where it belongs
23001	echo "$NETWORKMANAGER_PKG_ERRORS" >&5
23002
23003
23004				enable_nm=no
23005				if test "x$force_deps" = "xyes" ; then
23006					as_fn_error $? "
23007NetworkManager development headers not found.
23008Use --disable-nm if you do not need NetworkManager support.
23009" "$LINENO" 5
23010				fi
23011elif test $pkg_failed = untried; then
23012        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23013printf "%s\n" "no" >&6; }
23014
23015				enable_nm=no
23016				if test "x$force_deps" = "xyes" ; then
23017					as_fn_error $? "
23018NetworkManager development headers not found.
23019Use --disable-nm if you do not need NetworkManager support.
23020" "$LINENO" 5
23021				fi
23022else
23023	NETWORKMANAGER_CFLAGS=$pkg_cv_NETWORKMANAGER_CFLAGS
23024	NETWORKMANAGER_LIBS=$pkg_cv_NETWORKMANAGER_LIBS
23025        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23026printf "%s\n" "yes" >&6; }
23027
23028
23029
23030
23031printf "%s\n" "#define HAVE_NETWORKMANAGER 1" >>confdefs.h
23032
23033
23034fi
23035
23036else
23037	NETWORKMANAGER_CFLAGS=$pkg_cv_NETWORKMANAGER_CFLAGS
23038	NETWORKMANAGER_LIBS=$pkg_cv_NETWORKMANAGER_LIBS
23039        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23040printf "%s\n" "yes" >&6; }
23041
23042
23043
23044
23045printf "%s\n" "#define HAVE_NETWORKMANAGER 1" >>confdefs.h
23046
23047
23048fi
23049	fi
23050else
23051	enable_nm=no
23052fi
23053
23054# Check whether --enable-unity was given.
23055if test ${enable_unity+y}
23056then :
23057  enableval=$enable_unity; enable_unity="$enableval"
23058else $as_nop
23059  enable_unity="no"
23060fi
23061
23062if test "$enable_unity" = yes; then
23063
23064pkg_failed=no
23065{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unity >= 6.8 messaging-menu >= 12.10" >&5
23066printf %s "checking for unity >= 6.8 messaging-menu >= 12.10... " >&6; }
23067
23068if test -n "$UNITY_CFLAGS"; then
23069    pkg_cv_UNITY_CFLAGS="$UNITY_CFLAGS"
23070 elif test -n "$PKG_CONFIG"; then
23071    if test -n "$PKG_CONFIG" && \
23072    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 6.8 messaging-menu >= 12.10\""; } >&5
23073  ($PKG_CONFIG --exists --print-errors "unity >= 6.8 messaging-menu >= 12.10") 2>&5
23074  ac_status=$?
23075  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23076  test $ac_status = 0; }; then
23077  pkg_cv_UNITY_CFLAGS=`$PKG_CONFIG --cflags "unity >= 6.8 messaging-menu >= 12.10" 2>/dev/null`
23078		      test "x$?" != "x0" && pkg_failed=yes
23079else
23080  pkg_failed=yes
23081fi
23082 else
23083    pkg_failed=untried
23084fi
23085if test -n "$UNITY_LIBS"; then
23086    pkg_cv_UNITY_LIBS="$UNITY_LIBS"
23087 elif test -n "$PKG_CONFIG"; then
23088    if test -n "$PKG_CONFIG" && \
23089    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"unity >= 6.8 messaging-menu >= 12.10\""; } >&5
23090  ($PKG_CONFIG --exists --print-errors "unity >= 6.8 messaging-menu >= 12.10") 2>&5
23091  ac_status=$?
23092  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23093  test $ac_status = 0; }; then
23094  pkg_cv_UNITY_LIBS=`$PKG_CONFIG --libs "unity >= 6.8 messaging-menu >= 12.10" 2>/dev/null`
23095		      test "x$?" != "x0" && pkg_failed=yes
23096else
23097  pkg_failed=yes
23098fi
23099 else
23100    pkg_failed=untried
23101fi
23102
23103
23104
23105if test $pkg_failed = yes; then
23106        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23107printf "%s\n" "no" >&6; }
23108
23109if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23110        _pkg_short_errors_supported=yes
23111else
23112        _pkg_short_errors_supported=no
23113fi
23114        if test $_pkg_short_errors_supported = yes; then
23115	        UNITY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "unity >= 6.8 messaging-menu >= 12.10" 2>&1`
23116        else
23117	        UNITY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "unity >= 6.8 messaging-menu >= 12.10" 2>&1`
23118        fi
23119	# Put the nasty error message in config.log where it belongs
23120	echo "$UNITY_PKG_ERRORS" >&5
23121
23122
23123		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23124printf "%s\n" "no" >&6; }
23125		as_fn_error $? "
23126You must have libunity9 >= 6.8 and libmessaging-menu >= 12.10 to build the unity integration plugin.
23127	" "$LINENO" 5
23128elif test $pkg_failed = untried; then
23129        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23130printf "%s\n" "no" >&6; }
23131
23132		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23133printf "%s\n" "no" >&6; }
23134		as_fn_error $? "
23135You must have libunity9 >= 6.8 and libmessaging-menu >= 12.10 to build the unity integration plugin.
23136	" "$LINENO" 5
23137else
23138	UNITY_CFLAGS=$pkg_cv_UNITY_CFLAGS
23139	UNITY_LIBS=$pkg_cv_UNITY_LIBS
23140        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23141printf "%s\n" "yes" >&6; }
23142
23143fi
23144	USES_MM_CHAT_SECTION="X-MessagingMenu-UsesChatSection=true"
23145
23146
23147
23148else
23149	enable_unity=no
23150fi
23151 if test "x$enable_unity" = "xyes"; then
23152  ENABLE_UNITY_TRUE=
23153  ENABLE_UNITY_FALSE='#'
23154else
23155  ENABLE_UNITY_TRUE='#'
23156  ENABLE_UNITY_FALSE=
23157fi
23158
23159
23160
23161
23162
23163
23164# Check whether --with-python3 was given.
23165if test ${with_python3+y}
23166then :
23167  withval=$with_python3; PYTHON3=$withval
23168fi
23169
23170
23171if test "x$enable_dbus" = "xyes" ; then
23172	if test -z "$PYTHON3" -o "x$PYTHON3" = "xyes"; then
23173		# Extract the first word of "python3", so it can be a program name with args.
23174set dummy python3; ac_word=$2
23175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23176printf %s "checking for $ac_word... " >&6; }
23177if test ${ac_cv_path_PYTHON3+y}
23178then :
23179  printf %s "(cached) " >&6
23180else $as_nop
23181  case $PYTHON3 in
23182  [\\/]* | ?:[\\/]*)
23183  ac_cv_path_PYTHON3="$PYTHON3" # Let the user override the test with a path.
23184  ;;
23185  *)
23186  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23187for as_dir in $PATH
23188do
23189  IFS=$as_save_IFS
23190  case $as_dir in #(((
23191    '') as_dir=./ ;;
23192    */) ;;
23193    *) as_dir=$as_dir/ ;;
23194  esac
23195    for ac_exec_ext in '' $ac_executable_extensions; do
23196  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23197    ac_cv_path_PYTHON3="$as_dir$ac_word$ac_exec_ext"
23198    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23199    break 2
23200  fi
23201done
23202  done
23203IFS=$as_save_IFS
23204
23205  test -z "$ac_cv_path_PYTHON3" && ac_cv_path_PYTHON3="no"
23206  ;;
23207esac
23208fi
23209PYTHON3=$ac_cv_path_PYTHON3
23210if test -n "$PYTHON3"; then
23211  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
23212printf "%s\n" "$PYTHON3" >&6; }
23213else
23214  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23215printf "%s\n" "no" >&6; }
23216fi
23217
23218
23219	fi
23220
23221	if test x"$PYTHON3" = x"no" ; then
23222		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: python3 interpreter not found in your path" >&5
23223printf "%s\n" "$as_me: WARNING: python3 interpreter not found in your path" >&2;}
23224		enable_dbus=no
23225	fi
23226fi
23227
23228
23229# Check whether --with-dbus-services was given.
23230if test ${with_dbus_services+y}
23231then :
23232  withval=$with_dbus_services;
23233fi
23234
23235
23236DBUS_SERVICES_DIR=""
23237
23238if test x"$enable_dbus" = "xyes" ; then
23239	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking location of the D-Bus services directory" >&5
23240printf %s "checking location of the D-Bus services directory... " >&6; }
23241	if ! test -z "$with_dbus_services" ; then
23242		if ! test -d "$with_dbus_services" ; then
23243			as_fn_error $? "$with_dbus_services does not exist, if this is the correct location please make sure that it exists." "$LINENO" 5
23244		fi
23245
23246		DBUS_SERVICES_DIR="$with_dbus_services"
23247	else
23248		if test x"$prefix" = x"NONE" ; then
23249
23250			serviceprefixes="$prefix/share $prefix/lib /usr/share /usr/local/share"
23251			DBUS_SERVICES_DIR=""
23252
23253			for d in $serviceprefixes ; do
23254				dir="$d/dbus-1/services"
23255				if test -d $dir ; then
23256					DBUS_SERVICES_DIR="$dir"
23257					break
23258				fi
23259			done
23260
23261			if test -z $DBUS_SERVICES_DIR ; then
23262				as_fn_error $? "D-Bus services directory was not found!  Please use --with-dbus-services and specify its location." "$LINENO" 5
23263			fi
23264		else
23265			DBUS_SERVICES_DIR="$datadir/dbus-1/services"
23266		fi
23267	fi
23268	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DBUS_SERVICES_DIR" >&5
23269printf "%s\n" "$DBUS_SERVICES_DIR" >&6; }
23270
23271printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
23272
23273fi
23274
23275
23276if test "x$enable_dbus" = "xyes" ; then
23277	echo "Building with D-Bus support"
23278else
23279	echo "Building without D-Bus support"
23280fi
23281
23282 if test "x$enable_dbus" = "xyes"; then
23283  ENABLE_DBUS_TRUE=
23284  ENABLE_DBUS_FALSE='#'
23285else
23286  ENABLE_DBUS_TRUE='#'
23287  ENABLE_DBUS_FALSE=
23288fi
23289
23290
23291# Check whether --enable-mono was given.
23292if test ${enable_mono+y}
23293then :
23294  enableval=$enable_mono;
23295else $as_nop
23296  enable_mono=no
23297fi
23298
23299if test x"$enable_mono" = x"yes" ; then
23300
23301pkg_failed=no
23302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mono" >&5
23303printf %s "checking for mono... " >&6; }
23304
23305if test -n "$MONO_CFLAGS"; then
23306    pkg_cv_MONO_CFLAGS="$MONO_CFLAGS"
23307 elif test -n "$PKG_CONFIG"; then
23308    if test -n "$PKG_CONFIG" && \
23309    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono\""; } >&5
23310  ($PKG_CONFIG --exists --print-errors "mono") 2>&5
23311  ac_status=$?
23312  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313  test $ac_status = 0; }; then
23314  pkg_cv_MONO_CFLAGS=`$PKG_CONFIG --cflags "mono" 2>/dev/null`
23315		      test "x$?" != "x0" && pkg_failed=yes
23316else
23317  pkg_failed=yes
23318fi
23319 else
23320    pkg_failed=untried
23321fi
23322if test -n "$MONO_LIBS"; then
23323    pkg_cv_MONO_LIBS="$MONO_LIBS"
23324 elif test -n "$PKG_CONFIG"; then
23325    if test -n "$PKG_CONFIG" && \
23326    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mono\""; } >&5
23327  ($PKG_CONFIG --exists --print-errors "mono") 2>&5
23328  ac_status=$?
23329  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23330  test $ac_status = 0; }; then
23331  pkg_cv_MONO_LIBS=`$PKG_CONFIG --libs "mono" 2>/dev/null`
23332		      test "x$?" != "x0" && pkg_failed=yes
23333else
23334  pkg_failed=yes
23335fi
23336 else
23337    pkg_failed=untried
23338fi
23339
23340
23341
23342if test $pkg_failed = yes; then
23343        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23344printf "%s\n" "no" >&6; }
23345
23346if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
23347        _pkg_short_errors_supported=yes
23348else
23349        _pkg_short_errors_supported=no
23350fi
23351        if test $_pkg_short_errors_supported = yes; then
23352	        MONO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mono" 2>&1`
23353        else
23354	        MONO_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mono" 2>&1`
23355        fi
23356	# Put the nasty error message in config.log where it belongs
23357	echo "$MONO_PKG_ERRORS" >&5
23358
23359
23360		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23361printf "%s\n" "no" >&6; }
23362		as_fn_error $? "
23363Mono development headers not found.
23364Use --disable-mono if you do not need Mono support.
23365" "$LINENO" 5
23366
23367elif test $pkg_failed = untried; then
23368        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23369printf "%s\n" "no" >&6; }
23370
23371		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23372printf "%s\n" "no" >&6; }
23373		as_fn_error $? "
23374Mono development headers not found.
23375Use --disable-mono if you do not need Mono support.
23376" "$LINENO" 5
23377
23378else
23379	MONO_CFLAGS=$pkg_cv_MONO_CFLAGS
23380	MONO_LIBS=$pkg_cv_MONO_LIBS
23381        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23382printf "%s\n" "yes" >&6; }
23383
23384
23385
23386		enable_mono=yes
23387
23388fi
23389	if test x"$enable_mono" = x"yes"; then
23390		oldLIBS="$LIBS"
23391		LIBS="$LIBS $MONO_LIBS"
23392		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmono" >&5
23393printf %s "checking for libmono... " >&6; }
23394
23395  for ac_func in mono_jit_init
23396do :
23397  ac_fn_c_check_func "$LINENO" "mono_jit_init" "ac_cv_func_mono_jit_init"
23398if test "x$ac_cv_func_mono_jit_init" = xyes
23399then :
23400  printf "%s\n" "#define HAVE_MONO_JIT_INIT 1" >>confdefs.h
23401
23402else $as_nop
23403  enable_mono=no
23404fi
23405
23406done
23407		LIBS="$oldLIBS"
23408
23409		oldCPPFLAGS="$CPPFLAGS"
23410		CPPFLAGS="$CPPFLAGS $MONO_CFLAGS"
23411		       for ac_header in mono/jit/jit.h
23412do :
23413  ac_fn_c_check_header_compile "$LINENO" "mono/jit/jit.h" "ac_cv_header_mono_jit_jit_h" "$ac_includes_default"
23414if test "x$ac_cv_header_mono_jit_jit_h" = xyes
23415then :
23416  printf "%s\n" "#define HAVE_MONO_JIT_JIT_H 1" >>confdefs.h
23417
23418else $as_nop
23419  enable_mono=no
23420fi
23421
23422done
23423		       for ac_header in mono/metadata/object.h
23424do :
23425  ac_fn_c_check_header_compile "$LINENO" "mono/metadata/object.h" "ac_cv_header_mono_metadata_object_h" "$ac_includes_default"
23426if test "x$ac_cv_header_mono_metadata_object_h" = xyes
23427then :
23428  printf "%s\n" "#define HAVE_MONO_METADATA_OBJECT_H 1" >>confdefs.h
23429
23430else $as_nop
23431  enable_mono=no
23432fi
23433
23434done
23435		CPPFLAGS="$oldCPPFLAGS"
23436
23437
23438printf "%s\n" "#define ENABLE_MONO 1" >>confdefs.h
23439
23440	fi
23441else
23442	MONO_CFLAGS=
23443	MONO_LIBS=
23444	enable_mono=no
23445fi
23446
23447
23448
23449 if test x"$enable_mono" = x"yes"; then
23450  USE_MONO_TRUE=
23451  USE_MONO_FALSE='#'
23452else
23453  USE_MONO_TRUE='#'
23454  USE_MONO_FALSE=
23455fi
23456
23457
23458# Check whether --enable-perl was given.
23459if test ${enable_perl+y}
23460then :
23461  enableval=$enable_perl;
23462else $as_nop
23463  enable_perl=yes
23464fi
23465
23466
23467if test "$enable_plugins" = no ; then
23468	enable_perl=no
23469fi
23470looked_for_perl="no"
23471if test "$enable_perl" = yes ; then
23472	looked_for_perl="yes"
23473	# Extract the first word of "perl", so it can be a program name with args.
23474set dummy perl; ac_word=$2
23475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23476printf %s "checking for $ac_word... " >&6; }
23477if test ${ac_cv_path_perlpath+y}
23478then :
23479  printf %s "(cached) " >&6
23480else $as_nop
23481  case $perlpath in
23482  [\\/]* | ?:[\\/]*)
23483  ac_cv_path_perlpath="$perlpath" # Let the user override the test with a path.
23484  ;;
23485  *)
23486  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23487for as_dir in $PATH
23488do
23489  IFS=$as_save_IFS
23490  case $as_dir in #(((
23491    '') as_dir=./ ;;
23492    */) ;;
23493    *) as_dir=$as_dir/ ;;
23494  esac
23495    for ac_exec_ext in '' $ac_executable_extensions; do
23496  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23497    ac_cv_path_perlpath="$as_dir$ac_word$ac_exec_ext"
23498    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23499    break 2
23500  fi
23501done
23502  done
23503IFS=$as_save_IFS
23504
23505  ;;
23506esac
23507fi
23508perlpath=$ac_cv_path_perlpath
23509if test -n "$perlpath"; then
23510  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $perlpath" >&5
23511printf "%s\n" "$perlpath" >&6; }
23512else
23513  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23514printf "%s\n" "no" >&6; }
23515fi
23516
23517
23518	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Perl compile flags" >&5
23519printf %s "checking for Perl compile flags... " >&6; }
23520	PERL_CFLAGS=`$perlpath -MExtUtils::Embed -e ccopts 2>/dev/null`
23521	if test "_$PERL_CFLAGS" = _ ; then
23522		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, building without perl." >&5
23523printf "%s\n" "not found, building without perl." >&6; }
23524		enable_perl=no
23525	else
23526		PERL_LIBS=`$perlpath -MExtUtils::Embed -e ldopts 2>/dev/null |$sedpath 's/-lgdbm //'`
23527		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-ldb //'`
23528		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lndbm //'`
23529		if test "$system" = "Linux"; then
23530			PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lnsl //'`
23531			PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lposix //'`
23532		fi
23533		PERL_LIBS=`echo $PERL_LIBS |$sedpath 's/-lc //'`
23534		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
23535printf "%s\n" "ok" >&6; }
23536
23537		oldLIBS="$LIBS"
23538		LIBS="$LIBS $PERL_LIBS"
23539		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
23540printf %s "checking for libperl... " >&6; }
23541
23542  for ac_func in perl_run
23543do :
23544  ac_fn_c_check_func "$LINENO" "perl_run" "ac_cv_func_perl_run"
23545if test "x$ac_cv_func_perl_run" = xyes
23546then :
23547  printf "%s\n" "#define HAVE_PERL_RUN 1" >>confdefs.h
23548
23549else $as_nop
23550  enable_perl=no
23551fi
23552
23553done
23554		LIBS="$oldLIBS"
23555
23556		oldCPPFLAGS="$CPPFLAGS"
23557		CPPFLAGS="$CPPFLAGS $PERL_CFLAGS"
23558		ac_fn_c_check_header_compile "$LINENO" "EXTERN.h" "ac_cv_header_EXTERN_h" "$ac_includes_default"
23559if test "x$ac_cv_header_EXTERN_h" = xyes
23560then :
23561  printf "%s\n" "#define HAVE_EXTERN_H 1" >>confdefs.h
23562
23563fi
23564
23565		       for ac_header in perl.h
23566do :
23567  ac_fn_c_check_header_compile "$LINENO" "perl.h" "ac_cv_header_perl_h" "#if HAVE_EXTERN_H
23568		 # include <EXTERN.h>
23569		 #endif
23570"
23571if test "x$ac_cv_header_perl_h" = xyes
23572then :
23573  printf "%s\n" "#define HAVE_PERL_H 1" >>confdefs.h
23574
23575else $as_nop
23576  enable_perl=no
23577fi
23578
23579done
23580		CPPFLAGS="$oldCPPFLAGS"
23581	fi
23582fi
23583
23584if test "$enable_perl" = yes ; then
23585	ac_perl_modules="ExtUtils::MakeMaker"
23586# Make sure we have perl
23587if test -z "$PERL"; then
23588# Extract the first word of "perl", so it can be a program name with args.
23589set dummy perl; ac_word=$2
23590{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23591printf %s "checking for $ac_word... " >&6; }
23592if test ${ac_cv_prog_PERL+y}
23593then :
23594  printf %s "(cached) " >&6
23595else $as_nop
23596  if test -n "$PERL"; then
23597  ac_cv_prog_PERL="$PERL" # Let the user override the test.
23598else
23599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23600for as_dir in $PATH
23601do
23602  IFS=$as_save_IFS
23603  case $as_dir in #(((
23604    '') as_dir=./ ;;
23605    */) ;;
23606    *) as_dir=$as_dir/ ;;
23607  esac
23608    for ac_exec_ext in '' $ac_executable_extensions; do
23609  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23610    ac_cv_prog_PERL="perl"
23611    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23612    break 2
23613  fi
23614done
23615  done
23616IFS=$as_save_IFS
23617
23618fi
23619fi
23620PERL=$ac_cv_prog_PERL
23621if test -n "$PERL"; then
23622  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23623printf "%s\n" "$PERL" >&6; }
23624else
23625  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23626printf "%s\n" "no" >&6; }
23627fi
23628
23629
23630fi
23631
23632if test "x$PERL" != x; then
23633  ac_perl_modules_failed=0
23634  for ac_perl_module in $ac_perl_modules; do
23635    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for perl module $ac_perl_module" >&5
23636printf %s "checking for perl module $ac_perl_module... " >&6; }
23637
23638    # Would be nice to log result here, but can't rely on autoconf internals
23639    $PERL "-M$ac_perl_module" -e exit > /dev/null 2>&1
23640    if test $? -ne 0; then
23641      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23642printf "%s\n" "no" >&6; };
23643      ac_perl_modules_failed=1
23644   else
23645      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
23646printf "%s\n" "ok" >&6; };
23647    fi
23648  done
23649
23650  # Run optional shell commands
23651  if test "$ac_perl_modules_failed" = 0; then
23652    :
23653
23654  else
23655    :
23656    have_makemaker=no
23657  fi
23658else
23659  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
23660printf "%s\n" "$as_me: WARNING: could not find perl" >&2;}
23661fi
23662
23663	if test "x$have_makemaker" = "xno"; then
23664		enable_perl=no
23665		PERL_CFLAGS=
23666		PERL_LIBS=
23667		 if false; then
23668  USE_PERL_TRUE=
23669  USE_PERL_FALSE='#'
23670else
23671  USE_PERL_TRUE='#'
23672  USE_PERL_FALSE=
23673fi
23674
23675		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Compiling perl requires ExtUtils::MakeMaker" >&5
23676printf "%s\n" "$as_me: WARNING: Compiling perl requires ExtUtils::MakeMaker" >&2;}
23677	else
23678
23679printf "%s\n" "#define HAVE_PERL 1" >>confdefs.h
23680
23681
23682
23683		 if true; then
23684  USE_PERL_TRUE=
23685  USE_PERL_FALSE='#'
23686else
23687  USE_PERL_TRUE='#'
23688  USE_PERL_FALSE=
23689fi
23690
23691
23692						ac_fn_c_check_func "$LINENO" "Perl_eval_pv" "ac_cv_func_Perl_eval_pv"
23693if test "x$ac_cv_func_Perl_eval_pv" = xyes
23694then :
23695  printf "%s\n" "#define HAVE_PERL_EVAL_PV 1" >>confdefs.h
23696
23697fi
23698
23699
23700		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for old perl" >&5
23701printf %s "checking for old perl... " >&6; }
23702		PERL_OLD=`$perlpath -e 'if($]<5.006){printf"yes\n";}else{printf"no\n";}'`
23703
23704		if test "x$PERL_OLD" = "xyes"; then
23705
23706printf "%s\n" "#define OLD_PERL 1" >>confdefs.h
23707
23708			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23709printf "%s\n" "yes" >&6; }
23710		else
23711			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23712printf "%s\n" "no" >&6; }
23713		fi
23714
23715		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DynaLoader.a" >&5
23716printf %s "checking for DynaLoader.a... " >&6; }
23717		DYNALOADER_A=`echo $PERL_LDFLAGS | $perlpath -pe 's/^(.* )*([^ ]*DynaLoader\.a).*/\2/'`
23718
23719				if test -n "$DYNALOADER_A"; then
23720			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23721printf "%s\n" "yes" >&6; }
23722
23723						{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libperl.a or libperl.so" >&5
23724printf %s "checking for libperl.a or libperl.so... " >&6; }
23725			LIBPERL_A=`echo "$PERL_LDFLAGS -L/usr/lib"|$perlpath -e 'foreach (split(/ /, <STDIN>)) { if (/^-L(.*)/) { my $dir=$1; if (\`ls $dir/libperl.so* 2>/dev/null\`) { print "-lperl"; last; }; if (-e "$dir/libperl.a") { print "$dir/libperl.a"; last } } };'`
23726			if test -z "$LIBPERL_A"; then
23727				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23728printf "%s\n" "no" >&6; }
23729				DYNALOADER_A=
23730			else
23731				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23732printf "%s\n" "yes" >&6; }
23733
23734				if test "$LIBPERL_A" = "-lperl"; then
23735					LIBPERL_A=
23736				fi
23737			fi
23738
23739			PERL_LIBS=`echo $PERL_LIBS | $perlpath -pe 's/^(.* )*[^ ]*DynaLoader\.a/\1libperl_dynaloader.la/'`
23740
23741			if test -n "$LIBPERL_A"; then
23742				PERL_LIBS=`echo $PERL_LDFLAGS | $sedpath -e 's/-lperl /libperl_orig.la /' -e 's/-lperl$/libperl_orig.la$/'`
23743			fi
23744
23745
23746
23747		else
23748			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23749printf "%s\n" "no" >&6; }
23750		fi
23751	fi
23752else
23753	PERL_CFLAGS=
23754	PERL_LIBS=
23755	 if false; then
23756  USE_PERL_TRUE=
23757  USE_PERL_FALSE='#'
23758else
23759  USE_PERL_TRUE='#'
23760  USE_PERL_FALSE=
23761fi
23762
23763fi
23764
23765if test "x$looked_for_perl" = "xyes" -a "x$enable_perl" = "xno" -a "x$force_deps" = "xyes"; then
23766	as_fn_error $? "
23767Perl development headers not found.
23768Use --disable-perl if you do not need Perl scripting support.
23769" "$LINENO" 5
23770fi
23771
23772
23773
23774# Check whether --with-system-ssl-certs was given.
23775if test ${with_system_ssl_certs+y}
23776then :
23777  withval=$with_system_ssl_certs; ssl_certificates_dir=$withval
23778fi
23779
23780
23781SSL_CERTIFICATES_DIR=""
23782if ! test -z "$ssl_certificates_dir" ; then
23783	if test "x$ssl_certificates_dir" = "xyes" ; then
23784		as_fn_error $? "--with-system-ssl-certs requires that a location is specified, eg. --with-system-ssl-certs=/etc/pki/tls/certs" "$LINENO" 5
23785	fi
23786	if ! test -d "$ssl_certificates_dir" ; then
23787		as_fn_error $? "$ssl_certificates_dir does not exist, if this is the correct location please make sure that it exists." "$LINENO" 5
23788	fi
23789	SSL_CERTIFICATES_DIR="$ssl_certificates_dir"
23790fi
23791
23792 if test "x$SSL_CERTIFICATES_DIR" = "x"; then
23793  INSTALL_SSL_CERTIFICATES_TRUE=
23794  INSTALL_SSL_CERTIFICATES_FALSE='#'
23795else
23796  INSTALL_SSL_CERTIFICATES_TRUE='#'
23797  INSTALL_SSL_CERTIFICATES_FALSE=
23798fi
23799
23800
23801
23802# Check whether --enable-gnutls was given.
23803if test ${enable_gnutls+y}
23804then :
23805  enableval=$enable_gnutls; enable_gnutls="$enableval"
23806else $as_nop
23807  enable_gnutls="yes"
23808fi
23809
23810
23811# Check whether --enable-nss was given.
23812if test ${enable_nss+y}
23813then :
23814  enableval=$enable_nss; enable_nss="$enableval"
23815else $as_nop
23816  enable_nss="yes"
23817fi
23818
23819
23820msg_ssl="None. Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!"
23821looked_for_gnutls="no"
23822if test "x$enable_gnutls" != "xno"; then
23823	enable_gnutls="no"
23824	prefix=`eval echo $prefix`
23825	looked_for_gnutls="yes"
23826
23827
23828# Check whether --with-gnutls-includes was given.
23829if test ${with_gnutls_includes+y}
23830then :
23831  withval=$with_gnutls_includes;  with_gnutls_includes="$withval"
23832else $as_nop
23833   with_gnutls_includes="$prefix/include"
23834fi
23835
23836
23837	have_gnutls_includes="no"
23838
23839	if test "x$with_gnutls_includes" != "xno"; then
23840		CPPFLAGS_save="$CPPFLAGS"
23841
23842		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS includes" >&5
23843printf %s "checking for GnuTLS includes... " >&6; }
23844		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"\"" >&5
23845printf "%s\n" "\"\"" >&6; }
23846
23847		CPPFLAGS="$CPPFLAGS -I$with_gnutls_includes"
23848		       for ac_header in gnutls/gnutls.h
23849do :
23850  ac_fn_c_check_header_compile "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
23851if test "x$ac_cv_header_gnutls_gnutls_h" = xyes
23852then :
23853  printf "%s\n" "#define HAVE_GNUTLS_GNUTLS_H 1" >>confdefs.h
23854  gnutls_includes="yes"
23855fi
23856
23857done
23858		CPPFLAGS="$CPPFLAGS_save"
23859
23860		if test "x$gnutls_includes" != "xno" -a \
23861		        "x$gnutls_includes" != "x"; then
23862			have_gnutls_includes="yes"
23863
23864			if test "x$with_gnutls_includes" != "xNONE/include"; then
23865				GNUTLS_CFLAGS="-I$with_gnutls_includes"
23866			fi
23867		else
23868			GNUTLS_CFLAGS=""
23869		fi
23870	else
23871		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS includes" >&5
23872printf %s "checking for GnuTLS includes... " >&6; }
23873		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23874printf "%s\n" "no" >&6; }
23875	fi
23876
23877
23878# Check whether --with-gnutls-libs was given.
23879if test ${with_gnutls_libs+y}
23880then :
23881  withval=$with_gnutls_libs;  with_gnutls_libs="$withval"
23882fi
23883
23884
23885	if test "x$with_gnutls_libs"     != "xno" -a \
23886	        "x$have_gnutls_includes" != "xno"; then
23887
23888		LIBS_save="$LIBS"
23889
23890		case $with_gnutls_libs in
23891			""|-L*) ;;
23892			*) with_gnutls_libs="-L$with_gnutls_libs" ;;
23893		esac
23894
23895		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS libraries" >&5
23896printf %s "checking for GnuTLS libraries... " >&6; }
23897if test ${ac_cv_gnutls_libs+y}
23898then :
23899  printf %s "(cached) " >&6
23900else $as_nop
23901
23902			LIBS="$LIBS $with_gnutls_libs -lgnutls"
23903			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23904/* end confdefs.h.  */
23905
23906/* Override any GCC internal prototype to avoid an error.
23907   Use char because int might match the return type of a GCC
23908   builtin and then its argument prototype would still apply.  */
23909char gnutls_init ();
23910int
23911main (void)
23912{
23913return gnutls_init ();
23914  ;
23915  return 0;
23916}
23917_ACEOF
23918if ac_fn_c_try_link "$LINENO"
23919then :
23920  ac_cv_gnutls_libs="yes"
23921else $as_nop
23922  ac_cv_gnutls_libs="no"
23923fi
23924rm -f core conftest.err conftest.$ac_objext conftest.beam \
23925    conftest$ac_exeext conftest.$ac_ext
23926			LIBS="$LIBS_save"
23927
23928fi
23929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnutls_libs" >&5
23930printf "%s\n" "$ac_cv_gnutls_libs" >&6; }
23931
23932		if test "x$ac_cv_gnutls_libs" != "xno"; then
23933
23934printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
23935
23936			printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
23937
23938			msg_gnutls="GnuTLS"
23939			GNUTLS_LIBS="$with_gnutls_libs -lgnutls"
23940
23941			enable_gnutls="yes"
23942		else
23943			GNUTLS_CFLAGS=""
23944			GNUTLS_LIBS=""
23945		fi
23946	else
23947		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GnuTLS libraries" >&5
23948printf %s "checking for GnuTLS libraries... " >&6; }
23949		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23950printf "%s\n" "no" >&6; }
23951	fi
23952else
23953	GNUTLS_CFLAGS=""
23954	GNUTLS_LIBS=""
23955fi
23956
23957
23958
23959
23960if test "x$enable_gnutls" = "xyes"; then
23961	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_priority_set_direct and gnutls_priority_set" >&5
23962printf %s "checking for gnutls_priority_set_direct and gnutls_priority_set... " >&6; }
23963	LIBS_save="$LIBS"
23964	LIBS="$LIBS $GNUTLS_LIBS"
23965	CPPFLAGS_save="$CPPFLAGS"
23966	CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
23967	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23968/* end confdefs.h.  */
23969#include <gnutls/gnutls.h>
23970int
23971main (void)
23972{
23973gnutls_session s; gnutls_priority_set_direct(s, NULL, NULL); gnutls_priority_set(s, NULL);
23974  ;
23975  return 0;
23976}
23977_ACEOF
23978if ac_fn_c_try_link "$LINENO"
23979then :
23980
23981printf "%s\n" "#define HAVE_GNUTLS_PRIORITY_FUNCS 1" >>confdefs.h
23982
23983	                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23984printf "%s\n" "yes" >&6; }
23985else $as_nop
23986  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23987printf "%s\n" "no" >&6; }
23988fi
23989rm -f core conftest.err conftest.$ac_objext conftest.beam \
23990    conftest$ac_exeext conftest.$ac_ext
23991	CPPFLAGS="$CPPFLAGS_save"
23992        LIBS="$LIBS_save"
23993fi
23994
23995if test "x$enable_gnutls" = "xyes"; then
23996	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNUTLS_CERT_INSECURE_ALGORITHM" >&5
23997printf %s "checking for GNUTLS_CERT_INSECURE_ALGORITHM... " >&6; }
23998	LIBS_save="$LIBS"
23999	LIBS="$LIBS $GNUTLS_LIBS"
24000	CPPFLAGS_save="$CPPFLAGS"
24001	CPPFLAGS="$CPPFLAGS $GNUTLS_CFLAGS"
24002	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003/* end confdefs.h.  */
24004#include <gnutls/gnutls.h>
24005int
24006main (void)
24007{
24008unsigned int verify = GNUTLS_CERT_INSECURE_ALGORITHM;
24009  ;
24010  return 0;
24011}
24012_ACEOF
24013if ac_fn_c_try_link "$LINENO"
24014then :
24015
24016printf "%s\n" "#define HAVE_GNUTLS_CERT_INSECURE_ALGORITHM 1" >>confdefs.h
24017
24018	                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24019printf "%s\n" "yes" >&6; }
24020else $as_nop
24021  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24022printf "%s\n" "no" >&6; }
24023fi
24024rm -f core conftest.err conftest.$ac_objext conftest.beam \
24025    conftest$ac_exeext conftest.$ac_ext
24026	CPPFLAGS="$CPPFLAGS_save"
24027        LIBS="$LIBS_save"
24028fi
24029
24030
24031 if test "x$enable_gnutls" = "xyes"; then
24032  USE_GNUTLS_TRUE=
24033  USE_GNUTLS_FALSE='#'
24034else
24035  USE_GNUTLS_TRUE='#'
24036  USE_GNUTLS_FALSE=
24037fi
24038
24039
24040
24041looked_for_nss="no"
24042if test "x$enable_nss" != "xno"; then
24043	looked_for_nss="yes"
24044
24045
24046# Check whether --with-nspr-includes was given.
24047if test ${with_nspr_includes+y}
24048then :
24049  withval=$with_nspr_includes; with_nspr_includes="$withval"
24050fi
24051
24052
24053
24054# Check whether --with-nspr-libs was given.
24055if test ${with_nspr_libs+y}
24056then :
24057  withval=$with_nspr_libs; with_nspr_libs="$withval"
24058fi
24059
24060
24061
24062# Check whether --with-nss-includes was given.
24063if test ${with_nss_includes+y}
24064then :
24065  withval=$with_nss_includes; with_nss_includes="$withval"
24066fi
24067
24068
24069
24070# Check whether --with-nss-libs was given.
24071if test ${with_nss_libs+y}
24072then :
24073  withval=$with_nss_libs; with_nss_libs="$withval"
24074fi
24075
24076
24077
24078	if test -n "$with_nspr_includes" || test -n "$with_nspr_libs" || \
24079	   test -n "$with_nss_includes"  || test -n "$with_nss_libs"  ||
24080	   test "x$enable_nss" = "xstatic"; then
24081
24082		nss_manual_check="yes"
24083	else
24084		nss_manual_check="no"
24085	fi
24086
24087	enable_nss="no"
24088
24089	if test "x$nss_manual_check" = "xno"; then
24090		if `$PKG_CONFIG --exists mozilla-nss`; then
24091
24092pkg_failed=no
24093{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mozilla-nss" >&5
24094printf %s "checking for mozilla-nss... " >&6; }
24095
24096if test -n "$NSS_CFLAGS"; then
24097    pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
24098 elif test -n "$PKG_CONFIG"; then
24099    if test -n "$PKG_CONFIG" && \
24100    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nss\""; } >&5
24101  ($PKG_CONFIG --exists --print-errors "mozilla-nss") 2>&5
24102  ac_status=$?
24103  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24104  test $ac_status = 0; }; then
24105  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "mozilla-nss" 2>/dev/null`
24106		      test "x$?" != "x0" && pkg_failed=yes
24107else
24108  pkg_failed=yes
24109fi
24110 else
24111    pkg_failed=untried
24112fi
24113if test -n "$NSS_LIBS"; then
24114    pkg_cv_NSS_LIBS="$NSS_LIBS"
24115 elif test -n "$PKG_CONFIG"; then
24116    if test -n "$PKG_CONFIG" && \
24117    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"mozilla-nss\""; } >&5
24118  ($PKG_CONFIG --exists --print-errors "mozilla-nss") 2>&5
24119  ac_status=$?
24120  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24121  test $ac_status = 0; }; then
24122  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "mozilla-nss" 2>/dev/null`
24123		      test "x$?" != "x0" && pkg_failed=yes
24124else
24125  pkg_failed=yes
24126fi
24127 else
24128    pkg_failed=untried
24129fi
24130
24131
24132
24133if test $pkg_failed = yes; then
24134        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24135printf "%s\n" "no" >&6; }
24136
24137if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24138        _pkg_short_errors_supported=yes
24139else
24140        _pkg_short_errors_supported=no
24141fi
24142        if test $_pkg_short_errors_supported = yes; then
24143	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "mozilla-nss" 2>&1`
24144        else
24145	        NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "mozilla-nss" 2>&1`
24146        fi
24147	# Put the nasty error message in config.log where it belongs
24148	echo "$NSS_PKG_ERRORS" >&5
24149
24150
24151				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152printf "%s\n" "no" >&6; }
24153				have_nss="no"
24154
24155elif test $pkg_failed = untried; then
24156        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24157printf "%s\n" "no" >&6; }
24158
24159				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24160printf "%s\n" "no" >&6; }
24161				have_nss="no"
24162
24163else
24164	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
24165	NSS_LIBS=$pkg_cv_NSS_LIBS
24166        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24167printf "%s\n" "yes" >&6; }
24168
24169				have_nss="yes"
24170
24171fi
24172			mozilla_nspr="mozilla-nspr"
24173			mozilla_nss="mozilla-nss"
24174		elif `$PKG_CONFIG --exists nss`; then
24175
24176pkg_failed=no
24177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
24178printf %s "checking for nss... " >&6; }
24179
24180if test -n "$NSS_CFLAGS"; then
24181    pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
24182 elif test -n "$PKG_CONFIG"; then
24183    if test -n "$PKG_CONFIG" && \
24184    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
24185  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
24186  ac_status=$?
24187  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24188  test $ac_status = 0; }; then
24189  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss" 2>/dev/null`
24190		      test "x$?" != "x0" && pkg_failed=yes
24191else
24192  pkg_failed=yes
24193fi
24194 else
24195    pkg_failed=untried
24196fi
24197if test -n "$NSS_LIBS"; then
24198    pkg_cv_NSS_LIBS="$NSS_LIBS"
24199 elif test -n "$PKG_CONFIG"; then
24200    if test -n "$PKG_CONFIG" && \
24201    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"nss\""; } >&5
24202  ($PKG_CONFIG --exists --print-errors "nss") 2>&5
24203  ac_status=$?
24204  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205  test $ac_status = 0; }; then
24206  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "nss" 2>/dev/null`
24207		      test "x$?" != "x0" && pkg_failed=yes
24208else
24209  pkg_failed=yes
24210fi
24211 else
24212    pkg_failed=untried
24213fi
24214
24215
24216
24217if test $pkg_failed = yes; then
24218        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24219printf "%s\n" "no" >&6; }
24220
24221if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24222        _pkg_short_errors_supported=yes
24223else
24224        _pkg_short_errors_supported=no
24225fi
24226        if test $_pkg_short_errors_supported = yes; then
24227	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "nss" 2>&1`
24228        else
24229	        NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "nss" 2>&1`
24230        fi
24231	# Put the nasty error message in config.log where it belongs
24232	echo "$NSS_PKG_ERRORS" >&5
24233
24234
24235				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24236printf "%s\n" "no" >&6; }
24237				have_nss="no"
24238
24239elif test $pkg_failed = untried; then
24240        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24241printf "%s\n" "no" >&6; }
24242
24243				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24244printf "%s\n" "no" >&6; }
24245				have_nss="no"
24246
24247else
24248	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
24249	NSS_LIBS=$pkg_cv_NSS_LIBS
24250        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24251printf "%s\n" "yes" >&6; }
24252
24253				have_nss="yes"
24254
24255fi
24256			mozilla_nspr="nspr"
24257			mozilla_nss="nss"
24258		elif `$PKG_CONFIG --exists microb-engine-nss`; then
24259
24260pkg_failed=no
24261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for microb-engine-nss" >&5
24262printf %s "checking for microb-engine-nss... " >&6; }
24263
24264if test -n "$NSS_CFLAGS"; then
24265    pkg_cv_NSS_CFLAGS="$NSS_CFLAGS"
24266 elif test -n "$PKG_CONFIG"; then
24267    if test -n "$PKG_CONFIG" && \
24268    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"microb-engine-nss\""; } >&5
24269  ($PKG_CONFIG --exists --print-errors "microb-engine-nss") 2>&5
24270  ac_status=$?
24271  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24272  test $ac_status = 0; }; then
24273  pkg_cv_NSS_CFLAGS=`$PKG_CONFIG --cflags "microb-engine-nss" 2>/dev/null`
24274		      test "x$?" != "x0" && pkg_failed=yes
24275else
24276  pkg_failed=yes
24277fi
24278 else
24279    pkg_failed=untried
24280fi
24281if test -n "$NSS_LIBS"; then
24282    pkg_cv_NSS_LIBS="$NSS_LIBS"
24283 elif test -n "$PKG_CONFIG"; then
24284    if test -n "$PKG_CONFIG" && \
24285    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"microb-engine-nss\""; } >&5
24286  ($PKG_CONFIG --exists --print-errors "microb-engine-nss") 2>&5
24287  ac_status=$?
24288  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24289  test $ac_status = 0; }; then
24290  pkg_cv_NSS_LIBS=`$PKG_CONFIG --libs "microb-engine-nss" 2>/dev/null`
24291		      test "x$?" != "x0" && pkg_failed=yes
24292else
24293  pkg_failed=yes
24294fi
24295 else
24296    pkg_failed=untried
24297fi
24298
24299
24300
24301if test $pkg_failed = yes; then
24302        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24303printf "%s\n" "no" >&6; }
24304
24305if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24306        _pkg_short_errors_supported=yes
24307else
24308        _pkg_short_errors_supported=no
24309fi
24310        if test $_pkg_short_errors_supported = yes; then
24311	        NSS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "microb-engine-nss" 2>&1`
24312        else
24313	        NSS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "microb-engine-nss" 2>&1`
24314        fi
24315	# Put the nasty error message in config.log where it belongs
24316	echo "$NSS_PKG_ERRORS" >&5
24317
24318
24319				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320printf "%s\n" "no" >&6; }
24321				have_nss="no"
24322
24323elif test $pkg_failed = untried; then
24324        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24325printf "%s\n" "no" >&6; }
24326
24327				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24328printf "%s\n" "no" >&6; }
24329				have_nss="no"
24330
24331else
24332	NSS_CFLAGS=$pkg_cv_NSS_CFLAGS
24333	NSS_LIBS=$pkg_cv_NSS_LIBS
24334        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24335printf "%s\n" "yes" >&6; }
24336
24337				have_nss="yes"
24338
24339fi
24340			mozilla_nspr="mozilla-nspr"
24341			mozilla_nss="microb-engine-nss"
24342		fi
24343
24344		if test "x$have_nss" = "xyes"; then
24345
24346
24347printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
24348
24349
24350printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
24351
24352
24353			msg_nss="Mozilla NSS"
24354			enable_nss="yes"
24355		else
24356			nss_manual_check="yes"
24357		fi
24358	fi
24359
24360	if test "x$nss_manual_check" = "xyes"; then
24361		mozilla_nss=""
24362		have_nspr_includes="no"
24363
24364		if test "x$with_nspr_includes" != "xno"; then
24365			CPPFLAGS_save=$CPPFLAGS
24366
24367			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 includes in $with_nspr_includes" >&5
24368printf %s "checking for Mozilla nspr4 includes in $with_nspr_includes... " >&6; }
24369			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"\"" >&5
24370printf "%s\n" "\"\"" >&6; }
24371
24372			CPPFLAGS="$CPPFLAGS -I$with_nspr_includes"
24373			       for ac_header in nspr.h prio.h
24374do :
24375  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24377if eval test \"x\$"$as_ac_Header"\" = x"yes"
24378then :
24379  cat >>confdefs.h <<_ACEOF
24380#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24381_ACEOF
24382  moz_nspr_includes="yes"
24383fi
24384
24385done
24386			CPPFLAGS=$CPPFLAGS_save
24387
24388			if test "x$moz_nspr_includes" != "xno" -a \
24389			        "x$moz_nspr_includes" != "x"; then
24390
24391				have_nspr_includes="yes"
24392				NSPR_CFLAGS="-I$with_nspr_includes"
24393			fi
24394		else
24395			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 includes" >&5
24396printf %s "checking for Mozilla nspr4 includes... " >&6; }
24397			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398printf "%s\n" "no" >&6; }
24399
24400			enable_nss="no"
24401		fi
24402
24403		have_nspr_libs="no"
24404
24405		if test "x$with_nspr_libs"     != "xno" -a \
24406		        "x$have_nspr_includes" != "xno"; then
24407
24408			CFLAGS_save=$CFLAGS
24409			LDFLAGS_save=$LDFLAGS
24410
24411			if test "$enable_nss" = "static"; then
24412				if test -z "$with_nspr_libs"; then
24413					as_fn_error $? "Static linkage requested, but path to nspr libraries not set.
24414						Please specify the path to libnspr4.a
24415						Example: --with-nspr-libs=/usr/lib" "$LINENO" 5
24416
24417					enable_nss="no"
24418				else
24419					nsprlibs="$LIBDL $with_nspr_libs/libplc4.a $with_nspr_libs/libplds4.a $with_nspr_libs/libnspr4.a $PTHREAD_LIB"
24420				fi
24421			else
24422				nsprlibs="$LIBDL -lplc4 -lplds4 -lnspr4 $PTHREAD_LIB"
24423			fi
24424
24425			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr libraries" >&5
24426printf %s "checking for Mozilla nspr libraries... " >&6; }
24427if test ${ac_cv_moz_nspr_libs+y}
24428then :
24429  printf %s "(cached) " >&6
24430else $as_nop
24431
24432				LIBS_save=$LIBS
24433				CFLAGS="$CFLAGS $NSPR_CFLAGS"
24434
24435				LIBS="$nsprlibs"
24436
24437				if test "x$with_nspr_libs" != "x"; then
24438					LDFLAGS="$LDFLAGS -L$with_nspr_libs"
24439				else
24440					LDFLAGS="$LDFLAGS"
24441				fi
24442
24443				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444/* end confdefs.h.  */
24445
24446/* Override any GCC internal prototype to avoid an error.
24447   Use char because int might match the return type of a GCC
24448   builtin and then its argument prototype would still apply.  */
24449char PR_Init ();
24450int
24451main (void)
24452{
24453return PR_Init ();
24454  ;
24455  return 0;
24456}
24457_ACEOF
24458if ac_fn_c_try_link "$LINENO"
24459then :
24460  ac_cv_moz_nspr_libs="yes"
24461else $as_nop
24462  ac_cv_moz_nspr_libs="no"
24463fi
24464rm -f core conftest.err conftest.$ac_objext conftest.beam \
24465    conftest$ac_exeext conftest.$ac_ext
24466
24467				CFLAGS=$CFLAGS_save
24468				LDFLAGS=$LDFLAGS_save
24469				LIBS=$LIBS_save
24470
24471fi
24472{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_moz_nspr_libs" >&5
24473printf "%s\n" "$ac_cv_moz_nspr_libs" >&6; }
24474
24475			if test "x$ac_cv_moz_nspr_libs" != "xno"; then
24476				have_nspr_libs="yes"
24477				NSPR_LIBS="-L$with_nspr_libs $nsprlibs"
24478			else
24479				NSPR_CFLAGS=""
24480				enable_nss="no"
24481			fi
24482		else
24483			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nspr4 libraries" >&5
24484printf %s "checking for Mozilla nspr4 libraries... " >&6; }
24485			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24486printf "%s\n" "no" >&6; }
24487		fi
24488
24489		have_nss_includes="no"
24490
24491		if test "x$with_nss_includes" != "xno" -a \
24492				"x$have_nspr_libs"    != "xno"; then
24493
24494			CPPFLAGS_save=$CPPFLAGS
24495
24496			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss3 includes in $with_nss_includes" >&5
24497printf %s "checking for Mozilla nss3 includes in $with_nss_includes... " >&6; }
24498			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"\"" >&5
24499printf "%s\n" "\"\"" >&6; }
24500
24501			if test "x$with_nspr_includes" != "x"; then
24502				CPPFLAGS="$CPPFLAGS -I$with_nspr_includes -I$with_nss_includes"
24503			else
24504				CPPFLAGS="$CPPFLAGS -I$with_nss_includes"
24505			fi
24506
24507			       for ac_header in nss.h ssl.h smime.h
24508do :
24509  as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24510ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24511if eval test \"x\$"$as_ac_Header"\" = x"yes"
24512then :
24513  cat >>confdefs.h <<_ACEOF
24514#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24515_ACEOF
24516 moz_nss_includes="yes"
24517else $as_nop
24518  moz_nss_includes="no"
24519fi
24520
24521done
24522
24523			CPPFLAGS=$CPPFLAGS_save
24524
24525			if test "x$moz_nss_includes" = "xyes"; then
24526				have_nss_includes="yes"
24527				NSS_CFLAGS="-I$with_nss_includes"
24528			else
24529				NSPR_CFLAGS=""
24530				NSPR_LIBS=""
24531				enable_nss="no"
24532			fi
24533		else
24534			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss3 includes" >&5
24535printf %s "checking for Mozilla nss3 includes... " >&6; }
24536			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24537printf "%s\n" "no" >&6; }
24538			enable_nss="no"
24539		fi
24540
24541		if test "x$with_nss_libs"     != "xno" -a \
24542				"x$have_nss_includes" != "xno"; then
24543
24544			LDFLAGS_save=$LDFLAGS
24545
24546			if test "$enable_nss" = "static"; then
24547				if test -z "$with_nss_libs"; then
24548					as_fn_error $? "Static linkage requested, but path to nss libraries not set.
24549						Please specify the path to libnss3.a
24550						Example: --with-nspr-libs=/usr/lib/mozilla" "$LINENO" 5
24551					enable_nss="no"
24552				else
24553					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"
24554
24555					case "$host" in
24556						*solaris*)
24557							nsslibs="$nsslibs $with_nss_libs/libfreeb1.a"
24558							;;
24559					esac
24560				fi
24561			else
24562				nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
24563			fi
24564
24565			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss libraries" >&5
24566printf %s "checking for Mozilla nss libraries... " >&6; }
24567if test ${ac_cv_moz_nss_libs+y}
24568then :
24569  printf %s "(cached) " >&6
24570else $as_nop
24571
24572				LIBS_save=$LIBS
24573				LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs"
24574				LIBS="$nsslibs $nsprlibs"
24575
24576				cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24577/* end confdefs.h.  */
24578
24579/* Override any GCC internal prototype to avoid an error.
24580   Use char because int might match the return type of a GCC
24581   builtin and then its argument prototype would still apply.  */
24582char NSS_Init ();
24583int
24584main (void)
24585{
24586return NSS_Init ();
24587  ;
24588  return 0;
24589}
24590_ACEOF
24591if ac_fn_c_try_link "$LINENO"
24592then :
24593  ac_cv_moz_nss_libs="yes"
24594else $as_nop
24595  ac_cv_moz_nss_libs="no"
24596fi
24597rm -f core conftest.err conftest.$ac_objext conftest.beam \
24598    conftest$ac_exeext conftest.$ac_ext
24599
24600				if test "x$ac_cv_moz_nss_libs" = "xno"; then
24601					nsslibs="-lssl3 -lsmime3 -lnss3 -lsoftokn3"
24602					LDFLAGS="$LDFLAGS -L$with_nspr_libs -L$with_nss_libs"
24603					LIBS="$LIBS $nsslibs"
24604					cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605/* end confdefs.h.  */
24606
24607/* Override any GCC internal prototype to avoid an error.
24608   Use char because int might match the return type of a GCC
24609   builtin and then its argument prototype would still apply.  */
24610char NSS_Init ();
24611int
24612main (void)
24613{
24614return NSS_Init ();
24615  ;
24616  return 0;
24617}
24618_ACEOF
24619if ac_fn_c_try_link "$LINENO"
24620then :
24621  ac_cv_moz_nss_libs="yes"
24622else $as_nop
24623  ac_cv_moz_nss_libs="no"
24624fi
24625rm -f core conftest.err conftest.$ac_objext conftest.beam \
24626    conftest$ac_exeext conftest.$ac_ext
24627				fi
24628
24629				LDFLAGS=$LDFLAGS_save
24630				LIBS=$LIBS_save
24631
24632fi
24633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_moz_nss_libs" >&5
24634printf "%s\n" "$ac_cv_moz_nss_libs" >&6; }
24635
24636			if test "x$ac_cv_moz_nss_libs" != "xno"; then
24637				printf "%s\n" "#define HAVE_NSS 1" >>confdefs.h
24638
24639				printf "%s\n" "#define HAVE_SSL 1" >>confdefs.h
24640
24641
24642				NSS_LIBS="-L$with_nss_libs $nsslibs"
24643
24644				if test "$enable_nss" = "static"; then
24645					msg_nss="Mozilla NSS (static)"
24646				else
24647					msg_nss="Mozilla NSS"
24648				fi
24649
24650				enable_nss="yes"
24651			else
24652				NSS_CFLAGS=""
24653				NSPR_CFLAGS=""
24654				NSPR_LIBS=""
24655				enable_nss="no"
24656			fi
24657		else
24658			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Mozilla nss libraries" >&5
24659printf %s "checking for Mozilla nss libraries... " >&6; }
24660			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24661printf "%s\n" "no" >&6; }
24662		fi
24663
24664		NSS_CFLAGS="$NSPR_CFLAGS $NSS_CFLAGS"
24665		NSS_LIBS="$NSPR_LIBS $NSS_LIBS"
24666	fi
24667
24668
24669
24670fi
24671
24672 if test "x$enable_nss" = "xyes"; then
24673  USE_NSS_TRUE=
24674  USE_NSS_FALSE='#'
24675else
24676  USE_NSS_TRUE='#'
24677  USE_NSS_FALSE=
24678fi
24679
24680
24681if test "x$msg_nss" != "x" -a "x$msg_gnutls" != "x"; then
24682	msg_ssl="$msg_nss and $msg_gnutls"
24683elif test "x$msg_nss" != "x"; then
24684	msg_ssl=$msg_nss
24685elif test "x$msg_gnutls" != "x"; then
24686	msg_ssl=$msg_gnutls
24687elif test "x$looked_for_gnutls" = "xyes" -a "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
24688	as_fn_error $? "
24689Neither GnuTLS or NSS SSL development headers found.
24690Use --disable-nss --disable-gnutls if you do not need SSL support.
24691Novell Groupwise and Google Talk will not work without GnuTLS or NSS. OpenSSL is NOT usable!
24692" "$LINENO" 5
24693elif test "x$looked_for_gnutls" = "xyes" -a "x$force_deps" = "xyes" ; then
24694	as_fn_error $? "
24695GnuTLS SSL development headers not found.
24696Use --disable-gnutls if you do not need SSL support.
24697Novell Groupwise and Google Talk will not work without SSL support.
24698" "$LINENO" 5
24699elif test "x$looked_for_nss" = "xyes" -a "x$force_deps" = "xyes" ; then
24700	as_fn_error $? "
24701NSS SSL development headers not found.
24702Use --disable-nss if you do not need SSL support.
24703Novell Groupwise and Google Talk will not work without SSL support.
24704" "$LINENO" 5
24705fi
24706
24707# Check whether --enable-tcl was given.
24708if test ${enable_tcl+y}
24709then :
24710  enableval=$enable_tcl; enable_tcl="$enableval"
24711else $as_nop
24712  enable_tcl="yes"
24713fi
24714
24715
24716# Check whether --with-tclconfig was given.
24717if test ${with_tclconfig+y}
24718then :
24719  withval=$with_tclconfig;
24720fi
24721
24722
24723if test "$enable_plugins" = no; then
24724	enable_tcl=no
24725fi
24726
24727if test "$enable_tcl" = yes; then
24728	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tclConfig.sh" >&5
24729printf %s "checking for tclConfig.sh... " >&6; }
24730	TCLCONFIG=no
24731	TCLCONFIGDIRS="/usr/lib \
24732			/usr/lib64 \
24733			/usr/lib/tcl8.7 \
24734			/usr/lib/tcl8.6 \
24735			/usr/lib/tcl8.5 \
24736			/usr/lib/tcl8.4 \
24737			/usr/lib/tcl8.3 \
24738			/usr/lib/tcl8.2 \
24739			/usr/lib64/tcl8.5 \
24740			/usr/lib64/tcl8.4 \
24741			/System/Library/Tcl/8.3 \
24742			/usr/local/lib"
24743	for dir in $with_tclconfig $TCLCONFIGDIRS; do
24744		if test -f $dir/tclConfig.sh; then
24745			TCLCONFIG=$dir/tclConfig.sh
24746			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($TCLCONFIG)" >&5
24747printf "%s\n" "yes ($TCLCONFIG)" >&6; }
24748			break
24749		fi
24750	done
24751	if test "$TCLCONFIG" = "no"; then
24752		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24753printf "%s\n" "no" >&6; }
24754		enable_tcl=no
24755		if test "x$force_deps" = "xyes" ; then
24756			as_fn_error $? "
24757Tcl development headers not found.
24758Use --disable-tcl if you do not need Tcl scripting support.
24759" "$LINENO" 5
24760		fi
24761	else
24762		. $TCLCONFIG
24763		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Tcl version compatability" >&5
24764printf %s "checking Tcl version compatability... " >&6; }
24765		if test "$TCL_MAJOR_VERSION" -ne 8 -o "$TCL_MINOR_VERSION" -lt 3; then
24766			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: bad, $TCL_VERSION found but 8.3 or later required" >&5
24767printf "%s\n" "bad, $TCL_VERSION found but 8.3 or later required" >&6; }
24768			enable_tcl=no
24769		else
24770			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok, $TCL_VERSION" >&5
24771printf "%s\n" "ok, $TCL_VERSION" >&6; }
24772			eval "TCL_LIB_SPEC=\"$TCL_LIB_SPEC\""
24773			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tcl linkability" >&5
24774printf %s "checking for Tcl linkability... " >&6; }
24775			oldCPPFLAGS=$CPPFLAGS
24776			CPPFLAGS="$CPPFLAGS $TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
24777			oldLIBS=$LIBS
24778			LIBS="$LIBS $TCL_LIB_SPEC"
24779			cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24780/* end confdefs.h.  */
24781#include <tcl.h>
24782int
24783main (void)
24784{
24785Tcl_Interp *interp=NULL; Tcl_Init(interp)
24786  ;
24787  return 0;
24788}
24789_ACEOF
24790if ac_fn_c_try_link "$LINENO"
24791then :
24792  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24793printf "%s\n" "yes" >&6; };enable_tcl=yes
24794else $as_nop
24795  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24796printf "%s\n" "no" >&6; };enable_tcl=no
24797fi
24798rm -f core conftest.err conftest.$ac_objext conftest.beam \
24799    conftest$ac_exeext conftest.$ac_ext
24800			CPPFLAGS="$oldCPPFLAGS"
24801			LIBS="$oldLIBS"
24802		fi
24803	fi
24804fi
24805
24806if test "$enable_tcl" = yes; then
24807	 if true; then
24808  USE_TCL_TRUE=
24809  USE_TCL_FALSE='#'
24810else
24811  USE_TCL_TRUE='#'
24812  USE_TCL_FALSE=
24813fi
24814
24815	TCL_LIBS=$TCL_LIB_SPEC
24816
24817printf "%s\n" "#define HAVE_TCL 1" >>confdefs.h
24818
24819
24820	TCL_CFLAGS="$TCL_INCLUDE_SPEC -I$TCL_PREFIX/include"
24821	if test "x$GCC" = "xyes"; then
24822		TCL_CFLAGS="$TCL_CFLAGS -fno-strict-aliasing"
24823	fi
24824
24825else
24826	 if false; then
24827  USE_TCL_TRUE=
24828  USE_TCL_FALSE='#'
24829else
24830  USE_TCL_TRUE='#'
24831  USE_TCL_FALSE=
24832fi
24833
24834fi
24835
24836# Check whether --enable-tk was given.
24837if test ${enable_tk+y}
24838then :
24839  enableval=$enable_tk; enable_tk="$enableval"
24840else $as_nop
24841  enable_tk="yes"
24842fi
24843
24844
24845# Check whether --with-tkconfig was given.
24846if test ${with_tkconfig+y}
24847then :
24848  withval=$with_tkconfig;
24849fi
24850
24851
24852if test "$enable_tcl" = yes -a "$enable_tk" = yes; then
24853	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tkConfig.sh" >&5
24854printf %s "checking for tkConfig.sh... " >&6; }
24855	TKCONFIG=no
24856	TKCONFIGDIRS="/usr/lib \
24857			/usr/lib64 \
24858			/usr/lib/tk8.7 \
24859			/usr/lib/tk8.6 \
24860			/usr/lib/tk8.5 \
24861			/usr/lib/tk8.4 \
24862			/usr/lib/tk8.3 \
24863			/usr/lib/tk8.2 \
24864			/usr/local/lib"
24865	for dir in $with_tkconfig $TKCONFIGDIRS; do
24866		if test -f $dir/tkConfig.sh; then
24867			TKCONFIG=$dir/tkConfig.sh
24868			{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($TKCONFIG)" >&5
24869printf "%s\n" "yes ($TKCONFIG)" >&6; }
24870			break
24871		fi
24872	done
24873	if test "$TKCONFIG" = "no"; then
24874		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24875printf "%s\n" "no" >&6; }
24876		enable_tk=no
24877		if test "x$force_deps" = "xyes" ; then
24878			as_fn_error $? "
24879Tk development headers not found.
24880Use --disable-tk if you do not need Tk scripting support.
24881" "$LINENO" 5
24882		fi
24883	else
24884		. $TKCONFIG
24885		eval "TK_LIB_SPEC=\"$TK_LIB_SPEC\""
24886		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Tk linkability" >&5
24887printf %s "checking for Tk linkability... " >&6; }
24888		oldCPPFLAGS=$CPPFLAGS
24889		CPPFLAGS="$CPPFLAGS $TCL_CFLAGS"
24890		oldLIBS=$LIBS
24891		LIBS="$LIBS $TCL_LIB_SPEC $TK_LIB_SPEC"
24892		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24893/* end confdefs.h.  */
24894#include <tk.h>
24895int
24896main (void)
24897{
24898Tcl_Interp *interp=NULL; Tcl_Init(interp); Tk_Init(interp);
24899  ;
24900  return 0;
24901}
24902_ACEOF
24903if ac_fn_c_try_link "$LINENO"
24904then :
24905  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24906printf "%s\n" "yes" >&6; };enable_tk=yes
24907else $as_nop
24908  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24909printf "%s\n" "no" >&6; };enable_tk=no
24910fi
24911rm -f core conftest.err conftest.$ac_objext conftest.beam \
24912    conftest$ac_exeext conftest.$ac_ext
24913		CPPFLAGS="$oldCPPFLAGS"
24914		LIBS="$oldLIBS"
24915	fi
24916else
24917	enable_tk=no
24918fi
24919
24920if test "$enable_tk" = yes; then
24921	 if true; then
24922  USE_TK_TRUE=
24923  USE_TK_FALSE='#'
24924else
24925  USE_TK_TRUE='#'
24926  USE_TK_FALSE=
24927fi
24928
24929
24930printf "%s\n" "#define HAVE_TK 1" >>confdefs.h
24931
24932	TK_LIBS=$TK_LIB_SPEC
24933
24934else
24935	 if false; then
24936  USE_TK_TRUE=
24937  USE_TK_FALSE='#'
24938else
24939  USE_TK_TRUE='#'
24940  USE_TK_FALSE=
24941fi
24942
24943fi
24944
24945if test "$ac_cv_cygwin" = yes ; then
24946	LDADD="$LDADD -static"
24947
24948printf "%s\n" "#define DEBUG 1" >>confdefs.h
24949
24950fi
24951
24952
24953
24954
24955
24956if test "x$enable_plugins" = "xyes" ; then
24957
24958printf "%s\n" "#define PURPLE_PLUGINS 1" >>confdefs.h
24959
24960	 if true; then
24961  PLUGINS_TRUE=
24962  PLUGINS_FALSE='#'
24963else
24964  PLUGINS_TRUE='#'
24965  PLUGINS_FALSE=
24966fi
24967
24968	PLUGINS_DEFINE="#define PURPLE_PLUGINS 1"
24969else
24970	 if false; then
24971  PLUGINS_TRUE=
24972  PLUGINS_FALSE='#'
24973else
24974  PLUGINS_TRUE='#'
24975  PLUGINS_FALSE=
24976fi
24977
24978	PLUGINS_DEFINE="#undef PURPLE_PLUGINS"
24979fi
24980
24981
24982ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
24983if test "x$ac_cv_func_snprintf" = xyes
24984then :
24985  printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
24986
24987fi
24988ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24989if test "x$ac_cv_func_connect" = xyes
24990then :
24991  printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
24992
24993fi
24994
24995
24996# Check whether --enable-cyrus-sasl was given.
24997if test ${enable_cyrus_sasl+y}
24998then :
24999  enableval=$enable_cyrus_sasl; enable_cyrus_sasl=$enableval
25000else $as_nop
25001  enable_cyrus_sasl=yes
25002fi
25003
25004if test "x$enable_cyrus_sasl" = "xyes" ; then
25005	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sasl_client_init in -lsasl2" >&5
25006printf %s "checking for sasl_client_init in -lsasl2... " >&6; }
25007if test ${ac_cv_lib_sasl2_sasl_client_init+y}
25008then :
25009  printf %s "(cached) " >&6
25010else $as_nop
25011  ac_check_lib_save_LIBS=$LIBS
25012LIBS="-lsasl2  $LIBS"
25013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25014/* end confdefs.h.  */
25015
25016/* Override any GCC internal prototype to avoid an error.
25017   Use char because int might match the return type of a GCC
25018   builtin and then its argument prototype would still apply.  */
25019char sasl_client_init ();
25020int
25021main (void)
25022{
25023return sasl_client_init ();
25024  ;
25025  return 0;
25026}
25027_ACEOF
25028if ac_fn_c_try_link "$LINENO"
25029then :
25030  ac_cv_lib_sasl2_sasl_client_init=yes
25031else $as_nop
25032  ac_cv_lib_sasl2_sasl_client_init=no
25033fi
25034rm -f core conftest.err conftest.$ac_objext conftest.beam \
25035    conftest$ac_exeext conftest.$ac_ext
25036LIBS=$ac_check_lib_save_LIBS
25037fi
25038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
25039printf "%s\n" "$ac_cv_lib_sasl2_sasl_client_init" >&6; }
25040if test "x$ac_cv_lib_sasl2_sasl_client_init" = xyes
25041then :
25042
25043			 if true; then
25044  USE_CYRUS_SASL_TRUE=
25045  USE_CYRUS_SASL_FALSE='#'
25046else
25047  USE_CYRUS_SASL_TRUE='#'
25048  USE_CYRUS_SASL_FALSE=
25049fi
25050
25051
25052printf "%s\n" "#define HAVE_CYRUS_SASL 1" >>confdefs.h
25053
25054			SASL_LIBS=-"lsasl2"
25055
25056else $as_nop
25057
25058			 if false; then
25059  USE_CYRUS_SASL_TRUE=
25060  USE_CYRUS_SASL_FALSE='#'
25061else
25062  USE_CYRUS_SASL_TRUE='#'
25063  USE_CYRUS_SASL_FALSE=
25064fi
25065
25066			as_fn_error $? "Cyrus SASL library not found" "$LINENO" 5
25067
25068fi
25069
25070else
25071	 if false; then
25072  USE_CYRUS_SASL_TRUE=
25073  USE_CYRUS_SASL_FALSE='#'
25074else
25075  USE_CYRUS_SASL_TRUE='#'
25076  USE_CYRUS_SASL_FALSE=
25077fi
25078
25079fi
25080
25081
25082printf "%s\n" "#define ZEPHYR_INT32 long" >>confdefs.h
25083
25084
25085
25086
25087if test "$kerberos" != "no" ; then
25088	if test "$kerberos" != "yes" ; then
25089		KRB4_CFLAGS="-I${kerberos}/include"
25090		if test -d "$kerberos/include/kerberosIV" ; then
25091			KRB4_CFLAGS="$KRB4_CFLAGS -I${kerberos}/include/kerberosIV"
25092		fi
25093		KRB4_LDFLAGS="-L${kerberos}/lib"
25094	elif test -d /usr/local/include/kerberosIV ; then
25095		KRB4_CFLAGS="-I/usr/local/include/kerberosIV"
25096	elif test -d /usr/include/kerberosIV ; then
25097		KRB4_CFLAGS="-I/usr/include/kerberosIV"
25098	fi
25099
25100printf "%s\n" "#define ZEPHYR_USES_KERBEROS 1" >>confdefs.h
25101
25102
25103	orig_LDFLAGS="$LDFLAGS"
25104	LDFLAGS="$LDFLAGS $KRB4_LDFLAGS"
25105	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb_rd_req in -lkrb4" >&5
25106printf %s "checking for krb_rd_req in -lkrb4... " >&6; }
25107if test ${ac_cv_lib_krb4_krb_rd_req+y}
25108then :
25109  printf %s "(cached) " >&6
25110else $as_nop
25111  ac_check_lib_save_LIBS=$LIBS
25112LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err $LIBS"
25113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114/* end confdefs.h.  */
25115
25116/* Override any GCC internal prototype to avoid an error.
25117   Use char because int might match the return type of a GCC
25118   builtin and then its argument prototype would still apply.  */
25119char krb_rd_req ();
25120int
25121main (void)
25122{
25123return krb_rd_req ();
25124  ;
25125  return 0;
25126}
25127_ACEOF
25128if ac_fn_c_try_link "$LINENO"
25129then :
25130  ac_cv_lib_krb4_krb_rd_req=yes
25131else $as_nop
25132  ac_cv_lib_krb4_krb_rd_req=no
25133fi
25134rm -f core conftest.err conftest.$ac_objext conftest.beam \
25135    conftest$ac_exeext conftest.$ac_ext
25136LIBS=$ac_check_lib_save_LIBS
25137fi
25138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_rd_req" >&5
25139printf "%s\n" "$ac_cv_lib_krb4_krb_rd_req" >&6; }
25140if test "x$ac_cv_lib_krb4_krb_rd_req" = xyes
25141then :
25142  KRB4_LIBS="-lkrb4 -ldes425 -lkrb5 -lk5crypto -lcom_err"
25143else $as_nop
25144  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for krb_rd_req in -lkrb" >&5
25145printf %s "checking for krb_rd_req in -lkrb... " >&6; }
25146if test ${ac_cv_lib_krb_krb_rd_req+y}
25147then :
25148  printf %s "(cached) " >&6
25149else $as_nop
25150  ac_check_lib_save_LIBS=$LIBS
25151LIBS="-lkrb -ldes $LIBS"
25152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25153/* end confdefs.h.  */
25154
25155/* Override any GCC internal prototype to avoid an error.
25156   Use char because int might match the return type of a GCC
25157   builtin and then its argument prototype would still apply.  */
25158char krb_rd_req ();
25159int
25160main (void)
25161{
25162return krb_rd_req ();
25163  ;
25164  return 0;
25165}
25166_ACEOF
25167if ac_fn_c_try_link "$LINENO"
25168then :
25169  ac_cv_lib_krb_krb_rd_req=yes
25170else $as_nop
25171  ac_cv_lib_krb_krb_rd_req=no
25172fi
25173rm -f core conftest.err conftest.$ac_objext conftest.beam \
25174    conftest$ac_exeext conftest.$ac_ext
25175LIBS=$ac_check_lib_save_LIBS
25176fi
25177{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_rd_req" >&5
25178printf "%s\n" "$ac_cv_lib_krb_krb_rd_req" >&6; }
25179if test "x$ac_cv_lib_krb_krb_rd_req" = xyes
25180then :
25181  KRB4_LIBS="-lkrb -ldes"
25182else $as_nop
25183  as_fn_error $? "Kerberos 4 libraries not found" "$LINENO" 5
25184fi
25185
25186fi
25187
25188	orig_LIBS="$LIBS"
25189	LIBS="$LIBS $KRB4_LIBS"
25190	ac_fn_c_check_func "$LINENO" "krb_set_key" "ac_cv_func_krb_set_key"
25191if test "x$ac_cv_func_krb_set_key" = xyes
25192then :
25193  printf "%s\n" "#define HAVE_KRB_SET_KEY 1" >>confdefs.h
25194
25195fi
25196ac_fn_c_check_func "$LINENO" "krb_rd_req" "ac_cv_func_krb_rd_req"
25197if test "x$ac_cv_func_krb_rd_req" = xyes
25198then :
25199  printf "%s\n" "#define HAVE_KRB_RD_REQ 1" >>confdefs.h
25200
25201fi
25202ac_fn_c_check_func "$LINENO" "krb_get_lrealm" "ac_cv_func_krb_get_lrealm"
25203if test "x$ac_cv_func_krb_get_lrealm" = xyes
25204then :
25205  printf "%s\n" "#define HAVE_KRB_GET_LREALM 1" >>confdefs.h
25206
25207fi
25208
25209	ac_fn_c_check_func "$LINENO" "krb_get_err_text" "ac_cv_func_krb_get_err_text"
25210if test "x$ac_cv_func_krb_get_err_text" = xyes
25211then :
25212  printf "%s\n" "#define HAVE_KRB_GET_ERR_TEXT 1" >>confdefs.h
25213
25214fi
25215ac_fn_c_check_func "$LINENO" "krb_log" "ac_cv_func_krb_log"
25216if test "x$ac_cv_func_krb_log" = xyes
25217then :
25218  printf "%s\n" "#define HAVE_KRB_LOG 1" >>confdefs.h
25219
25220fi
25221
25222	LIBS="$orig_LIBS"
25223	LDFLAGS="$orig_LDFLAGS"
25224fi
25225
25226
25227
25228
25229if test "$zephyr" != "no" ; then
25230	if test "$zephyr" != "yes" ; then
25231		ZEPHYR_CFLAGS="-I${zephyr}/include"
25232		ZEPHYR_LDFLAGS="-L${zephyr}/lib"
25233	elif test -d /usr/athena/include/zephyr ; then
25234		ZEPHYR_CFLAGS="-I/usr/athena/include"
25235	elif test -d /usr/include/zephyr ; then
25236		ZEPHYR_CFLAGS="-I/usr/include"
25237	elif test -d /usr/local/include/zephyr ; then
25238		ZEPHYR_CFLAGS="-I/usr/local/include"
25239	fi
25240
25241printf "%s\n" "#define LIBZEPHYR_EXT 1 " >>confdefs.h
25242
25243	 if test "x$zephyr" != "xno"; then
25244  EXTERNAL_LIBZEPHYR_TRUE=
25245  EXTERNAL_LIBZEPHYR_FALSE='#'
25246else
25247  EXTERNAL_LIBZEPHYR_TRUE='#'
25248  EXTERNAL_LIBZEPHYR_FALSE=
25249fi
25250
25251	orig_LDFLAGS="$LDFLAGS"
25252	LDFLAGS="$LDFLAGS $ZEPHYR_LDFLAGS"
25253	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZInitialize in -lzephyr" >&5
25254printf %s "checking for ZInitialize in -lzephyr... " >&6; }
25255if test ${ac_cv_lib_zephyr_ZInitialize+y}
25256then :
25257  printf %s "(cached) " >&6
25258else $as_nop
25259  ac_check_lib_save_LIBS=$LIBS
25260LIBS="-lzephyr -lzephyr $LIBS"
25261cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25262/* end confdefs.h.  */
25263
25264/* Override any GCC internal prototype to avoid an error.
25265   Use char because int might match the return type of a GCC
25266   builtin and then its argument prototype would still apply.  */
25267char ZInitialize ();
25268int
25269main (void)
25270{
25271return ZInitialize ();
25272  ;
25273  return 0;
25274}
25275_ACEOF
25276if ac_fn_c_try_link "$LINENO"
25277then :
25278  ac_cv_lib_zephyr_ZInitialize=yes
25279else $as_nop
25280  ac_cv_lib_zephyr_ZInitialize=no
25281fi
25282rm -f core conftest.err conftest.$ac_objext conftest.beam \
25283    conftest$ac_exeext conftest.$ac_ext
25284LIBS=$ac_check_lib_save_LIBS
25285fi
25286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zephyr_ZInitialize" >&5
25287printf "%s\n" "$ac_cv_lib_zephyr_ZInitialize" >&6; }
25288if test "x$ac_cv_lib_zephyr_ZInitialize" = xyes
25289then :
25290  ZEPHYR_LIBS="-lzephyr"
25291else $as_nop
25292  as_fn_error $? "Zephyr libraries not found" "$LINENO" 5
25293fi
25294
25295	orig_LIBS="$LIBS"
25296	LIBS="$orig_LIBS"
25297	LDFLAGS="$orig_LDFLAGS"
25298fi
25299
25300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for me pot o' gold" >&5
25301printf %s "checking for me pot o' gold... " >&6; }
25302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25303printf "%s\n" "no" >&6; }
25304ac_fn_c_check_func "$LINENO" "gethostid" "ac_cv_func_gethostid"
25305if test "x$ac_cv_func_gethostid" = xyes
25306then :
25307  printf "%s\n" "#define HAVE_GETHOSTID 1" >>confdefs.h
25308
25309fi
25310ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
25311if test "x$ac_cv_func_lrand48" = xyes
25312then :
25313  printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
25314
25315fi
25316ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
25317if test "x$ac_cv_func_timegm" = xyes
25318then :
25319  printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
25320
25321fi
25322
25323ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
25324if test "x$ac_cv_func_memcpy" = xyes
25325then :
25326  printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h
25327
25328fi
25329ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
25330if test "x$ac_cv_func_memmove" = xyes
25331then :
25332  printf "%s\n" "#define HAVE_MEMMOVE 1" >>confdefs.h
25333
25334fi
25335ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
25336if test "x$ac_cv_func_random" = xyes
25337then :
25338  printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
25339
25340fi
25341ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
25342if test "x$ac_cv_func_strchr" = xyes
25343then :
25344  printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
25345
25346fi
25347ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror"
25348if test "x$ac_cv_func_strerror" = xyes
25349then :
25350  printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h
25351
25352fi
25353ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
25354if test "x$ac_cv_func_vprintf" = xyes
25355then :
25356  printf "%s\n" "#define HAVE_VPRINTF 1" >>confdefs.h
25357
25358fi
25359
25360ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
25361if test "x$ac_cv_header_malloc_h" = xyes
25362then :
25363  printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
25364
25365fi
25366ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
25367if test "x$ac_cv_header_paths_h" = xyes
25368then :
25369  printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
25370
25371fi
25372ac_fn_c_check_header_compile "$LINENO" "sgtty.h" "ac_cv_header_sgtty_h" "$ac_includes_default"
25373if test "x$ac_cv_header_sgtty_h" = xyes
25374then :
25375  printf "%s\n" "#define HAVE_SGTTY_H 1" >>confdefs.h
25376
25377fi
25378ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
25379if test "x$ac_cv_header_stdarg_h" = xyes
25380then :
25381  printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
25382
25383fi
25384ac_fn_c_check_header_compile "$LINENO" "sys/cdefs.h" "ac_cv_header_sys_cdefs_h" "$ac_includes_default"
25385if test "x$ac_cv_header_sys_cdefs_h" = xyes
25386then :
25387  printf "%s\n" "#define HAVE_SYS_CDEFS_H 1" >>confdefs.h
25388
25389fi
25390
25391ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
25392if test "x$ac_cv_header_sys_file_h" = xyes
25393then :
25394  printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
25395
25396fi
25397ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
25398if test "x$ac_cv_header_sys_filio_h" = xyes
25399then :
25400  printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
25401
25402fi
25403ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
25404if test "x$ac_cv_header_sys_ioctl_h" = xyes
25405then :
25406  printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
25407
25408fi
25409ac_fn_c_check_header_compile "$LINENO" "sys/msgbuf.h" "ac_cv_header_sys_msgbuf_h" "$ac_includes_default"
25410if test "x$ac_cv_header_sys_msgbuf_h" = xyes
25411then :
25412  printf "%s\n" "#define HAVE_SYS_MSGBUF_H 1" >>confdefs.h
25413
25414fi
25415
25416ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
25417if test "x$ac_cv_header_sys_select_h" = xyes
25418then :
25419  printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
25420
25421fi
25422ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$ac_includes_default"
25423if test "x$ac_cv_header_sys_uio_h" = xyes
25424then :
25425  printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
25426
25427fi
25428ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
25429if test "x$ac_cv_header_sys_utsname_h" = xyes
25430then :
25431  printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
25432
25433fi
25434ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
25435if test "x$ac_cv_header_sys_wait_h" = xyes
25436then :
25437  printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25438
25439fi
25440
25441ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
25442if test "x$ac_cv_header_termios_h" = xyes
25443then :
25444  printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
25445
25446fi
25447
25448
25449# sys/sysctl.h on OpenBSD 4.2 requires sys/param.h
25450# sys/sysctl.h on FreeBSD requires sys/types.h
25451ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
25452if test "x$ac_cv_header_sys_param_h" = xyes
25453then :
25454  printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
25455
25456fi
25457
25458ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
25459		#include <sys/types.h>
25460		#ifdef HAVE_PARAM_H
25461		# include <sys/param.h>
25462		#endif
25463
25464"
25465if test "x$ac_cv_header_sys_sysctl_h" = xyes
25466then :
25467  printf "%s\n" "#define HAVE_SYS_SYSCTL_H 1" >>confdefs.h
25468
25469fi
25470
25471
25472ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
25473if test "x$ac_cv_header_sys_socket_h" = xyes
25474then :
25475  printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
25476
25477fi
25478
25479ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25480#include <$ac_cv_struct_tm>
25481
25482"
25483if test "x$ac_cv_member_struct_tm_tm_zone" = xyes
25484then :
25485
25486printf "%s\n" "#define HAVE_STRUCT_TM_TM_ZONE 1" >>confdefs.h
25487
25488
25489fi
25490
25491if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25492
25493printf "%s\n" "#define HAVE_TM_ZONE 1" >>confdefs.h
25494
25495else
25496  ac_fn_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25497" "$ac_c_undeclared_builtin_options" "CFLAGS"
25498if test "x$ac_cv_have_decl_tzname" = xyes
25499then :
25500  ac_have_decl=1
25501else $as_nop
25502  ac_have_decl=0
25503fi
25504printf "%s\n" "#define HAVE_DECL_TZNAME $ac_have_decl" >>confdefs.h
25505
25506  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25507printf %s "checking for tzname... " >&6; }
25508if test ${ac_cv_var_tzname+y}
25509then :
25510  printf %s "(cached) " >&6
25511else $as_nop
25512  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25513/* end confdefs.h.  */
25514#include <time.h>
25515#if !HAVE_DECL_TZNAME
25516extern char *tzname[];
25517#endif
25518
25519int
25520main (void)
25521{
25522return tzname[0][0];
25523  ;
25524  return 0;
25525}
25526_ACEOF
25527if ac_fn_c_try_link "$LINENO"
25528then :
25529  ac_cv_var_tzname=yes
25530else $as_nop
25531  ac_cv_var_tzname=no
25532fi
25533rm -f core conftest.err conftest.$ac_objext conftest.beam \
25534    conftest$ac_exeext conftest.$ac_ext
25535fi
25536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25537printf "%s\n" "$ac_cv_var_tzname" >&6; }
25538  if test $ac_cv_var_tzname = yes; then
25539
25540printf "%s\n" "#define HAVE_TZNAME 1" >>confdefs.h
25541
25542  fi
25543fi
25544
25545     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for timezone external" >&5
25546printf %s "checking for timezone external... " >&6; }
25547if test ${mb_cv_var_timezone+y}
25548then :
25549  printf %s "(cached) " >&6
25550else $as_nop
25551    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25552/* end confdefs.h.  */
25553#include <time.h>
25554int
25555main (void)
25556{
25557return (int)timezone;
25558  ;
25559  return 0;
25560}
25561_ACEOF
25562if ac_fn_c_try_link "$LINENO"
25563then :
25564  mb_cv_var_timezone=yes
25565else $as_nop
25566  mb_cv_var_timezone=no
25567fi
25568rm -f core conftest.err conftest.$ac_objext conftest.beam \
25569    conftest$ac_exeext conftest.$ac_ext
25570
25571fi
25572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_timezone" >&5
25573printf "%s\n" "$mb_cv_var_timezone" >&6; }
25574   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for altzone external" >&5
25575printf %s "checking for altzone external... " >&6; }
25576if test ${mb_cv_var_altzone+y}
25577then :
25578  printf %s "(cached) " >&6
25579else $as_nop
25580    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25581/* end confdefs.h.  */
25582#include <time.h>
25583int
25584main (void)
25585{
25586return (int)altzone;
25587  ;
25588  return 0;
25589}
25590_ACEOF
25591if ac_fn_c_try_link "$LINENO"
25592then :
25593  mb_cv_var_altzone=yes
25594else $as_nop
25595  mb_cv_var_altzone=no
25596fi
25597rm -f core conftest.err conftest.$ac_objext conftest.beam \
25598    conftest$ac_exeext conftest.$ac_ext
25599
25600fi
25601{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_altzone" >&5
25602printf "%s\n" "$mb_cv_var_altzone" >&6; }
25603   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for daylight external" >&5
25604printf %s "checking for daylight external... " >&6; }
25605if test ${mb_cv_var_daylight+y}
25606then :
25607  printf %s "(cached) " >&6
25608else $as_nop
25609    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610/* end confdefs.h.  */
25611#include <time.h>
25612int
25613main (void)
25614{
25615return (int)daylight;
25616  ;
25617  return 0;
25618}
25619_ACEOF
25620if ac_fn_c_try_link "$LINENO"
25621then :
25622  mb_cv_var_daylight=yes
25623else $as_nop
25624  mb_cv_var_daylight=no
25625fi
25626rm -f core conftest.err conftest.$ac_objext conftest.beam \
25627    conftest$ac_exeext conftest.$ac_ext
25628
25629fi
25630{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $mb_cv_var_daylight" >&5
25631printf "%s\n" "$mb_cv_var_daylight" >&6; }
25632   if test $mb_cv_var_timezone = yes; then
25633
25634printf "%s\n" "#define HAVE_TIMEZONE 1" >>confdefs.h
25635
25636   fi
25637   if test $mb_cv_var_altzone = yes; then
25638
25639printf "%s\n" "#define HAVE_ALTZONE 1" >>confdefs.h
25640
25641   fi
25642   if test $mb_cv_var_daylight = yes; then
25643
25644printf "%s\n" "#define HAVE_DAYLIGHT 1" >>confdefs.h
25645
25646   fi
25647
25648
25649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
25650printf %s "checking for tm_gmtoff in struct tm... " >&6; }
25651if test ${ac_cv_struct_tm_gmtoff+y}
25652then :
25653  printf %s "(cached) " >&6
25654else $as_nop
25655  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656/* end confdefs.h.  */
25657
25658                #include <time.h>
25659
25660int
25661main (void)
25662{
25663
25664                struct tm tm;
25665                tm.tm_gmtoff = 1;
25666
25667  ;
25668  return 0;
25669}
25670_ACEOF
25671if ac_fn_c_try_compile "$LINENO"
25672then :
25673  ac_cv_struct_tm_gmtoff=yes
25674else $as_nop
25675  ac_cv_struct_tm_gmtoff=no
25676fi
25677rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25678fi
25679{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
25680printf "%s\n" "$ac_cv_struct_tm_gmtoff" >&6; }
25681if test $ac_cv_struct_tm_gmtoff = yes; then
25682
25683printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
25684
25685fi
25686
25687{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether va_lists can be copied by value" >&5
25688printf %s "checking whether va_lists can be copied by value... " >&6; }
25689if test ${ac_cv_va_val_copy+y}
25690then :
25691  printf %s "(cached) " >&6
25692else $as_nop
25693
25694	if test "$cross_compiling" = yes
25695then :
25696  ac_cv_va_val_copy=yes
25697else $as_nop
25698  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699/* end confdefs.h.  */
25700#include <stdarg.h>
25701#include <stdlib.h>
25702	void f (int i, ...) {
25703	va_list args1, args2;
25704	va_start (args1, i);
25705	args2 = args1;
25706	if (va_arg (args2, int) != 42 || va_arg (args1, int) != 42)
25707	  exit (1);
25708	va_end (args1); va_end (args2);
25709	}
25710	int main() {
25711	  f (0, 42);
25712	  return 0;
25713	}
25714_ACEOF
25715if ac_fn_c_try_run "$LINENO"
25716then :
25717  ac_cv_va_val_copy=yes
25718else $as_nop
25719  ac_cv_va_val_copy=no
25720fi
25721rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25722  conftest.$ac_objext conftest.beam conftest.$ac_ext
25723fi
25724
25725
25726fi
25727{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_va_val_copy" >&5
25728printf "%s\n" "$ac_cv_va_val_copy" >&6; }
25729
25730if test "x$ac_cv_va_val_copy" = "xno"; then
25731
25732printf "%s\n" "#define VA_COPY_AS_ARRAY 1" >>confdefs.h
25733
25734fi
25735
25736
25737pkg_failed=no
25738{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
25739printf %s "checking for check >= 0.9.4... " >&6; }
25740
25741if test -n "$CHECK_CFLAGS"; then
25742    pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
25743 elif test -n "$PKG_CONFIG"; then
25744    if test -n "$PKG_CONFIG" && \
25745    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
25746  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
25747  ac_status=$?
25748  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25749  test $ac_status = 0; }; then
25750  pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null`
25751		      test "x$?" != "x0" && pkg_failed=yes
25752else
25753  pkg_failed=yes
25754fi
25755 else
25756    pkg_failed=untried
25757fi
25758if test -n "$CHECK_LIBS"; then
25759    pkg_cv_CHECK_LIBS="$CHECK_LIBS"
25760 elif test -n "$PKG_CONFIG"; then
25761    if test -n "$PKG_CONFIG" && \
25762    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5
25763  ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5
25764  ac_status=$?
25765  printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25766  test $ac_status = 0; }; then
25767  pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null`
25768		      test "x$?" != "x0" && pkg_failed=yes
25769else
25770  pkg_failed=yes
25771fi
25772 else
25773    pkg_failed=untried
25774fi
25775
25776
25777
25778if test $pkg_failed = yes; then
25779        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25780printf "%s\n" "no" >&6; }
25781
25782if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25783        _pkg_short_errors_supported=yes
25784else
25785        _pkg_short_errors_supported=no
25786fi
25787        if test $_pkg_short_errors_supported = yes; then
25788	        CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
25789        else
25790	        CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1`
25791        fi
25792	# Put the nasty error message in config.log where it belongs
25793	echo "$CHECK_PKG_ERRORS" >&5
25794
25795	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, testing is disabled" >&5
25796printf "%s\n" "no, testing is disabled" >&6; }
25797elif test $pkg_failed = untried; then
25798        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25799printf "%s\n" "no" >&6; }
25800	{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, testing is disabled" >&5
25801printf "%s\n" "no, testing is disabled" >&6; }
25802else
25803	CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
25804	CHECK_LIBS=$pkg_cv_CHECK_LIBS
25805        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25806printf "%s\n" "yes" >&6; }
25807
25808fi
25809 if test "x$CHECK_LIBS" != "x"; then
25810  HAVE_CHECK_TRUE=
25811  HAVE_CHECK_FALSE='#'
25812else
25813  HAVE_CHECK_TRUE='#'
25814  HAVE_CHECK_FALSE=
25815fi
25816
25817
25818
25819
25820# Check whether --enable-pixmaps-install was given.
25821if test ${enable_pixmaps_install+y}
25822then :
25823  enableval=$enable_pixmaps_install; enable_pixmaps="$enableval"
25824else $as_nop
25825  enable_pixmaps=yes
25826fi
25827
25828
25829 if test "x$enable_pixmaps" = "xyes"; then
25830  INSTALL_PIXMAPS_TRUE=
25831  INSTALL_PIXMAPS_FALSE='#'
25832else
25833  INSTALL_PIXMAPS_TRUE='#'
25834  INSTALL_PIXMAPS_FALSE=
25835fi
25836
25837
25838# Check whether --enable-trayicon-compat was given.
25839if test ${enable_trayicon_compat+y}
25840then :
25841  enableval=$enable_trayicon_compat; enable_traycompat="$enableval"
25842else $as_nop
25843  enable_traycompat=no
25844fi
25845
25846
25847 if test "x$enable_traycompat" = "xyes"; then
25848  ENABLE_TRAYCOMPAT_TRUE=
25849  ENABLE_TRAYCOMPAT_FALSE='#'
25850else
25851  ENABLE_TRAYCOMPAT_TRUE='#'
25852  ENABLE_TRAYCOMPAT_FALSE=
25853fi
25854
25855
25856# Check whether --enable-doxygen was given.
25857if test ${enable_doxygen+y}
25858then :
25859  enableval=$enable_doxygen; enable_doxygen="$enableval"
25860else $as_nop
25861  enable_doxygen="yes"
25862fi
25863
25864# Check whether --enable-dot was given.
25865if test ${enable_dot+y}
25866then :
25867  enableval=$enable_dot; enable_dot="$enableval"
25868else $as_nop
25869  enable_dot="yes"
25870fi
25871
25872# Check whether --enable-devhelp was given.
25873if test ${enable_devhelp+y}
25874then :
25875  enableval=$enable_devhelp; enable_devhelp="$enableval"
25876else $as_nop
25877  enable_devhelp="yes"
25878fi
25879
25880
25881if test "x$enable_doxygen" = xyes; then
25882	# Extract the first word of "doxygen", so it can be a program name with args.
25883set dummy doxygen; ac_word=$2
25884{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25885printf %s "checking for $ac_word... " >&6; }
25886if test ${ac_cv_prog_DOXYGEN+y}
25887then :
25888  printf %s "(cached) " >&6
25889else $as_nop
25890  if test -n "$DOXYGEN"; then
25891  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
25892else
25893as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25894for as_dir in $PATH
25895do
25896  IFS=$as_save_IFS
25897  case $as_dir in #(((
25898    '') as_dir=./ ;;
25899    */) ;;
25900    *) as_dir=$as_dir/ ;;
25901  esac
25902    for ac_exec_ext in '' $ac_executable_extensions; do
25903  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25904    ac_cv_prog_DOXYGEN="true"
25905    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25906    break 2
25907  fi
25908done
25909  done
25910IFS=$as_save_IFS
25911
25912  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="false"
25913fi
25914fi
25915DOXYGEN=$ac_cv_prog_DOXYGEN
25916if test -n "$DOXYGEN"; then
25917  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
25918printf "%s\n" "$DOXYGEN" >&6; }
25919else
25920  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25921printf "%s\n" "no" >&6; }
25922fi
25923
25924
25925	if test $DOXYGEN = false; then
25926		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** Doxygen not found, docs will not be available" >&5
25927printf "%s\n" "$as_me: WARNING: *** Doxygen not found, docs will not be available" >&2;}
25928		enable_doxygen="no"
25929	else
25930
25931printf "%s\n" "#define HAVE_DOXYGEN 1" >>confdefs.h
25932
25933
25934		if test "x$enable_dot" = "xyes"; then
25935			# Extract the first word of "dot", so it can be a program name with args.
25936set dummy dot; ac_word=$2
25937{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25938printf %s "checking for $ac_word... " >&6; }
25939if test ${ac_cv_prog_DOT+y}
25940then :
25941  printf %s "(cached) " >&6
25942else $as_nop
25943  if test -n "$DOT"; then
25944  ac_cv_prog_DOT="$DOT" # Let the user override the test.
25945else
25946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25947for as_dir in $PATH
25948do
25949  IFS=$as_save_IFS
25950  case $as_dir in #(((
25951    '') as_dir=./ ;;
25952    */) ;;
25953    *) as_dir=$as_dir/ ;;
25954  esac
25955    for ac_exec_ext in '' $ac_executable_extensions; do
25956  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25957    ac_cv_prog_DOT="true"
25958    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25959    break 2
25960  fi
25961done
25962  done
25963IFS=$as_save_IFS
25964
25965  test -z "$ac_cv_prog_DOT" && ac_cv_prog_DOT="false"
25966fi
25967fi
25968DOT=$ac_cv_prog_DOT
25969if test -n "$DOT"; then
25970  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
25971printf "%s\n" "$DOT" >&6; }
25972else
25973  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25974printf "%s\n" "no" >&6; }
25975fi
25976
25977
25978
25979			if test $DOT = false; then
25980				enable_dot="no";
25981				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** GraphViz dot not found, docs will not have graphs" >&5
25982printf "%s\n" "$as_me: WARNING: *** GraphViz dot not found, docs will not have graphs" >&2;}
25983			else
25984
25985printf "%s\n" "#define HAVE_DOT 1" >>confdefs.h
25986
25987			fi
25988		fi
25989
25990		if test "x$enable_devhelp" = "xyes"; then
25991			# Extract the first word of "xsltproc", so it can be a program name with args.
25992set dummy xsltproc; ac_word=$2
25993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25994printf %s "checking for $ac_word... " >&6; }
25995if test ${ac_cv_prog_XSLTPROC+y}
25996then :
25997  printf %s "(cached) " >&6
25998else $as_nop
25999  if test -n "$XSLTPROC"; then
26000  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
26001else
26002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26003for as_dir in $PATH
26004do
26005  IFS=$as_save_IFS
26006  case $as_dir in #(((
26007    '') as_dir=./ ;;
26008    */) ;;
26009    *) as_dir=$as_dir/ ;;
26010  esac
26011    for ac_exec_ext in '' $ac_executable_extensions; do
26012  if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26013    ac_cv_prog_XSLTPROC="true"
26014    printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26015    break 2
26016  fi
26017done
26018  done
26019IFS=$as_save_IFS
26020
26021  test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="false"
26022fi
26023fi
26024XSLTPROC=$ac_cv_prog_XSLTPROC
26025if test -n "$XSLTPROC"; then
26026  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
26027printf "%s\n" "$XSLTPROC" >&6; }
26028else
26029  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26030printf "%s\n" "no" >&6; }
26031fi
26032
26033
26034
26035			if test $XSLTPROC = false; then
26036				enable_devhelp="no";
26037				{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: *** xsltproc not found; devhelp index will not be created" >&5
26038printf "%s\n" "$as_me: WARNING: *** xsltproc not found; devhelp index will not be created" >&2;}
26039			else
26040
26041printf "%s\n" "#define HAVE_XSLTPROC 1" >>confdefs.h
26042
26043			fi
26044		fi
26045	fi
26046else
26047	enable_dot="no"
26048	enable_devhelp="no"
26049fi
26050
26051
26052
26053
26054 if test "x$enable_doxygen" = "xyes"; then
26055  HAVE_DOXYGEN_TRUE=
26056  HAVE_DOXYGEN_FALSE='#'
26057else
26058  HAVE_DOXYGEN_TRUE='#'
26059  HAVE_DOXYGEN_FALSE=
26060fi
26061
26062 if test "x$enable_devhelp" = "xyes"; then
26063  HAVE_XSLTPROC_TRUE=
26064  HAVE_XSLTPROC_FALSE='#'
26065else
26066  HAVE_XSLTPROC_TRUE='#'
26067  HAVE_XSLTPROC_FALSE=
26068fi
26069
26070
26071
26072# Check whether --enable-fuzzing was given.
26073if test ${enable_fuzzing+y}
26074then :
26075  enableval=$enable_fuzzing; case "${enableval}" in yes) fuzzing=true ;; no)  fuzzing=false ;; *) as_fn_error $? "bad value ${enableval} for --enable-fuzzing" "$LINENO" 5 ;; esac
26076else $as_nop
26077  fuzzing=false
26078fi
26079
26080 if test x$fuzzing = xtrue; then
26081  FUZZ_TRUE=
26082  FUZZ_FALSE='#'
26083else
26084  FUZZ_TRUE='#'
26085  FUZZ_FALSE=
26086fi
26087
26088
26089if test "x$enable_fuzzing" = "xyes" ; then
26090	if ! test "x$CC" = "xclang" ; then
26091		as_fn_error $? "\"You need to set CC=clang to use --enable-fuzzing, used $CC\"" "$LINENO" 5
26092	fi
26093fi
26094
26095
26096# Check whether --enable-debug was given.
26097if test ${enable_debug+y}
26098then :
26099  enableval=$enable_debug;
26100else $as_nop
26101  enable_debug=no
26102fi
26103
26104
26105if test "x$enable_debug" = "xyes" ; then
26106
26107printf "%s\n" "#define DEBUG 1" >>confdefs.h
26108
26109fi
26110
26111 if true; then
26112  PURPLE_AVAILABLE_TRUE=
26113  PURPLE_AVAILABLE_FALSE='#'
26114else
26115  PURPLE_AVAILABLE_TRUE='#'
26116  PURPLE_AVAILABLE_FALSE=
26117fi
26118
26119
26120ac_config_files="$ac_config_files Makefile Doxyfile doc/Makefile doc/pidgin.1 doc/finch.1 m4macros/Makefile pidgin.apspec pidgin/Makefile pidgin/data/pidgin.desktop.in pidgin/data/pidgin.pc pidgin/data/pidgin-uninstalled.pc pidgin/data/pidgin-2.pc pidgin/data/pidgin-2-uninstalled.pc pidgin/pixmaps/Makefile pidgin/pixmaps/emotes/default/24/Makefile pidgin/pixmaps/emotes/none/Makefile pidgin/pixmaps/emotes/small/16/Makefile pidgin/plugins/Makefile pidgin/plugins/cap/Makefile pidgin/plugins/disco/Makefile pidgin/plugins/gestures/Makefile pidgin/plugins/gevolution/Makefile pidgin/plugins/musicmessaging/Makefile pidgin/plugins/perl/Makefile pidgin/plugins/perl/common/Makefile.PL pidgin/plugins/ticker/Makefile libpurple/data/gconf/Makefile libpurple/data/purple.pc libpurple/data/purple-uninstalled.pc libpurple/data/purple-2.pc libpurple/data/purple-2-uninstalled.pc libpurple/ciphers/Makefile libpurple/example/Makefile libpurple/fuzzers/Makefile libpurple/plugins/Makefile libpurple/plugins/mono/Makefile libpurple/plugins/mono/api/Makefile libpurple/plugins/mono/loader/Makefile libpurple/plugins/perl/Makefile libpurple/plugins/perl/common/Makefile.PL libpurple/plugins/ssl/Makefile libpurple/plugins/tcl/Makefile libpurple/Makefile libpurple/protocols/Makefile libpurple/protocols/bonjour/Makefile libpurple/protocols/gg/Makefile libpurple/protocols/irc/Makefile libpurple/protocols/jabber/Makefile libpurple/protocols/novell/Makefile libpurple/protocols/null/Makefile libpurple/protocols/sametime/Makefile libpurple/protocols/silc/Makefile libpurple/protocols/silc10/Makefile libpurple/protocols/simple/Makefile libpurple/protocols/zephyr/Makefile libpurple/tests/Makefile libpurple/purple.h libpurple/version.h share/sounds/Makefile share/ca-certs/Makefile finch/finch.pc finch/Makefile finch/plugins/Makefile po/Makefile.in pidgin.spec"
26121
26122cat >confcache <<\_ACEOF
26123# This file is a shell script that caches the results of configure
26124# tests run on this system so they can be shared between configure
26125# scripts and configure runs, see configure's option --config-cache.
26126# It is not useful on other systems.  If it contains results you don't
26127# want to keep, you may remove or edit it.
26128#
26129# config.status only pays attention to the cache file if you give it
26130# the --recheck option to rerun configure.
26131#
26132# `ac_cv_env_foo' variables (set or unset) will be overridden when
26133# loading this file, other *unset* `ac_cv_foo' will be assigned the
26134# following values.
26135
26136_ACEOF
26137
26138# The following way of writing the cache mishandles newlines in values,
26139# but we know of no workaround that is simple, portable, and efficient.
26140# So, we kill variables containing newlines.
26141# Ultrix sh set writes to stderr and can't be redirected directly,
26142# and sets the high bit in the cache file unless we assign to the vars.
26143(
26144  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26145    eval ac_val=\$$ac_var
26146    case $ac_val in #(
26147    *${as_nl}*)
26148      case $ac_var in #(
26149      *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26150printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26151      esac
26152      case $ac_var in #(
26153      _ | IFS | as_nl) ;; #(
26154      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26155      *) { eval $ac_var=; unset $ac_var;} ;;
26156      esac ;;
26157    esac
26158  done
26159
26160  (set) 2>&1 |
26161    case $as_nl`(ac_space=' '; set) 2>&1` in #(
26162    *${as_nl}ac_space=\ *)
26163      # `set' does not quote correctly, so add quotes: double-quote
26164      # substitution turns \\\\ into \\, and sed turns \\ into \.
26165      sed -n \
26166	"s/'/'\\\\''/g;
26167	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26168      ;; #(
26169    *)
26170      # `set' quotes correctly as required by POSIX, so do not add quotes.
26171      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26172      ;;
26173    esac |
26174    sort
26175) |
26176  sed '
26177     /^ac_cv_env_/b end
26178     t clear
26179     :clear
26180     s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
26181     t end
26182     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26183     :end' >>confcache
26184if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26185  if test -w "$cache_file"; then
26186    if test "x$cache_file" != "x/dev/null"; then
26187      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26188printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
26189      if test ! -f "$cache_file" || test -h "$cache_file"; then
26190	cat confcache >"$cache_file"
26191      else
26192        case $cache_file in #(
26193        */* | ?:*)
26194	  mv -f confcache "$cache_file"$$ &&
26195	  mv -f "$cache_file"$$ "$cache_file" ;; #(
26196        *)
26197	  mv -f confcache "$cache_file" ;;
26198	esac
26199      fi
26200    fi
26201  else
26202    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26203printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
26204  fi
26205fi
26206rm -f confcache
26207
26208test "x$prefix" = xNONE && prefix=$ac_default_prefix
26209# Let make expand exec_prefix.
26210test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26211
26212DEFS=-DHAVE_CONFIG_H
26213
26214ac_libobjs=
26215ac_ltlibobjs=
26216U=
26217for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26218  # 1. Remove the extension, and $U if already installed.
26219  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26220  ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
26221  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
26222  #    will be set to the directory where LIBOBJS objects are built.
26223  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26224  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26225done
26226LIBOBJS=$ac_libobjs
26227
26228LTLIBOBJS=$ac_ltlibobjs
26229
26230
26231{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
26232printf %s "checking that generated files are newer than configure... " >&6; }
26233   if test -n "$am_sleep_pid"; then
26234     # Hide warnings about reused PIDs.
26235     wait $am_sleep_pid 2>/dev/null
26236   fi
26237   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
26238printf "%s\n" "done" >&6; }
26239 if test -n "$EXEEXT"; then
26240  am__EXEEXT_TRUE=
26241  am__EXEEXT_FALSE='#'
26242else
26243  am__EXEEXT_TRUE='#'
26244  am__EXEEXT_FALSE=
26245fi
26246
26247if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26248  as_fn_error $? "conditional \"AMDEP\" was never defined.
26249Usually this means the macro was only invoked conditionally." "$LINENO" 5
26250fi
26251if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26252  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
26253Usually this means the macro was only invoked conditionally." "$LINENO" 5
26254fi
26255
26256
26257  ac_config_commands="$ac_config_commands po/stamp-it"
26258
26259
26260if test -z "${INSTALL_I18N_TRUE}" && test -z "${INSTALL_I18N_FALSE}"; then
26261  as_fn_error $? "conditional \"INSTALL_I18N\" was never defined.
26262Usually this means the macro was only invoked conditionally." "$LINENO" 5
26263fi
26264if test -z "${ENABLE_GTK_TRUE}" && test -z "${ENABLE_GTK_FALSE}"; then
26265  as_fn_error $? "conditional \"ENABLE_GTK\" was never defined.
26266Usually this means the macro was only invoked conditionally." "$LINENO" 5
26267fi
26268if test -z "${BUILD_GEVOLUTION_TRUE}" && test -z "${BUILD_GEVOLUTION_FALSE}"; then
26269  as_fn_error $? "conditional \"BUILD_GEVOLUTION\" was never defined.
26270Usually this means the macro was only invoked conditionally." "$LINENO" 5
26271fi
26272if test -z "${ENABLE_CAP_TRUE}" && test -z "${ENABLE_CAP_FALSE}"; then
26273  as_fn_error $? "conditional \"ENABLE_CAP\" was never defined.
26274Usually this means the macro was only invoked conditionally." "$LINENO" 5
26275fi
26276if test -z "${ENABLE_GESTURES_TRUE}" && test -z "${ENABLE_GESTURES_FALSE}"; then
26277  as_fn_error $? "conditional \"ENABLE_GESTURES\" was never defined.
26278Usually this means the macro was only invoked conditionally." "$LINENO" 5
26279fi
26280if test -z "${ENABLE_GNT_TRUE}" && test -z "${ENABLE_GNT_FALSE}"; then
26281  as_fn_error $? "conditional \"ENABLE_GNT\" was never defined.
26282Usually this means the macro was only invoked conditionally." "$LINENO" 5
26283fi
26284if test -z "${USE_GCONFTOOL_TRUE}" && test -z "${USE_GCONFTOOL_FALSE}"; then
26285  as_fn_error $? "conditional \"USE_GCONFTOOL\" was never defined.
26286Usually this means the macro was only invoked conditionally." "$LINENO" 5
26287fi
26288if test -z "${GCONF_SCHEMAS_INSTALL_TRUE}" && test -z "${GCONF_SCHEMAS_INSTALL_FALSE}"; then
26289  as_fn_error $? "conditional \"GCONF_SCHEMAS_INSTALL\" was never defined.
26290Usually this means the macro was only invoked conditionally." "$LINENO" 5
26291fi
26292if test -z "${USE_VV_TRUE}" && test -z "${USE_VV_FALSE}"; then
26293  as_fn_error $? "conditional \"USE_VV\" was never defined.
26294Usually this means the macro was only invoked conditionally." "$LINENO" 5
26295fi
26296if test -z "${HAVE_LIBGADU_TRUE}" && test -z "${HAVE_LIBGADU_FALSE}"; then
26297  as_fn_error $? "conditional \"HAVE_LIBGADU\" was never defined.
26298Usually this means the macro was only invoked conditionally." "$LINENO" 5
26299fi
26300if test -z "${DISTRIB_TRUE}" && test -z "${DISTRIB_FALSE}"; then
26301  as_fn_error $? "conditional \"DISTRIB\" was never defined.
26302Usually this means the macro was only invoked conditionally." "$LINENO" 5
26303fi
26304if test -z "${STATIC_BONJOUR_TRUE}" && test -z "${STATIC_BONJOUR_FALSE}"; then
26305  as_fn_error $? "conditional \"STATIC_BONJOUR\" was never defined.
26306Usually this means the macro was only invoked conditionally." "$LINENO" 5
26307fi
26308if test -z "${STATIC_GG_TRUE}" && test -z "${STATIC_GG_FALSE}"; then
26309  as_fn_error $? "conditional \"STATIC_GG\" was never defined.
26310Usually this means the macro was only invoked conditionally." "$LINENO" 5
26311fi
26312if test -z "${STATIC_IRC_TRUE}" && test -z "${STATIC_IRC_FALSE}"; then
26313  as_fn_error $? "conditional \"STATIC_IRC\" was never defined.
26314Usually this means the macro was only invoked conditionally." "$LINENO" 5
26315fi
26316if test -z "${STATIC_JABBER_TRUE}" && test -z "${STATIC_JABBER_FALSE}"; then
26317  as_fn_error $? "conditional \"STATIC_JABBER\" was never defined.
26318Usually this means the macro was only invoked conditionally." "$LINENO" 5
26319fi
26320if test -z "${STATIC_NOVELL_TRUE}" && test -z "${STATIC_NOVELL_FALSE}"; then
26321  as_fn_error $? "conditional \"STATIC_NOVELL\" was never defined.
26322Usually this means the macro was only invoked conditionally." "$LINENO" 5
26323fi
26324if test -z "${STATIC_SAMETIME_TRUE}" && test -z "${STATIC_SAMETIME_FALSE}"; then
26325  as_fn_error $? "conditional \"STATIC_SAMETIME\" was never defined.
26326Usually this means the macro was only invoked conditionally." "$LINENO" 5
26327fi
26328if test -z "${STATIC_SILC_TRUE}" && test -z "${STATIC_SILC_FALSE}"; then
26329  as_fn_error $? "conditional \"STATIC_SILC\" was never defined.
26330Usually this means the macro was only invoked conditionally." "$LINENO" 5
26331fi
26332if test -z "${STATIC_SIMPLE_TRUE}" && test -z "${STATIC_SIMPLE_FALSE}"; then
26333  as_fn_error $? "conditional \"STATIC_SIMPLE\" was never defined.
26334Usually this means the macro was only invoked conditionally." "$LINENO" 5
26335fi
26336if test -z "${STATIC_ZEPHYR_TRUE}" && test -z "${STATIC_ZEPHYR_FALSE}"; then
26337  as_fn_error $? "conditional \"STATIC_ZEPHYR\" was never defined.
26338Usually this means the macro was only invoked conditionally." "$LINENO" 5
26339fi
26340if test -z "${EXTERNAL_LIBZEPHYR_TRUE}" && test -z "${EXTERNAL_LIBZEPHYR_FALSE}"; then
26341  as_fn_error $? "conditional \"EXTERNAL_LIBZEPHYR\" was never defined.
26342Usually this means the macro was only invoked conditionally." "$LINENO" 5
26343fi
26344if test -z "${ENABLE_UNITY_TRUE}" && test -z "${ENABLE_UNITY_FALSE}"; then
26345  as_fn_error $? "conditional \"ENABLE_UNITY\" was never defined.
26346Usually this means the macro was only invoked conditionally." "$LINENO" 5
26347fi
26348if test -z "${ENABLE_DBUS_TRUE}" && test -z "${ENABLE_DBUS_FALSE}"; then
26349  as_fn_error $? "conditional \"ENABLE_DBUS\" was never defined.
26350Usually this means the macro was only invoked conditionally." "$LINENO" 5
26351fi
26352if test -z "${USE_MONO_TRUE}" && test -z "${USE_MONO_FALSE}"; then
26353  as_fn_error $? "conditional \"USE_MONO\" was never defined.
26354Usually this means the macro was only invoked conditionally." "$LINENO" 5
26355fi
26356if test -z "${USE_PERL_TRUE}" && test -z "${USE_PERL_FALSE}"; then
26357  as_fn_error $? "conditional \"USE_PERL\" was never defined.
26358Usually this means the macro was only invoked conditionally." "$LINENO" 5
26359fi
26360if test -z "${USE_PERL_TRUE}" && test -z "${USE_PERL_FALSE}"; then
26361  as_fn_error $? "conditional \"USE_PERL\" was never defined.
26362Usually this means the macro was only invoked conditionally." "$LINENO" 5
26363fi
26364if test -z "${USE_PERL_TRUE}" && test -z "${USE_PERL_FALSE}"; then
26365  as_fn_error $? "conditional \"USE_PERL\" was never defined.
26366Usually this means the macro was only invoked conditionally." "$LINENO" 5
26367fi
26368if test -z "${INSTALL_SSL_CERTIFICATES_TRUE}" && test -z "${INSTALL_SSL_CERTIFICATES_FALSE}"; then
26369  as_fn_error $? "conditional \"INSTALL_SSL_CERTIFICATES\" was never defined.
26370Usually this means the macro was only invoked conditionally." "$LINENO" 5
26371fi
26372if test -z "${USE_GNUTLS_TRUE}" && test -z "${USE_GNUTLS_FALSE}"; then
26373  as_fn_error $? "conditional \"USE_GNUTLS\" was never defined.
26374Usually this means the macro was only invoked conditionally." "$LINENO" 5
26375fi
26376if test -z "${USE_NSS_TRUE}" && test -z "${USE_NSS_FALSE}"; then
26377  as_fn_error $? "conditional \"USE_NSS\" was never defined.
26378Usually this means the macro was only invoked conditionally." "$LINENO" 5
26379fi
26380if test -z "${USE_TCL_TRUE}" && test -z "${USE_TCL_FALSE}"; then
26381  as_fn_error $? "conditional \"USE_TCL\" was never defined.
26382Usually this means the macro was only invoked conditionally." "$LINENO" 5
26383fi
26384if test -z "${USE_TCL_TRUE}" && test -z "${USE_TCL_FALSE}"; then
26385  as_fn_error $? "conditional \"USE_TCL\" was never defined.
26386Usually this means the macro was only invoked conditionally." "$LINENO" 5
26387fi
26388if test -z "${USE_TK_TRUE}" && test -z "${USE_TK_FALSE}"; then
26389  as_fn_error $? "conditional \"USE_TK\" was never defined.
26390Usually this means the macro was only invoked conditionally." "$LINENO" 5
26391fi
26392if test -z "${USE_TK_TRUE}" && test -z "${USE_TK_FALSE}"; then
26393  as_fn_error $? "conditional \"USE_TK\" was never defined.
26394Usually this means the macro was only invoked conditionally." "$LINENO" 5
26395fi
26396if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
26397  as_fn_error $? "conditional \"PLUGINS\" was never defined.
26398Usually this means the macro was only invoked conditionally." "$LINENO" 5
26399fi
26400if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then
26401  as_fn_error $? "conditional \"PLUGINS\" was never defined.
26402Usually this means the macro was only invoked conditionally." "$LINENO" 5
26403fi
26404if test -z "${USE_CYRUS_SASL_TRUE}" && test -z "${USE_CYRUS_SASL_FALSE}"; then
26405  as_fn_error $? "conditional \"USE_CYRUS_SASL\" was never defined.
26406Usually this means the macro was only invoked conditionally." "$LINENO" 5
26407fi
26408if test -z "${USE_CYRUS_SASL_TRUE}" && test -z "${USE_CYRUS_SASL_FALSE}"; then
26409  as_fn_error $? "conditional \"USE_CYRUS_SASL\" was never defined.
26410Usually this means the macro was only invoked conditionally." "$LINENO" 5
26411fi
26412if test -z "${USE_CYRUS_SASL_TRUE}" && test -z "${USE_CYRUS_SASL_FALSE}"; then
26413  as_fn_error $? "conditional \"USE_CYRUS_SASL\" was never defined.
26414Usually this means the macro was only invoked conditionally." "$LINENO" 5
26415fi
26416if test -z "${EXTERNAL_LIBZEPHYR_TRUE}" && test -z "${EXTERNAL_LIBZEPHYR_FALSE}"; then
26417  as_fn_error $? "conditional \"EXTERNAL_LIBZEPHYR\" was never defined.
26418Usually this means the macro was only invoked conditionally." "$LINENO" 5
26419fi
26420if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
26421  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
26422Usually this means the macro was only invoked conditionally." "$LINENO" 5
26423fi
26424if test -z "${INSTALL_PIXMAPS_TRUE}" && test -z "${INSTALL_PIXMAPS_FALSE}"; then
26425  as_fn_error $? "conditional \"INSTALL_PIXMAPS\" was never defined.
26426Usually this means the macro was only invoked conditionally." "$LINENO" 5
26427fi
26428if test -z "${ENABLE_TRAYCOMPAT_TRUE}" && test -z "${ENABLE_TRAYCOMPAT_FALSE}"; then
26429  as_fn_error $? "conditional \"ENABLE_TRAYCOMPAT\" was never defined.
26430Usually this means the macro was only invoked conditionally." "$LINENO" 5
26431fi
26432if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
26433  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
26434Usually this means the macro was only invoked conditionally." "$LINENO" 5
26435fi
26436if test -z "${HAVE_XSLTPROC_TRUE}" && test -z "${HAVE_XSLTPROC_FALSE}"; then
26437  as_fn_error $? "conditional \"HAVE_XSLTPROC\" was never defined.
26438Usually this means the macro was only invoked conditionally." "$LINENO" 5
26439fi
26440if test -z "${FUZZ_TRUE}" && test -z "${FUZZ_FALSE}"; then
26441  as_fn_error $? "conditional \"FUZZ\" was never defined.
26442Usually this means the macro was only invoked conditionally." "$LINENO" 5
26443fi
26444if test -z "${PURPLE_AVAILABLE_TRUE}" && test -z "${PURPLE_AVAILABLE_FALSE}"; then
26445  as_fn_error $? "conditional \"PURPLE_AVAILABLE\" was never defined.
26446Usually this means the macro was only invoked conditionally." "$LINENO" 5
26447fi
26448
26449: "${CONFIG_STATUS=./config.status}"
26450ac_write_fail=0
26451ac_clean_files_save=$ac_clean_files
26452ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26453{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26454printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
26455as_write_fail=0
26456cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26457#! $SHELL
26458# Generated by $as_me.
26459# Run this file to recreate the current configuration.
26460# Compiler output produced by configure, useful for debugging
26461# configure, is in config.log if it exists.
26462
26463debug=false
26464ac_cs_recheck=false
26465ac_cs_silent=false
26466
26467SHELL=\${CONFIG_SHELL-$SHELL}
26468export SHELL
26469_ASEOF
26470cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26471## -------------------- ##
26472## M4sh Initialization. ##
26473## -------------------- ##
26474
26475# Be more Bourne compatible
26476DUALCASE=1; export DUALCASE # for MKS sh
26477as_nop=:
26478if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
26479then :
26480  emulate sh
26481  NULLCMD=:
26482  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26483  # is contrary to our usage.  Disable this feature.
26484  alias -g '${1+"$@"}'='"$@"'
26485  setopt NO_GLOB_SUBST
26486else $as_nop
26487  case `(set -o) 2>/dev/null` in #(
26488  *posix*) :
26489    set -o posix ;; #(
26490  *) :
26491     ;;
26492esac
26493fi
26494
26495
26496
26497# Reset variables that may have inherited troublesome values from
26498# the environment.
26499
26500# IFS needs to be set, to space, tab, and newline, in precisely that order.
26501# (If _AS_PATH_WALK were called with IFS unset, it would have the
26502# side effect of setting IFS to empty, thus disabling word splitting.)
26503# Quoting is to prevent editors from complaining about space-tab.
26504as_nl='
26505'
26506export as_nl
26507IFS=" ""	$as_nl"
26508
26509PS1='$ '
26510PS2='> '
26511PS4='+ '
26512
26513# Ensure predictable behavior from utilities with locale-dependent output.
26514LC_ALL=C
26515export LC_ALL
26516LANGUAGE=C
26517export LANGUAGE
26518
26519# We cannot yet rely on "unset" to work, but we need these variables
26520# to be unset--not just set to an empty or harmless value--now, to
26521# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
26522# also avoids known problems related to "unset" and subshell syntax
26523# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
26524for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
26525do eval test \${$as_var+y} \
26526  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26527done
26528
26529# Ensure that fds 0, 1, and 2 are open.
26530if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
26531if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
26532if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
26533
26534# The user is always right.
26535if ${PATH_SEPARATOR+false} :; then
26536  PATH_SEPARATOR=:
26537  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26538    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26539      PATH_SEPARATOR=';'
26540  }
26541fi
26542
26543
26544# Find who we are.  Look in the path if we contain no directory separator.
26545as_myself=
26546case $0 in #((
26547  *[\\/]* ) as_myself=$0 ;;
26548  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26549for as_dir in $PATH
26550do
26551  IFS=$as_save_IFS
26552  case $as_dir in #(((
26553    '') as_dir=./ ;;
26554    */) ;;
26555    *) as_dir=$as_dir/ ;;
26556  esac
26557    test -r "$as_dir$0" && as_myself=$as_dir$0 && break
26558  done
26559IFS=$as_save_IFS
26560
26561     ;;
26562esac
26563# We did not find ourselves, most probably we were run as `sh COMMAND'
26564# in which case we are not to be found in the path.
26565if test "x$as_myself" = x; then
26566  as_myself=$0
26567fi
26568if test ! -f "$as_myself"; then
26569  printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26570  exit 1
26571fi
26572
26573
26574
26575# as_fn_error STATUS ERROR [LINENO LOG_FD]
26576# ----------------------------------------
26577# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26578# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26579# script with STATUS, using 1 if that was 0.
26580as_fn_error ()
26581{
26582  as_status=$1; test $as_status -eq 0 && as_status=1
26583  if test "$4"; then
26584    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26585    printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
26586  fi
26587  printf "%s\n" "$as_me: error: $2" >&2
26588  as_fn_exit $as_status
26589} # as_fn_error
26590
26591
26592
26593# as_fn_set_status STATUS
26594# -----------------------
26595# Set $? to STATUS, without forking.
26596as_fn_set_status ()
26597{
26598  return $1
26599} # as_fn_set_status
26600
26601# as_fn_exit STATUS
26602# -----------------
26603# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26604as_fn_exit ()
26605{
26606  set +e
26607  as_fn_set_status $1
26608  exit $1
26609} # as_fn_exit
26610
26611# as_fn_unset VAR
26612# ---------------
26613# Portably unset VAR.
26614as_fn_unset ()
26615{
26616  { eval $1=; unset $1;}
26617}
26618as_unset=as_fn_unset
26619
26620# as_fn_append VAR VALUE
26621# ----------------------
26622# Append the text in VALUE to the end of the definition contained in VAR. Take
26623# advantage of any shell optimizations that allow amortized linear growth over
26624# repeated appends, instead of the typical quadratic growth present in naive
26625# implementations.
26626if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
26627then :
26628  eval 'as_fn_append ()
26629  {
26630    eval $1+=\$2
26631  }'
26632else $as_nop
26633  as_fn_append ()
26634  {
26635    eval $1=\$$1\$2
26636  }
26637fi # as_fn_append
26638
26639# as_fn_arith ARG...
26640# ------------------
26641# Perform arithmetic evaluation on the ARGs, and store the result in the
26642# global $as_val. Take advantage of shells that can avoid forks. The arguments
26643# must be portable across $(()) and expr.
26644if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
26645then :
26646  eval 'as_fn_arith ()
26647  {
26648    as_val=$(( $* ))
26649  }'
26650else $as_nop
26651  as_fn_arith ()
26652  {
26653    as_val=`expr "$@" || test $? -eq 1`
26654  }
26655fi # as_fn_arith
26656
26657
26658if expr a : '\(a\)' >/dev/null 2>&1 &&
26659   test "X`expr 00001 : '.*\(...\)'`" = X001; then
26660  as_expr=expr
26661else
26662  as_expr=false
26663fi
26664
26665if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26666  as_basename=basename
26667else
26668  as_basename=false
26669fi
26670
26671if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26672  as_dirname=dirname
26673else
26674  as_dirname=false
26675fi
26676
26677as_me=`$as_basename -- "$0" ||
26678$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26679	 X"$0" : 'X\(//\)$' \| \
26680	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26681printf "%s\n" X/"$0" |
26682    sed '/^.*\/\([^/][^/]*\)\/*$/{
26683	    s//\1/
26684	    q
26685	  }
26686	  /^X\/\(\/\/\)$/{
26687	    s//\1/
26688	    q
26689	  }
26690	  /^X\/\(\/\).*/{
26691	    s//\1/
26692	    q
26693	  }
26694	  s/.*/./; q'`
26695
26696# Avoid depending upon Character Ranges.
26697as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26698as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26699as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26700as_cr_digits='0123456789'
26701as_cr_alnum=$as_cr_Letters$as_cr_digits
26702
26703
26704# Determine whether it's possible to make 'echo' print without a newline.
26705# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
26706# for compatibility with existing Makefiles.
26707ECHO_C= ECHO_N= ECHO_T=
26708case `echo -n x` in #(((((
26709-n*)
26710  case `echo 'xy\c'` in
26711  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
26712  xy)  ECHO_C='\c';;
26713  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
26714       ECHO_T='	';;
26715  esac;;
26716*)
26717  ECHO_N='-n';;
26718esac
26719
26720# For backward compatibility with old third-party macros, we provide
26721# the shell variables $as_echo and $as_echo_n.  New code should use
26722# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
26723as_echo='printf %s\n'
26724as_echo_n='printf %s'
26725
26726rm -f conf$$ conf$$.exe conf$$.file
26727if test -d conf$$.dir; then
26728  rm -f conf$$.dir/conf$$.file
26729else
26730  rm -f conf$$.dir
26731  mkdir conf$$.dir 2>/dev/null
26732fi
26733if (echo >conf$$.file) 2>/dev/null; then
26734  if ln -s conf$$.file conf$$ 2>/dev/null; then
26735    as_ln_s='ln -s'
26736    # ... but there are two gotchas:
26737    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26738    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26739    # In both cases, we have to default to `cp -pR'.
26740    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26741      as_ln_s='cp -pR'
26742  elif ln conf$$.file conf$$ 2>/dev/null; then
26743    as_ln_s=ln
26744  else
26745    as_ln_s='cp -pR'
26746  fi
26747else
26748  as_ln_s='cp -pR'
26749fi
26750rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26751rmdir conf$$.dir 2>/dev/null
26752
26753
26754# as_fn_mkdir_p
26755# -------------
26756# Create "$as_dir" as a directory, including parents if necessary.
26757as_fn_mkdir_p ()
26758{
26759
26760  case $as_dir in #(
26761  -*) as_dir=./$as_dir;;
26762  esac
26763  test -d "$as_dir" || eval $as_mkdir_p || {
26764    as_dirs=
26765    while :; do
26766      case $as_dir in #(
26767      *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26768      *) as_qdir=$as_dir;;
26769      esac
26770      as_dirs="'$as_qdir' $as_dirs"
26771      as_dir=`$as_dirname -- "$as_dir" ||
26772$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26773	 X"$as_dir" : 'X\(//\)[^/]' \| \
26774	 X"$as_dir" : 'X\(//\)$' \| \
26775	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26776printf "%s\n" X"$as_dir" |
26777    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26778	    s//\1/
26779	    q
26780	  }
26781	  /^X\(\/\/\)[^/].*/{
26782	    s//\1/
26783	    q
26784	  }
26785	  /^X\(\/\/\)$/{
26786	    s//\1/
26787	    q
26788	  }
26789	  /^X\(\/\).*/{
26790	    s//\1/
26791	    q
26792	  }
26793	  s/.*/./; q'`
26794      test -d "$as_dir" && break
26795    done
26796    test -z "$as_dirs" || eval "mkdir $as_dirs"
26797  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
26798
26799
26800} # as_fn_mkdir_p
26801if mkdir -p . 2>/dev/null; then
26802  as_mkdir_p='mkdir -p "$as_dir"'
26803else
26804  test -d ./-p && rmdir ./-p
26805  as_mkdir_p=false
26806fi
26807
26808
26809# as_fn_executable_p FILE
26810# -----------------------
26811# Test if FILE is an executable regular file.
26812as_fn_executable_p ()
26813{
26814  test -f "$1" && test -x "$1"
26815} # as_fn_executable_p
26816as_test_x='test -x'
26817as_executable_p=as_fn_executable_p
26818
26819# Sed expression to map a string onto a valid CPP name.
26820as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26821
26822# Sed expression to map a string onto a valid variable name.
26823as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26824
26825
26826exec 6>&1
26827## ----------------------------------- ##
26828## Main body of $CONFIG_STATUS script. ##
26829## ----------------------------------- ##
26830_ASEOF
26831test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26832
26833cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26834# Save the log message, to keep $0 and so on meaningful, and to
26835# report actual input values of CONFIG_FILES etc. instead of their
26836# values after options handling.
26837ac_log="
26838This file was extended by pidgin $as_me 2.14.8, which was
26839generated by GNU Autoconf 2.71.  Invocation command line was
26840
26841  CONFIG_FILES    = $CONFIG_FILES
26842  CONFIG_HEADERS  = $CONFIG_HEADERS
26843  CONFIG_LINKS    = $CONFIG_LINKS
26844  CONFIG_COMMANDS = $CONFIG_COMMANDS
26845  $ $0 $@
26846
26847on `(hostname || uname -n) 2>/dev/null | sed 1q`
26848"
26849
26850_ACEOF
26851
26852case $ac_config_files in *"
26853"*) set x $ac_config_files; shift; ac_config_files=$*;;
26854esac
26855
26856case $ac_config_headers in *"
26857"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26858esac
26859
26860
26861cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26862# Files that config.status was made for.
26863config_files="$ac_config_files"
26864config_headers="$ac_config_headers"
26865config_commands="$ac_config_commands"
26866
26867_ACEOF
26868
26869cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26870ac_cs_usage="\
26871\`$as_me' instantiates files and other configuration actions
26872from templates according to the current configuration.  Unless the files
26873and actions are specified as TAGs, all are instantiated by default.
26874
26875Usage: $0 [OPTION]... [TAG]...
26876
26877  -h, --help       print this help, then exit
26878  -V, --version    print version number and configuration settings, then exit
26879      --config     print configuration, then exit
26880  -q, --quiet, --silent
26881                   do not print progress messages
26882  -d, --debug      don't remove temporary files
26883      --recheck    update $as_me by reconfiguring in the same conditions
26884      --file=FILE[:TEMPLATE]
26885                   instantiate the configuration file FILE
26886      --header=FILE[:TEMPLATE]
26887                   instantiate the configuration header FILE
26888
26889Configuration files:
26890$config_files
26891
26892Configuration headers:
26893$config_headers
26894
26895Configuration commands:
26896$config_commands
26897
26898Report bugs to <devel@pidgin.im>."
26899
26900_ACEOF
26901ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
26902ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
26903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26904ac_cs_config='$ac_cs_config_escaped'
26905ac_cs_version="\\
26906pidgin config.status 2.14.8
26907configured by $0, generated by GNU Autoconf 2.71,
26908  with options \\"\$ac_cs_config\\"
26909
26910Copyright (C) 2021 Free Software Foundation, Inc.
26911This config.status script is free software; the Free Software Foundation
26912gives unlimited permission to copy, distribute and modify it."
26913
26914ac_pwd='$ac_pwd'
26915srcdir='$srcdir'
26916INSTALL='$INSTALL'
26917MKDIR_P='$MKDIR_P'
26918AWK='$AWK'
26919test -n "\$AWK" || AWK=awk
26920_ACEOF
26921
26922cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26923# The default lists apply if the user does not specify any file.
26924ac_need_defaults=:
26925while test $# != 0
26926do
26927  case $1 in
26928  --*=?*)
26929    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26930    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26931    ac_shift=:
26932    ;;
26933  --*=)
26934    ac_option=`expr "X$1" : 'X\([^=]*\)='`
26935    ac_optarg=
26936    ac_shift=:
26937    ;;
26938  *)
26939    ac_option=$1
26940    ac_optarg=$2
26941    ac_shift=shift
26942    ;;
26943  esac
26944
26945  case $ac_option in
26946  # Handling of the options.
26947  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26948    ac_cs_recheck=: ;;
26949  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26950    printf "%s\n" "$ac_cs_version"; exit ;;
26951  --config | --confi | --conf | --con | --co | --c )
26952    printf "%s\n" "$ac_cs_config"; exit ;;
26953  --debug | --debu | --deb | --de | --d | -d )
26954    debug=: ;;
26955  --file | --fil | --fi | --f )
26956    $ac_shift
26957    case $ac_optarg in
26958    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26959    '') as_fn_error $? "missing file argument" ;;
26960    esac
26961    as_fn_append CONFIG_FILES " '$ac_optarg'"
26962    ac_need_defaults=false;;
26963  --header | --heade | --head | --hea )
26964    $ac_shift
26965    case $ac_optarg in
26966    *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26967    esac
26968    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26969    ac_need_defaults=false;;
26970  --he | --h)
26971    # Conflict between --help and --header
26972    as_fn_error $? "ambiguous option: \`$1'
26973Try \`$0 --help' for more information.";;
26974  --help | --hel | -h )
26975    printf "%s\n" "$ac_cs_usage"; exit ;;
26976  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26977  | -silent | --silent | --silen | --sile | --sil | --si | --s)
26978    ac_cs_silent=: ;;
26979
26980  # This is an error.
26981  -*) as_fn_error $? "unrecognized option: \`$1'
26982Try \`$0 --help' for more information." ;;
26983
26984  *) as_fn_append ac_config_targets " $1"
26985     ac_need_defaults=false ;;
26986
26987  esac
26988  shift
26989done
26990
26991ac_configure_extra_args=
26992
26993if $ac_cs_silent; then
26994  exec 6>/dev/null
26995  ac_configure_extra_args="$ac_configure_extra_args --silent"
26996fi
26997
26998_ACEOF
26999cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27000if \$ac_cs_recheck; then
27001  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27002  shift
27003  \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
27004  CONFIG_SHELL='$SHELL'
27005  export CONFIG_SHELL
27006  exec "\$@"
27007fi
27008
27009_ACEOF
27010cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27011exec 5>>config.log
27012{
27013  echo
27014  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27015## Running $as_me. ##
27016_ASBOX
27017  printf "%s\n" "$ac_log"
27018} >&5
27019
27020_ACEOF
27021cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27022#
27023# INIT-COMMANDS
27024#
27025AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
27026
27027
27028# The HP-UX ksh and POSIX shell print the target directory to stdout
27029# if CDPATH is set.
27030(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27031
27032sed_quote_subst='$sed_quote_subst'
27033double_quote_subst='$double_quote_subst'
27034delay_variable_subst='$delay_variable_subst'
27035enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27036macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27037macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27038enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27039pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27040enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27041shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
27042SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27043ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27044PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
27045host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27046host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27047host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27048build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27049build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27050build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27051SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27052Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27053GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27054EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27055FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27056LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27057NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27058LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27059max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27060ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27061exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27062lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27063lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27064lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27065lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
27066lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
27067reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27068reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27069OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27070deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27071file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27072file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
27073want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
27074DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
27075sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
27076AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27077AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27078archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
27079STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27080RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27081old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27082old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27083old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27084lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27085CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27086CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27087compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27088GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27089lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27090lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27091lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
27092lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27093lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27094lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
27095nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
27096lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
27097lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
27098objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27099MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27100lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27101lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27102lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27103lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27104lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27105need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27106MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
27107DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27108NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27109LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27110OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27111OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27112libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27113shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27114extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27115archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27116enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27117export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27118whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27119compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27120old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27121old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27122archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27123archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27124module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27125module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27126with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27127allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27128no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27129hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27130hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27131hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27132hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27133hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27134hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27135hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27136inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27137link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27138always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27139export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27140exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27141include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27142prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27143postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
27144file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27145variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27146need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27147need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27148version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27149runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27150shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27151shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27152libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27153library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27154soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27155install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27156postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27157postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27158finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27159finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27160hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27161sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27162configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
27163configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
27164hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27165enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27166enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27167enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27168old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27169striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27170
27171LTCC='$LTCC'
27172LTCFLAGS='$LTCFLAGS'
27173compiler='$compiler_DEFAULT'
27174
27175# A function that is used when there is no print builtin or printf.
27176func_fallback_echo ()
27177{
27178  eval 'cat <<_LTECHO_EOF
27179\$1
27180_LTECHO_EOF'
27181}
27182
27183# Quote evaled strings.
27184for var in SHELL \
27185ECHO \
27186PATH_SEPARATOR \
27187SED \
27188GREP \
27189EGREP \
27190FGREP \
27191LD \
27192NM \
27193LN_S \
27194lt_SP2NL \
27195lt_NL2SP \
27196reload_flag \
27197OBJDUMP \
27198deplibs_check_method \
27199file_magic_cmd \
27200file_magic_glob \
27201want_nocaseglob \
27202DLLTOOL \
27203sharedlib_from_linklib_cmd \
27204AR \
27205AR_FLAGS \
27206archiver_list_spec \
27207STRIP \
27208RANLIB \
27209CC \
27210CFLAGS \
27211compiler \
27212lt_cv_sys_global_symbol_pipe \
27213lt_cv_sys_global_symbol_to_cdecl \
27214lt_cv_sys_global_symbol_to_import \
27215lt_cv_sys_global_symbol_to_c_name_address \
27216lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27217lt_cv_nm_interface \
27218nm_file_list_spec \
27219lt_cv_truncate_bin \
27220lt_prog_compiler_no_builtin_flag \
27221lt_prog_compiler_pic \
27222lt_prog_compiler_wl \
27223lt_prog_compiler_static \
27224lt_cv_prog_compiler_c_o \
27225need_locks \
27226MANIFEST_TOOL \
27227DSYMUTIL \
27228NMEDIT \
27229LIPO \
27230OTOOL \
27231OTOOL64 \
27232shrext_cmds \
27233export_dynamic_flag_spec \
27234whole_archive_flag_spec \
27235compiler_needs_object \
27236with_gnu_ld \
27237allow_undefined_flag \
27238no_undefined_flag \
27239hardcode_libdir_flag_spec \
27240hardcode_libdir_separator \
27241exclude_expsyms \
27242include_expsyms \
27243file_list_spec \
27244variables_saved_for_relink \
27245libname_spec \
27246library_names_spec \
27247soname_spec \
27248install_override_mode \
27249finish_eval \
27250old_striplib \
27251striplib; do
27252    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27253    *[\\\\\\\`\\"\\\$]*)
27254      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27255      ;;
27256    *)
27257      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27258      ;;
27259    esac
27260done
27261
27262# Double-quote double-evaled strings.
27263for var in reload_cmds \
27264old_postinstall_cmds \
27265old_postuninstall_cmds \
27266old_archive_cmds \
27267extract_expsyms_cmds \
27268old_archive_from_new_cmds \
27269old_archive_from_expsyms_cmds \
27270archive_cmds \
27271archive_expsym_cmds \
27272module_cmds \
27273module_expsym_cmds \
27274export_symbols_cmds \
27275prelink_cmds \
27276postlink_cmds \
27277postinstall_cmds \
27278postuninstall_cmds \
27279finish_cmds \
27280sys_lib_search_path_spec \
27281configure_time_dlsearch_path \
27282configure_time_lt_sys_library_path; do
27283    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27284    *[\\\\\\\`\\"\\\$]*)
27285      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
27286      ;;
27287    *)
27288      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27289      ;;
27290    esac
27291done
27292
27293ac_aux_dir='$ac_aux_dir'
27294
27295# See if we are running on zsh, and set the options that allow our
27296# commands through without removal of \ escapes INIT.
27297if test -n "\${ZSH_VERSION+set}"; then
27298   setopt NO_GLOB_SUBST
27299fi
27300
27301
27302    PACKAGE='$PACKAGE'
27303    VERSION='$VERSION'
27304    RM='$RM'
27305    ofile='$ofile'
27306
27307
27308
27309
27310
27311_ACEOF
27312
27313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27314
27315# Handling of arguments.
27316for ac_config_target in $ac_config_targets
27317do
27318  case $ac_config_target in
27319    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27320    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27321    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27322    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27323    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27324    "Doxyfile") CONFIG_FILES="$CONFIG_FILES Doxyfile" ;;
27325    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27326    "doc/pidgin.1") CONFIG_FILES="$CONFIG_FILES doc/pidgin.1" ;;
27327    "doc/finch.1") CONFIG_FILES="$CONFIG_FILES doc/finch.1" ;;
27328    "m4macros/Makefile") CONFIG_FILES="$CONFIG_FILES m4macros/Makefile" ;;
27329    "pidgin.apspec") CONFIG_FILES="$CONFIG_FILES pidgin.apspec" ;;
27330    "pidgin/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/Makefile" ;;
27331    "pidgin/data/pidgin.desktop.in") CONFIG_FILES="$CONFIG_FILES pidgin/data/pidgin.desktop.in" ;;
27332    "pidgin/data/pidgin.pc") CONFIG_FILES="$CONFIG_FILES pidgin/data/pidgin.pc" ;;
27333    "pidgin/data/pidgin-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pidgin/data/pidgin-uninstalled.pc" ;;
27334    "pidgin/data/pidgin-2.pc") CONFIG_FILES="$CONFIG_FILES pidgin/data/pidgin-2.pc" ;;
27335    "pidgin/data/pidgin-2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES pidgin/data/pidgin-2-uninstalled.pc" ;;
27336    "pidgin/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/pixmaps/Makefile" ;;
27337    "pidgin/pixmaps/emotes/default/24/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/pixmaps/emotes/default/24/Makefile" ;;
27338    "pidgin/pixmaps/emotes/none/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/pixmaps/emotes/none/Makefile" ;;
27339    "pidgin/pixmaps/emotes/small/16/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/pixmaps/emotes/small/16/Makefile" ;;
27340    "pidgin/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/Makefile" ;;
27341    "pidgin/plugins/cap/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/cap/Makefile" ;;
27342    "pidgin/plugins/disco/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/disco/Makefile" ;;
27343    "pidgin/plugins/gestures/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/gestures/Makefile" ;;
27344    "pidgin/plugins/gevolution/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/gevolution/Makefile" ;;
27345    "pidgin/plugins/musicmessaging/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/musicmessaging/Makefile" ;;
27346    "pidgin/plugins/perl/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/perl/Makefile" ;;
27347    "pidgin/plugins/perl/common/Makefile.PL") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/perl/common/Makefile.PL" ;;
27348    "pidgin/plugins/ticker/Makefile") CONFIG_FILES="$CONFIG_FILES pidgin/plugins/ticker/Makefile" ;;
27349    "libpurple/data/gconf/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/data/gconf/Makefile" ;;
27350    "libpurple/data/purple.pc") CONFIG_FILES="$CONFIG_FILES libpurple/data/purple.pc" ;;
27351    "libpurple/data/purple-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libpurple/data/purple-uninstalled.pc" ;;
27352    "libpurple/data/purple-2.pc") CONFIG_FILES="$CONFIG_FILES libpurple/data/purple-2.pc" ;;
27353    "libpurple/data/purple-2-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES libpurple/data/purple-2-uninstalled.pc" ;;
27354    "libpurple/ciphers/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/ciphers/Makefile" ;;
27355    "libpurple/example/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/example/Makefile" ;;
27356    "libpurple/fuzzers/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/fuzzers/Makefile" ;;
27357    "libpurple/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/Makefile" ;;
27358    "libpurple/plugins/mono/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/mono/Makefile" ;;
27359    "libpurple/plugins/mono/api/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/mono/api/Makefile" ;;
27360    "libpurple/plugins/mono/loader/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/mono/loader/Makefile" ;;
27361    "libpurple/plugins/perl/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/perl/Makefile" ;;
27362    "libpurple/plugins/perl/common/Makefile.PL") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/perl/common/Makefile.PL" ;;
27363    "libpurple/plugins/ssl/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/ssl/Makefile" ;;
27364    "libpurple/plugins/tcl/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/plugins/tcl/Makefile" ;;
27365    "libpurple/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/Makefile" ;;
27366    "libpurple/protocols/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/Makefile" ;;
27367    "libpurple/protocols/bonjour/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/bonjour/Makefile" ;;
27368    "libpurple/protocols/gg/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/gg/Makefile" ;;
27369    "libpurple/protocols/irc/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/irc/Makefile" ;;
27370    "libpurple/protocols/jabber/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/jabber/Makefile" ;;
27371    "libpurple/protocols/novell/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/novell/Makefile" ;;
27372    "libpurple/protocols/null/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/null/Makefile" ;;
27373    "libpurple/protocols/sametime/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/sametime/Makefile" ;;
27374    "libpurple/protocols/silc/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/silc/Makefile" ;;
27375    "libpurple/protocols/silc10/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/silc10/Makefile" ;;
27376    "libpurple/protocols/simple/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/simple/Makefile" ;;
27377    "libpurple/protocols/zephyr/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/protocols/zephyr/Makefile" ;;
27378    "libpurple/tests/Makefile") CONFIG_FILES="$CONFIG_FILES libpurple/tests/Makefile" ;;
27379    "libpurple/purple.h") CONFIG_FILES="$CONFIG_FILES libpurple/purple.h" ;;
27380    "libpurple/version.h") CONFIG_FILES="$CONFIG_FILES libpurple/version.h" ;;
27381    "share/sounds/Makefile") CONFIG_FILES="$CONFIG_FILES share/sounds/Makefile" ;;
27382    "share/ca-certs/Makefile") CONFIG_FILES="$CONFIG_FILES share/ca-certs/Makefile" ;;
27383    "finch/finch.pc") CONFIG_FILES="$CONFIG_FILES finch/finch.pc" ;;
27384    "finch/Makefile") CONFIG_FILES="$CONFIG_FILES finch/Makefile" ;;
27385    "finch/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES finch/plugins/Makefile" ;;
27386    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
27387    "pidgin.spec") CONFIG_FILES="$CONFIG_FILES pidgin.spec" ;;
27388    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
27389
27390  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27391  esac
27392done
27393
27394
27395# If the user did not use the arguments to specify the items to instantiate,
27396# then the envvar interface is used.  Set only those that are not.
27397# We use the long form for the default assignment because of an extremely
27398# bizarre bug on SunOS 4.1.3.
27399if $ac_need_defaults; then
27400  test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
27401  test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
27402  test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
27403fi
27404
27405# Have a temporary directory for convenience.  Make it in the build tree
27406# simply because there is no reason against having it here, and in addition,
27407# creating and moving files from /tmp can sometimes cause problems.
27408# Hook for its removal unless debugging.
27409# Note that there is a small window in which the directory will not be cleaned:
27410# after its creation but before its name has been assigned to `$tmp'.
27411$debug ||
27412{
27413  tmp= ac_tmp=
27414  trap 'exit_status=$?
27415  : "${ac_tmp:=$tmp}"
27416  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
27417' 0
27418  trap 'as_fn_exit 1' 1 2 13 15
27419}
27420# Create a (secure) tmp directory for tmp files.
27421
27422{
27423  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27424  test -d "$tmp"
27425}  ||
27426{
27427  tmp=./conf$$-$RANDOM
27428  (umask 077 && mkdir "$tmp")
27429} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
27430ac_tmp=$tmp
27431
27432# Set up the scripts for CONFIG_FILES section.
27433# No need to generate them if there are no CONFIG_FILES.
27434# This happens for instance with `./config.status config.h'.
27435if test -n "$CONFIG_FILES"; then
27436
27437
27438ac_cr=`echo X | tr X '\015'`
27439# On cygwin, bash can eat \r inside `` if the user requested igncr.
27440# But we know of no other shell where ac_cr would be empty at this
27441# point, so we can use a bashism as a fallback.
27442if test "x$ac_cr" = x; then
27443  eval ac_cr=\$\'\\r\'
27444fi
27445ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27446if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27447  ac_cs_awk_cr='\\r'
27448else
27449  ac_cs_awk_cr=$ac_cr
27450fi
27451
27452echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
27453_ACEOF
27454
27455
27456{
27457  echo "cat >conf$$subs.awk <<_ACEOF" &&
27458  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27459  echo "_ACEOF"
27460} >conf$$subs.sh ||
27461  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27462ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
27463ac_delim='%!_!# '
27464for ac_last_try in false false false false false :; do
27465  . ./conf$$subs.sh ||
27466    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27467
27468  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27469  if test $ac_delim_n = $ac_delim_num; then
27470    break
27471  elif $ac_last_try; then
27472    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
27473  else
27474    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27475  fi
27476done
27477rm -f conf$$subs.sh
27478
27479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27480cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
27481_ACEOF
27482sed -n '
27483h
27484s/^/S["/; s/!.*/"]=/
27485p
27486g
27487s/^[^!]*!//
27488:repl
27489t repl
27490s/'"$ac_delim"'$//
27491t delim
27492:nl
27493h
27494s/\(.\{148\}\)..*/\1/
27495t more1
27496s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27497p
27498n
27499b repl
27500:more1
27501s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27502p
27503g
27504s/.\{148\}//
27505t nl
27506:delim
27507h
27508s/\(.\{148\}\)..*/\1/
27509t more2
27510s/["\\]/\\&/g; s/^/"/; s/$/"/
27511p
27512b
27513:more2
27514s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27515p
27516g
27517s/.\{148\}//
27518t delim
27519' <conf$$subs.awk | sed '
27520/^[^""]/{
27521  N
27522  s/\n//
27523}
27524' >>$CONFIG_STATUS || ac_write_fail=1
27525rm -f conf$$subs.awk
27526cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27527_ACAWK
27528cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
27529  for (key in S) S_is_set[key] = 1
27530  FS = ""
27531
27532}
27533{
27534  line = $ 0
27535  nfields = split(line, field, "@")
27536  substed = 0
27537  len = length(field[1])
27538  for (i = 2; i < nfields; i++) {
27539    key = field[i]
27540    keylen = length(key)
27541    if (S_is_set[key]) {
27542      value = S[key]
27543      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27544      len += length(value) + length(field[++i])
27545      substed = 1
27546    } else
27547      len += 1 + keylen
27548  }
27549
27550  print line
27551}
27552
27553_ACAWK
27554_ACEOF
27555cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27556if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27557  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27558else
27559  cat
27560fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
27561  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
27562_ACEOF
27563
27564# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
27565# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
27566# trailing colons and then remove the whole line if VPATH becomes empty
27567# (actually we leave an empty line to preserve line numbers).
27568if test "x$srcdir" = x.; then
27569  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
27570h
27571s///
27572s/^/:/
27573s/[	 ]*$/:/
27574s/:\$(srcdir):/:/g
27575s/:\${srcdir}:/:/g
27576s/:@srcdir@:/:/g
27577s/^:*//
27578s/:*$//
27579x
27580s/\(=[	 ]*\).*/\1/
27581G
27582s/\n//
27583s/^[^=]*=[	 ]*$//
27584}'
27585fi
27586
27587cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27588fi # test -n "$CONFIG_FILES"
27589
27590# Set up the scripts for CONFIG_HEADERS section.
27591# No need to generate them if there are no CONFIG_HEADERS.
27592# This happens for instance with `./config.status Makefile'.
27593if test -n "$CONFIG_HEADERS"; then
27594cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
27595BEGIN {
27596_ACEOF
27597
27598# Transform confdefs.h into an awk script `defines.awk', embedded as
27599# here-document in config.status, that substitutes the proper values into
27600# config.h.in to produce config.h.
27601
27602# Create a delimiter string that does not exist in confdefs.h, to ease
27603# handling of long lines.
27604ac_delim='%!_!# '
27605for ac_last_try in false false :; do
27606  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
27607  if test -z "$ac_tt"; then
27608    break
27609  elif $ac_last_try; then
27610    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
27611  else
27612    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27613  fi
27614done
27615
27616# For the awk script, D is an array of macro values keyed by name,
27617# likewise P contains macro parameters if any.  Preserve backslash
27618# newline sequences.
27619
27620ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27621sed -n '
27622s/.\{148\}/&'"$ac_delim"'/g
27623t rset
27624:rset
27625s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
27626t def
27627d
27628:def
27629s/\\$//
27630t bsnl
27631s/["\\]/\\&/g
27632s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27633D["\1"]=" \3"/p
27634s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
27635d
27636:bsnl
27637s/["\\]/\\&/g
27638s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
27639D["\1"]=" \3\\\\\\n"\\/p
27640t cont
27641s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27642t cont
27643d
27644:cont
27645n
27646s/.\{148\}/&'"$ac_delim"'/g
27647t clear
27648:clear
27649s/\\$//
27650t bsnlc
27651s/["\\]/\\&/g; s/^/"/; s/$/"/p
27652d
27653:bsnlc
27654s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27655b cont
27656' <confdefs.h | sed '
27657s/'"$ac_delim"'/"\\\
27658"/g' >>$CONFIG_STATUS || ac_write_fail=1
27659
27660cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27661  for (key in D) D_is_set[key] = 1
27662  FS = ""
27663}
27664/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27665  line = \$ 0
27666  split(line, arg, " ")
27667  if (arg[1] == "#") {
27668    defundef = arg[2]
27669    mac1 = arg[3]
27670  } else {
27671    defundef = substr(arg[1], 2)
27672    mac1 = arg[2]
27673  }
27674  split(mac1, mac2, "(") #)
27675  macro = mac2[1]
27676  prefix = substr(line, 1, index(line, defundef) - 1)
27677  if (D_is_set[macro]) {
27678    # Preserve the white space surrounding the "#".
27679    print prefix "define", macro P[macro] D[macro]
27680    next
27681  } else {
27682    # Replace #undef with comments.  This is necessary, for example,
27683    # in the case of _POSIX_SOURCE, which is predefined and required
27684    # on some systems where configure will not decide to define it.
27685    if (defundef == "undef") {
27686      print "/*", prefix defundef, macro, "*/"
27687      next
27688    }
27689  }
27690}
27691{ print }
27692_ACAWK
27693_ACEOF
27694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27695  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
27696fi # test -n "$CONFIG_HEADERS"
27697
27698
27699eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
27700shift
27701for ac_tag
27702do
27703  case $ac_tag in
27704  :[FHLC]) ac_mode=$ac_tag; continue;;
27705  esac
27706  case $ac_mode$ac_tag in
27707  :[FHL]*:*);;
27708  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
27709  :[FH]-) ac_tag=-:-;;
27710  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27711  esac
27712  ac_save_IFS=$IFS
27713  IFS=:
27714  set x $ac_tag
27715  IFS=$ac_save_IFS
27716  shift
27717  ac_file=$1
27718  shift
27719
27720  case $ac_mode in
27721  :L) ac_source=$1;;
27722  :[FH])
27723    ac_file_inputs=
27724    for ac_f
27725    do
27726      case $ac_f in
27727      -) ac_f="$ac_tmp/stdin";;
27728      *) # Look for the file first in the build tree, then in the source tree
27729	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
27730	 # because $ac_f cannot contain `:'.
27731	 test -f "$ac_f" ||
27732	   case $ac_f in
27733	   [\\/$]*) false;;
27734	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27735	   esac ||
27736	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27737      esac
27738      case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27739      as_fn_append ac_file_inputs " '$ac_f'"
27740    done
27741
27742    # Let's still pretend it is `configure' which instantiates (i.e., don't
27743    # use $as_me), people would be surprised to read:
27744    #    /* config.h.  Generated by config.status.  */
27745    configure_input='Generated from '`
27746	  printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27747	`' by configure.'
27748    if test x"$ac_file" != x-; then
27749      configure_input="$ac_file.  $configure_input"
27750      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27751printf "%s\n" "$as_me: creating $ac_file" >&6;}
27752    fi
27753    # Neutralize special characters interpreted by sed in replacement strings.
27754    case $configure_input in #(
27755    *\&* | *\|* | *\\* )
27756       ac_sed_conf_input=`printf "%s\n" "$configure_input" |
27757       sed 's/[\\\\&|]/\\\\&/g'`;; #(
27758    *) ac_sed_conf_input=$configure_input;;
27759    esac
27760
27761    case $ac_tag in
27762    *:-:* | *:-) cat >"$ac_tmp/stdin" \
27763      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
27764    esac
27765    ;;
27766  esac
27767
27768  ac_dir=`$as_dirname -- "$ac_file" ||
27769$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27770	 X"$ac_file" : 'X\(//\)[^/]' \| \
27771	 X"$ac_file" : 'X\(//\)$' \| \
27772	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27773printf "%s\n" X"$ac_file" |
27774    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27775	    s//\1/
27776	    q
27777	  }
27778	  /^X\(\/\/\)[^/].*/{
27779	    s//\1/
27780	    q
27781	  }
27782	  /^X\(\/\/\)$/{
27783	    s//\1/
27784	    q
27785	  }
27786	  /^X\(\/\).*/{
27787	    s//\1/
27788	    q
27789	  }
27790	  s/.*/./; q'`
27791  as_dir="$ac_dir"; as_fn_mkdir_p
27792  ac_builddir=.
27793
27794case "$ac_dir" in
27795.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27796*)
27797  ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
27798  # A ".." for each directory in $ac_dir_suffix.
27799  ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27800  case $ac_top_builddir_sub in
27801  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27802  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27803  esac ;;
27804esac
27805ac_abs_top_builddir=$ac_pwd
27806ac_abs_builddir=$ac_pwd$ac_dir_suffix
27807# for backward compatibility:
27808ac_top_builddir=$ac_top_build_prefix
27809
27810case $srcdir in
27811  .)  # We are building in place.
27812    ac_srcdir=.
27813    ac_top_srcdir=$ac_top_builddir_sub
27814    ac_abs_top_srcdir=$ac_pwd ;;
27815  [\\/]* | ?:[\\/]* )  # Absolute name.
27816    ac_srcdir=$srcdir$ac_dir_suffix;
27817    ac_top_srcdir=$srcdir
27818    ac_abs_top_srcdir=$srcdir ;;
27819  *) # Relative name.
27820    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27821    ac_top_srcdir=$ac_top_build_prefix$srcdir
27822    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27823esac
27824ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27825
27826
27827  case $ac_mode in
27828  :F)
27829  #
27830  # CONFIG_FILE
27831  #
27832
27833  case $INSTALL in
27834  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27835  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27836  esac
27837  ac_MKDIR_P=$MKDIR_P
27838  case $MKDIR_P in
27839  [\\/$]* | ?:[\\/]* ) ;;
27840  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27841  esac
27842_ACEOF
27843
27844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27845# If the template does not know about datarootdir, expand it.
27846# FIXME: This hack should be removed a few years after 2.60.
27847ac_datarootdir_hack=; ac_datarootdir_seen=
27848ac_sed_dataroot='
27849/datarootdir/ {
27850  p
27851  q
27852}
27853/@datadir@/p
27854/@docdir@/p
27855/@infodir@/p
27856/@localedir@/p
27857/@mandir@/p'
27858case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27859*datarootdir*) ac_datarootdir_seen=yes;;
27860*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27861  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27862printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27863_ACEOF
27864cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27865  ac_datarootdir_hack='
27866  s&@datadir@&$datadir&g
27867  s&@docdir@&$docdir&g
27868  s&@infodir@&$infodir&g
27869  s&@localedir@&$localedir&g
27870  s&@mandir@&$mandir&g
27871  s&\\\${datarootdir}&$datarootdir&g' ;;
27872esac
27873_ACEOF
27874
27875# Neutralize VPATH when `$srcdir' = `.'.
27876# Shell code in configure.ac might set extrasub.
27877# FIXME: do we really want to maintain this feature?
27878cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27879ac_sed_extra="$ac_vpsub
27880$extrasub
27881_ACEOF
27882cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27883:t
27884/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27885s|@configure_input@|$ac_sed_conf_input|;t t
27886s&@top_builddir@&$ac_top_builddir_sub&;t t
27887s&@top_build_prefix@&$ac_top_build_prefix&;t t
27888s&@srcdir@&$ac_srcdir&;t t
27889s&@abs_srcdir@&$ac_abs_srcdir&;t t
27890s&@top_srcdir@&$ac_top_srcdir&;t t
27891s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27892s&@builddir@&$ac_builddir&;t t
27893s&@abs_builddir@&$ac_abs_builddir&;t t
27894s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27895s&@INSTALL@&$ac_INSTALL&;t t
27896s&@MKDIR_P@&$ac_MKDIR_P&;t t
27897$ac_datarootdir_hack
27898"
27899eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
27900  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27901
27902test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27903  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
27904  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
27905      "$ac_tmp/out"`; test -z "$ac_out"; } &&
27906  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27907which seems to be undefined.  Please make sure it is defined" >&5
27908printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27909which seems to be undefined.  Please make sure it is defined" >&2;}
27910
27911  rm -f "$ac_tmp/stdin"
27912  case $ac_file in
27913  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
27914  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
27915  esac \
27916  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27917 ;;
27918  :H)
27919  #
27920  # CONFIG_HEADER
27921  #
27922  if test x"$ac_file" != x-; then
27923    {
27924      printf "%s\n" "/* $configure_input  */" >&1 \
27925      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
27926    } >"$ac_tmp/config.h" \
27927      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
27928    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
27929      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27930printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
27931    else
27932      rm -f "$ac_file"
27933      mv "$ac_tmp/config.h" "$ac_file" \
27934	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
27935    fi
27936  else
27937    printf "%s\n" "/* $configure_input  */" >&1 \
27938      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
27939      || as_fn_error $? "could not create -" "$LINENO" 5
27940  fi
27941# Compute "$ac_file"'s index in $config_headers.
27942_am_arg="$ac_file"
27943_am_stamp_count=1
27944for _am_header in $config_headers :; do
27945  case $_am_header in
27946    $_am_arg | $_am_arg:* )
27947      break ;;
27948    * )
27949      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27950  esac
27951done
27952echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27953$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27954	 X"$_am_arg" : 'X\(//\)[^/]' \| \
27955	 X"$_am_arg" : 'X\(//\)$' \| \
27956	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27957printf "%s\n" X"$_am_arg" |
27958    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27959	    s//\1/
27960	    q
27961	  }
27962	  /^X\(\/\/\)[^/].*/{
27963	    s//\1/
27964	    q
27965	  }
27966	  /^X\(\/\/\)$/{
27967	    s//\1/
27968	    q
27969	  }
27970	  /^X\(\/\).*/{
27971	    s//\1/
27972	    q
27973	  }
27974	  s/.*/./; q'`/stamp-h$_am_stamp_count
27975 ;;
27976
27977  :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27978printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
27979 ;;
27980  esac
27981
27982
27983  case $ac_file$ac_mode in
27984    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27985  # Older Autoconf quotes --file arguments for eval, but not when files
27986  # are listed without --file.  Let's play safe and only enable the eval
27987  # if we detect the quoting.
27988  # TODO: see whether this extra hack can be removed once we start
27989  # requiring Autoconf 2.70 or later.
27990  case $CONFIG_FILES in #(
27991  *\'*) :
27992    eval set x "$CONFIG_FILES" ;; #(
27993  *) :
27994    set x $CONFIG_FILES ;; #(
27995  *) :
27996     ;;
27997esac
27998  shift
27999  # Used to flag and report bootstrapping failures.
28000  am_rc=0
28001  for am_mf
28002  do
28003    # Strip MF so we end up with the name of the file.
28004    am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
28005    # Check whether this is an Automake generated Makefile which includes
28006    # dependency-tracking related rules and includes.
28007    # Grep'ing the whole file directly is not great: AIX grep has a line
28008    # limit of 2048, but all sed's we know have understand at least 4000.
28009    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
28010      || continue
28011    am_dirpart=`$as_dirname -- "$am_mf" ||
28012$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28013	 X"$am_mf" : 'X\(//\)[^/]' \| \
28014	 X"$am_mf" : 'X\(//\)$' \| \
28015	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28016printf "%s\n" X"$am_mf" |
28017    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28018	    s//\1/
28019	    q
28020	  }
28021	  /^X\(\/\/\)[^/].*/{
28022	    s//\1/
28023	    q
28024	  }
28025	  /^X\(\/\/\)$/{
28026	    s//\1/
28027	    q
28028	  }
28029	  /^X\(\/\).*/{
28030	    s//\1/
28031	    q
28032	  }
28033	  s/.*/./; q'`
28034    am_filepart=`$as_basename -- "$am_mf" ||
28035$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
28036	 X"$am_mf" : 'X\(//\)$' \| \
28037	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
28038printf "%s\n" X/"$am_mf" |
28039    sed '/^.*\/\([^/][^/]*\)\/*$/{
28040	    s//\1/
28041	    q
28042	  }
28043	  /^X\/\(\/\/\)$/{
28044	    s//\1/
28045	    q
28046	  }
28047	  /^X\/\(\/\).*/{
28048	    s//\1/
28049	    q
28050	  }
28051	  s/.*/./; q'`
28052    { echo "$as_me:$LINENO: cd "$am_dirpart" \
28053      && sed -e '/# am--include-marker/d' "$am_filepart" \
28054        | $MAKE -f - am--depfiles" >&5
28055   (cd "$am_dirpart" \
28056      && sed -e '/# am--include-marker/d' "$am_filepart" \
28057        | $MAKE -f - am--depfiles) >&5 2>&5
28058   ac_status=$?
28059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28060   (exit $ac_status); } || am_rc=$?
28061  done
28062  if test $am_rc -ne 0; then
28063    { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28064printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
28065as_fn_error $? "Something went wrong bootstrapping makefile fragments
28066    for automatic dependency tracking.  If GNU make was not used, consider
28067    re-running the configure script with MAKE=\"gmake\" (or whatever is
28068    necessary).  You can also try re-running configure with the
28069    '--disable-dependency-tracking' option to at least be able to build
28070    the package (albeit without support for automatic dependency tracking).
28071See \`config.log' for more details" "$LINENO" 5; }
28072  fi
28073  { am_dirpart=; unset am_dirpart;}
28074  { am_filepart=; unset am_filepart;}
28075  { am_mf=; unset am_mf;}
28076  { am_rc=; unset am_rc;}
28077  rm -f conftest-deps.mk
28078}
28079 ;;
28080    "libtool":C)
28081
28082    # See if we are running on zsh, and set the options that allow our
28083    # commands through without removal of \ escapes.
28084    if test -n "${ZSH_VERSION+set}"; then
28085      setopt NO_GLOB_SUBST
28086    fi
28087
28088    cfgfile=${ofile}T
28089    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28090    $RM "$cfgfile"
28091
28092    cat <<_LT_EOF >> "$cfgfile"
28093#! $SHELL
28094# Generated automatically by $as_me ($PACKAGE) $VERSION
28095# NOTE: Changes made to this file will be lost: look at ltmain.sh.
28096
28097# Provide generalized library-building support services.
28098# Written by Gordon Matzigkeit, 1996
28099
28100# Copyright (C) 2014 Free Software Foundation, Inc.
28101# This is free software; see the source for copying conditions.  There is NO
28102# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
28103
28104# GNU Libtool is free software; you can redistribute it and/or modify
28105# it under the terms of the GNU General Public License as published by
28106# the Free Software Foundation; either version 2 of of the License, or
28107# (at your option) any later version.
28108#
28109# As a special exception to the GNU General Public License, if you
28110# distribute this file as part of a program or library that is built
28111# using GNU Libtool, you may include this file under the  same
28112# distribution terms that you use for the rest of that program.
28113#
28114# GNU Libtool is distributed in the hope that it will be useful, but
28115# WITHOUT ANY WARRANTY; without even the implied warranty of
28116# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
28117# GNU General Public License for more details.
28118#
28119# You should have received a copy of the GNU General Public License
28120# along with this program.  If not, see <http://www.gnu.org/licenses/>.
28121
28122
28123# The names of the tagged configurations supported by this script.
28124available_tags=''
28125
28126# Configured defaults for sys_lib_dlsearch_path munging.
28127: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
28128
28129# ### BEGIN LIBTOOL CONFIG
28130
28131# Whether or not to build static libraries.
28132build_old_libs=$enable_static
28133
28134# Which release of libtool.m4 was used?
28135macro_version=$macro_version
28136macro_revision=$macro_revision
28137
28138# Whether or not to build shared libraries.
28139build_libtool_libs=$enable_shared
28140
28141# What type of objects to build.
28142pic_mode=$pic_mode
28143
28144# Whether or not to optimize for fast installation.
28145fast_install=$enable_fast_install
28146
28147# Shared archive member basename,for filename based shared library versioning on AIX.
28148shared_archive_member_spec=$shared_archive_member_spec
28149
28150# Shell to use when invoking shell scripts.
28151SHELL=$lt_SHELL
28152
28153# An echo program that protects backslashes.
28154ECHO=$lt_ECHO
28155
28156# The PATH separator for the build system.
28157PATH_SEPARATOR=$lt_PATH_SEPARATOR
28158
28159# The host system.
28160host_alias=$host_alias
28161host=$host
28162host_os=$host_os
28163
28164# The build system.
28165build_alias=$build_alias
28166build=$build
28167build_os=$build_os
28168
28169# A sed program that does not truncate output.
28170SED=$lt_SED
28171
28172# Sed that helps us avoid accidentally triggering echo(1) options like -n.
28173Xsed="\$SED -e 1s/^X//"
28174
28175# A grep program that handles long lines.
28176GREP=$lt_GREP
28177
28178# An ERE matcher.
28179EGREP=$lt_EGREP
28180
28181# A literal string matcher.
28182FGREP=$lt_FGREP
28183
28184# A BSD- or MS-compatible name lister.
28185NM=$lt_NM
28186
28187# Whether we need soft or hard links.
28188LN_S=$lt_LN_S
28189
28190# What is the maximum length of a command?
28191max_cmd_len=$max_cmd_len
28192
28193# Object file suffix (normally "o").
28194objext=$ac_objext
28195
28196# Executable file suffix (normally "").
28197exeext=$exeext
28198
28199# whether the shell understands "unset".
28200lt_unset=$lt_unset
28201
28202# turn spaces into newlines.
28203SP2NL=$lt_lt_SP2NL
28204
28205# turn newlines into spaces.
28206NL2SP=$lt_lt_NL2SP
28207
28208# convert \$build file names to \$host format.
28209to_host_file_cmd=$lt_cv_to_host_file_cmd
28210
28211# convert \$build files to toolchain format.
28212to_tool_file_cmd=$lt_cv_to_tool_file_cmd
28213
28214# An object symbol dumper.
28215OBJDUMP=$lt_OBJDUMP
28216
28217# Method to check whether dependent libraries are shared objects.
28218deplibs_check_method=$lt_deplibs_check_method
28219
28220# Command to use when deplibs_check_method = "file_magic".
28221file_magic_cmd=$lt_file_magic_cmd
28222
28223# How to find potential files when deplibs_check_method = "file_magic".
28224file_magic_glob=$lt_file_magic_glob
28225
28226# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
28227want_nocaseglob=$lt_want_nocaseglob
28228
28229# DLL creation program.
28230DLLTOOL=$lt_DLLTOOL
28231
28232# Command to associate shared and link libraries.
28233sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
28234
28235# The archiver.
28236AR=$lt_AR
28237
28238# Flags to create an archive.
28239AR_FLAGS=$lt_AR_FLAGS
28240
28241# How to feed a file listing to the archiver.
28242archiver_list_spec=$lt_archiver_list_spec
28243
28244# A symbol stripping program.
28245STRIP=$lt_STRIP
28246
28247# Commands used to install an old-style archive.
28248RANLIB=$lt_RANLIB
28249old_postinstall_cmds=$lt_old_postinstall_cmds
28250old_postuninstall_cmds=$lt_old_postuninstall_cmds
28251
28252# Whether to use a lock for old archive extraction.
28253lock_old_archive_extraction=$lock_old_archive_extraction
28254
28255# A C compiler.
28256LTCC=$lt_CC
28257
28258# LTCC compiler flags.
28259LTCFLAGS=$lt_CFLAGS
28260
28261# Take the output of nm and produce a listing of raw symbols and C names.
28262global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28263
28264# Transform the output of nm in a proper C declaration.
28265global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28266
28267# Transform the output of nm into a list of symbols to manually relocate.
28268global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
28269
28270# Transform the output of nm in a C name address pair.
28271global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28272
28273# Transform the output of nm in a C name address pair when lib prefix is needed.
28274global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28275
28276# The name lister interface.
28277nm_interface=$lt_lt_cv_nm_interface
28278
28279# Specify filename containing input files for \$NM.
28280nm_file_list_spec=$lt_nm_file_list_spec
28281
28282# The root where to search for dependent libraries,and where our libraries should be installed.
28283lt_sysroot=$lt_sysroot
28284
28285# Command to truncate a binary pipe.
28286lt_truncate_bin=$lt_lt_cv_truncate_bin
28287
28288# The name of the directory that contains temporary libtool files.
28289objdir=$objdir
28290
28291# Used to examine libraries when file_magic_cmd begins with "file".
28292MAGIC_CMD=$MAGIC_CMD
28293
28294# Must we lock files when doing compilation?
28295need_locks=$lt_need_locks
28296
28297# Manifest tool.
28298MANIFEST_TOOL=$lt_MANIFEST_TOOL
28299
28300# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28301DSYMUTIL=$lt_DSYMUTIL
28302
28303# Tool to change global to local symbols on Mac OS X.
28304NMEDIT=$lt_NMEDIT
28305
28306# Tool to manipulate fat objects and archives on Mac OS X.
28307LIPO=$lt_LIPO
28308
28309# ldd/readelf like tool for Mach-O binaries on Mac OS X.
28310OTOOL=$lt_OTOOL
28311
28312# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28313OTOOL64=$lt_OTOOL64
28314
28315# Old archive suffix (normally "a").
28316libext=$libext
28317
28318# Shared library suffix (normally ".so").
28319shrext_cmds=$lt_shrext_cmds
28320
28321# The commands to extract the exported symbol list from a shared archive.
28322extract_expsyms_cmds=$lt_extract_expsyms_cmds
28323
28324# Variables whose values should be saved in libtool wrapper scripts and
28325# restored at link time.
28326variables_saved_for_relink=$lt_variables_saved_for_relink
28327
28328# Do we need the "lib" prefix for modules?
28329need_lib_prefix=$need_lib_prefix
28330
28331# Do we need a version for libraries?
28332need_version=$need_version
28333
28334# Library versioning type.
28335version_type=$version_type
28336
28337# Shared library runtime path variable.
28338runpath_var=$runpath_var
28339
28340# Shared library path variable.
28341shlibpath_var=$shlibpath_var
28342
28343# Is shlibpath searched before the hard-coded library search path?
28344shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28345
28346# Format of library name prefix.
28347libname_spec=$lt_libname_spec
28348
28349# List of archive names.  First name is the real one, the rest are links.
28350# The last name is the one that the linker finds with -lNAME
28351library_names_spec=$lt_library_names_spec
28352
28353# The coded name of the library, if different from the real name.
28354soname_spec=$lt_soname_spec
28355
28356# Permission mode override for installation of shared libraries.
28357install_override_mode=$lt_install_override_mode
28358
28359# Command to use after installation of a shared archive.
28360postinstall_cmds=$lt_postinstall_cmds
28361
28362# Command to use after uninstallation of a shared archive.
28363postuninstall_cmds=$lt_postuninstall_cmds
28364
28365# Commands used to finish a libtool library installation in a directory.
28366finish_cmds=$lt_finish_cmds
28367
28368# As "finish_cmds", except a single script fragment to be evaled but
28369# not shown.
28370finish_eval=$lt_finish_eval
28371
28372# Whether we should hardcode library paths into libraries.
28373hardcode_into_libs=$hardcode_into_libs
28374
28375# Compile-time system search path for libraries.
28376sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28377
28378# Detected run-time system search path for libraries.
28379sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
28380
28381# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
28382configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
28383
28384# Whether dlopen is supported.
28385dlopen_support=$enable_dlopen
28386
28387# Whether dlopen of programs is supported.
28388dlopen_self=$enable_dlopen_self
28389
28390# Whether dlopen of statically linked programs is supported.
28391dlopen_self_static=$enable_dlopen_self_static
28392
28393# Commands to strip libraries.
28394old_striplib=$lt_old_striplib
28395striplib=$lt_striplib
28396
28397
28398# The linker used to build libraries.
28399LD=$lt_LD
28400
28401# How to create reloadable object files.
28402reload_flag=$lt_reload_flag
28403reload_cmds=$lt_reload_cmds
28404
28405# Commands used to build an old-style archive.
28406old_archive_cmds=$lt_old_archive_cmds
28407
28408# A language specific compiler.
28409CC=$lt_compiler
28410
28411# Is the compiler the GNU compiler?
28412with_gcc=$GCC
28413
28414# Compiler flag to turn off builtin functions.
28415no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28416
28417# Additional compiler flags for building library objects.
28418pic_flag=$lt_lt_prog_compiler_pic
28419
28420# How to pass a linker flag through the compiler.
28421wl=$lt_lt_prog_compiler_wl
28422
28423# Compiler flag to prevent dynamic linking.
28424link_static_flag=$lt_lt_prog_compiler_static
28425
28426# Does compiler simultaneously support -c and -o options?
28427compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28428
28429# Whether or not to add -lc for building shared libraries.
28430build_libtool_need_lc=$archive_cmds_need_lc
28431
28432# Whether or not to disallow shared libs when runtime libs are static.
28433allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28434
28435# Compiler flag to allow reflexive dlopens.
28436export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28437
28438# Compiler flag to generate shared objects directly from archives.
28439whole_archive_flag_spec=$lt_whole_archive_flag_spec
28440
28441# Whether the compiler copes with passing no objects directly.
28442compiler_needs_object=$lt_compiler_needs_object
28443
28444# Create an old-style archive from a shared archive.
28445old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28446
28447# Create a temporary old-style archive to link instead of a shared archive.
28448old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28449
28450# Commands used to build a shared archive.
28451archive_cmds=$lt_archive_cmds
28452archive_expsym_cmds=$lt_archive_expsym_cmds
28453
28454# Commands used to build a loadable module if different from building
28455# a shared archive.
28456module_cmds=$lt_module_cmds
28457module_expsym_cmds=$lt_module_expsym_cmds
28458
28459# Whether we are building with GNU ld or not.
28460with_gnu_ld=$lt_with_gnu_ld
28461
28462# Flag that allows shared libraries with undefined symbols to be built.
28463allow_undefined_flag=$lt_allow_undefined_flag
28464
28465# Flag that enforces no undefined symbols.
28466no_undefined_flag=$lt_no_undefined_flag
28467
28468# Flag to hardcode \$libdir into a binary during linking.
28469# This must work even if \$libdir does not exist
28470hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28471
28472# Whether we need a single "-rpath" flag with a separated argument.
28473hardcode_libdir_separator=$lt_hardcode_libdir_separator
28474
28475# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28476# DIR into the resulting binary.
28477hardcode_direct=$hardcode_direct
28478
28479# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
28480# DIR into the resulting binary and the resulting library dependency is
28481# "absolute",i.e impossible to change by setting \$shlibpath_var if the
28482# library is relocated.
28483hardcode_direct_absolute=$hardcode_direct_absolute
28484
28485# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28486# into the resulting binary.
28487hardcode_minus_L=$hardcode_minus_L
28488
28489# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28490# into the resulting binary.
28491hardcode_shlibpath_var=$hardcode_shlibpath_var
28492
28493# Set to "yes" if building a shared library automatically hardcodes DIR
28494# into the library and all subsequent libraries and executables linked
28495# against it.
28496hardcode_automatic=$hardcode_automatic
28497
28498# Set to yes if linker adds runtime paths of dependent libraries
28499# to runtime path list.
28500inherit_rpath=$inherit_rpath
28501
28502# Whether libtool must link a program against all its dependency libraries.
28503link_all_deplibs=$link_all_deplibs
28504
28505# Set to "yes" if exported symbols are required.
28506always_export_symbols=$always_export_symbols
28507
28508# The commands to list exported symbols.
28509export_symbols_cmds=$lt_export_symbols_cmds
28510
28511# Symbols that should not be listed in the preloaded symbols.
28512exclude_expsyms=$lt_exclude_expsyms
28513
28514# Symbols that must always be exported.
28515include_expsyms=$lt_include_expsyms
28516
28517# Commands necessary for linking programs (against libraries) with templates.
28518prelink_cmds=$lt_prelink_cmds
28519
28520# Commands necessary for finishing linking programs.
28521postlink_cmds=$lt_postlink_cmds
28522
28523# Specify filename containing input files.
28524file_list_spec=$lt_file_list_spec
28525
28526# How to hardcode a shared library path into an executable.
28527hardcode_action=$hardcode_action
28528
28529# ### END LIBTOOL CONFIG
28530
28531_LT_EOF
28532
28533    cat <<'_LT_EOF' >> "$cfgfile"
28534
28535# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
28536
28537# func_munge_path_list VARIABLE PATH
28538# -----------------------------------
28539# VARIABLE is name of variable containing _space_ separated list of
28540# directories to be munged by the contents of PATH, which is string
28541# having a format:
28542# "DIR[:DIR]:"
28543#       string "DIR[ DIR]" will be prepended to VARIABLE
28544# ":DIR[:DIR]"
28545#       string "DIR[ DIR]" will be appended to VARIABLE
28546# "DIRP[:DIRP]::[DIRA:]DIRA"
28547#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
28548#       "DIRA[ DIRA]" will be appended to VARIABLE
28549# "DIR[:DIR]"
28550#       VARIABLE will be replaced by "DIR[ DIR]"
28551func_munge_path_list ()
28552{
28553    case x$2 in
28554    x)
28555        ;;
28556    *:)
28557        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
28558        ;;
28559    x:*)
28560        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
28561        ;;
28562    *::*)
28563        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
28564        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
28565        ;;
28566    *)
28567        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
28568        ;;
28569    esac
28570}
28571
28572
28573# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
28574func_cc_basename ()
28575{
28576    for cc_temp in $*""; do
28577      case $cc_temp in
28578        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
28579        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
28580        \-*) ;;
28581        *) break;;
28582      esac
28583    done
28584    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
28585}
28586
28587
28588# ### END FUNCTIONS SHARED WITH CONFIGURE
28589
28590_LT_EOF
28591
28592  case $host_os in
28593  aix3*)
28594    cat <<\_LT_EOF >> "$cfgfile"
28595# AIX sometimes has problems with the GCC collect2 program.  For some
28596# reason, if we set the COLLECT_NAMES environment variable, the problems
28597# vanish in a puff of smoke.
28598if test set != "${COLLECT_NAMES+set}"; then
28599  COLLECT_NAMES=
28600  export COLLECT_NAMES
28601fi
28602_LT_EOF
28603    ;;
28604  esac
28605
28606
28607
28608ltmain=$ac_aux_dir/ltmain.sh
28609
28610
28611  # We use sed instead of cat because bash on DJGPP gets confused if
28612  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
28613  # text mode, it properly converts lines to CR/LF.  This bash problem
28614  # is reportedly fixed, but why not run on old versions too?
28615  sed '$q' "$ltmain" >> "$cfgfile" \
28616     || (rm -f "$cfgfile"; exit 1)
28617
28618   mv -f "$cfgfile" "$ofile" ||
28619    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28620  chmod +x "$ofile"
28621
28622 ;;
28623    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
28624        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
28625      esac ;;
28626    "po/stamp-it":C)
28627    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
28628       as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
28629    fi
28630    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
28631    >"po/stamp-it.tmp"
28632    sed '/^#/d
28633	 s/^[[].*] *//
28634	 /^[ 	]*$/d
28635	'"s|^|	$ac_top_srcdir/|" \
28636      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
28637
28638    sed '/^POTFILES =/,/[^\\]$/ {
28639		/^POTFILES =/!d
28640		r po/POTFILES
28641	  }
28642	 ' "po/Makefile.in" >"po/Makefile"
28643    rm -f "po/Makefile.tmp"
28644    mv "po/stamp-it.tmp" "po/stamp-it"
28645   ;;
28646
28647  esac
28648done # for ac_tag
28649
28650
28651as_fn_exit 0
28652_ACEOF
28653ac_clean_files=$ac_clean_files_save
28654
28655test $ac_write_fail = 0 ||
28656  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
28657
28658
28659# configure is writing to config.log, and then calls config.status.
28660# config.status does its own redirection, appending to config.log.
28661# Unfortunately, on DOS this fails, as config.log is still kept open
28662# by configure, so config.status won't be able to write to it; its
28663# output is simply discarded.  So we exec the FD to /dev/null,
28664# effectively closing config.log, so it can be properly (re)opened and
28665# appended to by config.status.  When coming back to configure, we
28666# need to make the FD available again.
28667if test "$no_create" != yes; then
28668  ac_cs_success=:
28669  ac_config_status_args=
28670  test "$silent" = yes &&
28671    ac_config_status_args="$ac_config_status_args --quiet"
28672  exec 5>/dev/null
28673  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28674  exec 5>>config.log
28675  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28676  # would make configure fail if this is the last instruction.
28677  $ac_cs_success || as_fn_exit 1
28678fi
28679if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28680  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28681printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28682fi
28683
28684
28685echo
28686echo $PACKAGE $VERSION
28687
28688echo
28689echo Build GTK+ 2.x UI............. : $enable_gtkui
28690echo Build console UI.............. : $enable_consoleui
28691echo Build for X11................. : $with_x
28692echo
28693echo Enable Gestures............... : $enable_gestures
28694echo Protocols to build dynamically : $DYNAMIC_PRPLS
28695echo Protocols to link statically.. : $STATIC_PRPLS
28696echo
28697echo Build with GStreamer support.. : $enable_gst
28698echo Build for GStreamer version... : $with_gstreamer
28699echo Build with D-Bus support...... : $enable_dbus
28700echo Build with voice and video.... : $enable_vv
28701if test "x$enable_dbus" = "xyes" ; then
28702	eval eval echo D-Bus services directory...... : $DBUS_SERVICES_DIR
28703fi
28704echo Build with GNU Libidn......... : $enable_idn
28705echo Build with NetworkManager..... : $enable_nm
28706echo SSL Library/Libraries......... : $msg_ssl
28707if test "x$SSL_CERTIFICATES_DIR" != "x" ; then
28708	eval eval echo SSL CA certificates directory. : $SSL_CERTIFICATES_DIR
28709fi
28710echo Build with Cyrus SASL support. : $enable_cyrus_sasl
28711echo Use kerberos 4 with zephyr.... : $kerberos
28712echo Use external libzephyr........ : $zephyr
28713echo Use external libgadu.......... : $have_libgadu
28714echo Install pixmaps............... : $enable_pixmaps
28715echo Old tray icon compatibility... : $enable_traycompat
28716echo Install translations.......... : $enable_i18n
28717echo Has you....................... : yes
28718echo
28719echo Use XScreenSaver Extension.... : $enable_screensaver
28720echo Use X Session Management...... : $enable_sm
28721echo Use startup notification...... : $enable_startup_notification
28722echo Build with GtkSpell support... : $enable_gtkspell
28723echo Build Unity integration plugin.: $enable_unity
28724echo
28725echo Build with plugin support..... : $enable_plugins
28726echo Build with Mono support....... : $enable_mono
28727echo Build with Perl support....... : $enable_perl
28728echo Build with Tcl support........ : $enable_tcl
28729echo Build with Tk support......... : $enable_tk
28730echo
28731echo Print debugging messages...... : $enable_debug
28732echo
28733eval eval echo Pidgin will be installed in $bindir.
28734if test "x$pidginpath" != "x" ; then
28735	echo Warning: You have an old copy of Pidgin at $pidginpath.
28736fi
28737if test "x$enable_pixmaps" = "xno" ; then
28738	echo
28739	echo Warning: You have disabled the installation of pixmap data, but Pidgin
28740	echo still requires installed pixmaps.  Be sure you know what you are doing.
28741fi
28742if test "x$enable_i18n" = "xno" ; then
28743	echo
28744	echo Warning: You have disabled the building and installation of translation
28745	echo data.  This will prevent building pidgin.desktop and the GConf schemas.
28746	echo Be sure you know what you are doing.
28747fi
28748echo
28749echo configure complete, now type \'make\'
28750echo
28751
28752
28753