1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for sofia-sip 1.12.10devel.
4#
5#
6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18  emulate sh
19  NULLCMD=:
20  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21  # is contrary to our usage.  Disable this feature.
22  alias -g '${1+"$@"}'='"$@"'
23  setopt NO_GLOB_SUBST
24else
25  case `(set -o) 2>/dev/null` in #(
26  *posix*) :
27    set -o posix ;; #(
28  *) :
29     ;;
30esac
31fi
32
33
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45  as_echo='print -r --'
46  as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48  as_echo='printf %s\n'
49  as_echo_n='printf %s'
50else
51  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53    as_echo_n='/usr/ucb/echo -n'
54  else
55    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56    as_echo_n_body='eval
57      arg=$1;
58      case $arg in #(
59      *"$as_nl"*)
60	expr "X$arg" : "X\\(.*\\)$as_nl";
61	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62      esac;
63      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64    '
65    export as_echo_n_body
66    as_echo_n='sh -c $as_echo_n_body as_echo'
67  fi
68  export as_echo_body
69  as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74  PATH_SEPARATOR=:
75  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77      PATH_SEPARATOR=';'
78  }
79fi
80
81
82# IFS
83# We need space, tab and new line, in precisely that order.  Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" ""	$as_nl"
88
89# Find who we are.  Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92  *[\\/]* ) as_myself=$0 ;;
93  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96  IFS=$as_save_IFS
97  test -z "$as_dir" && as_dir=.
98    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99  done
100IFS=$as_save_IFS
101
102     ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107  as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111  exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there.  '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136  # into an infinite loop, continuously re-executing ourselves.
137  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138    _as_can_reexec=no; export _as_can_reexec;
139    # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147  *v*x* | *x*v* ) as_opts=-vx ;;
148  *v* ) as_opts=-v ;;
149  *x* ) as_opts=-x ;;
150  * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157  fi
158  # We don't want this to propagate to other subprocesses.
159          { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162  emulate sh
163  NULLCMD=:
164  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165  # is contrary to our usage.  Disable this feature.
166  alias -g '\${1+\"\$@\"}'='\"\$@\"'
167  setopt NO_GLOB_SUBST
168else
169  case \`(set -o) 2>/dev/null\` in #(
170  *posix*) :
171    set -o posix ;; #(
172  *) :
173     ;;
174esac
175fi
176"
177  as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191  exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1
200
201  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205    PATH=/empty FPATH=/empty; export PATH FPATH
206    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208  if (eval "$as_required") 2>/dev/null; then :
209  as_have_required=yes
210else
211  as_have_required=no
212fi
213  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215else
216  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217as_found=false
218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219do
220  IFS=$as_save_IFS
221  test -z "$as_dir" && as_dir=.
222  as_found=:
223  case $as_dir in #(
224	 /*)
225	   for as_base in sh bash ksh sh5; do
226	     # Try only shells that exist, to save several forks.
227	     as_shell=$as_dir/$as_base
228	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230  CONFIG_SHELL=$as_shell as_have_required=yes
231		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  break 2
233fi
234fi
235	   done;;
236       esac
237  as_found=false
238done
239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241  CONFIG_SHELL=$SHELL as_have_required=yes
242fi; }
243IFS=$as_save_IFS
244
245
246      if test "x$CONFIG_SHELL" != x; then :
247  export CONFIG_SHELL
248             # We cannot yet assume a decent shell, so we have to provide a
249# neutralization value for shells without unset; and this also
250# works around shells that cannot unset nonexistent variables.
251# Preserve -v and -x to the replacement shell.
252BASH_ENV=/dev/null
253ENV=/dev/null
254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255case $- in # ((((
256  *v*x* | *x*v* ) as_opts=-vx ;;
257  *v* ) as_opts=-v ;;
258  *x* ) as_opts=-x ;;
259  * ) as_opts= ;;
260esac
261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262# Admittedly, this is quite paranoid, since all the known shells bail
263# out after a failed `exec'.
264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265exit 255
266fi
267
268    if test x$as_have_required = xno; then :
269  $as_echo "$0: This script requires a shell more modern than all"
270  $as_echo "$0: the shells that I found on your system."
271  if test x${ZSH_VERSION+set} = xset ; then
272    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274  else
275    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276$0: including any error possibly output before this
277$0: message. Then install a modern shell, or manually run
278$0: the script under such a shell if you do have one."
279  fi
280  exit 1
281fi
282fi
283fi
284SHELL=${CONFIG_SHELL-/bin/sh}
285export SHELL
286# Unset more variables known to interfere with behavior of common tools.
287CLICOLOR_FORCE= GREP_OPTIONS=
288unset CLICOLOR_FORCE GREP_OPTIONS
289
290## --------------------- ##
291## M4sh Shell Functions. ##
292## --------------------- ##
293# as_fn_unset VAR
294# ---------------
295# Portably unset VAR.
296as_fn_unset ()
297{
298  { eval $1=; unset $1;}
299}
300as_unset=as_fn_unset
301
302# as_fn_set_status STATUS
303# -----------------------
304# Set $? to STATUS, without forking.
305as_fn_set_status ()
306{
307  return $1
308} # as_fn_set_status
309
310# as_fn_exit STATUS
311# -----------------
312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313as_fn_exit ()
314{
315  set +e
316  as_fn_set_status $1
317  exit $1
318} # as_fn_exit
319
320# as_fn_mkdir_p
321# -------------
322# Create "$as_dir" as a directory, including parents if necessary.
323as_fn_mkdir_p ()
324{
325
326  case $as_dir in #(
327  -*) as_dir=./$as_dir;;
328  esac
329  test -d "$as_dir" || eval $as_mkdir_p || {
330    as_dirs=
331    while :; do
332      case $as_dir in #(
333      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334      *) as_qdir=$as_dir;;
335      esac
336      as_dirs="'$as_qdir' $as_dirs"
337      as_dir=`$as_dirname -- "$as_dir" ||
338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339	 X"$as_dir" : 'X\(//\)[^/]' \| \
340	 X"$as_dir" : 'X\(//\)$' \| \
341	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342$as_echo X"$as_dir" |
343    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344	    s//\1/
345	    q
346	  }
347	  /^X\(\/\/\)[^/].*/{
348	    s//\1/
349	    q
350	  }
351	  /^X\(\/\/\)$/{
352	    s//\1/
353	    q
354	  }
355	  /^X\(\/\).*/{
356	    s//\1/
357	    q
358	  }
359	  s/.*/./; q'`
360      test -d "$as_dir" && break
361    done
362    test -z "$as_dirs" || eval "mkdir $as_dirs"
363  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366} # as_fn_mkdir_p
367
368# as_fn_executable_p FILE
369# -----------------------
370# Test if FILE is an executable regular file.
371as_fn_executable_p ()
372{
373  test -f "$1" && test -x "$1"
374} # as_fn_executable_p
375# as_fn_append VAR VALUE
376# ----------------------
377# Append the text in VALUE to the end of the definition contained in VAR. Take
378# advantage of any shell optimizations that allow amortized linear growth over
379# repeated appends, instead of the typical quadratic growth present in naive
380# implementations.
381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382  eval 'as_fn_append ()
383  {
384    eval $1+=\$2
385  }'
386else
387  as_fn_append ()
388  {
389    eval $1=\$$1\$2
390  }
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399  eval 'as_fn_arith ()
400  {
401    as_val=$(( $* ))
402  }'
403else
404  as_fn_arith ()
405  {
406    as_val=`expr "$@" || test $? -eq 1`
407  }
408fi # as_fn_arith
409
410
411# as_fn_error STATUS ERROR [LINENO LOG_FD]
412# ----------------------------------------
413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415# script with STATUS, using 1 if that was 0.
416as_fn_error ()
417{
418  as_status=$1; test $as_status -eq 0 && as_status=1
419  if test "$4"; then
420    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422  fi
423  $as_echo "$as_me: error: $2" >&2
424  as_fn_exit $as_status
425} # as_fn_error
426
427if expr a : '\(a\)' >/dev/null 2>&1 &&
428   test "X`expr 00001 : '.*\(...\)'`" = X001; then
429  as_expr=expr
430else
431  as_expr=false
432fi
433
434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435  as_basename=basename
436else
437  as_basename=false
438fi
439
440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441  as_dirname=dirname
442else
443  as_dirname=false
444fi
445
446as_me=`$as_basename -- "$0" ||
447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448	 X"$0" : 'X\(//\)$' \| \
449	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450$as_echo X/"$0" |
451    sed '/^.*\/\([^/][^/]*\)\/*$/{
452	    s//\1/
453	    q
454	  }
455	  /^X\/\(\/\/\)$/{
456	    s//\1/
457	    q
458	  }
459	  /^X\/\(\/\).*/{
460	    s//\1/
461	    q
462	  }
463	  s/.*/./; q'`
464
465# Avoid depending upon Character Ranges.
466as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469as_cr_digits='0123456789'
470as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473  as_lineno_1=$LINENO as_lineno_1a=$LINENO
474  as_lineno_2=$LINENO as_lineno_2a=$LINENO
475  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478  sed -n '
479    p
480    /[$]LINENO/=
481  ' <$as_myself |
482    sed '
483      s/[$]LINENO.*/&-/
484      t lineno
485      b
486      :lineno
487      N
488      :loop
489      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490      t loop
491      s/-\n.*//
492    ' >$as_me.lineno &&
493  chmod +x "$as_me.lineno" ||
494    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497  # already done that, so ensure we don't try to do so again and fall
498  # in an infinite loop.  This has already happened in practice.
499  _as_can_reexec=no; export _as_can_reexec
500  # Don't try to exec as it changes $[0], causing all sort of problems
501  # (the dirname of $[0] is not the place where we might find the
502  # original and so on.  Autoconf is especially sensitive to this).
503  . "./$as_me.lineno"
504  # Exit status is that of the last command.
505  exit
506}
507
508ECHO_C= ECHO_N= ECHO_T=
509case `echo -n x` in #(((((
510-n*)
511  case `echo 'xy\c'` in
512  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
513  xy)  ECHO_C='\c';;
514  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515       ECHO_T='	';;
516  esac;;
517*)
518  ECHO_N='-n';;
519esac
520
521rm -f conf$$ conf$$.exe conf$$.file
522if test -d conf$$.dir; then
523  rm -f conf$$.dir/conf$$.file
524else
525  rm -f conf$$.dir
526  mkdir conf$$.dir 2>/dev/null
527fi
528if (echo >conf$$.file) 2>/dev/null; then
529  if ln -s conf$$.file conf$$ 2>/dev/null; then
530    as_ln_s='ln -s'
531    # ... but there are two gotchas:
532    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534    # In both cases, we have to default to `cp -pR'.
535    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536      as_ln_s='cp -pR'
537  elif ln conf$$.file conf$$ 2>/dev/null; then
538    as_ln_s=ln
539  else
540    as_ln_s='cp -pR'
541  fi
542else
543  as_ln_s='cp -pR'
544fi
545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546rmdir conf$$.dir 2>/dev/null
547
548if mkdir -p . 2>/dev/null; then
549  as_mkdir_p='mkdir -p "$as_dir"'
550else
551  test -d ./-p && rmdir ./-p
552  as_mkdir_p=false
553fi
554
555as_test_x='test -x'
556as_executable_p=as_fn_executable_p
557
558# Sed expression to map a string onto a valid CPP name.
559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561# Sed expression to map a string onto a valid variable name.
562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567test -n "$DJDIR" || exec 7<&0 </dev/null
568exec 6>&1
569
570# Name of the host.
571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572# so uname gets run too.
573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575#
576# Initializations.
577#
578ac_default_prefix=/usr/local
579ac_clean_files=
580ac_config_libobj_dir=.
581LIBOBJS=
582cross_compiling=no
583subdirs=
584MFLAGS=
585MAKEFLAGS=
586
587# Identity of this package.
588PACKAGE_NAME='sofia-sip'
589PACKAGE_TARNAME='sofia-sip'
590PACKAGE_VERSION='1.12.10devel'
591PACKAGE_STRING='sofia-sip 1.12.10devel'
592PACKAGE_BUGREPORT=''
593PACKAGE_URL=''
594
595ac_unique_file="libsofia-sip-ua/sip/sofia-sip/sip.h"
596# Factoring default headers for most tests.
597ac_includes_default="\
598#include <stdio.h>
599#ifdef HAVE_SYS_TYPES_H
600# include <sys/types.h>
601#endif
602#ifdef HAVE_SYS_STAT_H
603# include <sys/stat.h>
604#endif
605#ifdef STDC_HEADERS
606# include <stdlib.h>
607# include <stddef.h>
608#else
609# ifdef HAVE_STDLIB_H
610#  include <stdlib.h>
611# endif
612#endif
613#ifdef HAVE_STRING_H
614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615#  include <memory.h>
616# endif
617# include <string.h>
618#endif
619#ifdef HAVE_STRINGS_H
620# include <strings.h>
621#endif
622#ifdef HAVE_INTTYPES_H
623# include <inttypes.h>
624#endif
625#ifdef HAVE_STDINT_H
626# include <stdint.h>
627#endif
628#ifdef HAVE_UNISTD_H
629# include <unistd.h>
630#endif"
631
632ac_subst_vars='am__EXEEXT_FALSE
633am__EXEEXT_TRUE
634LTLIBOBJS
635LIBOBJS
636HAVE_NTLM_FALSE
637HAVE_NTLM_TRUE
638HAVE_NTH_FALSE
639HAVE_NTH_TRUE
640HAVE_STUN_FALSE
641HAVE_STUN_TRUE
642HAVE_ZLIB_FALSE
643HAVE_ZLIB_TRUE
644HAVE_CHECK_FALSE
645HAVE_CHECK_TRUE
646CHECK_LIBS
647CHECK_CFLAGS
648HAVE_TLS_FALSE
649HAVE_TLS_TRUE
650openssl_LIBS
651openssl_CFLAGS
652REPLACE_LIBADD
653ALLOCA
654SOFIA_GLIB_PKG_REQUIRES
655GLIB_VERSION
656HAVE_GLIB_FALSE
657HAVE_GLIB_TRUE
658GLIB_LIBS
659GLIB_CFLAGS
660PKG_CONFIG
661COREFOUNDATION_FALSE
662COREFOUNDATION_TRUE
663SOFIA_PLAT_CFLAGS
664HAVE_DOXYGEN_FALSE
665HAVE_DOXYGEN_TRUE
666DOXYGEN
667ACLOCAL_AMFLAGS
668EXPENSIVE_CHECKS_FALSE
669EXPENSIVE_CHECKS_TRUE
670TESTS_ENVIRONMENT
671NDEBUG_FALSE
672NDEBUG_TRUE
673LT_SYS_LIBRARY_PATH
674OTOOL64
675OTOOL
676LIPO
677NMEDIT
678DSYMUTIL
679MANIFEST_TOOL
680RANLIB
681ac_ct_AR
682DLLTOOL
683OBJDUMP
684LN_S
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688FGREP
689SED
690LIBTOOL
691LD
692AR
693ETAGS
694MOSTLYCLEANFILES
695COVERAGE_FLAGS
696GCOV
697HAVE_GENPNG_FALSE
698HAVE_GENPNG_TRUE
699HAVE_LCOV_FALSE
700HAVE_LCOV_TRUE
701ENABLE_COVERAGE_FALSE
702ENABLE_COVERAGE_TRUE
703GENPNG
704GENHTML
705LCOV
706SOFIA_GLIB_CFLAGS
707SOFIA_CFLAGS
708CWFLAG
709HAVE_MINGW32_FALSE
710HAVE_MINGW32_TRUE
711MINGW_ENVIRONMENT
712EGREP
713GREP
714CPP
715am__fastdepCC_FALSE
716am__fastdepCC_TRUE
717CCDEPMODE
718am__nodep
719AMDEPBACKSLASH
720AMDEP_FALSE
721AMDEP_TRUE
722am__quote
723am__include
724DEPDIR
725OBJEXT
726EXEEXT
727ac_ct_CC
728CPPFLAGS
729LDFLAGS
730CFLAGS
731CC
732AM_BACKSLASH
733AM_DEFAULT_VERBOSITY
734AM_DEFAULT_V
735AM_V
736am__untar
737am__tar
738AMTAR
739am__leading_dot
740SET_MAKE
741AWK
742mkdir_p
743MKDIR_P
744INSTALL_STRIP_PROGRAM
745STRIP
746install_sh
747MAKEINFO
748AUTOHEADER
749AUTOMAKE
750AUTOCONF
751ACLOCAL
752VERSION
753PACKAGE
754CYGPATH_W
755am__isrc
756INSTALL_DATA
757INSTALL_SCRIPT
758INSTALL_PROGRAM
759target_os
760target_vendor
761target_cpu
762target
763host_os
764host_vendor
765host_cpu
766host
767build_os
768build_vendor
769build_cpu
770build
771LIBVER_SOFIA_SIP_UA_GLIB_SOVER
772LIBVER_SOFIA_SIP_UA_GLIB_AGE
773LIBVER_SOFIA_SIP_UA_GLIB_REV
774LIBVER_SOFIA_SIP_UA_GLIB_CUR
775LIBVER_SOFIA_SIP_UA_SOVER
776LIBVER_SOFIA_SIP_UA_AGE
777LIBVER_SOFIA_SIP_UA_REV
778LIBVER_SOFIA_SIP_UA_CUR
779include_sofiadir
780VER_LIBSOFIA_SIP_UA_MAJOR_MINOR
781target_alias
782host_alias
783build_alias
784LIBS
785ECHO_T
786ECHO_N
787ECHO_C
788DEFS
789mandir
790localedir
791libdir
792psdir
793pdfdir
794dvidir
795htmldir
796infodir
797docdir
798oldincludedir
799includedir
800runstatedir
801localstatedir
802sharedstatedir
803sysconfdir
804datadir
805datarootdir
806libexecdir
807sbindir
808bindir
809program_transform_name
810prefix
811exec_prefix
812PACKAGE_URL
813PACKAGE_BUGREPORT
814PACKAGE_STRING
815PACKAGE_VERSION
816PACKAGE_TARNAME
817PACKAGE_NAME
818PATH_SEPARATOR
819SHELL'
820ac_subst_files=''
821ac_user_opts='
822enable_option_checking
823enable_silent_rules
824enable_dependency_tracking
825enable_coverage
826enable_shared
827enable_static
828with_pic
829enable_fast_install
830with_aix_soname
831with_gnu_ld
832with_sysroot
833enable_libtool_lock
834enable_ndebug
835enable_expensive_checks
836with_doxygen
837enable_64
838enable_experimental
839enable_tag_cast
840enable_size_compat
841enable_corefoundation
842enable_ip6
843with_rt
844with_glib
845with_glib_dir
846enable_poll_port
847with_openssl
848with_sigcomp
849enable_sctp
850enable_stun
851enable_nth
852enable_ntlm
853enable_memleak_log
854'
855      ac_precious_vars='build_alias
856host_alias
857target_alias
858CC
859CFLAGS
860LDFLAGS
861LIBS
862CPPFLAGS
863CPP
864SOFIA_CFLAGS
865SOFIA_GLIB_CFLAGS
866LT_SYS_LIBRARY_PATH'
867
868
869# Initialize some variables set by options.
870ac_init_help=
871ac_init_version=false
872ac_unrecognized_opts=
873ac_unrecognized_sep=
874# The variables have the same names as the options, with
875# dashes changed to underlines.
876cache_file=/dev/null
877exec_prefix=NONE
878no_create=
879no_recursion=
880prefix=NONE
881program_prefix=NONE
882program_suffix=NONE
883program_transform_name=s,x,x,
884silent=
885site=
886srcdir=
887verbose=
888x_includes=NONE
889x_libraries=NONE
890
891# Installation directory options.
892# These are left unexpanded so users can "make install exec_prefix=/foo"
893# and all the variables that are supposed to be based on exec_prefix
894# by default will actually change.
895# Use braces instead of parens because sh, perl, etc. also accept them.
896# (The list follows the same order as the GNU Coding Standards.)
897bindir='${exec_prefix}/bin'
898sbindir='${exec_prefix}/sbin'
899libexecdir='${exec_prefix}/libexec'
900datarootdir='${prefix}/share'
901datadir='${datarootdir}'
902sysconfdir='${prefix}/etc'
903sharedstatedir='${prefix}/com'
904localstatedir='${prefix}/var'
905runstatedir='${localstatedir}/run'
906includedir='${prefix}/include'
907oldincludedir='/usr/include'
908docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
909infodir='${datarootdir}/info'
910htmldir='${docdir}'
911dvidir='${docdir}'
912pdfdir='${docdir}'
913psdir='${docdir}'
914libdir='${exec_prefix}/lib'
915localedir='${datarootdir}/locale'
916mandir='${datarootdir}/man'
917
918ac_prev=
919ac_dashdash=
920for ac_option
921do
922  # If the previous option needs an argument, assign it.
923  if test -n "$ac_prev"; then
924    eval $ac_prev=\$ac_option
925    ac_prev=
926    continue
927  fi
928
929  case $ac_option in
930  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931  *=)   ac_optarg= ;;
932  *)    ac_optarg=yes ;;
933  esac
934
935  # Accept the important Cygnus configure options, so we can diagnose typos.
936
937  case $ac_dashdash$ac_option in
938  --)
939    ac_dashdash=yes ;;
940
941  -bindir | --bindir | --bindi | --bind | --bin | --bi)
942    ac_prev=bindir ;;
943  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
944    bindir=$ac_optarg ;;
945
946  -build | --build | --buil | --bui | --bu)
947    ac_prev=build_alias ;;
948  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
949    build_alias=$ac_optarg ;;
950
951  -cache-file | --cache-file | --cache-fil | --cache-fi \
952  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
953    ac_prev=cache_file ;;
954  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
955  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
956    cache_file=$ac_optarg ;;
957
958  --config-cache | -C)
959    cache_file=config.cache ;;
960
961  -datadir | --datadir | --datadi | --datad)
962    ac_prev=datadir ;;
963  -datadir=* | --datadir=* | --datadi=* | --datad=*)
964    datadir=$ac_optarg ;;
965
966  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
967  | --dataroo | --dataro | --datar)
968    ac_prev=datarootdir ;;
969  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
970  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
971    datarootdir=$ac_optarg ;;
972
973  -disable-* | --disable-*)
974    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
975    # Reject names that are not valid shell variable names.
976    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
977      as_fn_error $? "invalid feature name: $ac_useropt"
978    ac_useropt_orig=$ac_useropt
979    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
980    case $ac_user_opts in
981      *"
982"enable_$ac_useropt"
983"*) ;;
984      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
985	 ac_unrecognized_sep=', ';;
986    esac
987    eval enable_$ac_useropt=no ;;
988
989  -docdir | --docdir | --docdi | --doc | --do)
990    ac_prev=docdir ;;
991  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
992    docdir=$ac_optarg ;;
993
994  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
995    ac_prev=dvidir ;;
996  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
997    dvidir=$ac_optarg ;;
998
999  -enable-* | --enable-*)
1000    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1001    # Reject names that are not valid shell variable names.
1002    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1003      as_fn_error $? "invalid feature name: $ac_useropt"
1004    ac_useropt_orig=$ac_useropt
1005    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1006    case $ac_user_opts in
1007      *"
1008"enable_$ac_useropt"
1009"*) ;;
1010      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1011	 ac_unrecognized_sep=', ';;
1012    esac
1013    eval enable_$ac_useropt=\$ac_optarg ;;
1014
1015  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1016  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1017  | --exec | --exe | --ex)
1018    ac_prev=exec_prefix ;;
1019  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1020  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1021  | --exec=* | --exe=* | --ex=*)
1022    exec_prefix=$ac_optarg ;;
1023
1024  -gas | --gas | --ga | --g)
1025    # Obsolete; use --with-gas.
1026    with_gas=yes ;;
1027
1028  -help | --help | --hel | --he | -h)
1029    ac_init_help=long ;;
1030  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1031    ac_init_help=recursive ;;
1032  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1033    ac_init_help=short ;;
1034
1035  -host | --host | --hos | --ho)
1036    ac_prev=host_alias ;;
1037  -host=* | --host=* | --hos=* | --ho=*)
1038    host_alias=$ac_optarg ;;
1039
1040  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1041    ac_prev=htmldir ;;
1042  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1043  | --ht=*)
1044    htmldir=$ac_optarg ;;
1045
1046  -includedir | --includedir | --includedi | --included | --include \
1047  | --includ | --inclu | --incl | --inc)
1048    ac_prev=includedir ;;
1049  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1050  | --includ=* | --inclu=* | --incl=* | --inc=*)
1051    includedir=$ac_optarg ;;
1052
1053  -infodir | --infodir | --infodi | --infod | --info | --inf)
1054    ac_prev=infodir ;;
1055  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1056    infodir=$ac_optarg ;;
1057
1058  -libdir | --libdir | --libdi | --libd)
1059    ac_prev=libdir ;;
1060  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1061    libdir=$ac_optarg ;;
1062
1063  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1064  | --libexe | --libex | --libe)
1065    ac_prev=libexecdir ;;
1066  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1067  | --libexe=* | --libex=* | --libe=*)
1068    libexecdir=$ac_optarg ;;
1069
1070  -localedir | --localedir | --localedi | --localed | --locale)
1071    ac_prev=localedir ;;
1072  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1073    localedir=$ac_optarg ;;
1074
1075  -localstatedir | --localstatedir | --localstatedi | --localstated \
1076  | --localstate | --localstat | --localsta | --localst | --locals)
1077    ac_prev=localstatedir ;;
1078  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1079  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1080    localstatedir=$ac_optarg ;;
1081
1082  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1083    ac_prev=mandir ;;
1084  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1085    mandir=$ac_optarg ;;
1086
1087  -nfp | --nfp | --nf)
1088    # Obsolete; use --without-fp.
1089    with_fp=no ;;
1090
1091  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1092  | --no-cr | --no-c | -n)
1093    no_create=yes ;;
1094
1095  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1096  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1097    no_recursion=yes ;;
1098
1099  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1100  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1101  | --oldin | --oldi | --old | --ol | --o)
1102    ac_prev=oldincludedir ;;
1103  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1104  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1105  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1106    oldincludedir=$ac_optarg ;;
1107
1108  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1109    ac_prev=prefix ;;
1110  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1111    prefix=$ac_optarg ;;
1112
1113  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1114  | --program-pre | --program-pr | --program-p)
1115    ac_prev=program_prefix ;;
1116  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1117  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1118    program_prefix=$ac_optarg ;;
1119
1120  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1121  | --program-suf | --program-su | --program-s)
1122    ac_prev=program_suffix ;;
1123  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1124  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1125    program_suffix=$ac_optarg ;;
1126
1127  -program-transform-name | --program-transform-name \
1128  | --program-transform-nam | --program-transform-na \
1129  | --program-transform-n | --program-transform- \
1130  | --program-transform | --program-transfor \
1131  | --program-transfo | --program-transf \
1132  | --program-trans | --program-tran \
1133  | --progr-tra | --program-tr | --program-t)
1134    ac_prev=program_transform_name ;;
1135  -program-transform-name=* | --program-transform-name=* \
1136  | --program-transform-nam=* | --program-transform-na=* \
1137  | --program-transform-n=* | --program-transform-=* \
1138  | --program-transform=* | --program-transfor=* \
1139  | --program-transfo=* | --program-transf=* \
1140  | --program-trans=* | --program-tran=* \
1141  | --progr-tra=* | --program-tr=* | --program-t=*)
1142    program_transform_name=$ac_optarg ;;
1143
1144  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1145    ac_prev=pdfdir ;;
1146  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1147    pdfdir=$ac_optarg ;;
1148
1149  -psdir | --psdir | --psdi | --psd | --ps)
1150    ac_prev=psdir ;;
1151  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1152    psdir=$ac_optarg ;;
1153
1154  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1155  | -silent | --silent | --silen | --sile | --sil)
1156    silent=yes ;;
1157
1158  -runstatedir | --runstatedir | --runstatedi | --runstated \
1159  | --runstate | --runstat | --runsta | --runst | --runs \
1160  | --run | --ru | --r)
1161    ac_prev=runstatedir ;;
1162  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1163  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1164  | --run=* | --ru=* | --r=*)
1165    runstatedir=$ac_optarg ;;
1166
1167  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168    ac_prev=sbindir ;;
1169  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170  | --sbi=* | --sb=*)
1171    sbindir=$ac_optarg ;;
1172
1173  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175  | --sharedst | --shareds | --shared | --share | --shar \
1176  | --sha | --sh)
1177    ac_prev=sharedstatedir ;;
1178  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181  | --sha=* | --sh=*)
1182    sharedstatedir=$ac_optarg ;;
1183
1184  -site | --site | --sit)
1185    ac_prev=site ;;
1186  -site=* | --site=* | --sit=*)
1187    site=$ac_optarg ;;
1188
1189  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190    ac_prev=srcdir ;;
1191  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192    srcdir=$ac_optarg ;;
1193
1194  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195  | --syscon | --sysco | --sysc | --sys | --sy)
1196    ac_prev=sysconfdir ;;
1197  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199    sysconfdir=$ac_optarg ;;
1200
1201  -target | --target | --targe | --targ | --tar | --ta | --t)
1202    ac_prev=target_alias ;;
1203  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204    target_alias=$ac_optarg ;;
1205
1206  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207    verbose=yes ;;
1208
1209  -version | --version | --versio | --versi | --vers | -V)
1210    ac_init_version=: ;;
1211
1212  -with-* | --with-*)
1213    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214    # Reject names that are not valid shell variable names.
1215    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216      as_fn_error $? "invalid package name: $ac_useropt"
1217    ac_useropt_orig=$ac_useropt
1218    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219    case $ac_user_opts in
1220      *"
1221"with_$ac_useropt"
1222"*) ;;
1223      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224	 ac_unrecognized_sep=', ';;
1225    esac
1226    eval with_$ac_useropt=\$ac_optarg ;;
1227
1228  -without-* | --without-*)
1229    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230    # Reject names that are not valid shell variable names.
1231    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232      as_fn_error $? "invalid package name: $ac_useropt"
1233    ac_useropt_orig=$ac_useropt
1234    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235    case $ac_user_opts in
1236      *"
1237"with_$ac_useropt"
1238"*) ;;
1239      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240	 ac_unrecognized_sep=', ';;
1241    esac
1242    eval with_$ac_useropt=no ;;
1243
1244  --x)
1245    # Obsolete; use --with-x.
1246    with_x=yes ;;
1247
1248  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249  | --x-incl | --x-inc | --x-in | --x-i)
1250    ac_prev=x_includes ;;
1251  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253    x_includes=$ac_optarg ;;
1254
1255  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257    ac_prev=x_libraries ;;
1258  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260    x_libraries=$ac_optarg ;;
1261
1262  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263Try \`$0 --help' for more information"
1264    ;;
1265
1266  *=*)
1267    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268    # Reject names that are not valid shell variable names.
1269    case $ac_envvar in #(
1270      '' | [0-9]* | *[!_$as_cr_alnum]* )
1271      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272    esac
1273    eval $ac_envvar=\$ac_optarg
1274    export $ac_envvar ;;
1275
1276  *)
1277    # FIXME: should be removed in autoconf 3.0.
1278    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282    ;;
1283
1284  esac
1285done
1286
1287if test -n "$ac_prev"; then
1288  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289  as_fn_error $? "missing argument to $ac_option"
1290fi
1291
1292if test -n "$ac_unrecognized_opts"; then
1293  case $enable_option_checking in
1294    no) ;;
1295    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297  esac
1298fi
1299
1300# Check all directory arguments for consistency.
1301for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302		datadir sysconfdir sharedstatedir localstatedir includedir \
1303		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304		libdir localedir mandir runstatedir
1305do
1306  eval ac_val=\$$ac_var
1307  # Remove trailing slashes.
1308  case $ac_val in
1309    */ )
1310      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311      eval $ac_var=\$ac_val;;
1312  esac
1313  # Be sure to have absolute directory names.
1314  case $ac_val in
1315    [\\/$]* | ?:[\\/]* )  continue;;
1316    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317  esac
1318  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319done
1320
1321# There might be people who depend on the old broken behavior: `$host'
1322# used to hold the argument of --host etc.
1323# FIXME: To remove some day.
1324build=$build_alias
1325host=$host_alias
1326target=$target_alias
1327
1328# FIXME: To remove some day.
1329if test "x$host_alias" != x; then
1330  if test "x$build_alias" = x; then
1331    cross_compiling=maybe
1332  elif test "x$build_alias" != "x$host_alias"; then
1333    cross_compiling=yes
1334  fi
1335fi
1336
1337ac_tool_prefix=
1338test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340test "$silent" = yes && exec 6>/dev/null
1341
1342
1343ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344ac_ls_di=`ls -di .` &&
1345ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346  as_fn_error $? "working directory cannot be determined"
1347test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348  as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351# Find the source files, if location was not specified.
1352if test -z "$srcdir"; then
1353  ac_srcdir_defaulted=yes
1354  # Try the directory containing this script, then the parent directory.
1355  ac_confdir=`$as_dirname -- "$as_myself" ||
1356$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357	 X"$as_myself" : 'X\(//\)[^/]' \| \
1358	 X"$as_myself" : 'X\(//\)$' \| \
1359	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360$as_echo X"$as_myself" |
1361    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362	    s//\1/
1363	    q
1364	  }
1365	  /^X\(\/\/\)[^/].*/{
1366	    s//\1/
1367	    q
1368	  }
1369	  /^X\(\/\/\)$/{
1370	    s//\1/
1371	    q
1372	  }
1373	  /^X\(\/\).*/{
1374	    s//\1/
1375	    q
1376	  }
1377	  s/.*/./; q'`
1378  srcdir=$ac_confdir
1379  if test ! -r "$srcdir/$ac_unique_file"; then
1380    srcdir=..
1381  fi
1382else
1383  ac_srcdir_defaulted=no
1384fi
1385if test ! -r "$srcdir/$ac_unique_file"; then
1386  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388fi
1389ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390ac_abs_confdir=`(
1391	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392	pwd)`
1393# When building in place, set srcdir=.
1394if test "$ac_abs_confdir" = "$ac_pwd"; then
1395  srcdir=.
1396fi
1397# Remove unnecessary trailing slashes from srcdir.
1398# Double slashes in file names in object file debugging info
1399# mess up M-x gdb in Emacs.
1400case $srcdir in
1401*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402esac
1403for ac_var in $ac_precious_vars; do
1404  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405  eval ac_env_${ac_var}_value=\$${ac_var}
1406  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408done
1409
1410#
1411# Report the --help message.
1412#
1413if test "$ac_init_help" = "long"; then
1414  # Omit some internal or obsolete options to make the list less imposing.
1415  # This message is too long to be a string in the A/UX 3.1 sh.
1416  cat <<_ACEOF
1417\`configure' configures sofia-sip 1.12.10devel to adapt to many kinds of systems.
1418
1419Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424Defaults for the options are specified in brackets.
1425
1426Configuration:
1427  -h, --help              display this help and exit
1428      --help=short        display options specific to this package
1429      --help=recursive    display the short help of all the included packages
1430  -V, --version           display version information and exit
1431  -q, --quiet, --silent   do not print \`checking ...' messages
1432      --cache-file=FILE   cache test results in FILE [disabled]
1433  -C, --config-cache      alias for \`--cache-file=config.cache'
1434  -n, --no-create         do not create output files
1435      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437Installation directories:
1438  --prefix=PREFIX         install architecture-independent files in PREFIX
1439                          [$ac_default_prefix]
1440  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                          [PREFIX]
1442
1443By default, \`make install' will install all the files in
1444\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446for instance \`--prefix=\$HOME'.
1447
1448For better control, use the options below.
1449
1450Fine tuning of the installation directories:
1451  --bindir=DIR            user executables [EPREFIX/bin]
1452  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453  --libexecdir=DIR        program executables [EPREFIX/libexec]
1454  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1458  --libdir=DIR            object code libraries [EPREFIX/lib]
1459  --includedir=DIR        C header files [PREFIX/include]
1460  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1461  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1462  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1463  --infodir=DIR           info documentation [DATAROOTDIR/info]
1464  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1465  --mandir=DIR            man documentation [DATAROOTDIR/man]
1466  --docdir=DIR            documentation root [DATAROOTDIR/doc/sofia-sip]
1467  --htmldir=DIR           html documentation [DOCDIR]
1468  --dvidir=DIR            dvi documentation [DOCDIR]
1469  --pdfdir=DIR            pdf documentation [DOCDIR]
1470  --psdir=DIR             ps documentation [DOCDIR]
1471_ACEOF
1472
1473  cat <<\_ACEOF
1474
1475Program names:
1476  --program-prefix=PREFIX            prepend PREFIX to installed program names
1477  --program-suffix=SUFFIX            append SUFFIX to installed program names
1478  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1479
1480System types:
1481  --build=BUILD     configure for building on BUILD [guessed]
1482  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1483  --target=TARGET   configure for building compilers for TARGET [HOST]
1484_ACEOF
1485fi
1486
1487if test -n "$ac_init_help"; then
1488  case $ac_init_help in
1489     short | recursive ) echo "Configuration of sofia-sip 1.12.10devel:";;
1490   esac
1491  cat <<\_ACEOF
1492
1493Optional Features:
1494  --disable-option-checking  ignore unrecognized --enable/--with options
1495  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1496  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1497  --enable-silent-rules   less verbose build output (undo: "make V=1")
1498  --disable-silent-rules  verbose build output (undo: "make V=0")
1499  --enable-dependency-tracking
1500                          do not reject slow dependency extractors
1501  --disable-dependency-tracking
1502                          speeds up one-time build
1503  --enable-coverage       compile test-coverage [disabled]
1504  --enable-shared[=PKGS]  build shared libraries [default=yes]
1505  --enable-static[=PKGS]  build static libraries [default=yes]
1506  --enable-fast-install[=PKGS]
1507                          optimize for fast installation [default=yes]
1508  --disable-libtool-lock  avoid locking (might break parallel builds)
1509  --enable-ndebug         compile with NDEBUG [disabled]
1510  --enable-expensive-checks
1511                          run also expensive checks [disabled]
1512  --enable-64             build with 64 bit support
1513  --enable-experimental   enable experimental features [disabled]
1514  --disable-tag-cast      cast tag values with inlined functions [enabled]
1515  --disable-size-compat   use compatibility size_t types [enabled]
1516  --enable-corefoundation
1517                          compile with OSX COREFOUNDATION [disabled]
1518  --disable-ip6          disable IPv6 functionality [enabled]
1519  --disable-poll-port     disable su_poll_port [enabled]
1520                          Use this option in systems emulating poll with select
1521  --enable-sctp           use SCTP [disabled]
1522  --disable-stun          disable stun module (enabled)
1523  --disable-nth           disable HTTP-related modules nth and http (enabled)
1524  --enable-ntlm           enable NTLM support [disabled]
1525  --enable-memleak-log    enable logging of possible memory leaks [disabled]
1526
1527Optional Packages:
1528  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1529  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1530  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1531                          both]
1532  --with-aix-soname=aix|svr4|both
1533                          shared library versioning (aka "SONAME") variant to
1534                          provide on AIX, [default=aix].
1535  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1536  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1537                          compiler's sysroot if not specified).
1538  --with-doxygen[=CMD]    use doxygen command CMD [doxygen]
1539  --with-rt               use POSIX realtime library [used by default]
1540  --with-glib=version     use GLib (default=2.0)
1541  --with-glib-dir=PREFIX  explicitly define GLib path
1542  --with-openssl          use OpenSSL [enabled]
1543  --with-sigcomp=dir      use Sofia SigComp package [not used]
1544
1545Some influential environment variables:
1546  CC          C compiler command
1547  CFLAGS      C compiler flags
1548  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1549              nonstandard directory <lib dir>
1550  LIBS        libraries to pass to the linker, e.g. -l<library>
1551  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552              you have headers in a nonstandard directory <include dir>
1553  CPP         C preprocessor
1554  SOFIA_CFLAGS
1555              CFLAGS not used during configure
1556  SOFIA_GLIB_CFLAGS
1557              Extra CFLAGS for libsofia-sip-ua-glib
1558  LT_SYS_LIBRARY_PATH
1559              User-defined run-time library search path.
1560
1561Use these variables to override the choices made by `configure' or to help
1562it to find libraries and programs with nonstandard names/locations.
1563
1564Report bugs to the package provider.
1565_ACEOF
1566ac_status=$?
1567fi
1568
1569if test "$ac_init_help" = "recursive"; then
1570  # If there are subdirs, report their specific --help.
1571  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572    test -d "$ac_dir" ||
1573      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574      continue
1575    ac_builddir=.
1576
1577case "$ac_dir" in
1578.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579*)
1580  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581  # A ".." for each directory in $ac_dir_suffix.
1582  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583  case $ac_top_builddir_sub in
1584  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586  esac ;;
1587esac
1588ac_abs_top_builddir=$ac_pwd
1589ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590# for backward compatibility:
1591ac_top_builddir=$ac_top_build_prefix
1592
1593case $srcdir in
1594  .)  # We are building in place.
1595    ac_srcdir=.
1596    ac_top_srcdir=$ac_top_builddir_sub
1597    ac_abs_top_srcdir=$ac_pwd ;;
1598  [\\/]* | ?:[\\/]* )  # Absolute name.
1599    ac_srcdir=$srcdir$ac_dir_suffix;
1600    ac_top_srcdir=$srcdir
1601    ac_abs_top_srcdir=$srcdir ;;
1602  *) # Relative name.
1603    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604    ac_top_srcdir=$ac_top_build_prefix$srcdir
1605    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606esac
1607ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609    cd "$ac_dir" || { ac_status=$?; continue; }
1610    # Check for guested configure.
1611    if test -f "$ac_srcdir/configure.gnu"; then
1612      echo &&
1613      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614    elif test -f "$ac_srcdir/configure"; then
1615      echo &&
1616      $SHELL "$ac_srcdir/configure" --help=recursive
1617    else
1618      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619    fi || ac_status=$?
1620    cd "$ac_pwd" || { ac_status=$?; break; }
1621  done
1622fi
1623
1624test -n "$ac_init_help" && exit $ac_status
1625if $ac_init_version; then
1626  cat <<\_ACEOF
1627sofia-sip configure 1.12.10devel
1628generated by GNU Autoconf 2.69
1629
1630Copyright (C) 2012 Free Software Foundation, Inc.
1631This configure script is free software; the Free Software Foundation
1632gives unlimited permission to copy, distribute and modify it.
1633_ACEOF
1634  exit
1635fi
1636
1637## ------------------------ ##
1638## Autoconf initialization. ##
1639## ------------------------ ##
1640
1641# ac_fn_c_try_compile LINENO
1642# --------------------------
1643# Try to compile conftest.$ac_ext, and return whether this succeeded.
1644ac_fn_c_try_compile ()
1645{
1646  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647  rm -f conftest.$ac_objext
1648  if { { ac_try="$ac_compile"
1649case "(($ac_try" in
1650  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651  *) ac_try_echo=$ac_try;;
1652esac
1653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654$as_echo "$ac_try_echo"; } >&5
1655  (eval "$ac_compile") 2>conftest.err
1656  ac_status=$?
1657  if test -s conftest.err; then
1658    grep -v '^ *+' conftest.err >conftest.er1
1659    cat conftest.er1 >&5
1660    mv -f conftest.er1 conftest.err
1661  fi
1662  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663  test $ac_status = 0; } && {
1664	 test -z "$ac_c_werror_flag" ||
1665	 test ! -s conftest.err
1666       } && test -s conftest.$ac_objext; then :
1667  ac_retval=0
1668else
1669  $as_echo "$as_me: failed program was:" >&5
1670sed 's/^/| /' conftest.$ac_ext >&5
1671
1672	ac_retval=1
1673fi
1674  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675  as_fn_set_status $ac_retval
1676
1677} # ac_fn_c_try_compile
1678
1679# ac_fn_c_try_cpp LINENO
1680# ----------------------
1681# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_cpp ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  if { { ac_try="$ac_cpp conftest.$ac_ext"
1686case "(($ac_try" in
1687  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688  *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1693  ac_status=$?
1694  if test -s conftest.err; then
1695    grep -v '^ *+' conftest.err >conftest.er1
1696    cat conftest.er1 >&5
1697    mv -f conftest.er1 conftest.err
1698  fi
1699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700  test $ac_status = 0; } > conftest.i && {
1701	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1702	 test ! -s conftest.err
1703       }; then :
1704  ac_retval=0
1705else
1706  $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709    ac_retval=1
1710fi
1711  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712  as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_cpp
1715
1716# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1717# -------------------------------------------------------
1718# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1719# the include files in INCLUDES and setting the cache variable VAR
1720# accordingly.
1721ac_fn_c_check_header_mongrel ()
1722{
1723  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724  if eval \${$3+:} false; then :
1725  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1726$as_echo_n "checking for $2... " >&6; }
1727if eval \${$3+:} false; then :
1728  $as_echo_n "(cached) " >&6
1729fi
1730eval ac_res=\$$3
1731	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733else
1734  # Is the header compilable?
1735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1736$as_echo_n "checking $2 usability... " >&6; }
1737cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1738/* end confdefs.h.  */
1739$4
1740#include <$2>
1741_ACEOF
1742if ac_fn_c_try_compile "$LINENO"; then :
1743  ac_header_compiler=yes
1744else
1745  ac_header_compiler=no
1746fi
1747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1749$as_echo "$ac_header_compiler" >&6; }
1750
1751# Is the header present?
1752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1753$as_echo_n "checking $2 presence... " >&6; }
1754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755/* end confdefs.h.  */
1756#include <$2>
1757_ACEOF
1758if ac_fn_c_try_cpp "$LINENO"; then :
1759  ac_header_preproc=yes
1760else
1761  ac_header_preproc=no
1762fi
1763rm -f conftest.err conftest.i conftest.$ac_ext
1764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1765$as_echo "$ac_header_preproc" >&6; }
1766
1767# So?  What about this header?
1768case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1769  yes:no: )
1770    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1771$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1772    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1773$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1774    ;;
1775  no:yes:* )
1776    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1777$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1778    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1779$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1780    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1781$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1782    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1783$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1784    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1785$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786    ;;
1787esac
1788  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789$as_echo_n "checking for $2... " >&6; }
1790if eval \${$3+:} false; then :
1791  $as_echo_n "(cached) " >&6
1792else
1793  eval "$3=\$ac_header_compiler"
1794fi
1795eval ac_res=\$$3
1796	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797$as_echo "$ac_res" >&6; }
1798fi
1799  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801} # ac_fn_c_check_header_mongrel
1802
1803# ac_fn_c_try_run LINENO
1804# ----------------------
1805# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806# that executables *can* be run.
1807ac_fn_c_try_run ()
1808{
1809  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810  if { { ac_try="$ac_link"
1811case "(($ac_try" in
1812  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813  *) ac_try_echo=$ac_try;;
1814esac
1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816$as_echo "$ac_try_echo"; } >&5
1817  (eval "$ac_link") 2>&5
1818  ac_status=$?
1819  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821  { { case "(($ac_try" in
1822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823  *) ac_try_echo=$ac_try;;
1824esac
1825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826$as_echo "$ac_try_echo"; } >&5
1827  (eval "$ac_try") 2>&5
1828  ac_status=$?
1829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830  test $ac_status = 0; }; }; then :
1831  ac_retval=0
1832else
1833  $as_echo "$as_me: program exited with status $ac_status" >&5
1834       $as_echo "$as_me: failed program was:" >&5
1835sed 's/^/| /' conftest.$ac_ext >&5
1836
1837       ac_retval=$ac_status
1838fi
1839  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841  as_fn_set_status $ac_retval
1842
1843} # ac_fn_c_try_run
1844
1845# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846# -------------------------------------------------------
1847# Tests whether HEADER exists and can be compiled using the include files in
1848# INCLUDES, setting the cache variable VAR accordingly.
1849ac_fn_c_check_header_compile ()
1850{
1851  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853$as_echo_n "checking for $2... " >&6; }
1854if eval \${$3+:} false; then :
1855  $as_echo_n "(cached) " >&6
1856else
1857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858/* end confdefs.h.  */
1859$4
1860#include <$2>
1861_ACEOF
1862if ac_fn_c_try_compile "$LINENO"; then :
1863  eval "$3=yes"
1864else
1865  eval "$3=no"
1866fi
1867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868fi
1869eval ac_res=\$$3
1870	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871$as_echo "$ac_res" >&6; }
1872  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874} # ac_fn_c_check_header_compile
1875
1876# ac_fn_c_try_link LINENO
1877# -----------------------
1878# Try to link conftest.$ac_ext, and return whether this succeeded.
1879ac_fn_c_try_link ()
1880{
1881  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882  rm -f conftest.$ac_objext conftest$ac_exeext
1883  if { { ac_try="$ac_link"
1884case "(($ac_try" in
1885  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886  *) ac_try_echo=$ac_try;;
1887esac
1888eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889$as_echo "$ac_try_echo"; } >&5
1890  (eval "$ac_link") 2>conftest.err
1891  ac_status=$?
1892  if test -s conftest.err; then
1893    grep -v '^ *+' conftest.err >conftest.er1
1894    cat conftest.er1 >&5
1895    mv -f conftest.er1 conftest.err
1896  fi
1897  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898  test $ac_status = 0; } && {
1899	 test -z "$ac_c_werror_flag" ||
1900	 test ! -s conftest.err
1901       } && test -s conftest$ac_exeext && {
1902	 test "$cross_compiling" = yes ||
1903	 test -x conftest$ac_exeext
1904       }; then :
1905  ac_retval=0
1906else
1907  $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910	ac_retval=1
1911fi
1912  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914  # interfere with the next link command; also delete a directory that is
1915  # left behind by Apple's compiler.  We do this before executing the actions.
1916  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918  as_fn_set_status $ac_retval
1919
1920} # ac_fn_c_try_link
1921
1922# ac_fn_c_check_func LINENO FUNC VAR
1923# ----------------------------------
1924# Tests whether FUNC exists, setting the cache variable VAR accordingly
1925ac_fn_c_check_func ()
1926{
1927  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929$as_echo_n "checking for $2... " >&6; }
1930if eval \${$3+:} false; then :
1931  $as_echo_n "(cached) " >&6
1932else
1933  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934/* end confdefs.h.  */
1935/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1937#define $2 innocuous_$2
1938
1939/* System header to define __stub macros and hopefully few prototypes,
1940    which can conflict with char $2 (); below.
1941    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942    <limits.h> exists even on freestanding compilers.  */
1943
1944#ifdef __STDC__
1945# include <limits.h>
1946#else
1947# include <assert.h>
1948#endif
1949
1950#undef $2
1951
1952/* Override any GCC internal prototype to avoid an error.
1953   Use char because int might match the return type of a GCC
1954   builtin and then its argument prototype would still apply.  */
1955#ifdef __cplusplus
1956extern "C"
1957#endif
1958char $2 ();
1959/* The GNU C library defines this for functions which it implements
1960    to always fail with ENOSYS.  Some functions are actually named
1961    something starting with __ and the normal name is an alias.  */
1962#if defined __stub_$2 || defined __stub___$2
1963choke me
1964#endif
1965
1966int
1967main ()
1968{
1969return $2 ();
1970  ;
1971  return 0;
1972}
1973_ACEOF
1974if ac_fn_c_try_link "$LINENO"; then :
1975  eval "$3=yes"
1976else
1977  eval "$3=no"
1978fi
1979rm -f core conftest.err conftest.$ac_objext \
1980    conftest$ac_exeext conftest.$ac_ext
1981fi
1982eval ac_res=\$$3
1983	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984$as_echo "$ac_res" >&6; }
1985  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987} # ac_fn_c_check_func
1988
1989# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990# -------------------------------------------
1991# Tests whether TYPE exists after having included INCLUDES, setting cache
1992# variable VAR accordingly.
1993ac_fn_c_check_type ()
1994{
1995  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
1998if eval \${$3+:} false; then :
1999  $as_echo_n "(cached) " >&6
2000else
2001  eval "$3=no"
2002  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h.  */
2004$4
2005int
2006main ()
2007{
2008if (sizeof ($2))
2009	 return 0;
2010  ;
2011  return 0;
2012}
2013_ACEOF
2014if ac_fn_c_try_compile "$LINENO"; then :
2015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h.  */
2017$4
2018int
2019main ()
2020{
2021if (sizeof (($2)))
2022	    return 0;
2023  ;
2024  return 0;
2025}
2026_ACEOF
2027if ac_fn_c_try_compile "$LINENO"; then :
2028
2029else
2030  eval "$3=yes"
2031fi
2032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033fi
2034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035fi
2036eval ac_res=\$$3
2037	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041} # ac_fn_c_check_type
2042
2043# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2044# ---------------------------------------------
2045# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2046# accordingly.
2047ac_fn_c_check_decl ()
2048{
2049  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2050  as_decl_name=`echo $2|sed 's/ *(.*//'`
2051  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2052  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2053$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2054if eval \${$3+:} false; then :
2055  $as_echo_n "(cached) " >&6
2056else
2057  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h.  */
2059$4
2060int
2061main ()
2062{
2063#ifndef $as_decl_name
2064#ifdef __cplusplus
2065  (void) $as_decl_use;
2066#else
2067  (void) $as_decl_name;
2068#endif
2069#endif
2070
2071  ;
2072  return 0;
2073}
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076  eval "$3=yes"
2077else
2078  eval "$3=no"
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081fi
2082eval ac_res=\$$3
2083	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084$as_echo "$ac_res" >&6; }
2085  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2086
2087} # ac_fn_c_check_decl
2088cat >config.log <<_ACEOF
2089This file contains any messages produced by compilers while
2090running configure, to aid debugging if configure makes a mistake.
2091
2092It was created by sofia-sip $as_me 1.12.10devel, which was
2093generated by GNU Autoconf 2.69.  Invocation command line was
2094
2095  $ $0 $@
2096
2097_ACEOF
2098exec 5>>config.log
2099{
2100cat <<_ASUNAME
2101## --------- ##
2102## Platform. ##
2103## --------- ##
2104
2105hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2106uname -m = `(uname -m) 2>/dev/null || echo unknown`
2107uname -r = `(uname -r) 2>/dev/null || echo unknown`
2108uname -s = `(uname -s) 2>/dev/null || echo unknown`
2109uname -v = `(uname -v) 2>/dev/null || echo unknown`
2110
2111/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2112/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2113
2114/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2115/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2116/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2117/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2118/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2119/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2120/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2121
2122_ASUNAME
2123
2124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2125for as_dir in $PATH
2126do
2127  IFS=$as_save_IFS
2128  test -z "$as_dir" && as_dir=.
2129    $as_echo "PATH: $as_dir"
2130  done
2131IFS=$as_save_IFS
2132
2133} >&5
2134
2135cat >&5 <<_ACEOF
2136
2137
2138## ----------- ##
2139## Core tests. ##
2140## ----------- ##
2141
2142_ACEOF
2143
2144
2145# Keep a trace of the command line.
2146# Strip out --no-create and --no-recursion so they do not pile up.
2147# Strip out --silent because we don't want to record it for future runs.
2148# Also quote any args containing shell meta-characters.
2149# Make two passes to allow for proper duplicate-argument suppression.
2150ac_configure_args=
2151ac_configure_args0=
2152ac_configure_args1=
2153ac_must_keep_next=false
2154for ac_pass in 1 2
2155do
2156  for ac_arg
2157  do
2158    case $ac_arg in
2159    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2160    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2161    | -silent | --silent | --silen | --sile | --sil)
2162      continue ;;
2163    *\'*)
2164      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2165    esac
2166    case $ac_pass in
2167    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2168    2)
2169      as_fn_append ac_configure_args1 " '$ac_arg'"
2170      if test $ac_must_keep_next = true; then
2171	ac_must_keep_next=false # Got value, back to normal.
2172      else
2173	case $ac_arg in
2174	  *=* | --config-cache | -C | -disable-* | --disable-* \
2175	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2176	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2177	  | -with-* | --with-* | -without-* | --without-* | --x)
2178	    case "$ac_configure_args0 " in
2179	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2180	    esac
2181	    ;;
2182	  -* ) ac_must_keep_next=true ;;
2183	esac
2184      fi
2185      as_fn_append ac_configure_args " '$ac_arg'"
2186      ;;
2187    esac
2188  done
2189done
2190{ ac_configure_args0=; unset ac_configure_args0;}
2191{ ac_configure_args1=; unset ac_configure_args1;}
2192
2193# When interrupted or exit'd, cleanup temporary files, and complete
2194# config.log.  We remove comments because anyway the quotes in there
2195# would cause problems or look ugly.
2196# WARNING: Use '\'' to represent an apostrophe within the trap.
2197# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2198trap 'exit_status=$?
2199  # Save into config.log some information that might help in debugging.
2200  {
2201    echo
2202
2203    $as_echo "## ---------------- ##
2204## Cache variables. ##
2205## ---------------- ##"
2206    echo
2207    # The following way of writing the cache mishandles newlines in values,
2208(
2209  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2210    eval ac_val=\$$ac_var
2211    case $ac_val in #(
2212    *${as_nl}*)
2213      case $ac_var in #(
2214      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2215$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2216      esac
2217      case $ac_var in #(
2218      _ | IFS | as_nl) ;; #(
2219      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2220      *) { eval $ac_var=; unset $ac_var;} ;;
2221      esac ;;
2222    esac
2223  done
2224  (set) 2>&1 |
2225    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2226    *${as_nl}ac_space=\ *)
2227      sed -n \
2228	"s/'\''/'\''\\\\'\'''\''/g;
2229	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2230      ;; #(
2231    *)
2232      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2233      ;;
2234    esac |
2235    sort
2236)
2237    echo
2238
2239    $as_echo "## ----------------- ##
2240## Output variables. ##
2241## ----------------- ##"
2242    echo
2243    for ac_var in $ac_subst_vars
2244    do
2245      eval ac_val=\$$ac_var
2246      case $ac_val in
2247      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2248      esac
2249      $as_echo "$ac_var='\''$ac_val'\''"
2250    done | sort
2251    echo
2252
2253    if test -n "$ac_subst_files"; then
2254      $as_echo "## ------------------- ##
2255## File substitutions. ##
2256## ------------------- ##"
2257      echo
2258      for ac_var in $ac_subst_files
2259      do
2260	eval ac_val=\$$ac_var
2261	case $ac_val in
2262	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2263	esac
2264	$as_echo "$ac_var='\''$ac_val'\''"
2265      done | sort
2266      echo
2267    fi
2268
2269    if test -s confdefs.h; then
2270      $as_echo "## ----------- ##
2271## confdefs.h. ##
2272## ----------- ##"
2273      echo
2274      cat confdefs.h
2275      echo
2276    fi
2277    test "$ac_signal" != 0 &&
2278      $as_echo "$as_me: caught signal $ac_signal"
2279    $as_echo "$as_me: exit $exit_status"
2280  } >&5
2281  rm -f core *.core core.conftest.* &&
2282    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2283    exit $exit_status
2284' 0
2285for ac_signal in 1 2 13 15; do
2286  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2287done
2288ac_signal=0
2289
2290# confdefs.h avoids OS command line length limits that DEFS can exceed.
2291rm -f -r conftest* confdefs.h
2292
2293$as_echo "/* confdefs.h */" > confdefs.h
2294
2295# Predefined preprocessor variables.
2296
2297cat >>confdefs.h <<_ACEOF
2298#define PACKAGE_NAME "$PACKAGE_NAME"
2299_ACEOF
2300
2301cat >>confdefs.h <<_ACEOF
2302#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2303_ACEOF
2304
2305cat >>confdefs.h <<_ACEOF
2306#define PACKAGE_VERSION "$PACKAGE_VERSION"
2307_ACEOF
2308
2309cat >>confdefs.h <<_ACEOF
2310#define PACKAGE_STRING "$PACKAGE_STRING"
2311_ACEOF
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2315_ACEOF
2316
2317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_URL "$PACKAGE_URL"
2319_ACEOF
2320
2321
2322# Let the site file select an alternate cache file if it wants to.
2323# Prefer an explicitly selected file to automatically selected ones.
2324ac_site_file1=NONE
2325ac_site_file2=NONE
2326if test -n "$CONFIG_SITE"; then
2327  # We do not want a PATH search for config.site.
2328  case $CONFIG_SITE in #((
2329    -*)  ac_site_file1=./$CONFIG_SITE;;
2330    */*) ac_site_file1=$CONFIG_SITE;;
2331    *)   ac_site_file1=./$CONFIG_SITE;;
2332  esac
2333elif test "x$prefix" != xNONE; then
2334  ac_site_file1=$prefix/share/config.site
2335  ac_site_file2=$prefix/etc/config.site
2336else
2337  ac_site_file1=$ac_default_prefix/share/config.site
2338  ac_site_file2=$ac_default_prefix/etc/config.site
2339fi
2340for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2341do
2342  test "x$ac_site_file" = xNONE && continue
2343  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2344    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2345$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2346    sed 's/^/| /' "$ac_site_file" >&5
2347    . "$ac_site_file" \
2348      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2350as_fn_error $? "failed to load site script $ac_site_file
2351See \`config.log' for more details" "$LINENO" 5; }
2352  fi
2353done
2354
2355if test -r "$cache_file"; then
2356  # Some versions of bash will fail to source /dev/null (special files
2357  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2358  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2359    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2360$as_echo "$as_me: loading cache $cache_file" >&6;}
2361    case $cache_file in
2362      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2363      *)                      . "./$cache_file";;
2364    esac
2365  fi
2366else
2367  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2368$as_echo "$as_me: creating cache $cache_file" >&6;}
2369  >$cache_file
2370fi
2371
2372# Check that the precious variables saved in the cache have kept the same
2373# value.
2374ac_cache_corrupted=false
2375for ac_var in $ac_precious_vars; do
2376  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2377  eval ac_new_set=\$ac_env_${ac_var}_set
2378  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2379  eval ac_new_val=\$ac_env_${ac_var}_value
2380  case $ac_old_set,$ac_new_set in
2381    set,)
2382      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2383$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2384      ac_cache_corrupted=: ;;
2385    ,set)
2386      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2387$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2388      ac_cache_corrupted=: ;;
2389    ,);;
2390    *)
2391      if test "x$ac_old_val" != "x$ac_new_val"; then
2392	# differences in whitespace do not lead to failure.
2393	ac_old_val_w=`echo x $ac_old_val`
2394	ac_new_val_w=`echo x $ac_new_val`
2395	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2396	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2397$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2398	  ac_cache_corrupted=:
2399	else
2400	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2401$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2402	  eval $ac_var=\$ac_old_val
2403	fi
2404	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2405$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2406	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2407$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2408      fi;;
2409  esac
2410  # Pass precious variables to config.status.
2411  if test "$ac_new_set" = set; then
2412    case $ac_new_val in
2413    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2414    *) ac_arg=$ac_var=$ac_new_val ;;
2415    esac
2416    case " $ac_configure_args " in
2417      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2418      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2419    esac
2420  fi
2421done
2422if $ac_cache_corrupted; then
2423  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2424$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2425  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2426$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2427  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2428fi
2429## -------------------- ##
2430## Main body of script. ##
2431## -------------------- ##
2432
2433ac_ext=c
2434ac_cpp='$CPP $CPPFLAGS'
2435ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2436ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2437ac_compiler_gnu=$ac_cv_c_compiler_gnu
2438
2439
2440
2441CFLAGS="$CFLAGS $CONFIGURE_CFLAGS"
2442CXXFLAGS="$CXXFLAGS $CONFIGURE_CXXFLAGS"
2443LDFLAGS="$LDFLAGS $CONFIGURE_LDFLAGS"
2444
2445
2446
2447VER_LIBSOFIA_SIP_UA_MAJOR_MINOR=1.12
2448
2449include_sofiadir='${includedir}/sofia-sip-1.12'
2450
2451LIBVER_SOFIA_SIP_UA_CUR=6
2452
2453LIBVER_SOFIA_SIP_UA_REV=0
2454
2455LIBVER_SOFIA_SIP_UA_AGE=6
2456
2457LIBVER_SOFIA_SIP_UA_SOVER=0
2458 # CUR-AGE
2459LIBVER_SOFIA_SIP_UA_GLIB_CUR=3
2460
2461LIBVER_SOFIA_SIP_UA_GLIB_REV=0
2462
2463LIBVER_SOFIA_SIP_UA_GLIB_AGE=0
2464
2465LIBVER_SOFIA_SIP_UA_GLIB_SOVER=3
2466 # CUR-AGE
2467
2468# dnl calls AC_CANONICAL_ macros that are required by AM_INIT_AUTOMAKE
2469ac_aux_dir=
2470for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2471  if test -f "$ac_dir/install-sh"; then
2472    ac_aux_dir=$ac_dir
2473    ac_install_sh="$ac_aux_dir/install-sh -c"
2474    break
2475  elif test -f "$ac_dir/install.sh"; then
2476    ac_aux_dir=$ac_dir
2477    ac_install_sh="$ac_aux_dir/install.sh -c"
2478    break
2479  elif test -f "$ac_dir/shtool"; then
2480    ac_aux_dir=$ac_dir
2481    ac_install_sh="$ac_aux_dir/shtool install -c"
2482    break
2483  fi
2484done
2485if test -z "$ac_aux_dir"; then
2486  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2487fi
2488
2489# These three variables are undocumented and unsupported,
2490# and are intended to be withdrawn in a future Autoconf release.
2491# They can cause serious problems if a builder's source tree is in a directory
2492# whose full name contains unusual characters.
2493ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2494ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2495ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2496
2497
2498# Make sure we can run config.sub.
2499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2500  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2501
2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2503$as_echo_n "checking build system type... " >&6; }
2504if ${ac_cv_build+:} false; then :
2505  $as_echo_n "(cached) " >&6
2506else
2507  ac_build_alias=$build_alias
2508test "x$ac_build_alias" = x &&
2509  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2510test "x$ac_build_alias" = x &&
2511  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2513  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514
2515fi
2516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2517$as_echo "$ac_cv_build" >&6; }
2518case $ac_cv_build in
2519*-*-*) ;;
2520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2521esac
2522build=$ac_cv_build
2523ac_save_IFS=$IFS; IFS='-'
2524set x $ac_cv_build
2525shift
2526build_cpu=$1
2527build_vendor=$2
2528shift; shift
2529# Remember, the first character of IFS is used to create $*,
2530# except with old shells:
2531build_os=$*
2532IFS=$ac_save_IFS
2533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534
2535
2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2537$as_echo_n "checking host system type... " >&6; }
2538if ${ac_cv_host+:} false; then :
2539  $as_echo_n "(cached) " >&6
2540else
2541  if test "x$host_alias" = x; then
2542  ac_cv_host=$ac_cv_build
2543else
2544  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2545    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2546fi
2547
2548fi
2549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2550$as_echo "$ac_cv_host" >&6; }
2551case $ac_cv_host in
2552*-*-*) ;;
2553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2554esac
2555host=$ac_cv_host
2556ac_save_IFS=$IFS; IFS='-'
2557set x $ac_cv_host
2558shift
2559host_cpu=$1
2560host_vendor=$2
2561shift; shift
2562# Remember, the first character of IFS is used to create $*,
2563# except with old shells:
2564host_os=$*
2565IFS=$ac_save_IFS
2566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2567
2568
2569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2570$as_echo_n "checking target system type... " >&6; }
2571if ${ac_cv_target+:} false; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  if test "x$target_alias" = x; then
2575  ac_cv_target=$ac_cv_host
2576else
2577  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2578    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2579fi
2580
2581fi
2582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2583$as_echo "$ac_cv_target" >&6; }
2584case $ac_cv_target in
2585*-*-*) ;;
2586*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2587esac
2588target=$ac_cv_target
2589ac_save_IFS=$IFS; IFS='-'
2590set x $ac_cv_target
2591shift
2592target_cpu=$1
2593target_vendor=$2
2594shift; shift
2595# Remember, the first character of IFS is used to create $*,
2596# except with old shells:
2597target_os=$*
2598IFS=$ac_save_IFS
2599case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2600
2601
2602# The aliases save the names the user supplied, while $host etc.
2603# will get canonicalized.
2604test -n "$target_alias" &&
2605  test "$program_prefix$program_suffix$program_transform_name" = \
2606    NONENONEs,x,x, &&
2607  program_prefix=${target_alias}-
2608
2609
2610
2611
2612
2613
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cached information" >&5
2615$as_echo_n "checking cached information... " >&6; }
2616hostcheck="$host"
2617if ${ac_cv_hostcheck+:} false; then :
2618  $as_echo_n "(cached) " >&6
2619else
2620   ac_cv_hostcheck="$hostcheck"
2621fi
2622
2623if test "$ac_cv_hostcheck" != "$hostcheck"; then
2624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: changed" >&5
2625$as_echo "changed" >&6; }
2626  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: config.cache exists!" >&5
2627$as_echo "$as_me: WARNING: config.cache exists!" >&2;}
2628  as_fn_error $? "you must do 'make distclean' first to compile
2629 for different host or different parameters." "$LINENO" 5
2630else
2631  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
2632$as_echo "ok" >&6; }
2633fi
2634
2635
2636
2637
2638am__api_version='1.15'
2639
2640# Find a good install program.  We prefer a C program (faster),
2641# so one script is as good as another.  But avoid the broken or
2642# incompatible versions:
2643# SysV /etc/install, /usr/sbin/install
2644# SunOS /usr/etc/install
2645# IRIX /sbin/install
2646# AIX /bin/install
2647# AmigaOS /C/install, which installs bootblocks on floppy discs
2648# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2649# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2650# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2651# OS/2's system install, which has a completely different semantic
2652# ./install, which can be erroneously created by make from ./install.sh.
2653# Reject install programs that cannot install multiple files.
2654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2655$as_echo_n "checking for a BSD-compatible install... " >&6; }
2656if test -z "$INSTALL"; then
2657if ${ac_cv_path_install+:} false; then :
2658  $as_echo_n "(cached) " >&6
2659else
2660  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661for as_dir in $PATH
2662do
2663  IFS=$as_save_IFS
2664  test -z "$as_dir" && as_dir=.
2665    # Account for people who put trailing slashes in PATH elements.
2666case $as_dir/ in #((
2667  ./ | .// | /[cC]/* | \
2668  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2669  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2670  /usr/ucb/* ) ;;
2671  *)
2672    # OSF1 and SCO ODT 3.0 have their own names for install.
2673    # Don't use installbsd from OSF since it installs stuff as root
2674    # by default.
2675    for ac_prog in ginstall scoinst install; do
2676      for ac_exec_ext in '' $ac_executable_extensions; do
2677	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2678	  if test $ac_prog = install &&
2679	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2680	    # AIX install.  It has an incompatible calling convention.
2681	    :
2682	  elif test $ac_prog = install &&
2683	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2684	    # program-specific install script used by HP pwplus--don't use.
2685	    :
2686	  else
2687	    rm -rf conftest.one conftest.two conftest.dir
2688	    echo one > conftest.one
2689	    echo two > conftest.two
2690	    mkdir conftest.dir
2691	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2692	      test -s conftest.one && test -s conftest.two &&
2693	      test -s conftest.dir/conftest.one &&
2694	      test -s conftest.dir/conftest.two
2695	    then
2696	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2697	      break 3
2698	    fi
2699	  fi
2700	fi
2701      done
2702    done
2703    ;;
2704esac
2705
2706  done
2707IFS=$as_save_IFS
2708
2709rm -rf conftest.one conftest.two conftest.dir
2710
2711fi
2712  if test "${ac_cv_path_install+set}" = set; then
2713    INSTALL=$ac_cv_path_install
2714  else
2715    # As a last resort, use the slow shell script.  Don't cache a
2716    # value for INSTALL within a source directory, because that will
2717    # break other packages using the cache if that directory is
2718    # removed, or if the value is a relative name.
2719    INSTALL=$ac_install_sh
2720  fi
2721fi
2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2723$as_echo "$INSTALL" >&6; }
2724
2725# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2726# It thinks the first close brace ends the variable substitution.
2727test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2728
2729test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2730
2731test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2732
2733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2734$as_echo_n "checking whether build environment is sane... " >&6; }
2735# Reject unsafe characters in $srcdir or the absolute working directory
2736# name.  Accept space and tab only in the latter.
2737am_lf='
2738'
2739case `pwd` in
2740  *[\\\"\#\$\&\'\`$am_lf]*)
2741    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2742esac
2743case $srcdir in
2744  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2745    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2746esac
2747
2748# Do 'set' in a subshell so we don't clobber the current shell's
2749# arguments.  Must try -L first in case configure is actually a
2750# symlink; some systems play weird games with the mod time of symlinks
2751# (eg FreeBSD returns the mod time of the symlink's containing
2752# directory).
2753if (
2754   am_has_slept=no
2755   for am_try in 1 2; do
2756     echo "timestamp, slept: $am_has_slept" > conftest.file
2757     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2758     if test "$*" = "X"; then
2759	# -L didn't work.
2760	set X `ls -t "$srcdir/configure" conftest.file`
2761     fi
2762     if test "$*" != "X $srcdir/configure conftest.file" \
2763	&& test "$*" != "X conftest.file $srcdir/configure"; then
2764
2765	# If neither matched, then we have a broken ls.  This can happen
2766	# if, for instance, CONFIG_SHELL is bash and it inherits a
2767	# broken ls alias from the environment.  This has actually
2768	# happened.  Such a system could not be considered "sane".
2769	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2770  alias in your environment" "$LINENO" 5
2771     fi
2772     if test "$2" = conftest.file || test $am_try -eq 2; then
2773       break
2774     fi
2775     # Just in case.
2776     sleep 1
2777     am_has_slept=yes
2778   done
2779   test "$2" = conftest.file
2780   )
2781then
2782   # Ok.
2783   :
2784else
2785   as_fn_error $? "newly created file is older than distributed files!
2786Check your system clock" "$LINENO" 5
2787fi
2788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789$as_echo "yes" >&6; }
2790# If we didn't sleep, we still need to ensure time stamps of config.status and
2791# generated files are strictly newer.
2792am_sleep_pid=
2793if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2794  ( sleep 1 ) &
2795  am_sleep_pid=$!
2796fi
2797
2798rm -f conftest.file
2799
2800test "$program_prefix" != NONE &&
2801  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2802# Use a double $ so make ignores it.
2803test "$program_suffix" != NONE &&
2804  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2805# Double any \ or $.
2806# By default was `s,x,x', remove it if useless.
2807ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2808program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2809
2810# Expand $ac_aux_dir to an absolute path.
2811am_aux_dir=`cd "$ac_aux_dir" && pwd`
2812
2813if test x"${MISSING+set}" != xset; then
2814  case $am_aux_dir in
2815  *\ * | *\	*)
2816    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2817  *)
2818    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2819  esac
2820fi
2821# Use eval to expand $SHELL
2822if eval "$MISSING --is-lightweight"; then
2823  am_missing_run="$MISSING "
2824else
2825  am_missing_run=
2826  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2827$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2828fi
2829
2830if test x"${install_sh+set}" != xset; then
2831  case $am_aux_dir in
2832  *\ * | *\	*)
2833    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2834  *)
2835    install_sh="\${SHELL} $am_aux_dir/install-sh"
2836  esac
2837fi
2838
2839# Installed binaries are usually stripped using 'strip' when the user
2840# run "make install-strip".  However 'strip' might not be the right
2841# tool to use in cross-compilation environments, therefore Automake
2842# will honor the 'STRIP' environment variable to overrule this program.
2843if test "$cross_compiling" != no; then
2844  if test -n "$ac_tool_prefix"; then
2845  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2846set dummy ${ac_tool_prefix}strip; ac_word=$2
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2848$as_echo_n "checking for $ac_word... " >&6; }
2849if ${ac_cv_prog_STRIP+:} false; then :
2850  $as_echo_n "(cached) " >&6
2851else
2852  if test -n "$STRIP"; then
2853  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2854else
2855as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856for as_dir in $PATH
2857do
2858  IFS=$as_save_IFS
2859  test -z "$as_dir" && as_dir=.
2860    for ac_exec_ext in '' $ac_executable_extensions; do
2861  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2862    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2863    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2864    break 2
2865  fi
2866done
2867  done
2868IFS=$as_save_IFS
2869
2870fi
2871fi
2872STRIP=$ac_cv_prog_STRIP
2873if test -n "$STRIP"; then
2874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2875$as_echo "$STRIP" >&6; }
2876else
2877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2878$as_echo "no" >&6; }
2879fi
2880
2881
2882fi
2883if test -z "$ac_cv_prog_STRIP"; then
2884  ac_ct_STRIP=$STRIP
2885  # Extract the first word of "strip", so it can be a program name with args.
2886set dummy strip; ac_word=$2
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2888$as_echo_n "checking for $ac_word... " >&6; }
2889if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2890  $as_echo_n "(cached) " >&6
2891else
2892  if test -n "$ac_ct_STRIP"; then
2893  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900    for ac_exec_ext in '' $ac_executable_extensions; do
2901  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902    ac_cv_prog_ac_ct_STRIP="strip"
2903    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907  done
2908IFS=$as_save_IFS
2909
2910fi
2911fi
2912ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2913if test -n "$ac_ct_STRIP"; then
2914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2915$as_echo "$ac_ct_STRIP" >&6; }
2916else
2917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2918$as_echo "no" >&6; }
2919fi
2920
2921  if test "x$ac_ct_STRIP" = x; then
2922    STRIP=":"
2923  else
2924    case $cross_compiling:$ac_tool_warned in
2925yes:)
2926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2928ac_tool_warned=yes ;;
2929esac
2930    STRIP=$ac_ct_STRIP
2931  fi
2932else
2933  STRIP="$ac_cv_prog_STRIP"
2934fi
2935
2936fi
2937INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2938
2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2940$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2941if test -z "$MKDIR_P"; then
2942  if ${ac_cv_path_mkdir+:} false; then :
2943  $as_echo_n "(cached) " >&6
2944else
2945  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2947do
2948  IFS=$as_save_IFS
2949  test -z "$as_dir" && as_dir=.
2950    for ac_prog in mkdir gmkdir; do
2951	 for ac_exec_ext in '' $ac_executable_extensions; do
2952	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2953	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2954	     'mkdir (GNU coreutils) '* | \
2955	     'mkdir (coreutils) '* | \
2956	     'mkdir (fileutils) '4.1*)
2957	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2958	       break 3;;
2959	   esac
2960	 done
2961       done
2962  done
2963IFS=$as_save_IFS
2964
2965fi
2966
2967  test -d ./--version && rmdir ./--version
2968  if test "${ac_cv_path_mkdir+set}" = set; then
2969    MKDIR_P="$ac_cv_path_mkdir -p"
2970  else
2971    # As a last resort, use the slow shell script.  Don't cache a
2972    # value for MKDIR_P within a source directory, because that will
2973    # break other packages using the cache if that directory is
2974    # removed, or if the value is a relative name.
2975    MKDIR_P="$ac_install_sh -d"
2976  fi
2977fi
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2979$as_echo "$MKDIR_P" >&6; }
2980
2981for ac_prog in gawk mawk nawk awk
2982do
2983  # Extract the first word of "$ac_prog", so it can be a program name with args.
2984set dummy $ac_prog; ac_word=$2
2985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2986$as_echo_n "checking for $ac_word... " >&6; }
2987if ${ac_cv_prog_AWK+:} false; then :
2988  $as_echo_n "(cached) " >&6
2989else
2990  if test -n "$AWK"; then
2991  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2992else
2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994for as_dir in $PATH
2995do
2996  IFS=$as_save_IFS
2997  test -z "$as_dir" && as_dir=.
2998    for ac_exec_ext in '' $ac_executable_extensions; do
2999  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3000    ac_cv_prog_AWK="$ac_prog"
3001    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3002    break 2
3003  fi
3004done
3005  done
3006IFS=$as_save_IFS
3007
3008fi
3009fi
3010AWK=$ac_cv_prog_AWK
3011if test -n "$AWK"; then
3012  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3013$as_echo "$AWK" >&6; }
3014else
3015  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3016$as_echo "no" >&6; }
3017fi
3018
3019
3020  test -n "$AWK" && break
3021done
3022
3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3024$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3025set x ${MAKE-make}
3026ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3027if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3028  $as_echo_n "(cached) " >&6
3029else
3030  cat >conftest.make <<\_ACEOF
3031SHELL = /bin/sh
3032all:
3033	@echo '@@@%%%=$(MAKE)=@@@%%%'
3034_ACEOF
3035# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3036case `${MAKE-make} -f conftest.make 2>/dev/null` in
3037  *@@@%%%=?*=@@@%%%*)
3038    eval ac_cv_prog_make_${ac_make}_set=yes;;
3039  *)
3040    eval ac_cv_prog_make_${ac_make}_set=no;;
3041esac
3042rm -f conftest.make
3043fi
3044if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3046$as_echo "yes" >&6; }
3047  SET_MAKE=
3048else
3049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050$as_echo "no" >&6; }
3051  SET_MAKE="MAKE=${MAKE-make}"
3052fi
3053
3054rm -rf .tst 2>/dev/null
3055mkdir .tst 2>/dev/null
3056if test -d .tst; then
3057  am__leading_dot=.
3058else
3059  am__leading_dot=_
3060fi
3061rmdir .tst 2>/dev/null
3062
3063# Check whether --enable-silent-rules was given.
3064if test "${enable_silent_rules+set}" = set; then :
3065  enableval=$enable_silent_rules;
3066fi
3067
3068case $enable_silent_rules in # (((
3069  yes) AM_DEFAULT_VERBOSITY=0;;
3070   no) AM_DEFAULT_VERBOSITY=1;;
3071    *) AM_DEFAULT_VERBOSITY=1;;
3072esac
3073am_make=${MAKE-make}
3074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3075$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3076if ${am_cv_make_support_nested_variables+:} false; then :
3077  $as_echo_n "(cached) " >&6
3078else
3079  if $as_echo 'TRUE=$(BAR$(V))
3080BAR0=false
3081BAR1=true
3082V=1
3083am__doit:
3084	@$(TRUE)
3085.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3086  am_cv_make_support_nested_variables=yes
3087else
3088  am_cv_make_support_nested_variables=no
3089fi
3090fi
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3092$as_echo "$am_cv_make_support_nested_variables" >&6; }
3093if test $am_cv_make_support_nested_variables = yes; then
3094    AM_V='$(V)'
3095  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3096else
3097  AM_V=$AM_DEFAULT_VERBOSITY
3098  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3099fi
3100AM_BACKSLASH='\'
3101
3102if test "`cd $srcdir && pwd`" != "`pwd`"; then
3103  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3104  # is not polluted with repeated "-I."
3105  am__isrc=' -I$(srcdir)'
3106  # test to see if srcdir already configured
3107  if test -f $srcdir/config.status; then
3108    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3109  fi
3110fi
3111
3112# test whether we have cygpath
3113if test -z "$CYGPATH_W"; then
3114  if (cygpath --version) >/dev/null 2>/dev/null; then
3115    CYGPATH_W='cygpath -w'
3116  else
3117    CYGPATH_W=echo
3118  fi
3119fi
3120
3121
3122# Define the identity of the package.
3123 PACKAGE='sofia-sip'
3124 VERSION='1.12.10devel'
3125
3126
3127cat >>confdefs.h <<_ACEOF
3128#define PACKAGE "$PACKAGE"
3129_ACEOF
3130
3131
3132cat >>confdefs.h <<_ACEOF
3133#define VERSION "$VERSION"
3134_ACEOF
3135
3136# Some tools Automake needs.
3137
3138ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3139
3140
3141AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3142
3143
3144AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3145
3146
3147AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3148
3149
3150MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3151
3152# For better backward compatibility.  To be removed once Automake 1.9.x
3153# dies out for good.  For more background, see:
3154# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3155# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3156mkdir_p='$(MKDIR_P)'
3157
3158# We need awk for the "check" target (and possibly the TAP driver).  The
3159# system "awk" is bad on some platforms.
3160# Always define AMTAR for backward compatibility.  Yes, it's still used
3161# in the wild :-(  We should find a proper way to deprecate it ...
3162AMTAR='$${TAR-tar}'
3163
3164
3165# We'll loop over all known methods to create a tar archive until one works.
3166_am_tools='gnutar  pax cpio none'
3167
3168am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3169
3170
3171
3172
3173
3174
3175# POSIX will say in a future version that running "rm -f" with no argument
3176# is OK; and we want to be able to make that assumption in our Makefile
3177# recipes.  So use an aggressive probe to check that the usage we want is
3178# actually supported "in the wild" to an acceptable degree.
3179# See automake bug#10828.
3180# To make any issue more visible, cause the running configure to be aborted
3181# by default if the 'rm' program in use doesn't match our expectations; the
3182# user can still override this though.
3183if rm -f && rm -fr && rm -rf; then : OK; else
3184  cat >&2 <<'END'
3185Oops!
3186
3187Your 'rm' program seems unable to run without file operands specified
3188on the command line, even when the '-f' option is present.  This is contrary
3189to the behaviour of most rm programs out there, and not conforming with
3190the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3191
3192Please tell bug-automake@gnu.org about your system, including the value
3193of your $PATH and any error possibly output before this message.  This
3194can help us improve future automake versions.
3195
3196END
3197  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3198    echo 'Configuration will proceed anyway, since you have set the' >&2
3199    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3200    echo >&2
3201  else
3202    cat >&2 <<'END'
3203Aborting the configuration process, to ensure you take notice of the issue.
3204
3205You can download and install GNU coreutils to get an 'rm' implementation
3206that behaves properly: <http://www.gnu.org/software/coreutils/>.
3207
3208If you want to complete the configuration process using your problematic
3209'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3210to "yes", and re-run configure.
3211
3212END
3213    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3214  fi
3215fi
3216
3217
3218ac_config_headers="$ac_config_headers config.h"
3219
3220
3221DEPDIR="${am__leading_dot}deps"
3222
3223ac_config_commands="$ac_config_commands depfiles"
3224
3225
3226am_make=${MAKE-make}
3227cat > confinc << 'END'
3228am__doit:
3229	@echo this is the am__doit target
3230.PHONY: am__doit
3231END
3232# If we don't find an include directive, just comment out the code.
3233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3234$as_echo_n "checking for style of include used by $am_make... " >&6; }
3235am__include="#"
3236am__quote=
3237_am_result=none
3238# First try GNU make style include.
3239echo "include confinc" > confmf
3240# Ignore all kinds of additional output from 'make'.
3241case `$am_make -s -f confmf 2> /dev/null` in #(
3242*the\ am__doit\ target*)
3243  am__include=include
3244  am__quote=
3245  _am_result=GNU
3246  ;;
3247esac
3248# Now try BSD make style include.
3249if test "$am__include" = "#"; then
3250   echo '.include "confinc"' > confmf
3251   case `$am_make -s -f confmf 2> /dev/null` in #(
3252   *the\ am__doit\ target*)
3253     am__include=.include
3254     am__quote="\""
3255     _am_result=BSD
3256     ;;
3257   esac
3258fi
3259
3260
3261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3262$as_echo "$_am_result" >&6; }
3263rm -f confinc confmf
3264
3265# Check whether --enable-dependency-tracking was given.
3266if test "${enable_dependency_tracking+set}" = set; then :
3267  enableval=$enable_dependency_tracking;
3268fi
3269
3270if test "x$enable_dependency_tracking" != xno; then
3271  am_depcomp="$ac_aux_dir/depcomp"
3272  AMDEPBACKSLASH='\'
3273  am__nodep='_no'
3274fi
3275 if test "x$enable_dependency_tracking" != xno; then
3276  AMDEP_TRUE=
3277  AMDEP_FALSE='#'
3278else
3279  AMDEP_TRUE='#'
3280  AMDEP_FALSE=
3281fi
3282
3283
3284ac_ext=c
3285ac_cpp='$CPP $CPPFLAGS'
3286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3288ac_compiler_gnu=$ac_cv_c_compiler_gnu
3289if test -n "$ac_tool_prefix"; then
3290  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3291set dummy ${ac_tool_prefix}gcc; ac_word=$2
3292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3293$as_echo_n "checking for $ac_word... " >&6; }
3294if ${ac_cv_prog_CC+:} false; then :
3295  $as_echo_n "(cached) " >&6
3296else
3297  if test -n "$CC"; then
3298  ac_cv_prog_CC="$CC" # Let the user override the test.
3299else
3300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301for as_dir in $PATH
3302do
3303  IFS=$as_save_IFS
3304  test -z "$as_dir" && as_dir=.
3305    for ac_exec_ext in '' $ac_executable_extensions; do
3306  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3307    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309    break 2
3310  fi
3311done
3312  done
3313IFS=$as_save_IFS
3314
3315fi
3316fi
3317CC=$ac_cv_prog_CC
3318if test -n "$CC"; then
3319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3320$as_echo "$CC" >&6; }
3321else
3322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323$as_echo "no" >&6; }
3324fi
3325
3326
3327fi
3328if test -z "$ac_cv_prog_CC"; then
3329  ac_ct_CC=$CC
3330  # Extract the first word of "gcc", so it can be a program name with args.
3331set dummy gcc; ac_word=$2
3332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3333$as_echo_n "checking for $ac_word... " >&6; }
3334if ${ac_cv_prog_ac_ct_CC+:} false; then :
3335  $as_echo_n "(cached) " >&6
3336else
3337  if test -n "$ac_ct_CC"; then
3338  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3339else
3340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3341for as_dir in $PATH
3342do
3343  IFS=$as_save_IFS
3344  test -z "$as_dir" && as_dir=.
3345    for ac_exec_ext in '' $ac_executable_extensions; do
3346  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347    ac_cv_prog_ac_ct_CC="gcc"
3348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349    break 2
3350  fi
3351done
3352  done
3353IFS=$as_save_IFS
3354
3355fi
3356fi
3357ac_ct_CC=$ac_cv_prog_ac_ct_CC
3358if test -n "$ac_ct_CC"; then
3359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3360$as_echo "$ac_ct_CC" >&6; }
3361else
3362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363$as_echo "no" >&6; }
3364fi
3365
3366  if test "x$ac_ct_CC" = x; then
3367    CC=""
3368  else
3369    case $cross_compiling:$ac_tool_warned in
3370yes:)
3371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3373ac_tool_warned=yes ;;
3374esac
3375    CC=$ac_ct_CC
3376  fi
3377else
3378  CC="$ac_cv_prog_CC"
3379fi
3380
3381if test -z "$CC"; then
3382          if test -n "$ac_tool_prefix"; then
3383    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3384set dummy ${ac_tool_prefix}cc; ac_word=$2
3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3386$as_echo_n "checking for $ac_word... " >&6; }
3387if ${ac_cv_prog_CC+:} false; then :
3388  $as_echo_n "(cached) " >&6
3389else
3390  if test -n "$CC"; then
3391  ac_cv_prog_CC="$CC" # Let the user override the test.
3392else
3393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394for as_dir in $PATH
3395do
3396  IFS=$as_save_IFS
3397  test -z "$as_dir" && as_dir=.
3398    for ac_exec_ext in '' $ac_executable_extensions; do
3399  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3400    ac_cv_prog_CC="${ac_tool_prefix}cc"
3401    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3402    break 2
3403  fi
3404done
3405  done
3406IFS=$as_save_IFS
3407
3408fi
3409fi
3410CC=$ac_cv_prog_CC
3411if test -n "$CC"; then
3412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3413$as_echo "$CC" >&6; }
3414else
3415  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3416$as_echo "no" >&6; }
3417fi
3418
3419
3420  fi
3421fi
3422if test -z "$CC"; then
3423  # Extract the first word of "cc", so it can be a program name with args.
3424set dummy cc; ac_word=$2
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3426$as_echo_n "checking for $ac_word... " >&6; }
3427if ${ac_cv_prog_CC+:} false; then :
3428  $as_echo_n "(cached) " >&6
3429else
3430  if test -n "$CC"; then
3431  ac_cv_prog_CC="$CC" # Let the user override the test.
3432else
3433  ac_prog_rejected=no
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437  IFS=$as_save_IFS
3438  test -z "$as_dir" && as_dir=.
3439    for ac_exec_ext in '' $ac_executable_extensions; do
3440  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3442       ac_prog_rejected=yes
3443       continue
3444     fi
3445    ac_cv_prog_CC="cc"
3446    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3447    break 2
3448  fi
3449done
3450  done
3451IFS=$as_save_IFS
3452
3453if test $ac_prog_rejected = yes; then
3454  # We found a bogon in the path, so make sure we never use it.
3455  set dummy $ac_cv_prog_CC
3456  shift
3457  if test $# != 0; then
3458    # We chose a different compiler from the bogus one.
3459    # However, it has the same basename, so the bogon will be chosen
3460    # first if we set CC to just the basename; use the full file name.
3461    shift
3462    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3463  fi
3464fi
3465fi
3466fi
3467CC=$ac_cv_prog_CC
3468if test -n "$CC"; then
3469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3470$as_echo "$CC" >&6; }
3471else
3472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473$as_echo "no" >&6; }
3474fi
3475
3476
3477fi
3478if test -z "$CC"; then
3479  if test -n "$ac_tool_prefix"; then
3480  for ac_prog in cl.exe
3481  do
3482    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3483set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3485$as_echo_n "checking for $ac_word... " >&6; }
3486if ${ac_cv_prog_CC+:} false; then :
3487  $as_echo_n "(cached) " >&6
3488else
3489  if test -n "$CC"; then
3490  ac_cv_prog_CC="$CC" # Let the user override the test.
3491else
3492as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3493for as_dir in $PATH
3494do
3495  IFS=$as_save_IFS
3496  test -z "$as_dir" && as_dir=.
3497    for ac_exec_ext in '' $ac_executable_extensions; do
3498  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3499    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3500    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501    break 2
3502  fi
3503done
3504  done
3505IFS=$as_save_IFS
3506
3507fi
3508fi
3509CC=$ac_cv_prog_CC
3510if test -n "$CC"; then
3511  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3512$as_echo "$CC" >&6; }
3513else
3514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515$as_echo "no" >&6; }
3516fi
3517
3518
3519    test -n "$CC" && break
3520  done
3521fi
3522if test -z "$CC"; then
3523  ac_ct_CC=$CC
3524  for ac_prog in cl.exe
3525do
3526  # Extract the first word of "$ac_prog", so it can be a program name with args.
3527set dummy $ac_prog; ac_word=$2
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_ac_ct_CC+:} false; then :
3531  $as_echo_n "(cached) " >&6
3532else
3533  if test -n "$ac_ct_CC"; then
3534  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3535else
3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3537for as_dir in $PATH
3538do
3539  IFS=$as_save_IFS
3540  test -z "$as_dir" && as_dir=.
3541    for ac_exec_ext in '' $ac_executable_extensions; do
3542  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543    ac_cv_prog_ac_ct_CC="$ac_prog"
3544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545    break 2
3546  fi
3547done
3548  done
3549IFS=$as_save_IFS
3550
3551fi
3552fi
3553ac_ct_CC=$ac_cv_prog_ac_ct_CC
3554if test -n "$ac_ct_CC"; then
3555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3556$as_echo "$ac_ct_CC" >&6; }
3557else
3558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3559$as_echo "no" >&6; }
3560fi
3561
3562
3563  test -n "$ac_ct_CC" && break
3564done
3565
3566  if test "x$ac_ct_CC" = x; then
3567    CC=""
3568  else
3569    case $cross_compiling:$ac_tool_warned in
3570yes:)
3571{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3572$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3573ac_tool_warned=yes ;;
3574esac
3575    CC=$ac_ct_CC
3576  fi
3577fi
3578
3579fi
3580
3581
3582test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584as_fn_error $? "no acceptable C compiler found in \$PATH
3585See \`config.log' for more details" "$LINENO" 5; }
3586
3587# Provide some information about the compiler.
3588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3589set X $ac_compile
3590ac_compiler=$2
3591for ac_option in --version -v -V -qversion; do
3592  { { ac_try="$ac_compiler $ac_option >&5"
3593case "(($ac_try" in
3594  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3595  *) ac_try_echo=$ac_try;;
3596esac
3597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3598$as_echo "$ac_try_echo"; } >&5
3599  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3600  ac_status=$?
3601  if test -s conftest.err; then
3602    sed '10a\
3603... rest of stderr output deleted ...
3604         10q' conftest.err >conftest.er1
3605    cat conftest.er1 >&5
3606  fi
3607  rm -f conftest.er1 conftest.err
3608  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3609  test $ac_status = 0; }
3610done
3611
3612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613/* end confdefs.h.  */
3614
3615int
3616main ()
3617{
3618
3619  ;
3620  return 0;
3621}
3622_ACEOF
3623ac_clean_files_save=$ac_clean_files
3624ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3625# Try to create an executable without -o first, disregard a.out.
3626# It will help us diagnose broken compilers, and finding out an intuition
3627# of exeext.
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3629$as_echo_n "checking whether the C compiler works... " >&6; }
3630ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3631
3632# The possible output files:
3633ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3634
3635ac_rmfiles=
3636for ac_file in $ac_files
3637do
3638  case $ac_file in
3639    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3641  esac
3642done
3643rm -f $ac_rmfiles
3644
3645if { { ac_try="$ac_link_default"
3646case "(($ac_try" in
3647  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648  *) ac_try_echo=$ac_try;;
3649esac
3650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3651$as_echo "$ac_try_echo"; } >&5
3652  (eval "$ac_link_default") 2>&5
3653  ac_status=$?
3654  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3655  test $ac_status = 0; }; then :
3656  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3657# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3658# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3659# so that the user can short-circuit this test for compilers unknown to
3660# Autoconf.
3661for ac_file in $ac_files ''
3662do
3663  test -f "$ac_file" || continue
3664  case $ac_file in
3665    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3666	;;
3667    [ab].out )
3668	# We found the default executable, but exeext='' is most
3669	# certainly right.
3670	break;;
3671    *.* )
3672	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3673	then :; else
3674	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3675	fi
3676	# We set ac_cv_exeext here because the later test for it is not
3677	# safe: cross compilers may not add the suffix if given an `-o'
3678	# argument, so we may need to know it at that point already.
3679	# Even if this section looks crufty: it has the advantage of
3680	# actually working.
3681	break;;
3682    * )
3683	break;;
3684  esac
3685done
3686test "$ac_cv_exeext" = no && ac_cv_exeext=
3687
3688else
3689  ac_file=''
3690fi
3691if test -z "$ac_file"; then :
3692  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3693$as_echo "no" >&6; }
3694$as_echo "$as_me: failed program was:" >&5
3695sed 's/^/| /' conftest.$ac_ext >&5
3696
3697{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3698$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3699as_fn_error 77 "C compiler cannot create executables
3700See \`config.log' for more details" "$LINENO" 5; }
3701else
3702  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
3704fi
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3706$as_echo_n "checking for C compiler default output file name... " >&6; }
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3708$as_echo "$ac_file" >&6; }
3709ac_exeext=$ac_cv_exeext
3710
3711rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3712ac_clean_files=$ac_clean_files_save
3713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3714$as_echo_n "checking for suffix of executables... " >&6; }
3715if { { ac_try="$ac_link"
3716case "(($ac_try" in
3717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718  *) ac_try_echo=$ac_try;;
3719esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5
3722  (eval "$ac_link") 2>&5
3723  ac_status=$?
3724  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725  test $ac_status = 0; }; then :
3726  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3727# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3728# work properly (i.e., refer to `conftest.exe'), while it won't with
3729# `rm'.
3730for ac_file in conftest.exe conftest conftest.*; do
3731  test -f "$ac_file" || continue
3732  case $ac_file in
3733    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3734    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3735	  break;;
3736    * ) break;;
3737  esac
3738done
3739else
3740  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3741$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3742as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3743See \`config.log' for more details" "$LINENO" 5; }
3744fi
3745rm -f conftest conftest$ac_cv_exeext
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3747$as_echo "$ac_cv_exeext" >&6; }
3748
3749rm -f conftest.$ac_ext
3750EXEEXT=$ac_cv_exeext
3751ac_exeext=$EXEEXT
3752cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3753/* end confdefs.h.  */
3754#include <stdio.h>
3755int
3756main ()
3757{
3758FILE *f = fopen ("conftest.out", "w");
3759 return ferror (f) || fclose (f) != 0;
3760
3761  ;
3762  return 0;
3763}
3764_ACEOF
3765ac_clean_files="$ac_clean_files conftest.out"
3766# Check that the compiler produces executables we can run.  If not, either
3767# the compiler is broken, or we cross compile.
3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3769$as_echo_n "checking whether we are cross compiling... " >&6; }
3770if test "$cross_compiling" != yes; then
3771  { { ac_try="$ac_link"
3772case "(($ac_try" in
3773  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774  *) ac_try_echo=$ac_try;;
3775esac
3776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3777$as_echo "$ac_try_echo"; } >&5
3778  (eval "$ac_link") 2>&5
3779  ac_status=$?
3780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3781  test $ac_status = 0; }
3782  if { ac_try='./conftest$ac_cv_exeext'
3783  { { case "(($ac_try" in
3784  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785  *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788$as_echo "$ac_try_echo"; } >&5
3789  (eval "$ac_try") 2>&5
3790  ac_status=$?
3791  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792  test $ac_status = 0; }; }; then
3793    cross_compiling=no
3794  else
3795    if test "$cross_compiling" = maybe; then
3796	cross_compiling=yes
3797    else
3798	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800as_fn_error $? "cannot run C compiled programs.
3801If you meant to cross compile, use \`--host'.
3802See \`config.log' for more details" "$LINENO" 5; }
3803    fi
3804  fi
3805fi
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3807$as_echo "$cross_compiling" >&6; }
3808
3809rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3810ac_clean_files=$ac_clean_files_save
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3812$as_echo_n "checking for suffix of object files... " >&6; }
3813if ${ac_cv_objext+:} false; then :
3814  $as_echo_n "(cached) " >&6
3815else
3816  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817/* end confdefs.h.  */
3818
3819int
3820main ()
3821{
3822
3823  ;
3824  return 0;
3825}
3826_ACEOF
3827rm -f conftest.o conftest.obj
3828if { { ac_try="$ac_compile"
3829case "(($ac_try" in
3830  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3831  *) ac_try_echo=$ac_try;;
3832esac
3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3834$as_echo "$ac_try_echo"; } >&5
3835  (eval "$ac_compile") 2>&5
3836  ac_status=$?
3837  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838  test $ac_status = 0; }; then :
3839  for ac_file in conftest.o conftest.obj conftest.*; do
3840  test -f "$ac_file" || continue;
3841  case $ac_file in
3842    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3843    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3844       break;;
3845  esac
3846done
3847else
3848  $as_echo "$as_me: failed program was:" >&5
3849sed 's/^/| /' conftest.$ac_ext >&5
3850
3851{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3852$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853as_fn_error $? "cannot compute suffix of object files: cannot compile
3854See \`config.log' for more details" "$LINENO" 5; }
3855fi
3856rm -f conftest.$ac_cv_objext conftest.$ac_ext
3857fi
3858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3859$as_echo "$ac_cv_objext" >&6; }
3860OBJEXT=$ac_cv_objext
3861ac_objext=$OBJEXT
3862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3863$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3864if ${ac_cv_c_compiler_gnu+:} false; then :
3865  $as_echo_n "(cached) " >&6
3866else
3867  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3868/* end confdefs.h.  */
3869
3870int
3871main ()
3872{
3873#ifndef __GNUC__
3874       choke me
3875#endif
3876
3877  ;
3878  return 0;
3879}
3880_ACEOF
3881if ac_fn_c_try_compile "$LINENO"; then :
3882  ac_compiler_gnu=yes
3883else
3884  ac_compiler_gnu=no
3885fi
3886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887ac_cv_c_compiler_gnu=$ac_compiler_gnu
3888
3889fi
3890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3891$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3892if test $ac_compiler_gnu = yes; then
3893  GCC=yes
3894else
3895  GCC=
3896fi
3897ac_test_CFLAGS=${CFLAGS+set}
3898ac_save_CFLAGS=$CFLAGS
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3900$as_echo_n "checking whether $CC accepts -g... " >&6; }
3901if ${ac_cv_prog_cc_g+:} false; then :
3902  $as_echo_n "(cached) " >&6
3903else
3904  ac_save_c_werror_flag=$ac_c_werror_flag
3905   ac_c_werror_flag=yes
3906   ac_cv_prog_cc_g=no
3907   CFLAGS="-g"
3908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h.  */
3910
3911int
3912main ()
3913{
3914
3915  ;
3916  return 0;
3917}
3918_ACEOF
3919if ac_fn_c_try_compile "$LINENO"; then :
3920  ac_cv_prog_cc_g=yes
3921else
3922  CFLAGS=""
3923      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h.  */
3925
3926int
3927main ()
3928{
3929
3930  ;
3931  return 0;
3932}
3933_ACEOF
3934if ac_fn_c_try_compile "$LINENO"; then :
3935
3936else
3937  ac_c_werror_flag=$ac_save_c_werror_flag
3938	 CFLAGS="-g"
3939	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940/* end confdefs.h.  */
3941
3942int
3943main ()
3944{
3945
3946  ;
3947  return 0;
3948}
3949_ACEOF
3950if ac_fn_c_try_compile "$LINENO"; then :
3951  ac_cv_prog_cc_g=yes
3952fi
3953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3954fi
3955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3956fi
3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3958   ac_c_werror_flag=$ac_save_c_werror_flag
3959fi
3960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3961$as_echo "$ac_cv_prog_cc_g" >&6; }
3962if test "$ac_test_CFLAGS" = set; then
3963  CFLAGS=$ac_save_CFLAGS
3964elif test $ac_cv_prog_cc_g = yes; then
3965  if test "$GCC" = yes; then
3966    CFLAGS="-g -O2"
3967  else
3968    CFLAGS="-g"
3969  fi
3970else
3971  if test "$GCC" = yes; then
3972    CFLAGS="-O2"
3973  else
3974    CFLAGS=
3975  fi
3976fi
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3978$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3979if ${ac_cv_prog_cc_c89+:} false; then :
3980  $as_echo_n "(cached) " >&6
3981else
3982  ac_cv_prog_cc_c89=no
3983ac_save_CC=$CC
3984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985/* end confdefs.h.  */
3986#include <stdarg.h>
3987#include <stdio.h>
3988struct stat;
3989/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3990struct buf { int x; };
3991FILE * (*rcsopen) (struct buf *, struct stat *, int);
3992static char *e (p, i)
3993     char **p;
3994     int i;
3995{
3996  return p[i];
3997}
3998static char *f (char * (*g) (char **, int), char **p, ...)
3999{
4000  char *s;
4001  va_list v;
4002  va_start (v,p);
4003  s = g (p, va_arg (v,int));
4004  va_end (v);
4005  return s;
4006}
4007
4008/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4009   function prototypes and stuff, but not '\xHH' hex character constants.
4010   These don't provoke an error unfortunately, instead are silently treated
4011   as 'x'.  The following induces an error, until -std is added to get
4012   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4013   array size at least.  It's necessary to write '\x00'==0 to get something
4014   that's true only with -std.  */
4015int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4016
4017/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4018   inside strings and character constants.  */
4019#define FOO(x) 'x'
4020int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4021
4022int test (int i, double x);
4023struct s1 {int (*f) (int a);};
4024struct s2 {int (*f) (double a);};
4025int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4026int argc;
4027char **argv;
4028int
4029main ()
4030{
4031return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4032  ;
4033  return 0;
4034}
4035_ACEOF
4036for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4037	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4038do
4039  CC="$ac_save_CC $ac_arg"
4040  if ac_fn_c_try_compile "$LINENO"; then :
4041  ac_cv_prog_cc_c89=$ac_arg
4042fi
4043rm -f core conftest.err conftest.$ac_objext
4044  test "x$ac_cv_prog_cc_c89" != "xno" && break
4045done
4046rm -f conftest.$ac_ext
4047CC=$ac_save_CC
4048
4049fi
4050# AC_CACHE_VAL
4051case "x$ac_cv_prog_cc_c89" in
4052  x)
4053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4054$as_echo "none needed" >&6; } ;;
4055  xno)
4056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4057$as_echo "unsupported" >&6; } ;;
4058  *)
4059    CC="$CC $ac_cv_prog_cc_c89"
4060    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4061$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4062esac
4063if test "x$ac_cv_prog_cc_c89" != xno; then :
4064
4065fi
4066
4067ac_ext=c
4068ac_cpp='$CPP $CPPFLAGS'
4069ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4070ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4071ac_compiler_gnu=$ac_cv_c_compiler_gnu
4072
4073ac_ext=c
4074ac_cpp='$CPP $CPPFLAGS'
4075ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077ac_compiler_gnu=$ac_cv_c_compiler_gnu
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4079$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4080if ${am_cv_prog_cc_c_o+:} false; then :
4081  $as_echo_n "(cached) " >&6
4082else
4083  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h.  */
4085
4086int
4087main ()
4088{
4089
4090  ;
4091  return 0;
4092}
4093_ACEOF
4094  # Make sure it works both with $CC and with simple cc.
4095  # Following AC_PROG_CC_C_O, we do the test twice because some
4096  # compilers refuse to overwrite an existing .o file with -o,
4097  # though they will create one.
4098  am_cv_prog_cc_c_o=yes
4099  for am_i in 1 2; do
4100    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4101   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4102   ac_status=$?
4103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104   (exit $ac_status); } \
4105         && test -f conftest2.$ac_objext; then
4106      : OK
4107    else
4108      am_cv_prog_cc_c_o=no
4109      break
4110    fi
4111  done
4112  rm -f core conftest*
4113  unset am_i
4114fi
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4116$as_echo "$am_cv_prog_cc_c_o" >&6; }
4117if test "$am_cv_prog_cc_c_o" != yes; then
4118   # Losing compiler, so override with the script.
4119   # FIXME: It is wrong to rewrite CC.
4120   # But if we don't then we get into trouble of one sort or another.
4121   # A longer-term fix would be to have automake use am__CC in this case,
4122   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4123   CC="$am_aux_dir/compile $CC"
4124fi
4125ac_ext=c
4126ac_cpp='$CPP $CPPFLAGS'
4127ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4128ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4129ac_compiler_gnu=$ac_cv_c_compiler_gnu
4130
4131
4132depcc="$CC"   am_compiler_list=
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4135$as_echo_n "checking dependency style of $depcc... " >&6; }
4136if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4137  $as_echo_n "(cached) " >&6
4138else
4139  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4140  # We make a subdir and do the tests there.  Otherwise we can end up
4141  # making bogus files that we don't know about and never remove.  For
4142  # instance it was reported that on HP-UX the gcc test will end up
4143  # making a dummy file named 'D' -- because '-MD' means "put the output
4144  # in D".
4145  rm -rf conftest.dir
4146  mkdir conftest.dir
4147  # Copy depcomp to subdir because otherwise we won't find it if we're
4148  # using a relative directory.
4149  cp "$am_depcomp" conftest.dir
4150  cd conftest.dir
4151  # We will build objects and dependencies in a subdirectory because
4152  # it helps to detect inapplicable dependency modes.  For instance
4153  # both Tru64's cc and ICC support -MD to output dependencies as a
4154  # side effect of compilation, but ICC will put the dependencies in
4155  # the current directory while Tru64 will put them in the object
4156  # directory.
4157  mkdir sub
4158
4159  am_cv_CC_dependencies_compiler_type=none
4160  if test "$am_compiler_list" = ""; then
4161     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4162  fi
4163  am__universal=false
4164  case " $depcc " in #(
4165     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4166     esac
4167
4168  for depmode in $am_compiler_list; do
4169    # Setup a source with many dependencies, because some compilers
4170    # like to wrap large dependency lists on column 80 (with \), and
4171    # we should not choose a depcomp mode which is confused by this.
4172    #
4173    # We need to recreate these files for each test, as the compiler may
4174    # overwrite some of them when testing with obscure command lines.
4175    # This happens at least with the AIX C compiler.
4176    : > sub/conftest.c
4177    for i in 1 2 3 4 5 6; do
4178      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4179      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4180      # Solaris 10 /bin/sh.
4181      echo '/* dummy */' > sub/conftst$i.h
4182    done
4183    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4184
4185    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4186    # mode.  It turns out that the SunPro C++ compiler does not properly
4187    # handle '-M -o', and we need to detect this.  Also, some Intel
4188    # versions had trouble with output in subdirs.
4189    am__obj=sub/conftest.${OBJEXT-o}
4190    am__minus_obj="-o $am__obj"
4191    case $depmode in
4192    gcc)
4193      # This depmode causes a compiler race in universal mode.
4194      test "$am__universal" = false || continue
4195      ;;
4196    nosideeffect)
4197      # After this tag, mechanisms are not by side-effect, so they'll
4198      # only be used when explicitly requested.
4199      if test "x$enable_dependency_tracking" = xyes; then
4200	continue
4201      else
4202	break
4203      fi
4204      ;;
4205    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4206      # This compiler won't grok '-c -o', but also, the minuso test has
4207      # not run yet.  These depmodes are late enough in the game, and
4208      # so weak that their functioning should not be impacted.
4209      am__obj=conftest.${OBJEXT-o}
4210      am__minus_obj=
4211      ;;
4212    none) break ;;
4213    esac
4214    if depmode=$depmode \
4215       source=sub/conftest.c object=$am__obj \
4216       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4217       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4218         >/dev/null 2>conftest.err &&
4219       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4220       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4221       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4222       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4223      # icc doesn't choke on unknown options, it will just issue warnings
4224      # or remarks (even with -Werror).  So we grep stderr for any message
4225      # that says an option was ignored or not supported.
4226      # When given -MP, icc 7.0 and 7.1 complain thusly:
4227      #   icc: Command line warning: ignoring option '-M'; no argument required
4228      # The diagnosis changed in icc 8.0:
4229      #   icc: Command line remark: option '-MP' not supported
4230      if (grep 'ignoring option' conftest.err ||
4231          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4232        am_cv_CC_dependencies_compiler_type=$depmode
4233        break
4234      fi
4235    fi
4236  done
4237
4238  cd ..
4239  rm -rf conftest.dir
4240else
4241  am_cv_CC_dependencies_compiler_type=none
4242fi
4243
4244fi
4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4246$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4247CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4248
4249 if
4250  test "x$enable_dependency_tracking" != xno \
4251  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4252  am__fastdepCC_TRUE=
4253  am__fastdepCC_FALSE='#'
4254else
4255  am__fastdepCC_TRUE='#'
4256  am__fastdepCC_FALSE=
4257fi
4258
4259
4260
4261ac_ext=c
4262ac_cpp='$CPP $CPPFLAGS'
4263ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4267$as_echo_n "checking how to run the C preprocessor... " >&6; }
4268# On Suns, sometimes $CPP names a directory.
4269if test -n "$CPP" && test -d "$CPP"; then
4270  CPP=
4271fi
4272if test -z "$CPP"; then
4273  if ${ac_cv_prog_CPP+:} false; then :
4274  $as_echo_n "(cached) " >&6
4275else
4276      # Double quotes because CPP needs to be expanded
4277    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4278    do
4279      ac_preproc_ok=false
4280for ac_c_preproc_warn_flag in '' yes
4281do
4282  # Use a header file that comes with gcc, so configuring glibc
4283  # with a fresh cross-compiler works.
4284  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285  # <limits.h> exists even on freestanding compilers.
4286  # On the NeXT, cc -E runs the code through the compiler's parser,
4287  # not just through cpp. "Syntax error" is here to catch this case.
4288  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289/* end confdefs.h.  */
4290#ifdef __STDC__
4291# include <limits.h>
4292#else
4293# include <assert.h>
4294#endif
4295		     Syntax error
4296_ACEOF
4297if ac_fn_c_try_cpp "$LINENO"; then :
4298
4299else
4300  # Broken: fails on valid input.
4301continue
4302fi
4303rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305  # OK, works on sane cases.  Now check whether nonexistent headers
4306  # can be detected and how.
4307  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4308/* end confdefs.h.  */
4309#include <ac_nonexistent.h>
4310_ACEOF
4311if ac_fn_c_try_cpp "$LINENO"; then :
4312  # Broken: success on invalid input.
4313continue
4314else
4315  # Passes both tests.
4316ac_preproc_ok=:
4317break
4318fi
4319rm -f conftest.err conftest.i conftest.$ac_ext
4320
4321done
4322# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4323rm -f conftest.i conftest.err conftest.$ac_ext
4324if $ac_preproc_ok; then :
4325  break
4326fi
4327
4328    done
4329    ac_cv_prog_CPP=$CPP
4330
4331fi
4332  CPP=$ac_cv_prog_CPP
4333else
4334  ac_cv_prog_CPP=$CPP
4335fi
4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4337$as_echo "$CPP" >&6; }
4338ac_preproc_ok=false
4339for ac_c_preproc_warn_flag in '' yes
4340do
4341  # Use a header file that comes with gcc, so configuring glibc
4342  # with a fresh cross-compiler works.
4343  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4344  # <limits.h> exists even on freestanding compilers.
4345  # On the NeXT, cc -E runs the code through the compiler's parser,
4346  # not just through cpp. "Syntax error" is here to catch this case.
4347  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348/* end confdefs.h.  */
4349#ifdef __STDC__
4350# include <limits.h>
4351#else
4352# include <assert.h>
4353#endif
4354		     Syntax error
4355_ACEOF
4356if ac_fn_c_try_cpp "$LINENO"; then :
4357
4358else
4359  # Broken: fails on valid input.
4360continue
4361fi
4362rm -f conftest.err conftest.i conftest.$ac_ext
4363
4364  # OK, works on sane cases.  Now check whether nonexistent headers
4365  # can be detected and how.
4366  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4367/* end confdefs.h.  */
4368#include <ac_nonexistent.h>
4369_ACEOF
4370if ac_fn_c_try_cpp "$LINENO"; then :
4371  # Broken: success on invalid input.
4372continue
4373else
4374  # Passes both tests.
4375ac_preproc_ok=:
4376break
4377fi
4378rm -f conftest.err conftest.i conftest.$ac_ext
4379
4380done
4381# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4382rm -f conftest.i conftest.err conftest.$ac_ext
4383if $ac_preproc_ok; then :
4384
4385else
4386  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4389See \`config.log' for more details" "$LINENO" 5; }
4390fi
4391
4392ac_ext=c
4393ac_cpp='$CPP $CPPFLAGS'
4394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397
4398
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4400$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4401if ${ac_cv_path_GREP+:} false; then :
4402  $as_echo_n "(cached) " >&6
4403else
4404  if test -z "$GREP"; then
4405  ac_path_GREP_found=false
4406  # Loop through the user's path and test for each of PROGNAME-LIST
4407  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4409do
4410  IFS=$as_save_IFS
4411  test -z "$as_dir" && as_dir=.
4412    for ac_prog in grep ggrep; do
4413    for ac_exec_ext in '' $ac_executable_extensions; do
4414      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4415      as_fn_executable_p "$ac_path_GREP" || continue
4416# Check for GNU ac_path_GREP and select it if it is found.
4417  # Check for GNU $ac_path_GREP
4418case `"$ac_path_GREP" --version 2>&1` in
4419*GNU*)
4420  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4421*)
4422  ac_count=0
4423  $as_echo_n 0123456789 >"conftest.in"
4424  while :
4425  do
4426    cat "conftest.in" "conftest.in" >"conftest.tmp"
4427    mv "conftest.tmp" "conftest.in"
4428    cp "conftest.in" "conftest.nl"
4429    $as_echo 'GREP' >> "conftest.nl"
4430    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4431    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4432    as_fn_arith $ac_count + 1 && ac_count=$as_val
4433    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4434      # Best one so far, save it but keep looking for a better one
4435      ac_cv_path_GREP="$ac_path_GREP"
4436      ac_path_GREP_max=$ac_count
4437    fi
4438    # 10*(2^10) chars as input seems more than enough
4439    test $ac_count -gt 10 && break
4440  done
4441  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4442esac
4443
4444      $ac_path_GREP_found && break 3
4445    done
4446  done
4447  done
4448IFS=$as_save_IFS
4449  if test -z "$ac_cv_path_GREP"; then
4450    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4451  fi
4452else
4453  ac_cv_path_GREP=$GREP
4454fi
4455
4456fi
4457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4458$as_echo "$ac_cv_path_GREP" >&6; }
4459 GREP="$ac_cv_path_GREP"
4460
4461
4462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4463$as_echo_n "checking for egrep... " >&6; }
4464if ${ac_cv_path_EGREP+:} false; then :
4465  $as_echo_n "(cached) " >&6
4466else
4467  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4468   then ac_cv_path_EGREP="$GREP -E"
4469   else
4470     if test -z "$EGREP"; then
4471  ac_path_EGREP_found=false
4472  # Loop through the user's path and test for each of PROGNAME-LIST
4473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478    for ac_prog in egrep; do
4479    for ac_exec_ext in '' $ac_executable_extensions; do
4480      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4481      as_fn_executable_p "$ac_path_EGREP" || continue
4482# Check for GNU ac_path_EGREP and select it if it is found.
4483  # Check for GNU $ac_path_EGREP
4484case `"$ac_path_EGREP" --version 2>&1` in
4485*GNU*)
4486  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4487*)
4488  ac_count=0
4489  $as_echo_n 0123456789 >"conftest.in"
4490  while :
4491  do
4492    cat "conftest.in" "conftest.in" >"conftest.tmp"
4493    mv "conftest.tmp" "conftest.in"
4494    cp "conftest.in" "conftest.nl"
4495    $as_echo 'EGREP' >> "conftest.nl"
4496    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4497    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4498    as_fn_arith $ac_count + 1 && ac_count=$as_val
4499    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4500      # Best one so far, save it but keep looking for a better one
4501      ac_cv_path_EGREP="$ac_path_EGREP"
4502      ac_path_EGREP_max=$ac_count
4503    fi
4504    # 10*(2^10) chars as input seems more than enough
4505    test $ac_count -gt 10 && break
4506  done
4507  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508esac
4509
4510      $ac_path_EGREP_found && break 3
4511    done
4512  done
4513  done
4514IFS=$as_save_IFS
4515  if test -z "$ac_cv_path_EGREP"; then
4516    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4517  fi
4518else
4519  ac_cv_path_EGREP=$EGREP
4520fi
4521
4522   fi
4523fi
4524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4525$as_echo "$ac_cv_path_EGREP" >&6; }
4526 EGREP="$ac_cv_path_EGREP"
4527
4528
4529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4530$as_echo_n "checking for ANSI C header files... " >&6; }
4531if ${ac_cv_header_stdc+:} false; then :
4532  $as_echo_n "(cached) " >&6
4533else
4534  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535/* end confdefs.h.  */
4536#include <stdlib.h>
4537#include <stdarg.h>
4538#include <string.h>
4539#include <float.h>
4540
4541int
4542main ()
4543{
4544
4545  ;
4546  return 0;
4547}
4548_ACEOF
4549if ac_fn_c_try_compile "$LINENO"; then :
4550  ac_cv_header_stdc=yes
4551else
4552  ac_cv_header_stdc=no
4553fi
4554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4555
4556if test $ac_cv_header_stdc = yes; then
4557  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4558  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4559/* end confdefs.h.  */
4560#include <string.h>
4561
4562_ACEOF
4563if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564  $EGREP "memchr" >/dev/null 2>&1; then :
4565
4566else
4567  ac_cv_header_stdc=no
4568fi
4569rm -f conftest*
4570
4571fi
4572
4573if test $ac_cv_header_stdc = yes; then
4574  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4575  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576/* end confdefs.h.  */
4577#include <stdlib.h>
4578
4579_ACEOF
4580if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4581  $EGREP "free" >/dev/null 2>&1; then :
4582
4583else
4584  ac_cv_header_stdc=no
4585fi
4586rm -f conftest*
4587
4588fi
4589
4590if test $ac_cv_header_stdc = yes; then
4591  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4592  if test "$cross_compiling" = yes; then :
4593  :
4594else
4595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h.  */
4597#include <ctype.h>
4598#include <stdlib.h>
4599#if ((' ' & 0x0FF) == 0x020)
4600# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4601# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4602#else
4603# define ISLOWER(c) \
4604		   (('a' <= (c) && (c) <= 'i') \
4605		     || ('j' <= (c) && (c) <= 'r') \
4606		     || ('s' <= (c) && (c) <= 'z'))
4607# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4608#endif
4609
4610#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4611int
4612main ()
4613{
4614  int i;
4615  for (i = 0; i < 256; i++)
4616    if (XOR (islower (i), ISLOWER (i))
4617	|| toupper (i) != TOUPPER (i))
4618      return 2;
4619  return 0;
4620}
4621_ACEOF
4622if ac_fn_c_try_run "$LINENO"; then :
4623
4624else
4625  ac_cv_header_stdc=no
4626fi
4627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4628  conftest.$ac_objext conftest.beam conftest.$ac_ext
4629fi
4630
4631fi
4632fi
4633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4634$as_echo "$ac_cv_header_stdc" >&6; }
4635if test $ac_cv_header_stdc = yes; then
4636
4637$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4638
4639fi
4640
4641# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4642for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643		  inttypes.h stdint.h unistd.h
4644do :
4645  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4647"
4648if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4649  cat >>confdefs.h <<_ACEOF
4650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4651_ACEOF
4652
4653fi
4654
4655done
4656
4657
4658
4659  ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4660if test "x$ac_cv_header_minix_config_h" = xyes; then :
4661  MINIX=yes
4662else
4663  MINIX=
4664fi
4665
4666
4667  if test "$MINIX" = yes; then
4668
4669$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4670
4671
4672$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4673
4674
4675$as_echo "#define _MINIX 1" >>confdefs.h
4676
4677  fi
4678
4679
4680  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4681$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4682if ${ac_cv_safe_to_define___extensions__+:} false; then :
4683  $as_echo_n "(cached) " >&6
4684else
4685  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4686/* end confdefs.h.  */
4687
4688#         define __EXTENSIONS__ 1
4689          $ac_includes_default
4690int
4691main ()
4692{
4693
4694  ;
4695  return 0;
4696}
4697_ACEOF
4698if ac_fn_c_try_compile "$LINENO"; then :
4699  ac_cv_safe_to_define___extensions__=yes
4700else
4701  ac_cv_safe_to_define___extensions__=no
4702fi
4703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4704fi
4705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4706$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4707  test $ac_cv_safe_to_define___extensions__ = yes &&
4708    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4709
4710  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4711
4712  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4713
4714  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4715
4716  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4717
4718
4719
4720
4721CFLAGS="$CFLAGS -DSU_DEBUG=0 $DEBUG_CFLAGS"
4722### checks for programs
4723### -------------------
4724ac_ext=c
4725ac_cpp='$CPP $CPPFLAGS'
4726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4728ac_compiler_gnu=$ac_cv_c_compiler_gnu
4729
4730
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compilation environment" >&5
4733$as_echo_n "checking for compilation environment... " >&6; }
4734if ${ac_cv_cc_environment+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737
4738machine=`$CC -dumpmachine`
4739if test "$machine" = mingw32 ; then
4740  ac_cc_environment=$machine
4741fi
4742
4743fi
4744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_environment" >&5
4745$as_echo "$ac_cv_cc_environment" >&6; }
4746
4747if test "$ac_cc_environment" = mingw32 ; then
4748CFLAGS="$CFLAGS -I\$(top_srcdir)/win32/pthread -DWINVER=0x0501 \
4749	-D_WIN32_WINNT=0x0501 -DIN_LIBSOFIA_SIP_UA -DIN_LIBSOFIA_SRES \
4750	-mms-bitfields \
4751	-pipe -mno-cygwin -mwindows -mconsole -Wall -g -O0"
4752LDFLAGS="$LDFLAGS -Wl,--enable-auto-image-base"
4753LIBS="-L\$(top_srcdir)/win32/pthread -lpthreadVC2 -lws2_32 \
4754	-lwsock32"
4755MINGW_ENVIRONMENT=1
4756
4757
4758$as_echo "#define HAVE_MINGW 1" >>confdefs.h
4759
4760
4761$as_echo "#define HAVE_WIN32 1" >>confdefs.h
4762
4763fi
4764 if test "x$ac_cc_environment" != x; then
4765  HAVE_MINGW32_TRUE=
4766  HAVE_MINGW32_FALSE='#'
4767else
4768  HAVE_MINGW32_TRUE='#'
4769  HAVE_MINGW32_FALSE=
4770fi
4771
4772
4773
4774
4775
4776#AC_BEFORE([SAC_TOOL_CC], [AC_PROG_CPP])dnl
4777
4778if test -n "$ac_tool_prefix"; then
4779  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4780set dummy ${ac_tool_prefix}gcc; ac_word=$2
4781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4782$as_echo_n "checking for $ac_word... " >&6; }
4783if ${ac_cv_prog_CC+:} false; then :
4784  $as_echo_n "(cached) " >&6
4785else
4786  if test -n "$CC"; then
4787  ac_cv_prog_CC="$CC" # Let the user override the test.
4788else
4789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4790for as_dir in $PATH
4791do
4792  IFS=$as_save_IFS
4793  test -z "$as_dir" && as_dir=.
4794    for ac_exec_ext in '' $ac_executable_extensions; do
4795  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4796    ac_cv_prog_CC="${ac_tool_prefix}gcc"
4797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4798    break 2
4799  fi
4800done
4801  done
4802IFS=$as_save_IFS
4803
4804fi
4805fi
4806CC=$ac_cv_prog_CC
4807if test -n "$CC"; then
4808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4809$as_echo "$CC" >&6; }
4810else
4811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812$as_echo "no" >&6; }
4813fi
4814
4815
4816fi
4817if test -z "$ac_cv_prog_CC"; then
4818  ac_ct_CC=$CC
4819  # Extract the first word of "gcc", so it can be a program name with args.
4820set dummy gcc; ac_word=$2
4821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4822$as_echo_n "checking for $ac_word... " >&6; }
4823if ${ac_cv_prog_ac_ct_CC+:} false; then :
4824  $as_echo_n "(cached) " >&6
4825else
4826  if test -n "$ac_ct_CC"; then
4827  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4828else
4829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830for as_dir in $PATH
4831do
4832  IFS=$as_save_IFS
4833  test -z "$as_dir" && as_dir=.
4834    for ac_exec_ext in '' $ac_executable_extensions; do
4835  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4836    ac_cv_prog_ac_ct_CC="gcc"
4837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4838    break 2
4839  fi
4840done
4841  done
4842IFS=$as_save_IFS
4843
4844fi
4845fi
4846ac_ct_CC=$ac_cv_prog_ac_ct_CC
4847if test -n "$ac_ct_CC"; then
4848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4849$as_echo "$ac_ct_CC" >&6; }
4850else
4851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852$as_echo "no" >&6; }
4853fi
4854
4855  if test "x$ac_ct_CC" = x; then
4856    CC="gcc"
4857  else
4858    case $cross_compiling:$ac_tool_warned in
4859yes:)
4860{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4861$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4862ac_tool_warned=yes ;;
4863esac
4864    CC=$ac_ct_CC
4865  fi
4866else
4867  CC="$ac_cv_prog_CC"
4868fi
4869
4870if test -z "$CC"; then
4871  if test -n "$ac_tool_prefix"; then
4872  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4873set dummy ${ac_tool_prefix}cc; ac_word=$2
4874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4875$as_echo_n "checking for $ac_word... " >&6; }
4876if ${ac_cv_prog_CC+:} false; then :
4877  $as_echo_n "(cached) " >&6
4878else
4879  if test -n "$CC"; then
4880  ac_cv_prog_CC="$CC" # Let the user override the test.
4881else
4882as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4883for as_dir in $PATH
4884do
4885  IFS=$as_save_IFS
4886  test -z "$as_dir" && as_dir=.
4887    for ac_exec_ext in '' $ac_executable_extensions; do
4888  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4889    ac_cv_prog_CC="${ac_tool_prefix}cc"
4890    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4891    break 2
4892  fi
4893done
4894  done
4895IFS=$as_save_IFS
4896
4897fi
4898fi
4899CC=$ac_cv_prog_CC
4900if test -n "$CC"; then
4901  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4902$as_echo "$CC" >&6; }
4903else
4904  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4905$as_echo "no" >&6; }
4906fi
4907
4908
4909fi
4910if test -z "$ac_cv_prog_CC"; then
4911  ac_ct_CC=$CC
4912  # Extract the first word of "cc", so it can be a program name with args.
4913set dummy cc; ac_word=$2
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4915$as_echo_n "checking for $ac_word... " >&6; }
4916if ${ac_cv_prog_ac_ct_CC+:} false; then :
4917  $as_echo_n "(cached) " >&6
4918else
4919  if test -n "$ac_ct_CC"; then
4920  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4921else
4922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923for as_dir in $PATH
4924do
4925  IFS=$as_save_IFS
4926  test -z "$as_dir" && as_dir=.
4927    for ac_exec_ext in '' $ac_executable_extensions; do
4928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929    ac_cv_prog_ac_ct_CC="cc"
4930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4931    break 2
4932  fi
4933done
4934  done
4935IFS=$as_save_IFS
4936
4937fi
4938fi
4939ac_ct_CC=$ac_cv_prog_ac_ct_CC
4940if test -n "$ac_ct_CC"; then
4941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4942$as_echo "$ac_ct_CC" >&6; }
4943else
4944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945$as_echo "no" >&6; }
4946fi
4947
4948  if test "x$ac_ct_CC" = x; then
4949    CC="cc"
4950  else
4951    case $cross_compiling:$ac_tool_warned in
4952yes:)
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4954$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4955ac_tool_warned=yes ;;
4956esac
4957    CC=$ac_ct_CC
4958  fi
4959else
4960  CC="$ac_cv_prog_CC"
4961fi
4962
4963  if test -z "$CC"; then
4964    case "`uname -s`" in
4965    *win32* | *WIN32* ) # Extract the first word of "cl", so it can be a program name with args.
4966set dummy cl; ac_word=$2
4967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968$as_echo_n "checking for $ac_word... " >&6; }
4969if ${ac_cv_prog_CC+:} false; then :
4970  $as_echo_n "(cached) " >&6
4971else
4972  if test -n "$CC"; then
4973  ac_cv_prog_CC="$CC" # Let the user override the test.
4974else
4975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976for as_dir in $PATH
4977do
4978  IFS=$as_save_IFS
4979  test -z "$as_dir" && as_dir=.
4980    for ac_exec_ext in '' $ac_executable_extensions; do
4981  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982    ac_cv_prog_CC="cl"
4983    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984    break 2
4985  fi
4986done
4987  done
4988IFS=$as_save_IFS
4989
4990fi
4991fi
4992CC=$ac_cv_prog_CC
4993if test -n "$CC"; then
4994  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4995$as_echo "$CC" >&6; }
4996else
4997  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998$as_echo "no" >&6; }
4999fi
5000
5001 ;;
5002    esac
5003  fi
5004  test -z "$CC" && as_fn_error $? "no acceptable cc found in \$PATH" "$LINENO" 5
5005fi
5006
5007ac_ext=c
5008ac_cpp='$CPP $CPPFLAGS'
5009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012if test -n "$ac_tool_prefix"; then
5013  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5014set dummy ${ac_tool_prefix}gcc; ac_word=$2
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016$as_echo_n "checking for $ac_word... " >&6; }
5017if ${ac_cv_prog_CC+:} false; then :
5018  $as_echo_n "(cached) " >&6
5019else
5020  if test -n "$CC"; then
5021  ac_cv_prog_CC="$CC" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026  IFS=$as_save_IFS
5027  test -z "$as_dir" && as_dir=.
5028    for ac_exec_ext in '' $ac_executable_extensions; do
5029  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5030    ac_cv_prog_CC="${ac_tool_prefix}gcc"
5031    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032    break 2
5033  fi
5034done
5035  done
5036IFS=$as_save_IFS
5037
5038fi
5039fi
5040CC=$ac_cv_prog_CC
5041if test -n "$CC"; then
5042  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5043$as_echo "$CC" >&6; }
5044else
5045  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5046$as_echo "no" >&6; }
5047fi
5048
5049
5050fi
5051if test -z "$ac_cv_prog_CC"; then
5052  ac_ct_CC=$CC
5053  # Extract the first word of "gcc", so it can be a program name with args.
5054set dummy gcc; ac_word=$2
5055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5056$as_echo_n "checking for $ac_word... " >&6; }
5057if ${ac_cv_prog_ac_ct_CC+:} false; then :
5058  $as_echo_n "(cached) " >&6
5059else
5060  if test -n "$ac_ct_CC"; then
5061  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5062else
5063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5064for as_dir in $PATH
5065do
5066  IFS=$as_save_IFS
5067  test -z "$as_dir" && as_dir=.
5068    for ac_exec_ext in '' $ac_executable_extensions; do
5069  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5070    ac_cv_prog_ac_ct_CC="gcc"
5071    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5072    break 2
5073  fi
5074done
5075  done
5076IFS=$as_save_IFS
5077
5078fi
5079fi
5080ac_ct_CC=$ac_cv_prog_ac_ct_CC
5081if test -n "$ac_ct_CC"; then
5082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5083$as_echo "$ac_ct_CC" >&6; }
5084else
5085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5086$as_echo "no" >&6; }
5087fi
5088
5089  if test "x$ac_ct_CC" = x; then
5090    CC=""
5091  else
5092    case $cross_compiling:$ac_tool_warned in
5093yes:)
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096ac_tool_warned=yes ;;
5097esac
5098    CC=$ac_ct_CC
5099  fi
5100else
5101  CC="$ac_cv_prog_CC"
5102fi
5103
5104if test -z "$CC"; then
5105          if test -n "$ac_tool_prefix"; then
5106    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5107set dummy ${ac_tool_prefix}cc; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if ${ac_cv_prog_CC+:} false; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  if test -n "$CC"; then
5114  ac_cv_prog_CC="$CC" # Let the user override the test.
5115else
5116as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117for as_dir in $PATH
5118do
5119  IFS=$as_save_IFS
5120  test -z "$as_dir" && as_dir=.
5121    for ac_exec_ext in '' $ac_executable_extensions; do
5122  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123    ac_cv_prog_CC="${ac_tool_prefix}cc"
5124    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5125    break 2
5126  fi
5127done
5128  done
5129IFS=$as_save_IFS
5130
5131fi
5132fi
5133CC=$ac_cv_prog_CC
5134if test -n "$CC"; then
5135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5136$as_echo "$CC" >&6; }
5137else
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139$as_echo "no" >&6; }
5140fi
5141
5142
5143  fi
5144fi
5145if test -z "$CC"; then
5146  # Extract the first word of "cc", so it can be a program name with args.
5147set dummy cc; ac_word=$2
5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5149$as_echo_n "checking for $ac_word... " >&6; }
5150if ${ac_cv_prog_CC+:} false; then :
5151  $as_echo_n "(cached) " >&6
5152else
5153  if test -n "$CC"; then
5154  ac_cv_prog_CC="$CC" # Let the user override the test.
5155else
5156  ac_prog_rejected=no
5157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158for as_dir in $PATH
5159do
5160  IFS=$as_save_IFS
5161  test -z "$as_dir" && as_dir=.
5162    for ac_exec_ext in '' $ac_executable_extensions; do
5163  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5165       ac_prog_rejected=yes
5166       continue
5167     fi
5168    ac_cv_prog_CC="cc"
5169    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170    break 2
5171  fi
5172done
5173  done
5174IFS=$as_save_IFS
5175
5176if test $ac_prog_rejected = yes; then
5177  # We found a bogon in the path, so make sure we never use it.
5178  set dummy $ac_cv_prog_CC
5179  shift
5180  if test $# != 0; then
5181    # We chose a different compiler from the bogus one.
5182    # However, it has the same basename, so the bogon will be chosen
5183    # first if we set CC to just the basename; use the full file name.
5184    shift
5185    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5186  fi
5187fi
5188fi
5189fi
5190CC=$ac_cv_prog_CC
5191if test -n "$CC"; then
5192  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5193$as_echo "$CC" >&6; }
5194else
5195  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196$as_echo "no" >&6; }
5197fi
5198
5199
5200fi
5201if test -z "$CC"; then
5202  if test -n "$ac_tool_prefix"; then
5203  for ac_prog in cl.exe
5204  do
5205    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
5209if ${ac_cv_prog_CC+:} false; then :
5210  $as_echo_n "(cached) " >&6
5211else
5212  if test -n "$CC"; then
5213  ac_cv_prog_CC="$CC" # Let the user override the test.
5214else
5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216for as_dir in $PATH
5217do
5218  IFS=$as_save_IFS
5219  test -z "$as_dir" && as_dir=.
5220    for ac_exec_ext in '' $ac_executable_extensions; do
5221  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5223    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224    break 2
5225  fi
5226done
5227  done
5228IFS=$as_save_IFS
5229
5230fi
5231fi
5232CC=$ac_cv_prog_CC
5233if test -n "$CC"; then
5234  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5235$as_echo "$CC" >&6; }
5236else
5237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238$as_echo "no" >&6; }
5239fi
5240
5241
5242    test -n "$CC" && break
5243  done
5244fi
5245if test -z "$CC"; then
5246  ac_ct_CC=$CC
5247  for ac_prog in cl.exe
5248do
5249  # Extract the first word of "$ac_prog", so it can be a program name with args.
5250set dummy $ac_prog; ac_word=$2
5251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5252$as_echo_n "checking for $ac_word... " >&6; }
5253if ${ac_cv_prog_ac_ct_CC+:} false; then :
5254  $as_echo_n "(cached) " >&6
5255else
5256  if test -n "$ac_ct_CC"; then
5257  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5258else
5259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260for as_dir in $PATH
5261do
5262  IFS=$as_save_IFS
5263  test -z "$as_dir" && as_dir=.
5264    for ac_exec_ext in '' $ac_executable_extensions; do
5265  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5266    ac_cv_prog_ac_ct_CC="$ac_prog"
5267    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5268    break 2
5269  fi
5270done
5271  done
5272IFS=$as_save_IFS
5273
5274fi
5275fi
5276ac_ct_CC=$ac_cv_prog_ac_ct_CC
5277if test -n "$ac_ct_CC"; then
5278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5279$as_echo "$ac_ct_CC" >&6; }
5280else
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5282$as_echo "no" >&6; }
5283fi
5284
5285
5286  test -n "$ac_ct_CC" && break
5287done
5288
5289  if test "x$ac_ct_CC" = x; then
5290    CC=""
5291  else
5292    case $cross_compiling:$ac_tool_warned in
5293yes:)
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5295$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5296ac_tool_warned=yes ;;
5297esac
5298    CC=$ac_ct_CC
5299  fi
5300fi
5301
5302fi
5303
5304
5305test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5306$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5307as_fn_error $? "no acceptable C compiler found in \$PATH
5308See \`config.log' for more details" "$LINENO" 5; }
5309
5310# Provide some information about the compiler.
5311$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5312set X $ac_compile
5313ac_compiler=$2
5314for ac_option in --version -v -V -qversion; do
5315  { { ac_try="$ac_compiler $ac_option >&5"
5316case "(($ac_try" in
5317  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5318  *) ac_try_echo=$ac_try;;
5319esac
5320eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5321$as_echo "$ac_try_echo"; } >&5
5322  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5323  ac_status=$?
5324  if test -s conftest.err; then
5325    sed '10a\
5326... rest of stderr output deleted ...
5327         10q' conftest.err >conftest.er1
5328    cat conftest.er1 >&5
5329  fi
5330  rm -f conftest.er1 conftest.err
5331  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5332  test $ac_status = 0; }
5333done
5334
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5336$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5337if ${ac_cv_c_compiler_gnu+:} false; then :
5338  $as_echo_n "(cached) " >&6
5339else
5340  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h.  */
5342
5343int
5344main ()
5345{
5346#ifndef __GNUC__
5347       choke me
5348#endif
5349
5350  ;
5351  return 0;
5352}
5353_ACEOF
5354if ac_fn_c_try_compile "$LINENO"; then :
5355  ac_compiler_gnu=yes
5356else
5357  ac_compiler_gnu=no
5358fi
5359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5360ac_cv_c_compiler_gnu=$ac_compiler_gnu
5361
5362fi
5363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5364$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5365if test $ac_compiler_gnu = yes; then
5366  GCC=yes
5367else
5368  GCC=
5369fi
5370ac_test_CFLAGS=${CFLAGS+set}
5371ac_save_CFLAGS=$CFLAGS
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5373$as_echo_n "checking whether $CC accepts -g... " >&6; }
5374if ${ac_cv_prog_cc_g+:} false; then :
5375  $as_echo_n "(cached) " >&6
5376else
5377  ac_save_c_werror_flag=$ac_c_werror_flag
5378   ac_c_werror_flag=yes
5379   ac_cv_prog_cc_g=no
5380   CFLAGS="-g"
5381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5382/* end confdefs.h.  */
5383
5384int
5385main ()
5386{
5387
5388  ;
5389  return 0;
5390}
5391_ACEOF
5392if ac_fn_c_try_compile "$LINENO"; then :
5393  ac_cv_prog_cc_g=yes
5394else
5395  CFLAGS=""
5396      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397/* end confdefs.h.  */
5398
5399int
5400main ()
5401{
5402
5403  ;
5404  return 0;
5405}
5406_ACEOF
5407if ac_fn_c_try_compile "$LINENO"; then :
5408
5409else
5410  ac_c_werror_flag=$ac_save_c_werror_flag
5411	 CFLAGS="-g"
5412	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h.  */
5414
5415int
5416main ()
5417{
5418
5419  ;
5420  return 0;
5421}
5422_ACEOF
5423if ac_fn_c_try_compile "$LINENO"; then :
5424  ac_cv_prog_cc_g=yes
5425fi
5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5427fi
5428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5429fi
5430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431   ac_c_werror_flag=$ac_save_c_werror_flag
5432fi
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5434$as_echo "$ac_cv_prog_cc_g" >&6; }
5435if test "$ac_test_CFLAGS" = set; then
5436  CFLAGS=$ac_save_CFLAGS
5437elif test $ac_cv_prog_cc_g = yes; then
5438  if test "$GCC" = yes; then
5439    CFLAGS="-g -O2"
5440  else
5441    CFLAGS="-g"
5442  fi
5443else
5444  if test "$GCC" = yes; then
5445    CFLAGS="-O2"
5446  else
5447    CFLAGS=
5448  fi
5449fi
5450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5451$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5452if ${ac_cv_prog_cc_c89+:} false; then :
5453  $as_echo_n "(cached) " >&6
5454else
5455  ac_cv_prog_cc_c89=no
5456ac_save_CC=$CC
5457cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5458/* end confdefs.h.  */
5459#include <stdarg.h>
5460#include <stdio.h>
5461struct stat;
5462/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5463struct buf { int x; };
5464FILE * (*rcsopen) (struct buf *, struct stat *, int);
5465static char *e (p, i)
5466     char **p;
5467     int i;
5468{
5469  return p[i];
5470}
5471static char *f (char * (*g) (char **, int), char **p, ...)
5472{
5473  char *s;
5474  va_list v;
5475  va_start (v,p);
5476  s = g (p, va_arg (v,int));
5477  va_end (v);
5478  return s;
5479}
5480
5481/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5482   function prototypes and stuff, but not '\xHH' hex character constants.
5483   These don't provoke an error unfortunately, instead are silently treated
5484   as 'x'.  The following induces an error, until -std is added to get
5485   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5486   array size at least.  It's necessary to write '\x00'==0 to get something
5487   that's true only with -std.  */
5488int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5489
5490/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5491   inside strings and character constants.  */
5492#define FOO(x) 'x'
5493int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5494
5495int test (int i, double x);
5496struct s1 {int (*f) (int a);};
5497struct s2 {int (*f) (double a);};
5498int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5499int argc;
5500char **argv;
5501int
5502main ()
5503{
5504return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5505  ;
5506  return 0;
5507}
5508_ACEOF
5509for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5510	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5511do
5512  CC="$ac_save_CC $ac_arg"
5513  if ac_fn_c_try_compile "$LINENO"; then :
5514  ac_cv_prog_cc_c89=$ac_arg
5515fi
5516rm -f core conftest.err conftest.$ac_objext
5517  test "x$ac_cv_prog_cc_c89" != "xno" && break
5518done
5519rm -f conftest.$ac_ext
5520CC=$ac_save_CC
5521
5522fi
5523# AC_CACHE_VAL
5524case "x$ac_cv_prog_cc_c89" in
5525  x)
5526    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5527$as_echo "none needed" >&6; } ;;
5528  xno)
5529    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5530$as_echo "unsupported" >&6; } ;;
5531  *)
5532    CC="$CC $ac_cv_prog_cc_c89"
5533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5534$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5535esac
5536if test "x$ac_cv_prog_cc_c89" != xno; then :
5537
5538fi
5539
5540ac_ext=c
5541ac_cpp='$CPP $CPPFLAGS'
5542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544ac_compiler_gnu=$ac_cv_c_compiler_gnu
5545
5546ac_ext=c
5547ac_cpp='$CPP $CPPFLAGS'
5548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5550ac_compiler_gnu=$ac_cv_c_compiler_gnu
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5552$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5553if ${am_cv_prog_cc_c_o+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557/* end confdefs.h.  */
5558
5559int
5560main ()
5561{
5562
5563  ;
5564  return 0;
5565}
5566_ACEOF
5567  # Make sure it works both with $CC and with simple cc.
5568  # Following AC_PROG_CC_C_O, we do the test twice because some
5569  # compilers refuse to overwrite an existing .o file with -o,
5570  # though they will create one.
5571  am_cv_prog_cc_c_o=yes
5572  for am_i in 1 2; do
5573    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5574   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5575   ac_status=$?
5576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577   (exit $ac_status); } \
5578         && test -f conftest2.$ac_objext; then
5579      : OK
5580    else
5581      am_cv_prog_cc_c_o=no
5582      break
5583    fi
5584  done
5585  rm -f core conftest*
5586  unset am_i
5587fi
5588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5589$as_echo "$am_cv_prog_cc_c_o" >&6; }
5590if test "$am_cv_prog_cc_c_o" != yes; then
5591   # Losing compiler, so override with the script.
5592   # FIXME: It is wrong to rewrite CC.
5593   # But if we don't then we get into trouble of one sort or another.
5594   # A longer-term fix would be to have automake use am__CC in this case,
5595   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5596   CC="$am_aux_dir/compile $CC"
5597fi
5598ac_ext=c
5599ac_cpp='$CPP $CPPFLAGS'
5600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5602ac_compiler_gnu=$ac_cv_c_compiler_gnu
5603
5604
5605depcc="$CC"   am_compiler_list=
5606
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5608$as_echo_n "checking dependency style of $depcc... " >&6; }
5609if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5610  $as_echo_n "(cached) " >&6
5611else
5612  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5613  # We make a subdir and do the tests there.  Otherwise we can end up
5614  # making bogus files that we don't know about and never remove.  For
5615  # instance it was reported that on HP-UX the gcc test will end up
5616  # making a dummy file named 'D' -- because '-MD' means "put the output
5617  # in D".
5618  rm -rf conftest.dir
5619  mkdir conftest.dir
5620  # Copy depcomp to subdir because otherwise we won't find it if we're
5621  # using a relative directory.
5622  cp "$am_depcomp" conftest.dir
5623  cd conftest.dir
5624  # We will build objects and dependencies in a subdirectory because
5625  # it helps to detect inapplicable dependency modes.  For instance
5626  # both Tru64's cc and ICC support -MD to output dependencies as a
5627  # side effect of compilation, but ICC will put the dependencies in
5628  # the current directory while Tru64 will put them in the object
5629  # directory.
5630  mkdir sub
5631
5632  am_cv_CC_dependencies_compiler_type=none
5633  if test "$am_compiler_list" = ""; then
5634     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5635  fi
5636  am__universal=false
5637  case " $depcc " in #(
5638     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5639     esac
5640
5641  for depmode in $am_compiler_list; do
5642    # Setup a source with many dependencies, because some compilers
5643    # like to wrap large dependency lists on column 80 (with \), and
5644    # we should not choose a depcomp mode which is confused by this.
5645    #
5646    # We need to recreate these files for each test, as the compiler may
5647    # overwrite some of them when testing with obscure command lines.
5648    # This happens at least with the AIX C compiler.
5649    : > sub/conftest.c
5650    for i in 1 2 3 4 5 6; do
5651      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5652      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5653      # Solaris 10 /bin/sh.
5654      echo '/* dummy */' > sub/conftst$i.h
5655    done
5656    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5657
5658    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5659    # mode.  It turns out that the SunPro C++ compiler does not properly
5660    # handle '-M -o', and we need to detect this.  Also, some Intel
5661    # versions had trouble with output in subdirs.
5662    am__obj=sub/conftest.${OBJEXT-o}
5663    am__minus_obj="-o $am__obj"
5664    case $depmode in
5665    gcc)
5666      # This depmode causes a compiler race in universal mode.
5667      test "$am__universal" = false || continue
5668      ;;
5669    nosideeffect)
5670      # After this tag, mechanisms are not by side-effect, so they'll
5671      # only be used when explicitly requested.
5672      if test "x$enable_dependency_tracking" = xyes; then
5673	continue
5674      else
5675	break
5676      fi
5677      ;;
5678    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5679      # This compiler won't grok '-c -o', but also, the minuso test has
5680      # not run yet.  These depmodes are late enough in the game, and
5681      # so weak that their functioning should not be impacted.
5682      am__obj=conftest.${OBJEXT-o}
5683      am__minus_obj=
5684      ;;
5685    none) break ;;
5686    esac
5687    if depmode=$depmode \
5688       source=sub/conftest.c object=$am__obj \
5689       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5690       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5691         >/dev/null 2>conftest.err &&
5692       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5693       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5694       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5695       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5696      # icc doesn't choke on unknown options, it will just issue warnings
5697      # or remarks (even with -Werror).  So we grep stderr for any message
5698      # that says an option was ignored or not supported.
5699      # When given -MP, icc 7.0 and 7.1 complain thusly:
5700      #   icc: Command line warning: ignoring option '-M'; no argument required
5701      # The diagnosis changed in icc 8.0:
5702      #   icc: Command line remark: option '-MP' not supported
5703      if (grep 'ignoring option' conftest.err ||
5704          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5705        am_cv_CC_dependencies_compiler_type=$depmode
5706        break
5707      fi
5708    fi
5709  done
5710
5711  cd ..
5712  rm -rf conftest.dir
5713else
5714  am_cv_CC_dependencies_compiler_type=none
5715fi
5716
5717fi
5718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5719$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5720CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5721
5722 if
5723  test "x$enable_dependency_tracking" != xno \
5724  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5725  am__fastdepCC_TRUE=
5726  am__fastdepCC_FALSE='#'
5727else
5728  am__fastdepCC_TRUE='#'
5729  am__fastdepCC_FALSE=
5730fi
5731
5732
5733
5734#
5735# Wall
5736#
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maximum warnings compiler flag" >&5
5738$as_echo_n "checking for maximum warnings compiler flag... " >&6; }
5739if ${ac_cv_cwflag+:} false; then :
5740  $as_echo_n "(cached) " >&6
5741else
5742  case "${CC-cc}" in
5743  *gcc*) ac_cv_cwflag=-Wall;;
5744  *)	case "$host" in
5745    *irix*)	ac_cv_cwflag=-fullwarn ;;
5746    *solaris*)  ac_cv_cwflag="-erroff=%none,E_END_OF_LOOP_CODE_NOT_REACHED,E_BAD_PTR_INT_COMBINATION -errtags"
5747	        ;;
5748    *)		ac_cv_cwflag=;;
5749		esac
5750  ;;
5751esac
5752fi
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cwflag" >&5
5754$as_echo "$ac_cv_cwflag" >&6; }
5755CWFLAG=$ac_cv_cwflag
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765#
5766# GCoverage
5767#
5768# Check whether --enable-coverage was given.
5769if test "${enable_coverage+set}" = set; then :
5770  enableval=$enable_coverage;
5771else
5772  enable_coverage=no
5773fi
5774
5775
5776if test X$enable_coverage = Xno ; then
5777:
5778elif test X$GCC != Xyes ; then
5779  as_fn_error $? "--enable-coverage requires gcc" "$LINENO" 5
5780else
5781  COVERAGE_FLAGS="-fprofile-arcs -ftest-coverage"
5782
5783  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
5784$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
5785if ${ac_cv_lib_gcov___gcov_init+:} false; then :
5786  $as_echo_n "(cached) " >&6
5787else
5788  ac_check_lib_save_LIBS=$LIBS
5789LIBS="-lgcov  $LIBS"
5790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5791/* end confdefs.h.  */
5792
5793/* Override any GCC internal prototype to avoid an error.
5794   Use char because int might match the return type of a GCC
5795   builtin and then its argument prototype would still apply.  */
5796#ifdef __cplusplus
5797extern "C"
5798#endif
5799char __gcov_init ();
5800int
5801main ()
5802{
5803return __gcov_init ();
5804  ;
5805  return 0;
5806}
5807_ACEOF
5808if ac_fn_c_try_link "$LINENO"; then :
5809  ac_cv_lib_gcov___gcov_init=yes
5810else
5811  ac_cv_lib_gcov___gcov_init=no
5812fi
5813rm -f core conftest.err conftest.$ac_objext \
5814    conftest$ac_exeext conftest.$ac_ext
5815LIBS=$ac_check_lib_save_LIBS
5816fi
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
5818$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
5819if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
5820  cat >>confdefs.h <<_ACEOF
5821#define HAVE_LIBGCOV 1
5822_ACEOF
5823
5824  LIBS="-lgcov $LIBS"
5825
5826fi
5827
5828    GCOV=`echo $CC | sed s/gcc/gcov/g`
5829
5830$as_echo "#define HAVE_COVERAGE 1" >>confdefs.h
5831
5832
5833    # Extract the first word of "lcov", so it can be a program name with args.
5834set dummy lcov; ac_word=$2
5835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836$as_echo_n "checking for $ac_word... " >&6; }
5837if ${ac_cv_prog_LCOV+:} false; then :
5838  $as_echo_n "(cached) " >&6
5839else
5840  if test -n "$LCOV"; then
5841  ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5842else
5843as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844for as_dir in $PATH
5845do
5846  IFS=$as_save_IFS
5847  test -z "$as_dir" && as_dir=.
5848    for ac_exec_ext in '' $ac_executable_extensions; do
5849  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5850    ac_cv_prog_LCOV="lcov"
5851    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852    break 2
5853  fi
5854done
5855  done
5856IFS=$as_save_IFS
5857
5858  test -z "$ac_cv_prog_LCOV" && ac_cv_prog_LCOV="false"
5859fi
5860fi
5861LCOV=$ac_cv_prog_LCOV
5862if test -n "$LCOV"; then
5863  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5864$as_echo "$LCOV" >&6; }
5865else
5866  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5867$as_echo "no" >&6; }
5868fi
5869
5870
5871  if test X$LCOV != Xfalse ; then
5872    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $LCOV accepts --compat-libtool" >&5
5873$as_echo_n "checking whether $LCOV accepts --compat-libtool... " >&6; }
5874    if $LCOV --compat-libtool --help > /dev/null 2>&1 ; then
5875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5876$as_echo "ok" >&6; }
5877    else
5878      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
5879$as_echo "not supported" >&6; }
5880      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: lcov option --compat-libtool is not supported" >&5
5881$as_echo "$as_me: WARNING: lcov option --compat-libtool is not supported" >&2;}
5882      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Update lcov to version > 1.5" >&5
5883$as_echo "$as_me: WARNING: Update lcov to version > 1.5" >&2;}
5884      LCOV=false
5885    fi
5886  fi
5887  # Extract the first word of "genhtml", so it can be a program name with args.
5888set dummy genhtml; ac_word=$2
5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5890$as_echo_n "checking for $ac_word... " >&6; }
5891if ${ac_cv_prog_GENHTML+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894  if test -n "$GENHTML"; then
5895  ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5896else
5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898for as_dir in $PATH
5899do
5900  IFS=$as_save_IFS
5901  test -z "$as_dir" && as_dir=.
5902    for ac_exec_ext in '' $ac_executable_extensions; do
5903  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5904    ac_cv_prog_GENHTML="genhtml"
5905    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5906    break 2
5907  fi
5908done
5909  done
5910IFS=$as_save_IFS
5911
5912  test -z "$ac_cv_prog_GENHTML" && ac_cv_prog_GENHTML="false"
5913fi
5914fi
5915GENHTML=$ac_cv_prog_GENHTML
5916if test -n "$GENHTML"; then
5917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5918$as_echo "$GENHTML" >&6; }
5919else
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5921$as_echo "no" >&6; }
5922fi
5923
5924
5925  # Extract the first word of "genpng", so it can be a program name with args.
5926set dummy genpng; ac_word=$2
5927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5928$as_echo_n "checking for $ac_word... " >&6; }
5929if ${ac_cv_prog_GENPNG+:} false; then :
5930  $as_echo_n "(cached) " >&6
5931else
5932  if test -n "$GENPNG"; then
5933  ac_cv_prog_GENPNG="$GENPNG" # Let the user override the test.
5934else
5935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5936for as_dir in $PATH
5937do
5938  IFS=$as_save_IFS
5939  test -z "$as_dir" && as_dir=.
5940    for ac_exec_ext in '' $ac_executable_extensions; do
5941  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5942    ac_cv_prog_GENPNG="genpng"
5943    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5944    break 2
5945  fi
5946done
5947  done
5948IFS=$as_save_IFS
5949
5950  test -z "$ac_cv_prog_GENPNG" && ac_cv_prog_GENPNG="false"
5951fi
5952fi
5953GENPNG=$ac_cv_prog_GENPNG
5954if test -n "$GENPNG"; then
5955  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
5956$as_echo "$GENPNG" >&6; }
5957else
5958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5959$as_echo "no" >&6; }
5960fi
5961
5962
5963  if test X$LCOV != Xfalse ; then
5964    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
5965$as_echo_n "checking whether $GENPNG has all required modules... " >&6; }
5966    if $GENPNG --help > /dev/null 2>&1 ; then
5967      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5968$as_echo "ok" >&6; }
5969    else
5970      { $as_echo "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
5971$as_echo "not supported" >&6; }
5972      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
5973$as_echo "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
5974      GENPNG=false
5975    fi
5976  fi
5977fi
5978
5979 if test X$enable_coverage != Xno; then
5980  ENABLE_COVERAGE_TRUE=
5981  ENABLE_COVERAGE_FALSE='#'
5982else
5983  ENABLE_COVERAGE_TRUE='#'
5984  ENABLE_COVERAGE_FALSE=
5985fi
5986
5987 if test X$LCOV != Xfalse; then
5988  HAVE_LCOV_TRUE=
5989  HAVE_LCOV_FALSE='#'
5990else
5991  HAVE_LCOV_TRUE='#'
5992  HAVE_LCOV_FALSE=
5993fi
5994
5995 if test X$GENPNG != Xfalse; then
5996  HAVE_GENPNG_TRUE=
5997  HAVE_GENPNG_FALSE='#'
5998else
5999  HAVE_GENPNG_TRUE='#'
6000  HAVE_GENPNG_FALSE=
6001fi
6002
6003
6004
6005
6006MOSTLYCLEANFILES="*.bb *.bbg *.da *.gcov *.gcda *.gcno"
6007
6008
6009
6010
6011
6012ac_ext=c
6013ac_cpp='$CPP $CPPFLAGS'
6014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6016ac_compiler_gnu=$ac_cv_c_compiler_gnu
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6018$as_echo_n "checking how to run the C preprocessor... " >&6; }
6019# On Suns, sometimes $CPP names a directory.
6020if test -n "$CPP" && test -d "$CPP"; then
6021  CPP=
6022fi
6023if test -z "$CPP"; then
6024  if ${ac_cv_prog_CPP+:} false; then :
6025  $as_echo_n "(cached) " >&6
6026else
6027      # Double quotes because CPP needs to be expanded
6028    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6029    do
6030      ac_preproc_ok=false
6031for ac_c_preproc_warn_flag in '' yes
6032do
6033  # Use a header file that comes with gcc, so configuring glibc
6034  # with a fresh cross-compiler works.
6035  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6036  # <limits.h> exists even on freestanding compilers.
6037  # On the NeXT, cc -E runs the code through the compiler's parser,
6038  # not just through cpp. "Syntax error" is here to catch this case.
6039  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6040/* end confdefs.h.  */
6041#ifdef __STDC__
6042# include <limits.h>
6043#else
6044# include <assert.h>
6045#endif
6046		     Syntax error
6047_ACEOF
6048if ac_fn_c_try_cpp "$LINENO"; then :
6049
6050else
6051  # Broken: fails on valid input.
6052continue
6053fi
6054rm -f conftest.err conftest.i conftest.$ac_ext
6055
6056  # OK, works on sane cases.  Now check whether nonexistent headers
6057  # can be detected and how.
6058  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059/* end confdefs.h.  */
6060#include <ac_nonexistent.h>
6061_ACEOF
6062if ac_fn_c_try_cpp "$LINENO"; then :
6063  # Broken: success on invalid input.
6064continue
6065else
6066  # Passes both tests.
6067ac_preproc_ok=:
6068break
6069fi
6070rm -f conftest.err conftest.i conftest.$ac_ext
6071
6072done
6073# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6074rm -f conftest.i conftest.err conftest.$ac_ext
6075if $ac_preproc_ok; then :
6076  break
6077fi
6078
6079    done
6080    ac_cv_prog_CPP=$CPP
6081
6082fi
6083  CPP=$ac_cv_prog_CPP
6084else
6085  ac_cv_prog_CPP=$CPP
6086fi
6087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6088$as_echo "$CPP" >&6; }
6089ac_preproc_ok=false
6090for ac_c_preproc_warn_flag in '' yes
6091do
6092  # Use a header file that comes with gcc, so configuring glibc
6093  # with a fresh cross-compiler works.
6094  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6095  # <limits.h> exists even on freestanding compilers.
6096  # On the NeXT, cc -E runs the code through the compiler's parser,
6097  # not just through cpp. "Syntax error" is here to catch this case.
6098  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6099/* end confdefs.h.  */
6100#ifdef __STDC__
6101# include <limits.h>
6102#else
6103# include <assert.h>
6104#endif
6105		     Syntax error
6106_ACEOF
6107if ac_fn_c_try_cpp "$LINENO"; then :
6108
6109else
6110  # Broken: fails on valid input.
6111continue
6112fi
6113rm -f conftest.err conftest.i conftest.$ac_ext
6114
6115  # OK, works on sane cases.  Now check whether nonexistent headers
6116  # can be detected and how.
6117  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6118/* end confdefs.h.  */
6119#include <ac_nonexistent.h>
6120_ACEOF
6121if ac_fn_c_try_cpp "$LINENO"; then :
6122  # Broken: success on invalid input.
6123continue
6124else
6125  # Passes both tests.
6126ac_preproc_ok=:
6127break
6128fi
6129rm -f conftest.err conftest.i conftest.$ac_ext
6130
6131done
6132# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6133rm -f conftest.i conftest.err conftest.$ac_ext
6134if $ac_preproc_ok; then :
6135
6136else
6137  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6138$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6139as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6140See \`config.log' for more details" "$LINENO" 5; }
6141fi
6142
6143ac_ext=c
6144ac_cpp='$CPP $CPPFLAGS'
6145ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6146ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6147ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148
6149# Extract the first word of "etags", so it can be a program name with args.
6150set dummy etags; ac_word=$2
6151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6152$as_echo_n "checking for $ac_word... " >&6; }
6153if ${ac_cv_prog_ETAGS+:} false; then :
6154  $as_echo_n "(cached) " >&6
6155else
6156  if test -n "$ETAGS"; then
6157  ac_cv_prog_ETAGS="$ETAGS" # Let the user override the test.
6158else
6159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6160for as_dir in $PATH
6161do
6162  IFS=$as_save_IFS
6163  test -z "$as_dir" && as_dir=.
6164    for ac_exec_ext in '' $ac_executable_extensions; do
6165  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6166    ac_cv_prog_ETAGS="etags"
6167    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6168    break 2
6169  fi
6170done
6171  done
6172IFS=$as_save_IFS
6173
6174  test -z "$ac_cv_prog_ETAGS" && ac_cv_prog_ETAGS="echo"
6175fi
6176fi
6177ETAGS=$ac_cv_prog_ETAGS
6178if test -n "$ETAGS"; then
6179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ETAGS" >&5
6180$as_echo "$ETAGS" >&6; }
6181else
6182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183$as_echo "no" >&6; }
6184fi
6185
6186
6187if test -n "$ac_tool_prefix"; then
6188  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6189set dummy ${ac_tool_prefix}ar; ac_word=$2
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6191$as_echo_n "checking for $ac_word... " >&6; }
6192if ${ac_cv_prog_AR+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$AR"; then
6196  ac_cv_prog_AR="$AR" # Let the user override the test.
6197else
6198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201  IFS=$as_save_IFS
6202  test -z "$as_dir" && as_dir=.
6203    for ac_exec_ext in '' $ac_executable_extensions; do
6204  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6205    ac_cv_prog_AR="${ac_tool_prefix}ar"
6206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207    break 2
6208  fi
6209done
6210  done
6211IFS=$as_save_IFS
6212
6213fi
6214fi
6215AR=$ac_cv_prog_AR
6216if test -n "$AR"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6218$as_echo "$AR" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225fi
6226if test -z "$ac_cv_prog_AR"; then
6227  ac_ct_AR=$AR
6228  # Extract the first word of "ar", so it can be a program name with args.
6229set dummy ar; ac_word=$2
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231$as_echo_n "checking for $ac_word... " >&6; }
6232if ${ac_cv_prog_ac_ct_AR+:} false; then :
6233  $as_echo_n "(cached) " >&6
6234else
6235  if test -n "$ac_ct_AR"; then
6236  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6237else
6238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239for as_dir in $PATH
6240do
6241  IFS=$as_save_IFS
6242  test -z "$as_dir" && as_dir=.
6243    for ac_exec_ext in '' $ac_executable_extensions; do
6244  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245    ac_cv_prog_ac_ct_AR="ar"
6246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247    break 2
6248  fi
6249done
6250  done
6251IFS=$as_save_IFS
6252
6253fi
6254fi
6255ac_ct_AR=$ac_cv_prog_ac_ct_AR
6256if test -n "$ac_ct_AR"; then
6257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6258$as_echo "$ac_ct_AR" >&6; }
6259else
6260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261$as_echo "no" >&6; }
6262fi
6263
6264  if test "x$ac_ct_AR" = x; then
6265    AR="ar"
6266  else
6267    case $cross_compiling:$ac_tool_warned in
6268yes:)
6269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6271ac_tool_warned=yes ;;
6272esac
6273    AR=$ac_ct_AR
6274  fi
6275else
6276  AR="$ac_cv_prog_AR"
6277fi
6278
6279if test -n "$ac_tool_prefix"; then
6280  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
6281set dummy ${ac_tool_prefix}ld; ac_word=$2
6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283$as_echo_n "checking for $ac_word... " >&6; }
6284if ${ac_cv_prog_LD+:} false; then :
6285  $as_echo_n "(cached) " >&6
6286else
6287  if test -n "$LD"; then
6288  ac_cv_prog_LD="$LD" # Let the user override the test.
6289else
6290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291for as_dir in $PATH
6292do
6293  IFS=$as_save_IFS
6294  test -z "$as_dir" && as_dir=.
6295    for ac_exec_ext in '' $ac_executable_extensions; do
6296  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6297    ac_cv_prog_LD="${ac_tool_prefix}ld"
6298    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299    break 2
6300  fi
6301done
6302  done
6303IFS=$as_save_IFS
6304
6305fi
6306fi
6307LD=$ac_cv_prog_LD
6308if test -n "$LD"; then
6309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6310$as_echo "$LD" >&6; }
6311else
6312  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313$as_echo "no" >&6; }
6314fi
6315
6316
6317fi
6318if test -z "$ac_cv_prog_LD"; then
6319  ac_ct_LD=$LD
6320  # Extract the first word of "ld", so it can be a program name with args.
6321set dummy ld; ac_word=$2
6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323$as_echo_n "checking for $ac_word... " >&6; }
6324if ${ac_cv_prog_ac_ct_LD+:} false; then :
6325  $as_echo_n "(cached) " >&6
6326else
6327  if test -n "$ac_ct_LD"; then
6328  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335    for ac_exec_ext in '' $ac_executable_extensions; do
6336  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_ac_ct_LD="ld"
6338    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342  done
6343IFS=$as_save_IFS
6344
6345fi
6346fi
6347ac_ct_LD=$ac_cv_prog_ac_ct_LD
6348if test -n "$ac_ct_LD"; then
6349  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
6350$as_echo "$ac_ct_LD" >&6; }
6351else
6352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353$as_echo "no" >&6; }
6354fi
6355
6356  if test "x$ac_ct_LD" = x; then
6357    LD="ld"
6358  else
6359    case $cross_compiling:$ac_tool_warned in
6360yes:)
6361{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363ac_tool_warned=yes ;;
6364esac
6365    LD=$ac_ct_LD
6366  fi
6367else
6368  LD="$ac_cv_prog_LD"
6369fi
6370
6371case `pwd` in
6372  *\ * | *\	*)
6373    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6374$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6375esac
6376
6377
6378
6379macro_version='2.4.6'
6380macro_revision='2.4.6'
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394ltmain=$ac_aux_dir/ltmain.sh
6395
6396# Backslashify metacharacters that are still active within
6397# double-quoted strings.
6398sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6399
6400# Same as above, but do not quote variable references.
6401double_quote_subst='s/\(["`\\]\)/\\\1/g'
6402
6403# Sed substitution to delay expansion of an escaped shell variable in a
6404# double_quote_subst'ed string.
6405delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6406
6407# Sed substitution to delay expansion of an escaped single quote.
6408delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6409
6410# Sed substitution to avoid accidental globbing in evaled expressions
6411no_glob_subst='s/\*/\\\*/g'
6412
6413ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6414ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6415ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6416
6417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6418$as_echo_n "checking how to print strings... " >&6; }
6419# Test print first, because it will be a builtin if present.
6420if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6421   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6422  ECHO='print -r --'
6423elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6424  ECHO='printf %s\n'
6425else
6426  # Use this function as a fallback that always works.
6427  func_fallback_echo ()
6428  {
6429    eval 'cat <<_LTECHO_EOF
6430$1
6431_LTECHO_EOF'
6432  }
6433  ECHO='func_fallback_echo'
6434fi
6435
6436# func_echo_all arg...
6437# Invoke $ECHO with all args, space-separated.
6438func_echo_all ()
6439{
6440    $ECHO ""
6441}
6442
6443case $ECHO in
6444  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6445$as_echo "printf" >&6; } ;;
6446  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6447$as_echo "print -r" >&6; } ;;
6448  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6449$as_echo "cat" >&6; } ;;
6450esac
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464
6465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6466$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6467if ${ac_cv_path_SED+:} false; then :
6468  $as_echo_n "(cached) " >&6
6469else
6470            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6471     for ac_i in 1 2 3 4 5 6 7; do
6472       ac_script="$ac_script$as_nl$ac_script"
6473     done
6474     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6475     { ac_script=; unset ac_script;}
6476     if test -z "$SED"; then
6477  ac_path_SED_found=false
6478  # Loop through the user's path and test for each of PROGNAME-LIST
6479  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480for as_dir in $PATH
6481do
6482  IFS=$as_save_IFS
6483  test -z "$as_dir" && as_dir=.
6484    for ac_prog in sed gsed; do
6485    for ac_exec_ext in '' $ac_executable_extensions; do
6486      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6487      as_fn_executable_p "$ac_path_SED" || continue
6488# Check for GNU ac_path_SED and select it if it is found.
6489  # Check for GNU $ac_path_SED
6490case `"$ac_path_SED" --version 2>&1` in
6491*GNU*)
6492  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6493*)
6494  ac_count=0
6495  $as_echo_n 0123456789 >"conftest.in"
6496  while :
6497  do
6498    cat "conftest.in" "conftest.in" >"conftest.tmp"
6499    mv "conftest.tmp" "conftest.in"
6500    cp "conftest.in" "conftest.nl"
6501    $as_echo '' >> "conftest.nl"
6502    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6503    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6504    as_fn_arith $ac_count + 1 && ac_count=$as_val
6505    if test $ac_count -gt ${ac_path_SED_max-0}; then
6506      # Best one so far, save it but keep looking for a better one
6507      ac_cv_path_SED="$ac_path_SED"
6508      ac_path_SED_max=$ac_count
6509    fi
6510    # 10*(2^10) chars as input seems more than enough
6511    test $ac_count -gt 10 && break
6512  done
6513  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6514esac
6515
6516      $ac_path_SED_found && break 3
6517    done
6518  done
6519  done
6520IFS=$as_save_IFS
6521  if test -z "$ac_cv_path_SED"; then
6522    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6523  fi
6524else
6525  ac_cv_path_SED=$SED
6526fi
6527
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6530$as_echo "$ac_cv_path_SED" >&6; }
6531 SED="$ac_cv_path_SED"
6532  rm -f conftest.sed
6533
6534test -z "$SED" && SED=sed
6535Xsed="$SED -e 1s/^X//"
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6548$as_echo_n "checking for fgrep... " >&6; }
6549if ${ac_cv_path_FGREP+:} false; then :
6550  $as_echo_n "(cached) " >&6
6551else
6552  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6553   then ac_cv_path_FGREP="$GREP -F"
6554   else
6555     if test -z "$FGREP"; then
6556  ac_path_FGREP_found=false
6557  # Loop through the user's path and test for each of PROGNAME-LIST
6558  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6559for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6560do
6561  IFS=$as_save_IFS
6562  test -z "$as_dir" && as_dir=.
6563    for ac_prog in fgrep; do
6564    for ac_exec_ext in '' $ac_executable_extensions; do
6565      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6566      as_fn_executable_p "$ac_path_FGREP" || continue
6567# Check for GNU ac_path_FGREP and select it if it is found.
6568  # Check for GNU $ac_path_FGREP
6569case `"$ac_path_FGREP" --version 2>&1` in
6570*GNU*)
6571  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6572*)
6573  ac_count=0
6574  $as_echo_n 0123456789 >"conftest.in"
6575  while :
6576  do
6577    cat "conftest.in" "conftest.in" >"conftest.tmp"
6578    mv "conftest.tmp" "conftest.in"
6579    cp "conftest.in" "conftest.nl"
6580    $as_echo 'FGREP' >> "conftest.nl"
6581    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6582    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6583    as_fn_arith $ac_count + 1 && ac_count=$as_val
6584    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6585      # Best one so far, save it but keep looking for a better one
6586      ac_cv_path_FGREP="$ac_path_FGREP"
6587      ac_path_FGREP_max=$ac_count
6588    fi
6589    # 10*(2^10) chars as input seems more than enough
6590    test $ac_count -gt 10 && break
6591  done
6592  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6593esac
6594
6595      $ac_path_FGREP_found && break 3
6596    done
6597  done
6598  done
6599IFS=$as_save_IFS
6600  if test -z "$ac_cv_path_FGREP"; then
6601    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6602  fi
6603else
6604  ac_cv_path_FGREP=$FGREP
6605fi
6606
6607   fi
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6610$as_echo "$ac_cv_path_FGREP" >&6; }
6611 FGREP="$ac_cv_path_FGREP"
6612
6613
6614test -z "$GREP" && GREP=grep
6615
6616
6617
6618
6619
6620
6621
6622
6623
6624
6625
6626
6627
6628
6629
6630
6631
6632
6633
6634# Check whether --with-gnu-ld was given.
6635if test "${with_gnu_ld+set}" = set; then :
6636  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
6637else
6638  with_gnu_ld=no
6639fi
6640
6641ac_prog=ld
6642if test yes = "$GCC"; then
6643  # Check if gcc -print-prog-name=ld gives a path.
6644  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6645$as_echo_n "checking for ld used by $CC... " >&6; }
6646  case $host in
6647  *-*-mingw*)
6648    # gcc leaves a trailing carriage return, which upsets mingw
6649    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6650  *)
6651    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6652  esac
6653  case $ac_prog in
6654    # Accept absolute paths.
6655    [\\/]* | ?:[\\/]*)
6656      re_direlt='/[^/][^/]*/\.\./'
6657      # Canonicalize the pathname of ld
6658      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6659      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6660	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6661      done
6662      test -z "$LD" && LD=$ac_prog
6663      ;;
6664  "")
6665    # If it fails, then pretend we aren't using GCC.
6666    ac_prog=ld
6667    ;;
6668  *)
6669    # If it is relative, then search for the first ld in PATH.
6670    with_gnu_ld=unknown
6671    ;;
6672  esac
6673elif test yes = "$with_gnu_ld"; then
6674  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6675$as_echo_n "checking for GNU ld... " >&6; }
6676else
6677  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6678$as_echo_n "checking for non-GNU ld... " >&6; }
6679fi
6680if ${lt_cv_path_LD+:} false; then :
6681  $as_echo_n "(cached) " >&6
6682else
6683  if test -z "$LD"; then
6684  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6685  for ac_dir in $PATH; do
6686    IFS=$lt_save_ifs
6687    test -z "$ac_dir" && ac_dir=.
6688    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6689      lt_cv_path_LD=$ac_dir/$ac_prog
6690      # Check to see if the program is GNU ld.  I'd rather use --version,
6691      # but apparently some variants of GNU ld only accept -v.
6692      # Break only if it was the GNU/non-GNU ld that we prefer.
6693      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6694      *GNU* | *'with BFD'*)
6695	test no != "$with_gnu_ld" && break
6696	;;
6697      *)
6698	test yes != "$with_gnu_ld" && break
6699	;;
6700      esac
6701    fi
6702  done
6703  IFS=$lt_save_ifs
6704else
6705  lt_cv_path_LD=$LD # Let the user override the test with a path.
6706fi
6707fi
6708
6709LD=$lt_cv_path_LD
6710if test -n "$LD"; then
6711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6712$as_echo "$LD" >&6; }
6713else
6714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715$as_echo "no" >&6; }
6716fi
6717test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6719$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6720if ${lt_cv_prog_gnu_ld+:} false; then :
6721  $as_echo_n "(cached) " >&6
6722else
6723  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6724case `$LD -v 2>&1 </dev/null` in
6725*GNU* | *'with BFD'*)
6726  lt_cv_prog_gnu_ld=yes
6727  ;;
6728*)
6729  lt_cv_prog_gnu_ld=no
6730  ;;
6731esac
6732fi
6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6734$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6735with_gnu_ld=$lt_cv_prog_gnu_ld
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6746$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6747if ${lt_cv_path_NM+:} false; then :
6748  $as_echo_n "(cached) " >&6
6749else
6750  if test -n "$NM"; then
6751  # Let the user override the test.
6752  lt_cv_path_NM=$NM
6753else
6754  lt_nm_to_check=${ac_tool_prefix}nm
6755  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6756    lt_nm_to_check="$lt_nm_to_check nm"
6757  fi
6758  for lt_tmp_nm in $lt_nm_to_check; do
6759    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
6760    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6761      IFS=$lt_save_ifs
6762      test -z "$ac_dir" && ac_dir=.
6763      tmp_nm=$ac_dir/$lt_tmp_nm
6764      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
6765	# Check to see if the nm accepts a BSD-compat flag.
6766	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
6767	#   nm: unknown option "B" ignored
6768	# Tru64's nm complains that /dev/null is an invalid object file
6769	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
6770	case $build_os in
6771	mingw*) lt_bad_file=conftest.nm/nofile ;;
6772	*) lt_bad_file=/dev/null ;;
6773	esac
6774	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
6775	*$lt_bad_file* | *'Invalid file or object type'*)
6776	  lt_cv_path_NM="$tmp_nm -B"
6777	  break 2
6778	  ;;
6779	*)
6780	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6781	  */dev/null*)
6782	    lt_cv_path_NM="$tmp_nm -p"
6783	    break 2
6784	    ;;
6785	  *)
6786	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6787	    continue # so that we can try to find one that supports BSD flags
6788	    ;;
6789	  esac
6790	  ;;
6791	esac
6792      fi
6793    done
6794    IFS=$lt_save_ifs
6795  done
6796  : ${lt_cv_path_NM=no}
6797fi
6798fi
6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6800$as_echo "$lt_cv_path_NM" >&6; }
6801if test no != "$lt_cv_path_NM"; then
6802  NM=$lt_cv_path_NM
6803else
6804  # Didn't find any BSD compatible name lister, look for dumpbin.
6805  if test -n "$DUMPBIN"; then :
6806    # Let the user override the test.
6807  else
6808    if test -n "$ac_tool_prefix"; then
6809  for ac_prog in dumpbin "link -dump"
6810  do
6811    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6812set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6814$as_echo_n "checking for $ac_word... " >&6; }
6815if ${ac_cv_prog_DUMPBIN+:} false; then :
6816  $as_echo_n "(cached) " >&6
6817else
6818  if test -n "$DUMPBIN"; then
6819  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6820else
6821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822for as_dir in $PATH
6823do
6824  IFS=$as_save_IFS
6825  test -z "$as_dir" && as_dir=.
6826    for ac_exec_ext in '' $ac_executable_extensions; do
6827  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6828    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6829    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830    break 2
6831  fi
6832done
6833  done
6834IFS=$as_save_IFS
6835
6836fi
6837fi
6838DUMPBIN=$ac_cv_prog_DUMPBIN
6839if test -n "$DUMPBIN"; then
6840  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6841$as_echo "$DUMPBIN" >&6; }
6842else
6843  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844$as_echo "no" >&6; }
6845fi
6846
6847
6848    test -n "$DUMPBIN" && break
6849  done
6850fi
6851if test -z "$DUMPBIN"; then
6852  ac_ct_DUMPBIN=$DUMPBIN
6853  for ac_prog in dumpbin "link -dump"
6854do
6855  # Extract the first word of "$ac_prog", so it can be a program name with args.
6856set dummy $ac_prog; ac_word=$2
6857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858$as_echo_n "checking for $ac_word... " >&6; }
6859if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6860  $as_echo_n "(cached) " >&6
6861else
6862  if test -n "$ac_ct_DUMPBIN"; then
6863  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6864else
6865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866for as_dir in $PATH
6867do
6868  IFS=$as_save_IFS
6869  test -z "$as_dir" && as_dir=.
6870    for ac_exec_ext in '' $ac_executable_extensions; do
6871  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6872    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6873    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874    break 2
6875  fi
6876done
6877  done
6878IFS=$as_save_IFS
6879
6880fi
6881fi
6882ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6883if test -n "$ac_ct_DUMPBIN"; then
6884  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6885$as_echo "$ac_ct_DUMPBIN" >&6; }
6886else
6887  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888$as_echo "no" >&6; }
6889fi
6890
6891
6892  test -n "$ac_ct_DUMPBIN" && break
6893done
6894
6895  if test "x$ac_ct_DUMPBIN" = x; then
6896    DUMPBIN=":"
6897  else
6898    case $cross_compiling:$ac_tool_warned in
6899yes:)
6900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902ac_tool_warned=yes ;;
6903esac
6904    DUMPBIN=$ac_ct_DUMPBIN
6905  fi
6906fi
6907
6908    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6909    *COFF*)
6910      DUMPBIN="$DUMPBIN -symbols -headers"
6911      ;;
6912    *)
6913      DUMPBIN=:
6914      ;;
6915    esac
6916  fi
6917
6918  if test : != "$DUMPBIN"; then
6919    NM=$DUMPBIN
6920  fi
6921fi
6922test -z "$NM" && NM=nm
6923
6924
6925
6926
6927
6928
6929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6930$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6931if ${lt_cv_nm_interface+:} false; then :
6932  $as_echo_n "(cached) " >&6
6933else
6934  lt_cv_nm_interface="BSD nm"
6935  echo "int some_variable = 0;" > conftest.$ac_ext
6936  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6937  (eval "$ac_compile" 2>conftest.err)
6938  cat conftest.err >&5
6939  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6940  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6941  cat conftest.err >&5
6942  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6943  cat conftest.out >&5
6944  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6945    lt_cv_nm_interface="MS dumpbin"
6946  fi
6947  rm -f conftest*
6948fi
6949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6950$as_echo "$lt_cv_nm_interface" >&6; }
6951
6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6953$as_echo_n "checking whether ln -s works... " >&6; }
6954LN_S=$as_ln_s
6955if test "$LN_S" = "ln -s"; then
6956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6957$as_echo "yes" >&6; }
6958else
6959  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6960$as_echo "no, using $LN_S" >&6; }
6961fi
6962
6963# find the maximum length of command line arguments
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6965$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6966if ${lt_cv_sys_max_cmd_len+:} false; then :
6967  $as_echo_n "(cached) " >&6
6968else
6969    i=0
6970  teststring=ABCD
6971
6972  case $build_os in
6973  msdosdjgpp*)
6974    # On DJGPP, this test can blow up pretty badly due to problems in libc
6975    # (any single argument exceeding 2000 bytes causes a buffer overrun
6976    # during glob expansion).  Even if it were fixed, the result of this
6977    # check would be larger than it should be.
6978    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6979    ;;
6980
6981  gnu*)
6982    # Under GNU Hurd, this test is not required because there is
6983    # no limit to the length of command line arguments.
6984    # Libtool will interpret -1 as no limit whatsoever
6985    lt_cv_sys_max_cmd_len=-1;
6986    ;;
6987
6988  cygwin* | mingw* | cegcc*)
6989    # On Win9x/ME, this test blows up -- it succeeds, but takes
6990    # about 5 minutes as the teststring grows exponentially.
6991    # Worse, since 9x/ME are not pre-emptively multitasking,
6992    # you end up with a "frozen" computer, even though with patience
6993    # the test eventually succeeds (with a max line length of 256k).
6994    # Instead, let's just punt: use the minimum linelength reported by
6995    # all of the supported platforms: 8192 (on NT/2K/XP).
6996    lt_cv_sys_max_cmd_len=8192;
6997    ;;
6998
6999  mint*)
7000    # On MiNT this can take a long time and run out of memory.
7001    lt_cv_sys_max_cmd_len=8192;
7002    ;;
7003
7004  amigaos*)
7005    # On AmigaOS with pdksh, this test takes hours, literally.
7006    # So we just punt and use a minimum line length of 8192.
7007    lt_cv_sys_max_cmd_len=8192;
7008    ;;
7009
7010  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7011    # This has been around since 386BSD, at least.  Likely further.
7012    if test -x /sbin/sysctl; then
7013      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7014    elif test -x /usr/sbin/sysctl; then
7015      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7016    else
7017      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
7018    fi
7019    # And add a safety zone
7020    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7021    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7022    ;;
7023
7024  interix*)
7025    # We know the value 262144 and hardcode it with a safety zone (like BSD)
7026    lt_cv_sys_max_cmd_len=196608
7027    ;;
7028
7029  os2*)
7030    # The test takes a long time on OS/2.
7031    lt_cv_sys_max_cmd_len=8192
7032    ;;
7033
7034  osf*)
7035    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7036    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7037    # nice to cause kernel panics so lets avoid the loop below.
7038    # First set a reasonable default.
7039    lt_cv_sys_max_cmd_len=16384
7040    #
7041    if test -x /sbin/sysconfig; then
7042      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7043        *1*) lt_cv_sys_max_cmd_len=-1 ;;
7044      esac
7045    fi
7046    ;;
7047  sco3.2v5*)
7048    lt_cv_sys_max_cmd_len=102400
7049    ;;
7050  sysv5* | sco5v6* | sysv4.2uw2*)
7051    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7052    if test -n "$kargmax"; then
7053      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
7054    else
7055      lt_cv_sys_max_cmd_len=32768
7056    fi
7057    ;;
7058  *)
7059    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7060    if test -n "$lt_cv_sys_max_cmd_len" && \
7061       test undefined != "$lt_cv_sys_max_cmd_len"; then
7062      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7063      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7064    else
7065      # Make teststring a little bigger before we do anything with it.
7066      # a 1K string should be a reasonable start.
7067      for i in 1 2 3 4 5 6 7 8; do
7068        teststring=$teststring$teststring
7069      done
7070      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7071      # If test is not a shell built-in, we'll probably end up computing a
7072      # maximum length that is only half of the actual maximum length, but
7073      # we can't tell.
7074      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
7075	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7076	      test 17 != "$i" # 1/2 MB should be enough
7077      do
7078        i=`expr $i + 1`
7079        teststring=$teststring$teststring
7080      done
7081      # Only check the string length outside the loop.
7082      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7083      teststring=
7084      # Add a significant safety factor because C++ compilers can tack on
7085      # massive amounts of additional arguments before passing them to the
7086      # linker.  It appears as though 1/2 is a usable value.
7087      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7088    fi
7089    ;;
7090  esac
7091
7092fi
7093
7094if test -n "$lt_cv_sys_max_cmd_len"; then
7095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7096$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7097else
7098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7099$as_echo "none" >&6; }
7100fi
7101max_cmd_len=$lt_cv_sys_max_cmd_len
7102
7103
7104
7105
7106
7107
7108: ${CP="cp -f"}
7109: ${MV="mv -f"}
7110: ${RM="rm -f"}
7111
7112if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7113  lt_unset=unset
7114else
7115  lt_unset=false
7116fi
7117
7118
7119
7120
7121
7122# test EBCDIC or ASCII
7123case `echo X|tr X '\101'` in
7124 A) # ASCII based system
7125    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7126  lt_SP2NL='tr \040 \012'
7127  lt_NL2SP='tr \015\012 \040\040'
7128  ;;
7129 *) # EBCDIC based system
7130  lt_SP2NL='tr \100 \n'
7131  lt_NL2SP='tr \r\n \100\100'
7132  ;;
7133esac
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
7144$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
7145if ${lt_cv_to_host_file_cmd+:} false; then :
7146  $as_echo_n "(cached) " >&6
7147else
7148  case $host in
7149  *-*-mingw* )
7150    case $build in
7151      *-*-mingw* ) # actually msys
7152        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
7153        ;;
7154      *-*-cygwin* )
7155        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
7156        ;;
7157      * ) # otherwise, assume *nix
7158        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
7159        ;;
7160    esac
7161    ;;
7162  *-*-cygwin* )
7163    case $build in
7164      *-*-mingw* ) # actually msys
7165        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
7166        ;;
7167      *-*-cygwin* )
7168        lt_cv_to_host_file_cmd=func_convert_file_noop
7169        ;;
7170      * ) # otherwise, assume *nix
7171        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
7172        ;;
7173    esac
7174    ;;
7175  * ) # unhandled hosts (and "normal" native builds)
7176    lt_cv_to_host_file_cmd=func_convert_file_noop
7177    ;;
7178esac
7179
7180fi
7181
7182to_host_file_cmd=$lt_cv_to_host_file_cmd
7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
7184$as_echo "$lt_cv_to_host_file_cmd" >&6; }
7185
7186
7187
7188
7189
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
7191$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
7192if ${lt_cv_to_tool_file_cmd+:} false; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  #assume ordinary cross tools, or native build.
7196lt_cv_to_tool_file_cmd=func_convert_file_noop
7197case $host in
7198  *-*-mingw* )
7199    case $build in
7200      *-*-mingw* ) # actually msys
7201        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
7202        ;;
7203    esac
7204    ;;
7205esac
7206
7207fi
7208
7209to_tool_file_cmd=$lt_cv_to_tool_file_cmd
7210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
7211$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
7212
7213
7214
7215
7216
7217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7218$as_echo_n "checking for $LD option to reload object files... " >&6; }
7219if ${lt_cv_ld_reload_flag+:} false; then :
7220  $as_echo_n "(cached) " >&6
7221else
7222  lt_cv_ld_reload_flag='-r'
7223fi
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7225$as_echo "$lt_cv_ld_reload_flag" >&6; }
7226reload_flag=$lt_cv_ld_reload_flag
7227case $reload_flag in
7228"" | " "*) ;;
7229*) reload_flag=" $reload_flag" ;;
7230esac
7231reload_cmds='$LD$reload_flag -o $output$reload_objs'
7232case $host_os in
7233  cygwin* | mingw* | pw32* | cegcc*)
7234    if test yes != "$GCC"; then
7235      reload_cmds=false
7236    fi
7237    ;;
7238  darwin*)
7239    if test yes = "$GCC"; then
7240      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
7241    else
7242      reload_cmds='$LD$reload_flag -o $output$reload_objs'
7243    fi
7244    ;;
7245esac
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255if test -n "$ac_tool_prefix"; then
7256  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7257set dummy ${ac_tool_prefix}objdump; ac_word=$2
7258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7259$as_echo_n "checking for $ac_word... " >&6; }
7260if ${ac_cv_prog_OBJDUMP+:} false; then :
7261  $as_echo_n "(cached) " >&6
7262else
7263  if test -n "$OBJDUMP"; then
7264  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7265else
7266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267for as_dir in $PATH
7268do
7269  IFS=$as_save_IFS
7270  test -z "$as_dir" && as_dir=.
7271    for ac_exec_ext in '' $ac_executable_extensions; do
7272  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7273    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7274    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7275    break 2
7276  fi
7277done
7278  done
7279IFS=$as_save_IFS
7280
7281fi
7282fi
7283OBJDUMP=$ac_cv_prog_OBJDUMP
7284if test -n "$OBJDUMP"; then
7285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7286$as_echo "$OBJDUMP" >&6; }
7287else
7288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7289$as_echo "no" >&6; }
7290fi
7291
7292
7293fi
7294if test -z "$ac_cv_prog_OBJDUMP"; then
7295  ac_ct_OBJDUMP=$OBJDUMP
7296  # Extract the first word of "objdump", so it can be a program name with args.
7297set dummy objdump; ac_word=$2
7298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7299$as_echo_n "checking for $ac_word... " >&6; }
7300if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7301  $as_echo_n "(cached) " >&6
7302else
7303  if test -n "$ac_ct_OBJDUMP"; then
7304  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7305else
7306as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7307for as_dir in $PATH
7308do
7309  IFS=$as_save_IFS
7310  test -z "$as_dir" && as_dir=.
7311    for ac_exec_ext in '' $ac_executable_extensions; do
7312  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7313    ac_cv_prog_ac_ct_OBJDUMP="objdump"
7314    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7315    break 2
7316  fi
7317done
7318  done
7319IFS=$as_save_IFS
7320
7321fi
7322fi
7323ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7324if test -n "$ac_ct_OBJDUMP"; then
7325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7326$as_echo "$ac_ct_OBJDUMP" >&6; }
7327else
7328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7329$as_echo "no" >&6; }
7330fi
7331
7332  if test "x$ac_ct_OBJDUMP" = x; then
7333    OBJDUMP="false"
7334  else
7335    case $cross_compiling:$ac_tool_warned in
7336yes:)
7337{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7338$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7339ac_tool_warned=yes ;;
7340esac
7341    OBJDUMP=$ac_ct_OBJDUMP
7342  fi
7343else
7344  OBJDUMP="$ac_cv_prog_OBJDUMP"
7345fi
7346
7347test -z "$OBJDUMP" && OBJDUMP=objdump
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7358$as_echo_n "checking how to recognize dependent libraries... " >&6; }
7359if ${lt_cv_deplibs_check_method+:} false; then :
7360  $as_echo_n "(cached) " >&6
7361else
7362  lt_cv_file_magic_cmd='$MAGIC_CMD'
7363lt_cv_file_magic_test_file=
7364lt_cv_deplibs_check_method='unknown'
7365# Need to set the preceding variable on all platforms that support
7366# interlibrary dependencies.
7367# 'none' -- dependencies not supported.
7368# 'unknown' -- same as none, but documents that we really don't know.
7369# 'pass_all' -- all dependencies passed with no checks.
7370# 'test_compile' -- check by making test program.
7371# 'file_magic [[regex]]' -- check by looking for files in library path
7372# that responds to the $file_magic_cmd with a given extended regex.
7373# If you have 'file' or equivalent on your system and you're not sure
7374# whether 'pass_all' will *always* work, you probably want this one.
7375
7376case $host_os in
7377aix[4-9]*)
7378  lt_cv_deplibs_check_method=pass_all
7379  ;;
7380
7381beos*)
7382  lt_cv_deplibs_check_method=pass_all
7383  ;;
7384
7385bsdi[45]*)
7386  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7387  lt_cv_file_magic_cmd='/usr/bin/file -L'
7388  lt_cv_file_magic_test_file=/shlib/libc.so
7389  ;;
7390
7391cygwin*)
7392  # func_win32_libid is a shell function defined in ltmain.sh
7393  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7394  lt_cv_file_magic_cmd='func_win32_libid'
7395  ;;
7396
7397mingw* | pw32*)
7398  # Base MSYS/MinGW do not provide the 'file' command needed by
7399  # func_win32_libid shell function, so use a weaker test based on 'objdump',
7400  # unless we find 'file', for example because we are cross-compiling.
7401  if ( file / ) >/dev/null 2>&1; then
7402    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7403    lt_cv_file_magic_cmd='func_win32_libid'
7404  else
7405    # Keep this pattern in sync with the one in func_win32_libid.
7406    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7407    lt_cv_file_magic_cmd='$OBJDUMP -f'
7408  fi
7409  ;;
7410
7411cegcc*)
7412  # use the weaker test based on 'objdump'. See mingw*.
7413  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7414  lt_cv_file_magic_cmd='$OBJDUMP -f'
7415  ;;
7416
7417darwin* | rhapsody*)
7418  lt_cv_deplibs_check_method=pass_all
7419  ;;
7420
7421freebsd* | dragonfly*)
7422  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7423    case $host_cpu in
7424    i*86 )
7425      # Not sure whether the presence of OpenBSD here was a mistake.
7426      # Let's accept both of them until this is cleared up.
7427      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7428      lt_cv_file_magic_cmd=/usr/bin/file
7429      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7430      ;;
7431    esac
7432  else
7433    lt_cv_deplibs_check_method=pass_all
7434  fi
7435  ;;
7436
7437haiku*)
7438  lt_cv_deplibs_check_method=pass_all
7439  ;;
7440
7441hpux10.20* | hpux11*)
7442  lt_cv_file_magic_cmd=/usr/bin/file
7443  case $host_cpu in
7444  ia64*)
7445    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7446    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7447    ;;
7448  hppa*64*)
7449    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]'
7450    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7451    ;;
7452  *)
7453    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7454    lt_cv_file_magic_test_file=/usr/lib/libc.sl
7455    ;;
7456  esac
7457  ;;
7458
7459interix[3-9]*)
7460  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7461  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7462  ;;
7463
7464irix5* | irix6* | nonstopux*)
7465  case $LD in
7466  *-32|*"-32 ") libmagic=32-bit;;
7467  *-n32|*"-n32 ") libmagic=N32;;
7468  *-64|*"-64 ") libmagic=64-bit;;
7469  *) libmagic=never-match;;
7470  esac
7471  lt_cv_deplibs_check_method=pass_all
7472  ;;
7473
7474# This must be glibc/ELF.
7475linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7476  lt_cv_deplibs_check_method=pass_all
7477  ;;
7478
7479netbsd* | netbsdelf*-gnu)
7480  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7481    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7482  else
7483    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7484  fi
7485  ;;
7486
7487newos6*)
7488  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7489  lt_cv_file_magic_cmd=/usr/bin/file
7490  lt_cv_file_magic_test_file=/usr/lib/libnls.so
7491  ;;
7492
7493*nto* | *qnx*)
7494  lt_cv_deplibs_check_method=pass_all
7495  ;;
7496
7497openbsd* | bitrig*)
7498  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
7499    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7500  else
7501    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7502  fi
7503  ;;
7504
7505osf3* | osf4* | osf5*)
7506  lt_cv_deplibs_check_method=pass_all
7507  ;;
7508
7509rdos*)
7510  lt_cv_deplibs_check_method=pass_all
7511  ;;
7512
7513solaris*)
7514  lt_cv_deplibs_check_method=pass_all
7515  ;;
7516
7517sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7518  lt_cv_deplibs_check_method=pass_all
7519  ;;
7520
7521sysv4 | sysv4.3*)
7522  case $host_vendor in
7523  motorola)
7524    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]'
7525    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7526    ;;
7527  ncr)
7528    lt_cv_deplibs_check_method=pass_all
7529    ;;
7530  sequent)
7531    lt_cv_file_magic_cmd='/bin/file'
7532    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7533    ;;
7534  sni)
7535    lt_cv_file_magic_cmd='/bin/file'
7536    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7537    lt_cv_file_magic_test_file=/lib/libc.so
7538    ;;
7539  siemens)
7540    lt_cv_deplibs_check_method=pass_all
7541    ;;
7542  pc)
7543    lt_cv_deplibs_check_method=pass_all
7544    ;;
7545  esac
7546  ;;
7547
7548tpf*)
7549  lt_cv_deplibs_check_method=pass_all
7550  ;;
7551os2*)
7552  lt_cv_deplibs_check_method=pass_all
7553  ;;
7554esac
7555
7556fi
7557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7558$as_echo "$lt_cv_deplibs_check_method" >&6; }
7559
7560file_magic_glob=
7561want_nocaseglob=no
7562if test "$build" = "$host"; then
7563  case $host_os in
7564  mingw* | pw32*)
7565    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7566      want_nocaseglob=yes
7567    else
7568      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7569    fi
7570    ;;
7571  esac
7572fi
7573
7574file_magic_cmd=$lt_cv_file_magic_cmd
7575deplibs_check_method=$lt_cv_deplibs_check_method
7576test -z "$deplibs_check_method" && deplibs_check_method=unknown
7577
7578
7579
7580
7581
7582
7583
7584
7585
7586
7587
7588
7589
7590
7591
7592
7593
7594
7595
7596
7597
7598
7599if test -n "$ac_tool_prefix"; then
7600  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7601set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7603$as_echo_n "checking for $ac_word... " >&6; }
7604if ${ac_cv_prog_DLLTOOL+:} false; then :
7605  $as_echo_n "(cached) " >&6
7606else
7607  if test -n "$DLLTOOL"; then
7608  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7609else
7610as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7611for as_dir in $PATH
7612do
7613  IFS=$as_save_IFS
7614  test -z "$as_dir" && as_dir=.
7615    for ac_exec_ext in '' $ac_executable_extensions; do
7616  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7617    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7618    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7619    break 2
7620  fi
7621done
7622  done
7623IFS=$as_save_IFS
7624
7625fi
7626fi
7627DLLTOOL=$ac_cv_prog_DLLTOOL
7628if test -n "$DLLTOOL"; then
7629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7630$as_echo "$DLLTOOL" >&6; }
7631else
7632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7633$as_echo "no" >&6; }
7634fi
7635
7636
7637fi
7638if test -z "$ac_cv_prog_DLLTOOL"; then
7639  ac_ct_DLLTOOL=$DLLTOOL
7640  # Extract the first word of "dlltool", so it can be a program name with args.
7641set dummy dlltool; ac_word=$2
7642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643$as_echo_n "checking for $ac_word... " >&6; }
7644if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7645  $as_echo_n "(cached) " >&6
7646else
7647  if test -n "$ac_ct_DLLTOOL"; then
7648  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7649else
7650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7651for as_dir in $PATH
7652do
7653  IFS=$as_save_IFS
7654  test -z "$as_dir" && as_dir=.
7655    for ac_exec_ext in '' $ac_executable_extensions; do
7656  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7657    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7658    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7659    break 2
7660  fi
7661done
7662  done
7663IFS=$as_save_IFS
7664
7665fi
7666fi
7667ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7668if test -n "$ac_ct_DLLTOOL"; then
7669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7670$as_echo "$ac_ct_DLLTOOL" >&6; }
7671else
7672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7673$as_echo "no" >&6; }
7674fi
7675
7676  if test "x$ac_ct_DLLTOOL" = x; then
7677    DLLTOOL="false"
7678  else
7679    case $cross_compiling:$ac_tool_warned in
7680yes:)
7681{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7682$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7683ac_tool_warned=yes ;;
7684esac
7685    DLLTOOL=$ac_ct_DLLTOOL
7686  fi
7687else
7688  DLLTOOL="$ac_cv_prog_DLLTOOL"
7689fi
7690
7691test -z "$DLLTOOL" && DLLTOOL=dlltool
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7703$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7704if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7705  $as_echo_n "(cached) " >&6
7706else
7707  lt_cv_sharedlib_from_linklib_cmd='unknown'
7708
7709case $host_os in
7710cygwin* | mingw* | pw32* | cegcc*)
7711  # two different shell functions defined in ltmain.sh;
7712  # decide which one to use based on capabilities of $DLLTOOL
7713  case `$DLLTOOL --help 2>&1` in
7714  *--identify-strict*)
7715    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7716    ;;
7717  *)
7718    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7719    ;;
7720  esac
7721  ;;
7722*)
7723  # fallback: assume linklib IS sharedlib
7724  lt_cv_sharedlib_from_linklib_cmd=$ECHO
7725  ;;
7726esac
7727
7728fi
7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7730$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7731sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7732test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7733
7734
7735
7736
7737
7738
7739
7740if test -n "$ac_tool_prefix"; then
7741  for ac_prog in ar
7742  do
7743    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7744set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7746$as_echo_n "checking for $ac_word... " >&6; }
7747if ${ac_cv_prog_AR+:} false; then :
7748  $as_echo_n "(cached) " >&6
7749else
7750  if test -n "$AR"; then
7751  ac_cv_prog_AR="$AR" # Let the user override the test.
7752else
7753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7754for as_dir in $PATH
7755do
7756  IFS=$as_save_IFS
7757  test -z "$as_dir" && as_dir=.
7758    for ac_exec_ext in '' $ac_executable_extensions; do
7759  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7760    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7761    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7762    break 2
7763  fi
7764done
7765  done
7766IFS=$as_save_IFS
7767
7768fi
7769fi
7770AR=$ac_cv_prog_AR
7771if test -n "$AR"; then
7772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7773$as_echo "$AR" >&6; }
7774else
7775  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776$as_echo "no" >&6; }
7777fi
7778
7779
7780    test -n "$AR" && break
7781  done
7782fi
7783if test -z "$AR"; then
7784  ac_ct_AR=$AR
7785  for ac_prog in ar
7786do
7787  # Extract the first word of "$ac_prog", so it can be a program name with args.
7788set dummy $ac_prog; ac_word=$2
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if ${ac_cv_prog_ac_ct_AR+:} false; then :
7792  $as_echo_n "(cached) " >&6
7793else
7794  if test -n "$ac_ct_AR"; then
7795  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7796else
7797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798for as_dir in $PATH
7799do
7800  IFS=$as_save_IFS
7801  test -z "$as_dir" && as_dir=.
7802    for ac_exec_ext in '' $ac_executable_extensions; do
7803  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7804    ac_cv_prog_ac_ct_AR="$ac_prog"
7805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7806    break 2
7807  fi
7808done
7809  done
7810IFS=$as_save_IFS
7811
7812fi
7813fi
7814ac_ct_AR=$ac_cv_prog_ac_ct_AR
7815if test -n "$ac_ct_AR"; then
7816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7817$as_echo "$ac_ct_AR" >&6; }
7818else
7819  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7820$as_echo "no" >&6; }
7821fi
7822
7823
7824  test -n "$ac_ct_AR" && break
7825done
7826
7827  if test "x$ac_ct_AR" = x; then
7828    AR="false"
7829  else
7830    case $cross_compiling:$ac_tool_warned in
7831yes:)
7832{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7833$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7834ac_tool_warned=yes ;;
7835esac
7836    AR=$ac_ct_AR
7837  fi
7838fi
7839
7840: ${AR=ar}
7841: ${AR_FLAGS=cru}
7842
7843
7844
7845
7846
7847
7848
7849
7850
7851
7852
7853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7854$as_echo_n "checking for archiver @FILE support... " >&6; }
7855if ${lt_cv_ar_at_file+:} false; then :
7856  $as_echo_n "(cached) " >&6
7857else
7858  lt_cv_ar_at_file=no
7859   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861
7862int
7863main ()
7864{
7865
7866  ;
7867  return 0;
7868}
7869_ACEOF
7870if ac_fn_c_try_compile "$LINENO"; then :
7871  echo conftest.$ac_objext > conftest.lst
7872      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7873      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7874  (eval $lt_ar_try) 2>&5
7875  ac_status=$?
7876  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7877  test $ac_status = 0; }
7878      if test 0 -eq "$ac_status"; then
7879	# Ensure the archiver fails upon bogus file names.
7880	rm -f conftest.$ac_objext libconftest.a
7881	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7882  (eval $lt_ar_try) 2>&5
7883  ac_status=$?
7884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885  test $ac_status = 0; }
7886	if test 0 -ne "$ac_status"; then
7887          lt_cv_ar_at_file=@
7888        fi
7889      fi
7890      rm -f conftest.* libconftest.a
7891
7892fi
7893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7894
7895fi
7896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7897$as_echo "$lt_cv_ar_at_file" >&6; }
7898
7899if test no = "$lt_cv_ar_at_file"; then
7900  archiver_list_spec=
7901else
7902  archiver_list_spec=$lt_cv_ar_at_file
7903fi
7904
7905
7906
7907
7908
7909
7910
7911if test -n "$ac_tool_prefix"; then
7912  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7913set dummy ${ac_tool_prefix}strip; ac_word=$2
7914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7915$as_echo_n "checking for $ac_word... " >&6; }
7916if ${ac_cv_prog_STRIP+:} false; then :
7917  $as_echo_n "(cached) " >&6
7918else
7919  if test -n "$STRIP"; then
7920  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7921else
7922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7923for as_dir in $PATH
7924do
7925  IFS=$as_save_IFS
7926  test -z "$as_dir" && as_dir=.
7927    for ac_exec_ext in '' $ac_executable_extensions; do
7928  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7929    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7931    break 2
7932  fi
7933done
7934  done
7935IFS=$as_save_IFS
7936
7937fi
7938fi
7939STRIP=$ac_cv_prog_STRIP
7940if test -n "$STRIP"; then
7941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7942$as_echo "$STRIP" >&6; }
7943else
7944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7945$as_echo "no" >&6; }
7946fi
7947
7948
7949fi
7950if test -z "$ac_cv_prog_STRIP"; then
7951  ac_ct_STRIP=$STRIP
7952  # Extract the first word of "strip", so it can be a program name with args.
7953set dummy strip; ac_word=$2
7954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955$as_echo_n "checking for $ac_word... " >&6; }
7956if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7957  $as_echo_n "(cached) " >&6
7958else
7959  if test -n "$ac_ct_STRIP"; then
7960  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7961else
7962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7963for as_dir in $PATH
7964do
7965  IFS=$as_save_IFS
7966  test -z "$as_dir" && as_dir=.
7967    for ac_exec_ext in '' $ac_executable_extensions; do
7968  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7969    ac_cv_prog_ac_ct_STRIP="strip"
7970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7971    break 2
7972  fi
7973done
7974  done
7975IFS=$as_save_IFS
7976
7977fi
7978fi
7979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7980if test -n "$ac_ct_STRIP"; then
7981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7982$as_echo "$ac_ct_STRIP" >&6; }
7983else
7984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7985$as_echo "no" >&6; }
7986fi
7987
7988  if test "x$ac_ct_STRIP" = x; then
7989    STRIP=":"
7990  else
7991    case $cross_compiling:$ac_tool_warned in
7992yes:)
7993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7995ac_tool_warned=yes ;;
7996esac
7997    STRIP=$ac_ct_STRIP
7998  fi
7999else
8000  STRIP="$ac_cv_prog_STRIP"
8001fi
8002
8003test -z "$STRIP" && STRIP=:
8004
8005
8006
8007
8008
8009
8010if test -n "$ac_tool_prefix"; then
8011  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8012set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8014$as_echo_n "checking for $ac_word... " >&6; }
8015if ${ac_cv_prog_RANLIB+:} false; then :
8016  $as_echo_n "(cached) " >&6
8017else
8018  if test -n "$RANLIB"; then
8019  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8020else
8021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8022for as_dir in $PATH
8023do
8024  IFS=$as_save_IFS
8025  test -z "$as_dir" && as_dir=.
8026    for ac_exec_ext in '' $ac_executable_extensions; do
8027  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8028    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8029    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8030    break 2
8031  fi
8032done
8033  done
8034IFS=$as_save_IFS
8035
8036fi
8037fi
8038RANLIB=$ac_cv_prog_RANLIB
8039if test -n "$RANLIB"; then
8040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8041$as_echo "$RANLIB" >&6; }
8042else
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8044$as_echo "no" >&6; }
8045fi
8046
8047
8048fi
8049if test -z "$ac_cv_prog_RANLIB"; then
8050  ac_ct_RANLIB=$RANLIB
8051  # Extract the first word of "ranlib", so it can be a program name with args.
8052set dummy ranlib; ac_word=$2
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054$as_echo_n "checking for $ac_word... " >&6; }
8055if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8056  $as_echo_n "(cached) " >&6
8057else
8058  if test -n "$ac_ct_RANLIB"; then
8059  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8060else
8061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8062for as_dir in $PATH
8063do
8064  IFS=$as_save_IFS
8065  test -z "$as_dir" && as_dir=.
8066    for ac_exec_ext in '' $ac_executable_extensions; do
8067  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8068    ac_cv_prog_ac_ct_RANLIB="ranlib"
8069    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8070    break 2
8071  fi
8072done
8073  done
8074IFS=$as_save_IFS
8075
8076fi
8077fi
8078ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8079if test -n "$ac_ct_RANLIB"; then
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8081$as_echo "$ac_ct_RANLIB" >&6; }
8082else
8083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085fi
8086
8087  if test "x$ac_ct_RANLIB" = x; then
8088    RANLIB=":"
8089  else
8090    case $cross_compiling:$ac_tool_warned in
8091yes:)
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8094ac_tool_warned=yes ;;
8095esac
8096    RANLIB=$ac_ct_RANLIB
8097  fi
8098else
8099  RANLIB="$ac_cv_prog_RANLIB"
8100fi
8101
8102test -z "$RANLIB" && RANLIB=:
8103
8104
8105
8106
8107
8108
8109# Determine commands to create old-style static archives.
8110old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8111old_postinstall_cmds='chmod 644 $oldlib'
8112old_postuninstall_cmds=
8113
8114if test -n "$RANLIB"; then
8115  case $host_os in
8116  bitrig* | openbsd*)
8117    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8118    ;;
8119  *)
8120    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8121    ;;
8122  esac
8123  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8124fi
8125
8126case $host_os in
8127  darwin*)
8128    lock_old_archive_extraction=yes ;;
8129  *)
8130    lock_old_archive_extraction=no ;;
8131esac
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171# If no C compiler was specified, use CC.
8172LTCC=${LTCC-"$CC"}
8173
8174# If no C compiler flags were specified, use CFLAGS.
8175LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8176
8177# Allow CC to be a program name with arguments.
8178compiler=$CC
8179
8180
8181# Check for command to grab the raw symbol name followed by C symbol from nm.
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8183$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8184if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187
8188# These are sane defaults that work on at least a few old systems.
8189# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8190
8191# Character class describing NM global symbol codes.
8192symcode='[BCDEGRST]'
8193
8194# Regexp to match symbols that can be accessed directly from C.
8195sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8196
8197# Define system-specific variables.
8198case $host_os in
8199aix*)
8200  symcode='[BCDT]'
8201  ;;
8202cygwin* | mingw* | pw32* | cegcc*)
8203  symcode='[ABCDGISTW]'
8204  ;;
8205hpux*)
8206  if test ia64 = "$host_cpu"; then
8207    symcode='[ABCDEGRST]'
8208  fi
8209  ;;
8210irix* | nonstopux*)
8211  symcode='[BCDEGRST]'
8212  ;;
8213osf*)
8214  symcode='[BCDEGQRST]'
8215  ;;
8216solaris*)
8217  symcode='[BDRT]'
8218  ;;
8219sco3.2v5*)
8220  symcode='[DT]'
8221  ;;
8222sysv4.2uw2*)
8223  symcode='[DT]'
8224  ;;
8225sysv5* | sco5v6* | unixware* | OpenUNIX*)
8226  symcode='[ABDT]'
8227  ;;
8228sysv4)
8229  symcode='[DFNSTU]'
8230  ;;
8231esac
8232
8233# If we're using GNU nm, then use its standard symbol codes.
8234case `$NM -V 2>&1` in
8235*GNU* | *'with BFD'*)
8236  symcode='[ABCDGIRSTW]' ;;
8237esac
8238
8239if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8240  # Gets list of data symbols to import.
8241  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
8242  # Adjust the below global symbol transforms to fixup imported variables.
8243  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
8244  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
8245  lt_c_name_lib_hook="\
8246  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
8247  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
8248else
8249  # Disable hooks by default.
8250  lt_cv_sys_global_symbol_to_import=
8251  lt_cdecl_hook=
8252  lt_c_name_hook=
8253  lt_c_name_lib_hook=
8254fi
8255
8256# Transform an extracted symbol line into a proper C declaration.
8257# Some systems (esp. on ia64) link data and code symbols differently,
8258# so use this general approach.
8259lt_cv_sys_global_symbol_to_cdecl="sed -n"\
8260$lt_cdecl_hook\
8261" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
8262" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
8263
8264# Transform an extracted symbol line into symbol name and symbol address
8265lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
8266$lt_c_name_hook\
8267" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8268" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
8269
8270# Transform an extracted symbol line into symbol name with lib prefix and
8271# symbol address.
8272lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
8273$lt_c_name_lib_hook\
8274" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
8275" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
8276" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
8277
8278# Handle CRLF in mingw tool chain
8279opt_cr=
8280case $build_os in
8281mingw*)
8282  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8283  ;;
8284esac
8285
8286# Try without a prefix underscore, then with it.
8287for ac_symprfx in "" "_"; do
8288
8289  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8290  symxfrm="\\1 $ac_symprfx\\2 \\2"
8291
8292  # Write the raw and C identifiers.
8293  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8294    # Fake it for dumpbin and say T for any non-static function,
8295    # D for any global variable and I for any imported variable.
8296    # Also find C++ and __fastcall symbols from MSVC++,
8297    # which start with @ or ?.
8298    lt_cv_sys_global_symbol_pipe="$AWK '"\
8299"     {last_section=section; section=\$ 3};"\
8300"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8301"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8302"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
8303"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
8304"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
8305"     \$ 0!~/External *\|/{next};"\
8306"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8307"     {if(hide[section]) next};"\
8308"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
8309"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
8310"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
8311"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
8312"     ' prfx=^$ac_symprfx"
8313  else
8314    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8315  fi
8316  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8317
8318  # Check to see that the pipe works correctly.
8319  pipe_works=no
8320
8321  rm -f conftest*
8322  cat > conftest.$ac_ext <<_LT_EOF
8323#ifdef __cplusplus
8324extern "C" {
8325#endif
8326char nm_test_var;
8327void nm_test_func(void);
8328void nm_test_func(void){}
8329#ifdef __cplusplus
8330}
8331#endif
8332int main(){nm_test_var='a';nm_test_func();return(0);}
8333_LT_EOF
8334
8335  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8336  (eval $ac_compile) 2>&5
8337  ac_status=$?
8338  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8339  test $ac_status = 0; }; then
8340    # Now try to grab the symbols.
8341    nlist=conftest.nm
8342    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8343  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8344  ac_status=$?
8345  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8346  test $ac_status = 0; } && test -s "$nlist"; then
8347      # Try sorting and uniquifying the output.
8348      if sort "$nlist" | uniq > "$nlist"T; then
8349	mv -f "$nlist"T "$nlist"
8350      else
8351	rm -f "$nlist"T
8352      fi
8353
8354      # Make sure that we snagged all the symbols we need.
8355      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8356	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8357	  cat <<_LT_EOF > conftest.$ac_ext
8358/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
8359#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
8360/* DATA imports from DLLs on WIN32 can't be const, because runtime
8361   relocations are performed -- see ld's documentation on pseudo-relocs.  */
8362# define LT_DLSYM_CONST
8363#elif defined __osf__
8364/* This system does not cope well with relocations in const data.  */
8365# define LT_DLSYM_CONST
8366#else
8367# define LT_DLSYM_CONST const
8368#endif
8369
8370#ifdef __cplusplus
8371extern "C" {
8372#endif
8373
8374_LT_EOF
8375	  # Now generate the symbol file.
8376	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8377
8378	  cat <<_LT_EOF >> conftest.$ac_ext
8379
8380/* The mapping between symbol names and symbols.  */
8381LT_DLSYM_CONST struct {
8382  const char *name;
8383  void       *address;
8384}
8385lt__PROGRAM__LTX_preloaded_symbols[] =
8386{
8387  { "@PROGRAM@", (void *) 0 },
8388_LT_EOF
8389	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8390	  cat <<\_LT_EOF >> conftest.$ac_ext
8391  {0, (void *) 0}
8392};
8393
8394/* This works around a problem in FreeBSD linker */
8395#ifdef FREEBSD_WORKAROUND
8396static const void *lt_preloaded_setup() {
8397  return lt__PROGRAM__LTX_preloaded_symbols;
8398}
8399#endif
8400
8401#ifdef __cplusplus
8402}
8403#endif
8404_LT_EOF
8405	  # Now try linking the two files.
8406	  mv conftest.$ac_objext conftstm.$ac_objext
8407	  lt_globsym_save_LIBS=$LIBS
8408	  lt_globsym_save_CFLAGS=$CFLAGS
8409	  LIBS=conftstm.$ac_objext
8410	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8411	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8412  (eval $ac_link) 2>&5
8413  ac_status=$?
8414  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8415  test $ac_status = 0; } && test -s conftest$ac_exeext; then
8416	    pipe_works=yes
8417	  fi
8418	  LIBS=$lt_globsym_save_LIBS
8419	  CFLAGS=$lt_globsym_save_CFLAGS
8420	else
8421	  echo "cannot find nm_test_func in $nlist" >&5
8422	fi
8423      else
8424	echo "cannot find nm_test_var in $nlist" >&5
8425      fi
8426    else
8427      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8428    fi
8429  else
8430    echo "$progname: failed program was:" >&5
8431    cat conftest.$ac_ext >&5
8432  fi
8433  rm -rf conftest* conftst*
8434
8435  # Do not use the global_symbol_pipe unless it works.
8436  if test yes = "$pipe_works"; then
8437    break
8438  else
8439    lt_cv_sys_global_symbol_pipe=
8440  fi
8441done
8442
8443fi
8444
8445if test -z "$lt_cv_sys_global_symbol_pipe"; then
8446  lt_cv_sys_global_symbol_to_cdecl=
8447fi
8448if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8450$as_echo "failed" >&6; }
8451else
8452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8453$as_echo "ok" >&6; }
8454fi
8455
8456# Response file support.
8457if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8458  nm_file_list_spec='@'
8459elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8460  nm_file_list_spec='@'
8461fi
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8500$as_echo_n "checking for sysroot... " >&6; }
8501
8502# Check whether --with-sysroot was given.
8503if test "${with_sysroot+set}" = set; then :
8504  withval=$with_sysroot;
8505else
8506  with_sysroot=no
8507fi
8508
8509
8510lt_sysroot=
8511case $with_sysroot in #(
8512 yes)
8513   if test yes = "$GCC"; then
8514     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8515   fi
8516   ;; #(
8517 /*)
8518   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8519   ;; #(
8520 no|'')
8521   ;; #(
8522 *)
8523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
8524$as_echo "$with_sysroot" >&6; }
8525   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8526   ;;
8527esac
8528
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8530$as_echo "${lt_sysroot:-no}" >&6; }
8531
8532
8533
8534
8535
8536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
8537$as_echo_n "checking for a working dd... " >&6; }
8538if ${ac_cv_path_lt_DD+:} false; then :
8539  $as_echo_n "(cached) " >&6
8540else
8541  printf 0123456789abcdef0123456789abcdef >conftest.i
8542cat conftest.i conftest.i >conftest2.i
8543: ${lt_DD:=$DD}
8544if test -z "$lt_DD"; then
8545  ac_path_lt_DD_found=false
8546  # Loop through the user's path and test for each of PROGNAME-LIST
8547  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548for as_dir in $PATH
8549do
8550  IFS=$as_save_IFS
8551  test -z "$as_dir" && as_dir=.
8552    for ac_prog in dd; do
8553    for ac_exec_ext in '' $ac_executable_extensions; do
8554      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
8555      as_fn_executable_p "$ac_path_lt_DD" || continue
8556if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8557  cmp -s conftest.i conftest.out \
8558  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
8559fi
8560      $ac_path_lt_DD_found && break 3
8561    done
8562  done
8563  done
8564IFS=$as_save_IFS
8565  if test -z "$ac_cv_path_lt_DD"; then
8566    :
8567  fi
8568else
8569  ac_cv_path_lt_DD=$lt_DD
8570fi
8571
8572rm -f conftest.i conftest2.i conftest.out
8573fi
8574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
8575$as_echo "$ac_cv_path_lt_DD" >&6; }
8576
8577
8578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
8579$as_echo_n "checking how to truncate binary pipes... " >&6; }
8580if ${lt_cv_truncate_bin+:} false; then :
8581  $as_echo_n "(cached) " >&6
8582else
8583  printf 0123456789abcdef0123456789abcdef >conftest.i
8584cat conftest.i conftest.i >conftest2.i
8585lt_cv_truncate_bin=
8586if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
8587  cmp -s conftest.i conftest.out \
8588  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
8589fi
8590rm -f conftest.i conftest2.i conftest.out
8591test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
8594$as_echo "$lt_cv_truncate_bin" >&6; }
8595
8596
8597
8598
8599
8600
8601
8602# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
8603func_cc_basename ()
8604{
8605    for cc_temp in $*""; do
8606      case $cc_temp in
8607        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8608        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8609        \-*) ;;
8610        *) break;;
8611      esac
8612    done
8613    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8614}
8615
8616# Check whether --enable-libtool-lock was given.
8617if test "${enable_libtool_lock+set}" = set; then :
8618  enableval=$enable_libtool_lock;
8619fi
8620
8621test no = "$enable_libtool_lock" || enable_libtool_lock=yes
8622
8623# Some flags need to be propagated to the compiler or linker for good
8624# libtool support.
8625case $host in
8626ia64-*-hpux*)
8627  # Find out what ABI is being produced by ac_compile, and set mode
8628  # options accordingly.
8629  echo 'int i;' > conftest.$ac_ext
8630  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8631  (eval $ac_compile) 2>&5
8632  ac_status=$?
8633  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8634  test $ac_status = 0; }; then
8635    case `/usr/bin/file conftest.$ac_objext` in
8636      *ELF-32*)
8637	HPUX_IA64_MODE=32
8638	;;
8639      *ELF-64*)
8640	HPUX_IA64_MODE=64
8641	;;
8642    esac
8643  fi
8644  rm -rf conftest*
8645  ;;
8646*-*-irix6*)
8647  # Find out what ABI is being produced by ac_compile, and set linker
8648  # options accordingly.
8649  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8650  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8651  (eval $ac_compile) 2>&5
8652  ac_status=$?
8653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8654  test $ac_status = 0; }; then
8655    if test yes = "$lt_cv_prog_gnu_ld"; then
8656      case `/usr/bin/file conftest.$ac_objext` in
8657	*32-bit*)
8658	  LD="${LD-ld} -melf32bsmip"
8659	  ;;
8660	*N32*)
8661	  LD="${LD-ld} -melf32bmipn32"
8662	  ;;
8663	*64-bit*)
8664	  LD="${LD-ld} -melf64bmip"
8665	;;
8666      esac
8667    else
8668      case `/usr/bin/file conftest.$ac_objext` in
8669	*32-bit*)
8670	  LD="${LD-ld} -32"
8671	  ;;
8672	*N32*)
8673	  LD="${LD-ld} -n32"
8674	  ;;
8675	*64-bit*)
8676	  LD="${LD-ld} -64"
8677	  ;;
8678      esac
8679    fi
8680  fi
8681  rm -rf conftest*
8682  ;;
8683
8684mips64*-*linux*)
8685  # Find out what ABI is being produced by ac_compile, and set linker
8686  # options accordingly.
8687  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8688  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8689  (eval $ac_compile) 2>&5
8690  ac_status=$?
8691  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8692  test $ac_status = 0; }; then
8693    emul=elf
8694    case `/usr/bin/file conftest.$ac_objext` in
8695      *32-bit*)
8696	emul="${emul}32"
8697	;;
8698      *64-bit*)
8699	emul="${emul}64"
8700	;;
8701    esac
8702    case `/usr/bin/file conftest.$ac_objext` in
8703      *MSB*)
8704	emul="${emul}btsmip"
8705	;;
8706      *LSB*)
8707	emul="${emul}ltsmip"
8708	;;
8709    esac
8710    case `/usr/bin/file conftest.$ac_objext` in
8711      *N32*)
8712	emul="${emul}n32"
8713	;;
8714    esac
8715    LD="${LD-ld} -m $emul"
8716  fi
8717  rm -rf conftest*
8718  ;;
8719
8720x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8721s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8722  # Find out what ABI is being produced by ac_compile, and set linker
8723  # options accordingly.  Note that the listed cases only cover the
8724  # situations where additional linker options are needed (such as when
8725  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
8726  # vice versa); the common cases where no linker options are needed do
8727  # not appear in the list.
8728  echo 'int i;' > conftest.$ac_ext
8729  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8730  (eval $ac_compile) 2>&5
8731  ac_status=$?
8732  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8733  test $ac_status = 0; }; then
8734    case `/usr/bin/file conftest.o` in
8735      *32-bit*)
8736	case $host in
8737	  x86_64-*kfreebsd*-gnu)
8738	    LD="${LD-ld} -m elf_i386_fbsd"
8739	    ;;
8740	  x86_64-*linux*)
8741	    case `/usr/bin/file conftest.o` in
8742	      *x86-64*)
8743		LD="${LD-ld} -m elf32_x86_64"
8744		;;
8745	      *)
8746		LD="${LD-ld} -m elf_i386"
8747		;;
8748	    esac
8749	    ;;
8750	  powerpc64le-*linux*)
8751	    LD="${LD-ld} -m elf32lppclinux"
8752	    ;;
8753	  powerpc64-*linux*)
8754	    LD="${LD-ld} -m elf32ppclinux"
8755	    ;;
8756	  s390x-*linux*)
8757	    LD="${LD-ld} -m elf_s390"
8758	    ;;
8759	  sparc64-*linux*)
8760	    LD="${LD-ld} -m elf32_sparc"
8761	    ;;
8762	esac
8763	;;
8764      *64-bit*)
8765	case $host in
8766	  x86_64-*kfreebsd*-gnu)
8767	    LD="${LD-ld} -m elf_x86_64_fbsd"
8768	    ;;
8769	  x86_64-*linux*)
8770	    LD="${LD-ld} -m elf_x86_64"
8771	    ;;
8772	  powerpcle-*linux*)
8773	    LD="${LD-ld} -m elf64lppc"
8774	    ;;
8775	  powerpc-*linux*)
8776	    LD="${LD-ld} -m elf64ppc"
8777	    ;;
8778	  s390*-*linux*|s390*-*tpf*)
8779	    LD="${LD-ld} -m elf64_s390"
8780	    ;;
8781	  sparc*-*linux*)
8782	    LD="${LD-ld} -m elf64_sparc"
8783	    ;;
8784	esac
8785	;;
8786    esac
8787  fi
8788  rm -rf conftest*
8789  ;;
8790
8791*-*-sco3.2v5*)
8792  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8793  SAVE_CFLAGS=$CFLAGS
8794  CFLAGS="$CFLAGS -belf"
8795  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8796$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8797if ${lt_cv_cc_needs_belf+:} false; then :
8798  $as_echo_n "(cached) " >&6
8799else
8800  ac_ext=c
8801ac_cpp='$CPP $CPPFLAGS'
8802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8804ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805
8806     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8807/* end confdefs.h.  */
8808
8809int
8810main ()
8811{
8812
8813  ;
8814  return 0;
8815}
8816_ACEOF
8817if ac_fn_c_try_link "$LINENO"; then :
8818  lt_cv_cc_needs_belf=yes
8819else
8820  lt_cv_cc_needs_belf=no
8821fi
8822rm -f core conftest.err conftest.$ac_objext \
8823    conftest$ac_exeext conftest.$ac_ext
8824     ac_ext=c
8825ac_cpp='$CPP $CPPFLAGS'
8826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8828ac_compiler_gnu=$ac_cv_c_compiler_gnu
8829
8830fi
8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8832$as_echo "$lt_cv_cc_needs_belf" >&6; }
8833  if test yes != "$lt_cv_cc_needs_belf"; then
8834    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8835    CFLAGS=$SAVE_CFLAGS
8836  fi
8837  ;;
8838*-*solaris*)
8839  # Find out what ABI is being produced by ac_compile, and set linker
8840  # options accordingly.
8841  echo 'int i;' > conftest.$ac_ext
8842  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8843  (eval $ac_compile) 2>&5
8844  ac_status=$?
8845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8846  test $ac_status = 0; }; then
8847    case `/usr/bin/file conftest.o` in
8848    *64-bit*)
8849      case $lt_cv_prog_gnu_ld in
8850      yes*)
8851        case $host in
8852        i?86-*-solaris*|x86_64-*-solaris*)
8853          LD="${LD-ld} -m elf_x86_64"
8854          ;;
8855        sparc*-*-solaris*)
8856          LD="${LD-ld} -m elf64_sparc"
8857          ;;
8858        esac
8859        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8860        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8861          LD=${LD-ld}_sol2
8862        fi
8863        ;;
8864      *)
8865	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8866	  LD="${LD-ld} -64"
8867	fi
8868	;;
8869      esac
8870      ;;
8871    esac
8872  fi
8873  rm -rf conftest*
8874  ;;
8875esac
8876
8877need_locks=$enable_libtool_lock
8878
8879if test -n "$ac_tool_prefix"; then
8880  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8881set dummy ${ac_tool_prefix}mt; ac_word=$2
8882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883$as_echo_n "checking for $ac_word... " >&6; }
8884if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8885  $as_echo_n "(cached) " >&6
8886else
8887  if test -n "$MANIFEST_TOOL"; then
8888  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8889else
8890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891for as_dir in $PATH
8892do
8893  IFS=$as_save_IFS
8894  test -z "$as_dir" && as_dir=.
8895    for ac_exec_ext in '' $ac_executable_extensions; do
8896  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8897    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8898    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8899    break 2
8900  fi
8901done
8902  done
8903IFS=$as_save_IFS
8904
8905fi
8906fi
8907MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8908if test -n "$MANIFEST_TOOL"; then
8909  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8910$as_echo "$MANIFEST_TOOL" >&6; }
8911else
8912  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8913$as_echo "no" >&6; }
8914fi
8915
8916
8917fi
8918if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8919  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8920  # Extract the first word of "mt", so it can be a program name with args.
8921set dummy mt; ac_word=$2
8922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8923$as_echo_n "checking for $ac_word... " >&6; }
8924if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8925  $as_echo_n "(cached) " >&6
8926else
8927  if test -n "$ac_ct_MANIFEST_TOOL"; then
8928  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8929else
8930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931for as_dir in $PATH
8932do
8933  IFS=$as_save_IFS
8934  test -z "$as_dir" && as_dir=.
8935    for ac_exec_ext in '' $ac_executable_extensions; do
8936  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8937    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8938    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8939    break 2
8940  fi
8941done
8942  done
8943IFS=$as_save_IFS
8944
8945fi
8946fi
8947ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8948if test -n "$ac_ct_MANIFEST_TOOL"; then
8949  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8950$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8951else
8952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953$as_echo "no" >&6; }
8954fi
8955
8956  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8957    MANIFEST_TOOL=":"
8958  else
8959    case $cross_compiling:$ac_tool_warned in
8960yes:)
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8962$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8963ac_tool_warned=yes ;;
8964esac
8965    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8966  fi
8967else
8968  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8969fi
8970
8971test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8973$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8974if ${lt_cv_path_mainfest_tool+:} false; then :
8975  $as_echo_n "(cached) " >&6
8976else
8977  lt_cv_path_mainfest_tool=no
8978  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8979  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8980  cat conftest.err >&5
8981  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8982    lt_cv_path_mainfest_tool=yes
8983  fi
8984  rm -f conftest*
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8987$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8988if test yes != "$lt_cv_path_mainfest_tool"; then
8989  MANIFEST_TOOL=:
8990fi
8991
8992
8993
8994
8995
8996
8997  case $host_os in
8998    rhapsody* | darwin*)
8999    if test -n "$ac_tool_prefix"; then
9000  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9001set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9003$as_echo_n "checking for $ac_word... " >&6; }
9004if ${ac_cv_prog_DSYMUTIL+:} false; then :
9005  $as_echo_n "(cached) " >&6
9006else
9007  if test -n "$DSYMUTIL"; then
9008  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9009else
9010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9011for as_dir in $PATH
9012do
9013  IFS=$as_save_IFS
9014  test -z "$as_dir" && as_dir=.
9015    for ac_exec_ext in '' $ac_executable_extensions; do
9016  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9017    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9018    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9019    break 2
9020  fi
9021done
9022  done
9023IFS=$as_save_IFS
9024
9025fi
9026fi
9027DSYMUTIL=$ac_cv_prog_DSYMUTIL
9028if test -n "$DSYMUTIL"; then
9029  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9030$as_echo "$DSYMUTIL" >&6; }
9031else
9032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033$as_echo "no" >&6; }
9034fi
9035
9036
9037fi
9038if test -z "$ac_cv_prog_DSYMUTIL"; then
9039  ac_ct_DSYMUTIL=$DSYMUTIL
9040  # Extract the first word of "dsymutil", so it can be a program name with args.
9041set dummy dsymutil; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
9044if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9045  $as_echo_n "(cached) " >&6
9046else
9047  if test -n "$ac_ct_DSYMUTIL"; then
9048  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053  IFS=$as_save_IFS
9054  test -z "$as_dir" && as_dir=.
9055    for ac_exec_ext in '' $ac_executable_extensions; do
9056  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9057    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059    break 2
9060  fi
9061done
9062  done
9063IFS=$as_save_IFS
9064
9065fi
9066fi
9067ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9068if test -n "$ac_ct_DSYMUTIL"; then
9069  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9070$as_echo "$ac_ct_DSYMUTIL" >&6; }
9071else
9072  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076  if test "x$ac_ct_DSYMUTIL" = x; then
9077    DSYMUTIL=":"
9078  else
9079    case $cross_compiling:$ac_tool_warned in
9080yes:)
9081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9083ac_tool_warned=yes ;;
9084esac
9085    DSYMUTIL=$ac_ct_DSYMUTIL
9086  fi
9087else
9088  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9089fi
9090
9091    if test -n "$ac_tool_prefix"; then
9092  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9093set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9095$as_echo_n "checking for $ac_word... " >&6; }
9096if ${ac_cv_prog_NMEDIT+:} false; then :
9097  $as_echo_n "(cached) " >&6
9098else
9099  if test -n "$NMEDIT"; then
9100  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9101else
9102as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9103for as_dir in $PATH
9104do
9105  IFS=$as_save_IFS
9106  test -z "$as_dir" && as_dir=.
9107    for ac_exec_ext in '' $ac_executable_extensions; do
9108  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9109    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9110    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9111    break 2
9112  fi
9113done
9114  done
9115IFS=$as_save_IFS
9116
9117fi
9118fi
9119NMEDIT=$ac_cv_prog_NMEDIT
9120if test -n "$NMEDIT"; then
9121  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9122$as_echo "$NMEDIT" >&6; }
9123else
9124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9125$as_echo "no" >&6; }
9126fi
9127
9128
9129fi
9130if test -z "$ac_cv_prog_NMEDIT"; then
9131  ac_ct_NMEDIT=$NMEDIT
9132  # Extract the first word of "nmedit", so it can be a program name with args.
9133set dummy nmedit; ac_word=$2
9134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9135$as_echo_n "checking for $ac_word... " >&6; }
9136if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
9137  $as_echo_n "(cached) " >&6
9138else
9139  if test -n "$ac_ct_NMEDIT"; then
9140  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9141else
9142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9143for as_dir in $PATH
9144do
9145  IFS=$as_save_IFS
9146  test -z "$as_dir" && as_dir=.
9147    for ac_exec_ext in '' $ac_executable_extensions; do
9148  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9149    ac_cv_prog_ac_ct_NMEDIT="nmedit"
9150    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9151    break 2
9152  fi
9153done
9154  done
9155IFS=$as_save_IFS
9156
9157fi
9158fi
9159ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9160if test -n "$ac_ct_NMEDIT"; then
9161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9162$as_echo "$ac_ct_NMEDIT" >&6; }
9163else
9164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9165$as_echo "no" >&6; }
9166fi
9167
9168  if test "x$ac_ct_NMEDIT" = x; then
9169    NMEDIT=":"
9170  else
9171    case $cross_compiling:$ac_tool_warned in
9172yes:)
9173{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9174$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9175ac_tool_warned=yes ;;
9176esac
9177    NMEDIT=$ac_ct_NMEDIT
9178  fi
9179else
9180  NMEDIT="$ac_cv_prog_NMEDIT"
9181fi
9182
9183    if test -n "$ac_tool_prefix"; then
9184  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9185set dummy ${ac_tool_prefix}lipo; ac_word=$2
9186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187$as_echo_n "checking for $ac_word... " >&6; }
9188if ${ac_cv_prog_LIPO+:} false; then :
9189  $as_echo_n "(cached) " >&6
9190else
9191  if test -n "$LIPO"; then
9192  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9193else
9194as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9195for as_dir in $PATH
9196do
9197  IFS=$as_save_IFS
9198  test -z "$as_dir" && as_dir=.
9199    for ac_exec_ext in '' $ac_executable_extensions; do
9200  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9201    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9202    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9203    break 2
9204  fi
9205done
9206  done
9207IFS=$as_save_IFS
9208
9209fi
9210fi
9211LIPO=$ac_cv_prog_LIPO
9212if test -n "$LIPO"; then
9213  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9214$as_echo "$LIPO" >&6; }
9215else
9216  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217$as_echo "no" >&6; }
9218fi
9219
9220
9221fi
9222if test -z "$ac_cv_prog_LIPO"; then
9223  ac_ct_LIPO=$LIPO
9224  # Extract the first word of "lipo", so it can be a program name with args.
9225set dummy lipo; ac_word=$2
9226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9227$as_echo_n "checking for $ac_word... " >&6; }
9228if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
9229  $as_echo_n "(cached) " >&6
9230else
9231  if test -n "$ac_ct_LIPO"; then
9232  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9233else
9234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9235for as_dir in $PATH
9236do
9237  IFS=$as_save_IFS
9238  test -z "$as_dir" && as_dir=.
9239    for ac_exec_ext in '' $ac_executable_extensions; do
9240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9241    ac_cv_prog_ac_ct_LIPO="lipo"
9242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9243    break 2
9244  fi
9245done
9246  done
9247IFS=$as_save_IFS
9248
9249fi
9250fi
9251ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9252if test -n "$ac_ct_LIPO"; then
9253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9254$as_echo "$ac_ct_LIPO" >&6; }
9255else
9256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9257$as_echo "no" >&6; }
9258fi
9259
9260  if test "x$ac_ct_LIPO" = x; then
9261    LIPO=":"
9262  else
9263    case $cross_compiling:$ac_tool_warned in
9264yes:)
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9266$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9267ac_tool_warned=yes ;;
9268esac
9269    LIPO=$ac_ct_LIPO
9270  fi
9271else
9272  LIPO="$ac_cv_prog_LIPO"
9273fi
9274
9275    if test -n "$ac_tool_prefix"; then
9276  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9277set dummy ${ac_tool_prefix}otool; ac_word=$2
9278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279$as_echo_n "checking for $ac_word... " >&6; }
9280if ${ac_cv_prog_OTOOL+:} false; then :
9281  $as_echo_n "(cached) " >&6
9282else
9283  if test -n "$OTOOL"; then
9284  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9285else
9286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9287for as_dir in $PATH
9288do
9289  IFS=$as_save_IFS
9290  test -z "$as_dir" && as_dir=.
9291    for ac_exec_ext in '' $ac_executable_extensions; do
9292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9293    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9295    break 2
9296  fi
9297done
9298  done
9299IFS=$as_save_IFS
9300
9301fi
9302fi
9303OTOOL=$ac_cv_prog_OTOOL
9304if test -n "$OTOOL"; then
9305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9306$as_echo "$OTOOL" >&6; }
9307else
9308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9309$as_echo "no" >&6; }
9310fi
9311
9312
9313fi
9314if test -z "$ac_cv_prog_OTOOL"; then
9315  ac_ct_OTOOL=$OTOOL
9316  # Extract the first word of "otool", so it can be a program name with args.
9317set dummy otool; ac_word=$2
9318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9319$as_echo_n "checking for $ac_word... " >&6; }
9320if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
9321  $as_echo_n "(cached) " >&6
9322else
9323  if test -n "$ac_ct_OTOOL"; then
9324  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9325else
9326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9327for as_dir in $PATH
9328do
9329  IFS=$as_save_IFS
9330  test -z "$as_dir" && as_dir=.
9331    for ac_exec_ext in '' $ac_executable_extensions; do
9332  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9333    ac_cv_prog_ac_ct_OTOOL="otool"
9334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9335    break 2
9336  fi
9337done
9338  done
9339IFS=$as_save_IFS
9340
9341fi
9342fi
9343ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9344if test -n "$ac_ct_OTOOL"; then
9345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9346$as_echo "$ac_ct_OTOOL" >&6; }
9347else
9348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9349$as_echo "no" >&6; }
9350fi
9351
9352  if test "x$ac_ct_OTOOL" = x; then
9353    OTOOL=":"
9354  else
9355    case $cross_compiling:$ac_tool_warned in
9356yes:)
9357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9359ac_tool_warned=yes ;;
9360esac
9361    OTOOL=$ac_ct_OTOOL
9362  fi
9363else
9364  OTOOL="$ac_cv_prog_OTOOL"
9365fi
9366
9367    if test -n "$ac_tool_prefix"; then
9368  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9369set dummy ${ac_tool_prefix}otool64; ac_word=$2
9370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9371$as_echo_n "checking for $ac_word... " >&6; }
9372if ${ac_cv_prog_OTOOL64+:} false; then :
9373  $as_echo_n "(cached) " >&6
9374else
9375  if test -n "$OTOOL64"; then
9376  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9377else
9378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379for as_dir in $PATH
9380do
9381  IFS=$as_save_IFS
9382  test -z "$as_dir" && as_dir=.
9383    for ac_exec_ext in '' $ac_executable_extensions; do
9384  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9385    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9386    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387    break 2
9388  fi
9389done
9390  done
9391IFS=$as_save_IFS
9392
9393fi
9394fi
9395OTOOL64=$ac_cv_prog_OTOOL64
9396if test -n "$OTOOL64"; then
9397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9398$as_echo "$OTOOL64" >&6; }
9399else
9400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401$as_echo "no" >&6; }
9402fi
9403
9404
9405fi
9406if test -z "$ac_cv_prog_OTOOL64"; then
9407  ac_ct_OTOOL64=$OTOOL64
9408  # Extract the first word of "otool64", so it can be a program name with args.
9409set dummy otool64; ac_word=$2
9410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411$as_echo_n "checking for $ac_word... " >&6; }
9412if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9413  $as_echo_n "(cached) " >&6
9414else
9415  if test -n "$ac_ct_OTOOL64"; then
9416  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9417else
9418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9419for as_dir in $PATH
9420do
9421  IFS=$as_save_IFS
9422  test -z "$as_dir" && as_dir=.
9423    for ac_exec_ext in '' $ac_executable_extensions; do
9424  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9425    ac_cv_prog_ac_ct_OTOOL64="otool64"
9426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9427    break 2
9428  fi
9429done
9430  done
9431IFS=$as_save_IFS
9432
9433fi
9434fi
9435ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9436if test -n "$ac_ct_OTOOL64"; then
9437  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9438$as_echo "$ac_ct_OTOOL64" >&6; }
9439else
9440  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9441$as_echo "no" >&6; }
9442fi
9443
9444  if test "x$ac_ct_OTOOL64" = x; then
9445    OTOOL64=":"
9446  else
9447    case $cross_compiling:$ac_tool_warned in
9448yes:)
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9451ac_tool_warned=yes ;;
9452esac
9453    OTOOL64=$ac_ct_OTOOL64
9454  fi
9455else
9456  OTOOL64="$ac_cv_prog_OTOOL64"
9457fi
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9486$as_echo_n "checking for -single_module linker flag... " >&6; }
9487if ${lt_cv_apple_cc_single_mod+:} false; then :
9488  $as_echo_n "(cached) " >&6
9489else
9490  lt_cv_apple_cc_single_mod=no
9491      if test -z "$LT_MULTI_MODULE"; then
9492	# By default we will add the -single_module flag. You can override
9493	# by either setting the environment variable LT_MULTI_MODULE
9494	# non-empty at configure time, or by adding -multi_module to the
9495	# link flags.
9496	rm -rf libconftest.dylib*
9497	echo "int foo(void){return 1;}" > conftest.c
9498	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9499-dynamiclib -Wl,-single_module conftest.c" >&5
9500	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9501	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9502        _lt_result=$?
9503	# If there is a non-empty error log, and "single_module"
9504	# appears in it, assume the flag caused a linker warning
9505        if test -s conftest.err && $GREP single_module conftest.err; then
9506	  cat conftest.err >&5
9507	# Otherwise, if the output was created with a 0 exit code from
9508	# the compiler, it worked.
9509	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
9510	  lt_cv_apple_cc_single_mod=yes
9511	else
9512	  cat conftest.err >&5
9513	fi
9514	rm -rf libconftest.dylib*
9515	rm -f conftest.*
9516      fi
9517fi
9518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9519$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9520
9521    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9522$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9523if ${lt_cv_ld_exported_symbols_list+:} false; then :
9524  $as_echo_n "(cached) " >&6
9525else
9526  lt_cv_ld_exported_symbols_list=no
9527      save_LDFLAGS=$LDFLAGS
9528      echo "_main" > conftest.sym
9529      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9530      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9531/* end confdefs.h.  */
9532
9533int
9534main ()
9535{
9536
9537  ;
9538  return 0;
9539}
9540_ACEOF
9541if ac_fn_c_try_link "$LINENO"; then :
9542  lt_cv_ld_exported_symbols_list=yes
9543else
9544  lt_cv_ld_exported_symbols_list=no
9545fi
9546rm -f core conftest.err conftest.$ac_objext \
9547    conftest$ac_exeext conftest.$ac_ext
9548	LDFLAGS=$save_LDFLAGS
9549
9550fi
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9552$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9553
9554    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9555$as_echo_n "checking for -force_load linker flag... " >&6; }
9556if ${lt_cv_ld_force_load+:} false; then :
9557  $as_echo_n "(cached) " >&6
9558else
9559  lt_cv_ld_force_load=no
9560      cat > conftest.c << _LT_EOF
9561int forced_loaded() { return 2;}
9562_LT_EOF
9563      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9564      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9565      echo "$AR cru libconftest.a conftest.o" >&5
9566      $AR cru libconftest.a conftest.o 2>&5
9567      echo "$RANLIB libconftest.a" >&5
9568      $RANLIB libconftest.a 2>&5
9569      cat > conftest.c << _LT_EOF
9570int main() { return 0;}
9571_LT_EOF
9572      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9573      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9574      _lt_result=$?
9575      if test -s conftest.err && $GREP force_load conftest.err; then
9576	cat conftest.err >&5
9577      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
9578	lt_cv_ld_force_load=yes
9579      else
9580	cat conftest.err >&5
9581      fi
9582        rm -f conftest.err libconftest.a conftest conftest.c
9583        rm -rf conftest.dSYM
9584
9585fi
9586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9587$as_echo "$lt_cv_ld_force_load" >&6; }
9588    case $host_os in
9589    rhapsody* | darwin1.[012])
9590      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
9591    darwin1.*)
9592      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9593    darwin*) # darwin 5.x on
9594      # if running on 10.5 or later, the deployment target defaults
9595      # to the OS version, if on x86, and 10.4, the deployment
9596      # target defaults to 10.4. Don't you love it?
9597      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9598	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9599	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9600	10.[012][,.]*)
9601	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
9602	10.*)
9603	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
9604      esac
9605    ;;
9606  esac
9607    if test yes = "$lt_cv_apple_cc_single_mod"; then
9608      _lt_dar_single_mod='$single_module'
9609    fi
9610    if test yes = "$lt_cv_ld_exported_symbols_list"; then
9611      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
9612    else
9613      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
9614    fi
9615    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
9616      _lt_dsymutil='~$DSYMUTIL $lib || :'
9617    else
9618      _lt_dsymutil=
9619    fi
9620    ;;
9621  esac
9622
9623# func_munge_path_list VARIABLE PATH
9624# -----------------------------------
9625# VARIABLE is name of variable containing _space_ separated list of
9626# directories to be munged by the contents of PATH, which is string
9627# having a format:
9628# "DIR[:DIR]:"
9629#       string "DIR[ DIR]" will be prepended to VARIABLE
9630# ":DIR[:DIR]"
9631#       string "DIR[ DIR]" will be appended to VARIABLE
9632# "DIRP[:DIRP]::[DIRA:]DIRA"
9633#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
9634#       "DIRA[ DIRA]" will be appended to VARIABLE
9635# "DIR[:DIR]"
9636#       VARIABLE will be replaced by "DIR[ DIR]"
9637func_munge_path_list ()
9638{
9639    case x$2 in
9640    x)
9641        ;;
9642    *:)
9643        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
9644        ;;
9645    x:*)
9646        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
9647        ;;
9648    *::*)
9649        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
9650        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
9651        ;;
9652    *)
9653        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
9654        ;;
9655    esac
9656}
9657
9658for ac_header in dlfcn.h
9659do :
9660  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9661"
9662if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9663  cat >>confdefs.h <<_ACEOF
9664#define HAVE_DLFCN_H 1
9665_ACEOF
9666
9667fi
9668
9669done
9670
9671
9672
9673
9674
9675# Set options
9676
9677
9678
9679        enable_dlopen=no
9680
9681
9682  enable_win32_dll=no
9683
9684
9685            # Check whether --enable-shared was given.
9686if test "${enable_shared+set}" = set; then :
9687  enableval=$enable_shared; p=${PACKAGE-default}
9688    case $enableval in
9689    yes) enable_shared=yes ;;
9690    no) enable_shared=no ;;
9691    *)
9692      enable_shared=no
9693      # Look at the argument we got.  We use all the common list separators.
9694      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9695      for pkg in $enableval; do
9696	IFS=$lt_save_ifs
9697	if test "X$pkg" = "X$p"; then
9698	  enable_shared=yes
9699	fi
9700      done
9701      IFS=$lt_save_ifs
9702      ;;
9703    esac
9704else
9705  enable_shared=yes
9706fi
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716  # Check whether --enable-static was given.
9717if test "${enable_static+set}" = set; then :
9718  enableval=$enable_static; p=${PACKAGE-default}
9719    case $enableval in
9720    yes) enable_static=yes ;;
9721    no) enable_static=no ;;
9722    *)
9723     enable_static=no
9724      # Look at the argument we got.  We use all the common list separators.
9725      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9726      for pkg in $enableval; do
9727	IFS=$lt_save_ifs
9728	if test "X$pkg" = "X$p"; then
9729	  enable_static=yes
9730	fi
9731      done
9732      IFS=$lt_save_ifs
9733      ;;
9734    esac
9735else
9736  enable_static=yes
9737fi
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748# Check whether --with-pic was given.
9749if test "${with_pic+set}" = set; then :
9750  withval=$with_pic; lt_p=${PACKAGE-default}
9751    case $withval in
9752    yes|no) pic_mode=$withval ;;
9753    *)
9754      pic_mode=default
9755      # Look at the argument we got.  We use all the common list separators.
9756      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9757      for lt_pkg in $withval; do
9758	IFS=$lt_save_ifs
9759	if test "X$lt_pkg" = "X$lt_p"; then
9760	  pic_mode=yes
9761	fi
9762      done
9763      IFS=$lt_save_ifs
9764      ;;
9765    esac
9766else
9767  pic_mode=default
9768fi
9769
9770
9771
9772
9773
9774
9775
9776
9777  # Check whether --enable-fast-install was given.
9778if test "${enable_fast_install+set}" = set; then :
9779  enableval=$enable_fast_install; p=${PACKAGE-default}
9780    case $enableval in
9781    yes) enable_fast_install=yes ;;
9782    no) enable_fast_install=no ;;
9783    *)
9784      enable_fast_install=no
9785      # Look at the argument we got.  We use all the common list separators.
9786      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9787      for pkg in $enableval; do
9788	IFS=$lt_save_ifs
9789	if test "X$pkg" = "X$p"; then
9790	  enable_fast_install=yes
9791	fi
9792      done
9793      IFS=$lt_save_ifs
9794      ;;
9795    esac
9796else
9797  enable_fast_install=yes
9798fi
9799
9800
9801
9802
9803
9804
9805
9806
9807  shared_archive_member_spec=
9808case $host,$enable_shared in
9809power*-*-aix[5-9]*,yes)
9810  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9811$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9812
9813# Check whether --with-aix-soname was given.
9814if test "${with_aix_soname+set}" = set; then :
9815  withval=$with_aix_soname; case $withval in
9816    aix|svr4|both)
9817      ;;
9818    *)
9819      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9820      ;;
9821    esac
9822    lt_cv_with_aix_soname=$with_aix_soname
9823else
9824  if ${lt_cv_with_aix_soname+:} false; then :
9825  $as_echo_n "(cached) " >&6
9826else
9827  lt_cv_with_aix_soname=aix
9828fi
9829
9830    with_aix_soname=$lt_cv_with_aix_soname
9831fi
9832
9833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9834$as_echo "$with_aix_soname" >&6; }
9835  if test aix != "$with_aix_soname"; then
9836    # For the AIX way of multilib, we name the shared archive member
9837    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9838    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9839    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9840    # the AIX toolchain works better with OBJECT_MODE set (default 32).
9841    if test 64 = "${OBJECT_MODE-32}"; then
9842      shared_archive_member_spec=shr_64
9843    else
9844      shared_archive_member_spec=shr
9845    fi
9846  fi
9847  ;;
9848*)
9849  with_aix_soname=aix
9850  ;;
9851esac
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862# This can be used to rebuild libtool when needed
9863LIBTOOL_DEPS=$ltmain
9864
9865# Always use our own libtool.
9866LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9867
9868
9869
9870
9871
9872
9873
9874
9875
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894
9895
9896
9897test -z "$LN_S" && LN_S="ln -s"
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908
9909
9910
9911
9912if test -n "${ZSH_VERSION+set}"; then
9913   setopt NO_GLOB_SUBST
9914fi
9915
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9917$as_echo_n "checking for objdir... " >&6; }
9918if ${lt_cv_objdir+:} false; then :
9919  $as_echo_n "(cached) " >&6
9920else
9921  rm -f .libs 2>/dev/null
9922mkdir .libs 2>/dev/null
9923if test -d .libs; then
9924  lt_cv_objdir=.libs
9925else
9926  # MS-DOS does not allow filenames that begin with a dot.
9927  lt_cv_objdir=_libs
9928fi
9929rmdir .libs 2>/dev/null
9930fi
9931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9932$as_echo "$lt_cv_objdir" >&6; }
9933objdir=$lt_cv_objdir
9934
9935
9936
9937
9938
9939cat >>confdefs.h <<_ACEOF
9940#define LT_OBJDIR "$lt_cv_objdir/"
9941_ACEOF
9942
9943
9944
9945
9946case $host_os in
9947aix3*)
9948  # AIX sometimes has problems with the GCC collect2 program.  For some
9949  # reason, if we set the COLLECT_NAMES environment variable, the problems
9950  # vanish in a puff of smoke.
9951  if test set != "${COLLECT_NAMES+set}"; then
9952    COLLECT_NAMES=
9953    export COLLECT_NAMES
9954  fi
9955  ;;
9956esac
9957
9958# Global variables:
9959ofile=libtool
9960can_build_shared=yes
9961
9962# All known linkers require a '.a' archive for static linking (except MSVC,
9963# which needs '.lib').
9964libext=a
9965
9966with_gnu_ld=$lt_cv_prog_gnu_ld
9967
9968old_CC=$CC
9969old_CFLAGS=$CFLAGS
9970
9971# Set sane defaults for various variables
9972test -z "$CC" && CC=cc
9973test -z "$LTCC" && LTCC=$CC
9974test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9975test -z "$LD" && LD=ld
9976test -z "$ac_objext" && ac_objext=o
9977
9978func_cc_basename $compiler
9979cc_basename=$func_cc_basename_result
9980
9981
9982# Only perform the check for file, if the check method requires it
9983test -z "$MAGIC_CMD" && MAGIC_CMD=file
9984case $deplibs_check_method in
9985file_magic*)
9986  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9987    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9988$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9989if ${lt_cv_path_MAGIC_CMD+:} false; then :
9990  $as_echo_n "(cached) " >&6
9991else
9992  case $MAGIC_CMD in
9993[\\/*] |  ?:[\\/]*)
9994  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9995  ;;
9996*)
9997  lt_save_MAGIC_CMD=$MAGIC_CMD
9998  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9999  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10000  for ac_dir in $ac_dummy; do
10001    IFS=$lt_save_ifs
10002    test -z "$ac_dir" && ac_dir=.
10003    if test -f "$ac_dir/${ac_tool_prefix}file"; then
10004      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
10005      if test -n "$file_magic_test_file"; then
10006	case $deplibs_check_method in
10007	"file_magic "*)
10008	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10009	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10010	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10011	    $EGREP "$file_magic_regex" > /dev/null; then
10012	    :
10013	  else
10014	    cat <<_LT_EOF 1>&2
10015
10016*** Warning: the command libtool uses to detect shared libraries,
10017*** $file_magic_cmd, produces output that libtool cannot recognize.
10018*** The result is that libtool may fail to recognize shared libraries
10019*** as such.  This will affect the creation of libtool libraries that
10020*** depend on shared libraries, but programs linked with such libtool
10021*** libraries will work regardless of this problem.  Nevertheless, you
10022*** may want to report the problem to your system manager and/or to
10023*** bug-libtool@gnu.org
10024
10025_LT_EOF
10026	  fi ;;
10027	esac
10028      fi
10029      break
10030    fi
10031  done
10032  IFS=$lt_save_ifs
10033  MAGIC_CMD=$lt_save_MAGIC_CMD
10034  ;;
10035esac
10036fi
10037
10038MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10039if test -n "$MAGIC_CMD"; then
10040  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10041$as_echo "$MAGIC_CMD" >&6; }
10042else
10043  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10044$as_echo "no" >&6; }
10045fi
10046
10047
10048
10049
10050
10051if test -z "$lt_cv_path_MAGIC_CMD"; then
10052  if test -n "$ac_tool_prefix"; then
10053    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10054$as_echo_n "checking for file... " >&6; }
10055if ${lt_cv_path_MAGIC_CMD+:} false; then :
10056  $as_echo_n "(cached) " >&6
10057else
10058  case $MAGIC_CMD in
10059[\\/*] |  ?:[\\/]*)
10060  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
10061  ;;
10062*)
10063  lt_save_MAGIC_CMD=$MAGIC_CMD
10064  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
10065  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10066  for ac_dir in $ac_dummy; do
10067    IFS=$lt_save_ifs
10068    test -z "$ac_dir" && ac_dir=.
10069    if test -f "$ac_dir/file"; then
10070      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
10071      if test -n "$file_magic_test_file"; then
10072	case $deplibs_check_method in
10073	"file_magic "*)
10074	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10075	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10076	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10077	    $EGREP "$file_magic_regex" > /dev/null; then
10078	    :
10079	  else
10080	    cat <<_LT_EOF 1>&2
10081
10082*** Warning: the command libtool uses to detect shared libraries,
10083*** $file_magic_cmd, produces output that libtool cannot recognize.
10084*** The result is that libtool may fail to recognize shared libraries
10085*** as such.  This will affect the creation of libtool libraries that
10086*** depend on shared libraries, but programs linked with such libtool
10087*** libraries will work regardless of this problem.  Nevertheless, you
10088*** may want to report the problem to your system manager and/or to
10089*** bug-libtool@gnu.org
10090
10091_LT_EOF
10092	  fi ;;
10093	esac
10094      fi
10095      break
10096    fi
10097  done
10098  IFS=$lt_save_ifs
10099  MAGIC_CMD=$lt_save_MAGIC_CMD
10100  ;;
10101esac
10102fi
10103
10104MAGIC_CMD=$lt_cv_path_MAGIC_CMD
10105if test -n "$MAGIC_CMD"; then
10106  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10107$as_echo "$MAGIC_CMD" >&6; }
10108else
10109  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10110$as_echo "no" >&6; }
10111fi
10112
10113
10114  else
10115    MAGIC_CMD=:
10116  fi
10117fi
10118
10119  fi
10120  ;;
10121esac
10122
10123# Use C for the default configuration in the libtool script
10124
10125lt_save_CC=$CC
10126ac_ext=c
10127ac_cpp='$CPP $CPPFLAGS'
10128ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10129ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10130ac_compiler_gnu=$ac_cv_c_compiler_gnu
10131
10132
10133# Source file extension for C test sources.
10134ac_ext=c
10135
10136# Object file extension for compiled C test sources.
10137objext=o
10138objext=$objext
10139
10140# Code to be used in simple compile tests
10141lt_simple_compile_test_code="int some_variable = 0;"
10142
10143# Code to be used in simple link tests
10144lt_simple_link_test_code='int main(){return(0);}'
10145
10146
10147
10148
10149
10150
10151
10152# If no C compiler was specified, use CC.
10153LTCC=${LTCC-"$CC"}
10154
10155# If no C compiler flags were specified, use CFLAGS.
10156LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10157
10158# Allow CC to be a program name with arguments.
10159compiler=$CC
10160
10161# Save the default compiler, since it gets overwritten when the other
10162# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10163compiler_DEFAULT=$CC
10164
10165# save warnings/boilerplate of simple test code
10166ac_outfile=conftest.$ac_objext
10167echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10168eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10169_lt_compiler_boilerplate=`cat conftest.err`
10170$RM conftest*
10171
10172ac_outfile=conftest.$ac_objext
10173echo "$lt_simple_link_test_code" >conftest.$ac_ext
10174eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10175_lt_linker_boilerplate=`cat conftest.err`
10176$RM -r conftest*
10177
10178
10179if test -n "$compiler"; then
10180
10181lt_prog_compiler_no_builtin_flag=
10182
10183if test yes = "$GCC"; then
10184  case $cc_basename in
10185  nvcc*)
10186    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10187  *)
10188    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10189  esac
10190
10191  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10192$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10193if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
10194  $as_echo_n "(cached) " >&6
10195else
10196  lt_cv_prog_compiler_rtti_exceptions=no
10197   ac_outfile=conftest.$ac_objext
10198   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10199   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
10200   # Insert the option either (1) after the last *FLAGS variable, or
10201   # (2) before a word containing "conftest.", or (3) at the end.
10202   # Note that $ac_compile itself does not contain backslashes and begins
10203   # with a dollar sign (not a hyphen), so the echo should work correctly.
10204   # The option is referenced via a variable to avoid confusing sed.
10205   lt_compile=`echo "$ac_compile" | $SED \
10206   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10207   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10208   -e 's:$: $lt_compiler_flag:'`
10209   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10210   (eval "$lt_compile" 2>conftest.err)
10211   ac_status=$?
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   if (exit $ac_status) && test -s "$ac_outfile"; then
10215     # The compiler can only warn and ignore the option if not recognized
10216     # So say no if there are warnings other than the usual output.
10217     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10218     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10219     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10220       lt_cv_prog_compiler_rtti_exceptions=yes
10221     fi
10222   fi
10223   $RM conftest*
10224
10225fi
10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10227$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10228
10229if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
10230    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10231else
10232    :
10233fi
10234
10235fi
10236
10237
10238
10239
10240
10241
10242  lt_prog_compiler_wl=
10243lt_prog_compiler_pic=
10244lt_prog_compiler_static=
10245
10246
10247  if test yes = "$GCC"; then
10248    lt_prog_compiler_wl='-Wl,'
10249    lt_prog_compiler_static='-static'
10250
10251    case $host_os in
10252      aix*)
10253      # All AIX code is PIC.
10254      if test ia64 = "$host_cpu"; then
10255	# AIX 5 now supports IA64 processor
10256	lt_prog_compiler_static='-Bstatic'
10257      fi
10258      lt_prog_compiler_pic='-fPIC'
10259      ;;
10260
10261    amigaos*)
10262      case $host_cpu in
10263      powerpc)
10264            # see comment about AmigaOS4 .so support
10265            lt_prog_compiler_pic='-fPIC'
10266        ;;
10267      m68k)
10268            # FIXME: we need at least 68020 code to build shared libraries, but
10269            # adding the '-m68020' flag to GCC prevents building anything better,
10270            # like '-m68040'.
10271            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10272        ;;
10273      esac
10274      ;;
10275
10276    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10277      # PIC is the default for these OSes.
10278      ;;
10279
10280    mingw* | cygwin* | pw32* | os2* | cegcc*)
10281      # This hack is so that the source file can tell whether it is being
10282      # built for inclusion in a dll (and should export symbols for example).
10283      # Although the cygwin gcc ignores -fPIC, still need this for old-style
10284      # (--disable-auto-import) libraries
10285      lt_prog_compiler_pic='-DDLL_EXPORT'
10286      case $host_os in
10287      os2*)
10288	lt_prog_compiler_static='$wl-static'
10289	;;
10290      esac
10291      ;;
10292
10293    darwin* | rhapsody*)
10294      # PIC is the default on this platform
10295      # Common symbols not allowed in MH_DYLIB files
10296      lt_prog_compiler_pic='-fno-common'
10297      ;;
10298
10299    haiku*)
10300      # PIC is the default for Haiku.
10301      # The "-static" flag exists, but is broken.
10302      lt_prog_compiler_static=
10303      ;;
10304
10305    hpux*)
10306      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10307      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10308      # sets the default TLS model and affects inlining.
10309      case $host_cpu in
10310      hppa*64*)
10311	# +Z the default
10312	;;
10313      *)
10314	lt_prog_compiler_pic='-fPIC'
10315	;;
10316      esac
10317      ;;
10318
10319    interix[3-9]*)
10320      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10321      # Instead, we relocate shared libraries at runtime.
10322      ;;
10323
10324    msdosdjgpp*)
10325      # Just because we use GCC doesn't mean we suddenly get shared libraries
10326      # on systems that don't support them.
10327      lt_prog_compiler_can_build_shared=no
10328      enable_shared=no
10329      ;;
10330
10331    *nto* | *qnx*)
10332      # QNX uses GNU C++, but need to define -shared option too, otherwise
10333      # it will coredump.
10334      lt_prog_compiler_pic='-fPIC -shared'
10335      ;;
10336
10337    sysv4*MP*)
10338      if test -d /usr/nec; then
10339	lt_prog_compiler_pic=-Kconform_pic
10340      fi
10341      ;;
10342
10343    *)
10344      lt_prog_compiler_pic='-fPIC'
10345      ;;
10346    esac
10347
10348    case $cc_basename in
10349    nvcc*) # Cuda Compiler Driver 2.2
10350      lt_prog_compiler_wl='-Xlinker '
10351      if test -n "$lt_prog_compiler_pic"; then
10352        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
10353      fi
10354      ;;
10355    esac
10356  else
10357    # PORTME Check for flag to pass linker flags through the system compiler.
10358    case $host_os in
10359    aix*)
10360      lt_prog_compiler_wl='-Wl,'
10361      if test ia64 = "$host_cpu"; then
10362	# AIX 5 now supports IA64 processor
10363	lt_prog_compiler_static='-Bstatic'
10364      else
10365	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10366      fi
10367      ;;
10368
10369    darwin* | rhapsody*)
10370      # PIC is the default on this platform
10371      # Common symbols not allowed in MH_DYLIB files
10372      lt_prog_compiler_pic='-fno-common'
10373      case $cc_basename in
10374      nagfor*)
10375        # NAG Fortran compiler
10376        lt_prog_compiler_wl='-Wl,-Wl,,'
10377        lt_prog_compiler_pic='-PIC'
10378        lt_prog_compiler_static='-Bstatic'
10379        ;;
10380      esac
10381      ;;
10382
10383    mingw* | cygwin* | pw32* | os2* | cegcc*)
10384      # This hack is so that the source file can tell whether it is being
10385      # built for inclusion in a dll (and should export symbols for example).
10386      lt_prog_compiler_pic='-DDLL_EXPORT'
10387      case $host_os in
10388      os2*)
10389	lt_prog_compiler_static='$wl-static'
10390	;;
10391      esac
10392      ;;
10393
10394    hpux9* | hpux10* | hpux11*)
10395      lt_prog_compiler_wl='-Wl,'
10396      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10397      # not for PA HP-UX.
10398      case $host_cpu in
10399      hppa*64*|ia64*)
10400	# +Z the default
10401	;;
10402      *)
10403	lt_prog_compiler_pic='+Z'
10404	;;
10405      esac
10406      # Is there a better lt_prog_compiler_static that works with the bundled CC?
10407      lt_prog_compiler_static='$wl-a ${wl}archive'
10408      ;;
10409
10410    irix5* | irix6* | nonstopux*)
10411      lt_prog_compiler_wl='-Wl,'
10412      # PIC (with -KPIC) is the default.
10413      lt_prog_compiler_static='-non_shared'
10414      ;;
10415
10416    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10417      case $cc_basename in
10418      # old Intel for x86_64, which still supported -KPIC.
10419      ecc*)
10420	lt_prog_compiler_wl='-Wl,'
10421	lt_prog_compiler_pic='-KPIC'
10422	lt_prog_compiler_static='-static'
10423        ;;
10424      # icc used to be incompatible with GCC.
10425      # ICC 10 doesn't accept -KPIC any more.
10426      icc* | ifort*)
10427	lt_prog_compiler_wl='-Wl,'
10428	lt_prog_compiler_pic='-fPIC'
10429	lt_prog_compiler_static='-static'
10430        ;;
10431      # Lahey Fortran 8.1.
10432      lf95*)
10433	lt_prog_compiler_wl='-Wl,'
10434	lt_prog_compiler_pic='--shared'
10435	lt_prog_compiler_static='--static'
10436	;;
10437      nagfor*)
10438	# NAG Fortran compiler
10439	lt_prog_compiler_wl='-Wl,-Wl,,'
10440	lt_prog_compiler_pic='-PIC'
10441	lt_prog_compiler_static='-Bstatic'
10442	;;
10443      tcc*)
10444	# Fabrice Bellard et al's Tiny C Compiler
10445	lt_prog_compiler_wl='-Wl,'
10446	lt_prog_compiler_pic='-fPIC'
10447	lt_prog_compiler_static='-static'
10448	;;
10449      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10450        # Portland Group compilers (*not* the Pentium gcc compiler,
10451	# which looks to be a dead project)
10452	lt_prog_compiler_wl='-Wl,'
10453	lt_prog_compiler_pic='-fpic'
10454	lt_prog_compiler_static='-Bstatic'
10455        ;;
10456      ccc*)
10457        lt_prog_compiler_wl='-Wl,'
10458        # All Alpha code is PIC.
10459        lt_prog_compiler_static='-non_shared'
10460        ;;
10461      xl* | bgxl* | bgf* | mpixl*)
10462	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10463	lt_prog_compiler_wl='-Wl,'
10464	lt_prog_compiler_pic='-qpic'
10465	lt_prog_compiler_static='-qstaticlink'
10466	;;
10467      *)
10468	case `$CC -V 2>&1 | sed 5q` in
10469	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
10470	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
10471	  lt_prog_compiler_pic='-KPIC'
10472	  lt_prog_compiler_static='-Bstatic'
10473	  lt_prog_compiler_wl=''
10474	  ;;
10475	*Sun\ F* | *Sun*Fortran*)
10476	  lt_prog_compiler_pic='-KPIC'
10477	  lt_prog_compiler_static='-Bstatic'
10478	  lt_prog_compiler_wl='-Qoption ld '
10479	  ;;
10480	*Sun\ C*)
10481	  # Sun C 5.9
10482	  lt_prog_compiler_pic='-KPIC'
10483	  lt_prog_compiler_static='-Bstatic'
10484	  lt_prog_compiler_wl='-Wl,'
10485	  ;;
10486        *Intel*\ [CF]*Compiler*)
10487	  lt_prog_compiler_wl='-Wl,'
10488	  lt_prog_compiler_pic='-fPIC'
10489	  lt_prog_compiler_static='-static'
10490	  ;;
10491	*Portland\ Group*)
10492	  lt_prog_compiler_wl='-Wl,'
10493	  lt_prog_compiler_pic='-fpic'
10494	  lt_prog_compiler_static='-Bstatic'
10495	  ;;
10496	esac
10497	;;
10498      esac
10499      ;;
10500
10501    newsos6)
10502      lt_prog_compiler_pic='-KPIC'
10503      lt_prog_compiler_static='-Bstatic'
10504      ;;
10505
10506    *nto* | *qnx*)
10507      # QNX uses GNU C++, but need to define -shared option too, otherwise
10508      # it will coredump.
10509      lt_prog_compiler_pic='-fPIC -shared'
10510      ;;
10511
10512    osf3* | osf4* | osf5*)
10513      lt_prog_compiler_wl='-Wl,'
10514      # All OSF/1 code is PIC.
10515      lt_prog_compiler_static='-non_shared'
10516      ;;
10517
10518    rdos*)
10519      lt_prog_compiler_static='-non_shared'
10520      ;;
10521
10522    solaris*)
10523      lt_prog_compiler_pic='-KPIC'
10524      lt_prog_compiler_static='-Bstatic'
10525      case $cc_basename in
10526      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10527	lt_prog_compiler_wl='-Qoption ld ';;
10528      *)
10529	lt_prog_compiler_wl='-Wl,';;
10530      esac
10531      ;;
10532
10533    sunos4*)
10534      lt_prog_compiler_wl='-Qoption ld '
10535      lt_prog_compiler_pic='-PIC'
10536      lt_prog_compiler_static='-Bstatic'
10537      ;;
10538
10539    sysv4 | sysv4.2uw2* | sysv4.3*)
10540      lt_prog_compiler_wl='-Wl,'
10541      lt_prog_compiler_pic='-KPIC'
10542      lt_prog_compiler_static='-Bstatic'
10543      ;;
10544
10545    sysv4*MP*)
10546      if test -d /usr/nec; then
10547	lt_prog_compiler_pic='-Kconform_pic'
10548	lt_prog_compiler_static='-Bstatic'
10549      fi
10550      ;;
10551
10552    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10553      lt_prog_compiler_wl='-Wl,'
10554      lt_prog_compiler_pic='-KPIC'
10555      lt_prog_compiler_static='-Bstatic'
10556      ;;
10557
10558    unicos*)
10559      lt_prog_compiler_wl='-Wl,'
10560      lt_prog_compiler_can_build_shared=no
10561      ;;
10562
10563    uts4*)
10564      lt_prog_compiler_pic='-pic'
10565      lt_prog_compiler_static='-Bstatic'
10566      ;;
10567
10568    *)
10569      lt_prog_compiler_can_build_shared=no
10570      ;;
10571    esac
10572  fi
10573
10574case $host_os in
10575  # For platforms that do not support PIC, -DPIC is meaningless:
10576  *djgpp*)
10577    lt_prog_compiler_pic=
10578    ;;
10579  *)
10580    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10581    ;;
10582esac
10583
10584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10585$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10586if ${lt_cv_prog_compiler_pic+:} false; then :
10587  $as_echo_n "(cached) " >&6
10588else
10589  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10590fi
10591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10592$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10593lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10594
10595#
10596# Check to make sure the PIC flag actually works.
10597#
10598if test -n "$lt_prog_compiler_pic"; then
10599  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10600$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10601if ${lt_cv_prog_compiler_pic_works+:} false; then :
10602  $as_echo_n "(cached) " >&6
10603else
10604  lt_cv_prog_compiler_pic_works=no
10605   ac_outfile=conftest.$ac_objext
10606   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10607   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10608   # Insert the option either (1) after the last *FLAGS variable, or
10609   # (2) before a word containing "conftest.", or (3) at the end.
10610   # Note that $ac_compile itself does not contain backslashes and begins
10611   # with a dollar sign (not a hyphen), so the echo should work correctly.
10612   # The option is referenced via a variable to avoid confusing sed.
10613   lt_compile=`echo "$ac_compile" | $SED \
10614   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10615   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10616   -e 's:$: $lt_compiler_flag:'`
10617   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10618   (eval "$lt_compile" 2>conftest.err)
10619   ac_status=$?
10620   cat conftest.err >&5
10621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622   if (exit $ac_status) && test -s "$ac_outfile"; then
10623     # The compiler can only warn and ignore the option if not recognized
10624     # So say no if there are warnings other than the usual output.
10625     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10626     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10627     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10628       lt_cv_prog_compiler_pic_works=yes
10629     fi
10630   fi
10631   $RM conftest*
10632
10633fi
10634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10635$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10636
10637if test yes = "$lt_cv_prog_compiler_pic_works"; then
10638    case $lt_prog_compiler_pic in
10639     "" | " "*) ;;
10640     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10641     esac
10642else
10643    lt_prog_compiler_pic=
10644     lt_prog_compiler_can_build_shared=no
10645fi
10646
10647fi
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659#
10660# Check to make sure the static flag actually works.
10661#
10662wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10664$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10665if ${lt_cv_prog_compiler_static_works+:} false; then :
10666  $as_echo_n "(cached) " >&6
10667else
10668  lt_cv_prog_compiler_static_works=no
10669   save_LDFLAGS=$LDFLAGS
10670   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10671   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10672   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10673     # The linker can only warn and ignore the option if not recognized
10674     # So say no if there are warnings
10675     if test -s conftest.err; then
10676       # Append any errors to the config.log.
10677       cat conftest.err 1>&5
10678       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10679       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10680       if diff conftest.exp conftest.er2 >/dev/null; then
10681         lt_cv_prog_compiler_static_works=yes
10682       fi
10683     else
10684       lt_cv_prog_compiler_static_works=yes
10685     fi
10686   fi
10687   $RM -r conftest*
10688   LDFLAGS=$save_LDFLAGS
10689
10690fi
10691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10692$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10693
10694if test yes = "$lt_cv_prog_compiler_static_works"; then
10695    :
10696else
10697    lt_prog_compiler_static=
10698fi
10699
10700
10701
10702
10703
10704
10705
10706  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10707$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10708if ${lt_cv_prog_compiler_c_o+:} false; then :
10709  $as_echo_n "(cached) " >&6
10710else
10711  lt_cv_prog_compiler_c_o=no
10712   $RM -r conftest 2>/dev/null
10713   mkdir conftest
10714   cd conftest
10715   mkdir out
10716   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10717
10718   lt_compiler_flag="-o out/conftest2.$ac_objext"
10719   # Insert the option either (1) after the last *FLAGS variable, or
10720   # (2) before a word containing "conftest.", or (3) at the end.
10721   # Note that $ac_compile itself does not contain backslashes and begins
10722   # with a dollar sign (not a hyphen), so the echo should work correctly.
10723   lt_compile=`echo "$ac_compile" | $SED \
10724   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10725   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10726   -e 's:$: $lt_compiler_flag:'`
10727   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10728   (eval "$lt_compile" 2>out/conftest.err)
10729   ac_status=$?
10730   cat out/conftest.err >&5
10731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10733   then
10734     # The compiler can only warn and ignore the option if not recognized
10735     # So say no if there are warnings
10736     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10737     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10738     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10739       lt_cv_prog_compiler_c_o=yes
10740     fi
10741   fi
10742   chmod u+w . 2>&5
10743   $RM conftest*
10744   # SGI C++ compiler will create directory out/ii_files/ for
10745   # template instantiation
10746   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10747   $RM out/* && rmdir out
10748   cd ..
10749   $RM -r conftest
10750   $RM conftest*
10751
10752fi
10753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10754$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10755
10756
10757
10758
10759
10760
10761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10762$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10763if ${lt_cv_prog_compiler_c_o+:} false; then :
10764  $as_echo_n "(cached) " >&6
10765else
10766  lt_cv_prog_compiler_c_o=no
10767   $RM -r conftest 2>/dev/null
10768   mkdir conftest
10769   cd conftest
10770   mkdir out
10771   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10772
10773   lt_compiler_flag="-o out/conftest2.$ac_objext"
10774   # Insert the option either (1) after the last *FLAGS variable, or
10775   # (2) before a word containing "conftest.", or (3) at the end.
10776   # Note that $ac_compile itself does not contain backslashes and begins
10777   # with a dollar sign (not a hyphen), so the echo should work correctly.
10778   lt_compile=`echo "$ac_compile" | $SED \
10779   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10780   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10781   -e 's:$: $lt_compiler_flag:'`
10782   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10783   (eval "$lt_compile" 2>out/conftest.err)
10784   ac_status=$?
10785   cat out/conftest.err >&5
10786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10788   then
10789     # The compiler can only warn and ignore the option if not recognized
10790     # So say no if there are warnings
10791     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10792     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10793     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10794       lt_cv_prog_compiler_c_o=yes
10795     fi
10796   fi
10797   chmod u+w . 2>&5
10798   $RM conftest*
10799   # SGI C++ compiler will create directory out/ii_files/ for
10800   # template instantiation
10801   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10802   $RM out/* && rmdir out
10803   cd ..
10804   $RM -r conftest
10805   $RM conftest*
10806
10807fi
10808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10809$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10810
10811
10812
10813
10814hard_links=nottested
10815if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10816  # do not overwrite the value of need_locks provided by the user
10817  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10818$as_echo_n "checking if we can lock with hard links... " >&6; }
10819  hard_links=yes
10820  $RM conftest*
10821  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10822  touch conftest.a
10823  ln conftest.a conftest.b 2>&5 || hard_links=no
10824  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10825  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10826$as_echo "$hard_links" >&6; }
10827  if test no = "$hard_links"; then
10828    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10829$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10830    need_locks=warn
10831  fi
10832else
10833  need_locks=no
10834fi
10835
10836
10837
10838
10839
10840
10841  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10842$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10843
10844  runpath_var=
10845  allow_undefined_flag=
10846  always_export_symbols=no
10847  archive_cmds=
10848  archive_expsym_cmds=
10849  compiler_needs_object=no
10850  enable_shared_with_static_runtimes=no
10851  export_dynamic_flag_spec=
10852  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10853  hardcode_automatic=no
10854  hardcode_direct=no
10855  hardcode_direct_absolute=no
10856  hardcode_libdir_flag_spec=
10857  hardcode_libdir_separator=
10858  hardcode_minus_L=no
10859  hardcode_shlibpath_var=unsupported
10860  inherit_rpath=no
10861  link_all_deplibs=unknown
10862  module_cmds=
10863  module_expsym_cmds=
10864  old_archive_from_new_cmds=
10865  old_archive_from_expsyms_cmds=
10866  thread_safe_flag_spec=
10867  whole_archive_flag_spec=
10868  # include_expsyms should be a list of space-separated symbols to be *always*
10869  # included in the symbol list
10870  include_expsyms=
10871  # exclude_expsyms can be an extended regexp of symbols to exclude
10872  # it will be wrapped by ' (' and ')$', so one must not match beginning or
10873  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10874  # as well as any symbol that contains 'd'.
10875  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10876  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10877  # platforms (ab)use it in PIC code, but their linkers get confused if
10878  # the symbol is explicitly referenced.  Since portable code cannot
10879  # rely on this symbol name, it's probably fine to never include it in
10880  # preloaded symbol tables.
10881  # Exclude shared library initialization/finalization symbols.
10882  extract_expsyms_cmds=
10883
10884  case $host_os in
10885  cygwin* | mingw* | pw32* | cegcc*)
10886    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10887    # When not using gcc, we currently assume that we are using
10888    # Microsoft Visual C++.
10889    if test yes != "$GCC"; then
10890      with_gnu_ld=no
10891    fi
10892    ;;
10893  interix*)
10894    # we just hope/assume this is gcc and not c89 (= MSVC++)
10895    with_gnu_ld=yes
10896    ;;
10897  openbsd* | bitrig*)
10898    with_gnu_ld=no
10899    ;;
10900  linux* | k*bsd*-gnu | gnu*)
10901    link_all_deplibs=no
10902    ;;
10903  esac
10904
10905  ld_shlibs=yes
10906
10907  # On some targets, GNU ld is compatible enough with the native linker
10908  # that we're better off using the native interface for both.
10909  lt_use_gnu_ld_interface=no
10910  if test yes = "$with_gnu_ld"; then
10911    case $host_os in
10912      aix*)
10913	# The AIX port of GNU ld has always aspired to compatibility
10914	# with the native linker.  However, as the warning in the GNU ld
10915	# block says, versions before 2.19.5* couldn't really create working
10916	# shared libraries, regardless of the interface used.
10917	case `$LD -v 2>&1` in
10918	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10919	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10920	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10921	  *)
10922	    lt_use_gnu_ld_interface=yes
10923	    ;;
10924	esac
10925	;;
10926      *)
10927	lt_use_gnu_ld_interface=yes
10928	;;
10929    esac
10930  fi
10931
10932  if test yes = "$lt_use_gnu_ld_interface"; then
10933    # If archive_cmds runs LD, not CC, wlarc should be empty
10934    wlarc='$wl'
10935
10936    # Set some defaults for GNU ld with shared library support. These
10937    # are reset later if shared libraries are not supported. Putting them
10938    # here allows them to be overridden if necessary.
10939    runpath_var=LD_RUN_PATH
10940    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10941    export_dynamic_flag_spec='$wl--export-dynamic'
10942    # ancient GNU ld didn't support --whole-archive et. al.
10943    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10944      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10945    else
10946      whole_archive_flag_spec=
10947    fi
10948    supports_anon_versioning=no
10949    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10950      *GNU\ gold*) supports_anon_versioning=yes ;;
10951      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10952      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10953      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10954      *\ 2.11.*) ;; # other 2.11 versions
10955      *) supports_anon_versioning=yes ;;
10956    esac
10957
10958    # See if GNU ld supports shared libraries.
10959    case $host_os in
10960    aix[3-9]*)
10961      # On AIX/PPC, the GNU linker is very broken
10962      if test ia64 != "$host_cpu"; then
10963	ld_shlibs=no
10964	cat <<_LT_EOF 1>&2
10965
10966*** Warning: the GNU linker, at least up to release 2.19, is reported
10967*** to be unable to reliably create shared libraries on AIX.
10968*** Therefore, libtool is disabling shared libraries support.  If you
10969*** really care for shared libraries, you may want to install binutils
10970*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10971*** You will then need to restart the configuration process.
10972
10973_LT_EOF
10974      fi
10975      ;;
10976
10977    amigaos*)
10978      case $host_cpu in
10979      powerpc)
10980            # see comment about AmigaOS4 .so support
10981            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10982            archive_expsym_cmds=''
10983        ;;
10984      m68k)
10985            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)'
10986            hardcode_libdir_flag_spec='-L$libdir'
10987            hardcode_minus_L=yes
10988        ;;
10989      esac
10990      ;;
10991
10992    beos*)
10993      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10994	allow_undefined_flag=unsupported
10995	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10996	# support --undefined.  This deserves some investigation.  FIXME
10997	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10998      else
10999	ld_shlibs=no
11000      fi
11001      ;;
11002
11003    cygwin* | mingw* | pw32* | cegcc*)
11004      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11005      # as there is no search path for DLLs.
11006      hardcode_libdir_flag_spec='-L$libdir'
11007      export_dynamic_flag_spec='$wl--export-all-symbols'
11008      allow_undefined_flag=unsupported
11009      always_export_symbols=no
11010      enable_shared_with_static_runtimes=yes
11011      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'
11012      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
11013
11014      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11015        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11016	# If the export-symbols file already is a .def file, use it as
11017	# is; otherwise, prepend EXPORTS...
11018	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11019          cp $export_symbols $output_objdir/$soname.def;
11020        else
11021          echo EXPORTS > $output_objdir/$soname.def;
11022          cat $export_symbols >> $output_objdir/$soname.def;
11023        fi~
11024        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11025      else
11026	ld_shlibs=no
11027      fi
11028      ;;
11029
11030    haiku*)
11031      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11032      link_all_deplibs=yes
11033      ;;
11034
11035    os2*)
11036      hardcode_libdir_flag_spec='-L$libdir'
11037      hardcode_minus_L=yes
11038      allow_undefined_flag=unsupported
11039      shrext_cmds=.dll
11040      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11041	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11042	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11043	$ECHO EXPORTS >> $output_objdir/$libname.def~
11044	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11045	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11046	emximp -o $lib $output_objdir/$libname.def'
11047      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11048	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11049	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11050	$ECHO EXPORTS >> $output_objdir/$libname.def~
11051	prefix_cmds="$SED"~
11052	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11053	  prefix_cmds="$prefix_cmds -e 1d";
11054	fi~
11055	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11056	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11057	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11058	emximp -o $lib $output_objdir/$libname.def'
11059      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11060      enable_shared_with_static_runtimes=yes
11061      ;;
11062
11063    interix[3-9]*)
11064      hardcode_direct=no
11065      hardcode_shlibpath_var=no
11066      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11067      export_dynamic_flag_spec='$wl-E'
11068      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11069      # Instead, shared libraries are loaded at an image base (0x10000000 by
11070      # default) and relocated if they conflict, which is a slow very memory
11071      # consuming and fragmenting process.  To avoid this, we pick a random,
11072      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11073      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11074      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11075      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'
11076      ;;
11077
11078    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11079      tmp_diet=no
11080      if test linux-dietlibc = "$host_os"; then
11081	case $cc_basename in
11082	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
11083	esac
11084      fi
11085      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11086	 && test no = "$tmp_diet"
11087      then
11088	tmp_addflag=' $pic_flag'
11089	tmp_sharedflag='-shared'
11090	case $cc_basename,$host_cpu in
11091        pgcc*)				# Portland Group C compiler
11092	  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'
11093	  tmp_addflag=' $pic_flag'
11094	  ;;
11095	pgf77* | pgf90* | pgf95* | pgfortran*)
11096					# Portland Group f77 and f90 compilers
11097	  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'
11098	  tmp_addflag=' $pic_flag -Mnomain' ;;
11099	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
11100	  tmp_addflag=' -i_dynamic' ;;
11101	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
11102	  tmp_addflag=' -i_dynamic -nofor_main' ;;
11103	ifc* | ifort*)			# Intel Fortran compiler
11104	  tmp_addflag=' -nofor_main' ;;
11105	lf95*)				# Lahey Fortran 8.1
11106	  whole_archive_flag_spec=
11107	  tmp_sharedflag='--shared' ;;
11108        nagfor*)                        # NAGFOR 5.3
11109          tmp_sharedflag='-Wl,-shared' ;;
11110	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11111	  tmp_sharedflag='-qmkshrobj'
11112	  tmp_addflag= ;;
11113	nvcc*)	# Cuda Compiler Driver 2.2
11114	  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'
11115	  compiler_needs_object=yes
11116	  ;;
11117	esac
11118	case `$CC -V 2>&1 | sed 5q` in
11119	*Sun\ C*)			# Sun C 5.9
11120	  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'
11121	  compiler_needs_object=yes
11122	  tmp_sharedflag='-G' ;;
11123	*Sun\ F*)			# Sun Fortran 8.3
11124	  tmp_sharedflag='-G' ;;
11125	esac
11126	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11127
11128        if test yes = "$supports_anon_versioning"; then
11129          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11130            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11131            echo "local: *; };" >> $output_objdir/$libname.ver~
11132            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
11133        fi
11134
11135	case $cc_basename in
11136	tcc*)
11137	  export_dynamic_flag_spec='-rdynamic'
11138	  ;;
11139	xlf* | bgf* | bgxlf* | mpixlf*)
11140	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11141	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11142	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11143	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
11144	  if test yes = "$supports_anon_versioning"; then
11145	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11146              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11147              echo "local: *; };" >> $output_objdir/$libname.ver~
11148              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11149	  fi
11150	  ;;
11151	esac
11152      else
11153        ld_shlibs=no
11154      fi
11155      ;;
11156
11157    netbsd* | netbsdelf*-gnu)
11158      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11159	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11160	wlarc=
11161      else
11162	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11163	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11164      fi
11165      ;;
11166
11167    solaris*)
11168      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11169	ld_shlibs=no
11170	cat <<_LT_EOF 1>&2
11171
11172*** Warning: The releases 2.8.* of the GNU linker cannot reliably
11173*** create shared libraries on Solaris systems.  Therefore, libtool
11174*** is disabling shared libraries support.  We urge you to upgrade GNU
11175*** binutils to release 2.9.1 or newer.  Another option is to modify
11176*** your PATH or compiler configuration so that the native linker is
11177*** used, and then restart.
11178
11179_LT_EOF
11180      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11181	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11182	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11183      else
11184	ld_shlibs=no
11185      fi
11186      ;;
11187
11188    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11189      case `$LD -v 2>&1` in
11190        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11191	ld_shlibs=no
11192	cat <<_LT_EOF 1>&2
11193
11194*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
11195*** reliably create shared libraries on SCO systems.  Therefore, libtool
11196*** is disabling shared libraries support.  We urge you to upgrade GNU
11197*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11198*** your PATH or compiler configuration so that the native linker is
11199*** used, and then restart.
11200
11201_LT_EOF
11202	;;
11203	*)
11204	  # For security reasons, it is highly recommended that you always
11205	  # use absolute paths for naming shared libraries, and exclude the
11206	  # DT_RUNPATH tag from executables and libraries.  But doing so
11207	  # requires that you compile everything twice, which is a pain.
11208	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11209	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11210	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11211	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11212	  else
11213	    ld_shlibs=no
11214	  fi
11215	;;
11216      esac
11217      ;;
11218
11219    sunos4*)
11220      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11221      wlarc=
11222      hardcode_direct=yes
11223      hardcode_shlibpath_var=no
11224      ;;
11225
11226    *)
11227      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11228	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11229	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
11230      else
11231	ld_shlibs=no
11232      fi
11233      ;;
11234    esac
11235
11236    if test no = "$ld_shlibs"; then
11237      runpath_var=
11238      hardcode_libdir_flag_spec=
11239      export_dynamic_flag_spec=
11240      whole_archive_flag_spec=
11241    fi
11242  else
11243    # PORTME fill in a description of your system's linker (not GNU ld)
11244    case $host_os in
11245    aix3*)
11246      allow_undefined_flag=unsupported
11247      always_export_symbols=yes
11248      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'
11249      # Note: this linker hardcodes the directories in LIBPATH if there
11250      # are no directories specified by -L.
11251      hardcode_minus_L=yes
11252      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
11253	# Neither direct hardcoding nor static linking is supported with a
11254	# broken collect2.
11255	hardcode_direct=unsupported
11256      fi
11257      ;;
11258
11259    aix[4-9]*)
11260      if test ia64 = "$host_cpu"; then
11261	# On IA64, the linker does run time linking by default, so we don't
11262	# have to do anything special.
11263	aix_use_runtimelinking=no
11264	exp_sym_flag='-Bexport'
11265	no_entry_flag=
11266      else
11267	# If we're using GNU nm, then we don't want the "-C" option.
11268	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
11269	# Without the "-l" option, or with the "-B" option, AIX nm treats
11270	# weak defined symbols like other global defined symbols, whereas
11271	# GNU nm marks them as "W".
11272	# While the 'weak' keyword is ignored in the Export File, we need
11273	# it in the Import File for the 'aix-soname' feature, so we have
11274	# to replace the "-B" option with "-P" for AIX nm.
11275	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11276	  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'
11277	else
11278	  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'
11279	fi
11280	aix_use_runtimelinking=no
11281
11282	# Test if we are trying to use run time linking or normal
11283	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284	# have runtime linking enabled, and use it for executables.
11285	# For shared libraries, we enable/disable runtime linking
11286	# depending on the kind of the shared library created -
11287	# when "with_aix_soname,aix_use_runtimelinking" is:
11288	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
11289	# "aix,yes"  lib.so          shared, rtl:yes, for executables
11290	#            lib.a           static archive
11291	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
11292	#            lib.a(lib.so.V) shared, rtl:no,  for executables
11293	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
11294	#            lib.a(lib.so.V) shared, rtl:no
11295	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
11296	#            lib.a           static archive
11297	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11298	  for ld_flag in $LDFLAGS; do
11299	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
11300	    aix_use_runtimelinking=yes
11301	    break
11302	  fi
11303	  done
11304	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
11305	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
11306	    # so we don't have lib.a shared libs to link our executables.
11307	    # We have to force runtime linking in this case.
11308	    aix_use_runtimelinking=yes
11309	    LDFLAGS="$LDFLAGS -Wl,-brtl"
11310	  fi
11311	  ;;
11312	esac
11313
11314	exp_sym_flag='-bexport'
11315	no_entry_flag='-bnoentry'
11316      fi
11317
11318      # When large executables or shared objects are built, AIX ld can
11319      # have problems creating the table of contents.  If linking a library
11320      # or program results in "error TOC overflow" add -mminimal-toc to
11321      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11322      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11323
11324      archive_cmds=''
11325      hardcode_direct=yes
11326      hardcode_direct_absolute=yes
11327      hardcode_libdir_separator=':'
11328      link_all_deplibs=yes
11329      file_list_spec='$wl-f,'
11330      case $with_aix_soname,$aix_use_runtimelinking in
11331      aix,*) ;; # traditional, no import file
11332      svr4,* | *,yes) # use import file
11333	# The Import File defines what to hardcode.
11334	hardcode_direct=no
11335	hardcode_direct_absolute=no
11336	;;
11337      esac
11338
11339      if test yes = "$GCC"; then
11340	case $host_os in aix4.[012]|aix4.[012].*)
11341	# We only want to do this on AIX 4.2 and lower, the check
11342	# below for broken collect2 doesn't work under 4.3+
11343	  collect2name=`$CC -print-prog-name=collect2`
11344	  if test -f "$collect2name" &&
11345	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11346	  then
11347	  # We have reworked collect2
11348	  :
11349	  else
11350	  # We have old collect2
11351	  hardcode_direct=unsupported
11352	  # It fails to find uninstalled libraries when the uninstalled
11353	  # path is not listed in the libpath.  Setting hardcode_minus_L
11354	  # to unsupported forces relinking
11355	  hardcode_minus_L=yes
11356	  hardcode_libdir_flag_spec='-L$libdir'
11357	  hardcode_libdir_separator=
11358	  fi
11359	  ;;
11360	esac
11361	shared_flag='-shared'
11362	if test yes = "$aix_use_runtimelinking"; then
11363	  shared_flag="$shared_flag "'$wl-G'
11364	fi
11365	# Need to ensure runtime linking is disabled for the traditional
11366	# shared library, or the linker may eventually find shared libraries
11367	# /with/ Import File - we do not want to mix them.
11368	shared_flag_aix='-shared'
11369	shared_flag_svr4='-shared $wl-G'
11370      else
11371	# not using gcc
11372	if test ia64 = "$host_cpu"; then
11373	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11374	# chokes on -Wl,-G. The following line is correct:
11375	  shared_flag='-G'
11376	else
11377	  if test yes = "$aix_use_runtimelinking"; then
11378	    shared_flag='$wl-G'
11379	  else
11380	    shared_flag='$wl-bM:SRE'
11381	  fi
11382	  shared_flag_aix='$wl-bM:SRE'
11383	  shared_flag_svr4='$wl-G'
11384	fi
11385      fi
11386
11387      export_dynamic_flag_spec='$wl-bexpall'
11388      # It seems that -bexpall does not export symbols beginning with
11389      # underscore (_), so it is better to generate a list of symbols to export.
11390      always_export_symbols=yes
11391      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
11392	# Warning - without using the other runtime loading flags (-brtl),
11393	# -berok will link without error, but may produce a broken library.
11394	allow_undefined_flag='-berok'
11395        # Determine the default libpath from the value encoded in an
11396        # empty executable.
11397        if test set = "${lt_cv_aix_libpath+set}"; then
11398  aix_libpath=$lt_cv_aix_libpath
11399else
11400  if ${lt_cv_aix_libpath_+:} false; then :
11401  $as_echo_n "(cached) " >&6
11402else
11403  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404/* end confdefs.h.  */
11405
11406int
11407main ()
11408{
11409
11410  ;
11411  return 0;
11412}
11413_ACEOF
11414if ac_fn_c_try_link "$LINENO"; then :
11415
11416  lt_aix_libpath_sed='
11417      /Import File Strings/,/^$/ {
11418	  /^0/ {
11419	      s/^0  *\([^ ]*\) *$/\1/
11420	      p
11421	  }
11422      }'
11423  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11424  # Check for a 64-bit object if we didn't find anything.
11425  if test -z "$lt_cv_aix_libpath_"; then
11426    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11427  fi
11428fi
11429rm -f core conftest.err conftest.$ac_objext \
11430    conftest$ac_exeext conftest.$ac_ext
11431  if test -z "$lt_cv_aix_libpath_"; then
11432    lt_cv_aix_libpath_=/usr/lib:/lib
11433  fi
11434
11435fi
11436
11437  aix_libpath=$lt_cv_aix_libpath_
11438fi
11439
11440        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11441        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
11442      else
11443	if test ia64 = "$host_cpu"; then
11444	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
11445	  allow_undefined_flag="-z nodefs"
11446	  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"
11447	else
11448	 # Determine the default libpath from the value encoded in an
11449	 # empty executable.
11450	 if test set = "${lt_cv_aix_libpath+set}"; then
11451  aix_libpath=$lt_cv_aix_libpath
11452else
11453  if ${lt_cv_aix_libpath_+:} false; then :
11454  $as_echo_n "(cached) " >&6
11455else
11456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11457/* end confdefs.h.  */
11458
11459int
11460main ()
11461{
11462
11463  ;
11464  return 0;
11465}
11466_ACEOF
11467if ac_fn_c_try_link "$LINENO"; then :
11468
11469  lt_aix_libpath_sed='
11470      /Import File Strings/,/^$/ {
11471	  /^0/ {
11472	      s/^0  *\([^ ]*\) *$/\1/
11473	      p
11474	  }
11475      }'
11476  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11477  # Check for a 64-bit object if we didn't find anything.
11478  if test -z "$lt_cv_aix_libpath_"; then
11479    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11480  fi
11481fi
11482rm -f core conftest.err conftest.$ac_objext \
11483    conftest$ac_exeext conftest.$ac_ext
11484  if test -z "$lt_cv_aix_libpath_"; then
11485    lt_cv_aix_libpath_=/usr/lib:/lib
11486  fi
11487
11488fi
11489
11490  aix_libpath=$lt_cv_aix_libpath_
11491fi
11492
11493	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
11494	  # Warning - without using the other run time loading flags,
11495	  # -berok will link without error, but may produce a broken library.
11496	  no_undefined_flag=' $wl-bernotok'
11497	  allow_undefined_flag=' $wl-berok'
11498	  if test yes = "$with_gnu_ld"; then
11499	    # We only use this code for GNU lds that support --whole-archive.
11500	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
11501	  else
11502	    # Exported symbols can be pulled into shared objects from archives
11503	    whole_archive_flag_spec='$convenience'
11504	  fi
11505	  archive_cmds_need_lc=yes
11506	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11507	  # -brtl affects multiple linker settings, -berok does not and is overridden later
11508	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11509	  if test svr4 != "$with_aix_soname"; then
11510	    # This is similar to how AIX traditionally builds its shared libraries.
11511	    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'
11512	  fi
11513	  if test aix != "$with_aix_soname"; then
11514	    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'
11515	  else
11516	    # used by -dlpreopen to get the symbols
11517	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11518	  fi
11519	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11520	fi
11521      fi
11522      ;;
11523
11524    amigaos*)
11525      case $host_cpu in
11526      powerpc)
11527            # see comment about AmigaOS4 .so support
11528            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11529            archive_expsym_cmds=''
11530        ;;
11531      m68k)
11532            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)'
11533            hardcode_libdir_flag_spec='-L$libdir'
11534            hardcode_minus_L=yes
11535        ;;
11536      esac
11537      ;;
11538
11539    bsdi[45]*)
11540      export_dynamic_flag_spec=-rdynamic
11541      ;;
11542
11543    cygwin* | mingw* | pw32* | cegcc*)
11544      # When not using gcc, we currently assume that we are using
11545      # Microsoft Visual C++.
11546      # hardcode_libdir_flag_spec is actually meaningless, as there is
11547      # no search path for DLLs.
11548      case $cc_basename in
11549      cl*)
11550	# Native MSVC
11551	hardcode_libdir_flag_spec=' '
11552	allow_undefined_flag=unsupported
11553	always_export_symbols=yes
11554	file_list_spec='@'
11555	# Tell ltmain to make .lib files, not .a files.
11556	libext=lib
11557	# Tell ltmain to make .dll files, not .so files.
11558	shrext_cmds=.dll
11559	# FIXME: Setting linknames here is a bad hack.
11560	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11561	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11562            cp "$export_symbols" "$output_objdir/$soname.def";
11563            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11564          else
11565            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11566          fi~
11567          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11568          linknames='
11569	# The linker will not automatically build a static lib if we build a DLL.
11570	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11571	enable_shared_with_static_runtimes=yes
11572	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11573	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11574	# Don't use ranlib
11575	old_postinstall_cmds='chmod 644 $oldlib'
11576	postlink_cmds='lt_outputfile="@OUTPUT@"~
11577          lt_tool_outputfile="@TOOL_OUTPUT@"~
11578          case $lt_outputfile in
11579            *.exe|*.EXE) ;;
11580            *)
11581              lt_outputfile=$lt_outputfile.exe
11582              lt_tool_outputfile=$lt_tool_outputfile.exe
11583              ;;
11584          esac~
11585          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11586            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11587            $RM "$lt_outputfile.manifest";
11588          fi'
11589	;;
11590      *)
11591	# Assume MSVC wrapper
11592	hardcode_libdir_flag_spec=' '
11593	allow_undefined_flag=unsupported
11594	# Tell ltmain to make .lib files, not .a files.
11595	libext=lib
11596	# Tell ltmain to make .dll files, not .so files.
11597	shrext_cmds=.dll
11598	# FIXME: Setting linknames here is a bad hack.
11599	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11600	# The linker will automatically build a .lib file if we build a DLL.
11601	old_archive_from_new_cmds='true'
11602	# FIXME: Should let the user specify the lib program.
11603	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11604	enable_shared_with_static_runtimes=yes
11605	;;
11606      esac
11607      ;;
11608
11609    darwin* | rhapsody*)
11610
11611
11612  archive_cmds_need_lc=no
11613  hardcode_direct=no
11614  hardcode_automatic=yes
11615  hardcode_shlibpath_var=unsupported
11616  if test yes = "$lt_cv_ld_force_load"; then
11617    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\"`'
11618
11619  else
11620    whole_archive_flag_spec=''
11621  fi
11622  link_all_deplibs=yes
11623  allow_undefined_flag=$_lt_dar_allow_undefined
11624  case $cc_basename in
11625     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11626     *) _lt_dar_can_shared=$GCC ;;
11627  esac
11628  if test yes = "$_lt_dar_can_shared"; then
11629    output_verbose_link_cmd=func_echo_all
11630    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11631    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11632    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"
11633    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"
11634
11635  else
11636  ld_shlibs=no
11637  fi
11638
11639      ;;
11640
11641    dgux*)
11642      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11643      hardcode_libdir_flag_spec='-L$libdir'
11644      hardcode_shlibpath_var=no
11645      ;;
11646
11647    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11648    # support.  Future versions do this automatically, but an explicit c++rt0.o
11649    # does not break anything, and helps significantly (at the cost of a little
11650    # extra space).
11651    freebsd2.2*)
11652      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11653      hardcode_libdir_flag_spec='-R$libdir'
11654      hardcode_direct=yes
11655      hardcode_shlibpath_var=no
11656      ;;
11657
11658    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11659    freebsd2.*)
11660      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11661      hardcode_direct=yes
11662      hardcode_minus_L=yes
11663      hardcode_shlibpath_var=no
11664      ;;
11665
11666    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11667    freebsd* | dragonfly*)
11668      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11669      hardcode_libdir_flag_spec='-R$libdir'
11670      hardcode_direct=yes
11671      hardcode_shlibpath_var=no
11672      ;;
11673
11674    hpux9*)
11675      if test yes = "$GCC"; then
11676	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'
11677      else
11678	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'
11679      fi
11680      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11681      hardcode_libdir_separator=:
11682      hardcode_direct=yes
11683
11684      # hardcode_minus_L: Not really in the search PATH,
11685      # but as the default location of the library.
11686      hardcode_minus_L=yes
11687      export_dynamic_flag_spec='$wl-E'
11688      ;;
11689
11690    hpux10*)
11691      if test yes,no = "$GCC,$with_gnu_ld"; then
11692	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11693      else
11694	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11695      fi
11696      if test no = "$with_gnu_ld"; then
11697	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11698	hardcode_libdir_separator=:
11699	hardcode_direct=yes
11700	hardcode_direct_absolute=yes
11701	export_dynamic_flag_spec='$wl-E'
11702	# hardcode_minus_L: Not really in the search PATH,
11703	# but as the default location of the library.
11704	hardcode_minus_L=yes
11705      fi
11706      ;;
11707
11708    hpux11*)
11709      if test yes,no = "$GCC,$with_gnu_ld"; then
11710	case $host_cpu in
11711	hppa*64*)
11712	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11713	  ;;
11714	ia64*)
11715	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11716	  ;;
11717	*)
11718	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11719	  ;;
11720	esac
11721      else
11722	case $host_cpu in
11723	hppa*64*)
11724	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11725	  ;;
11726	ia64*)
11727	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11728	  ;;
11729	*)
11730
11731	  # Older versions of the 11.00 compiler do not understand -b yet
11732	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11733	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11734$as_echo_n "checking if $CC understands -b... " >&6; }
11735if ${lt_cv_prog_compiler__b+:} false; then :
11736  $as_echo_n "(cached) " >&6
11737else
11738  lt_cv_prog_compiler__b=no
11739   save_LDFLAGS=$LDFLAGS
11740   LDFLAGS="$LDFLAGS -b"
11741   echo "$lt_simple_link_test_code" > conftest.$ac_ext
11742   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11743     # The linker can only warn and ignore the option if not recognized
11744     # So say no if there are warnings
11745     if test -s conftest.err; then
11746       # Append any errors to the config.log.
11747       cat conftest.err 1>&5
11748       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11749       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11750       if diff conftest.exp conftest.er2 >/dev/null; then
11751         lt_cv_prog_compiler__b=yes
11752       fi
11753     else
11754       lt_cv_prog_compiler__b=yes
11755     fi
11756   fi
11757   $RM -r conftest*
11758   LDFLAGS=$save_LDFLAGS
11759
11760fi
11761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11762$as_echo "$lt_cv_prog_compiler__b" >&6; }
11763
11764if test yes = "$lt_cv_prog_compiler__b"; then
11765    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11766else
11767    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11768fi
11769
11770	  ;;
11771	esac
11772      fi
11773      if test no = "$with_gnu_ld"; then
11774	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11775	hardcode_libdir_separator=:
11776
11777	case $host_cpu in
11778	hppa*64*|ia64*)
11779	  hardcode_direct=no
11780	  hardcode_shlibpath_var=no
11781	  ;;
11782	*)
11783	  hardcode_direct=yes
11784	  hardcode_direct_absolute=yes
11785	  export_dynamic_flag_spec='$wl-E'
11786
11787	  # hardcode_minus_L: Not really in the search PATH,
11788	  # but as the default location of the library.
11789	  hardcode_minus_L=yes
11790	  ;;
11791	esac
11792      fi
11793      ;;
11794
11795    irix5* | irix6* | nonstopux*)
11796      if test yes = "$GCC"; then
11797	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'
11798	# Try to use the -exported_symbol ld option, if it does not
11799	# work, assume that -exports_file does not work either and
11800	# implicitly export all symbols.
11801	# This should be the same for all languages, so no per-tag cache variable.
11802	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11803$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11804if ${lt_cv_irix_exported_symbol+:} false; then :
11805  $as_echo_n "(cached) " >&6
11806else
11807  save_LDFLAGS=$LDFLAGS
11808	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11809	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h.  */
11811int foo (void) { return 0; }
11812_ACEOF
11813if ac_fn_c_try_link "$LINENO"; then :
11814  lt_cv_irix_exported_symbol=yes
11815else
11816  lt_cv_irix_exported_symbol=no
11817fi
11818rm -f core conftest.err conftest.$ac_objext \
11819    conftest$ac_exeext conftest.$ac_ext
11820           LDFLAGS=$save_LDFLAGS
11821fi
11822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11823$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11824	if test yes = "$lt_cv_irix_exported_symbol"; then
11825          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'
11826	fi
11827	link_all_deplibs=no
11828      else
11829	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'
11830	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'
11831      fi
11832      archive_cmds_need_lc='no'
11833      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11834      hardcode_libdir_separator=:
11835      inherit_rpath=yes
11836      link_all_deplibs=yes
11837      ;;
11838
11839    linux*)
11840      case $cc_basename in
11841      tcc*)
11842	# Fabrice Bellard et al's Tiny C Compiler
11843	ld_shlibs=yes
11844	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11845	;;
11846      esac
11847      ;;
11848
11849    netbsd* | netbsdelf*-gnu)
11850      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11851	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11852      else
11853	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11854      fi
11855      hardcode_libdir_flag_spec='-R$libdir'
11856      hardcode_direct=yes
11857      hardcode_shlibpath_var=no
11858      ;;
11859
11860    newsos6)
11861      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11862      hardcode_direct=yes
11863      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11864      hardcode_libdir_separator=:
11865      hardcode_shlibpath_var=no
11866      ;;
11867
11868    *nto* | *qnx*)
11869      ;;
11870
11871    openbsd* | bitrig*)
11872      if test -f /usr/libexec/ld.so; then
11873	hardcode_direct=yes
11874	hardcode_shlibpath_var=no
11875	hardcode_direct_absolute=yes
11876	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11877	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11878	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11879	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11880	  export_dynamic_flag_spec='$wl-E'
11881	else
11882	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11883	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11884	fi
11885      else
11886	ld_shlibs=no
11887      fi
11888      ;;
11889
11890    os2*)
11891      hardcode_libdir_flag_spec='-L$libdir'
11892      hardcode_minus_L=yes
11893      allow_undefined_flag=unsupported
11894      shrext_cmds=.dll
11895      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11896	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11897	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11898	$ECHO EXPORTS >> $output_objdir/$libname.def~
11899	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11900	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11901	emximp -o $lib $output_objdir/$libname.def'
11902      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11903	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11904	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11905	$ECHO EXPORTS >> $output_objdir/$libname.def~
11906	prefix_cmds="$SED"~
11907	if test EXPORTS = "`$SED 1q $export_symbols`"; then
11908	  prefix_cmds="$prefix_cmds -e 1d";
11909	fi~
11910	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11911	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11912	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11913	emximp -o $lib $output_objdir/$libname.def'
11914      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11915      enable_shared_with_static_runtimes=yes
11916      ;;
11917
11918    osf3*)
11919      if test yes = "$GCC"; then
11920	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11921	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'
11922      else
11923	allow_undefined_flag=' -expect_unresolved \*'
11924	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'
11925      fi
11926      archive_cmds_need_lc='no'
11927      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11928      hardcode_libdir_separator=:
11929      ;;
11930
11931    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11932      if test yes = "$GCC"; then
11933	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11934	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'
11935	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11936      else
11937	allow_undefined_flag=' -expect_unresolved \*'
11938	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'
11939	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~
11940          $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'
11941
11942	# Both c and cxx compiler support -rpath directly
11943	hardcode_libdir_flag_spec='-rpath $libdir'
11944      fi
11945      archive_cmds_need_lc='no'
11946      hardcode_libdir_separator=:
11947      ;;
11948
11949    solaris*)
11950      no_undefined_flag=' -z defs'
11951      if test yes = "$GCC"; then
11952	wlarc='$wl'
11953	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11954	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11955          $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'
11956      else
11957	case `$CC -V 2>&1` in
11958	*"Compilers 5.0"*)
11959	  wlarc=''
11960	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11961	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11962            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11963	  ;;
11964	*)
11965	  wlarc='$wl'
11966	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11967	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11968            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11969	  ;;
11970	esac
11971      fi
11972      hardcode_libdir_flag_spec='-R$libdir'
11973      hardcode_shlibpath_var=no
11974      case $host_os in
11975      solaris2.[0-5] | solaris2.[0-5].*) ;;
11976      *)
11977	# The compiler driver will combine and reorder linker options,
11978	# but understands '-z linker_flag'.  GCC discards it without '$wl',
11979	# but is careful enough not to reorder.
11980	# Supported since Solaris 2.6 (maybe 2.5.1?)
11981	if test yes = "$GCC"; then
11982	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11983	else
11984	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11985	fi
11986	;;
11987      esac
11988      link_all_deplibs=yes
11989      ;;
11990
11991    sunos4*)
11992      if test sequent = "$host_vendor"; then
11993	# Use $CC to link under sequent, because it throws in some extra .o
11994	# files that make .init and .fini sections work.
11995	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11996      else
11997	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11998      fi
11999      hardcode_libdir_flag_spec='-L$libdir'
12000      hardcode_direct=yes
12001      hardcode_minus_L=yes
12002      hardcode_shlibpath_var=no
12003      ;;
12004
12005    sysv4)
12006      case $host_vendor in
12007	sni)
12008	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12009	  hardcode_direct=yes # is this really true???
12010	;;
12011	siemens)
12012	  ## LD is ld it makes a PLAMLIB
12013	  ## CC just makes a GrossModule.
12014	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12015	  reload_cmds='$CC -r -o $output$reload_objs'
12016	  hardcode_direct=no
12017        ;;
12018	motorola)
12019	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12020	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12021	;;
12022      esac
12023      runpath_var='LD_RUN_PATH'
12024      hardcode_shlibpath_var=no
12025      ;;
12026
12027    sysv4.3*)
12028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12029      hardcode_shlibpath_var=no
12030      export_dynamic_flag_spec='-Bexport'
12031      ;;
12032
12033    sysv4*MP*)
12034      if test -d /usr/nec; then
12035	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12036	hardcode_shlibpath_var=no
12037	runpath_var=LD_RUN_PATH
12038	hardcode_runpath_var=yes
12039	ld_shlibs=yes
12040      fi
12041      ;;
12042
12043    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12044      no_undefined_flag='$wl-z,text'
12045      archive_cmds_need_lc=no
12046      hardcode_shlibpath_var=no
12047      runpath_var='LD_RUN_PATH'
12048
12049      if test yes = "$GCC"; then
12050	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12051	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12052      else
12053	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12054	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12055      fi
12056      ;;
12057
12058    sysv5* | sco3.2v5* | sco5v6*)
12059      # Note: We CANNOT use -z defs as we might desire, because we do not
12060      # link with -lc, and that would cause any symbols used from libc to
12061      # always be unresolved, which means just about no library would
12062      # ever link correctly.  If we're not using GNU ld we use -z text
12063      # though, which does catch some bad symbols but isn't as heavy-handed
12064      # as -z defs.
12065      no_undefined_flag='$wl-z,text'
12066      allow_undefined_flag='$wl-z,nodefs'
12067      archive_cmds_need_lc=no
12068      hardcode_shlibpath_var=no
12069      hardcode_libdir_flag_spec='$wl-R,$libdir'
12070      hardcode_libdir_separator=':'
12071      link_all_deplibs=yes
12072      export_dynamic_flag_spec='$wl-Bexport'
12073      runpath_var='LD_RUN_PATH'
12074
12075      if test yes = "$GCC"; then
12076	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12077	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12078      else
12079	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12080	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12081      fi
12082      ;;
12083
12084    uts4*)
12085      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12086      hardcode_libdir_flag_spec='-L$libdir'
12087      hardcode_shlibpath_var=no
12088      ;;
12089
12090    *)
12091      ld_shlibs=no
12092      ;;
12093    esac
12094
12095    if test sni = "$host_vendor"; then
12096      case $host in
12097      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12098	export_dynamic_flag_spec='$wl-Blargedynsym'
12099	;;
12100      esac
12101    fi
12102  fi
12103
12104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12105$as_echo "$ld_shlibs" >&6; }
12106test no = "$ld_shlibs" && can_build_shared=no
12107
12108with_gnu_ld=$with_gnu_ld
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124#
12125# Do we need to explicitly link libc?
12126#
12127case "x$archive_cmds_need_lc" in
12128x|xyes)
12129  # Assume -lc should be added
12130  archive_cmds_need_lc=yes
12131
12132  if test yes,yes = "$GCC,$enable_shared"; then
12133    case $archive_cmds in
12134    *'~'*)
12135      # FIXME: we may have to deal with multi-command sequences.
12136      ;;
12137    '$CC '*)
12138      # Test whether the compiler implicitly links with -lc since on some
12139      # systems, -lgcc has to come before -lc. If gcc already passes -lc
12140      # to ld, don't add -lc before -lgcc.
12141      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12142$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12143if ${lt_cv_archive_cmds_need_lc+:} false; then :
12144  $as_echo_n "(cached) " >&6
12145else
12146  $RM conftest*
12147	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12148
12149	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12150  (eval $ac_compile) 2>&5
12151  ac_status=$?
12152  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12153  test $ac_status = 0; } 2>conftest.err; then
12154	  soname=conftest
12155	  lib=conftest
12156	  libobjs=conftest.$ac_objext
12157	  deplibs=
12158	  wl=$lt_prog_compiler_wl
12159	  pic_flag=$lt_prog_compiler_pic
12160	  compiler_flags=-v
12161	  linker_flags=-v
12162	  verstring=
12163	  output_objdir=.
12164	  libname=conftest
12165	  lt_save_allow_undefined_flag=$allow_undefined_flag
12166	  allow_undefined_flag=
12167	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12168  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12169  ac_status=$?
12170  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12171  test $ac_status = 0; }
12172	  then
12173	    lt_cv_archive_cmds_need_lc=no
12174	  else
12175	    lt_cv_archive_cmds_need_lc=yes
12176	  fi
12177	  allow_undefined_flag=$lt_save_allow_undefined_flag
12178	else
12179	  cat conftest.err 1>&5
12180	fi
12181	$RM conftest*
12182
12183fi
12184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12185$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12186      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12187      ;;
12188    esac
12189  fi
12190  ;;
12191esac
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12345$as_echo_n "checking dynamic linker characteristics... " >&6; }
12346
12347if test yes = "$GCC"; then
12348  case $host_os in
12349    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
12350    *) lt_awk_arg='/^libraries:/' ;;
12351  esac
12352  case $host_os in
12353    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
12354    *) lt_sed_strip_eq='s|=/|/|g' ;;
12355  esac
12356  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12357  case $lt_search_path_spec in
12358  *\;*)
12359    # if the path contains ";" then we assume it to be the separator
12360    # otherwise default to the standard path separator (i.e. ":") - it is
12361    # assumed that no part of a normal pathname contains ";" but that should
12362    # okay in the real world where ";" in dirpaths is itself problematic.
12363    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12364    ;;
12365  *)
12366    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12367    ;;
12368  esac
12369  # Ok, now we have the path, separated by spaces, we can step through it
12370  # and add multilib dir if necessary...
12371  lt_tmp_lt_search_path_spec=
12372  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12373  # ...but if some path component already ends with the multilib dir we assume
12374  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
12375  case "$lt_multi_os_dir; $lt_search_path_spec " in
12376  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
12377    lt_multi_os_dir=
12378    ;;
12379  esac
12380  for lt_sys_path in $lt_search_path_spec; do
12381    if test -d "$lt_sys_path$lt_multi_os_dir"; then
12382      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
12383    elif test -n "$lt_multi_os_dir"; then
12384      test -d "$lt_sys_path" && \
12385	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12386    fi
12387  done
12388  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12389BEGIN {RS = " "; FS = "/|\n";} {
12390  lt_foo = "";
12391  lt_count = 0;
12392  for (lt_i = NF; lt_i > 0; lt_i--) {
12393    if ($lt_i != "" && $lt_i != ".") {
12394      if ($lt_i == "..") {
12395        lt_count++;
12396      } else {
12397        if (lt_count == 0) {
12398          lt_foo = "/" $lt_i lt_foo;
12399        } else {
12400          lt_count--;
12401        }
12402      }
12403    }
12404  }
12405  if (lt_foo != "") { lt_freq[lt_foo]++; }
12406  if (lt_freq[lt_foo] == 1) { print lt_foo; }
12407}'`
12408  # AWK program above erroneously prepends '/' to C:/dos/paths
12409  # for these hosts.
12410  case $host_os in
12411    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12412      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
12413  esac
12414  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12415else
12416  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12417fi
12418library_names_spec=
12419libname_spec='lib$name'
12420soname_spec=
12421shrext_cmds=.so
12422postinstall_cmds=
12423postuninstall_cmds=
12424finish_cmds=
12425finish_eval=
12426shlibpath_var=
12427shlibpath_overrides_runpath=unknown
12428version_type=none
12429dynamic_linker="$host_os ld.so"
12430sys_lib_dlsearch_path_spec="/lib /usr/lib"
12431need_lib_prefix=unknown
12432hardcode_into_libs=no
12433
12434# when you set need_version to no, make sure it does not cause -set_version
12435# flags to be left without arguments
12436need_version=unknown
12437
12438
12439
12440case $host_os in
12441aix3*)
12442  version_type=linux # correct to gnu/linux during the next big refactor
12443  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
12444  shlibpath_var=LIBPATH
12445
12446  # AIX 3 has no versioning support, so we append a major version to the name.
12447  soname_spec='$libname$release$shared_ext$major'
12448  ;;
12449
12450aix[4-9]*)
12451  version_type=linux # correct to gnu/linux during the next big refactor
12452  need_lib_prefix=no
12453  need_version=no
12454  hardcode_into_libs=yes
12455  if test ia64 = "$host_cpu"; then
12456    # AIX 5 supports IA64
12457    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
12458    shlibpath_var=LD_LIBRARY_PATH
12459  else
12460    # With GCC up to 2.95.x, collect2 would create an import file
12461    # for dependence libraries.  The import file would start with
12462    # the line '#! .'.  This would cause the generated library to
12463    # depend on '.', always an invalid library.  This was fixed in
12464    # development snapshots of GCC prior to 3.0.
12465    case $host_os in
12466      aix4 | aix4.[01] | aix4.[01].*)
12467      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12468	   echo ' yes '
12469	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
12470	:
12471      else
12472	can_build_shared=no
12473      fi
12474      ;;
12475    esac
12476    # Using Import Files as archive members, it is possible to support
12477    # filename-based versioning of shared library archives on AIX. While
12478    # this would work for both with and without runtime linking, it will
12479    # prevent static linking of such archives. So we do filename-based
12480    # shared library versioning with .so extension only, which is used
12481    # when both runtime linking and shared linking is enabled.
12482    # Unfortunately, runtime linking may impact performance, so we do
12483    # not want this to be the default eventually. Also, we use the
12484    # versioned .so libs for executables only if there is the -brtl
12485    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
12486    # To allow for filename-based versioning support, we need to create
12487    # libNAME.so.V as an archive file, containing:
12488    # *) an Import File, referring to the versioned filename of the
12489    #    archive as well as the shared archive member, telling the
12490    #    bitwidth (32 or 64) of that shared object, and providing the
12491    #    list of exported symbols of that shared object, eventually
12492    #    decorated with the 'weak' keyword
12493    # *) the shared object with the F_LOADONLY flag set, to really avoid
12494    #    it being seen by the linker.
12495    # At run time we better use the real file rather than another symlink,
12496    # but for link time we create the symlink libNAME.so -> libNAME.so.V
12497
12498    case $with_aix_soname,$aix_use_runtimelinking in
12499    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
12500    # soname into executable. Probably we can add versioning support to
12501    # collect2, so additional links can be useful in future.
12502    aix,yes) # traditional libtool
12503      dynamic_linker='AIX unversionable lib.so'
12504      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12505      # instead of lib<name>.a to let people know that these are not
12506      # typical AIX shared libraries.
12507      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12508      ;;
12509    aix,no) # traditional AIX only
12510      dynamic_linker='AIX lib.a(lib.so.V)'
12511      # We preserve .a as extension for shared libraries through AIX4.2
12512      # and later when we are not doing run time linking.
12513      library_names_spec='$libname$release.a $libname.a'
12514      soname_spec='$libname$release$shared_ext$major'
12515      ;;
12516    svr4,*) # full svr4 only
12517      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12518      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12519      # We do not specify a path in Import Files, so LIBPATH fires.
12520      shlibpath_overrides_runpath=yes
12521      ;;
12522    *,yes) # both, prefer svr4
12523      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12524      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12525      # unpreferred sharedlib libNAME.a needs extra handling
12526      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"'
12527      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"'
12528      # We do not specify a path in Import Files, so LIBPATH fires.
12529      shlibpath_overrides_runpath=yes
12530      ;;
12531    *,no) # both, prefer aix
12532      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12533      library_names_spec='$libname$release.a $libname.a'
12534      soname_spec='$libname$release$shared_ext$major'
12535      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12536      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)'
12537      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"'
12538      ;;
12539    esac
12540    shlibpath_var=LIBPATH
12541  fi
12542  ;;
12543
12544amigaos*)
12545  case $host_cpu in
12546  powerpc)
12547    # Since July 2007 AmigaOS4 officially supports .so libraries.
12548    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12549    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12550    ;;
12551  m68k)
12552    library_names_spec='$libname.ixlibrary $libname.a'
12553    # Create ${libname}_ixlibrary.a entries in /sys/libs.
12554    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'
12555    ;;
12556  esac
12557  ;;
12558
12559beos*)
12560  library_names_spec='$libname$shared_ext'
12561  dynamic_linker="$host_os ld.so"
12562  shlibpath_var=LIBRARY_PATH
12563  ;;
12564
12565bsdi[45]*)
12566  version_type=linux # correct to gnu/linux during the next big refactor
12567  need_version=no
12568  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12569  soname_spec='$libname$release$shared_ext$major'
12570  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12571  shlibpath_var=LD_LIBRARY_PATH
12572  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12573  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12574  # the default ld.so.conf also contains /usr/contrib/lib and
12575  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12576  # libtool to hard-code these into programs
12577  ;;
12578
12579cygwin* | mingw* | pw32* | cegcc*)
12580  version_type=windows
12581  shrext_cmds=.dll
12582  need_version=no
12583  need_lib_prefix=no
12584
12585  case $GCC,$cc_basename in
12586  yes,*)
12587    # gcc
12588    library_names_spec='$libname.dll.a'
12589    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12590    postinstall_cmds='base_file=`basename \$file`~
12591      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12592      dldir=$destdir/`dirname \$dlpath`~
12593      test -d \$dldir || mkdir -p \$dldir~
12594      $install_prog $dir/$dlname \$dldir/$dlname~
12595      chmod a+x \$dldir/$dlname~
12596      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12597        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12598      fi'
12599    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12600      dlpath=$dir/\$dldll~
12601       $RM \$dlpath'
12602    shlibpath_overrides_runpath=yes
12603
12604    case $host_os in
12605    cygwin*)
12606      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12607      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12608
12609      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12610      ;;
12611    mingw* | cegcc*)
12612      # MinGW DLLs use traditional 'lib' prefix
12613      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12614      ;;
12615    pw32*)
12616      # pw32 DLLs use 'pw' prefix rather than 'lib'
12617      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12618      ;;
12619    esac
12620    dynamic_linker='Win32 ld.exe'
12621    ;;
12622
12623  *,cl*)
12624    # Native MSVC
12625    libname_spec='$name'
12626    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12627    library_names_spec='$libname.dll.lib'
12628
12629    case $build_os in
12630    mingw*)
12631      sys_lib_search_path_spec=
12632      lt_save_ifs=$IFS
12633      IFS=';'
12634      for lt_path in $LIB
12635      do
12636        IFS=$lt_save_ifs
12637        # Let DOS variable expansion print the short 8.3 style file name.
12638        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12639        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12640      done
12641      IFS=$lt_save_ifs
12642      # Convert to MSYS style.
12643      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12644      ;;
12645    cygwin*)
12646      # Convert to unix form, then to dos form, then back to unix form
12647      # but this time dos style (no spaces!) so that the unix form looks
12648      # like /cygdrive/c/PROGRA~1:/cygdr...
12649      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12650      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12651      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12652      ;;
12653    *)
12654      sys_lib_search_path_spec=$LIB
12655      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12656        # It is most probably a Windows format PATH.
12657        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12658      else
12659        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12660      fi
12661      # FIXME: find the short name or the path components, as spaces are
12662      # common. (e.g. "Program Files" -> "PROGRA~1")
12663      ;;
12664    esac
12665
12666    # DLL is installed to $(libdir)/../bin by postinstall_cmds
12667    postinstall_cmds='base_file=`basename \$file`~
12668      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12669      dldir=$destdir/`dirname \$dlpath`~
12670      test -d \$dldir || mkdir -p \$dldir~
12671      $install_prog $dir/$dlname \$dldir/$dlname'
12672    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12673      dlpath=$dir/\$dldll~
12674       $RM \$dlpath'
12675    shlibpath_overrides_runpath=yes
12676    dynamic_linker='Win32 link.exe'
12677    ;;
12678
12679  *)
12680    # Assume MSVC wrapper
12681    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12682    dynamic_linker='Win32 ld.exe'
12683    ;;
12684  esac
12685  # FIXME: first we should search . and the directory the executable is in
12686  shlibpath_var=PATH
12687  ;;
12688
12689darwin* | rhapsody*)
12690  dynamic_linker="$host_os dyld"
12691  version_type=darwin
12692  need_lib_prefix=no
12693  need_version=no
12694  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12695  soname_spec='$libname$release$major$shared_ext'
12696  shlibpath_overrides_runpath=yes
12697  shlibpath_var=DYLD_LIBRARY_PATH
12698  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12699
12700  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12701  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12702  ;;
12703
12704dgux*)
12705  version_type=linux # correct to gnu/linux during the next big refactor
12706  need_lib_prefix=no
12707  need_version=no
12708  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12709  soname_spec='$libname$release$shared_ext$major'
12710  shlibpath_var=LD_LIBRARY_PATH
12711  ;;
12712
12713freebsd* | dragonfly*)
12714  # DragonFly does not have aout.  When/if they implement a new
12715  # versioning mechanism, adjust this.
12716  if test -x /usr/bin/objformat; then
12717    objformat=`/usr/bin/objformat`
12718  else
12719    case $host_os in
12720    freebsd[23].*) objformat=aout ;;
12721    *) objformat=elf ;;
12722    esac
12723  fi
12724  version_type=freebsd-$objformat
12725  case $version_type in
12726    freebsd-elf*)
12727      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12728      soname_spec='$libname$release$shared_ext$major'
12729      need_version=no
12730      need_lib_prefix=no
12731      ;;
12732    freebsd-*)
12733      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12734      need_version=yes
12735      ;;
12736  esac
12737  shlibpath_var=LD_LIBRARY_PATH
12738  case $host_os in
12739  freebsd2.*)
12740    shlibpath_overrides_runpath=yes
12741    ;;
12742  freebsd3.[01]* | freebsdelf3.[01]*)
12743    shlibpath_overrides_runpath=yes
12744    hardcode_into_libs=yes
12745    ;;
12746  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12747  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12748    shlibpath_overrides_runpath=no
12749    hardcode_into_libs=yes
12750    ;;
12751  *) # from 4.6 on, and DragonFly
12752    shlibpath_overrides_runpath=yes
12753    hardcode_into_libs=yes
12754    ;;
12755  esac
12756  ;;
12757
12758haiku*)
12759  version_type=linux # correct to gnu/linux during the next big refactor
12760  need_lib_prefix=no
12761  need_version=no
12762  dynamic_linker="$host_os runtime_loader"
12763  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12764  soname_spec='$libname$release$shared_ext$major'
12765  shlibpath_var=LIBRARY_PATH
12766  shlibpath_overrides_runpath=no
12767  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12768  hardcode_into_libs=yes
12769  ;;
12770
12771hpux9* | hpux10* | hpux11*)
12772  # Give a soname corresponding to the major version so that dld.sl refuses to
12773  # link against other versions.
12774  version_type=sunos
12775  need_lib_prefix=no
12776  need_version=no
12777  case $host_cpu in
12778  ia64*)
12779    shrext_cmds='.so'
12780    hardcode_into_libs=yes
12781    dynamic_linker="$host_os dld.so"
12782    shlibpath_var=LD_LIBRARY_PATH
12783    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12784    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12785    soname_spec='$libname$release$shared_ext$major'
12786    if test 32 = "$HPUX_IA64_MODE"; then
12787      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12788      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12789    else
12790      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12791      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12792    fi
12793    ;;
12794  hppa*64*)
12795    shrext_cmds='.sl'
12796    hardcode_into_libs=yes
12797    dynamic_linker="$host_os dld.sl"
12798    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12799    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12800    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12801    soname_spec='$libname$release$shared_ext$major'
12802    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12803    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12804    ;;
12805  *)
12806    shrext_cmds='.sl'
12807    dynamic_linker="$host_os dld.sl"
12808    shlibpath_var=SHLIB_PATH
12809    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12810    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12811    soname_spec='$libname$release$shared_ext$major'
12812    ;;
12813  esac
12814  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12815  postinstall_cmds='chmod 555 $lib'
12816  # or fails outright, so override atomically:
12817  install_override_mode=555
12818  ;;
12819
12820interix[3-9]*)
12821  version_type=linux # correct to gnu/linux during the next big refactor
12822  need_lib_prefix=no
12823  need_version=no
12824  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12825  soname_spec='$libname$release$shared_ext$major'
12826  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12827  shlibpath_var=LD_LIBRARY_PATH
12828  shlibpath_overrides_runpath=no
12829  hardcode_into_libs=yes
12830  ;;
12831
12832irix5* | irix6* | nonstopux*)
12833  case $host_os in
12834    nonstopux*) version_type=nonstopux ;;
12835    *)
12836	if test yes = "$lt_cv_prog_gnu_ld"; then
12837		version_type=linux # correct to gnu/linux during the next big refactor
12838	else
12839		version_type=irix
12840	fi ;;
12841  esac
12842  need_lib_prefix=no
12843  need_version=no
12844  soname_spec='$libname$release$shared_ext$major'
12845  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12846  case $host_os in
12847  irix5* | nonstopux*)
12848    libsuff= shlibsuff=
12849    ;;
12850  *)
12851    case $LD in # libtool.m4 will add one of these switches to LD
12852    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12853      libsuff= shlibsuff= libmagic=32-bit;;
12854    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12855      libsuff=32 shlibsuff=N32 libmagic=N32;;
12856    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12857      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12858    *) libsuff= shlibsuff= libmagic=never-match;;
12859    esac
12860    ;;
12861  esac
12862  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12863  shlibpath_overrides_runpath=no
12864  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12865  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12866  hardcode_into_libs=yes
12867  ;;
12868
12869# No shared lib support for Linux oldld, aout, or coff.
12870linux*oldld* | linux*aout* | linux*coff*)
12871  dynamic_linker=no
12872  ;;
12873
12874linux*android*)
12875  version_type=none # Android doesn't support versioned libraries.
12876  need_lib_prefix=no
12877  need_version=no
12878  library_names_spec='$libname$release$shared_ext'
12879  soname_spec='$libname$release$shared_ext'
12880  finish_cmds=
12881  shlibpath_var=LD_LIBRARY_PATH
12882  shlibpath_overrides_runpath=yes
12883
12884  # This implies no fast_install, which is unacceptable.
12885  # Some rework will be needed to allow for fast_install
12886  # before this can be enabled.
12887  hardcode_into_libs=yes
12888
12889  dynamic_linker='Android linker'
12890  # Don't embed -rpath directories since the linker doesn't support them.
12891  hardcode_libdir_flag_spec='-L$libdir'
12892  ;;
12893
12894# This must be glibc/ELF.
12895linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12896  version_type=linux # correct to gnu/linux during the next big refactor
12897  need_lib_prefix=no
12898  need_version=no
12899  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12900  soname_spec='$libname$release$shared_ext$major'
12901  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12902  shlibpath_var=LD_LIBRARY_PATH
12903  shlibpath_overrides_runpath=no
12904
12905  # Some binutils ld are patched to set DT_RUNPATH
12906  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12907  $as_echo_n "(cached) " >&6
12908else
12909  lt_cv_shlibpath_overrides_runpath=no
12910    save_LDFLAGS=$LDFLAGS
12911    save_libdir=$libdir
12912    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12913	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12914    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12915/* end confdefs.h.  */
12916
12917int
12918main ()
12919{
12920
12921  ;
12922  return 0;
12923}
12924_ACEOF
12925if ac_fn_c_try_link "$LINENO"; then :
12926  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12927  lt_cv_shlibpath_overrides_runpath=yes
12928fi
12929fi
12930rm -f core conftest.err conftest.$ac_objext \
12931    conftest$ac_exeext conftest.$ac_ext
12932    LDFLAGS=$save_LDFLAGS
12933    libdir=$save_libdir
12934
12935fi
12936
12937  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12938
12939  # This implies no fast_install, which is unacceptable.
12940  # Some rework will be needed to allow for fast_install
12941  # before this can be enabled.
12942  hardcode_into_libs=yes
12943
12944  # Ideally, we could use ldconfig to report *all* directores which are
12945  # searched for libraries, however this is still not possible.  Aside from not
12946  # being certain /sbin/ldconfig is available, command
12947  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12948  # even though it is searched at run-time.  Try to do the best guess by
12949  # appending ld.so.conf contents (and includes) to the search path.
12950  if test -f /etc/ld.so.conf; then
12951    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' ' '`
12952    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12953  fi
12954
12955  # We used to test for /lib/ld.so.1 and disable shared libraries on
12956  # powerpc, because MkLinux only supported shared libraries with the
12957  # GNU dynamic linker.  Since this was broken with cross compilers,
12958  # most powerpc-linux boxes support dynamic linking these days and
12959  # people can always --disable-shared, the test was removed, and we
12960  # assume the GNU/Linux dynamic linker is in use.
12961  dynamic_linker='GNU/Linux ld.so'
12962  ;;
12963
12964netbsdelf*-gnu)
12965  version_type=linux
12966  need_lib_prefix=no
12967  need_version=no
12968  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12969  soname_spec='${libname}${release}${shared_ext}$major'
12970  shlibpath_var=LD_LIBRARY_PATH
12971  shlibpath_overrides_runpath=no
12972  hardcode_into_libs=yes
12973  dynamic_linker='NetBSD ld.elf_so'
12974  ;;
12975
12976netbsd*)
12977  version_type=sunos
12978  need_lib_prefix=no
12979  need_version=no
12980  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12981    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12982    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12983    dynamic_linker='NetBSD (a.out) ld.so'
12984  else
12985    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12986    soname_spec='$libname$release$shared_ext$major'
12987    dynamic_linker='NetBSD ld.elf_so'
12988  fi
12989  shlibpath_var=LD_LIBRARY_PATH
12990  shlibpath_overrides_runpath=yes
12991  hardcode_into_libs=yes
12992  ;;
12993
12994newsos6)
12995  version_type=linux # correct to gnu/linux during the next big refactor
12996  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12997  shlibpath_var=LD_LIBRARY_PATH
12998  shlibpath_overrides_runpath=yes
12999  ;;
13000
13001*nto* | *qnx*)
13002  version_type=qnx
13003  need_lib_prefix=no
13004  need_version=no
13005  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13006  soname_spec='$libname$release$shared_ext$major'
13007  shlibpath_var=LD_LIBRARY_PATH
13008  shlibpath_overrides_runpath=no
13009  hardcode_into_libs=yes
13010  dynamic_linker='ldqnx.so'
13011  ;;
13012
13013openbsd* | bitrig*)
13014  version_type=sunos
13015  sys_lib_dlsearch_path_spec=/usr/lib
13016  need_lib_prefix=no
13017  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13018    need_version=no
13019  else
13020    need_version=yes
13021  fi
13022  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13023  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13024  shlibpath_var=LD_LIBRARY_PATH
13025  shlibpath_overrides_runpath=yes
13026  ;;
13027
13028os2*)
13029  libname_spec='$name'
13030  version_type=windows
13031  shrext_cmds=.dll
13032  need_version=no
13033  need_lib_prefix=no
13034  # OS/2 can only load a DLL with a base name of 8 characters or less.
13035  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
13036    v=$($ECHO $release$versuffix | tr -d .-);
13037    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
13038    $ECHO $n$v`$shared_ext'
13039  library_names_spec='${libname}_dll.$libext'
13040  dynamic_linker='OS/2 ld.exe'
13041  shlibpath_var=BEGINLIBPATH
13042  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13043  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13044  postinstall_cmds='base_file=`basename \$file`~
13045    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
13046    dldir=$destdir/`dirname \$dlpath`~
13047    test -d \$dldir || mkdir -p \$dldir~
13048    $install_prog $dir/$dlname \$dldir/$dlname~
13049    chmod a+x \$dldir/$dlname~
13050    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13051      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13052    fi'
13053  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
13054    dlpath=$dir/\$dldll~
13055    $RM \$dlpath'
13056  ;;
13057
13058osf3* | osf4* | osf5*)
13059  version_type=osf
13060  need_lib_prefix=no
13061  need_version=no
13062  soname_spec='$libname$release$shared_ext$major'
13063  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13064  shlibpath_var=LD_LIBRARY_PATH
13065  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13066  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13067  ;;
13068
13069rdos*)
13070  dynamic_linker=no
13071  ;;
13072
13073solaris*)
13074  version_type=linux # correct to gnu/linux during the next big refactor
13075  need_lib_prefix=no
13076  need_version=no
13077  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13078  soname_spec='$libname$release$shared_ext$major'
13079  shlibpath_var=LD_LIBRARY_PATH
13080  shlibpath_overrides_runpath=yes
13081  hardcode_into_libs=yes
13082  # ldd complains unless libraries are executable
13083  postinstall_cmds='chmod +x $lib'
13084  ;;
13085
13086sunos4*)
13087  version_type=sunos
13088  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
13089  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13090  shlibpath_var=LD_LIBRARY_PATH
13091  shlibpath_overrides_runpath=yes
13092  if test yes = "$with_gnu_ld"; then
13093    need_lib_prefix=no
13094  fi
13095  need_version=yes
13096  ;;
13097
13098sysv4 | sysv4.3*)
13099  version_type=linux # correct to gnu/linux during the next big refactor
13100  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13101  soname_spec='$libname$release$shared_ext$major'
13102  shlibpath_var=LD_LIBRARY_PATH
13103  case $host_vendor in
13104    sni)
13105      shlibpath_overrides_runpath=no
13106      need_lib_prefix=no
13107      runpath_var=LD_RUN_PATH
13108      ;;
13109    siemens)
13110      need_lib_prefix=no
13111      ;;
13112    motorola)
13113      need_lib_prefix=no
13114      need_version=no
13115      shlibpath_overrides_runpath=no
13116      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13117      ;;
13118  esac
13119  ;;
13120
13121sysv4*MP*)
13122  if test -d /usr/nec; then
13123    version_type=linux # correct to gnu/linux during the next big refactor
13124    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
13125    soname_spec='$libname$shared_ext.$major'
13126    shlibpath_var=LD_LIBRARY_PATH
13127  fi
13128  ;;
13129
13130sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13131  version_type=sco
13132  need_lib_prefix=no
13133  need_version=no
13134  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
13135  soname_spec='$libname$release$shared_ext$major'
13136  shlibpath_var=LD_LIBRARY_PATH
13137  shlibpath_overrides_runpath=yes
13138  hardcode_into_libs=yes
13139  if test yes = "$with_gnu_ld"; then
13140    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13141  else
13142    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13143    case $host_os in
13144      sco3.2v5*)
13145        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13146	;;
13147    esac
13148  fi
13149  sys_lib_dlsearch_path_spec='/usr/lib'
13150  ;;
13151
13152tpf*)
13153  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
13154  version_type=linux # correct to gnu/linux during the next big refactor
13155  need_lib_prefix=no
13156  need_version=no
13157  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13158  shlibpath_var=LD_LIBRARY_PATH
13159  shlibpath_overrides_runpath=no
13160  hardcode_into_libs=yes
13161  ;;
13162
13163uts4*)
13164  version_type=linux # correct to gnu/linux during the next big refactor
13165  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13166  soname_spec='$libname$release$shared_ext$major'
13167  shlibpath_var=LD_LIBRARY_PATH
13168  ;;
13169
13170*)
13171  dynamic_linker=no
13172  ;;
13173esac
13174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13175$as_echo "$dynamic_linker" >&6; }
13176test no = "$dynamic_linker" && can_build_shared=no
13177
13178variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13179if test yes = "$GCC"; then
13180  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13181fi
13182
13183if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13184  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13185fi
13186
13187if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13188  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13189fi
13190
13191# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13192configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13193
13194# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13195func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13196
13197# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13198configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13199
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221
13222
13223
13224
13225
13226
13227
13228
13229
13230
13231
13232
13233
13234
13235
13236
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274
13275
13276
13277
13278
13279
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295
13296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13297$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13298hardcode_action=
13299if test -n "$hardcode_libdir_flag_spec" ||
13300   test -n "$runpath_var" ||
13301   test yes = "$hardcode_automatic"; then
13302
13303  # We can hardcode non-existent directories.
13304  if test no != "$hardcode_direct" &&
13305     # If the only mechanism to avoid hardcoding is shlibpath_var, we
13306     # have to relink, otherwise we might link with an installed library
13307     # when we should be linking with a yet-to-be-installed one
13308     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13309     test no != "$hardcode_minus_L"; then
13310    # Linking always hardcodes the temporary library directory.
13311    hardcode_action=relink
13312  else
13313    # We can link without hardcoding, and we can hardcode nonexisting dirs.
13314    hardcode_action=immediate
13315  fi
13316else
13317  # We cannot hardcode anything, or else we can only hardcode existing
13318  # directories.
13319  hardcode_action=unsupported
13320fi
13321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13322$as_echo "$hardcode_action" >&6; }
13323
13324if test relink = "$hardcode_action" ||
13325   test yes = "$inherit_rpath"; then
13326  # Fast installation is not supported
13327  enable_fast_install=no
13328elif test yes = "$shlibpath_overrides_runpath" ||
13329     test no = "$enable_shared"; then
13330  # Fast installation is not necessary
13331  enable_fast_install=needless
13332fi
13333
13334
13335
13336
13337
13338
13339  if test yes != "$enable_dlopen"; then
13340  enable_dlopen=unknown
13341  enable_dlopen_self=unknown
13342  enable_dlopen_self_static=unknown
13343else
13344  lt_cv_dlopen=no
13345  lt_cv_dlopen_libs=
13346
13347  case $host_os in
13348  beos*)
13349    lt_cv_dlopen=load_add_on
13350    lt_cv_dlopen_libs=
13351    lt_cv_dlopen_self=yes
13352    ;;
13353
13354  mingw* | pw32* | cegcc*)
13355    lt_cv_dlopen=LoadLibrary
13356    lt_cv_dlopen_libs=
13357    ;;
13358
13359  cygwin*)
13360    lt_cv_dlopen=dlopen
13361    lt_cv_dlopen_libs=
13362    ;;
13363
13364  darwin*)
13365    # if libdl is installed we need to link against it
13366    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13367$as_echo_n "checking for dlopen in -ldl... " >&6; }
13368if ${ac_cv_lib_dl_dlopen+:} false; then :
13369  $as_echo_n "(cached) " >&6
13370else
13371  ac_check_lib_save_LIBS=$LIBS
13372LIBS="-ldl  $LIBS"
13373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374/* end confdefs.h.  */
13375
13376/* Override any GCC internal prototype to avoid an error.
13377   Use char because int might match the return type of a GCC
13378   builtin and then its argument prototype would still apply.  */
13379#ifdef __cplusplus
13380extern "C"
13381#endif
13382char dlopen ();
13383int
13384main ()
13385{
13386return dlopen ();
13387  ;
13388  return 0;
13389}
13390_ACEOF
13391if ac_fn_c_try_link "$LINENO"; then :
13392  ac_cv_lib_dl_dlopen=yes
13393else
13394  ac_cv_lib_dl_dlopen=no
13395fi
13396rm -f core conftest.err conftest.$ac_objext \
13397    conftest$ac_exeext conftest.$ac_ext
13398LIBS=$ac_check_lib_save_LIBS
13399fi
13400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13401$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13402if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13403  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13404else
13405
13406    lt_cv_dlopen=dyld
13407    lt_cv_dlopen_libs=
13408    lt_cv_dlopen_self=yes
13409
13410fi
13411
13412    ;;
13413
13414  tpf*)
13415    # Don't try to run any link tests for TPF.  We know it's impossible
13416    # because TPF is a cross-compiler, and we know how we open DSOs.
13417    lt_cv_dlopen=dlopen
13418    lt_cv_dlopen_libs=
13419    lt_cv_dlopen_self=no
13420    ;;
13421
13422  *)
13423    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13424if test "x$ac_cv_func_shl_load" = xyes; then :
13425  lt_cv_dlopen=shl_load
13426else
13427  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13428$as_echo_n "checking for shl_load in -ldld... " >&6; }
13429if ${ac_cv_lib_dld_shl_load+:} false; then :
13430  $as_echo_n "(cached) " >&6
13431else
13432  ac_check_lib_save_LIBS=$LIBS
13433LIBS="-ldld  $LIBS"
13434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13435/* end confdefs.h.  */
13436
13437/* Override any GCC internal prototype to avoid an error.
13438   Use char because int might match the return type of a GCC
13439   builtin and then its argument prototype would still apply.  */
13440#ifdef __cplusplus
13441extern "C"
13442#endif
13443char shl_load ();
13444int
13445main ()
13446{
13447return shl_load ();
13448  ;
13449  return 0;
13450}
13451_ACEOF
13452if ac_fn_c_try_link "$LINENO"; then :
13453  ac_cv_lib_dld_shl_load=yes
13454else
13455  ac_cv_lib_dld_shl_load=no
13456fi
13457rm -f core conftest.err conftest.$ac_objext \
13458    conftest$ac_exeext conftest.$ac_ext
13459LIBS=$ac_check_lib_save_LIBS
13460fi
13461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13462$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13463if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
13464  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13465else
13466  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13467if test "x$ac_cv_func_dlopen" = xyes; then :
13468  lt_cv_dlopen=dlopen
13469else
13470  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13471$as_echo_n "checking for dlopen in -ldl... " >&6; }
13472if ${ac_cv_lib_dl_dlopen+:} false; then :
13473  $as_echo_n "(cached) " >&6
13474else
13475  ac_check_lib_save_LIBS=$LIBS
13476LIBS="-ldl  $LIBS"
13477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13478/* end confdefs.h.  */
13479
13480/* Override any GCC internal prototype to avoid an error.
13481   Use char because int might match the return type of a GCC
13482   builtin and then its argument prototype would still apply.  */
13483#ifdef __cplusplus
13484extern "C"
13485#endif
13486char dlopen ();
13487int
13488main ()
13489{
13490return dlopen ();
13491  ;
13492  return 0;
13493}
13494_ACEOF
13495if ac_fn_c_try_link "$LINENO"; then :
13496  ac_cv_lib_dl_dlopen=yes
13497else
13498  ac_cv_lib_dl_dlopen=no
13499fi
13500rm -f core conftest.err conftest.$ac_objext \
13501    conftest$ac_exeext conftest.$ac_ext
13502LIBS=$ac_check_lib_save_LIBS
13503fi
13504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13505$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13506if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
13507  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13508else
13509  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13510$as_echo_n "checking for dlopen in -lsvld... " >&6; }
13511if ${ac_cv_lib_svld_dlopen+:} false; then :
13512  $as_echo_n "(cached) " >&6
13513else
13514  ac_check_lib_save_LIBS=$LIBS
13515LIBS="-lsvld  $LIBS"
13516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13517/* end confdefs.h.  */
13518
13519/* Override any GCC internal prototype to avoid an error.
13520   Use char because int might match the return type of a GCC
13521   builtin and then its argument prototype would still apply.  */
13522#ifdef __cplusplus
13523extern "C"
13524#endif
13525char dlopen ();
13526int
13527main ()
13528{
13529return dlopen ();
13530  ;
13531  return 0;
13532}
13533_ACEOF
13534if ac_fn_c_try_link "$LINENO"; then :
13535  ac_cv_lib_svld_dlopen=yes
13536else
13537  ac_cv_lib_svld_dlopen=no
13538fi
13539rm -f core conftest.err conftest.$ac_objext \
13540    conftest$ac_exeext conftest.$ac_ext
13541LIBS=$ac_check_lib_save_LIBS
13542fi
13543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13544$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13545if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13546  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13547else
13548  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13549$as_echo_n "checking for dld_link in -ldld... " >&6; }
13550if ${ac_cv_lib_dld_dld_link+:} false; then :
13551  $as_echo_n "(cached) " >&6
13552else
13553  ac_check_lib_save_LIBS=$LIBS
13554LIBS="-ldld  $LIBS"
13555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13556/* end confdefs.h.  */
13557
13558/* Override any GCC internal prototype to avoid an error.
13559   Use char because int might match the return type of a GCC
13560   builtin and then its argument prototype would still apply.  */
13561#ifdef __cplusplus
13562extern "C"
13563#endif
13564char dld_link ();
13565int
13566main ()
13567{
13568return dld_link ();
13569  ;
13570  return 0;
13571}
13572_ACEOF
13573if ac_fn_c_try_link "$LINENO"; then :
13574  ac_cv_lib_dld_dld_link=yes
13575else
13576  ac_cv_lib_dld_dld_link=no
13577fi
13578rm -f core conftest.err conftest.$ac_objext \
13579    conftest$ac_exeext conftest.$ac_ext
13580LIBS=$ac_check_lib_save_LIBS
13581fi
13582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13583$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13584if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13585  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13586fi
13587
13588
13589fi
13590
13591
13592fi
13593
13594
13595fi
13596
13597
13598fi
13599
13600
13601fi
13602
13603    ;;
13604  esac
13605
13606  if test no = "$lt_cv_dlopen"; then
13607    enable_dlopen=no
13608  else
13609    enable_dlopen=yes
13610  fi
13611
13612  case $lt_cv_dlopen in
13613  dlopen)
13614    save_CPPFLAGS=$CPPFLAGS
13615    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13616
13617    save_LDFLAGS=$LDFLAGS
13618    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13619
13620    save_LIBS=$LIBS
13621    LIBS="$lt_cv_dlopen_libs $LIBS"
13622
13623    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13624$as_echo_n "checking whether a program can dlopen itself... " >&6; }
13625if ${lt_cv_dlopen_self+:} false; then :
13626  $as_echo_n "(cached) " >&6
13627else
13628  	  if test yes = "$cross_compiling"; then :
13629  lt_cv_dlopen_self=cross
13630else
13631  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13632  lt_status=$lt_dlunknown
13633  cat > conftest.$ac_ext <<_LT_EOF
13634#line $LINENO "configure"
13635#include "confdefs.h"
13636
13637#if HAVE_DLFCN_H
13638#include <dlfcn.h>
13639#endif
13640
13641#include <stdio.h>
13642
13643#ifdef RTLD_GLOBAL
13644#  define LT_DLGLOBAL		RTLD_GLOBAL
13645#else
13646#  ifdef DL_GLOBAL
13647#    define LT_DLGLOBAL		DL_GLOBAL
13648#  else
13649#    define LT_DLGLOBAL		0
13650#  endif
13651#endif
13652
13653/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13654   find out it does not work in some platform. */
13655#ifndef LT_DLLAZY_OR_NOW
13656#  ifdef RTLD_LAZY
13657#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13658#  else
13659#    ifdef DL_LAZY
13660#      define LT_DLLAZY_OR_NOW		DL_LAZY
13661#    else
13662#      ifdef RTLD_NOW
13663#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13664#      else
13665#        ifdef DL_NOW
13666#          define LT_DLLAZY_OR_NOW	DL_NOW
13667#        else
13668#          define LT_DLLAZY_OR_NOW	0
13669#        endif
13670#      endif
13671#    endif
13672#  endif
13673#endif
13674
13675/* When -fvisibility=hidden is used, assume the code has been annotated
13676   correspondingly for the symbols needed.  */
13677#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13678int fnord () __attribute__((visibility("default")));
13679#endif
13680
13681int fnord () { return 42; }
13682int main ()
13683{
13684  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13685  int status = $lt_dlunknown;
13686
13687  if (self)
13688    {
13689      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13690      else
13691        {
13692	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13693          else puts (dlerror ());
13694	}
13695      /* dlclose (self); */
13696    }
13697  else
13698    puts (dlerror ());
13699
13700  return status;
13701}
13702_LT_EOF
13703  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13704  (eval $ac_link) 2>&5
13705  ac_status=$?
13706  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13707  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13708    (./conftest; exit; ) >&5 2>/dev/null
13709    lt_status=$?
13710    case x$lt_status in
13711      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13712      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13713      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13714    esac
13715  else :
13716    # compilation failed
13717    lt_cv_dlopen_self=no
13718  fi
13719fi
13720rm -fr conftest*
13721
13722
13723fi
13724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13725$as_echo "$lt_cv_dlopen_self" >&6; }
13726
13727    if test yes = "$lt_cv_dlopen_self"; then
13728      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13729      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13730$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13731if ${lt_cv_dlopen_self_static+:} false; then :
13732  $as_echo_n "(cached) " >&6
13733else
13734  	  if test yes = "$cross_compiling"; then :
13735  lt_cv_dlopen_self_static=cross
13736else
13737  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13738  lt_status=$lt_dlunknown
13739  cat > conftest.$ac_ext <<_LT_EOF
13740#line $LINENO "configure"
13741#include "confdefs.h"
13742
13743#if HAVE_DLFCN_H
13744#include <dlfcn.h>
13745#endif
13746
13747#include <stdio.h>
13748
13749#ifdef RTLD_GLOBAL
13750#  define LT_DLGLOBAL		RTLD_GLOBAL
13751#else
13752#  ifdef DL_GLOBAL
13753#    define LT_DLGLOBAL		DL_GLOBAL
13754#  else
13755#    define LT_DLGLOBAL		0
13756#  endif
13757#endif
13758
13759/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13760   find out it does not work in some platform. */
13761#ifndef LT_DLLAZY_OR_NOW
13762#  ifdef RTLD_LAZY
13763#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
13764#  else
13765#    ifdef DL_LAZY
13766#      define LT_DLLAZY_OR_NOW		DL_LAZY
13767#    else
13768#      ifdef RTLD_NOW
13769#        define LT_DLLAZY_OR_NOW	RTLD_NOW
13770#      else
13771#        ifdef DL_NOW
13772#          define LT_DLLAZY_OR_NOW	DL_NOW
13773#        else
13774#          define LT_DLLAZY_OR_NOW	0
13775#        endif
13776#      endif
13777#    endif
13778#  endif
13779#endif
13780
13781/* When -fvisibility=hidden is used, assume the code has been annotated
13782   correspondingly for the symbols needed.  */
13783#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13784int fnord () __attribute__((visibility("default")));
13785#endif
13786
13787int fnord () { return 42; }
13788int main ()
13789{
13790  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13791  int status = $lt_dlunknown;
13792
13793  if (self)
13794    {
13795      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13796      else
13797        {
13798	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13799          else puts (dlerror ());
13800	}
13801      /* dlclose (self); */
13802    }
13803  else
13804    puts (dlerror ());
13805
13806  return status;
13807}
13808_LT_EOF
13809  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13810  (eval $ac_link) 2>&5
13811  ac_status=$?
13812  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13813  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13814    (./conftest; exit; ) >&5 2>/dev/null
13815    lt_status=$?
13816    case x$lt_status in
13817      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13818      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13819      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13820    esac
13821  else :
13822    # compilation failed
13823    lt_cv_dlopen_self_static=no
13824  fi
13825fi
13826rm -fr conftest*
13827
13828
13829fi
13830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13831$as_echo "$lt_cv_dlopen_self_static" >&6; }
13832    fi
13833
13834    CPPFLAGS=$save_CPPFLAGS
13835    LDFLAGS=$save_LDFLAGS
13836    LIBS=$save_LIBS
13837    ;;
13838  esac
13839
13840  case $lt_cv_dlopen_self in
13841  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13842  *) enable_dlopen_self=unknown ;;
13843  esac
13844
13845  case $lt_cv_dlopen_self_static in
13846  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13847  *) enable_dlopen_self_static=unknown ;;
13848  esac
13849fi
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867striplib=
13868old_striplib=
13869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13870$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13871if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13872  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13873  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13875$as_echo "yes" >&6; }
13876else
13877# FIXME - insert some real tests, host_os isn't really good enough
13878  case $host_os in
13879  darwin*)
13880    if test -n "$STRIP"; then
13881      striplib="$STRIP -x"
13882      old_striplib="$STRIP -S"
13883      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13884$as_echo "yes" >&6; }
13885    else
13886      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13887$as_echo "no" >&6; }
13888    fi
13889    ;;
13890  *)
13891    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13892$as_echo "no" >&6; }
13893    ;;
13894  esac
13895fi
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908  # Report what library types will actually be built
13909  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13910$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13911  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13912$as_echo "$can_build_shared" >&6; }
13913
13914  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13915$as_echo_n "checking whether to build shared libraries... " >&6; }
13916  test no = "$can_build_shared" && enable_shared=no
13917
13918  # On AIX, shared libraries and static libraries use the same namespace, and
13919  # are all built from PIC.
13920  case $host_os in
13921  aix3*)
13922    test yes = "$enable_shared" && enable_static=no
13923    if test -n "$RANLIB"; then
13924      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13925      postinstall_cmds='$RANLIB $lib'
13926    fi
13927    ;;
13928
13929  aix[4-9]*)
13930    if test ia64 != "$host_cpu"; then
13931      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13932      yes,aix,yes) ;;			# shared object as lib.so file only
13933      yes,svr4,*) ;;			# shared object as lib.so archive member only
13934      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
13935      esac
13936    fi
13937    ;;
13938  esac
13939  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13940$as_echo "$enable_shared" >&6; }
13941
13942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13943$as_echo_n "checking whether to build static libraries... " >&6; }
13944  # Make sure either enable_shared or enable_static is yes.
13945  test yes = "$enable_shared" || enable_static=yes
13946  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13947$as_echo "$enable_static" >&6; }
13948
13949
13950
13951
13952fi
13953ac_ext=c
13954ac_cpp='$CPP $CPPFLAGS'
13955ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13956ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13957ac_compiler_gnu=$ac_cv_c_compiler_gnu
13958
13959CC=$lt_save_CC
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975        ac_config_commands="$ac_config_commands libtool"
13976
13977
13978
13979
13980# Only expand once:
13981
13982
13983
13984
13985
13986
13987# Check whether --enable-ndebug was given.
13988if test "${enable_ndebug+set}" = set; then :
13989  enableval=$enable_ndebug;
13990else
13991  enable_ndebug=no
13992fi
13993
13994 if test x$enable_ndebug = xyes; then
13995  NDEBUG_TRUE=
13996  NDEBUG_FALSE='#'
13997else
13998  NDEBUG_TRUE='#'
13999  NDEBUG_FALSE=
14000fi
14001
14002
14003
14004# Check whether --enable-expensive-checks was given.
14005if test "${enable_expensive_checks+set}" = set; then :
14006  enableval=$enable_expensive_checks;
14007else
14008  enable_expensive_checks=no
14009fi
14010
14011if test x$enable_expensive_checks != xno; then
14012TESTS_ENVIRONMENT=EXPENSIVE_CHECKS=1
14013
14014fi
14015 if test x$enable_expensive_checks != xno; then
14016  EXPENSIVE_CHECKS_TRUE=
14017  EXPENSIVE_CHECKS_FALSE='#'
14018else
14019  EXPENSIVE_CHECKS_TRUE='#'
14020  EXPENSIVE_CHECKS_FALSE=
14021fi
14022
14023
14024
14025ACLOCAL_AMFLAGS="-I m4"
14026
14027
14028
14029# Check whether --with-doxygen was given.
14030if test "${with_doxygen+set}" = set; then :
14031  withval=$with_doxygen;
14032case $enable_doxygen in
14033yes ) doxygen=doxygen ;;
14034no ) doxygen=echo ;;
14035esac
14036else
14037  doxygen=doxygen
14038fi
14039
14040
14041# Extract the first word of "doxygen", so it can be a program name with args.
14042set dummy doxygen; ac_word=$2
14043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14044$as_echo_n "checking for $ac_word... " >&6; }
14045if ${ac_cv_prog_DOXYGEN+:} false; then :
14046  $as_echo_n "(cached) " >&6
14047else
14048  if test -n "$DOXYGEN"; then
14049  ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
14050else
14051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14052for as_dir in $PATH
14053do
14054  IFS=$as_save_IFS
14055  test -z "$as_dir" && as_dir=.
14056    for ac_exec_ext in '' $ac_executable_extensions; do
14057  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14058    ac_cv_prog_DOXYGEN="$doxygen"
14059    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14060    break 2
14061  fi
14062done
14063  done
14064IFS=$as_save_IFS
14065
14066  test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="echo"
14067fi
14068fi
14069DOXYGEN=$ac_cv_prog_DOXYGEN
14070if test -n "$DOXYGEN"; then
14071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
14072$as_echo "$DOXYGEN" >&6; }
14073else
14074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14075$as_echo "no" >&6; }
14076fi
14077
14078
14079 if test $DOXYGEN != echo; then
14080  HAVE_DOXYGEN_TRUE=
14081  HAVE_DOXYGEN_FALSE='#'
14082else
14083  HAVE_DOXYGEN_TRUE='#'
14084  HAVE_DOXYGEN_FALSE=
14085fi
14086
14087
14088
14089
14090
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
14092$as_echo_n "checking for C compiler vendor... " >&6; }
14093if ${ax_cv_c_compiler_vendor+:} false; then :
14094  $as_echo_n "(cached) " >&6
14095else
14096  ax_cv_c_compiler_vendor=unknown
14097  # note: don't check for gcc first since some other compilers define __GNUC__
14098  for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
14099    vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
14100    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14101/* end confdefs.h.  */
14102
14103int
14104main ()
14105{
14106
14107#if !($vencpp)
14108      thisisanerror;
14109#endif
14110
14111  ;
14112  return 0;
14113}
14114_ACEOF
14115if ac_fn_c_try_compile "$LINENO"; then :
14116  ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
14117fi
14118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14119  done
14120
14121fi
14122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
14123$as_echo "$ax_cv_c_compiler_vendor" >&6; }
14124
14125
14126#  Enable 64 bit build
14127# Check whether --enable-64 was given.
14128if test "${enable_64+set}" = set; then :
14129  enableval=$enable_64; enable_64="$enable_64"
14130else
14131  enable_64="no"
14132fi
14133
14134
14135if test "x${ax_cv_c_compiler_vendor}"  =  "xsun" ; then
14136    if test "${enable_64}" = "yes"; then
14137        SOFIA_CFLAGS="$SOFIA_CFLAGS -m64"
14138	LDFLAGS="-m64 -Wl,-64"
14139	export PKG_CONFIG_PATH=/usr/lib/64/pkgconfig
14140    fi
14141fi
14142
14143SOFIA_PLAT_CFLAGS=
14144# openbsd seems to not define NULL as a void pointer, I blame standards by committee for this.
14145# This is a dirty hack, but shuts up all the warnings
14146case "$host" in
14147     *-openbsd*) SOFIA_PLAT_CFLAGS="-DNULL='(void *) 0L'";;
14148     *) ;;
14149esac
14150
14151SOFIA_PLAT_CFLAGS=$SOFIA_PLAT_CFLAGS
14152
14153
14154
14155### checks for header files
14156### -----------------------
14157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14158$as_echo_n "checking for ANSI C header files... " >&6; }
14159if ${ac_cv_header_stdc+:} false; then :
14160  $as_echo_n "(cached) " >&6
14161else
14162  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163/* end confdefs.h.  */
14164#include <stdlib.h>
14165#include <stdarg.h>
14166#include <string.h>
14167#include <float.h>
14168
14169int
14170main ()
14171{
14172
14173  ;
14174  return 0;
14175}
14176_ACEOF
14177if ac_fn_c_try_compile "$LINENO"; then :
14178  ac_cv_header_stdc=yes
14179else
14180  ac_cv_header_stdc=no
14181fi
14182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183
14184if test $ac_cv_header_stdc = yes; then
14185  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187/* end confdefs.h.  */
14188#include <string.h>
14189
14190_ACEOF
14191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14192  $EGREP "memchr" >/dev/null 2>&1; then :
14193
14194else
14195  ac_cv_header_stdc=no
14196fi
14197rm -f conftest*
14198
14199fi
14200
14201if test $ac_cv_header_stdc = yes; then
14202  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14203  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204/* end confdefs.h.  */
14205#include <stdlib.h>
14206
14207_ACEOF
14208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14209  $EGREP "free" >/dev/null 2>&1; then :
14210
14211else
14212  ac_cv_header_stdc=no
14213fi
14214rm -f conftest*
14215
14216fi
14217
14218if test $ac_cv_header_stdc = yes; then
14219  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14220  if test "$cross_compiling" = yes; then :
14221  :
14222else
14223  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224/* end confdefs.h.  */
14225#include <ctype.h>
14226#include <stdlib.h>
14227#if ((' ' & 0x0FF) == 0x020)
14228# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14229# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14230#else
14231# define ISLOWER(c) \
14232		   (('a' <= (c) && (c) <= 'i') \
14233		     || ('j' <= (c) && (c) <= 'r') \
14234		     || ('s' <= (c) && (c) <= 'z'))
14235# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14236#endif
14237
14238#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14239int
14240main ()
14241{
14242  int i;
14243  for (i = 0; i < 256; i++)
14244    if (XOR (islower (i), ISLOWER (i))
14245	|| toupper (i) != TOUPPER (i))
14246      return 2;
14247  return 0;
14248}
14249_ACEOF
14250if ac_fn_c_try_run "$LINENO"; then :
14251
14252else
14253  ac_cv_header_stdc=no
14254fi
14255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14256  conftest.$ac_objext conftest.beam conftest.$ac_ext
14257fi
14258
14259fi
14260fi
14261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14262$as_echo "$ac_cv_header_stdc" >&6; }
14263if test $ac_cv_header_stdc = yes; then
14264
14265$as_echo "#define STDC_HEADERS 1" >>confdefs.h
14266
14267fi
14268
14269
14270### checks for declarations
14271### -----------------------
14272
14273### checks for types
14274### ----------------
14275
14276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
14277$as_echo_n "checking return type of signal handlers... " >&6; }
14278if ${ac_cv_type_signal+:} false; then :
14279  $as_echo_n "(cached) " >&6
14280else
14281  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14282/* end confdefs.h.  */
14283#include <sys/types.h>
14284#include <signal.h>
14285
14286int
14287main ()
14288{
14289return *(signal (0, 0)) (0) == 1;
14290  ;
14291  return 0;
14292}
14293_ACEOF
14294if ac_fn_c_try_compile "$LINENO"; then :
14295  ac_cv_type_signal=int
14296else
14297  ac_cv_type_signal=void
14298fi
14299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14300fi
14301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
14302$as_echo "$ac_cv_type_signal" >&6; }
14303
14304cat >>confdefs.h <<_ACEOF
14305#define RETSIGTYPE $ac_cv_type_signal
14306_ACEOF
14307
14308
14309ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
14310if test "x$ac_cv_type_long_long" = xyes; then :
14311
14312$as_echo "#define longlong long long" >>confdefs.h
14313:
14314else
14315  :
14316fi
14317
14318
14319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IO functions support C99 size specifiers" >&5
14320$as_echo_n "checking whether IO functions support C99 size specifiers... " >&6; }
14321if ${ac_cv_c_c99_format+:} false; then :
14322  $as_echo_n "(cached) " >&6
14323else
14324
14325
14326ac_cv_c_c99_format=yes
14327
14328if test "$cross_compiling" = yes; then :
14329  ac_cv_c_c99_format=yes
14330else
14331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14332/* end confdefs.h.  */
14333$ac_includes_default
14334int
14335main ()
14336{
14337char buf[64];
14338 if (sprintf(buf, "%lld%hhd%jd%zd%td", (long long int)1, (char)2, (intmax_t)3, (size_t)4, (ptrdiff_t)5) != 5)
14339  exit(1);
14340 else if (strcmp(buf, "12345"))
14341  exit(2);
14342  ;
14343  return 0;
14344}
14345_ACEOF
14346if ac_fn_c_try_run "$LINENO"; then :
14347  ac_cv_c_c99_format=yes
14348else
14349  ac_cv_c_c99_format=no
14350fi
14351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14352  conftest.$ac_objext conftest.beam conftest.$ac_ext
14353fi
14354
14355
14356fi
14357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_c99_format" >&5
14358$as_echo "$ac_cv_c_c99_format" >&6; }
14359
14360if test $ac_cv_c_c99_format = yes; then
14361
14362$as_echo "#define HAVE_C99_FORMAT 1" >>confdefs.h
14363
14364
14365$as_echo "#define LLU \"%llu\"" >>confdefs.h
14366
14367$as_echo "#define LLI \"%lli\"" >>confdefs.h
14368
14369$as_echo "#define LLX \"%llx\"" >>confdefs.h
14370
14371$as_echo "#define MOD_ZD \"%zd\"" >>confdefs.h
14372
14373$as_echo "#define MOD_ZU \"%zu\"" >>confdefs.h
14374
14375else
14376
14377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IO functions support size specifier for long long" >&5
14378$as_echo_n "checking whether IO functions support size specifier for long long... " >&6; }
14379if ${ac_cv_c_ll_format+:} false; then :
14380  $as_echo_n "(cached) " >&6
14381else
14382
14383
14384ac_cv_c_ll_format=yes
14385
14386if test "$cross_compiling" = yes; then :
14387  ac_cv_c_ll_format=yes
14388else
14389  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14390/* end confdefs.h.  */
14391$ac_includes_default
14392int
14393main ()
14394{
14395char buf[64];
14396 if (sprintf(buf, "%lld", (long long int)1) != 1)
14397  exit(1);
14398 else if (strcmp(buf, "1"))
14399  exit(2);
14400  ;
14401  return 0;
14402}
14403_ACEOF
14404if ac_fn_c_try_run "$LINENO"; then :
14405  ac_cv_c_ll_format=yes
14406else
14407  ac_cv_c_ll_format=no
14408fi
14409rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14410  conftest.$ac_objext conftest.beam conftest.$ac_ext
14411fi
14412
14413
14414fi
14415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ll_format" >&5
14416$as_echo "$ac_cv_c_ll_format" >&6; }
14417
14418if test $ac_cv_c_ll_format = yes; then
14419
14420$as_echo "#define LLU \"%llu\"" >>confdefs.h
14421
14422$as_echo "#define LLI \"%lli\"" >>confdefs.h
14423
14424$as_echo "#define LLX \"%llx\"" >>confdefs.h
14425else
14426  as_fn_error $? "\"printf cannot handle 64-bit integers\"" "$LINENO" 5
14427fi
14428
14429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether IO functions support size specifier for size_t" >&5
14430$as_echo_n "checking whether IO functions support size specifier for size_t... " >&6; }
14431if ${ac_cv_c_z_format+:} false; then :
14432  $as_echo_n "(cached) " >&6
14433else
14434
14435
14436ac_cv_c_z_format=yes
14437
14438if test "$cross_compiling" = yes; then :
14439  ac_cv_c_z_format=yes
14440else
14441  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442/* end confdefs.h.  */
14443$ac_includes_default
14444int
14445main ()
14446{
14447char buf[64];
14448 if (sprintf(buf, "%zd", (size_t)1) != 1)
14449  exit(1);
14450 else if (strcmp(buf, "1"))
14451  exit(2);
14452  ;
14453  return 0;
14454}
14455_ACEOF
14456if ac_fn_c_try_run "$LINENO"; then :
14457  ac_cv_c_z_format=yes
14458else
14459  ac_cv_c_z_format=no
14460fi
14461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14462  conftest.$ac_objext conftest.beam conftest.$ac_ext
14463fi
14464
14465
14466fi
14467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_z_format" >&5
14468$as_echo "$ac_cv_c_z_format" >&6; }
14469
14470if test $ac_cv_c_z_format = yes; then
14471
14472$as_echo "#define MOD_ZD \"%ld\"" >>confdefs.h
14473
14474$as_echo "#define MOD_ZU \"%lu\"" >>confdefs.h
14475else
14476    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"printf cannot handle size_t" >&5
14477$as_echo "$as_me: WARNING: \"printf cannot handle size_t" >&2;}
14478
14479$as_echo "#define MOD_ZD \"%ld\"" >>confdefs.h
14480
14481$as_echo "#define MOD_ZU \"%lu\"" >>confdefs.h
14482fi
14483
14484fi
14485
14486### checks for structures
14487### ---------------------
14488
14489### checks for typedefs, structures, and compiler characteristics.
14490### --------------------------------------------------------------
14491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14492$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14493if ${ac_cv_c_const+:} false; then :
14494  $as_echo_n "(cached) " >&6
14495else
14496  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14497/* end confdefs.h.  */
14498
14499int
14500main ()
14501{
14502
14503#ifndef __cplusplus
14504  /* Ultrix mips cc rejects this sort of thing.  */
14505  typedef int charset[2];
14506  const charset cs = { 0, 0 };
14507  /* SunOS 4.1.1 cc rejects this.  */
14508  char const *const *pcpcc;
14509  char **ppc;
14510  /* NEC SVR4.0.2 mips cc rejects this.  */
14511  struct point {int x, y;};
14512  static struct point const zero = {0,0};
14513  /* AIX XL C 1.02.0.0 rejects this.
14514     It does not let you subtract one const X* pointer from another in
14515     an arm of an if-expression whose if-part is not a constant
14516     expression */
14517  const char *g = "string";
14518  pcpcc = &g + (g ? g-g : 0);
14519  /* HPUX 7.0 cc rejects these. */
14520  ++pcpcc;
14521  ppc = (char**) pcpcc;
14522  pcpcc = (char const *const *) ppc;
14523  { /* SCO 3.2v4 cc rejects this sort of thing.  */
14524    char tx;
14525    char *t = &tx;
14526    char const *s = 0 ? (char *) 0 : (char const *) 0;
14527
14528    *t++ = 0;
14529    if (s) return 0;
14530  }
14531  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14532    int x[] = {25, 17};
14533    const int *foo = &x[0];
14534    ++foo;
14535  }
14536  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14537    typedef const int *iptr;
14538    iptr p = 0;
14539    ++p;
14540  }
14541  { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14542       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14543    struct s { int j; const int *ap[3]; } bx;
14544    struct s *b = &bx; b->j = 5;
14545  }
14546  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14547    const int foo = 10;
14548    if (!foo) return 0;
14549  }
14550  return !cs[0] && !zero.x;
14551#endif
14552
14553  ;
14554  return 0;
14555}
14556_ACEOF
14557if ac_fn_c_try_compile "$LINENO"; then :
14558  ac_cv_c_const=yes
14559else
14560  ac_cv_c_const=no
14561fi
14562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14563fi
14564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14565$as_echo "$ac_cv_c_const" >&6; }
14566if test $ac_cv_c_const = no; then
14567
14568$as_echo "#define const /**/" >>confdefs.h
14569
14570fi
14571
14572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14573$as_echo_n "checking for inline... " >&6; }
14574if ${ac_cv_c_inline+:} false; then :
14575  $as_echo_n "(cached) " >&6
14576else
14577  ac_cv_c_inline=no
14578for ac_kw in inline __inline__ __inline; do
14579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580/* end confdefs.h.  */
14581#ifndef __cplusplus
14582typedef int foo_t;
14583static $ac_kw foo_t static_foo () {return 0; }
14584$ac_kw foo_t foo () {return 0; }
14585#endif
14586
14587_ACEOF
14588if ac_fn_c_try_compile "$LINENO"; then :
14589  ac_cv_c_inline=$ac_kw
14590fi
14591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592  test "$ac_cv_c_inline" != no && break
14593done
14594
14595fi
14596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14597$as_echo "$ac_cv_c_inline" >&6; }
14598
14599case $ac_cv_c_inline in
14600  inline | yes) ;;
14601  *)
14602    case $ac_cv_c_inline in
14603      no) ac_val=;;
14604      *) ac_val=$ac_cv_c_inline;;
14605    esac
14606    cat >>confdefs.h <<_ACEOF
14607#ifndef __cplusplus
14608#define inline $ac_val
14609#endif
14610_ACEOF
14611    ;;
14612esac
14613
14614
14615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14616$as_echo_n "checking for inline... " >&6; }
14617if ${ac_cv_c_inline+:} false; then :
14618  $as_echo_n "(cached) " >&6
14619else
14620  ac_cv_c_inline=no
14621for ac_kw in inline __inline__ __inline; do
14622  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623/* end confdefs.h.  */
14624#ifndef __cplusplus
14625typedef int foo_t;
14626static $ac_kw foo_t static_foo () {return 0; }
14627$ac_kw foo_t foo () {return 0; }
14628#endif
14629
14630_ACEOF
14631if ac_fn_c_try_compile "$LINENO"; then :
14632  ac_cv_c_inline=$ac_kw
14633fi
14634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14635  test "$ac_cv_c_inline" != no && break
14636done
14637
14638fi
14639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14640$as_echo "$ac_cv_c_inline" >&6; }
14641
14642case $ac_cv_c_inline in
14643  inline | yes) ;;
14644  *)
14645    case $ac_cv_c_inline in
14646      no) ac_val=;;
14647      *) ac_val=$ac_cv_c_inline;;
14648    esac
14649    cat >>confdefs.h <<_ACEOF
14650#ifndef __cplusplus
14651#define inline $ac_val
14652#endif
14653_ACEOF
14654    ;;
14655esac
14656
14657case "$ac_cv_c_inline" in *inline* | yes)
14658
14659$as_echo "#define HAVE_INLINE 1" >>confdefs.h
14660 ;;
14661esac
14662
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14664$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14665if ${ac_cv_c_bigendian+:} false; then :
14666  $as_echo_n "(cached) " >&6
14667else
14668  ac_cv_c_bigendian=unknown
14669    # See if we're dealing with a universal compiler.
14670    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14671/* end confdefs.h.  */
14672#ifndef __APPLE_CC__
14673	       not a universal capable compiler
14674	     #endif
14675	     typedef int dummy;
14676
14677_ACEOF
14678if ac_fn_c_try_compile "$LINENO"; then :
14679
14680	# Check for potential -arch flags.  It is not universal unless
14681	# there are at least two -arch flags with different values.
14682	ac_arch=
14683	ac_prev=
14684	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14685	 if test -n "$ac_prev"; then
14686	   case $ac_word in
14687	     i?86 | x86_64 | ppc | ppc64)
14688	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14689		 ac_arch=$ac_word
14690	       else
14691		 ac_cv_c_bigendian=universal
14692		 break
14693	       fi
14694	       ;;
14695	   esac
14696	   ac_prev=
14697	 elif test "x$ac_word" = "x-arch"; then
14698	   ac_prev=arch
14699	 fi
14700       done
14701fi
14702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14703    if test $ac_cv_c_bigendian = unknown; then
14704      # See if sys/param.h defines the BYTE_ORDER macro.
14705      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h.  */
14707#include <sys/types.h>
14708	     #include <sys/param.h>
14709
14710int
14711main ()
14712{
14713#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14714		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14715		     && LITTLE_ENDIAN)
14716	      bogus endian macros
14717	     #endif
14718
14719  ;
14720  return 0;
14721}
14722_ACEOF
14723if ac_fn_c_try_compile "$LINENO"; then :
14724  # It does; now see whether it defined to BIG_ENDIAN or not.
14725	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14726/* end confdefs.h.  */
14727#include <sys/types.h>
14728		#include <sys/param.h>
14729
14730int
14731main ()
14732{
14733#if BYTE_ORDER != BIG_ENDIAN
14734		 not big endian
14735		#endif
14736
14737  ;
14738  return 0;
14739}
14740_ACEOF
14741if ac_fn_c_try_compile "$LINENO"; then :
14742  ac_cv_c_bigendian=yes
14743else
14744  ac_cv_c_bigendian=no
14745fi
14746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14747fi
14748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749    fi
14750    if test $ac_cv_c_bigendian = unknown; then
14751      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14752      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14753/* end confdefs.h.  */
14754#include <limits.h>
14755
14756int
14757main ()
14758{
14759#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14760	      bogus endian macros
14761	     #endif
14762
14763  ;
14764  return 0;
14765}
14766_ACEOF
14767if ac_fn_c_try_compile "$LINENO"; then :
14768  # It does; now see whether it defined to _BIG_ENDIAN or not.
14769	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770/* end confdefs.h.  */
14771#include <limits.h>
14772
14773int
14774main ()
14775{
14776#ifndef _BIG_ENDIAN
14777		 not big endian
14778		#endif
14779
14780  ;
14781  return 0;
14782}
14783_ACEOF
14784if ac_fn_c_try_compile "$LINENO"; then :
14785  ac_cv_c_bigendian=yes
14786else
14787  ac_cv_c_bigendian=no
14788fi
14789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14790fi
14791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14792    fi
14793    if test $ac_cv_c_bigendian = unknown; then
14794      # Compile a test program.
14795      if test "$cross_compiling" = yes; then :
14796  # Try to guess by grepping values from an object file.
14797	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14798/* end confdefs.h.  */
14799short int ascii_mm[] =
14800		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14801		short int ascii_ii[] =
14802		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14803		int use_ascii (int i) {
14804		  return ascii_mm[i] + ascii_ii[i];
14805		}
14806		short int ebcdic_ii[] =
14807		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14808		short int ebcdic_mm[] =
14809		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14810		int use_ebcdic (int i) {
14811		  return ebcdic_mm[i] + ebcdic_ii[i];
14812		}
14813		extern int foo;
14814
14815int
14816main ()
14817{
14818return use_ascii (foo) == use_ebcdic (foo);
14819  ;
14820  return 0;
14821}
14822_ACEOF
14823if ac_fn_c_try_compile "$LINENO"; then :
14824  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14825	      ac_cv_c_bigendian=yes
14826	    fi
14827	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14828	      if test "$ac_cv_c_bigendian" = unknown; then
14829		ac_cv_c_bigendian=no
14830	      else
14831		# finding both strings is unlikely to happen, but who knows?
14832		ac_cv_c_bigendian=unknown
14833	      fi
14834	    fi
14835fi
14836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14837else
14838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839/* end confdefs.h.  */
14840$ac_includes_default
14841int
14842main ()
14843{
14844
14845	     /* Are we little or big endian?  From Harbison&Steele.  */
14846	     union
14847	     {
14848	       long int l;
14849	       char c[sizeof (long int)];
14850	     } u;
14851	     u.l = 1;
14852	     return u.c[sizeof (long int) - 1] == 1;
14853
14854  ;
14855  return 0;
14856}
14857_ACEOF
14858if ac_fn_c_try_run "$LINENO"; then :
14859  ac_cv_c_bigendian=no
14860else
14861  ac_cv_c_bigendian=yes
14862fi
14863rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14864  conftest.$ac_objext conftest.beam conftest.$ac_ext
14865fi
14866
14867    fi
14868fi
14869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14870$as_echo "$ac_cv_c_bigendian" >&6; }
14871 case $ac_cv_c_bigendian in #(
14872   yes)
14873
14874$as_echo "#define SWITCH_BYTE_ORDER __BIG_ENDIAN" >>confdefs.h
14875;; #(
14876   no)
14877
14878$as_echo "#define SWITCH_BYTE_ORDER __LITTLE_ENDIAN" >>confdefs.h
14879 ;; #(
14880   universal)
14881
14882$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14883
14884     ;; #(
14885   *)
14886     as_fn_error $? "unknown endianness
14887 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14888 esac
14889
14890
14891
14892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC recognizes __func__" >&5
14893$as_echo_n "checking whether $CC recognizes __func__... " >&6; }
14894if ${ac_cv_c_var_func+:} false; then :
14895  $as_echo_n "(cached) " >&6
14896else
14897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898/* end confdefs.h.  */
14899
14900int
14901main ()
14902{
14903char *s = __func__;
14904
14905  ;
14906  return 0;
14907}
14908_ACEOF
14909if ac_fn_c_try_compile "$LINENO"; then :
14910  ac_cv_c_var_func=yes
14911else
14912  ac_cv_c_var_func=no
14913fi
14914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915fi
14916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_var_func" >&5
14917$as_echo "$ac_cv_c_var_func" >&6; }
14918if test $ac_cv_c_var_func = "yes"; then
14919
14920$as_echo "#define HAVE_FUNC 1" >>confdefs.h
14921
14922fi
14923
14924
14925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC recognizes __FUNCTION__" >&5
14926$as_echo_n "checking whether $CC recognizes __FUNCTION__... " >&6; }
14927if ${ac_cv_c_macro_function+:} false; then :
14928  $as_echo_n "(cached) " >&6
14929else
14930  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14931/* end confdefs.h.  */
14932
14933int
14934main ()
14935{
14936
14937char *s = __FUNCTION__;
14938
14939  ;
14940  return 0;
14941}
14942_ACEOF
14943if ac_fn_c_try_compile "$LINENO"; then :
14944  ac_cv_c_macro_function=yes
14945else
14946  ac_cv_c_macro_function=no
14947fi
14948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14949fi
14950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_macro_function" >&5
14951$as_echo "$ac_cv_c_macro_function" >&6; }
14952if test $ac_cv_c_macro_function = "yes"; then
14953
14954$as_echo "#define HAVE_FUNCTION 1" >>confdefs.h
14955
14956fi
14957
14958
14959
14960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC recognizes field names in struct initialization" >&5
14961$as_echo_n "checking whether $CC recognizes field names in struct initialization... " >&6; }
14962if ${ac_cv_c_keyword_struct+:} false; then :
14963  $as_echo_n "(cached) " >&6
14964else
14965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966/* end confdefs.h.  */
14967
14968int
14969main ()
14970{
14971
14972  struct { int foo; char *bar; } test = { foo: 1, bar: "bar" };
14973  return 0;
14974
14975  ;
14976  return 0;
14977}
14978_ACEOF
14979if ac_fn_c_try_compile "$LINENO"; then :
14980  ac_cv_c_keyword_struct=yes
14981else
14982  ac_cv_c_keyword_struct=no
14983fi
14984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14985fi
14986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_keyword_struct" >&5
14987$as_echo "$ac_cv_c_keyword_struct" >&6; }
14988if test $ac_cv_c_keyword_struct = "yes"; then
14989
14990$as_echo "#define HAVE_STRUCT_KEYWORDS 1" >>confdefs.h
14991
14992fi
14993
14994
14995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14996$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14997if ${ac_cv_header_time+:} false; then :
14998  $as_echo_n "(cached) " >&6
14999else
15000  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001/* end confdefs.h.  */
15002#include <sys/types.h>
15003#include <sys/time.h>
15004#include <time.h>
15005
15006int
15007main ()
15008{
15009if ((struct tm *) 0)
15010return 0;
15011  ;
15012  return 0;
15013}
15014_ACEOF
15015if ac_fn_c_try_compile "$LINENO"; then :
15016  ac_cv_header_time=yes
15017else
15018  ac_cv_header_time=no
15019fi
15020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15021fi
15022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15023$as_echo "$ac_cv_header_time" >&6; }
15024if test $ac_cv_header_time = yes; then
15025
15026$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15027
15028fi
15029
15030ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
15031if test "x$ac_cv_type_size_t" = xyes; then :
15032
15033else
15034
15035cat >>confdefs.h <<_ACEOF
15036#define size_t unsigned int
15037_ACEOF
15038
15039fi
15040
15041
15042
15043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sa_len" >&5
15044$as_echo_n "checking for sa_len... " >&6; }
15045if ${ac_cv_sa_len+:} false; then :
15046  $as_echo_n "(cached) " >&6
15047else
15048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15049/* end confdefs.h.  */
15050#include <sys/types.h>
15051#include <sys/socket.h>
15052int
15053main ()
15054{
15055
15056 struct sockaddr t;t.sa_len = 0;
15057  ;
15058  return 0;
15059}
15060_ACEOF
15061if ac_fn_c_try_compile "$LINENO"; then :
15062  ac_cv_sa_len=yes
15063else
15064  ac_cv_sa_len=no
15065fi
15066rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15067fi
15068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sa_len" >&5
15069$as_echo "$ac_cv_sa_len" >&6; }
15070if test "$ac_cv_sa_len" = yes ;then
15071
15072$as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
15073
15074fi
15075
15076
15077
15078
15079### checks for library functions
15080### ----------------------------
15081
15082### checks for system services
15083### --------------------------
15084
15085
15086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking /dev/urandom" >&5
15087$as_echo_n "checking /dev/urandom... " >&6; }
15088if ${ac_cv_dev_urandom+:} false; then :
15089  $as_echo_n "(cached) " >&6
15090else
15091  ac_cv_dev_urandom=no
15092   if test -r /dev/urandom; then ac_cv_dev_urandom=yes; fi
15093fi
15094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dev_urandom" >&5
15095$as_echo "$ac_cv_dev_urandom" >&6; }
15096if test $ac_cv_dev_urandom = yes; then
15097
15098$as_echo "#define HAVE_DEV_URANDOM 1" >>confdefs.h
15099
15100
15101$as_echo "#define DEV_URANDOM 1" >>confdefs.h
15102
15103fi
15104
15105
15106### checks for libraries
15107### --------------------
15108
15109
15110# Beginning of SAC_SOFIA_SU
15111
15112# ======================================================================
15113# Check for features used by su
15114
15115
15116case "$target" in
15117*-*-solaris?.* )
15118
15119cat >>confdefs.h <<\_AXEOF
15120#define __EXTENSIONS__ 1
15121_AXEOF
15122
15123;;
15124esac
15125
15126# Check includes used by su includes
15127ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
15128if test "x$ac_cv_header_sys_types_h" = xyes; then :
15129
15130cat >>confdefs.h <<\_AXEOF
15131#define SU_HAVE_SYS_TYPES 1
15132_AXEOF
15133
15134fi
15135
15136
15137
15138ax_inttypes=false
15139ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
15140if test "x$ac_cv_header_stdint_h" = xyes; then :
15141
15142	ax_inttypes=true
15143
15144cat >>confdefs.h <<\_AXEOF
15145#define SU_HAVE_STDINT 1
15146_AXEOF
15147
15148fi
15149
15150
15151ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
15152if test "x$ac_cv_header_inttypes_h" = xyes; then :
15153
15154	ax_inttypes=true
15155
15156cat >>confdefs.h <<\_AXEOF
15157#define SU_HAVE_INTTYPES 1
15158_AXEOF
15159
15160fi
15161
15162
15163
15164if $ax_inttypes; then : ; else
15165	as_fn_error $? "\"No <stdint.h> or <inttypes.h> found.\"" "$LINENO" 5
15166fi
15167
15168if test "x$MINGW_ENVIRONMENT" != x1 ; then
15169  ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
15170if test "x$ac_cv_header_pthread_h" = xyes; then :
15171  HAVE_PTHREADS=1;
15172
15173cat >>confdefs.h <<\_AXEOF
15174#define SU_HAVE_PTHREADS 1
15175_AXEOF
15176
15177fi
15178
15179
15180else
15181  HAVE_PTHREADS=1;
15182
15183cat >>confdefs.h <<\_AXEOF
15184#define SU_HAVE_PTHREADS 1
15185_AXEOF
15186
15187fi
15188
15189# Check whether --enable-experimental was given.
15190if test "${enable_experimental+set}" = set; then :
15191  enableval=$enable_experimental;
15192else
15193  enable_experimental=no
15194fi
15195
15196
15197if test $enable_experimental = yes ; then
15198
15199cat >>confdefs.h <<\_AXEOF
15200#define SU_HAVE_EXPERIMENTAL 1
15201_AXEOF
15202
15203fi
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214# Check whether --enable-tag-cast was given.
15215if test "${enable_tag_cast+set}" = set; then :
15216  enableval=$enable_tag_cast;
15217else
15218  enable_tag_cast=yes
15219fi
15220
15221
15222if test "$enable_tag_cast" = "yes"; then
15223    tag_cast=1
15224else
15225    tag_cast=0
15226fi
15227
15228case "$ac_cv_c_inline" in
15229  yes)
15230cat >>confdefs.h <<\_AXEOF
15231#define su_inline static inline
15232_AXEOF
15233
15234cat >>confdefs.h <<\_AXEOF
15235#define SU_INLINE inline
15236_AXEOF
15237
15238cat >>confdefs.h <<\_AXEOF
15239#define SU_HAVE_INLINE 1
15240_AXEOF
15241
15242cat >>confdefs.h <<_ACEOF
15243#define SU_INLINE_TAG_CAST $tag_cast
15244_ACEOF
15245  ;;
15246  no | "" )
15247
15248cat >>confdefs.h <<\_AXEOF
15249#define su_inline static
15250_AXEOF
15251
15252cat >>confdefs.h <<\_AXEOF
15253#define SU_INLINE /*inline*/
15254_AXEOF
15255
15256cat >>confdefs.h <<\_AXEOF
15257#define SU_HAVE_INLINE 0
15258_AXEOF
15259
15260cat >>confdefs.h <<\_AXEOF
15261#define SU_INLINE_TAG_CAST 0
15262_AXEOF
15263  ;;
15264  *)
15265cat >>confdefs.h <<_ACEOF
15266#define su_inline static $ac_cv_c_inline
15267_ACEOF
15268
15269cat >>confdefs.h <<_ACEOF
15270#define SU_INLINE $ac_cv_c_inline
15271_ACEOF
15272
15273cat >>confdefs.h <<\_AXEOF
15274#define SU_HAVE_INLINE 1
15275_AXEOF
15276
15277cat >>confdefs.h <<_ACEOF
15278#define SU_INLINE_TAG_CAST $tag_cast
15279_ACEOF
15280  ;;
15281esac
15282
15283# Check whether --enable-size-compat was given.
15284if test "${enable_size_compat+set}" = set; then :
15285  enableval=$enable_size_compat;
15286else
15287  enable_size_compat=yes
15288fi
15289
15290
15291if test X$enable_size_compat != Xyes; then
15292
15293cat >>confdefs.h <<\_AXEOF
15294#define SOFIA_ISIZE_T size_t
15295_AXEOF
15296
15297cat >>confdefs.h <<\_AXEOF
15298#define ISIZE_MAX SIZE_MAX
15299_AXEOF
15300
15301cat >>confdefs.h <<\_AXEOF
15302#define SOFIA_ISSIZE_T ssize_t
15303_AXEOF
15304
15305cat >>confdefs.h <<\_AXEOF
15306#define ISSIZE_MAX SSIZE_MAX
15307_AXEOF
15308
15309cat >>confdefs.h <<\_AXEOF
15310#define SOFIA_USIZE_T size_t
15311_AXEOF
15312
15313cat >>confdefs.h <<\_AXEOF
15314#define USIZE_MAX SIZE_MAX
15315_AXEOF
15316else
15317
15318cat >>confdefs.h <<\_AXEOF
15319#define SOFIA_ISIZE_T int
15320_AXEOF
15321
15322cat >>confdefs.h <<\_AXEOF
15323#define ISIZE_MAX INT_MAX
15324_AXEOF
15325
15326cat >>confdefs.h <<\_AXEOF
15327#define SOFIA_ISSIZE_T int
15328_AXEOF
15329
15330cat >>confdefs.h <<\_AXEOF
15331#define ISSIZE_MAX INT_MAX
15332_AXEOF
15333
15334cat >>confdefs.h <<\_AXEOF
15335#define SOFIA_USIZE_T unsigned
15336_AXEOF
15337
15338cat >>confdefs.h <<\_AXEOF
15339#define USIZE_MAX UINT_MAX
15340_AXEOF
15341fi
15342
15343
15344# Check whether --enable-corefoundation was given.
15345if test "${enable_corefoundation+set}" = set; then :
15346  enableval=$enable_corefoundation;
15347else
15348  enable_corefoundation=no
15349fi
15350
15351 if test $enable_corefoundation = yes; then
15352  COREFOUNDATION_TRUE=
15353  COREFOUNDATION_FALSE='#'
15354else
15355  COREFOUNDATION_TRUE='#'
15356  COREFOUNDATION_FALSE=
15357fi
15358
15359
15360if test $enable_corefoundation = yes ; then
15361
15362cat >>confdefs.h <<\_AXEOF
15363#define SU_HAVE_OSX_CF_API 1
15364_AXEOF
15365
15366   LIBS="-framework CoreFoundation -framework SystemConfiguration $LIBS"
15367fi
15368
15369
15370### ======================================================================
15371### Test if we have stack suitable for handling tags directly
15372###
15373
15374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stack suitable for tags" >&5
15375$as_echo_n "checking for stack suitable for tags... " >&6; }
15376if ${ac_cv_tagstack+:} false; then :
15377  $as_echo_n "(cached) " >&6
15378else
15379
15380ac_cv_tagstack=no
15381
15382if test "$cross_compiling" = yes; then :
15383
15384case "$target" in
15385i?86-*-* ) ac_cv_tagstack=yes ;;
15386* ) ac_cv_tagstack=no ;;
15387esac
15388
15389else
15390  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391/* end confdefs.h.  */
15392
15393#if HAVE_INTTYPES_H
15394#include <inttypes.h>
15395#endif
15396#if HAVE_STDINT_H
15397#include <stdint.h>
15398#endif
15399
15400#include <stdarg.h>
15401
15402typedef void *tp;
15403typedef intptr_t tv;
15404
15405int test1(tv l, tv h, ...)
15406{
15407  va_list ap;
15408  tv i, *p = &l;
15409
15410  va_start(ap, h);
15411
15412  if (*p++ != l || *p++ != h) return 1;
15413
15414  for (i = l; i <= h; i++) {
15415    if (*p++ != i)
15416      return 1;
15417  }
15418
15419  for (i = l; i <= h; i++) {
15420    if (va_arg(ap, tv) != i)
15421      return 1;
15422  }
15423
15424  va_end(ap);
15425
15426  return 0;
15427}
15428
15429int main(int avc, char **av)
15430{
15431  return test1((tv)1, (tv)10,
15432	       (tv)1, (tv)2, (tv)3, (tv)4, (tv)5,
15433	       (tv)6, (tv)7, (tv)8, (tv)9, (tv)10);
15434}
15435
15436_ACEOF
15437if ac_fn_c_try_run "$LINENO"; then :
15438  ac_cv_tagstack=yes
15439else
15440  ac_cv_tagstack=no
15441fi
15442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15443  conftest.$ac_objext conftest.beam conftest.$ac_ext
15444fi
15445
15446fi
15447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tagstack" >&5
15448$as_echo "$ac_cv_tagstack" >&6; }
15449
15450if test $ac_cv_tagstack = yes ; then
15451
15452cat >>confdefs.h <<\_AXEOF
15453#define SU_HAVE_TAGSTACK 1
15454_AXEOF
15455
15456fi
15457
15458### ======================================================================
15459### Test if free(0) fails
15460###
15461
15462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for graceful free(0)" >&5
15463$as_echo_n "checking for graceful free(0)... " >&6; }
15464if ${ac_cv_free_null+:} false; then :
15465  $as_echo_n "(cached) " >&6
15466else
15467
15468ac_cv_free_null=no
15469
15470if test "$cross_compiling" = yes; then :
15471  ac_cv_free_null=no
15472else
15473  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15474/* end confdefs.h.  */
15475
15476#include <stdlib.h>
15477
15478int main(int avc, char **av)
15479{
15480	free(0);
15481	return 0;
15482}
15483
15484_ACEOF
15485if ac_fn_c_try_run "$LINENO"; then :
15486  ac_cv_free_null=yes
15487else
15488  ac_cv_free_null=no
15489fi
15490rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15491  conftest.$ac_objext conftest.beam conftest.$ac_ext
15492fi
15493
15494fi
15495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_free_null" >&5
15496$as_echo "$ac_cv_free_null" >&6; }
15497
15498if test $ac_cv_free_null = yes ; then
15499
15500$as_echo "#define HAVE_FREE_NULL 1" >>confdefs.h
15501
15502fi
15503
15504
15505
15506if test "$ac_cv_sa_len" = yes ;then
15507
15508cat >>confdefs.h <<\_AXEOF
15509#define SU_HAVE_SOCKADDR_SA_LEN 1
15510_AXEOF
15511
15512fi
15513
15514# Check whether --enable-ip6 was given.
15515if test "${enable_ip6+set}" = set; then :
15516  enableval=$enable_ip6;
15517else
15518  enable_ip6=yes
15519fi
15520
15521
15522if ! test no$enable_ip6 = nono ; then
15523
15524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sockaddr_in6" >&5
15525$as_echo_n "checking for sockaddr_in6... " >&6; }
15526if ${ac_cv_sin6+:} false; then :
15527  $as_echo_n "(cached) " >&6
15528else
15529  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530/* end confdefs.h.  */
15531#include <netinet/in.h>
15532
15533_ACEOF
15534if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15535  $EGREP "struct sockaddr_in6" >/dev/null 2>&1; then :
15536  ac_cv_sin6=yes
15537else
15538  ac_cv_sin6=no
15539fi
15540rm -f conftest*
15541
15542fi
15543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sin6" >&5
15544$as_echo "$ac_cv_sin6" >&6; }
15545if test $ac_cv_sin6 = yes ;then
15546
15547$as_echo "#define HAVE_SIN6 1" >>confdefs.h
15548
15549fi
15550
15551case $ac_cv_sin6 in
15552yes)
15553cat >>confdefs.h <<\_AXEOF
15554#define SU_HAVE_IN6 1
15555_AXEOF
15556 ;;
15557 no) ;;
15558  *) as_fn_error $? "Inconsistent struct sockaddr_sin6 test" "$LINENO" 5 ;;
15559esac
15560fi
15561
15562for ac_header in unistd.h sys/time.h
15563do :
15564  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15567  cat >>confdefs.h <<_ACEOF
15568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15569_ACEOF
15570
15571fi
15572
15573done
15574
15575
15576for ac_header in fcntl.h dirent.h
15577do :
15578  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15579ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15580if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15581  cat >>confdefs.h <<_ACEOF
15582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15583_ACEOF
15584
15585fi
15586
15587done
15588
15589
15590for ac_header in winsock2.h
15591do :
15592  ac_fn_c_check_header_mongrel "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
15593if test "x$ac_cv_header_winsock2_h" = xyes; then :
15594  cat >>confdefs.h <<_ACEOF
15595#define HAVE_WINSOCK2_H 1
15596_ACEOF
15597
15598
15599$as_echo "#define HAVE_WIN32 1" >>confdefs.h
15600
15601
15602cat >>confdefs.h <<\_AXEOF
15603#define SU_HAVE_WINSOCK 1
15604_AXEOF
15605
15606
15607cat >>confdefs.h <<\_AXEOF
15608#define SU_HAVE_WINSOCK2 1
15609_AXEOF
15610
15611
15612cat >>confdefs.h <<\_AXEOF
15613#define SU_HAVE_SOCKADDR_STORAGE 1
15614_AXEOF
15615
15616
15617$as_echo "#define HAVE_ADDRINFO 1" >>confdefs.h
15618
15619
15620$as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
15621
15622
15623$as_echo "#define HAVE_FREEADDRINFO 1" >>confdefs.h
15624
15625
15626cat >>confdefs.h <<\_AXEOF
15627#define SU_HAVE_ADDRINFO 1
15628_AXEOF
15629
15630  for ac_header in windef.h ws2tcpip.h
15631do :
15632  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15633ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15634if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15635  cat >>confdefs.h <<_ACEOF
15636#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637_ACEOF
15638
15639fi
15640
15641done
15642
15643  for ac_header in iphlpapi.h
15644do :
15645  ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#if HAVE_WINDEF_H
15646#include <windef.h>
15647#include <winbase.h>
15648#endif
15649
15650"
15651if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
15652  cat >>confdefs.h <<_ACEOF
15653#define HAVE_IPHLPAPI_H 1
15654_ACEOF
15655
15656
15657$as_echo "#define HAVE_INTERFACE_INFO_EX 1" >>confdefs.h
15658
15659
15660$as_echo "#define HAVE_SIO_ADDRESS_LIST_QUERY 1" >>confdefs.h
15661
15662
15663fi
15664
15665done
15666
15667
15668$as_echo "#define HAVE_FILETIME 1" >>confdefs.h
15669
15670
15671else
15672
15673
15674
15675cat >>confdefs.h <<\_AXEOF
15676#define SU_HAVE_BSDSOCK 1
15677_AXEOF
15678
15679for ac_header in sys/socket.h sys/ioctl.h sys/filio.h sys/sockio.h \
15680		  sys/select.h sys/epoll.h sys/devpoll.h
15681do :
15682  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15683ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15685  cat >>confdefs.h <<_ACEOF
15686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15687_ACEOF
15688
15689fi
15690
15691done
15692
15693for ac_header in netinet/in.h arpa/inet.h netdb.h \
15694                  net/if.h net/if_types.h ifaddr.h netpacket/packet.h
15695do :
15696  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
15698#include <sys/types.h>
15699#include <sys/socket.h>
15700"
15701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15702  cat >>confdefs.h <<_ACEOF
15703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15704_ACEOF
15705
15706fi
15707
15708done
15709
15710
15711ac_fn_c_check_decl "$LINENO" "MSG_TRUNC" "ac_cv_have_decl_MSG_TRUNC" "
15712#include <sys/types.h>
15713#include <sys/socket.h>
15714"
15715if test "x$ac_cv_have_decl_MSG_TRUNC" = xyes; then :
15716
15717$as_echo "#define HAVE_MSG_TRUNC 1" >>confdefs.h
15718
15719fi
15720
15721
15722ac_fn_c_check_decl "$LINENO" "SO_RCVBUFFORCE" "ac_cv_have_decl_SO_RCVBUFFORCE" "
15723#include <sys/types.h>
15724#include <sys/socket.h>
15725"
15726if test "x$ac_cv_have_decl_SO_RCVBUFFORCE" = xyes; then :
15727
15728$as_echo "#define HAVE_SO_RCVBUFFORCE 1" >>confdefs.h
15729
15730fi
15731
15732
15733ac_fn_c_check_decl "$LINENO" "SO_SNDBUFFORCE" "ac_cv_have_decl_SO_SNDBUFFORCE" "
15734#include <sys/types.h>
15735#include <sys/socket.h>
15736"
15737if test "x$ac_cv_have_decl_SO_SNDBUFFORCE" = xyes; then :
15738
15739$as_echo "#define HAVE_SO_SNDBUFFORCE 1" >>confdefs.h
15740
15741fi
15742
15743
15744ac_fn_c_check_decl "$LINENO" "IP_ADD_MEMBERSHIP" "ac_cv_have_decl_IP_ADD_MEMBERSHIP" "
15745#include <sys/types.h>
15746#include <sys/socket.h>
15747#include <netinet/in.h>
15748"
15749if test "x$ac_cv_have_decl_IP_ADD_MEMBERSHIP" = xyes; then :
15750
15751$as_echo "#define HAVE_IP_ADD_MEMBERSHIP 1" >>confdefs.h
15752
15753fi
15754
15755
15756ac_fn_c_check_decl "$LINENO" "IP_MULTICAST_LOOP" "ac_cv_have_decl_IP_MULTICAST_LOOP" "
15757#include <sys/types.h>
15758#include <sys/socket.h>
15759#include <netinet/in.h>
15760"
15761if test "x$ac_cv_have_decl_IP_MULTICAST_LOOP" = xyes; then :
15762
15763$as_echo "#define HAVE_IP_MULTICAST_LOOP 1" >>confdefs.h
15764
15765fi
15766
15767
15768ac_fn_c_check_decl "$LINENO" "IP_MTU_DISCOVER" "ac_cv_have_decl_IP_MTU_DISCOVER" "
15769#include <sys/types.h>
15770#include <sys/socket.h>
15771#include <netinet/in.h>
15772"
15773if test "x$ac_cv_have_decl_IP_MTU_DISCOVER" = xyes; then :
15774
15775$as_echo "#define HAVE_IP_MTU_DISCOVER 1" >>confdefs.h
15776
15777fi
15778
15779
15780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct addrinfo" >&5
15781$as_echo_n "checking for struct addrinfo... " >&6; }
15782if ${ac_cv_struct_addrinfo+:} false; then :
15783  $as_echo_n "(cached) " >&6
15784else
15785
15786ac_cv_struct_addrinfo=no
15787if test "$ac_cv_header_sys_socket_h" = yes; then
15788  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15789/* end confdefs.h.  */
15790#include <netdb.h>
15791
15792_ACEOF
15793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15794  $EGREP "struct.+addrinfo" >/dev/null 2>&1; then :
15795
15796  ac_cv_struct_addrinfo=yes
15797fi
15798rm -f conftest*
15799
15800else
15801  ac_cv_struct_addrinfo='sys/socket.h missing'
15802fi
15803fi
15804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_addrinfo" >&5
15805$as_echo "$ac_cv_struct_addrinfo" >&6; }
15806
15807if test "$ac_cv_struct_addrinfo" = yes; then
15808
15809cat >>confdefs.h <<\_AXEOF
15810#define SU_HAVE_ADDRINFO 1
15811_AXEOF
15812
15813fi
15814
15815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_storage" >&5
15816$as_echo_n "checking for struct sockaddr_storage... " >&6; }
15817if ${ac_cv_struct_sockaddr_storage+:} false; then :
15818  $as_echo_n "(cached) " >&6
15819else
15820
15821ac_cv_struct_sockaddr_storage=no
15822if test "$ac_cv_header_sys_socket_h" = yes; then
15823  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15824/* end confdefs.h.  */
15825#include <sys/socket.h>
15826
15827_ACEOF
15828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15829  $EGREP "struct.+sockaddr_storage" >/dev/null 2>&1; then :
15830
15831  ac_cv_struct_sockaddr_storage=yes
15832fi
15833rm -f conftest*
15834
15835else
15836  ac_cv_struct_sockaddr_storage='sys/socket.h missing'
15837fi
15838fi
15839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_storage" >&5
15840$as_echo "$ac_cv_struct_sockaddr_storage" >&6; }
15841if test "$ac_cv_struct_sockaddr_storage" = yes; then
15842
15843cat >>confdefs.h <<\_AXEOF
15844#define SU_HAVE_SOCKADDR_STORAGE 1
15845_AXEOF
15846
15847fi
15848
15849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ifr_index in struct ifreq" >&5
15850$as_echo_n "checking for field ifr_index in struct ifreq... " >&6; }
15851if ${ac_cv_struct_ifreq_ifr_index+:} false; then :
15852  $as_echo_n "(cached) " >&6
15853else
15854
15855ac_cv_struct_ifreq_ifr_index=no
15856if test "1${ac_cv_header_arpa_inet_h}2${ac_cv_header_netdb_h}3${ac_cv_header_sys_socket_h}4${ac_cv_header_net_if_h}" = 1yes2yes3yes4yes; then
15857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15858/* end confdefs.h.  */
15859#include <sys/types.h>
15860#include <arpa/inet.h>
15861#include <netdb.h>
15862#include <sys/socket.h>
15863#include <net/if.h>
15864int
15865main ()
15866{
15867
15868struct ifreq ifreq; int index; index = ifreq.ifr_index;
15869
15870  ;
15871  return 0;
15872}
15873_ACEOF
15874if ac_fn_c_try_compile "$LINENO"; then :
15875  ac_cv_struct_ifreq_ifr_index=yes
15876fi
15877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15878else
15879  ac_cv_struct_ifreq_ifr_index='net/if.h missing'
15880fi # arpa/inet.h && netdb.h && sys/socket.h && net/if.h
15881
15882fi
15883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ifreq_ifr_index" >&5
15884$as_echo "$ac_cv_struct_ifreq_ifr_index" >&6; }
15885if test "$ac_cv_struct_ifreq_ifr_index" = yes ; then
15886  :
15887
15888$as_echo "#define HAVE_IFR_INDEX 1" >>confdefs.h
15889
15890else
15891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for field ifr_ifindex in struct ifreq" >&5
15892$as_echo_n "checking for field ifr_ifindex in struct ifreq... " >&6; }
15893if ${ac_cv_struct_ifreq_ifr_ifindex+:} false; then :
15894  $as_echo_n "(cached) " >&6
15895else
15896
15897ac_cv_struct_ifreq_ifr_ifindex=no
15898if test "1${ac_cv_header_arpa_inet_h}2${ac_cv_header_netdb_h}3${ac_cv_header_sys_socket_h}4${ac_cv_header_net_if_h}" = 1yes2yes3yes4yes; then
15899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15900/* end confdefs.h.  */
15901#include <sys/types.h>
15902#include <arpa/inet.h>
15903#include <netdb.h>
15904#include <sys/socket.h>
15905#include <net/if.h>
15906int
15907main ()
15908{
15909
15910struct ifreq ifreq; int index; index = ifreq.ifr_ifindex;
15911
15912  ;
15913  return 0;
15914}
15915_ACEOF
15916if ac_fn_c_try_compile "$LINENO"; then :
15917  ac_cv_struct_ifreq_ifr_ifindex=yes
15918fi
15919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15920else
15921  ac_cv_struct_ifreq_ifr_ifindex='net/if.h missing'
15922fi # arpa/inet.h && netdb.h && sys/socket.h && net/if.h
15923
15924fi
15925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ifreq_ifr_ifindex" >&5
15926$as_echo "$ac_cv_struct_ifreq_ifr_ifindex" >&6; }
15927if test "$ac_cv_struct_ifreq_ifr_ifindex" = yes; then
15928  :
15929
15930$as_echo "#define HAVE_IFR_IFINDEX 1" >>confdefs.h
15931
15932fi
15933
15934fi # ifr_index in struct ifreq
15935
15936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ifconf" >&5
15937$as_echo_n "checking for struct ifconf... " >&6; }
15938if ${ac_cv_struct_ifconf+:} false; then :
15939  $as_echo_n "(cached) " >&6
15940else
15941
15942ac_cv_struct_ifconf=no
15943if test "$ac_cv_header_net_if_h" = yes; then
15944  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945/* end confdefs.h.  */
15946#include <net/if.h>
15947
15948_ACEOF
15949if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15950  $EGREP "struct.+ifconf" >/dev/null 2>&1; then :
15951  ac_cv_struct_ifconf=yes
15952fi
15953rm -f conftest*
15954
15955else
15956  ac_cv_struct_ifconf='net/if.h missing'
15957fi
15958fi
15959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_ifconf" >&5
15960$as_echo "$ac_cv_struct_ifconf" >&6; }
15961if test "$ac_cv_struct_ifconf" = yes; then
15962
15963$as_echo "#define HAVE_IFCONF 1" >>confdefs.h
15964
15965fi
15966
15967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl SIOCGIFNUM" >&5
15968$as_echo_n "checking for ioctl SIOCGIFNUM... " >&6; }
15969if ${ac_cv_ioctl_siocgifnum+:} false; then :
15970  $as_echo_n "(cached) " >&6
15971else
15972
15973ac_cv_ioctl_siocgifnum=no
15974if test "$ac_cv_header_sys_sockio_h" = yes; then
15975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15976/* end confdefs.h.  */
15977
15978#include <sys/sockio.h>
15979#ifdef SIOCGIFNUM
15980  yes
15981#endif
15982
15983_ACEOF
15984if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15985  $EGREP "yes" >/dev/null 2>&1; then :
15986  ac_cv_ioctl_siocgifnum=yes
15987fi
15988rm -f conftest*
15989
15990else
15991  ac_cv_ioctl_siocgifnum='sys/sockio.h missing'
15992fi
15993fi
15994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_ioctl_siocgifnum" >&5
15995$as_echo "$ac_cv_ioctl_siocgifnum" >&6; }
15996if test "$ac_cv_ioctl_siocgifnum" = yes; then
15997  HAVE_IFNUM=1
15998
15999$as_echo "#define HAVE_IFNUM 1" >>confdefs.h
16000
16001else
16002  HAVE_IFNUM=0
16003fi
16004
16005
16006fi
16007
16008done
16009
16010
16011# ===========================================================================
16012# Checks for libraries
16013# ===========================================================================
16014
16015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16016$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16017if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16018  $as_echo_n "(cached) " >&6
16019else
16020  ac_check_lib_save_LIBS=$LIBS
16021LIBS="-lpthread  $LIBS"
16022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16023/* end confdefs.h.  */
16024
16025/* Override any GCC internal prototype to avoid an error.
16026   Use char because int might match the return type of a GCC
16027   builtin and then its argument prototype would still apply.  */
16028#ifdef __cplusplus
16029extern "C"
16030#endif
16031char pthread_create ();
16032int
16033main ()
16034{
16035return pthread_create ();
16036  ;
16037  return 0;
16038}
16039_ACEOF
16040if ac_fn_c_try_link "$LINENO"; then :
16041  ac_cv_lib_pthread_pthread_create=yes
16042else
16043  ac_cv_lib_pthread_pthread_create=no
16044fi
16045rm -f core conftest.err conftest.$ac_objext \
16046    conftest$ac_exeext conftest.$ac_ext
16047LIBS=$ac_check_lib_save_LIBS
16048fi
16049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16050$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16051if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16052  cat >>confdefs.h <<_ACEOF
16053#define HAVE_LIBPTHREAD 1
16054_ACEOF
16055
16056  LIBS="-lpthread $LIBS"
16057
16058fi
16059
16060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
16061$as_echo_n "checking for socketpair in -lsocket... " >&6; }
16062if ${ac_cv_lib_socket_socketpair+:} false; then :
16063  $as_echo_n "(cached) " >&6
16064else
16065  ac_check_lib_save_LIBS=$LIBS
16066LIBS="-lsocket -lnsl $LIBS"
16067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16068/* end confdefs.h.  */
16069
16070/* Override any GCC internal prototype to avoid an error.
16071   Use char because int might match the return type of a GCC
16072   builtin and then its argument prototype would still apply.  */
16073#ifdef __cplusplus
16074extern "C"
16075#endif
16076char socketpair ();
16077int
16078main ()
16079{
16080return socketpair ();
16081  ;
16082  return 0;
16083}
16084_ACEOF
16085if ac_fn_c_try_link "$LINENO"; then :
16086  ac_cv_lib_socket_socketpair=yes
16087else
16088  ac_cv_lib_socket_socketpair=no
16089fi
16090rm -f core conftest.err conftest.$ac_objext \
16091    conftest$ac_exeext conftest.$ac_ext
16092LIBS=$ac_check_lib_save_LIBS
16093fi
16094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
16095$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
16096if test "x$ac_cv_lib_socket_socketpair" = xyes; then :
16097  cat >>confdefs.h <<_ACEOF
16098#define HAVE_LIBSOCKET 1
16099_ACEOF
16100
16101  LIBS="-lsocket $LIBS"
16102
16103fi
16104
16105
16106
16107# Check whether --with-rt was given.
16108if test "${with_rt+set}" = set; then :
16109  withval=$with_rt;
16110fi
16111
16112if test "${with_rt}" != no; then
16113	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
16114$as_echo_n "checking for library containing clock_gettime... " >&6; }
16115if ${ac_cv_search_clock_gettime+:} false; then :
16116  $as_echo_n "(cached) " >&6
16117else
16118  ac_func_search_save_LIBS=$LIBS
16119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16120/* end confdefs.h.  */
16121
16122/* Override any GCC internal prototype to avoid an error.
16123   Use char because int might match the return type of a GCC
16124   builtin and then its argument prototype would still apply.  */
16125#ifdef __cplusplus
16126extern "C"
16127#endif
16128char clock_gettime ();
16129int
16130main ()
16131{
16132return clock_gettime ();
16133  ;
16134  return 0;
16135}
16136_ACEOF
16137for ac_lib in '' rt; do
16138  if test -z "$ac_lib"; then
16139    ac_res="none required"
16140  else
16141    ac_res=-l$ac_lib
16142    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16143  fi
16144  if ac_fn_c_try_link "$LINENO"; then :
16145  ac_cv_search_clock_gettime=$ac_res
16146fi
16147rm -f core conftest.err conftest.$ac_objext \
16148    conftest$ac_exeext
16149  if ${ac_cv_search_clock_gettime+:} false; then :
16150  break
16151fi
16152done
16153if ${ac_cv_search_clock_gettime+:} false; then :
16154
16155else
16156  ac_cv_search_clock_gettime=no
16157fi
16158rm conftest.$ac_ext
16159LIBS=$ac_func_search_save_LIBS
16160fi
16161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
16162$as_echo "$ac_cv_search_clock_gettime" >&6; }
16163ac_res=$ac_cv_search_clock_gettime
16164if test "$ac_res" != no; then :
16165  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16166
16167fi
16168
16169        for ac_func in clock_gettime clock_getcpuclockid
16170do :
16171  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16172ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16173if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16174  cat >>confdefs.h <<_ACEOF
16175#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16176_ACEOF
16177
16178fi
16179done
16180
16181        ac_fn_c_check_decl "$LINENO" "CLOCK_MONOTONIC" "ac_cv_have_decl_CLOCK_MONOTONIC" "
16182#include <time.h>
16183"
16184if test "x$ac_cv_have_decl_CLOCK_MONOTONIC" = xyes; then :
16185
16186$as_echo "#define HAVE_CLOCK_MONOTONIC 1" >>confdefs.h
16187
16188fi
16189
16190fi
16191
16192# No GLib path explicitly defined, use pkg-config
16193
16194# Check whether --with-glib was given.
16195if test "${with_glib+set}" = set; then :
16196  withval=$with_glib;
16197case "$with_glib" in
16198yes | "" ) with_glib=2.0 ;;
16199esac
16200
16201else
16202  with_glib=2.0
16203fi
16204
16205
16206
16207# Check whether --with-glib-dir was given.
16208if test "${with_glib_dir+set}" = set; then :
16209  withval=$with_glib_dir;
16210else
16211  with_glib_dir="pkg-config"
16212fi
16213
16214
16215if test "$with_glib" = no || test "$with_glib_dir" = "no" ; then
16216
16217  : # No glib
16218
16219elif test "$with_glib_dir" = "pkg-config" ; then
16220
16221
16222  succeeded=no
16223
16224  if test -z "$PKG_CONFIG"; then
16225    # Extract the first word of "pkg-config", so it can be a program name with args.
16226set dummy pkg-config; ac_word=$2
16227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16228$as_echo_n "checking for $ac_word... " >&6; }
16229if ${ac_cv_path_PKG_CONFIG+:} false; then :
16230  $as_echo_n "(cached) " >&6
16231else
16232  case $PKG_CONFIG in
16233  [\\/]* | ?:[\\/]*)
16234  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
16235  ;;
16236  *)
16237  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16238for as_dir in $PATH
16239do
16240  IFS=$as_save_IFS
16241  test -z "$as_dir" && as_dir=.
16242    for ac_exec_ext in '' $ac_executable_extensions; do
16243  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16244    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
16245    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16246    break 2
16247  fi
16248done
16249  done
16250IFS=$as_save_IFS
16251
16252  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
16253  ;;
16254esac
16255fi
16256PKG_CONFIG=$ac_cv_path_PKG_CONFIG
16257if test -n "$PKG_CONFIG"; then
16258  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
16259$as_echo "$PKG_CONFIG" >&6; }
16260else
16261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16262$as_echo "no" >&6; }
16263fi
16264
16265
16266  fi
16267
16268  if test "$PKG_CONFIG" = "no" ; then
16269     echo "*** The pkg-config script could not be found. Make sure it is"
16270     echo "*** in your path, or set the PKG_CONFIG environment variable"
16271     echo "*** to the full path to pkg-config."
16272     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
16273  else
16274     PKG_CONFIG_MIN_VERSION=0.9.0
16275     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
16276        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-$with_glib" >&5
16277$as_echo_n "checking for glib-$with_glib... " >&6; }
16278
16279        if $PKG_CONFIG --exists "glib-$with_glib" ; then
16280            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16281$as_echo "yes" >&6; }
16282            succeeded=yes
16283
16284            { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
16285$as_echo_n "checking GLIB_CFLAGS... " >&6; }
16286            GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-$with_glib"`
16287            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
16288$as_echo "$GLIB_CFLAGS" >&6; }
16289
16290            { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
16291$as_echo_n "checking GLIB_LIBS... " >&6; }
16292            GLIB_LIBS=`$PKG_CONFIG --libs "glib-$with_glib"`
16293            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
16294$as_echo "$GLIB_LIBS" >&6; }
16295        else
16296            GLIB_CFLAGS=""
16297            GLIB_LIBS=""
16298            ## If we have a custom action on failure, don't print errors, but
16299            ## do set a variable so people can do so.
16300            GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-$with_glib"`
16301
16302        fi
16303
16304
16305
16306     else
16307        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
16308        echo "*** See http://www.freedesktop.org/software/pkgconfig"
16309     fi
16310  fi
16311
16312  if test $succeeded = yes; then
16313     HAVE_GLIB=yes
16314  else
16315     HAVE_GLIB=no
16316  fi
16317
16318
16319else # GLib path is explicitly defined
16320
16321  gprefix=$with_glib_dir
16322  GLIB_VERSION="$with_glib"
16323  GLIBXXX=glib-$with_glib
16324
16325  if test "$gprefix" = "yes" ; then
16326    for gprefix in /usr /usr/local /opt/$GLIBXXX
16327    do
16328  	test -d $gprefix/include/$GLIBXXX && break
16329    done
16330  fi
16331
16332  if ! test -d $gprefix/include/$GLIBXXX ; then
16333    as_fn_error $? "\"No $GLIBXXX in --with-glib=$with_glib_dir\"" "$LINENO" 5
16334  else
16335    exec_gprefix=${gprefix}
16336    glibdir=${exec_gprefix}/lib
16337    gincludedir=${gprefix}/include
16338
16339    # glib_genmarshal=glib-genmarshal
16340    # glib_mkenums=glib-mkenums
16341
16342    HAVE_GLIB=yes
16343
16344    if test "x$MINGW_ENVIRONMENT" = x1 ; then
16345      GLIB_LIBS="${glibdir}/lib$GLIBXXX.dll.a ${glibdir}/libintl.a ${glibdir}/libiconv.a"
16346    else
16347      GLIB_LIBS="-L${glibdir} -l$GLIBXXX -lintl -liconv"
16348    fi
16349    GLIB_CFLAGS="-I${gincludedir}/$GLIBXXX -I${glibdir}/$GLIBXXX/include"
16350  fi
16351
16352fi # GLib path is explicitly defined
16353
16354if test "x$HAVE_GLIB" = xyes ; then
16355  SOFIA_GLIB_PKG_REQUIRES="`test -n "$SOFIA_GLIB_PKG_REQUIRES" && echo "$SOFIA_GLIB_PKG_REQUIRES, "`glib-2.0"
16356fi
16357
16358 if test "x$HAVE_GLIB" = xyes; then
16359  HAVE_GLIB_TRUE=
16360  HAVE_GLIB_FALSE='#'
16361else
16362  HAVE_GLIB_TRUE='#'
16363  HAVE_GLIB_FALSE=
16364fi
16365
16366
16367
16368
16369
16370
16371# ===========================================================================
16372# Checks for library functions.
16373# ===========================================================================
16374
16375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
16376$as_echo_n "checking for library containing socket... " >&6; }
16377if ${ac_cv_search_socket+:} false; then :
16378  $as_echo_n "(cached) " >&6
16379else
16380  ac_func_search_save_LIBS=$LIBS
16381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382/* end confdefs.h.  */
16383
16384/* Override any GCC internal prototype to avoid an error.
16385   Use char because int might match the return type of a GCC
16386   builtin and then its argument prototype would still apply.  */
16387#ifdef __cplusplus
16388extern "C"
16389#endif
16390char socket ();
16391int
16392main ()
16393{
16394return socket ();
16395  ;
16396  return 0;
16397}
16398_ACEOF
16399for ac_lib in '' xnet socket; do
16400  if test -z "$ac_lib"; then
16401    ac_res="none required"
16402  else
16403    ac_res=-l$ac_lib
16404    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16405  fi
16406  if ac_fn_c_try_link "$LINENO"; then :
16407  ac_cv_search_socket=$ac_res
16408fi
16409rm -f core conftest.err conftest.$ac_objext \
16410    conftest$ac_exeext
16411  if ${ac_cv_search_socket+:} false; then :
16412  break
16413fi
16414done
16415if ${ac_cv_search_socket+:} false; then :
16416
16417else
16418  ac_cv_search_socket=no
16419fi
16420rm conftest.$ac_ext
16421LIBS=$ac_func_search_save_LIBS
16422fi
16423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
16424$as_echo "$ac_cv_search_socket" >&6; }
16425ac_res=$ac_cv_search_socket
16426if test "$ac_res" != no; then :
16427  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16428
16429fi
16430
16431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntop" >&5
16432$as_echo_n "checking for library containing inet_ntop... " >&6; }
16433if ${ac_cv_search_inet_ntop+:} false; then :
16434  $as_echo_n "(cached) " >&6
16435else
16436  ac_func_search_save_LIBS=$LIBS
16437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438/* end confdefs.h.  */
16439
16440/* Override any GCC internal prototype to avoid an error.
16441   Use char because int might match the return type of a GCC
16442   builtin and then its argument prototype would still apply.  */
16443#ifdef __cplusplus
16444extern "C"
16445#endif
16446char inet_ntop ();
16447int
16448main ()
16449{
16450return inet_ntop ();
16451  ;
16452  return 0;
16453}
16454_ACEOF
16455for ac_lib in '' socket nsl; do
16456  if test -z "$ac_lib"; then
16457    ac_res="none required"
16458  else
16459    ac_res=-l$ac_lib
16460    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16461  fi
16462  if ac_fn_c_try_link "$LINENO"; then :
16463  ac_cv_search_inet_ntop=$ac_res
16464fi
16465rm -f core conftest.err conftest.$ac_objext \
16466    conftest$ac_exeext
16467  if ${ac_cv_search_inet_ntop+:} false; then :
16468  break
16469fi
16470done
16471if ${ac_cv_search_inet_ntop+:} false; then :
16472
16473else
16474  ac_cv_search_inet_ntop=no
16475fi
16476rm conftest.$ac_ext
16477LIBS=$ac_func_search_save_LIBS
16478fi
16479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntop" >&5
16480$as_echo "$ac_cv_search_inet_ntop" >&6; }
16481ac_res=$ac_cv_search_inet_ntop
16482if test "$ac_res" != no; then :
16483  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16484
16485fi
16486
16487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getipnodebyname" >&5
16488$as_echo_n "checking for library containing getipnodebyname... " >&6; }
16489if ${ac_cv_search_getipnodebyname+:} false; then :
16490  $as_echo_n "(cached) " >&6
16491else
16492  ac_func_search_save_LIBS=$LIBS
16493cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16494/* end confdefs.h.  */
16495
16496/* Override any GCC internal prototype to avoid an error.
16497   Use char because int might match the return type of a GCC
16498   builtin and then its argument prototype would still apply.  */
16499#ifdef __cplusplus
16500extern "C"
16501#endif
16502char getipnodebyname ();
16503int
16504main ()
16505{
16506return getipnodebyname ();
16507  ;
16508  return 0;
16509}
16510_ACEOF
16511for ac_lib in '' xnet socket nsl; do
16512  if test -z "$ac_lib"; then
16513    ac_res="none required"
16514  else
16515    ac_res=-l$ac_lib
16516    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16517  fi
16518  if ac_fn_c_try_link "$LINENO"; then :
16519  ac_cv_search_getipnodebyname=$ac_res
16520fi
16521rm -f core conftest.err conftest.$ac_objext \
16522    conftest$ac_exeext
16523  if ${ac_cv_search_getipnodebyname+:} false; then :
16524  break
16525fi
16526done
16527if ${ac_cv_search_getipnodebyname+:} false; then :
16528
16529else
16530  ac_cv_search_getipnodebyname=no
16531fi
16532rm conftest.$ac_ext
16533LIBS=$ac_func_search_save_LIBS
16534fi
16535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getipnodebyname" >&5
16536$as_echo "$ac_cv_search_getipnodebyname" >&6; }
16537ac_res=$ac_cv_search_getipnodebyname
16538if test "$ac_res" != no; then :
16539  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16540
16541fi
16542
16543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
16544$as_echo_n "checking for library containing gethostbyname... " >&6; }
16545if ${ac_cv_search_gethostbyname+:} false; then :
16546  $as_echo_n "(cached) " >&6
16547else
16548  ac_func_search_save_LIBS=$LIBS
16549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550/* end confdefs.h.  */
16551
16552/* Override any GCC internal prototype to avoid an error.
16553   Use char because int might match the return type of a GCC
16554   builtin and then its argument prototype would still apply.  */
16555#ifdef __cplusplus
16556extern "C"
16557#endif
16558char gethostbyname ();
16559int
16560main ()
16561{
16562return gethostbyname ();
16563  ;
16564  return 0;
16565}
16566_ACEOF
16567for ac_lib in '' xnet nsl; do
16568  if test -z "$ac_lib"; then
16569    ac_res="none required"
16570  else
16571    ac_res=-l$ac_lib
16572    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16573  fi
16574  if ac_fn_c_try_link "$LINENO"; then :
16575  ac_cv_search_gethostbyname=$ac_res
16576fi
16577rm -f core conftest.err conftest.$ac_objext \
16578    conftest$ac_exeext
16579  if ${ac_cv_search_gethostbyname+:} false; then :
16580  break
16581fi
16582done
16583if ${ac_cv_search_gethostbyname+:} false; then :
16584
16585else
16586  ac_cv_search_gethostbyname=no
16587fi
16588rm conftest.$ac_ext
16589LIBS=$ac_func_search_save_LIBS
16590fi
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
16592$as_echo "$ac_cv_search_gethostbyname" >&6; }
16593ac_res=$ac_cv_search_gethostbyname
16594if test "$ac_res" != no; then :
16595  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16596
16597fi
16598
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
16600$as_echo_n "checking for library containing getaddrinfo... " >&6; }
16601if ${ac_cv_search_getaddrinfo+:} false; then :
16602  $as_echo_n "(cached) " >&6
16603else
16604  ac_func_search_save_LIBS=$LIBS
16605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606/* end confdefs.h.  */
16607
16608/* Override any GCC internal prototype to avoid an error.
16609   Use char because int might match the return type of a GCC
16610   builtin and then its argument prototype would still apply.  */
16611#ifdef __cplusplus
16612extern "C"
16613#endif
16614char getaddrinfo ();
16615int
16616main ()
16617{
16618return getaddrinfo ();
16619  ;
16620  return 0;
16621}
16622_ACEOF
16623for ac_lib in '' xnet socket nsl; do
16624  if test -z "$ac_lib"; then
16625    ac_res="none required"
16626  else
16627    ac_res=-l$ac_lib
16628    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16629  fi
16630  if ac_fn_c_try_link "$LINENO"; then :
16631  ac_cv_search_getaddrinfo=$ac_res
16632fi
16633rm -f core conftest.err conftest.$ac_objext \
16634    conftest$ac_exeext
16635  if ${ac_cv_search_getaddrinfo+:} false; then :
16636  break
16637fi
16638done
16639if ${ac_cv_search_getaddrinfo+:} false; then :
16640
16641else
16642  ac_cv_search_getaddrinfo=no
16643fi
16644rm conftest.$ac_ext
16645LIBS=$ac_func_search_save_LIBS
16646fi
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
16648$as_echo "$ac_cv_search_getaddrinfo" >&6; }
16649ac_res=$ac_cv_search_getaddrinfo
16650if test "$ac_res" != no; then :
16651  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16652
16653fi
16654
16655
16656# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16657# for constant arguments.  Useless!
16658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16659$as_echo_n "checking for working alloca.h... " >&6; }
16660if ${ac_cv_working_alloca_h+:} false; then :
16661  $as_echo_n "(cached) " >&6
16662else
16663  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16664/* end confdefs.h.  */
16665#include <alloca.h>
16666int
16667main ()
16668{
16669char *p = (char *) alloca (2 * sizeof (int));
16670			  if (p) return 0;
16671  ;
16672  return 0;
16673}
16674_ACEOF
16675if ac_fn_c_try_link "$LINENO"; then :
16676  ac_cv_working_alloca_h=yes
16677else
16678  ac_cv_working_alloca_h=no
16679fi
16680rm -f core conftest.err conftest.$ac_objext \
16681    conftest$ac_exeext conftest.$ac_ext
16682fi
16683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16684$as_echo "$ac_cv_working_alloca_h" >&6; }
16685if test $ac_cv_working_alloca_h = yes; then
16686
16687$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16688
16689fi
16690
16691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16692$as_echo_n "checking for alloca... " >&6; }
16693if ${ac_cv_func_alloca_works+:} false; then :
16694  $as_echo_n "(cached) " >&6
16695else
16696  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16697/* end confdefs.h.  */
16698#ifdef __GNUC__
16699# define alloca __builtin_alloca
16700#else
16701# ifdef _MSC_VER
16702#  include <malloc.h>
16703#  define alloca _alloca
16704# else
16705#  ifdef HAVE_ALLOCA_H
16706#   include <alloca.h>
16707#  else
16708#   ifdef _AIX
16709 #pragma alloca
16710#   else
16711#    ifndef alloca /* predefined by HP cc +Olibcalls */
16712void *alloca (size_t);
16713#    endif
16714#   endif
16715#  endif
16716# endif
16717#endif
16718
16719int
16720main ()
16721{
16722char *p = (char *) alloca (1);
16723				    if (p) return 0;
16724  ;
16725  return 0;
16726}
16727_ACEOF
16728if ac_fn_c_try_link "$LINENO"; then :
16729  ac_cv_func_alloca_works=yes
16730else
16731  ac_cv_func_alloca_works=no
16732fi
16733rm -f core conftest.err conftest.$ac_objext \
16734    conftest$ac_exeext conftest.$ac_ext
16735fi
16736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16737$as_echo "$ac_cv_func_alloca_works" >&6; }
16738
16739if test $ac_cv_func_alloca_works = yes; then
16740
16741$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16742
16743else
16744  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16745# that cause trouble.  Some versions do not even contain alloca or
16746# contain a buggy version.  If you still want to use their alloca,
16747# use ar to extract alloca.o from them instead of compiling alloca.c.
16748
16749ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16750
16751$as_echo "#define C_ALLOCA 1" >>confdefs.h
16752
16753
16754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16755$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16756if ${ac_cv_os_cray+:} false; then :
16757  $as_echo_n "(cached) " >&6
16758else
16759  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760/* end confdefs.h.  */
16761#if defined CRAY && ! defined CRAY2
16762webecray
16763#else
16764wenotbecray
16765#endif
16766
16767_ACEOF
16768if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16769  $EGREP "webecray" >/dev/null 2>&1; then :
16770  ac_cv_os_cray=yes
16771else
16772  ac_cv_os_cray=no
16773fi
16774rm -f conftest*
16775
16776fi
16777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16778$as_echo "$ac_cv_os_cray" >&6; }
16779if test $ac_cv_os_cray = yes; then
16780  for ac_func in _getb67 GETB67 getb67; do
16781    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16782ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16783if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16784
16785cat >>confdefs.h <<_ACEOF
16786#define CRAY_STACKSEG_END $ac_func
16787_ACEOF
16788
16789    break
16790fi
16791
16792  done
16793fi
16794
16795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16796$as_echo_n "checking stack direction for C alloca... " >&6; }
16797if ${ac_cv_c_stack_direction+:} false; then :
16798  $as_echo_n "(cached) " >&6
16799else
16800  if test "$cross_compiling" = yes; then :
16801  ac_cv_c_stack_direction=0
16802else
16803  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804/* end confdefs.h.  */
16805$ac_includes_default
16806int
16807find_stack_direction (int *addr, int depth)
16808{
16809  int dir, dummy = 0;
16810  if (! addr)
16811    addr = &dummy;
16812  *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
16813  dir = depth ? find_stack_direction (addr, depth - 1) : 0;
16814  return dir + dummy;
16815}
16816
16817int
16818main (int argc, char **argv)
16819{
16820  return find_stack_direction (0, argc + !argv + 20) < 0;
16821}
16822_ACEOF
16823if ac_fn_c_try_run "$LINENO"; then :
16824  ac_cv_c_stack_direction=1
16825else
16826  ac_cv_c_stack_direction=-1
16827fi
16828rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16829  conftest.$ac_objext conftest.beam conftest.$ac_ext
16830fi
16831
16832fi
16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16834$as_echo "$ac_cv_c_stack_direction" >&6; }
16835cat >>confdefs.h <<_ACEOF
16836#define STACK_DIRECTION $ac_cv_c_stack_direction
16837_ACEOF
16838
16839
16840fi
16841
16842
16843for ac_func in gettimeofday strerror random initstate tcsetattr flock \
16844                socketpair gethostname gethostbyname getipnodebyname \
16845                poll epoll_create kqueue select if_nameindex \
16846		signal alarm \
16847		strnlen \
16848	        getaddrinfo getnameinfo freeaddrinfo gai_strerror getifaddrs \
16849                getline getdelim getpass
16850do :
16851  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16852ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16853if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16854  cat >>confdefs.h <<_ACEOF
16855#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16856_ACEOF
16857
16858fi
16859done
16860
16861# getline getdelim getpass are _GNU_SOURCE stuff
16862
16863if test $ac_cv_func_poll = yes ; then
16864
16865cat >>confdefs.h <<\_AXEOF
16866#define SU_HAVE_POLL 1
16867_AXEOF
16868
16869fi
16870
16871if test $ac_cv_func_epoll_create = yes && test $ac_cv_header_sys_epoll_h = yes
16872then
16873
16874$as_echo "#define HAVE_EPOLL 1" >>confdefs.h
16875
16876fi
16877
16878if test $ac_cv_func_if_nameindex = yes ; then
16879
16880cat >>confdefs.h <<\_AXEOF
16881#define SU_HAVE_IF_NAMEINDEX 1
16882_AXEOF
16883
16884fi
16885
16886for ac_func in memmem memccpy memspn memcspn strtoull \
16887		   inet_ntop inet_pton poll
16888do :
16889  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16890ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16891if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
16892  cat >>confdefs.h <<_ACEOF
16893#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16894_ACEOF
16895 :
16896else
16897  case "$REPLACE_LIBADD" in
16898    "$ac_func.lo"   | \
16899  *" $ac_func.lo"   | \
16900    "$ac_func.lo "* | \
16901  *" $ac_func.lo "* ) ;;
16902  *) REPLACE_LIBADD="$REPLACE_LIBADD $ac_func.lo" ;;
16903esac
16904fi
16905done
16906
16907
16908:
16909
16910
16911if test $ac_cv_func_signal = yes ; then
16912ac_fn_c_check_decl "$LINENO" "SIGPIPE" "ac_cv_have_decl_SIGPIPE" "
16913#include <signal.h>
16914
16915"
16916if test "x$ac_cv_have_decl_SIGPIPE" = xyes; then :
16917
16918
16919$as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
16920
16921fi
16922
16923fi
16924
16925# ===========================================================================
16926# Check how to implement su_port
16927# ===========================================================================
16928
16929# Check whether --enable-poll-port was given.
16930if test "${enable_poll_port+set}" = set; then :
16931  enableval=$enable_poll_port;
16932else
16933  enable_poll_port=maybe
16934fi
16935
16936
16937if test $enable_poll_port = maybe ; then
16938  if test $ac_cv_func_poll = yes ; then
16939
16940$as_echo "#define HAVE_POLL_PORT 1" >>confdefs.h
16941
16942  fi
16943elif test $enable_poll_port = yes ; then
16944
16945$as_echo "#define HAVE_POLL_PORT 1" >>confdefs.h
16946
16947fi
16948
16949# ===========================================================================
16950# Check pthread_rwlock_unlock()
16951# ===========================================================================
16952
16953
16954
16955if test x$HAVE_PTHREADS = x1 ; then
16956
16957if test "$cross_compiling" = yes; then :
16958
16959$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
16960
16961else
16962  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963/* end confdefs.h.  */
16964
16965#define _XOPEN_SOURCE (500)
16966
16967#include <pthread.h>
16968
16969pthread_rwlock_t rw;
16970
16971int main()
16972{
16973  pthread_rwlock_init(&rw, NULL);
16974  pthread_rwlock_rdlock(&rw);
16975  pthread_rwlock_rdlock(&rw);
16976  pthread_rwlock_unlock(&rw);
16977  /* pthread_rwlock_trywrlock() should fail (not return 0) */
16978  return pthread_rwlock_trywrlock(&rw) != 0 ? 0  : 1;
16979}
16980
16981_ACEOF
16982if ac_fn_c_try_run "$LINENO"; then :
16983
16984$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
16985
16986else
16987
16988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Recursive pthread_rwlock_rdlock() does not work!!! " >&5
16989$as_echo "$as_me: WARNING: Recursive pthread_rwlock_rdlock() does not work!!! " >&2;}
16990
16991fi
16992rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16993  conftest.$ac_objext conftest.beam conftest.$ac_ext
16994fi
16995
16996
16997fi
16998
16999# ===========================================================================
17000# Check IPv6 addresss configuration
17001# ===========================================================================
17002case "$target" in
17003 *-*-linux*)
17004$as_echo "#define HAVE_PROC_NET_IF_INET6 1" >>confdefs.h
17005 ;;
17006esac
17007
17008ac_config_headers="$ac_config_headers libsofia-sip-ua/su/sofia-sip/su_configure.h"
17009
17010
17011# End of SAC_SOFIA_SU
17012
17013
17014
17015
17016# Check whether --with-openssl was given.
17017if test "${with_openssl+set}" = set; then :
17018  withval=$with_openssl;
17019else
17020  with_openssl=pkg-config
17021fi
17022
17023
17024
17025
17026if test "$with_openssl" = no  ;then
17027  : # No openssl
17028else
17029
17030  if test "$with_openssl" = "pkg-config" ; then
17031
17032  succeeded=no
17033
17034  if test -z "$PKG_CONFIG"; then
17035    # Extract the first word of "pkg-config", so it can be a program name with args.
17036set dummy pkg-config; ac_word=$2
17037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17038$as_echo_n "checking for $ac_word... " >&6; }
17039if ${ac_cv_path_PKG_CONFIG+:} false; then :
17040  $as_echo_n "(cached) " >&6
17041else
17042  case $PKG_CONFIG in
17043  [\\/]* | ?:[\\/]*)
17044  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17045  ;;
17046  *)
17047  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17048for as_dir in $PATH
17049do
17050  IFS=$as_save_IFS
17051  test -z "$as_dir" && as_dir=.
17052    for ac_exec_ext in '' $ac_executable_extensions; do
17053  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17054    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17055    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17056    break 2
17057  fi
17058done
17059  done
17060IFS=$as_save_IFS
17061
17062  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17063  ;;
17064esac
17065fi
17066PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17067if test -n "$PKG_CONFIG"; then
17068  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17069$as_echo "$PKG_CONFIG" >&6; }
17070else
17071  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17072$as_echo "no" >&6; }
17073fi
17074
17075
17076  fi
17077
17078  if test "$PKG_CONFIG" = "no" ; then
17079     echo "*** The pkg-config script could not be found. Make sure it is"
17080     echo "*** in your path, or set the PKG_CONFIG environment variable"
17081     echo "*** to the full path to pkg-config."
17082     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17083  else
17084     PKG_CONFIG_MIN_VERSION=0.9.0
17085     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17086        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl" >&5
17087$as_echo_n "checking for openssl... " >&6; }
17088
17089        if $PKG_CONFIG --exists "openssl" ; then
17090            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17091$as_echo "yes" >&6; }
17092            succeeded=yes
17093
17094            { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl_CFLAGS" >&5
17095$as_echo_n "checking openssl_CFLAGS... " >&6; }
17096            openssl_CFLAGS=`$PKG_CONFIG --cflags "openssl"`
17097            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_CFLAGS" >&5
17098$as_echo "$openssl_CFLAGS" >&6; }
17099
17100            { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl_LIBS" >&5
17101$as_echo_n "checking openssl_LIBS... " >&6; }
17102            openssl_LIBS=`$PKG_CONFIG --libs "openssl"`
17103            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_LIBS" >&5
17104$as_echo "$openssl_LIBS" >&6; }
17105        else
17106            openssl_CFLAGS=""
17107            openssl_LIBS=""
17108            ## If we have a custom action on failure, don't print errors, but
17109            ## do set a variable so people can do so.
17110            openssl_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl"`
17111
17112        fi
17113
17114
17115
17116     else
17117        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17118        echo "*** See http://www.freedesktop.org/software/pkgconfig"
17119     fi
17120  fi
17121
17122  if test $succeeded = yes; then
17123     HAVE_TLS=1 HAVE_OPENSSL=1 LIBS="$openssl_LIBS $LIBS"
17124  else
17125     HAVE_OPENSSL=0
17126  fi
17127
17128  fi
17129
17130  if test x$HAVE_OPENSSL = x1 ; then
17131
17132$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
17133
17134
17135$as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
17136
17137  else
17138    for ac_header in openssl/tls1.h
17139do :
17140  ac_fn_c_check_header_compile "$LINENO" "openssl/tls1.h" "ac_cv_header_openssl_tls1_h" "#include <openssl/safestack.h>
17141"
17142if test "x$ac_cv_header_openssl_tls1_h" = xyes; then :
17143  cat >>confdefs.h <<_ACEOF
17144#define HAVE_OPENSSL_TLS1_H 1
17145_ACEOF
17146
17147      HAVE_OPENSSL=1 HAVE_TLS=1
17148
17149      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BIO_new in -lcrypto" >&5
17150$as_echo_n "checking for BIO_new in -lcrypto... " >&6; }
17151if ${ac_cv_lib_crypto_BIO_new+:} false; then :
17152  $as_echo_n "(cached) " >&6
17153else
17154  ac_check_lib_save_LIBS=$LIBS
17155LIBS="-lcrypto  $LIBS"
17156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157/* end confdefs.h.  */
17158
17159/* Override any GCC internal prototype to avoid an error.
17160   Use char because int might match the return type of a GCC
17161   builtin and then its argument prototype would still apply.  */
17162#ifdef __cplusplus
17163extern "C"
17164#endif
17165char BIO_new ();
17166int
17167main ()
17168{
17169return BIO_new ();
17170  ;
17171  return 0;
17172}
17173_ACEOF
17174if ac_fn_c_try_link "$LINENO"; then :
17175  ac_cv_lib_crypto_BIO_new=yes
17176else
17177  ac_cv_lib_crypto_BIO_new=no
17178fi
17179rm -f core conftest.err conftest.$ac_objext \
17180    conftest$ac_exeext conftest.$ac_ext
17181LIBS=$ac_check_lib_save_LIBS
17182fi
17183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_BIO_new" >&5
17184$as_echo "$ac_cv_lib_crypto_BIO_new" >&6; }
17185if test "x$ac_cv_lib_crypto_BIO_new" = xyes; then :
17186  cat >>confdefs.h <<_ACEOF
17187#define HAVE_LIBCRYPTO 1
17188_ACEOF
17189
17190  LIBS="-lcrypto $LIBS"
17191
17192else
17193  HAVE_OPENSSL=0
17194      	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL crypto library was not found" >&5
17195$as_echo "$as_me: WARNING: OpenSSL crypto library was not found" >&2;}
17196fi
17197
17198
17199      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLSv1_method in -lssl" >&5
17200$as_echo_n "checking for TLSv1_method in -lssl... " >&6; }
17201if ${ac_cv_lib_ssl_TLSv1_method+:} false; then :
17202  $as_echo_n "(cached) " >&6
17203else
17204  ac_check_lib_save_LIBS=$LIBS
17205LIBS="-lssl  $LIBS"
17206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207/* end confdefs.h.  */
17208
17209/* Override any GCC internal prototype to avoid an error.
17210   Use char because int might match the return type of a GCC
17211   builtin and then its argument prototype would still apply.  */
17212#ifdef __cplusplus
17213extern "C"
17214#endif
17215char TLSv1_method ();
17216int
17217main ()
17218{
17219return TLSv1_method ();
17220  ;
17221  return 0;
17222}
17223_ACEOF
17224if ac_fn_c_try_link "$LINENO"; then :
17225  ac_cv_lib_ssl_TLSv1_method=yes
17226else
17227  ac_cv_lib_ssl_TLSv1_method=no
17228fi
17229rm -f core conftest.err conftest.$ac_objext \
17230    conftest$ac_exeext conftest.$ac_ext
17231LIBS=$ac_check_lib_save_LIBS
17232fi
17233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_TLSv1_method" >&5
17234$as_echo "$ac_cv_lib_ssl_TLSv1_method" >&6; }
17235if test "x$ac_cv_lib_ssl_TLSv1_method" = xyes; then :
17236  cat >>confdefs.h <<_ACEOF
17237#define HAVE_LIBSSL 1
17238_ACEOF
17239
17240  LIBS="-lssl $LIBS"
17241
17242else
17243  HAVE_TLS=0
17244      	{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL protocol library was not found" >&5
17245$as_echo "$as_me: WARNING: OpenSSL protocol library was not found" >&2;}
17246fi
17247
17248
17249else
17250  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: OpenSSL include files were not found" >&5
17251$as_echo "$as_me: WARNING: OpenSSL include files were not found" >&2;}
17252fi
17253
17254done
17255
17256  fi
17257
17258  if test x$HAVE_OPENSSL = x1; then
17259
17260$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
17261
17262  fi
17263
17264  if test x$HAVE_TLS = x1; then
17265
17266$as_echo "#define HAVE_TLS 1" >>confdefs.h
17267
17268  fi
17269fi
17270
17271 if test x$HAVE_TLS = x1; then
17272  HAVE_TLS_TRUE=
17273  HAVE_TLS_FALSE='#'
17274else
17275  HAVE_TLS_TRUE='#'
17276  HAVE_TLS_FALSE=
17277fi
17278
17279
17280
17281
17282
17283# Check whether --with-sigcomp was given.
17284if test "${with_sigcomp+set}" = set; then :
17285  withval=$with_sigcomp;
17286else
17287  with_sigcomp=no
17288fi
17289
17290
17291if test -n "${with_sigcomp}" && test "${with_sigcomp}" != no ; then
17292	if test "${with_sigcomp}" != yes ; then
17293		CPPFLAGS="-I${with_sigcomp}/include $CPPFLAGS"
17294		LIBS="-L${with_sigcomp}/lib -lsigcomp $LIBS"
17295	else
17296		LIBS="-lsigcomp $LIBS"
17297	fi
17298
17299	for ac_header in sigcomp.h
17300do :
17301  ac_fn_c_check_header_mongrel "$LINENO" "sigcomp.h" "ac_cv_header_sigcomp_h" "$ac_includes_default"
17302if test "x$ac_cv_header_sigcomp_h" = xyes; then :
17303  cat >>confdefs.h <<_ACEOF
17304#define HAVE_SIGCOMP_H 1
17305_ACEOF
17306
17307else
17308  as_fn_error $? "cannot find Sofia SigComp includes" "$LINENO" 5
17309fi
17310
17311done
17312
17313
17314	ac_fn_c_check_func "$LINENO" "sigcomp_library_2_5" "ac_cv_func_sigcomp_library_2_5"
17315if test "x$ac_cv_func_sigcomp_library_2_5" = xyes; then :
17316
17317$as_echo "#define HAVE_SIGCOMP 1" >>confdefs.h
17318
17319
17320$as_echo "#define HAVE_SOFIA_SIGCOMP 1" >>confdefs.h
17321
17322else
17323  as_fn_error $? "Sofia SigComp API >= 2.5 was not found" "$LINENO" 5
17324fi
17325
17326fi
17327
17328# Check for features used by tport.
17329
17330
17331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IP_RECVERR" >&5
17332$as_echo_n "checking for IP_RECVERR... " >&6; }
17333if ${ac_cv_sys_ip_recverr+:} false; then :
17334  $as_echo_n "(cached) " >&6
17335else
17336
17337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338/* end confdefs.h.  */
17339
17340#include <sys/types.h>
17341#include <sys/socket.h>
17342#include <netinet/in.h>
17343
17344int
17345main ()
17346{
17347
17348  int one = 1;
17349  int s = 0;
17350  setsockopt(s, SOL_IP, IP_RECVERR, &one, sizeof(one));
17351
17352  ;
17353  return 0;
17354}
17355_ACEOF
17356if ac_fn_c_try_compile "$LINENO"; then :
17357  ac_cv_sys_ip_recverr=yes
17358else
17359  ac_cv_sys_ip_recverr=no
17360fi
17361rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17362fi
17363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_ip_recverr" >&5
17364$as_echo "$ac_cv_sys_ip_recverr" >&6; }
17365if test "$ac_cv_sys_ip_recverr" = yes ; then
17366
17367$as_echo "#define HAVE_IP_RECVERR 1" >>confdefs.h
17368
17369fi
17370
17371
17372
17373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IPV6_RECVERR" >&5
17374$as_echo_n "checking for IPV6_RECVERR... " >&6; }
17375if ${ac_cv_sys_ipv6_recverr+:} false; then :
17376  $as_echo_n "(cached) " >&6
17377else
17378
17379cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17380/* end confdefs.h.  */
17381
17382#include <sys/types.h>
17383#include <sys/socket.h>
17384#include <netinet/in.h>
17385
17386int
17387main ()
17388{
17389
17390  int one = 1;
17391  int s = 0;
17392  setsockopt(s, SOL_IPV6, IPV6_RECVERR, &one, sizeof(one));
17393
17394  ;
17395  return 0;
17396}
17397_ACEOF
17398if ac_fn_c_try_compile "$LINENO"; then :
17399  ac_cv_sys_ipv6_recverr=yes
17400else
17401  ac_cv_sys_ipv6_recverr=no
17402fi
17403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404fi
17405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_ipv6_recverr" >&5
17406$as_echo "$ac_cv_sys_ipv6_recverr" >&6; }
17407if test "$ac_cv_sys_ipv6_recverr" = yes ; then
17408
17409$as_echo "#define HAVE_IPV6_RECVERR 1" >>confdefs.h
17410
17411fi
17412
17413
17414for ac_header in netinet/tcp.h netinet/sctp.h
17415do :
17416  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17417ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
17418#include <sys/types.h>
17419#include <sys/socket.h>
17420
17421"
17422if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17423  cat >>confdefs.h <<_ACEOF
17424#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17425_ACEOF
17426
17427fi
17428
17429done
17430
17431
17432# Check whether --enable-sctp was given.
17433if test "${enable_sctp+set}" = set; then :
17434  enableval=$enable_sctp;
17435else
17436  enable_sigcomp=no
17437fi
17438
17439
17440if test x$enable_sctp = xyes; then
17441
17442$as_echo "#define HAVE_SCTP 1" >>confdefs.h
17443
17444fi
17445
17446
17447
17448  succeeded=no
17449
17450  if test -z "$PKG_CONFIG"; then
17451    # Extract the first word of "pkg-config", so it can be a program name with args.
17452set dummy pkg-config; ac_word=$2
17453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17454$as_echo_n "checking for $ac_word... " >&6; }
17455if ${ac_cv_path_PKG_CONFIG+:} false; then :
17456  $as_echo_n "(cached) " >&6
17457else
17458  case $PKG_CONFIG in
17459  [\\/]* | ?:[\\/]*)
17460  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17461  ;;
17462  *)
17463  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17464for as_dir in $PATH
17465do
17466  IFS=$as_save_IFS
17467  test -z "$as_dir" && as_dir=.
17468    for ac_exec_ext in '' $ac_executable_extensions; do
17469  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17470    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17471    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17472    break 2
17473  fi
17474done
17475  done
17476IFS=$as_save_IFS
17477
17478  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17479  ;;
17480esac
17481fi
17482PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17483if test -n "$PKG_CONFIG"; then
17484  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
17485$as_echo "$PKG_CONFIG" >&6; }
17486else
17487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17488$as_echo "no" >&6; }
17489fi
17490
17491
17492  fi
17493
17494  if test "$PKG_CONFIG" = "no" ; then
17495     echo "*** The pkg-config script could not be found. Make sure it is"
17496     echo "*** in your path, or set the PKG_CONFIG environment variable"
17497     echo "*** to the full path to pkg-config."
17498     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17499  else
17500     PKG_CONFIG_MIN_VERSION=0.9.0
17501     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17502        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for check >= 0.9.4" >&5
17503$as_echo_n "checking for check >= 0.9.4... " >&6; }
17504
17505        if $PKG_CONFIG --exists "check >= 0.9.4" ; then
17506            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17507$as_echo "yes" >&6; }
17508            succeeded=yes
17509
17510            { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHECK_CFLAGS" >&5
17511$as_echo_n "checking CHECK_CFLAGS... " >&6; }
17512            CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4"`
17513            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_CFLAGS" >&5
17514$as_echo "$CHECK_CFLAGS" >&6; }
17515
17516            { $as_echo "$as_me:${as_lineno-$LINENO}: checking CHECK_LIBS" >&5
17517$as_echo_n "checking CHECK_LIBS... " >&6; }
17518            CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4"`
17519            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_LIBS" >&5
17520$as_echo "$CHECK_LIBS" >&6; }
17521        else
17522            CHECK_CFLAGS=""
17523            CHECK_LIBS=""
17524            ## If we have a custom action on failure, don't print errors, but
17525            ## do set a variable so people can do so.
17526            CHECK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "check >= 0.9.4"`
17527
17528        fi
17529
17530
17531
17532     else
17533        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17534        echo "*** See http://www.freedesktop.org/software/pkgconfig"
17535     fi
17536  fi
17537
17538  if test $succeeded = yes; then
17539     have_check="yes"
17540  else
17541     have_check="no"
17542  fi
17543
17544 if test x"$have_check" = "xyes"; then
17545  HAVE_CHECK_TRUE=
17546  HAVE_CHECK_FALSE='#'
17547else
17548  HAVE_CHECK_TRUE='#'
17549  HAVE_CHECK_FALSE=
17550fi
17551
17552if test x"$have_check" = "xyes"; then
17553
17554$as_echo "#define HAVE_CHECK 1" >>confdefs.h
17555
17556fi
17557for ac_header in fnmatch.h
17558do :
17559  ac_fn_c_check_header_mongrel "$LINENO" "fnmatch.h" "ac_cv_header_fnmatch_h" "$ac_includes_default"
17560if test "x$ac_cv_header_fnmatch_h" = xyes; then :
17561  cat >>confdefs.h <<_ACEOF
17562#define HAVE_FNMATCH_H 1
17563_ACEOF
17564
17565fi
17566
17567done
17568
17569
17570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_setschedparam in -lpthread" >&5
17571$as_echo_n "checking for pthread_setschedparam in -lpthread... " >&6; }
17572if ${ac_cv_lib_pthread_pthread_setschedparam+:} false; then :
17573  $as_echo_n "(cached) " >&6
17574else
17575  ac_check_lib_save_LIBS=$LIBS
17576LIBS="-lpthread  $LIBS"
17577cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17578/* end confdefs.h.  */
17579
17580/* Override any GCC internal prototype to avoid an error.
17581   Use char because int might match the return type of a GCC
17582   builtin and then its argument prototype would still apply.  */
17583#ifdef __cplusplus
17584extern "C"
17585#endif
17586char pthread_setschedparam ();
17587int
17588main ()
17589{
17590return pthread_setschedparam ();
17591  ;
17592  return 0;
17593}
17594_ACEOF
17595if ac_fn_c_try_link "$LINENO"; then :
17596  ac_cv_lib_pthread_pthread_setschedparam=yes
17597else
17598  ac_cv_lib_pthread_pthread_setschedparam=no
17599fi
17600rm -f core conftest.err conftest.$ac_objext \
17601    conftest$ac_exeext conftest.$ac_ext
17602LIBS=$ac_check_lib_save_LIBS
17603fi
17604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_setschedparam" >&5
17605$as_echo "$ac_cv_lib_pthread_pthread_setschedparam" >&6; }
17606if test "x$ac_cv_lib_pthread_pthread_setschedparam" = xyes; then :
17607
17608$as_echo "#define HAVE_PTHREAD_SETSCHEDPARAM 1" >>confdefs.h
17609
17610fi
17611
17612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
17613$as_echo_n "checking for compress in -lz... " >&6; }
17614if ${ac_cv_lib_z_compress+:} false; then :
17615  $as_echo_n "(cached) " >&6
17616else
17617  ac_check_lib_save_LIBS=$LIBS
17618LIBS="-lz  $LIBS"
17619cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17620/* end confdefs.h.  */
17621
17622/* Override any GCC internal prototype to avoid an error.
17623   Use char because int might match the return type of a GCC
17624   builtin and then its argument prototype would still apply.  */
17625#ifdef __cplusplus
17626extern "C"
17627#endif
17628char compress ();
17629int
17630main ()
17631{
17632return compress ();
17633  ;
17634  return 0;
17635}
17636_ACEOF
17637if ac_fn_c_try_link "$LINENO"; then :
17638  ac_cv_lib_z_compress=yes
17639else
17640  ac_cv_lib_z_compress=no
17641fi
17642rm -f core conftest.err conftest.$ac_objext \
17643    conftest$ac_exeext conftest.$ac_ext
17644LIBS=$ac_check_lib_save_LIBS
17645fi
17646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
17647$as_echo "$ac_cv_lib_z_compress" >&6; }
17648if test "x$ac_cv_lib_z_compress" = xyes; then :
17649  have_zlib=yes
17650else
17651  have_zlib=no
17652fi
17653
17654if test x"$have_zlib" = "xyes"; then
17655
17656$as_echo "#define HAVE_ZLIB_COMPRESS 1" >>confdefs.h
17657
17658fi
17659 if test "x$have_zlib" = xyes; then
17660  HAVE_ZLIB_TRUE=
17661  HAVE_ZLIB_FALSE='#'
17662else
17663  HAVE_ZLIB_TRUE='#'
17664  HAVE_ZLIB_FALSE=
17665fi
17666
17667
17668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17669$as_echo_n "checking for dlopen in -ldl... " >&6; }
17670if ${ac_cv_lib_dl_dlopen+:} false; then :
17671  $as_echo_n "(cached) " >&6
17672else
17673  ac_check_lib_save_LIBS=$LIBS
17674LIBS="-ldl  $LIBS"
17675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17676/* end confdefs.h.  */
17677
17678/* Override any GCC internal prototype to avoid an error.
17679   Use char because int might match the return type of a GCC
17680   builtin and then its argument prototype would still apply.  */
17681#ifdef __cplusplus
17682extern "C"
17683#endif
17684char dlopen ();
17685int
17686main ()
17687{
17688return dlopen ();
17689  ;
17690  return 0;
17691}
17692_ACEOF
17693if ac_fn_c_try_link "$LINENO"; then :
17694  ac_cv_lib_dl_dlopen=yes
17695else
17696  ac_cv_lib_dl_dlopen=no
17697fi
17698rm -f core conftest.err conftest.$ac_objext \
17699    conftest$ac_exeext conftest.$ac_ext
17700LIBS=$ac_check_lib_save_LIBS
17701fi
17702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17703$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17704if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
17705
17706
17707$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17708
17709
17710fi
17711
17712
17713### internal modules
17714### ----------------
17715
17716$as_echo "#define HAVE_SOFIA_SIP 1" >>confdefs.h
17717
17718
17719$as_echo "#define HAVE_SOFIA_SRESOLV 1" >>confdefs.h
17720
17721
17722$as_echo "#define HAVE_SOFIA_SMIME 0" >>confdefs.h
17723
17724
17725# Check whether --enable-stun was given.
17726if test "${enable_stun+set}" = set; then :
17727  enableval=$enable_stun;
17728else
17729  enable_stun=yes
17730fi
17731
17732
17733if test x$enable_stun = xno ; then
17734  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** STUN support disabled **" >&5
17735$as_echo "$as_me: WARNING: ** STUN support disabled **" >&2;}
17736elif test x${HAVE_OPENSSL} != x1 ; then
17737    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ** TLS support for STUN disabled as OpenSSL headers and/or libraries were not found **" >&5
17738$as_echo "$as_me: WARNING: ** TLS support for STUN disabled as OpenSSL headers and/or libraries were not found **" >&2;}
17739
17740$as_echo "#define HAVE_SOFIA_STUN 1" >>confdefs.h
17741
17742else
17743
17744$as_echo "#define HAVE_SOFIA_STUN 1" >>confdefs.h
17745
17746fi
17747 if test "x$enable_stun" = xyes; then
17748  HAVE_STUN_TRUE=
17749  HAVE_STUN_FALSE='#'
17750else
17751  HAVE_STUN_TRUE='#'
17752  HAVE_STUN_FALSE=
17753fi
17754
17755
17756# Check whether --enable-nth was given.
17757if test "${enable_nth+set}" = set; then :
17758  enableval=$enable_nth;
17759else
17760  enable_nth=yes
17761fi
17762
17763 if test "x$enable_nth" = xyes; then
17764  HAVE_NTH_TRUE=
17765  HAVE_NTH_FALSE='#'
17766else
17767  HAVE_NTH_TRUE='#'
17768  HAVE_NTH_FALSE=
17769fi
17770
17771if test x$enable_nth = xyes ; then
17772
17773$as_echo "#define HAVE_SOFIA_NTH 1" >>confdefs.h
17774
17775
17776$as_echo "#define HAVE_SOFIA_HTTP 1" >>confdefs.h
17777
17778fi
17779
17780# Check whether --enable-ntlm was given.
17781if test "${enable_ntlm+set}" = set; then :
17782  enableval=$enable_ntlm;
17783else
17784  enable_ntlm=no
17785fi
17786
17787
17788if test x$enable_ntlm = xyes ; then
17789
17790$as_echo "#define HAVE_SOFIA_NTLM 1" >>confdefs.h
17791
17792fi
17793 if test "x$enable_ntlm" = xyes; then
17794  HAVE_NTLM_TRUE=
17795  HAVE_NTLM_FALSE='#'
17796else
17797  HAVE_NTLM_TRUE='#'
17798  HAVE_NTLM_FALSE=
17799fi
17800
17801
17802
17803
17804$as_echo "#define HAVE_SRTP 0" >>confdefs.h
17805
17806
17807$as_echo "#define HAVE_UPNP 0" >>confdefs.h
17808
17809
17810
17811# Check whether --enable-memleak_log was given.
17812if test "${enable_memleak_log+set}" = set; then :
17813  enableval=$enable_memleak_log;
17814else
17815  enable_memleak_log=no
17816fi
17817
17818
17819if test x$enable_memleak_log = xyes ; then
17820
17821$as_echo "#define HAVE_MEMLEAK_LOG 1" >>confdefs.h
17822
17823fi
17824
17825### output
17826### ------
17827
17828ac_config_files="$ac_config_files Makefile packages/Makefile packages/sofia-sip-ua.pc packages/sofia-sip-ua-glib.pc libsofia-sip-ua/Makefile libsofia-sip-ua/bnf/Makefile libsofia-sip-ua/bnf/Doxyfile libsofia-sip-ua/docs/Makefile libsofia-sip-ua/docs/Doxyfile libsofia-sip-ua/docs/Doxyfile.version libsofia-sip-ua/docs/sofia-footer.html libsofia-sip-ua/features/Doxyfile libsofia-sip-ua/features/Makefile libsofia-sip-ua/http/Doxyfile libsofia-sip-ua/http/Makefile libsofia-sip-ua/ipt/Doxyfile libsofia-sip-ua/ipt/Makefile libsofia-sip-ua/iptsec/Doxyfile libsofia-sip-ua/iptsec/Makefile libsofia-sip-ua/msg/Doxyfile libsofia-sip-ua/msg/Makefile libsofia-sip-ua/nea/Doxyfile libsofia-sip-ua/nea/Makefile libsofia-sip-ua/nta/Doxyfile libsofia-sip-ua/nta/Makefile libsofia-sip-ua/nth/Doxyfile libsofia-sip-ua/nth/Makefile libsofia-sip-ua/nua/Doxyfile libsofia-sip-ua/nua/Makefile libsofia-sip-ua/sdp/Doxyfile libsofia-sip-ua/sdp/Makefile libsofia-sip-ua/sip/Doxyfile libsofia-sip-ua/sip/Makefile libsofia-sip-ua/soa/Doxyfile libsofia-sip-ua/soa/Makefile libsofia-sip-ua/sresolv/Doxyfile libsofia-sip-ua/sresolv/Makefile libsofia-sip-ua/stun/Doxyfile libsofia-sip-ua/stun/Makefile libsofia-sip-ua/su/Doxyfile libsofia-sip-ua/su/Makefile libsofia-sip-ua/tport/Doxyfile libsofia-sip-ua/tport/Makefile libsofia-sip-ua/url/Doxyfile libsofia-sip-ua/url/Makefile libsofia-sip-ua/features/sofia-sip/sofia_features.h s2check/Makefile libsofia-sip-ua-glib/Makefile libsofia-sip-ua-glib/su-glib/Makefile libsofia-sip-ua-glib/su-glib/Doxyfile utils/Makefile utils/Doxyfile tests/Makefile win32/Makefile win32/config.h open_c/Makefile open_c/config.h"
17829
17830
17831ac_config_commands="$ac_config_commands version"
17832
17833ac_config_files="$ac_config_files packages/sofia-sip-${PACKAGE_VERSION}.spec:packages/sofia-sip.spec.in"
17834
17835
17836cat >confcache <<\_ACEOF
17837# This file is a shell script that caches the results of configure
17838# tests run on this system so they can be shared between configure
17839# scripts and configure runs, see configure's option --config-cache.
17840# It is not useful on other systems.  If it contains results you don't
17841# want to keep, you may remove or edit it.
17842#
17843# config.status only pays attention to the cache file if you give it
17844# the --recheck option to rerun configure.
17845#
17846# `ac_cv_env_foo' variables (set or unset) will be overridden when
17847# loading this file, other *unset* `ac_cv_foo' will be assigned the
17848# following values.
17849
17850_ACEOF
17851
17852# The following way of writing the cache mishandles newlines in values,
17853# but we know of no workaround that is simple, portable, and efficient.
17854# So, we kill variables containing newlines.
17855# Ultrix sh set writes to stderr and can't be redirected directly,
17856# and sets the high bit in the cache file unless we assign to the vars.
17857(
17858  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17859    eval ac_val=\$$ac_var
17860    case $ac_val in #(
17861    *${as_nl}*)
17862      case $ac_var in #(
17863      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17864$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17865      esac
17866      case $ac_var in #(
17867      _ | IFS | as_nl) ;; #(
17868      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17869      *) { eval $ac_var=; unset $ac_var;} ;;
17870      esac ;;
17871    esac
17872  done
17873
17874  (set) 2>&1 |
17875    case $as_nl`(ac_space=' '; set) 2>&1` in #(
17876    *${as_nl}ac_space=\ *)
17877      # `set' does not quote correctly, so add quotes: double-quote
17878      # substitution turns \\\\ into \\, and sed turns \\ into \.
17879      sed -n \
17880	"s/'/'\\\\''/g;
17881	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17882      ;; #(
17883    *)
17884      # `set' quotes correctly as required by POSIX, so do not add quotes.
17885      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17886      ;;
17887    esac |
17888    sort
17889) |
17890  sed '
17891     /^ac_cv_env_/b end
17892     t clear
17893     :clear
17894     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17895     t end
17896     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17897     :end' >>confcache
17898if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17899  if test -w "$cache_file"; then
17900    if test "x$cache_file" != "x/dev/null"; then
17901      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17902$as_echo "$as_me: updating cache $cache_file" >&6;}
17903      if test ! -f "$cache_file" || test -h "$cache_file"; then
17904	cat confcache >"$cache_file"
17905      else
17906        case $cache_file in #(
17907        */* | ?:*)
17908	  mv -f confcache "$cache_file"$$ &&
17909	  mv -f "$cache_file"$$ "$cache_file" ;; #(
17910        *)
17911	  mv -f confcache "$cache_file" ;;
17912	esac
17913      fi
17914    fi
17915  else
17916    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17917$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17918  fi
17919fi
17920rm -f confcache
17921
17922test "x$prefix" = xNONE && prefix=$ac_default_prefix
17923# Let make expand exec_prefix.
17924test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17925
17926DEFS=-DHAVE_CONFIG_H
17927
17928ac_libobjs=
17929ac_ltlibobjs=
17930U=
17931for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17932  # 1. Remove the extension, and $U if already installed.
17933  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17934  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17935  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17936  #    will be set to the directory where LIBOBJS objects are built.
17937  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17938  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17939done
17940LIBOBJS=$ac_libobjs
17941
17942LTLIBOBJS=$ac_ltlibobjs
17943
17944
17945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17946$as_echo_n "checking that generated files are newer than configure... " >&6; }
17947   if test -n "$am_sleep_pid"; then
17948     # Hide warnings about reused PIDs.
17949     wait $am_sleep_pid 2>/dev/null
17950   fi
17951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17952$as_echo "done" >&6; }
17953 if test -n "$EXEEXT"; then
17954  am__EXEEXT_TRUE=
17955  am__EXEEXT_FALSE='#'
17956else
17957  am__EXEEXT_TRUE='#'
17958  am__EXEEXT_FALSE=
17959fi
17960
17961if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17962  as_fn_error $? "conditional \"AMDEP\" was never defined.
17963Usually this means the macro was only invoked conditionally." "$LINENO" 5
17964fi
17965if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17966  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17967Usually this means the macro was only invoked conditionally." "$LINENO" 5
17968fi
17969if test -z "${HAVE_MINGW32_TRUE}" && test -z "${HAVE_MINGW32_FALSE}"; then
17970  as_fn_error $? "conditional \"HAVE_MINGW32\" was never defined.
17971Usually this means the macro was only invoked conditionally." "$LINENO" 5
17972fi
17973if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17974  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17975Usually this means the macro was only invoked conditionally." "$LINENO" 5
17976fi
17977if test -z "${ENABLE_COVERAGE_TRUE}" && test -z "${ENABLE_COVERAGE_FALSE}"; then
17978  as_fn_error $? "conditional \"ENABLE_COVERAGE\" was never defined.
17979Usually this means the macro was only invoked conditionally." "$LINENO" 5
17980fi
17981if test -z "${HAVE_LCOV_TRUE}" && test -z "${HAVE_LCOV_FALSE}"; then
17982  as_fn_error $? "conditional \"HAVE_LCOV\" was never defined.
17983Usually this means the macro was only invoked conditionally." "$LINENO" 5
17984fi
17985if test -z "${HAVE_GENPNG_TRUE}" && test -z "${HAVE_GENPNG_FALSE}"; then
17986  as_fn_error $? "conditional \"HAVE_GENPNG\" was never defined.
17987Usually this means the macro was only invoked conditionally." "$LINENO" 5
17988fi
17989if test -z "${NDEBUG_TRUE}" && test -z "${NDEBUG_FALSE}"; then
17990  as_fn_error $? "conditional \"NDEBUG\" was never defined.
17991Usually this means the macro was only invoked conditionally." "$LINENO" 5
17992fi
17993if test -z "${EXPENSIVE_CHECKS_TRUE}" && test -z "${EXPENSIVE_CHECKS_FALSE}"; then
17994  as_fn_error $? "conditional \"EXPENSIVE_CHECKS\" was never defined.
17995Usually this means the macro was only invoked conditionally." "$LINENO" 5
17996fi
17997if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
17998  as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
17999Usually this means the macro was only invoked conditionally." "$LINENO" 5
18000fi
18001
18002if test -z "${COREFOUNDATION_TRUE}" && test -z "${COREFOUNDATION_FALSE}"; then
18003  as_fn_error $? "conditional \"COREFOUNDATION\" was never defined.
18004Usually this means the macro was only invoked conditionally." "$LINENO" 5
18005fi
18006if test -z "${HAVE_GLIB_TRUE}" && test -z "${HAVE_GLIB_FALSE}"; then
18007  as_fn_error $? "conditional \"HAVE_GLIB\" was never defined.
18008Usually this means the macro was only invoked conditionally." "$LINENO" 5
18009fi
18010if test -z "${HAVE_TLS_TRUE}" && test -z "${HAVE_TLS_FALSE}"; then
18011  as_fn_error $? "conditional \"HAVE_TLS\" was never defined.
18012Usually this means the macro was only invoked conditionally." "$LINENO" 5
18013fi
18014if test -z "${HAVE_CHECK_TRUE}" && test -z "${HAVE_CHECK_FALSE}"; then
18015  as_fn_error $? "conditional \"HAVE_CHECK\" was never defined.
18016Usually this means the macro was only invoked conditionally." "$LINENO" 5
18017fi
18018if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
18019  as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
18020Usually this means the macro was only invoked conditionally." "$LINENO" 5
18021fi
18022if test -z "${HAVE_STUN_TRUE}" && test -z "${HAVE_STUN_FALSE}"; then
18023  as_fn_error $? "conditional \"HAVE_STUN\" was never defined.
18024Usually this means the macro was only invoked conditionally." "$LINENO" 5
18025fi
18026if test -z "${HAVE_NTH_TRUE}" && test -z "${HAVE_NTH_FALSE}"; then
18027  as_fn_error $? "conditional \"HAVE_NTH\" was never defined.
18028Usually this means the macro was only invoked conditionally." "$LINENO" 5
18029fi
18030if test -z "${HAVE_NTLM_TRUE}" && test -z "${HAVE_NTLM_FALSE}"; then
18031  as_fn_error $? "conditional \"HAVE_NTLM\" was never defined.
18032Usually this means the macro was only invoked conditionally." "$LINENO" 5
18033fi
18034
18035: "${CONFIG_STATUS=./config.status}"
18036ac_write_fail=0
18037ac_clean_files_save=$ac_clean_files
18038ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18039{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18040$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18041as_write_fail=0
18042cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18043#! $SHELL
18044# Generated by $as_me.
18045# Run this file to recreate the current configuration.
18046# Compiler output produced by configure, useful for debugging
18047# configure, is in config.log if it exists.
18048
18049debug=false
18050ac_cs_recheck=false
18051ac_cs_silent=false
18052
18053SHELL=\${CONFIG_SHELL-$SHELL}
18054export SHELL
18055_ASEOF
18056cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18057## -------------------- ##
18058## M4sh Initialization. ##
18059## -------------------- ##
18060
18061# Be more Bourne compatible
18062DUALCASE=1; export DUALCASE # for MKS sh
18063if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18064  emulate sh
18065  NULLCMD=:
18066  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18067  # is contrary to our usage.  Disable this feature.
18068  alias -g '${1+"$@"}'='"$@"'
18069  setopt NO_GLOB_SUBST
18070else
18071  case `(set -o) 2>/dev/null` in #(
18072  *posix*) :
18073    set -o posix ;; #(
18074  *) :
18075     ;;
18076esac
18077fi
18078
18079
18080as_nl='
18081'
18082export as_nl
18083# Printing a long string crashes Solaris 7 /usr/bin/printf.
18084as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18085as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18086as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18087# Prefer a ksh shell builtin over an external printf program on Solaris,
18088# but without wasting forks for bash or zsh.
18089if test -z "$BASH_VERSION$ZSH_VERSION" \
18090    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18091  as_echo='print -r --'
18092  as_echo_n='print -rn --'
18093elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18094  as_echo='printf %s\n'
18095  as_echo_n='printf %s'
18096else
18097  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18098    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18099    as_echo_n='/usr/ucb/echo -n'
18100  else
18101    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18102    as_echo_n_body='eval
18103      arg=$1;
18104      case $arg in #(
18105      *"$as_nl"*)
18106	expr "X$arg" : "X\\(.*\\)$as_nl";
18107	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18108      esac;
18109      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18110    '
18111    export as_echo_n_body
18112    as_echo_n='sh -c $as_echo_n_body as_echo'
18113  fi
18114  export as_echo_body
18115  as_echo='sh -c $as_echo_body as_echo'
18116fi
18117
18118# The user is always right.
18119if test "${PATH_SEPARATOR+set}" != set; then
18120  PATH_SEPARATOR=:
18121  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18122    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18123      PATH_SEPARATOR=';'
18124  }
18125fi
18126
18127
18128# IFS
18129# We need space, tab and new line, in precisely that order.  Quoting is
18130# there to prevent editors from complaining about space-tab.
18131# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18132# splitting by setting IFS to empty value.)
18133IFS=" ""	$as_nl"
18134
18135# Find who we are.  Look in the path if we contain no directory separator.
18136as_myself=
18137case $0 in #((
18138  *[\\/]* ) as_myself=$0 ;;
18139  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18140for as_dir in $PATH
18141do
18142  IFS=$as_save_IFS
18143  test -z "$as_dir" && as_dir=.
18144    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18145  done
18146IFS=$as_save_IFS
18147
18148     ;;
18149esac
18150# We did not find ourselves, most probably we were run as `sh COMMAND'
18151# in which case we are not to be found in the path.
18152if test "x$as_myself" = x; then
18153  as_myself=$0
18154fi
18155if test ! -f "$as_myself"; then
18156  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18157  exit 1
18158fi
18159
18160# Unset variables that we do not need and which cause bugs (e.g. in
18161# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
18162# suppresses any "Segmentation fault" message there.  '((' could
18163# trigger a bug in pdksh 5.2.14.
18164for as_var in BASH_ENV ENV MAIL MAILPATH
18165do eval test x\${$as_var+set} = xset \
18166  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18167done
18168PS1='$ '
18169PS2='> '
18170PS4='+ '
18171
18172# NLS nuisances.
18173LC_ALL=C
18174export LC_ALL
18175LANGUAGE=C
18176export LANGUAGE
18177
18178# CDPATH.
18179(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18180
18181
18182# as_fn_error STATUS ERROR [LINENO LOG_FD]
18183# ----------------------------------------
18184# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18185# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18186# script with STATUS, using 1 if that was 0.
18187as_fn_error ()
18188{
18189  as_status=$1; test $as_status -eq 0 && as_status=1
18190  if test "$4"; then
18191    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18192    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18193  fi
18194  $as_echo "$as_me: error: $2" >&2
18195  as_fn_exit $as_status
18196} # as_fn_error
18197
18198
18199# as_fn_set_status STATUS
18200# -----------------------
18201# Set $? to STATUS, without forking.
18202as_fn_set_status ()
18203{
18204  return $1
18205} # as_fn_set_status
18206
18207# as_fn_exit STATUS
18208# -----------------
18209# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18210as_fn_exit ()
18211{
18212  set +e
18213  as_fn_set_status $1
18214  exit $1
18215} # as_fn_exit
18216
18217# as_fn_unset VAR
18218# ---------------
18219# Portably unset VAR.
18220as_fn_unset ()
18221{
18222  { eval $1=; unset $1;}
18223}
18224as_unset=as_fn_unset
18225# as_fn_append VAR VALUE
18226# ----------------------
18227# Append the text in VALUE to the end of the definition contained in VAR. Take
18228# advantage of any shell optimizations that allow amortized linear growth over
18229# repeated appends, instead of the typical quadratic growth present in naive
18230# implementations.
18231if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18232  eval 'as_fn_append ()
18233  {
18234    eval $1+=\$2
18235  }'
18236else
18237  as_fn_append ()
18238  {
18239    eval $1=\$$1\$2
18240  }
18241fi # as_fn_append
18242
18243# as_fn_arith ARG...
18244# ------------------
18245# Perform arithmetic evaluation on the ARGs, and store the result in the
18246# global $as_val. Take advantage of shells that can avoid forks. The arguments
18247# must be portable across $(()) and expr.
18248if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18249  eval 'as_fn_arith ()
18250  {
18251    as_val=$(( $* ))
18252  }'
18253else
18254  as_fn_arith ()
18255  {
18256    as_val=`expr "$@" || test $? -eq 1`
18257  }
18258fi # as_fn_arith
18259
18260
18261if expr a : '\(a\)' >/dev/null 2>&1 &&
18262   test "X`expr 00001 : '.*\(...\)'`" = X001; then
18263  as_expr=expr
18264else
18265  as_expr=false
18266fi
18267
18268if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18269  as_basename=basename
18270else
18271  as_basename=false
18272fi
18273
18274if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18275  as_dirname=dirname
18276else
18277  as_dirname=false
18278fi
18279
18280as_me=`$as_basename -- "$0" ||
18281$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18282	 X"$0" : 'X\(//\)$' \| \
18283	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18284$as_echo X/"$0" |
18285    sed '/^.*\/\([^/][^/]*\)\/*$/{
18286	    s//\1/
18287	    q
18288	  }
18289	  /^X\/\(\/\/\)$/{
18290	    s//\1/
18291	    q
18292	  }
18293	  /^X\/\(\/\).*/{
18294	    s//\1/
18295	    q
18296	  }
18297	  s/.*/./; q'`
18298
18299# Avoid depending upon Character Ranges.
18300as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18301as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18302as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18303as_cr_digits='0123456789'
18304as_cr_alnum=$as_cr_Letters$as_cr_digits
18305
18306ECHO_C= ECHO_N= ECHO_T=
18307case `echo -n x` in #(((((
18308-n*)
18309  case `echo 'xy\c'` in
18310  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
18311  xy)  ECHO_C='\c';;
18312  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
18313       ECHO_T='	';;
18314  esac;;
18315*)
18316  ECHO_N='-n';;
18317esac
18318
18319rm -f conf$$ conf$$.exe conf$$.file
18320if test -d conf$$.dir; then
18321  rm -f conf$$.dir/conf$$.file
18322else
18323  rm -f conf$$.dir
18324  mkdir conf$$.dir 2>/dev/null
18325fi
18326if (echo >conf$$.file) 2>/dev/null; then
18327  if ln -s conf$$.file conf$$ 2>/dev/null; then
18328    as_ln_s='ln -s'
18329    # ... but there are two gotchas:
18330    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18331    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18332    # In both cases, we have to default to `cp -pR'.
18333    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18334      as_ln_s='cp -pR'
18335  elif ln conf$$.file conf$$ 2>/dev/null; then
18336    as_ln_s=ln
18337  else
18338    as_ln_s='cp -pR'
18339  fi
18340else
18341  as_ln_s='cp -pR'
18342fi
18343rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18344rmdir conf$$.dir 2>/dev/null
18345
18346
18347# as_fn_mkdir_p
18348# -------------
18349# Create "$as_dir" as a directory, including parents if necessary.
18350as_fn_mkdir_p ()
18351{
18352
18353  case $as_dir in #(
18354  -*) as_dir=./$as_dir;;
18355  esac
18356  test -d "$as_dir" || eval $as_mkdir_p || {
18357    as_dirs=
18358    while :; do
18359      case $as_dir in #(
18360      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18361      *) as_qdir=$as_dir;;
18362      esac
18363      as_dirs="'$as_qdir' $as_dirs"
18364      as_dir=`$as_dirname -- "$as_dir" ||
18365$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18366	 X"$as_dir" : 'X\(//\)[^/]' \| \
18367	 X"$as_dir" : 'X\(//\)$' \| \
18368	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18369$as_echo X"$as_dir" |
18370    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18371	    s//\1/
18372	    q
18373	  }
18374	  /^X\(\/\/\)[^/].*/{
18375	    s//\1/
18376	    q
18377	  }
18378	  /^X\(\/\/\)$/{
18379	    s//\1/
18380	    q
18381	  }
18382	  /^X\(\/\).*/{
18383	    s//\1/
18384	    q
18385	  }
18386	  s/.*/./; q'`
18387      test -d "$as_dir" && break
18388    done
18389    test -z "$as_dirs" || eval "mkdir $as_dirs"
18390  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18391
18392
18393} # as_fn_mkdir_p
18394if mkdir -p . 2>/dev/null; then
18395  as_mkdir_p='mkdir -p "$as_dir"'
18396else
18397  test -d ./-p && rmdir ./-p
18398  as_mkdir_p=false
18399fi
18400
18401
18402# as_fn_executable_p FILE
18403# -----------------------
18404# Test if FILE is an executable regular file.
18405as_fn_executable_p ()
18406{
18407  test -f "$1" && test -x "$1"
18408} # as_fn_executable_p
18409as_test_x='test -x'
18410as_executable_p=as_fn_executable_p
18411
18412# Sed expression to map a string onto a valid CPP name.
18413as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18414
18415# Sed expression to map a string onto a valid variable name.
18416as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18417
18418
18419exec 6>&1
18420## ----------------------------------- ##
18421## Main body of $CONFIG_STATUS script. ##
18422## ----------------------------------- ##
18423_ASEOF
18424test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18425
18426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18427# Save the log message, to keep $0 and so on meaningful, and to
18428# report actual input values of CONFIG_FILES etc. instead of their
18429# values after options handling.
18430ac_log="
18431This file was extended by sofia-sip $as_me 1.12.10devel, which was
18432generated by GNU Autoconf 2.69.  Invocation command line was
18433
18434  CONFIG_FILES    = $CONFIG_FILES
18435  CONFIG_HEADERS  = $CONFIG_HEADERS
18436  CONFIG_LINKS    = $CONFIG_LINKS
18437  CONFIG_COMMANDS = $CONFIG_COMMANDS
18438  $ $0 $@
18439
18440on `(hostname || uname -n) 2>/dev/null | sed 1q`
18441"
18442
18443_ACEOF
18444
18445case $ac_config_files in *"
18446"*) set x $ac_config_files; shift; ac_config_files=$*;;
18447esac
18448
18449case $ac_config_headers in *"
18450"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18451esac
18452
18453
18454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18455# Files that config.status was made for.
18456config_files="$ac_config_files"
18457config_headers="$ac_config_headers"
18458config_commands="$ac_config_commands"
18459
18460_ACEOF
18461
18462cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18463ac_cs_usage="\
18464\`$as_me' instantiates files and other configuration actions
18465from templates according to the current configuration.  Unless the files
18466and actions are specified as TAGs, all are instantiated by default.
18467
18468Usage: $0 [OPTION]... [TAG]...
18469
18470  -h, --help       print this help, then exit
18471  -V, --version    print version number and configuration settings, then exit
18472      --config     print configuration, then exit
18473  -q, --quiet, --silent
18474                   do not print progress messages
18475  -d, --debug      don't remove temporary files
18476      --recheck    update $as_me by reconfiguring in the same conditions
18477      --file=FILE[:TEMPLATE]
18478                   instantiate the configuration file FILE
18479      --header=FILE[:TEMPLATE]
18480                   instantiate the configuration header FILE
18481
18482Configuration files:
18483$config_files
18484
18485Configuration headers:
18486$config_headers
18487
18488Configuration commands:
18489$config_commands
18490
18491Report bugs to the package provider."
18492
18493_ACEOF
18494cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18495ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18496ac_cs_version="\\
18497sofia-sip config.status 1.12.10devel
18498configured by $0, generated by GNU Autoconf 2.69,
18499  with options \\"\$ac_cs_config\\"
18500
18501Copyright (C) 2012 Free Software Foundation, Inc.
18502This config.status script is free software; the Free Software Foundation
18503gives unlimited permission to copy, distribute and modify it."
18504
18505ac_pwd='$ac_pwd'
18506srcdir='$srcdir'
18507INSTALL='$INSTALL'
18508MKDIR_P='$MKDIR_P'
18509AWK='$AWK'
18510test -n "\$AWK" || AWK=awk
18511_ACEOF
18512
18513cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18514# The default lists apply if the user does not specify any file.
18515ac_need_defaults=:
18516while test $# != 0
18517do
18518  case $1 in
18519  --*=?*)
18520    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18521    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18522    ac_shift=:
18523    ;;
18524  --*=)
18525    ac_option=`expr "X$1" : 'X\([^=]*\)='`
18526    ac_optarg=
18527    ac_shift=:
18528    ;;
18529  *)
18530    ac_option=$1
18531    ac_optarg=$2
18532    ac_shift=shift
18533    ;;
18534  esac
18535
18536  case $ac_option in
18537  # Handling of the options.
18538  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18539    ac_cs_recheck=: ;;
18540  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18541    $as_echo "$ac_cs_version"; exit ;;
18542  --config | --confi | --conf | --con | --co | --c )
18543    $as_echo "$ac_cs_config"; exit ;;
18544  --debug | --debu | --deb | --de | --d | -d )
18545    debug=: ;;
18546  --file | --fil | --fi | --f )
18547    $ac_shift
18548    case $ac_optarg in
18549    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18550    '') as_fn_error $? "missing file argument" ;;
18551    esac
18552    as_fn_append CONFIG_FILES " '$ac_optarg'"
18553    ac_need_defaults=false;;
18554  --header | --heade | --head | --hea )
18555    $ac_shift
18556    case $ac_optarg in
18557    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18558    esac
18559    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18560    ac_need_defaults=false;;
18561  --he | --h)
18562    # Conflict between --help and --header
18563    as_fn_error $? "ambiguous option: \`$1'
18564Try \`$0 --help' for more information.";;
18565  --help | --hel | -h )
18566    $as_echo "$ac_cs_usage"; exit ;;
18567  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18568  | -silent | --silent | --silen | --sile | --sil | --si | --s)
18569    ac_cs_silent=: ;;
18570
18571  # This is an error.
18572  -*) as_fn_error $? "unrecognized option: \`$1'
18573Try \`$0 --help' for more information." ;;
18574
18575  *) as_fn_append ac_config_targets " $1"
18576     ac_need_defaults=false ;;
18577
18578  esac
18579  shift
18580done
18581
18582ac_configure_extra_args=
18583
18584if $ac_cs_silent; then
18585  exec 6>/dev/null
18586  ac_configure_extra_args="$ac_configure_extra_args --silent"
18587fi
18588
18589_ACEOF
18590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18591if \$ac_cs_recheck; then
18592  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18593  shift
18594  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18595  CONFIG_SHELL='$SHELL'
18596  export CONFIG_SHELL
18597  exec "\$@"
18598fi
18599
18600_ACEOF
18601cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602exec 5>>config.log
18603{
18604  echo
18605  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18606## Running $as_me. ##
18607_ASBOX
18608  $as_echo "$ac_log"
18609} >&5
18610
18611_ACEOF
18612cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18613#
18614# INIT-COMMANDS
18615#
18616AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18617
18618
18619# The HP-UX ksh and POSIX shell print the target directory to stdout
18620# if CDPATH is set.
18621(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18622
18623sed_quote_subst='$sed_quote_subst'
18624double_quote_subst='$double_quote_subst'
18625delay_variable_subst='$delay_variable_subst'
18626macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18627macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18628enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18629enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18630pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18631enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18632shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18633SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18634ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18635PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18636host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18637host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18638host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18639build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18640build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18641build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18642SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18643Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18644GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18645EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18646FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18647LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18648NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18649LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18650max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18651ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18652exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18653lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18654lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18655lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18656lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18657lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18658reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18659reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18660OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18661deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18662file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18663file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18664want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18665DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18666sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18667AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18668AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18669archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18670STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18671RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18672old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18673old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18674old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18675lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18676CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18677CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18678compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18679GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18680lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18681lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18682lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18683lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18684lt_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"`'
18685lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18686nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18687lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18688lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18689objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18690MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18691lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18692lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18693lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18694lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18695lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18696need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18697MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18698DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18699NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18700LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18701OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18702OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18703libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18704shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18705extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18706archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18707enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18708export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18709whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18710compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18711old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18712old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18713archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18714archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18715module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18716module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18717with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18718allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18719no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18720hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18721hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18722hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18723hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18724hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18725hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18726hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18727inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18728link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18729always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18730export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18731exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18732include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18733prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18734postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18735file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18736variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18737need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18738need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18739version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18740runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18741shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18742shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18743libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18744library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18745soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18746install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18747postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18748postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18749finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18750finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18751hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18752sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18753configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18754configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18755hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18756enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18757enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18758enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18759old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18760striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18761
18762LTCC='$LTCC'
18763LTCFLAGS='$LTCFLAGS'
18764compiler='$compiler_DEFAULT'
18765
18766# A function that is used when there is no print builtin or printf.
18767func_fallback_echo ()
18768{
18769  eval 'cat <<_LTECHO_EOF
18770\$1
18771_LTECHO_EOF'
18772}
18773
18774# Quote evaled strings.
18775for var in SHELL \
18776ECHO \
18777PATH_SEPARATOR \
18778SED \
18779GREP \
18780EGREP \
18781FGREP \
18782LD \
18783NM \
18784LN_S \
18785lt_SP2NL \
18786lt_NL2SP \
18787reload_flag \
18788OBJDUMP \
18789deplibs_check_method \
18790file_magic_cmd \
18791file_magic_glob \
18792want_nocaseglob \
18793DLLTOOL \
18794sharedlib_from_linklib_cmd \
18795AR \
18796AR_FLAGS \
18797archiver_list_spec \
18798STRIP \
18799RANLIB \
18800CC \
18801CFLAGS \
18802compiler \
18803lt_cv_sys_global_symbol_pipe \
18804lt_cv_sys_global_symbol_to_cdecl \
18805lt_cv_sys_global_symbol_to_import \
18806lt_cv_sys_global_symbol_to_c_name_address \
18807lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18808lt_cv_nm_interface \
18809nm_file_list_spec \
18810lt_cv_truncate_bin \
18811lt_prog_compiler_no_builtin_flag \
18812lt_prog_compiler_pic \
18813lt_prog_compiler_wl \
18814lt_prog_compiler_static \
18815lt_cv_prog_compiler_c_o \
18816need_locks \
18817MANIFEST_TOOL \
18818DSYMUTIL \
18819NMEDIT \
18820LIPO \
18821OTOOL \
18822OTOOL64 \
18823shrext_cmds \
18824export_dynamic_flag_spec \
18825whole_archive_flag_spec \
18826compiler_needs_object \
18827with_gnu_ld \
18828allow_undefined_flag \
18829no_undefined_flag \
18830hardcode_libdir_flag_spec \
18831hardcode_libdir_separator \
18832exclude_expsyms \
18833include_expsyms \
18834file_list_spec \
18835variables_saved_for_relink \
18836libname_spec \
18837library_names_spec \
18838soname_spec \
18839install_override_mode \
18840finish_eval \
18841old_striplib \
18842striplib; do
18843    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18844    *[\\\\\\\`\\"\\\$]*)
18845      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18846      ;;
18847    *)
18848      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18849      ;;
18850    esac
18851done
18852
18853# Double-quote double-evaled strings.
18854for var in reload_cmds \
18855old_postinstall_cmds \
18856old_postuninstall_cmds \
18857old_archive_cmds \
18858extract_expsyms_cmds \
18859old_archive_from_new_cmds \
18860old_archive_from_expsyms_cmds \
18861archive_cmds \
18862archive_expsym_cmds \
18863module_cmds \
18864module_expsym_cmds \
18865export_symbols_cmds \
18866prelink_cmds \
18867postlink_cmds \
18868postinstall_cmds \
18869postuninstall_cmds \
18870finish_cmds \
18871sys_lib_search_path_spec \
18872configure_time_dlsearch_path \
18873configure_time_lt_sys_library_path; do
18874    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18875    *[\\\\\\\`\\"\\\$]*)
18876      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18877      ;;
18878    *)
18879      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18880      ;;
18881    esac
18882done
18883
18884ac_aux_dir='$ac_aux_dir'
18885
18886# See if we are running on zsh, and set the options that allow our
18887# commands through without removal of \ escapes INIT.
18888if test -n "\${ZSH_VERSION+set}"; then
18889   setopt NO_GLOB_SUBST
18890fi
18891
18892
18893    PACKAGE='$PACKAGE'
18894    VERSION='$VERSION'
18895    RM='$RM'
18896    ofile='$ofile'
18897
18898
18899
18900PACKAGE_VERSION=${PACKAGE_VERSION}
18901
18902_ACEOF
18903
18904cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18905
18906# Handling of arguments.
18907for ac_config_target in $ac_config_targets
18908do
18909  case $ac_config_target in
18910    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18911    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18912    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18913    "libsofia-sip-ua/su/sofia-sip/su_configure.h") CONFIG_HEADERS="$CONFIG_HEADERS libsofia-sip-ua/su/sofia-sip/su_configure.h" ;;
18914    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18915    "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
18916    "packages/sofia-sip-ua.pc") CONFIG_FILES="$CONFIG_FILES packages/sofia-sip-ua.pc" ;;
18917    "packages/sofia-sip-ua-glib.pc") CONFIG_FILES="$CONFIG_FILES packages/sofia-sip-ua-glib.pc" ;;
18918    "libsofia-sip-ua/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/Makefile" ;;
18919    "libsofia-sip-ua/bnf/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/bnf/Makefile" ;;
18920    "libsofia-sip-ua/bnf/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/bnf/Doxyfile" ;;
18921    "libsofia-sip-ua/docs/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/docs/Makefile" ;;
18922    "libsofia-sip-ua/docs/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/docs/Doxyfile" ;;
18923    "libsofia-sip-ua/docs/Doxyfile.version") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/docs/Doxyfile.version" ;;
18924    "libsofia-sip-ua/docs/sofia-footer.html") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/docs/sofia-footer.html" ;;
18925    "libsofia-sip-ua/features/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/features/Doxyfile" ;;
18926    "libsofia-sip-ua/features/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/features/Makefile" ;;
18927    "libsofia-sip-ua/http/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/http/Doxyfile" ;;
18928    "libsofia-sip-ua/http/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/http/Makefile" ;;
18929    "libsofia-sip-ua/ipt/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/ipt/Doxyfile" ;;
18930    "libsofia-sip-ua/ipt/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/ipt/Makefile" ;;
18931    "libsofia-sip-ua/iptsec/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/iptsec/Doxyfile" ;;
18932    "libsofia-sip-ua/iptsec/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/iptsec/Makefile" ;;
18933    "libsofia-sip-ua/msg/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/msg/Doxyfile" ;;
18934    "libsofia-sip-ua/msg/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/msg/Makefile" ;;
18935    "libsofia-sip-ua/nea/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nea/Doxyfile" ;;
18936    "libsofia-sip-ua/nea/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nea/Makefile" ;;
18937    "libsofia-sip-ua/nta/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nta/Doxyfile" ;;
18938    "libsofia-sip-ua/nta/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nta/Makefile" ;;
18939    "libsofia-sip-ua/nth/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nth/Doxyfile" ;;
18940    "libsofia-sip-ua/nth/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nth/Makefile" ;;
18941    "libsofia-sip-ua/nua/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nua/Doxyfile" ;;
18942    "libsofia-sip-ua/nua/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/nua/Makefile" ;;
18943    "libsofia-sip-ua/sdp/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sdp/Doxyfile" ;;
18944    "libsofia-sip-ua/sdp/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sdp/Makefile" ;;
18945    "libsofia-sip-ua/sip/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sip/Doxyfile" ;;
18946    "libsofia-sip-ua/sip/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sip/Makefile" ;;
18947    "libsofia-sip-ua/soa/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/soa/Doxyfile" ;;
18948    "libsofia-sip-ua/soa/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/soa/Makefile" ;;
18949    "libsofia-sip-ua/sresolv/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sresolv/Doxyfile" ;;
18950    "libsofia-sip-ua/sresolv/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/sresolv/Makefile" ;;
18951    "libsofia-sip-ua/stun/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/stun/Doxyfile" ;;
18952    "libsofia-sip-ua/stun/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/stun/Makefile" ;;
18953    "libsofia-sip-ua/su/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/su/Doxyfile" ;;
18954    "libsofia-sip-ua/su/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/su/Makefile" ;;
18955    "libsofia-sip-ua/tport/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/tport/Doxyfile" ;;
18956    "libsofia-sip-ua/tport/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/tport/Makefile" ;;
18957    "libsofia-sip-ua/url/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/url/Doxyfile" ;;
18958    "libsofia-sip-ua/url/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/url/Makefile" ;;
18959    "libsofia-sip-ua/features/sofia-sip/sofia_features.h") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua/features/sofia-sip/sofia_features.h" ;;
18960    "s2check/Makefile") CONFIG_FILES="$CONFIG_FILES s2check/Makefile" ;;
18961    "libsofia-sip-ua-glib/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua-glib/Makefile" ;;
18962    "libsofia-sip-ua-glib/su-glib/Makefile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua-glib/su-glib/Makefile" ;;
18963    "libsofia-sip-ua-glib/su-glib/Doxyfile") CONFIG_FILES="$CONFIG_FILES libsofia-sip-ua-glib/su-glib/Doxyfile" ;;
18964    "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
18965    "utils/Doxyfile") CONFIG_FILES="$CONFIG_FILES utils/Doxyfile" ;;
18966    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
18967    "win32/Makefile") CONFIG_FILES="$CONFIG_FILES win32/Makefile" ;;
18968    "win32/config.h") CONFIG_FILES="$CONFIG_FILES win32/config.h" ;;
18969    "open_c/Makefile") CONFIG_FILES="$CONFIG_FILES open_c/Makefile" ;;
18970    "open_c/config.h") CONFIG_FILES="$CONFIG_FILES open_c/config.h" ;;
18971    "version") CONFIG_COMMANDS="$CONFIG_COMMANDS version" ;;
18972    "packages/sofia-sip-${PACKAGE_VERSION}.spec") CONFIG_FILES="$CONFIG_FILES packages/sofia-sip-${PACKAGE_VERSION}.spec:packages/sofia-sip.spec.in" ;;
18973
18974  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18975  esac
18976done
18977
18978
18979# If the user did not use the arguments to specify the items to instantiate,
18980# then the envvar interface is used.  Set only those that are not.
18981# We use the long form for the default assignment because of an extremely
18982# bizarre bug on SunOS 4.1.3.
18983if $ac_need_defaults; then
18984  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18985  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18986  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18987fi
18988
18989# Have a temporary directory for convenience.  Make it in the build tree
18990# simply because there is no reason against having it here, and in addition,
18991# creating and moving files from /tmp can sometimes cause problems.
18992# Hook for its removal unless debugging.
18993# Note that there is a small window in which the directory will not be cleaned:
18994# after its creation but before its name has been assigned to `$tmp'.
18995$debug ||
18996{
18997  tmp= ac_tmp=
18998  trap 'exit_status=$?
18999  : "${ac_tmp:=$tmp}"
19000  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19001' 0
19002  trap 'as_fn_exit 1' 1 2 13 15
19003}
19004# Create a (secure) tmp directory for tmp files.
19005
19006{
19007  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19008  test -d "$tmp"
19009}  ||
19010{
19011  tmp=./conf$$-$RANDOM
19012  (umask 077 && mkdir "$tmp")
19013} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19014ac_tmp=$tmp
19015
19016# Set up the scripts for CONFIG_FILES section.
19017# No need to generate them if there are no CONFIG_FILES.
19018# This happens for instance with `./config.status config.h'.
19019if test -n "$CONFIG_FILES"; then
19020
19021
19022ac_cr=`echo X | tr X '\015'`
19023# On cygwin, bash can eat \r inside `` if the user requested igncr.
19024# But we know of no other shell where ac_cr would be empty at this
19025# point, so we can use a bashism as a fallback.
19026if test "x$ac_cr" = x; then
19027  eval ac_cr=\$\'\\r\'
19028fi
19029ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19030if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19031  ac_cs_awk_cr='\\r'
19032else
19033  ac_cs_awk_cr=$ac_cr
19034fi
19035
19036echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19037_ACEOF
19038
19039
19040{
19041  echo "cat >conf$$subs.awk <<_ACEOF" &&
19042  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19043  echo "_ACEOF"
19044} >conf$$subs.sh ||
19045  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19046ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19047ac_delim='%!_!# '
19048for ac_last_try in false false false false false :; do
19049  . ./conf$$subs.sh ||
19050    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19051
19052  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19053  if test $ac_delim_n = $ac_delim_num; then
19054    break
19055  elif $ac_last_try; then
19056    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19057  else
19058    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19059  fi
19060done
19061rm -f conf$$subs.sh
19062
19063cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19064cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19065_ACEOF
19066sed -n '
19067h
19068s/^/S["/; s/!.*/"]=/
19069p
19070g
19071s/^[^!]*!//
19072:repl
19073t repl
19074s/'"$ac_delim"'$//
19075t delim
19076:nl
19077h
19078s/\(.\{148\}\)..*/\1/
19079t more1
19080s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19081p
19082n
19083b repl
19084:more1
19085s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19086p
19087g
19088s/.\{148\}//
19089t nl
19090:delim
19091h
19092s/\(.\{148\}\)..*/\1/
19093t more2
19094s/["\\]/\\&/g; s/^/"/; s/$/"/
19095p
19096b
19097:more2
19098s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19099p
19100g
19101s/.\{148\}//
19102t delim
19103' <conf$$subs.awk | sed '
19104/^[^""]/{
19105  N
19106  s/\n//
19107}
19108' >>$CONFIG_STATUS || ac_write_fail=1
19109rm -f conf$$subs.awk
19110cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19111_ACAWK
19112cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19113  for (key in S) S_is_set[key] = 1
19114  FS = ""
19115
19116}
19117{
19118  line = $ 0
19119  nfields = split(line, field, "@")
19120  substed = 0
19121  len = length(field[1])
19122  for (i = 2; i < nfields; i++) {
19123    key = field[i]
19124    keylen = length(key)
19125    if (S_is_set[key]) {
19126      value = S[key]
19127      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19128      len += length(value) + length(field[++i])
19129      substed = 1
19130    } else
19131      len += 1 + keylen
19132  }
19133
19134  print line
19135}
19136
19137_ACAWK
19138_ACEOF
19139cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19140if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19141  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19142else
19143  cat
19144fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19145  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19146_ACEOF
19147
19148# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19149# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19150# trailing colons and then remove the whole line if VPATH becomes empty
19151# (actually we leave an empty line to preserve line numbers).
19152if test "x$srcdir" = x.; then
19153  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
19154h
19155s///
19156s/^/:/
19157s/[	 ]*$/:/
19158s/:\$(srcdir):/:/g
19159s/:\${srcdir}:/:/g
19160s/:@srcdir@:/:/g
19161s/^:*//
19162s/:*$//
19163x
19164s/\(=[	 ]*\).*/\1/
19165G
19166s/\n//
19167s/^[^=]*=[	 ]*$//
19168}'
19169fi
19170
19171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19172fi # test -n "$CONFIG_FILES"
19173
19174# Set up the scripts for CONFIG_HEADERS section.
19175# No need to generate them if there are no CONFIG_HEADERS.
19176# This happens for instance with `./config.status Makefile'.
19177if test -n "$CONFIG_HEADERS"; then
19178cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19179BEGIN {
19180_ACEOF
19181
19182# Transform confdefs.h into an awk script `defines.awk', embedded as
19183# here-document in config.status, that substitutes the proper values into
19184# config.h.in to produce config.h.
19185
19186# Create a delimiter string that does not exist in confdefs.h, to ease
19187# handling of long lines.
19188ac_delim='%!_!# '
19189for ac_last_try in false false :; do
19190  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19191  if test -z "$ac_tt"; then
19192    break
19193  elif $ac_last_try; then
19194    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19195  else
19196    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19197  fi
19198done
19199
19200# For the awk script, D is an array of macro values keyed by name,
19201# likewise P contains macro parameters if any.  Preserve backslash
19202# newline sequences.
19203
19204ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19205sed -n '
19206s/.\{148\}/&'"$ac_delim"'/g
19207t rset
19208:rset
19209s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
19210t def
19211d
19212:def
19213s/\\$//
19214t bsnl
19215s/["\\]/\\&/g
19216s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19217D["\1"]=" \3"/p
19218s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
19219d
19220:bsnl
19221s/["\\]/\\&/g
19222s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
19223D["\1"]=" \3\\\\\\n"\\/p
19224t cont
19225s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19226t cont
19227d
19228:cont
19229n
19230s/.\{148\}/&'"$ac_delim"'/g
19231t clear
19232:clear
19233s/\\$//
19234t bsnlc
19235s/["\\]/\\&/g; s/^/"/; s/$/"/p
19236d
19237:bsnlc
19238s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19239b cont
19240' <confdefs.h | sed '
19241s/'"$ac_delim"'/"\\\
19242"/g' >>$CONFIG_STATUS || ac_write_fail=1
19243
19244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19245  for (key in D) D_is_set[key] = 1
19246  FS = ""
19247}
19248/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19249  line = \$ 0
19250  split(line, arg, " ")
19251  if (arg[1] == "#") {
19252    defundef = arg[2]
19253    mac1 = arg[3]
19254  } else {
19255    defundef = substr(arg[1], 2)
19256    mac1 = arg[2]
19257  }
19258  split(mac1, mac2, "(") #)
19259  macro = mac2[1]
19260  prefix = substr(line, 1, index(line, defundef) - 1)
19261  if (D_is_set[macro]) {
19262    # Preserve the white space surrounding the "#".
19263    print prefix "define", macro P[macro] D[macro]
19264    next
19265  } else {
19266    # Replace #undef with comments.  This is necessary, for example,
19267    # in the case of _POSIX_SOURCE, which is predefined and required
19268    # on some systems where configure will not decide to define it.
19269    if (defundef == "undef") {
19270      print "/*", prefix defundef, macro, "*/"
19271      next
19272    }
19273  }
19274}
19275{ print }
19276_ACAWK
19277_ACEOF
19278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19279  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19280fi # test -n "$CONFIG_HEADERS"
19281
19282
19283eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
19284shift
19285for ac_tag
19286do
19287  case $ac_tag in
19288  :[FHLC]) ac_mode=$ac_tag; continue;;
19289  esac
19290  case $ac_mode$ac_tag in
19291  :[FHL]*:*);;
19292  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19293  :[FH]-) ac_tag=-:-;;
19294  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19295  esac
19296  ac_save_IFS=$IFS
19297  IFS=:
19298  set x $ac_tag
19299  IFS=$ac_save_IFS
19300  shift
19301  ac_file=$1
19302  shift
19303
19304  case $ac_mode in
19305  :L) ac_source=$1;;
19306  :[FH])
19307    ac_file_inputs=
19308    for ac_f
19309    do
19310      case $ac_f in
19311      -) ac_f="$ac_tmp/stdin";;
19312      *) # Look for the file first in the build tree, then in the source tree
19313	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
19314	 # because $ac_f cannot contain `:'.
19315	 test -f "$ac_f" ||
19316	   case $ac_f in
19317	   [\\/$]*) false;;
19318	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19319	   esac ||
19320	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19321      esac
19322      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19323      as_fn_append ac_file_inputs " '$ac_f'"
19324    done
19325
19326    # Let's still pretend it is `configure' which instantiates (i.e., don't
19327    # use $as_me), people would be surprised to read:
19328    #    /* config.h.  Generated by config.status.  */
19329    configure_input='Generated from '`
19330	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19331	`' by configure.'
19332    if test x"$ac_file" != x-; then
19333      configure_input="$ac_file.  $configure_input"
19334      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19335$as_echo "$as_me: creating $ac_file" >&6;}
19336    fi
19337    # Neutralize special characters interpreted by sed in replacement strings.
19338    case $configure_input in #(
19339    *\&* | *\|* | *\\* )
19340       ac_sed_conf_input=`$as_echo "$configure_input" |
19341       sed 's/[\\\\&|]/\\\\&/g'`;; #(
19342    *) ac_sed_conf_input=$configure_input;;
19343    esac
19344
19345    case $ac_tag in
19346    *:-:* | *:-) cat >"$ac_tmp/stdin" \
19347      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19348    esac
19349    ;;
19350  esac
19351
19352  ac_dir=`$as_dirname -- "$ac_file" ||
19353$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19354	 X"$ac_file" : 'X\(//\)[^/]' \| \
19355	 X"$ac_file" : 'X\(//\)$' \| \
19356	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19357$as_echo X"$ac_file" |
19358    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19359	    s//\1/
19360	    q
19361	  }
19362	  /^X\(\/\/\)[^/].*/{
19363	    s//\1/
19364	    q
19365	  }
19366	  /^X\(\/\/\)$/{
19367	    s//\1/
19368	    q
19369	  }
19370	  /^X\(\/\).*/{
19371	    s//\1/
19372	    q
19373	  }
19374	  s/.*/./; q'`
19375  as_dir="$ac_dir"; as_fn_mkdir_p
19376  ac_builddir=.
19377
19378case "$ac_dir" in
19379.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19380*)
19381  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19382  # A ".." for each directory in $ac_dir_suffix.
19383  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19384  case $ac_top_builddir_sub in
19385  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19386  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19387  esac ;;
19388esac
19389ac_abs_top_builddir=$ac_pwd
19390ac_abs_builddir=$ac_pwd$ac_dir_suffix
19391# for backward compatibility:
19392ac_top_builddir=$ac_top_build_prefix
19393
19394case $srcdir in
19395  .)  # We are building in place.
19396    ac_srcdir=.
19397    ac_top_srcdir=$ac_top_builddir_sub
19398    ac_abs_top_srcdir=$ac_pwd ;;
19399  [\\/]* | ?:[\\/]* )  # Absolute name.
19400    ac_srcdir=$srcdir$ac_dir_suffix;
19401    ac_top_srcdir=$srcdir
19402    ac_abs_top_srcdir=$srcdir ;;
19403  *) # Relative name.
19404    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19405    ac_top_srcdir=$ac_top_build_prefix$srcdir
19406    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19407esac
19408ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19409
19410
19411  case $ac_mode in
19412  :F)
19413  #
19414  # CONFIG_FILE
19415  #
19416
19417  case $INSTALL in
19418  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19419  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19420  esac
19421  ac_MKDIR_P=$MKDIR_P
19422  case $MKDIR_P in
19423  [\\/$]* | ?:[\\/]* ) ;;
19424  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19425  esac
19426_ACEOF
19427
19428cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19429# If the template does not know about datarootdir, expand it.
19430# FIXME: This hack should be removed a few years after 2.60.
19431ac_datarootdir_hack=; ac_datarootdir_seen=
19432ac_sed_dataroot='
19433/datarootdir/ {
19434  p
19435  q
19436}
19437/@datadir@/p
19438/@docdir@/p
19439/@infodir@/p
19440/@localedir@/p
19441/@mandir@/p'
19442case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19443*datarootdir*) ac_datarootdir_seen=yes;;
19444*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19445  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19446$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19447_ACEOF
19448cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19449  ac_datarootdir_hack='
19450  s&@datadir@&$datadir&g
19451  s&@docdir@&$docdir&g
19452  s&@infodir@&$infodir&g
19453  s&@localedir@&$localedir&g
19454  s&@mandir@&$mandir&g
19455  s&\\\${datarootdir}&$datarootdir&g' ;;
19456esac
19457_ACEOF
19458
19459# Neutralize VPATH when `$srcdir' = `.'.
19460# Shell code in configure.ac might set extrasub.
19461# FIXME: do we really want to maintain this feature?
19462cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19463ac_sed_extra="$ac_vpsub
19464$extrasub
19465_ACEOF
19466cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19467:t
19468/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19469s|@configure_input@|$ac_sed_conf_input|;t t
19470s&@top_builddir@&$ac_top_builddir_sub&;t t
19471s&@top_build_prefix@&$ac_top_build_prefix&;t t
19472s&@srcdir@&$ac_srcdir&;t t
19473s&@abs_srcdir@&$ac_abs_srcdir&;t t
19474s&@top_srcdir@&$ac_top_srcdir&;t t
19475s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19476s&@builddir@&$ac_builddir&;t t
19477s&@abs_builddir@&$ac_abs_builddir&;t t
19478s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19479s&@INSTALL@&$ac_INSTALL&;t t
19480s&@MKDIR_P@&$ac_MKDIR_P&;t t
19481$ac_datarootdir_hack
19482"
19483eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19484  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19485
19486test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19487  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19488  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
19489      "$ac_tmp/out"`; test -z "$ac_out"; } &&
19490  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19491which seems to be undefined.  Please make sure it is defined" >&5
19492$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19493which seems to be undefined.  Please make sure it is defined" >&2;}
19494
19495  rm -f "$ac_tmp/stdin"
19496  case $ac_file in
19497  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19498  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19499  esac \
19500  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19501 ;;
19502  :H)
19503  #
19504  # CONFIG_HEADER
19505  #
19506  if test x"$ac_file" != x-; then
19507    {
19508      $as_echo "/* $configure_input  */" \
19509      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19510    } >"$ac_tmp/config.h" \
19511      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19512    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19513      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19514$as_echo "$as_me: $ac_file is unchanged" >&6;}
19515    else
19516      rm -f "$ac_file"
19517      mv "$ac_tmp/config.h" "$ac_file" \
19518	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
19519    fi
19520  else
19521    $as_echo "/* $configure_input  */" \
19522      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19523      || as_fn_error $? "could not create -" "$LINENO" 5
19524  fi
19525# Compute "$ac_file"'s index in $config_headers.
19526_am_arg="$ac_file"
19527_am_stamp_count=1
19528for _am_header in $config_headers :; do
19529  case $_am_header in
19530    $_am_arg | $_am_arg:* )
19531      break ;;
19532    * )
19533      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19534  esac
19535done
19536echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19537$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19538	 X"$_am_arg" : 'X\(//\)[^/]' \| \
19539	 X"$_am_arg" : 'X\(//\)$' \| \
19540	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19541$as_echo X"$_am_arg" |
19542    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19543	    s//\1/
19544	    q
19545	  }
19546	  /^X\(\/\/\)[^/].*/{
19547	    s//\1/
19548	    q
19549	  }
19550	  /^X\(\/\/\)$/{
19551	    s//\1/
19552	    q
19553	  }
19554	  /^X\(\/\).*/{
19555	    s//\1/
19556	    q
19557	  }
19558	  s/.*/./; q'`/stamp-h$_am_stamp_count
19559 ;;
19560
19561  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19562$as_echo "$as_me: executing $ac_file commands" >&6;}
19563 ;;
19564  esac
19565
19566
19567  case $ac_file$ac_mode in
19568    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19569  # Older Autoconf quotes --file arguments for eval, but not when files
19570  # are listed without --file.  Let's play safe and only enable the eval
19571  # if we detect the quoting.
19572  case $CONFIG_FILES in
19573  *\'*) eval set x "$CONFIG_FILES" ;;
19574  *)   set x $CONFIG_FILES ;;
19575  esac
19576  shift
19577  for mf
19578  do
19579    # Strip MF so we end up with the name of the file.
19580    mf=`echo "$mf" | sed -e 's/:.*$//'`
19581    # Check whether this is an Automake generated Makefile or not.
19582    # We used to match only the files named 'Makefile.in', but
19583    # some people rename them; so instead we look at the file content.
19584    # Grep'ing the first line is not enough: some people post-process
19585    # each Makefile.in and add a new line on top of each file to say so.
19586    # Grep'ing the whole file is not good either: AIX grep has a line
19587    # limit of 2048, but all sed's we know have understand at least 4000.
19588    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19589      dirpart=`$as_dirname -- "$mf" ||
19590$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19591	 X"$mf" : 'X\(//\)[^/]' \| \
19592	 X"$mf" : 'X\(//\)$' \| \
19593	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19594$as_echo X"$mf" |
19595    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19596	    s//\1/
19597	    q
19598	  }
19599	  /^X\(\/\/\)[^/].*/{
19600	    s//\1/
19601	    q
19602	  }
19603	  /^X\(\/\/\)$/{
19604	    s//\1/
19605	    q
19606	  }
19607	  /^X\(\/\).*/{
19608	    s//\1/
19609	    q
19610	  }
19611	  s/.*/./; q'`
19612    else
19613      continue
19614    fi
19615    # Extract the definition of DEPDIR, am__include, and am__quote
19616    # from the Makefile without running 'make'.
19617    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19618    test -z "$DEPDIR" && continue
19619    am__include=`sed -n 's/^am__include = //p' < "$mf"`
19620    test -z "$am__include" && continue
19621    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19622    # Find all dependency output files, they are included files with
19623    # $(DEPDIR) in their names.  We invoke sed twice because it is the
19624    # simplest approach to changing $(DEPDIR) to its actual value in the
19625    # expansion.
19626    for file in `sed -n "
19627      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19628	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19629      # Make sure the directory exists.
19630      test -f "$dirpart/$file" && continue
19631      fdir=`$as_dirname -- "$file" ||
19632$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19633	 X"$file" : 'X\(//\)[^/]' \| \
19634	 X"$file" : 'X\(//\)$' \| \
19635	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19636$as_echo X"$file" |
19637    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19638	    s//\1/
19639	    q
19640	  }
19641	  /^X\(\/\/\)[^/].*/{
19642	    s//\1/
19643	    q
19644	  }
19645	  /^X\(\/\/\)$/{
19646	    s//\1/
19647	    q
19648	  }
19649	  /^X\(\/\).*/{
19650	    s//\1/
19651	    q
19652	  }
19653	  s/.*/./; q'`
19654      as_dir=$dirpart/$fdir; as_fn_mkdir_p
19655      # echo "creating $dirpart/$file"
19656      echo '# dummy' > "$dirpart/$file"
19657    done
19658  done
19659}
19660 ;;
19661    "libtool":C)
19662
19663    # See if we are running on zsh, and set the options that allow our
19664    # commands through without removal of \ escapes.
19665    if test -n "${ZSH_VERSION+set}"; then
19666      setopt NO_GLOB_SUBST
19667    fi
19668
19669    cfgfile=${ofile}T
19670    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19671    $RM "$cfgfile"
19672
19673    cat <<_LT_EOF >> "$cfgfile"
19674#! $SHELL
19675# Generated automatically by $as_me ($PACKAGE) $VERSION
19676# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19677
19678# Provide generalized library-building support services.
19679# Written by Gordon Matzigkeit, 1996
19680
19681# Copyright (C) 2014 Free Software Foundation, Inc.
19682# This is free software; see the source for copying conditions.  There is NO
19683# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19684
19685# GNU Libtool is free software; you can redistribute it and/or modify
19686# it under the terms of the GNU General Public License as published by
19687# the Free Software Foundation; either version 2 of of the License, or
19688# (at your option) any later version.
19689#
19690# As a special exception to the GNU General Public License, if you
19691# distribute this file as part of a program or library that is built
19692# using GNU Libtool, you may include this file under the  same
19693# distribution terms that you use for the rest of that program.
19694#
19695# GNU Libtool is distributed in the hope that it will be useful, but
19696# WITHOUT ANY WARRANTY; without even the implied warranty of
19697# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19698# GNU General Public License for more details.
19699#
19700# You should have received a copy of the GNU General Public License
19701# along with this program.  If not, see <http://www.gnu.org/licenses/>.
19702
19703
19704# The names of the tagged configurations supported by this script.
19705available_tags=''
19706
19707# Configured defaults for sys_lib_dlsearch_path munging.
19708: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19709
19710# ### BEGIN LIBTOOL CONFIG
19711
19712# Which release of libtool.m4 was used?
19713macro_version=$macro_version
19714macro_revision=$macro_revision
19715
19716# Whether or not to build shared libraries.
19717build_libtool_libs=$enable_shared
19718
19719# Whether or not to build static libraries.
19720build_old_libs=$enable_static
19721
19722# What type of objects to build.
19723pic_mode=$pic_mode
19724
19725# Whether or not to optimize for fast installation.
19726fast_install=$enable_fast_install
19727
19728# Shared archive member basename,for filename based shared library versioning on AIX.
19729shared_archive_member_spec=$shared_archive_member_spec
19730
19731# Shell to use when invoking shell scripts.
19732SHELL=$lt_SHELL
19733
19734# An echo program that protects backslashes.
19735ECHO=$lt_ECHO
19736
19737# The PATH separator for the build system.
19738PATH_SEPARATOR=$lt_PATH_SEPARATOR
19739
19740# The host system.
19741host_alias=$host_alias
19742host=$host
19743host_os=$host_os
19744
19745# The build system.
19746build_alias=$build_alias
19747build=$build
19748build_os=$build_os
19749
19750# A sed program that does not truncate output.
19751SED=$lt_SED
19752
19753# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19754Xsed="\$SED -e 1s/^X//"
19755
19756# A grep program that handles long lines.
19757GREP=$lt_GREP
19758
19759# An ERE matcher.
19760EGREP=$lt_EGREP
19761
19762# A literal string matcher.
19763FGREP=$lt_FGREP
19764
19765# A BSD- or MS-compatible name lister.
19766NM=$lt_NM
19767
19768# Whether we need soft or hard links.
19769LN_S=$lt_LN_S
19770
19771# What is the maximum length of a command?
19772max_cmd_len=$max_cmd_len
19773
19774# Object file suffix (normally "o").
19775objext=$ac_objext
19776
19777# Executable file suffix (normally "").
19778exeext=$exeext
19779
19780# whether the shell understands "unset".
19781lt_unset=$lt_unset
19782
19783# turn spaces into newlines.
19784SP2NL=$lt_lt_SP2NL
19785
19786# turn newlines into spaces.
19787NL2SP=$lt_lt_NL2SP
19788
19789# convert \$build file names to \$host format.
19790to_host_file_cmd=$lt_cv_to_host_file_cmd
19791
19792# convert \$build files to toolchain format.
19793to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19794
19795# An object symbol dumper.
19796OBJDUMP=$lt_OBJDUMP
19797
19798# Method to check whether dependent libraries are shared objects.
19799deplibs_check_method=$lt_deplibs_check_method
19800
19801# Command to use when deplibs_check_method = "file_magic".
19802file_magic_cmd=$lt_file_magic_cmd
19803
19804# How to find potential files when deplibs_check_method = "file_magic".
19805file_magic_glob=$lt_file_magic_glob
19806
19807# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19808want_nocaseglob=$lt_want_nocaseglob
19809
19810# DLL creation program.
19811DLLTOOL=$lt_DLLTOOL
19812
19813# Command to associate shared and link libraries.
19814sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19815
19816# The archiver.
19817AR=$lt_AR
19818
19819# Flags to create an archive.
19820AR_FLAGS=$lt_AR_FLAGS
19821
19822# How to feed a file listing to the archiver.
19823archiver_list_spec=$lt_archiver_list_spec
19824
19825# A symbol stripping program.
19826STRIP=$lt_STRIP
19827
19828# Commands used to install an old-style archive.
19829RANLIB=$lt_RANLIB
19830old_postinstall_cmds=$lt_old_postinstall_cmds
19831old_postuninstall_cmds=$lt_old_postuninstall_cmds
19832
19833# Whether to use a lock for old archive extraction.
19834lock_old_archive_extraction=$lock_old_archive_extraction
19835
19836# A C compiler.
19837LTCC=$lt_CC
19838
19839# LTCC compiler flags.
19840LTCFLAGS=$lt_CFLAGS
19841
19842# Take the output of nm and produce a listing of raw symbols and C names.
19843global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19844
19845# Transform the output of nm in a proper C declaration.
19846global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19847
19848# Transform the output of nm into a list of symbols to manually relocate.
19849global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19850
19851# Transform the output of nm in a C name address pair.
19852global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19853
19854# Transform the output of nm in a C name address pair when lib prefix is needed.
19855global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19856
19857# The name lister interface.
19858nm_interface=$lt_lt_cv_nm_interface
19859
19860# Specify filename containing input files for \$NM.
19861nm_file_list_spec=$lt_nm_file_list_spec
19862
19863# The root where to search for dependent libraries,and where our libraries should be installed.
19864lt_sysroot=$lt_sysroot
19865
19866# Command to truncate a binary pipe.
19867lt_truncate_bin=$lt_lt_cv_truncate_bin
19868
19869# The name of the directory that contains temporary libtool files.
19870objdir=$objdir
19871
19872# Used to examine libraries when file_magic_cmd begins with "file".
19873MAGIC_CMD=$MAGIC_CMD
19874
19875# Must we lock files when doing compilation?
19876need_locks=$lt_need_locks
19877
19878# Manifest tool.
19879MANIFEST_TOOL=$lt_MANIFEST_TOOL
19880
19881# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19882DSYMUTIL=$lt_DSYMUTIL
19883
19884# Tool to change global to local symbols on Mac OS X.
19885NMEDIT=$lt_NMEDIT
19886
19887# Tool to manipulate fat objects and archives on Mac OS X.
19888LIPO=$lt_LIPO
19889
19890# ldd/readelf like tool for Mach-O binaries on Mac OS X.
19891OTOOL=$lt_OTOOL
19892
19893# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19894OTOOL64=$lt_OTOOL64
19895
19896# Old archive suffix (normally "a").
19897libext=$libext
19898
19899# Shared library suffix (normally ".so").
19900shrext_cmds=$lt_shrext_cmds
19901
19902# The commands to extract the exported symbol list from a shared archive.
19903extract_expsyms_cmds=$lt_extract_expsyms_cmds
19904
19905# Variables whose values should be saved in libtool wrapper scripts and
19906# restored at link time.
19907variables_saved_for_relink=$lt_variables_saved_for_relink
19908
19909# Do we need the "lib" prefix for modules?
19910need_lib_prefix=$need_lib_prefix
19911
19912# Do we need a version for libraries?
19913need_version=$need_version
19914
19915# Library versioning type.
19916version_type=$version_type
19917
19918# Shared library runtime path variable.
19919runpath_var=$runpath_var
19920
19921# Shared library path variable.
19922shlibpath_var=$shlibpath_var
19923
19924# Is shlibpath searched before the hard-coded library search path?
19925shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19926
19927# Format of library name prefix.
19928libname_spec=$lt_libname_spec
19929
19930# List of archive names.  First name is the real one, the rest are links.
19931# The last name is the one that the linker finds with -lNAME
19932library_names_spec=$lt_library_names_spec
19933
19934# The coded name of the library, if different from the real name.
19935soname_spec=$lt_soname_spec
19936
19937# Permission mode override for installation of shared libraries.
19938install_override_mode=$lt_install_override_mode
19939
19940# Command to use after installation of a shared archive.
19941postinstall_cmds=$lt_postinstall_cmds
19942
19943# Command to use after uninstallation of a shared archive.
19944postuninstall_cmds=$lt_postuninstall_cmds
19945
19946# Commands used to finish a libtool library installation in a directory.
19947finish_cmds=$lt_finish_cmds
19948
19949# As "finish_cmds", except a single script fragment to be evaled but
19950# not shown.
19951finish_eval=$lt_finish_eval
19952
19953# Whether we should hardcode library paths into libraries.
19954hardcode_into_libs=$hardcode_into_libs
19955
19956# Compile-time system search path for libraries.
19957sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19958
19959# Detected run-time system search path for libraries.
19960sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19961
19962# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19963configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19964
19965# Whether dlopen is supported.
19966dlopen_support=$enable_dlopen
19967
19968# Whether dlopen of programs is supported.
19969dlopen_self=$enable_dlopen_self
19970
19971# Whether dlopen of statically linked programs is supported.
19972dlopen_self_static=$enable_dlopen_self_static
19973
19974# Commands to strip libraries.
19975old_striplib=$lt_old_striplib
19976striplib=$lt_striplib
19977
19978
19979# The linker used to build libraries.
19980LD=$lt_LD
19981
19982# How to create reloadable object files.
19983reload_flag=$lt_reload_flag
19984reload_cmds=$lt_reload_cmds
19985
19986# Commands used to build an old-style archive.
19987old_archive_cmds=$lt_old_archive_cmds
19988
19989# A language specific compiler.
19990CC=$lt_compiler
19991
19992# Is the compiler the GNU compiler?
19993with_gcc=$GCC
19994
19995# Compiler flag to turn off builtin functions.
19996no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19997
19998# Additional compiler flags for building library objects.
19999pic_flag=$lt_lt_prog_compiler_pic
20000
20001# How to pass a linker flag through the compiler.
20002wl=$lt_lt_prog_compiler_wl
20003
20004# Compiler flag to prevent dynamic linking.
20005link_static_flag=$lt_lt_prog_compiler_static
20006
20007# Does compiler simultaneously support -c and -o options?
20008compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20009
20010# Whether or not to add -lc for building shared libraries.
20011build_libtool_need_lc=$archive_cmds_need_lc
20012
20013# Whether or not to disallow shared libs when runtime libs are static.
20014allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20015
20016# Compiler flag to allow reflexive dlopens.
20017export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20018
20019# Compiler flag to generate shared objects directly from archives.
20020whole_archive_flag_spec=$lt_whole_archive_flag_spec
20021
20022# Whether the compiler copes with passing no objects directly.
20023compiler_needs_object=$lt_compiler_needs_object
20024
20025# Create an old-style archive from a shared archive.
20026old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20027
20028# Create a temporary old-style archive to link instead of a shared archive.
20029old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20030
20031# Commands used to build a shared archive.
20032archive_cmds=$lt_archive_cmds
20033archive_expsym_cmds=$lt_archive_expsym_cmds
20034
20035# Commands used to build a loadable module if different from building
20036# a shared archive.
20037module_cmds=$lt_module_cmds
20038module_expsym_cmds=$lt_module_expsym_cmds
20039
20040# Whether we are building with GNU ld or not.
20041with_gnu_ld=$lt_with_gnu_ld
20042
20043# Flag that allows shared libraries with undefined symbols to be built.
20044allow_undefined_flag=$lt_allow_undefined_flag
20045
20046# Flag that enforces no undefined symbols.
20047no_undefined_flag=$lt_no_undefined_flag
20048
20049# Flag to hardcode \$libdir into a binary during linking.
20050# This must work even if \$libdir does not exist
20051hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20052
20053# Whether we need a single "-rpath" flag with a separated argument.
20054hardcode_libdir_separator=$lt_hardcode_libdir_separator
20055
20056# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20057# DIR into the resulting binary.
20058hardcode_direct=$hardcode_direct
20059
20060# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
20061# DIR into the resulting binary and the resulting library dependency is
20062# "absolute",i.e impossible to change by setting \$shlibpath_var if the
20063# library is relocated.
20064hardcode_direct_absolute=$hardcode_direct_absolute
20065
20066# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20067# into the resulting binary.
20068hardcode_minus_L=$hardcode_minus_L
20069
20070# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20071# into the resulting binary.
20072hardcode_shlibpath_var=$hardcode_shlibpath_var
20073
20074# Set to "yes" if building a shared library automatically hardcodes DIR
20075# into the library and all subsequent libraries and executables linked
20076# against it.
20077hardcode_automatic=$hardcode_automatic
20078
20079# Set to yes if linker adds runtime paths of dependent libraries
20080# to runtime path list.
20081inherit_rpath=$inherit_rpath
20082
20083# Whether libtool must link a program against all its dependency libraries.
20084link_all_deplibs=$link_all_deplibs
20085
20086# Set to "yes" if exported symbols are required.
20087always_export_symbols=$always_export_symbols
20088
20089# The commands to list exported symbols.
20090export_symbols_cmds=$lt_export_symbols_cmds
20091
20092# Symbols that should not be listed in the preloaded symbols.
20093exclude_expsyms=$lt_exclude_expsyms
20094
20095# Symbols that must always be exported.
20096include_expsyms=$lt_include_expsyms
20097
20098# Commands necessary for linking programs (against libraries) with templates.
20099prelink_cmds=$lt_prelink_cmds
20100
20101# Commands necessary for finishing linking programs.
20102postlink_cmds=$lt_postlink_cmds
20103
20104# Specify filename containing input files.
20105file_list_spec=$lt_file_list_spec
20106
20107# How to hardcode a shared library path into an executable.
20108hardcode_action=$hardcode_action
20109
20110# ### END LIBTOOL CONFIG
20111
20112_LT_EOF
20113
20114    cat <<'_LT_EOF' >> "$cfgfile"
20115
20116# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
20117
20118# func_munge_path_list VARIABLE PATH
20119# -----------------------------------
20120# VARIABLE is name of variable containing _space_ separated list of
20121# directories to be munged by the contents of PATH, which is string
20122# having a format:
20123# "DIR[:DIR]:"
20124#       string "DIR[ DIR]" will be prepended to VARIABLE
20125# ":DIR[:DIR]"
20126#       string "DIR[ DIR]" will be appended to VARIABLE
20127# "DIRP[:DIRP]::[DIRA:]DIRA"
20128#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
20129#       "DIRA[ DIRA]" will be appended to VARIABLE
20130# "DIR[:DIR]"
20131#       VARIABLE will be replaced by "DIR[ DIR]"
20132func_munge_path_list ()
20133{
20134    case x$2 in
20135    x)
20136        ;;
20137    *:)
20138        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
20139        ;;
20140    x:*)
20141        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
20142        ;;
20143    *::*)
20144        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
20145        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
20146        ;;
20147    *)
20148        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
20149        ;;
20150    esac
20151}
20152
20153
20154# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
20155func_cc_basename ()
20156{
20157    for cc_temp in $*""; do
20158      case $cc_temp in
20159        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
20160        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
20161        \-*) ;;
20162        *) break;;
20163      esac
20164    done
20165    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
20166}
20167
20168
20169# ### END FUNCTIONS SHARED WITH CONFIGURE
20170
20171_LT_EOF
20172
20173  case $host_os in
20174  aix3*)
20175    cat <<\_LT_EOF >> "$cfgfile"
20176# AIX sometimes has problems with the GCC collect2 program.  For some
20177# reason, if we set the COLLECT_NAMES environment variable, the problems
20178# vanish in a puff of smoke.
20179if test set != "${COLLECT_NAMES+set}"; then
20180  COLLECT_NAMES=
20181  export COLLECT_NAMES
20182fi
20183_LT_EOF
20184    ;;
20185  esac
20186
20187
20188ltmain=$ac_aux_dir/ltmain.sh
20189
20190
20191  # We use sed instead of cat because bash on DJGPP gets confused if
20192  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
20193  # text mode, it properly converts lines to CR/LF.  This bash problem
20194  # is reportedly fixed, but why not run on old versions too?
20195  sed '$q' "$ltmain" >> "$cfgfile" \
20196     || (rm -f "$cfgfile"; exit 1)
20197
20198   mv -f "$cfgfile" "$ofile" ||
20199    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20200  chmod +x "$ofile"
20201
20202 ;;
20203
20204  esac
20205done # for ac_tag
20206
20207
20208as_fn_exit 0
20209_ACEOF
20210ac_clean_files=$ac_clean_files_save
20211
20212test $ac_write_fail = 0 ||
20213  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20214
20215
20216# configure is writing to config.log, and then calls config.status.
20217# config.status does its own redirection, appending to config.log.
20218# Unfortunately, on DOS this fails, as config.log is still kept open
20219# by configure, so config.status won't be able to write to it; its
20220# output is simply discarded.  So we exec the FD to /dev/null,
20221# effectively closing config.log, so it can be properly (re)opened and
20222# appended to by config.status.  When coming back to configure, we
20223# need to make the FD available again.
20224if test "$no_create" != yes; then
20225  ac_cs_success=:
20226  ac_config_status_args=
20227  test "$silent" = yes &&
20228    ac_config_status_args="$ac_config_status_args --quiet"
20229  exec 5>/dev/null
20230  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20231  exec 5>>config.log
20232  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20233  # would make configure fail if this is the last instruction.
20234  $ac_cs_success || as_fn_exit 1
20235fi
20236if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20237  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20238$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20239fi
20240
20241