1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.68 for zeromq 2.2.0.
4#
5# Report bugs to <zeromq-dev@lists.zeromq.org>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96  *[\\/]* ) as_myself=$0 ;;
97  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100  IFS=$as_save_IFS
101  test -z "$as_dir" && as_dir=.
102    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103  done
104IFS=$as_save_IFS
105
106     ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111  as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115  exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there.  '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141  emulate sh
142  NULLCMD=:
143  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144  # is contrary to our usage.  Disable this feature.
145  alias -g '\${1+\"\$@\"}'='\"\$@\"'
146  setopt NO_GLOB_SUBST
147else
148  case \`(set -o) 2>/dev/null\` in #(
149  *posix*) :
150    set -o posix ;; #(
151  *) :
152     ;;
153esac
154fi
155"
156  as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170  exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1
178
179  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183    PATH=/empty FPATH=/empty; export PATH FPATH
184    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186  if (eval "$as_required") 2>/dev/null; then :
187  as_have_required=yes
188else
189  as_have_required=no
190fi
191  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193else
194  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195as_found=false
196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197do
198  IFS=$as_save_IFS
199  test -z "$as_dir" && as_dir=.
200  as_found=:
201  case $as_dir in #(
202	 /*)
203	   for as_base in sh bash ksh sh5; do
204	     # Try only shells that exist, to save several forks.
205	     as_shell=$as_dir/$as_base
206	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208  CONFIG_SHELL=$as_shell as_have_required=yes
209		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210  break 2
211fi
212fi
213	   done;;
214       esac
215  as_found=false
216done
217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219  CONFIG_SHELL=$SHELL as_have_required=yes
220fi; }
221IFS=$as_save_IFS
222
223
224      if test "x$CONFIG_SHELL" != x; then :
225  # We cannot yet assume a decent shell, so we have to provide a
226	# neutralization value for shells without unset; and this also
227	# works around shells that cannot unset nonexistent variables.
228	# Preserve -v and -x to the replacement shell.
229	BASH_ENV=/dev/null
230	ENV=/dev/null
231	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232	export CONFIG_SHELL
233	case $- in # ((((
234	  *v*x* | *x*v* ) as_opts=-vx ;;
235	  *v* ) as_opts=-v ;;
236	  *x* ) as_opts=-x ;;
237	  * ) as_opts= ;;
238	esac
239	exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240fi
241
242    if test x$as_have_required = xno; then :
243  $as_echo "$0: This script requires a shell more modern than all"
244  $as_echo "$0: the shells that I found on your system."
245  if test x${ZSH_VERSION+set} = xset ; then
246    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248  else
249    $as_echo "$0: Please tell bug-autoconf@gnu.org and
250$0: zeromq-dev@lists.zeromq.org about your system,
251$0: including any error possibly output before this
252$0: message. Then install a modern shell, or manually run
253$0: the script under such a shell if you do have one."
254  fi
255  exit 1
256fi
257fi
258fi
259SHELL=${CONFIG_SHELL-/bin/sh}
260export SHELL
261# Unset more variables known to interfere with behavior of common tools.
262CLICOLOR_FORCE= GREP_OPTIONS=
263unset CLICOLOR_FORCE GREP_OPTIONS
264
265## --------------------- ##
266## M4sh Shell Functions. ##
267## --------------------- ##
268# as_fn_unset VAR
269# ---------------
270# Portably unset VAR.
271as_fn_unset ()
272{
273  { eval $1=; unset $1;}
274}
275as_unset=as_fn_unset
276
277# as_fn_set_status STATUS
278# -----------------------
279# Set $? to STATUS, without forking.
280as_fn_set_status ()
281{
282  return $1
283} # as_fn_set_status
284
285# as_fn_exit STATUS
286# -----------------
287# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
288as_fn_exit ()
289{
290  set +e
291  as_fn_set_status $1
292  exit $1
293} # as_fn_exit
294
295# as_fn_mkdir_p
296# -------------
297# Create "$as_dir" as a directory, including parents if necessary.
298as_fn_mkdir_p ()
299{
300
301  case $as_dir in #(
302  -*) as_dir=./$as_dir;;
303  esac
304  test -d "$as_dir" || eval $as_mkdir_p || {
305    as_dirs=
306    while :; do
307      case $as_dir in #(
308      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
309      *) as_qdir=$as_dir;;
310      esac
311      as_dirs="'$as_qdir' $as_dirs"
312      as_dir=`$as_dirname -- "$as_dir" ||
313$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314	 X"$as_dir" : 'X\(//\)[^/]' \| \
315	 X"$as_dir" : 'X\(//\)$' \| \
316	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317$as_echo X"$as_dir" |
318    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319	    s//\1/
320	    q
321	  }
322	  /^X\(\/\/\)[^/].*/{
323	    s//\1/
324	    q
325	  }
326	  /^X\(\/\/\)$/{
327	    s//\1/
328	    q
329	  }
330	  /^X\(\/\).*/{
331	    s//\1/
332	    q
333	  }
334	  s/.*/./; q'`
335      test -d "$as_dir" && break
336    done
337    test -z "$as_dirs" || eval "mkdir $as_dirs"
338  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
339
340
341} # as_fn_mkdir_p
342# as_fn_append VAR VALUE
343# ----------------------
344# Append the text in VALUE to the end of the definition contained in VAR. Take
345# advantage of any shell optimizations that allow amortized linear growth over
346# repeated appends, instead of the typical quadratic growth present in naive
347# implementations.
348if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349  eval 'as_fn_append ()
350  {
351    eval $1+=\$2
352  }'
353else
354  as_fn_append ()
355  {
356    eval $1=\$$1\$2
357  }
358fi # as_fn_append
359
360# as_fn_arith ARG...
361# ------------------
362# Perform arithmetic evaluation on the ARGs, and store the result in the
363# global $as_val. Take advantage of shells that can avoid forks. The arguments
364# must be portable across $(()) and expr.
365if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366  eval 'as_fn_arith ()
367  {
368    as_val=$(( $* ))
369  }'
370else
371  as_fn_arith ()
372  {
373    as_val=`expr "$@" || test $? -eq 1`
374  }
375fi # as_fn_arith
376
377
378# as_fn_error STATUS ERROR [LINENO LOG_FD]
379# ----------------------------------------
380# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382# script with STATUS, using 1 if that was 0.
383as_fn_error ()
384{
385  as_status=$1; test $as_status -eq 0 && as_status=1
386  if test "$4"; then
387    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389  fi
390  $as_echo "$as_me: error: $2" >&2
391  as_fn_exit $as_status
392} # as_fn_error
393
394if expr a : '\(a\)' >/dev/null 2>&1 &&
395   test "X`expr 00001 : '.*\(...\)'`" = X001; then
396  as_expr=expr
397else
398  as_expr=false
399fi
400
401if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
402  as_basename=basename
403else
404  as_basename=false
405fi
406
407if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
408  as_dirname=dirname
409else
410  as_dirname=false
411fi
412
413as_me=`$as_basename -- "$0" ||
414$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415	 X"$0" : 'X\(//\)$' \| \
416	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417$as_echo X/"$0" |
418    sed '/^.*\/\([^/][^/]*\)\/*$/{
419	    s//\1/
420	    q
421	  }
422	  /^X\/\(\/\/\)$/{
423	    s//\1/
424	    q
425	  }
426	  /^X\/\(\/\).*/{
427	    s//\1/
428	    q
429	  }
430	  s/.*/./; q'`
431
432# Avoid depending upon Character Ranges.
433as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436as_cr_digits='0123456789'
437as_cr_alnum=$as_cr_Letters$as_cr_digits
438
439
440  as_lineno_1=$LINENO as_lineno_1a=$LINENO
441  as_lineno_2=$LINENO as_lineno_2a=$LINENO
442  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
445  sed -n '
446    p
447    /[$]LINENO/=
448  ' <$as_myself |
449    sed '
450      s/[$]LINENO.*/&-/
451      t lineno
452      b
453      :lineno
454      N
455      :loop
456      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457      t loop
458      s/-\n.*//
459    ' >$as_me.lineno &&
460  chmod +x "$as_me.lineno" ||
461    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
462
463  # Don't try to exec as it changes $[0], causing all sort of problems
464  # (the dirname of $[0] is not the place where we might find the
465  # original and so on.  Autoconf is especially sensitive to this).
466  . "./$as_me.lineno"
467  # Exit status is that of the last command.
468  exit
469}
470
471ECHO_C= ECHO_N= ECHO_T=
472case `echo -n x` in #(((((
473-n*)
474  case `echo 'xy\c'` in
475  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
476  xy)  ECHO_C='\c';;
477  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
478       ECHO_T='	';;
479  esac;;
480*)
481  ECHO_N='-n';;
482esac
483
484rm -f conf$$ conf$$.exe conf$$.file
485if test -d conf$$.dir; then
486  rm -f conf$$.dir/conf$$.file
487else
488  rm -f conf$$.dir
489  mkdir conf$$.dir 2>/dev/null
490fi
491if (echo >conf$$.file) 2>/dev/null; then
492  if ln -s conf$$.file conf$$ 2>/dev/null; then
493    as_ln_s='ln -s'
494    # ... but there are two gotchas:
495    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497    # In both cases, we have to default to `cp -p'.
498    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499      as_ln_s='cp -p'
500  elif ln conf$$.file conf$$ 2>/dev/null; then
501    as_ln_s=ln
502  else
503    as_ln_s='cp -p'
504  fi
505else
506  as_ln_s='cp -p'
507fi
508rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509rmdir conf$$.dir 2>/dev/null
510
511if mkdir -p . 2>/dev/null; then
512  as_mkdir_p='mkdir -p "$as_dir"'
513else
514  test -d ./-p && rmdir ./-p
515  as_mkdir_p=false
516fi
517
518if test -x / >/dev/null 2>&1; then
519  as_test_x='test -x'
520else
521  if ls -dL / >/dev/null 2>&1; then
522    as_ls_L_option=L
523  else
524    as_ls_L_option=
525  fi
526  as_test_x='
527    eval sh -c '\''
528      if test -d "$1"; then
529	test -d "$1/.";
530      else
531	case $1 in #(
532	-*)set "./$1";;
533	esac;
534	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535	???[sx]*):;;*)false;;esac;fi
536    '\'' sh
537  '
538fi
539as_executable_p=$as_test_x
540
541# Sed expression to map a string onto a valid CPP name.
542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543
544# Sed expression to map a string onto a valid variable name.
545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546
547SHELL=${CONFIG_SHELL-/bin/sh}
548
549
550test -n "$DJDIR" || exec 7<&0 </dev/null
551exec 6>&1
552
553# Name of the host.
554# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555# so uname gets run too.
556ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557
558#
559# Initializations.
560#
561ac_default_prefix=/usr/local
562ac_clean_files=
563ac_config_libobj_dir=.
564LIBOBJS=
565cross_compiling=no
566subdirs=
567MFLAGS=
568MAKEFLAGS=
569
570# Identity of this package.
571PACKAGE_NAME='zeromq'
572PACKAGE_TARNAME='zeromq'
573PACKAGE_VERSION='2.2.0'
574PACKAGE_STRING='zeromq 2.2.0'
575PACKAGE_BUGREPORT='zeromq-dev@lists.zeromq.org'
576PACKAGE_URL=''
577
578# Factoring default headers for most tests.
579ac_includes_default="\
580#include <stdio.h>
581#ifdef HAVE_SYS_TYPES_H
582# include <sys/types.h>
583#endif
584#ifdef HAVE_SYS_STAT_H
585# include <sys/stat.h>
586#endif
587#ifdef STDC_HEADERS
588# include <stdlib.h>
589# include <stddef.h>
590#else
591# ifdef HAVE_STDLIB_H
592#  include <stdlib.h>
593# endif
594#endif
595#ifdef HAVE_STRING_H
596# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
597#  include <memory.h>
598# endif
599# include <string.h>
600#endif
601#ifdef HAVE_STRINGS_H
602# include <strings.h>
603#endif
604#ifdef HAVE_INTTYPES_H
605# include <inttypes.h>
606#endif
607#ifdef HAVE_STDINT_H
608# include <stdint.h>
609#endif
610#ifdef HAVE_UNISTD_H
611# include <unistd.h>
612#endif"
613
614enable_option_checking=no
615ac_subst_vars='am__EXEEXT_FALSE
616am__EXEEXT_TRUE
617LTLIBOBJS
618LIBOBJS
619LIBZMQ_EXTRA_LDFLAGS
620LIBZMQ_EXTRA_CXXFLAGS
621LIBZMQ_EXTRA_CFLAGS
622ON_MINGW_FALSE
623ON_MINGW_TRUE
624BUILD_PGM_FALSE
625BUILD_PGM_TRUE
626pgm_basename
627OpenPGM_LIBS
628OpenPGM_CFLAGS
629PKG_CONFIG_LIBDIR
630PKG_CONFIG_PATH
631PKG_CONFIG
632subdirs
633pgm_srcdir
634pgm_subdir
635INSTALL_MAN_FALSE
636INSTALL_MAN_TRUE
637BUILD_DOC_FALSE
638BUILD_DOC_TRUE
639libzmq_have_xmlto
640libzmq_have_asciidoc
641CXXCPP
642CPP
643OTOOL64
644OTOOL
645LIPO
646NMEDIT
647DSYMUTIL
648MANIFEST_TOOL
649RANLIB
650ac_ct_AR
651AR
652LN_S
653NM
654ac_ct_DUMPBIN
655DUMPBIN
656LD
657FGREP
658EGREP
659GREP
660LIBTOOL
661OBJDUMP
662DLLTOOL
663AS
664host_os
665host_vendor
666host_cpu
667host
668build_os
669build_vendor
670build_cpu
671build
672ASCIIDOC
673XMLTO
674SED
675am__fastdepCXX_FALSE
676am__fastdepCXX_TRUE
677CXXDEPMODE
678ac_ct_CXX
679CXXFLAGS
680CXX
681am__fastdepCC_FALSE
682am__fastdepCC_TRUE
683CCDEPMODE
684AMDEPBACKSLASH
685AMDEP_FALSE
686AMDEP_TRUE
687am__quote
688am__include
689DEPDIR
690OBJEXT
691EXEEXT
692ac_ct_CC
693CPPFLAGS
694LDFLAGS
695CFLAGS
696CC
697LTVER
698AM_BACKSLASH
699AM_DEFAULT_VERBOSITY
700am__untar
701am__tar
702AMTAR
703am__leading_dot
704SET_MAKE
705AWK
706mkdir_p
707MKDIR_P
708INSTALL_STRIP_PROGRAM
709STRIP
710install_sh
711MAKEINFO
712AUTOHEADER
713AUTOMAKE
714AUTOCONF
715ACLOCAL
716VERSION
717PACKAGE
718CYGPATH_W
719am__isrc
720INSTALL_DATA
721INSTALL_SCRIPT
722INSTALL_PROGRAM
723target_alias
724host_alias
725build_alias
726LIBS
727ECHO_T
728ECHO_N
729ECHO_C
730DEFS
731mandir
732localedir
733libdir
734psdir
735pdfdir
736dvidir
737htmldir
738infodir
739docdir
740oldincludedir
741includedir
742localstatedir
743sharedstatedir
744sysconfdir
745datadir
746datarootdir
747libexecdir
748sbindir
749bindir
750program_transform_name
751prefix
752exec_prefix
753PACKAGE_URL
754PACKAGE_BUGREPORT
755PACKAGE_STRING
756PACKAGE_VERSION
757PACKAGE_TARNAME
758PACKAGE_NAME
759PATH_SEPARATOR
760SHELL'
761ac_subst_files=''
762ac_user_opts='
763enable_option_checking
764enable_silent_rules
765enable_dependency_tracking
766enable_static
767enable_shared
768with_pic
769enable_fast_install
770with_gnu_ld
771with_sysroot
772enable_libtool_lock
773enable_debug
774with_gcov
775with_dce
776with_documentation
777with_poller
778with_pgm
779with_system_pgm
780'
781      ac_precious_vars='build_alias
782host_alias
783target_alias
784CC
785CFLAGS
786LDFLAGS
787LIBS
788CPPFLAGS
789CXX
790CXXFLAGS
791CCC
792XMLTO
793ASCIIDOC
794CPP
795CXXCPP
796PKG_CONFIG
797PKG_CONFIG_PATH
798PKG_CONFIG_LIBDIR
799OpenPGM_CFLAGS
800OpenPGM_LIBS'
801ac_subdirs_all='foreign/openpgm/build-staging/openpgm/pgm/'
802
803# Initialize some variables set by options.
804ac_init_help=
805ac_init_version=false
806ac_unrecognized_opts=
807ac_unrecognized_sep=
808# The variables have the same names as the options, with
809# dashes changed to underlines.
810cache_file=/dev/null
811exec_prefix=NONE
812no_create=
813no_recursion=
814prefix=NONE
815program_prefix=NONE
816program_suffix=NONE
817program_transform_name=s,x,x,
818silent=
819site=
820srcdir=
821verbose=
822x_includes=NONE
823x_libraries=NONE
824
825# Installation directory options.
826# These are left unexpanded so users can "make install exec_prefix=/foo"
827# and all the variables that are supposed to be based on exec_prefix
828# by default will actually change.
829# Use braces instead of parens because sh, perl, etc. also accept them.
830# (The list follows the same order as the GNU Coding Standards.)
831bindir='${exec_prefix}/bin'
832sbindir='${exec_prefix}/sbin'
833libexecdir='${exec_prefix}/libexec'
834datarootdir='${prefix}/share'
835datadir='${datarootdir}'
836sysconfdir='${prefix}/etc'
837sharedstatedir='${prefix}/com'
838localstatedir='${prefix}/var'
839includedir='${prefix}/include'
840oldincludedir='/usr/include'
841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842infodir='${datarootdir}/info'
843htmldir='${docdir}'
844dvidir='${docdir}'
845pdfdir='${docdir}'
846psdir='${docdir}'
847libdir='${exec_prefix}/lib'
848localedir='${datarootdir}/locale'
849mandir='${datarootdir}/man'
850
851ac_prev=
852ac_dashdash=
853for ac_option
854do
855  # If the previous option needs an argument, assign it.
856  if test -n "$ac_prev"; then
857    eval $ac_prev=\$ac_option
858    ac_prev=
859    continue
860  fi
861
862  case $ac_option in
863  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864  *=)   ac_optarg= ;;
865  *)    ac_optarg=yes ;;
866  esac
867
868  # Accept the important Cygnus configure options, so we can diagnose typos.
869
870  case $ac_dashdash$ac_option in
871  --)
872    ac_dashdash=yes ;;
873
874  -bindir | --bindir | --bindi | --bind | --bin | --bi)
875    ac_prev=bindir ;;
876  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877    bindir=$ac_optarg ;;
878
879  -build | --build | --buil | --bui | --bu)
880    ac_prev=build_alias ;;
881  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882    build_alias=$ac_optarg ;;
883
884  -cache-file | --cache-file | --cache-fil | --cache-fi \
885  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886    ac_prev=cache_file ;;
887  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889    cache_file=$ac_optarg ;;
890
891  --config-cache | -C)
892    cache_file=config.cache ;;
893
894  -datadir | --datadir | --datadi | --datad)
895    ac_prev=datadir ;;
896  -datadir=* | --datadir=* | --datadi=* | --datad=*)
897    datadir=$ac_optarg ;;
898
899  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900  | --dataroo | --dataro | --datar)
901    ac_prev=datarootdir ;;
902  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904    datarootdir=$ac_optarg ;;
905
906  -disable-* | --disable-*)
907    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908    # Reject names that are not valid shell variable names.
909    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910      as_fn_error $? "invalid feature name: $ac_useropt"
911    ac_useropt_orig=$ac_useropt
912    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913    case $ac_user_opts in
914      *"
915"enable_$ac_useropt"
916"*) ;;
917      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918	 ac_unrecognized_sep=', ';;
919    esac
920    eval enable_$ac_useropt=no ;;
921
922  -docdir | --docdir | --docdi | --doc | --do)
923    ac_prev=docdir ;;
924  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925    docdir=$ac_optarg ;;
926
927  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928    ac_prev=dvidir ;;
929  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930    dvidir=$ac_optarg ;;
931
932  -enable-* | --enable-*)
933    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934    # Reject names that are not valid shell variable names.
935    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936      as_fn_error $? "invalid feature name: $ac_useropt"
937    ac_useropt_orig=$ac_useropt
938    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939    case $ac_user_opts in
940      *"
941"enable_$ac_useropt"
942"*) ;;
943      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944	 ac_unrecognized_sep=', ';;
945    esac
946    eval enable_$ac_useropt=\$ac_optarg ;;
947
948  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950  | --exec | --exe | --ex)
951    ac_prev=exec_prefix ;;
952  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954  | --exec=* | --exe=* | --ex=*)
955    exec_prefix=$ac_optarg ;;
956
957  -gas | --gas | --ga | --g)
958    # Obsolete; use --with-gas.
959    with_gas=yes ;;
960
961  -help | --help | --hel | --he | -h)
962    ac_init_help=long ;;
963  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964    ac_init_help=recursive ;;
965  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966    ac_init_help=short ;;
967
968  -host | --host | --hos | --ho)
969    ac_prev=host_alias ;;
970  -host=* | --host=* | --hos=* | --ho=*)
971    host_alias=$ac_optarg ;;
972
973  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974    ac_prev=htmldir ;;
975  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976  | --ht=*)
977    htmldir=$ac_optarg ;;
978
979  -includedir | --includedir | --includedi | --included | --include \
980  | --includ | --inclu | --incl | --inc)
981    ac_prev=includedir ;;
982  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983  | --includ=* | --inclu=* | --incl=* | --inc=*)
984    includedir=$ac_optarg ;;
985
986  -infodir | --infodir | --infodi | --infod | --info | --inf)
987    ac_prev=infodir ;;
988  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989    infodir=$ac_optarg ;;
990
991  -libdir | --libdir | --libdi | --libd)
992    ac_prev=libdir ;;
993  -libdir=* | --libdir=* | --libdi=* | --libd=*)
994    libdir=$ac_optarg ;;
995
996  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997  | --libexe | --libex | --libe)
998    ac_prev=libexecdir ;;
999  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000  | --libexe=* | --libex=* | --libe=*)
1001    libexecdir=$ac_optarg ;;
1002
1003  -localedir | --localedir | --localedi | --localed | --locale)
1004    ac_prev=localedir ;;
1005  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006    localedir=$ac_optarg ;;
1007
1008  -localstatedir | --localstatedir | --localstatedi | --localstated \
1009  | --localstate | --localstat | --localsta | --localst | --locals)
1010    ac_prev=localstatedir ;;
1011  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013    localstatedir=$ac_optarg ;;
1014
1015  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016    ac_prev=mandir ;;
1017  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018    mandir=$ac_optarg ;;
1019
1020  -nfp | --nfp | --nf)
1021    # Obsolete; use --without-fp.
1022    with_fp=no ;;
1023
1024  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025  | --no-cr | --no-c | -n)
1026    no_create=yes ;;
1027
1028  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030    no_recursion=yes ;;
1031
1032  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034  | --oldin | --oldi | --old | --ol | --o)
1035    ac_prev=oldincludedir ;;
1036  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039    oldincludedir=$ac_optarg ;;
1040
1041  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042    ac_prev=prefix ;;
1043  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044    prefix=$ac_optarg ;;
1045
1046  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047  | --program-pre | --program-pr | --program-p)
1048    ac_prev=program_prefix ;;
1049  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051    program_prefix=$ac_optarg ;;
1052
1053  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054  | --program-suf | --program-su | --program-s)
1055    ac_prev=program_suffix ;;
1056  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058    program_suffix=$ac_optarg ;;
1059
1060  -program-transform-name | --program-transform-name \
1061  | --program-transform-nam | --program-transform-na \
1062  | --program-transform-n | --program-transform- \
1063  | --program-transform | --program-transfor \
1064  | --program-transfo | --program-transf \
1065  | --program-trans | --program-tran \
1066  | --progr-tra | --program-tr | --program-t)
1067    ac_prev=program_transform_name ;;
1068  -program-transform-name=* | --program-transform-name=* \
1069  | --program-transform-nam=* | --program-transform-na=* \
1070  | --program-transform-n=* | --program-transform-=* \
1071  | --program-transform=* | --program-transfor=* \
1072  | --program-transfo=* | --program-transf=* \
1073  | --program-trans=* | --program-tran=* \
1074  | --progr-tra=* | --program-tr=* | --program-t=*)
1075    program_transform_name=$ac_optarg ;;
1076
1077  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078    ac_prev=pdfdir ;;
1079  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080    pdfdir=$ac_optarg ;;
1081
1082  -psdir | --psdir | --psdi | --psd | --ps)
1083    ac_prev=psdir ;;
1084  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085    psdir=$ac_optarg ;;
1086
1087  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088  | -silent | --silent | --silen | --sile | --sil)
1089    silent=yes ;;
1090
1091  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092    ac_prev=sbindir ;;
1093  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094  | --sbi=* | --sb=*)
1095    sbindir=$ac_optarg ;;
1096
1097  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099  | --sharedst | --shareds | --shared | --share | --shar \
1100  | --sha | --sh)
1101    ac_prev=sharedstatedir ;;
1102  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105  | --sha=* | --sh=*)
1106    sharedstatedir=$ac_optarg ;;
1107
1108  -site | --site | --sit)
1109    ac_prev=site ;;
1110  -site=* | --site=* | --sit=*)
1111    site=$ac_optarg ;;
1112
1113  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114    ac_prev=srcdir ;;
1115  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116    srcdir=$ac_optarg ;;
1117
1118  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119  | --syscon | --sysco | --sysc | --sys | --sy)
1120    ac_prev=sysconfdir ;;
1121  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123    sysconfdir=$ac_optarg ;;
1124
1125  -target | --target | --targe | --targ | --tar | --ta | --t)
1126    ac_prev=target_alias ;;
1127  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128    target_alias=$ac_optarg ;;
1129
1130  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131    verbose=yes ;;
1132
1133  -version | --version | --versio | --versi | --vers | -V)
1134    ac_init_version=: ;;
1135
1136  -with-* | --with-*)
1137    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138    # Reject names that are not valid shell variable names.
1139    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140      as_fn_error $? "invalid package name: $ac_useropt"
1141    ac_useropt_orig=$ac_useropt
1142    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143    case $ac_user_opts in
1144      *"
1145"with_$ac_useropt"
1146"*) ;;
1147      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148	 ac_unrecognized_sep=', ';;
1149    esac
1150    eval with_$ac_useropt=\$ac_optarg ;;
1151
1152  -without-* | --without-*)
1153    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154    # Reject names that are not valid shell variable names.
1155    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156      as_fn_error $? "invalid package name: $ac_useropt"
1157    ac_useropt_orig=$ac_useropt
1158    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159    case $ac_user_opts in
1160      *"
1161"with_$ac_useropt"
1162"*) ;;
1163      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164	 ac_unrecognized_sep=', ';;
1165    esac
1166    eval with_$ac_useropt=no ;;
1167
1168  --x)
1169    # Obsolete; use --with-x.
1170    with_x=yes ;;
1171
1172  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173  | --x-incl | --x-inc | --x-in | --x-i)
1174    ac_prev=x_includes ;;
1175  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177    x_includes=$ac_optarg ;;
1178
1179  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181    ac_prev=x_libraries ;;
1182  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184    x_libraries=$ac_optarg ;;
1185
1186  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187Try \`$0 --help' for more information"
1188    ;;
1189
1190  *=*)
1191    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192    # Reject names that are not valid shell variable names.
1193    case $ac_envvar in #(
1194      '' | [0-9]* | *[!_$as_cr_alnum]* )
1195      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196    esac
1197    eval $ac_envvar=\$ac_optarg
1198    export $ac_envvar ;;
1199
1200  *)
1201    # FIXME: should be removed in autoconf 3.0.
1202    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206    ;;
1207
1208  esac
1209done
1210
1211if test -n "$ac_prev"; then
1212  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213  as_fn_error $? "missing argument to $ac_option"
1214fi
1215
1216if test -n "$ac_unrecognized_opts"; then
1217  case $enable_option_checking in
1218    no) ;;
1219    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221  esac
1222fi
1223
1224# Check all directory arguments for consistency.
1225for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226		datadir sysconfdir sharedstatedir localstatedir includedir \
1227		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228		libdir localedir mandir
1229do
1230  eval ac_val=\$$ac_var
1231  # Remove trailing slashes.
1232  case $ac_val in
1233    */ )
1234      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235      eval $ac_var=\$ac_val;;
1236  esac
1237  # Be sure to have absolute directory names.
1238  case $ac_val in
1239    [\\/$]* | ?:[\\/]* )  continue;;
1240    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241  esac
1242  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243done
1244
1245# There might be people who depend on the old broken behavior: `$host'
1246# used to hold the argument of --host etc.
1247# FIXME: To remove some day.
1248build=$build_alias
1249host=$host_alias
1250target=$target_alias
1251
1252# FIXME: To remove some day.
1253if test "x$host_alias" != x; then
1254  if test "x$build_alias" = x; then
1255    cross_compiling=maybe
1256    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1257    If a cross compiler is detected then cross compile mode will be used" >&2
1258  elif test "x$build_alias" != "x$host_alias"; then
1259    cross_compiling=yes
1260  fi
1261fi
1262
1263ac_tool_prefix=
1264test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266test "$silent" = yes && exec 6>/dev/null
1267
1268
1269ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270ac_ls_di=`ls -di .` &&
1271ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272  as_fn_error $? "working directory cannot be determined"
1273test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274  as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277# Find the source files, if location was not specified.
1278if test -z "$srcdir"; then
1279  ac_srcdir_defaulted=yes
1280  # Try the directory containing this script, then the parent directory.
1281  ac_confdir=`$as_dirname -- "$as_myself" ||
1282$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283	 X"$as_myself" : 'X\(//\)[^/]' \| \
1284	 X"$as_myself" : 'X\(//\)$' \| \
1285	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286$as_echo X"$as_myself" |
1287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288	    s//\1/
1289	    q
1290	  }
1291	  /^X\(\/\/\)[^/].*/{
1292	    s//\1/
1293	    q
1294	  }
1295	  /^X\(\/\/\)$/{
1296	    s//\1/
1297	    q
1298	  }
1299	  /^X\(\/\).*/{
1300	    s//\1/
1301	    q
1302	  }
1303	  s/.*/./; q'`
1304  srcdir=$ac_confdir
1305  if test ! -r "$srcdir/$ac_unique_file"; then
1306    srcdir=..
1307  fi
1308else
1309  ac_srcdir_defaulted=no
1310fi
1311if test ! -r "$srcdir/$ac_unique_file"; then
1312  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314fi
1315ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316ac_abs_confdir=`(
1317	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318	pwd)`
1319# When building in place, set srcdir=.
1320if test "$ac_abs_confdir" = "$ac_pwd"; then
1321  srcdir=.
1322fi
1323# Remove unnecessary trailing slashes from srcdir.
1324# Double slashes in file names in object file debugging info
1325# mess up M-x gdb in Emacs.
1326case $srcdir in
1327*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328esac
1329for ac_var in $ac_precious_vars; do
1330  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331  eval ac_env_${ac_var}_value=\$${ac_var}
1332  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334done
1335
1336#
1337# Report the --help message.
1338#
1339if test "$ac_init_help" = "long"; then
1340  # Omit some internal or obsolete options to make the list less imposing.
1341  # This message is too long to be a string in the A/UX 3.1 sh.
1342  cat <<_ACEOF
1343\`configure' configures zeromq 2.2.0 to adapt to many kinds of systems.
1344
1345Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348VAR=VALUE.  See below for descriptions of some of the useful variables.
1349
1350Defaults for the options are specified in brackets.
1351
1352Configuration:
1353  -h, --help              display this help and exit
1354      --help=short        display options specific to this package
1355      --help=recursive    display the short help of all the included packages
1356  -V, --version           display version information and exit
1357  -q, --quiet, --silent   do not print \`checking ...' messages
1358      --cache-file=FILE   cache test results in FILE [disabled]
1359  -C, --config-cache      alias for \`--cache-file=config.cache'
1360  -n, --no-create         do not create output files
1361      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1362
1363Installation directories:
1364  --prefix=PREFIX         install architecture-independent files in PREFIX
1365                          [$ac_default_prefix]
1366  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1367                          [PREFIX]
1368
1369By default, \`make install' will install all the files in
1370\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1371an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372for instance \`--prefix=\$HOME'.
1373
1374For better control, use the options below.
1375
1376Fine tuning of the installation directories:
1377  --bindir=DIR            user executables [EPREFIX/bin]
1378  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1379  --libexecdir=DIR        program executables [EPREFIX/libexec]
1380  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1381  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1382  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1383  --libdir=DIR            object code libraries [EPREFIX/lib]
1384  --includedir=DIR        C header files [PREFIX/include]
1385  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1386  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1387  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1388  --infodir=DIR           info documentation [DATAROOTDIR/info]
1389  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1390  --mandir=DIR            man documentation [DATAROOTDIR/man]
1391  --docdir=DIR            documentation root [DATAROOTDIR/doc/zeromq]
1392  --htmldir=DIR           html documentation [DOCDIR]
1393  --dvidir=DIR            dvi documentation [DOCDIR]
1394  --pdfdir=DIR            pdf documentation [DOCDIR]
1395  --psdir=DIR             ps documentation [DOCDIR]
1396_ACEOF
1397
1398  cat <<\_ACEOF
1399
1400Program names:
1401  --program-prefix=PREFIX            prepend PREFIX to installed program names
1402  --program-suffix=SUFFIX            append SUFFIX to installed program names
1403  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1404
1405System types:
1406  --build=BUILD     configure for building on BUILD [guessed]
1407  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1408_ACEOF
1409fi
1410
1411if test -n "$ac_init_help"; then
1412  case $ac_init_help in
1413     short | recursive ) echo "Configuration of zeromq 2.2.0:";;
1414   esac
1415  cat <<\_ACEOF
1416
1417Optional Features:
1418  --disable-option-checking  ignore unrecognized --enable/--with options
1419  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1420  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1421  --enable-silent-rules          less verbose build output (undo: `make V=1')
1422  --disable-silent-rules         verbose build output (undo: `make V=0')
1423  --disable-dependency-tracking  speeds up one-time build
1424  --enable-dependency-tracking   do not reject slow dependency extractors
1425  --enable-static[=PKGS]  build static libraries [default=no]
1426  --enable-shared[=PKGS]  build shared libraries [default=yes]
1427  --enable-fast-install[=PKGS]
1428                          optimize for fast installation [default=yes]
1429  --disable-libtool-lock  avoid locking (might break parallel builds)
1430  --enable-debug          Enable debugging information [default=no]
1431
1432Optional Packages:
1433  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1434  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1435  --with-pic              try to use only PIC/non-PIC objects [default=use
1436                          both]
1437  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1438  --with-sysroot=DIR Search for dependent libraries within DIR
1439                        (or the compiler's sysroot if not specified).
1440  --with-gcov=yes/no      With GCC Code Coverage reporting.
1441  --without-dce           HP-UX only: Do not use DCE library for UUID
1442                          functions
1443  --without-documentation disable documentation build even if asciidoc and
1444                          xmlto are present [default=no]
1445  --with-poller           choose polling system manually. valid values are
1446                          kqueue, epoll, devpoll, poll or select
1447                          [default=autodetect]
1448  --with-pgm              build libzmq with PGM extension [default=no]
1449  --with-system-pgm       build libzmq with PGM extension. Requires pkg-config
1450                          [default=no]
1451
1452Some influential environment variables:
1453  CC          C compiler command
1454  CFLAGS      C compiler flags
1455  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1456              nonstandard directory <lib dir>
1457  LIBS        libraries to pass to the linker, e.g. -l<library>
1458  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1459              you have headers in a nonstandard directory <include dir>
1460  CXX         C++ compiler command
1461  CXXFLAGS    C++ compiler flags
1462  XMLTO       Path to xmlto command
1463  ASCIIDOC    Path to asciidoc command
1464  CPP         C preprocessor
1465  CXXCPP      C++ preprocessor
1466  PKG_CONFIG  path to pkg-config utility
1467  PKG_CONFIG_PATH
1468              directories to add to pkg-config's search path
1469  PKG_CONFIG_LIBDIR
1470              path overriding pkg-config's built-in search path
1471  OpenPGM_CFLAGS
1472              C compiler flags for OpenPGM, overriding pkg-config
1473  OpenPGM_LIBS
1474              linker flags for OpenPGM, overriding pkg-config
1475
1476Use these variables to override the choices made by `configure' or to help
1477it to find libraries and programs with nonstandard names/locations.
1478
1479Report bugs to <zeromq-dev@lists.zeromq.org>.
1480_ACEOF
1481ac_status=$?
1482fi
1483
1484if test "$ac_init_help" = "recursive"; then
1485  # If there are subdirs, report their specific --help.
1486  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487    test -d "$ac_dir" ||
1488      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489      continue
1490    ac_builddir=.
1491
1492case "$ac_dir" in
1493.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494*)
1495  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496  # A ".." for each directory in $ac_dir_suffix.
1497  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498  case $ac_top_builddir_sub in
1499  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501  esac ;;
1502esac
1503ac_abs_top_builddir=$ac_pwd
1504ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505# for backward compatibility:
1506ac_top_builddir=$ac_top_build_prefix
1507
1508case $srcdir in
1509  .)  # We are building in place.
1510    ac_srcdir=.
1511    ac_top_srcdir=$ac_top_builddir_sub
1512    ac_abs_top_srcdir=$ac_pwd ;;
1513  [\\/]* | ?:[\\/]* )  # Absolute name.
1514    ac_srcdir=$srcdir$ac_dir_suffix;
1515    ac_top_srcdir=$srcdir
1516    ac_abs_top_srcdir=$srcdir ;;
1517  *) # Relative name.
1518    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519    ac_top_srcdir=$ac_top_build_prefix$srcdir
1520    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521esac
1522ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1523
1524    cd "$ac_dir" || { ac_status=$?; continue; }
1525    # Check for guested configure.
1526    if test -f "$ac_srcdir/configure.gnu"; then
1527      echo &&
1528      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529    elif test -f "$ac_srcdir/configure"; then
1530      echo &&
1531      $SHELL "$ac_srcdir/configure" --help=recursive
1532    else
1533      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534    fi || ac_status=$?
1535    cd "$ac_pwd" || { ac_status=$?; break; }
1536  done
1537fi
1538
1539test -n "$ac_init_help" && exit $ac_status
1540if $ac_init_version; then
1541  cat <<\_ACEOF
1542zeromq configure 2.2.0
1543generated by GNU Autoconf 2.68
1544
1545Copyright (C) 2010 Free Software Foundation, Inc.
1546This configure script is free software; the Free Software Foundation
1547gives unlimited permission to copy, distribute and modify it.
1548_ACEOF
1549  exit
1550fi
1551
1552## ------------------------ ##
1553## Autoconf initialization. ##
1554## ------------------------ ##
1555
1556# ac_fn_c_try_compile LINENO
1557# --------------------------
1558# Try to compile conftest.$ac_ext, and return whether this succeeded.
1559ac_fn_c_try_compile ()
1560{
1561  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562  rm -f conftest.$ac_objext
1563  if { { ac_try="$ac_compile"
1564case "(($ac_try" in
1565  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566  *) ac_try_echo=$ac_try;;
1567esac
1568eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569$as_echo "$ac_try_echo"; } >&5
1570  (eval "$ac_compile") 2>conftest.err
1571  ac_status=$?
1572  if test -s conftest.err; then
1573    grep -v '^ *+' conftest.err >conftest.er1
1574    cat conftest.er1 >&5
1575    mv -f conftest.er1 conftest.err
1576  fi
1577  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578  test $ac_status = 0; } && {
1579	 test -z "$ac_c_werror_flag" ||
1580	 test ! -s conftest.err
1581       } && test -s conftest.$ac_objext; then :
1582  ac_retval=0
1583else
1584  $as_echo "$as_me: failed program was:" >&5
1585sed 's/^/| /' conftest.$ac_ext >&5
1586
1587	ac_retval=1
1588fi
1589  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590  as_fn_set_status $ac_retval
1591
1592} # ac_fn_c_try_compile
1593
1594# ac_fn_cxx_try_compile LINENO
1595# ----------------------------
1596# Try to compile conftest.$ac_ext, and return whether this succeeded.
1597ac_fn_cxx_try_compile ()
1598{
1599  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600  rm -f conftest.$ac_objext
1601  if { { ac_try="$ac_compile"
1602case "(($ac_try" in
1603  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604  *) ac_try_echo=$ac_try;;
1605esac
1606eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607$as_echo "$ac_try_echo"; } >&5
1608  (eval "$ac_compile") 2>conftest.err
1609  ac_status=$?
1610  if test -s conftest.err; then
1611    grep -v '^ *+' conftest.err >conftest.er1
1612    cat conftest.er1 >&5
1613    mv -f conftest.er1 conftest.err
1614  fi
1615  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616  test $ac_status = 0; } && {
1617	 test -z "$ac_cxx_werror_flag" ||
1618	 test ! -s conftest.err
1619       } && test -s conftest.$ac_objext; then :
1620  ac_retval=0
1621else
1622  $as_echo "$as_me: failed program was:" >&5
1623sed 's/^/| /' conftest.$ac_ext >&5
1624
1625	ac_retval=1
1626fi
1627  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628  as_fn_set_status $ac_retval
1629
1630} # ac_fn_cxx_try_compile
1631
1632# ac_fn_c_try_link LINENO
1633# -----------------------
1634# Try to link conftest.$ac_ext, and return whether this succeeded.
1635ac_fn_c_try_link ()
1636{
1637  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638  rm -f conftest.$ac_objext conftest$ac_exeext
1639  if { { ac_try="$ac_link"
1640case "(($ac_try" in
1641  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642  *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646  (eval "$ac_link") 2>conftest.err
1647  ac_status=$?
1648  if test -s conftest.err; then
1649    grep -v '^ *+' conftest.err >conftest.er1
1650    cat conftest.er1 >&5
1651    mv -f conftest.er1 conftest.err
1652  fi
1653  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654  test $ac_status = 0; } && {
1655	 test -z "$ac_c_werror_flag" ||
1656	 test ! -s conftest.err
1657       } && test -s conftest$ac_exeext && {
1658	 test "$cross_compiling" = yes ||
1659	 $as_test_x conftest$ac_exeext
1660       }; then :
1661  ac_retval=0
1662else
1663  $as_echo "$as_me: failed program was:" >&5
1664sed 's/^/| /' conftest.$ac_ext >&5
1665
1666	ac_retval=1
1667fi
1668  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670  # interfere with the next link command; also delete a directory that is
1671  # left behind by Apple's compiler.  We do this before executing the actions.
1672  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674  as_fn_set_status $ac_retval
1675
1676} # ac_fn_c_try_link
1677
1678# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1679# -------------------------------------------------------
1680# Tests whether HEADER exists and can be compiled using the include files in
1681# INCLUDES, setting the cache variable VAR accordingly.
1682ac_fn_c_check_header_compile ()
1683{
1684  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1686$as_echo_n "checking for $2... " >&6; }
1687if eval \${$3+:} false; then :
1688  $as_echo_n "(cached) " >&6
1689else
1690  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1691/* end confdefs.h.  */
1692$4
1693#include <$2>
1694_ACEOF
1695if ac_fn_c_try_compile "$LINENO"; then :
1696  eval "$3=yes"
1697else
1698  eval "$3=no"
1699fi
1700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1701fi
1702eval ac_res=\$$3
1703	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1704$as_echo "$ac_res" >&6; }
1705  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706
1707} # ac_fn_c_check_header_compile
1708
1709# ac_fn_c_try_cpp LINENO
1710# ----------------------
1711# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_cpp ()
1713{
1714  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715  if { { ac_try="$ac_cpp conftest.$ac_ext"
1716case "(($ac_try" in
1717  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718  *) ac_try_echo=$ac_try;;
1719esac
1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721$as_echo "$ac_try_echo"; } >&5
1722  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723  ac_status=$?
1724  if test -s conftest.err; then
1725    grep -v '^ *+' conftest.err >conftest.er1
1726    cat conftest.er1 >&5
1727    mv -f conftest.er1 conftest.err
1728  fi
1729  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730  test $ac_status = 0; } > conftest.i && {
1731	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732	 test ! -s conftest.err
1733       }; then :
1734  ac_retval=0
1735else
1736  $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
1738
1739    ac_retval=1
1740fi
1741  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742  as_fn_set_status $ac_retval
1743
1744} # ac_fn_c_try_cpp
1745
1746# ac_fn_c_try_run LINENO
1747# ----------------------
1748# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1749# that executables *can* be run.
1750ac_fn_c_try_run ()
1751{
1752  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753  if { { ac_try="$ac_link"
1754case "(($ac_try" in
1755  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756  *) ac_try_echo=$ac_try;;
1757esac
1758eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759$as_echo "$ac_try_echo"; } >&5
1760  (eval "$ac_link") 2>&5
1761  ac_status=$?
1762  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1764  { { case "(($ac_try" in
1765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766  *) ac_try_echo=$ac_try;;
1767esac
1768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769$as_echo "$ac_try_echo"; } >&5
1770  (eval "$ac_try") 2>&5
1771  ac_status=$?
1772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773  test $ac_status = 0; }; }; then :
1774  ac_retval=0
1775else
1776  $as_echo "$as_me: program exited with status $ac_status" >&5
1777       $as_echo "$as_me: failed program was:" >&5
1778sed 's/^/| /' conftest.$ac_ext >&5
1779
1780       ac_retval=$ac_status
1781fi
1782  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1783  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784  as_fn_set_status $ac_retval
1785
1786} # ac_fn_c_try_run
1787
1788# ac_fn_c_check_func LINENO FUNC VAR
1789# ----------------------------------
1790# Tests whether FUNC exists, setting the cache variable VAR accordingly
1791ac_fn_c_check_func ()
1792{
1793  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795$as_echo_n "checking for $2... " >&6; }
1796if eval \${$3+:} false; then :
1797  $as_echo_n "(cached) " >&6
1798else
1799  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h.  */
1801/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1802   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1803#define $2 innocuous_$2
1804
1805/* System header to define __stub macros and hopefully few prototypes,
1806    which can conflict with char $2 (); below.
1807    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1808    <limits.h> exists even on freestanding compilers.  */
1809
1810#ifdef __STDC__
1811# include <limits.h>
1812#else
1813# include <assert.h>
1814#endif
1815
1816#undef $2
1817
1818/* Override any GCC internal prototype to avoid an error.
1819   Use char because int might match the return type of a GCC
1820   builtin and then its argument prototype would still apply.  */
1821#ifdef __cplusplus
1822extern "C"
1823#endif
1824char $2 ();
1825/* The GNU C library defines this for functions which it implements
1826    to always fail with ENOSYS.  Some functions are actually named
1827    something starting with __ and the normal name is an alias.  */
1828#if defined __stub_$2 || defined __stub___$2
1829choke me
1830#endif
1831
1832int
1833main ()
1834{
1835return $2 ();
1836  ;
1837  return 0;
1838}
1839_ACEOF
1840if ac_fn_c_try_link "$LINENO"; then :
1841  eval "$3=yes"
1842else
1843  eval "$3=no"
1844fi
1845rm -f core conftest.err conftest.$ac_objext \
1846    conftest$ac_exeext conftest.$ac_ext
1847fi
1848eval ac_res=\$$3
1849	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1852
1853} # ac_fn_c_check_func
1854
1855# ac_fn_cxx_try_cpp LINENO
1856# ------------------------
1857# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1858ac_fn_cxx_try_cpp ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if { { ac_try="$ac_cpp conftest.$ac_ext"
1862case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1869  ac_status=$?
1870  if test -s conftest.err; then
1871    grep -v '^ *+' conftest.err >conftest.er1
1872    cat conftest.er1 >&5
1873    mv -f conftest.er1 conftest.err
1874  fi
1875  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876  test $ac_status = 0; } > conftest.i && {
1877	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1878	 test ! -s conftest.err
1879       }; then :
1880  ac_retval=0
1881else
1882  $as_echo "$as_me: failed program was:" >&5
1883sed 's/^/| /' conftest.$ac_ext >&5
1884
1885    ac_retval=1
1886fi
1887  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888  as_fn_set_status $ac_retval
1889
1890} # ac_fn_cxx_try_cpp
1891
1892# ac_fn_cxx_try_link LINENO
1893# -------------------------
1894# Try to link conftest.$ac_ext, and return whether this succeeded.
1895ac_fn_cxx_try_link ()
1896{
1897  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898  rm -f conftest.$ac_objext conftest$ac_exeext
1899  if { { ac_try="$ac_link"
1900case "(($ac_try" in
1901  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902  *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906  (eval "$ac_link") 2>conftest.err
1907  ac_status=$?
1908  if test -s conftest.err; then
1909    grep -v '^ *+' conftest.err >conftest.er1
1910    cat conftest.er1 >&5
1911    mv -f conftest.er1 conftest.err
1912  fi
1913  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914  test $ac_status = 0; } && {
1915	 test -z "$ac_cxx_werror_flag" ||
1916	 test ! -s conftest.err
1917       } && test -s conftest$ac_exeext && {
1918	 test "$cross_compiling" = yes ||
1919	 $as_test_x conftest$ac_exeext
1920       }; then :
1921  ac_retval=0
1922else
1923  $as_echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926	ac_retval=1
1927fi
1928  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1929  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1930  # interfere with the next link command; also delete a directory that is
1931  # left behind by Apple's compiler.  We do this before executing the actions.
1932  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1933  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934  as_fn_set_status $ac_retval
1935
1936} # ac_fn_cxx_try_link
1937
1938# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1939# -------------------------------------------------------
1940# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1941# the include files in INCLUDES and setting the cache variable VAR
1942# accordingly.
1943ac_fn_c_check_header_mongrel ()
1944{
1945  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946  if eval \${$3+:} false; then :
1947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1948$as_echo_n "checking for $2... " >&6; }
1949if eval \${$3+:} false; then :
1950  $as_echo_n "(cached) " >&6
1951fi
1952eval ac_res=\$$3
1953	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955else
1956  # Is the header compilable?
1957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1958$as_echo_n "checking $2 usability... " >&6; }
1959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960/* end confdefs.h.  */
1961$4
1962#include <$2>
1963_ACEOF
1964if ac_fn_c_try_compile "$LINENO"; then :
1965  ac_header_compiler=yes
1966else
1967  ac_header_compiler=no
1968fi
1969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1971$as_echo "$ac_header_compiler" >&6; }
1972
1973# Is the header present?
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1975$as_echo_n "checking $2 presence... " >&6; }
1976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977/* end confdefs.h.  */
1978#include <$2>
1979_ACEOF
1980if ac_fn_c_try_cpp "$LINENO"; then :
1981  ac_header_preproc=yes
1982else
1983  ac_header_preproc=no
1984fi
1985rm -f conftest.err conftest.i conftest.$ac_ext
1986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1987$as_echo "$ac_header_preproc" >&6; }
1988
1989# So?  What about this header?
1990case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1991  yes:no: )
1992    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1993$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1994    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996    ;;
1997  no:yes:* )
1998    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1999$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2000    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2001$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2002    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2003$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2004    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2005$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2007$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2008( $as_echo "## ------------------------------------------ ##
2009## Report this to zeromq-dev@lists.zeromq.org ##
2010## ------------------------------------------ ##"
2011     ) | sed "s/^/$as_me: WARNING:     /" >&2
2012    ;;
2013esac
2014  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015$as_echo_n "checking for $2... " >&6; }
2016if eval \${$3+:} false; then :
2017  $as_echo_n "(cached) " >&6
2018else
2019  eval "$3=\$ac_header_compiler"
2020fi
2021eval ac_res=\$$3
2022	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2023$as_echo "$ac_res" >&6; }
2024fi
2025  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2026
2027} # ac_fn_c_check_header_mongrel
2028
2029# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2030# ---------------------------------------------
2031# Tests whether TYPE exists after having included INCLUDES, setting cache
2032# variable VAR accordingly.
2033ac_fn_cxx_check_type ()
2034{
2035  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037$as_echo_n "checking for $2... " >&6; }
2038if eval \${$3+:} false; then :
2039  $as_echo_n "(cached) " >&6
2040else
2041  eval "$3=no"
2042  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2043/* end confdefs.h.  */
2044$4
2045int
2046main ()
2047{
2048if (sizeof ($2))
2049	 return 0;
2050  ;
2051  return 0;
2052}
2053_ACEOF
2054if ac_fn_cxx_try_compile "$LINENO"; then :
2055  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h.  */
2057$4
2058int
2059main ()
2060{
2061if (sizeof (($2)))
2062	    return 0;
2063  ;
2064  return 0;
2065}
2066_ACEOF
2067if ac_fn_cxx_try_compile "$LINENO"; then :
2068
2069else
2070  eval "$3=yes"
2071fi
2072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073fi
2074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075fi
2076eval ac_res=\$$3
2077	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_cxx_check_type
2082
2083# ac_fn_c_find_uintX_t LINENO BITS VAR
2084# ------------------------------------
2085# Finds an unsigned integer type with width BITS, setting cache variable VAR
2086# accordingly.
2087ac_fn_c_find_uintX_t ()
2088{
2089  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2091$as_echo_n "checking for uint$2_t... " >&6; }
2092if eval \${$3+:} false; then :
2093  $as_echo_n "(cached) " >&6
2094else
2095  eval "$3=no"
2096     # Order is important - never check a type that is potentially smaller
2097     # than half of the expected target width.
2098     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2099	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2100       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101/* end confdefs.h.  */
2102$ac_includes_default
2103int
2104main ()
2105{
2106static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2107test_array [0] = 0
2108
2109  ;
2110  return 0;
2111}
2112_ACEOF
2113if ac_fn_cxx_try_compile "$LINENO"; then :
2114  case $ac_type in #(
2115  uint$2_t) :
2116    eval "$3=yes" ;; #(
2117  *) :
2118    eval "$3=\$ac_type" ;;
2119esac
2120fi
2121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2122       if eval test \"x\$"$3"\" = x"no"; then :
2123
2124else
2125  break
2126fi
2127     done
2128fi
2129eval ac_res=\$$3
2130	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131$as_echo "$ac_res" >&6; }
2132  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133
2134} # ac_fn_c_find_uintX_t
2135
2136# ac_fn_cxx_check_func LINENO FUNC VAR
2137# ------------------------------------
2138# Tests whether FUNC exists, setting the cache variable VAR accordingly
2139ac_fn_cxx_check_func ()
2140{
2141  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2142  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143$as_echo_n "checking for $2... " >&6; }
2144if eval \${$3+:} false; then :
2145  $as_echo_n "(cached) " >&6
2146else
2147  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148/* end confdefs.h.  */
2149/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2150   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2151#define $2 innocuous_$2
2152
2153/* System header to define __stub macros and hopefully few prototypes,
2154    which can conflict with char $2 (); below.
2155    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2156    <limits.h> exists even on freestanding compilers.  */
2157
2158#ifdef __STDC__
2159# include <limits.h>
2160#else
2161# include <assert.h>
2162#endif
2163
2164#undef $2
2165
2166/* Override any GCC internal prototype to avoid an error.
2167   Use char because int might match the return type of a GCC
2168   builtin and then its argument prototype would still apply.  */
2169#ifdef __cplusplus
2170extern "C"
2171#endif
2172char $2 ();
2173/* The GNU C library defines this for functions which it implements
2174    to always fail with ENOSYS.  Some functions are actually named
2175    something starting with __ and the normal name is an alias.  */
2176#if defined __stub_$2 || defined __stub___$2
2177choke me
2178#endif
2179
2180int
2181main ()
2182{
2183return $2 ();
2184  ;
2185  return 0;
2186}
2187_ACEOF
2188if ac_fn_cxx_try_link "$LINENO"; then :
2189  eval "$3=yes"
2190else
2191  eval "$3=no"
2192fi
2193rm -f core conftest.err conftest.$ac_objext \
2194    conftest$ac_exeext conftest.$ac_ext
2195fi
2196eval ac_res=\$$3
2197	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2198$as_echo "$ac_res" >&6; }
2199  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200
2201} # ac_fn_cxx_check_func
2202
2203# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2204# ---------------------------------------------------------
2205# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2206# the include files in INCLUDES and setting the cache variable VAR
2207# accordingly.
2208ac_fn_cxx_check_header_mongrel ()
2209{
2210  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211  if eval \${$3+:} false; then :
2212  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213$as_echo_n "checking for $2... " >&6; }
2214if eval \${$3+:} false; then :
2215  $as_echo_n "(cached) " >&6
2216fi
2217eval ac_res=\$$3
2218	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220else
2221  # Is the header compilable?
2222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2223$as_echo_n "checking $2 usability... " >&6; }
2224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h.  */
2226$4
2227#include <$2>
2228_ACEOF
2229if ac_fn_cxx_try_compile "$LINENO"; then :
2230  ac_header_compiler=yes
2231else
2232  ac_header_compiler=no
2233fi
2234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2236$as_echo "$ac_header_compiler" >&6; }
2237
2238# Is the header present?
2239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2240$as_echo_n "checking $2 presence... " >&6; }
2241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h.  */
2243#include <$2>
2244_ACEOF
2245if ac_fn_cxx_try_cpp "$LINENO"; then :
2246  ac_header_preproc=yes
2247else
2248  ac_header_preproc=no
2249fi
2250rm -f conftest.err conftest.i conftest.$ac_ext
2251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2252$as_echo "$ac_header_preproc" >&6; }
2253
2254# So?  What about this header?
2255case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2256  yes:no: )
2257    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2258$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2259    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2261    ;;
2262  no:yes:* )
2263    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2264$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2265    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2266$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2267    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2268$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2269    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2270$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2271    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2273( $as_echo "## ------------------------------------------ ##
2274## Report this to zeromq-dev@lists.zeromq.org ##
2275## ------------------------------------------ ##"
2276     ) | sed "s/^/$as_me: WARNING:     /" >&2
2277    ;;
2278esac
2279  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2280$as_echo_n "checking for $2... " >&6; }
2281if eval \${$3+:} false; then :
2282  $as_echo_n "(cached) " >&6
2283else
2284  eval "$3=\$ac_header_compiler"
2285fi
2286eval ac_res=\$$3
2287	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288$as_echo "$ac_res" >&6; }
2289fi
2290  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291
2292} # ac_fn_cxx_check_header_mongrel
2293
2294# ac_fn_cxx_try_run LINENO
2295# ------------------------
2296# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2297# that executables *can* be run.
2298ac_fn_cxx_try_run ()
2299{
2300  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301  if { { ac_try="$ac_link"
2302case "(($ac_try" in
2303  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2304  *) ac_try_echo=$ac_try;;
2305esac
2306eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2307$as_echo "$ac_try_echo"; } >&5
2308  (eval "$ac_link") 2>&5
2309  ac_status=$?
2310  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2312  { { case "(($ac_try" in
2313  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2314  *) ac_try_echo=$ac_try;;
2315esac
2316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2317$as_echo "$ac_try_echo"; } >&5
2318  (eval "$ac_try") 2>&5
2319  ac_status=$?
2320  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2321  test $ac_status = 0; }; }; then :
2322  ac_retval=0
2323else
2324  $as_echo "$as_me: program exited with status $ac_status" >&5
2325       $as_echo "$as_me: failed program was:" >&5
2326sed 's/^/| /' conftest.$ac_ext >&5
2327
2328       ac_retval=$ac_status
2329fi
2330  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2331  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332  as_fn_set_status $ac_retval
2333
2334} # ac_fn_cxx_try_run
2335cat >config.log <<_ACEOF
2336This file contains any messages produced by compilers while
2337running configure, to aid debugging if configure makes a mistake.
2338
2339It was created by zeromq $as_me 2.2.0, which was
2340generated by GNU Autoconf 2.68.  Invocation command line was
2341
2342  $ $0 $@
2343
2344_ACEOF
2345exec 5>>config.log
2346{
2347cat <<_ASUNAME
2348## --------- ##
2349## Platform. ##
2350## --------- ##
2351
2352hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2353uname -m = `(uname -m) 2>/dev/null || echo unknown`
2354uname -r = `(uname -r) 2>/dev/null || echo unknown`
2355uname -s = `(uname -s) 2>/dev/null || echo unknown`
2356uname -v = `(uname -v) 2>/dev/null || echo unknown`
2357
2358/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2359/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2360
2361/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2362/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2363/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2364/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2365/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2366/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2367/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2368
2369_ASUNAME
2370
2371as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2372for as_dir in $PATH
2373do
2374  IFS=$as_save_IFS
2375  test -z "$as_dir" && as_dir=.
2376    $as_echo "PATH: $as_dir"
2377  done
2378IFS=$as_save_IFS
2379
2380} >&5
2381
2382cat >&5 <<_ACEOF
2383
2384
2385## ----------- ##
2386## Core tests. ##
2387## ----------- ##
2388
2389_ACEOF
2390
2391
2392# Keep a trace of the command line.
2393# Strip out --no-create and --no-recursion so they do not pile up.
2394# Strip out --silent because we don't want to record it for future runs.
2395# Also quote any args containing shell meta-characters.
2396# Make two passes to allow for proper duplicate-argument suppression.
2397ac_configure_args=
2398ac_configure_args0=
2399ac_configure_args1=
2400ac_must_keep_next=false
2401for ac_pass in 1 2
2402do
2403  for ac_arg
2404  do
2405    case $ac_arg in
2406    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2407    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2408    | -silent | --silent | --silen | --sile | --sil)
2409      continue ;;
2410    *\'*)
2411      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2412    esac
2413    case $ac_pass in
2414    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2415    2)
2416      as_fn_append ac_configure_args1 " '$ac_arg'"
2417      if test $ac_must_keep_next = true; then
2418	ac_must_keep_next=false # Got value, back to normal.
2419      else
2420	case $ac_arg in
2421	  *=* | --config-cache | -C | -disable-* | --disable-* \
2422	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2423	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2424	  | -with-* | --with-* | -without-* | --without-* | --x)
2425	    case "$ac_configure_args0 " in
2426	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2427	    esac
2428	    ;;
2429	  -* ) ac_must_keep_next=true ;;
2430	esac
2431      fi
2432      as_fn_append ac_configure_args " '$ac_arg'"
2433      ;;
2434    esac
2435  done
2436done
2437{ ac_configure_args0=; unset ac_configure_args0;}
2438{ ac_configure_args1=; unset ac_configure_args1;}
2439
2440# When interrupted or exit'd, cleanup temporary files, and complete
2441# config.log.  We remove comments because anyway the quotes in there
2442# would cause problems or look ugly.
2443# WARNING: Use '\'' to represent an apostrophe within the trap.
2444# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2445trap 'exit_status=$?
2446  # Save into config.log some information that might help in debugging.
2447  {
2448    echo
2449
2450    $as_echo "## ---------------- ##
2451## Cache variables. ##
2452## ---------------- ##"
2453    echo
2454    # The following way of writing the cache mishandles newlines in values,
2455(
2456  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2457    eval ac_val=\$$ac_var
2458    case $ac_val in #(
2459    *${as_nl}*)
2460      case $ac_var in #(
2461      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2462$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2463      esac
2464      case $ac_var in #(
2465      _ | IFS | as_nl) ;; #(
2466      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2467      *) { eval $ac_var=; unset $ac_var;} ;;
2468      esac ;;
2469    esac
2470  done
2471  (set) 2>&1 |
2472    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2473    *${as_nl}ac_space=\ *)
2474      sed -n \
2475	"s/'\''/'\''\\\\'\'''\''/g;
2476	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2477      ;; #(
2478    *)
2479      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2480      ;;
2481    esac |
2482    sort
2483)
2484    echo
2485
2486    $as_echo "## ----------------- ##
2487## Output variables. ##
2488## ----------------- ##"
2489    echo
2490    for ac_var in $ac_subst_vars
2491    do
2492      eval ac_val=\$$ac_var
2493      case $ac_val in
2494      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2495      esac
2496      $as_echo "$ac_var='\''$ac_val'\''"
2497    done | sort
2498    echo
2499
2500    if test -n "$ac_subst_files"; then
2501      $as_echo "## ------------------- ##
2502## File substitutions. ##
2503## ------------------- ##"
2504      echo
2505      for ac_var in $ac_subst_files
2506      do
2507	eval ac_val=\$$ac_var
2508	case $ac_val in
2509	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2510	esac
2511	$as_echo "$ac_var='\''$ac_val'\''"
2512      done | sort
2513      echo
2514    fi
2515
2516    if test -s confdefs.h; then
2517      $as_echo "## ----------- ##
2518## confdefs.h. ##
2519## ----------- ##"
2520      echo
2521      cat confdefs.h
2522      echo
2523    fi
2524    test "$ac_signal" != 0 &&
2525      $as_echo "$as_me: caught signal $ac_signal"
2526    $as_echo "$as_me: exit $exit_status"
2527  } >&5
2528  rm -f core *.core core.conftest.* &&
2529    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2530    exit $exit_status
2531' 0
2532for ac_signal in 1 2 13 15; do
2533  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2534done
2535ac_signal=0
2536
2537# confdefs.h avoids OS command line length limits that DEFS can exceed.
2538rm -f -r conftest* confdefs.h
2539
2540$as_echo "/* confdefs.h */" > confdefs.h
2541
2542# Predefined preprocessor variables.
2543
2544cat >>confdefs.h <<_ACEOF
2545#define PACKAGE_NAME "$PACKAGE_NAME"
2546_ACEOF
2547
2548cat >>confdefs.h <<_ACEOF
2549#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2550_ACEOF
2551
2552cat >>confdefs.h <<_ACEOF
2553#define PACKAGE_VERSION "$PACKAGE_VERSION"
2554_ACEOF
2555
2556cat >>confdefs.h <<_ACEOF
2557#define PACKAGE_STRING "$PACKAGE_STRING"
2558_ACEOF
2559
2560cat >>confdefs.h <<_ACEOF
2561#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2562_ACEOF
2563
2564cat >>confdefs.h <<_ACEOF
2565#define PACKAGE_URL "$PACKAGE_URL"
2566_ACEOF
2567
2568
2569# Let the site file select an alternate cache file if it wants to.
2570# Prefer an explicitly selected file to automatically selected ones.
2571ac_site_file1=NONE
2572ac_site_file2=NONE
2573if test -n "$CONFIG_SITE"; then
2574  # We do not want a PATH search for config.site.
2575  case $CONFIG_SITE in #((
2576    -*)  ac_site_file1=./$CONFIG_SITE;;
2577    */*) ac_site_file1=$CONFIG_SITE;;
2578    *)   ac_site_file1=./$CONFIG_SITE;;
2579  esac
2580elif test "x$prefix" != xNONE; then
2581  ac_site_file1=$prefix/share/config.site
2582  ac_site_file2=$prefix/etc/config.site
2583else
2584  ac_site_file1=$ac_default_prefix/share/config.site
2585  ac_site_file2=$ac_default_prefix/etc/config.site
2586fi
2587for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2588do
2589  test "x$ac_site_file" = xNONE && continue
2590  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2591    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2592$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2593    sed 's/^/| /' "$ac_site_file" >&5
2594    . "$ac_site_file" \
2595      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2596$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2597as_fn_error $? "failed to load site script $ac_site_file
2598See \`config.log' for more details" "$LINENO" 5; }
2599  fi
2600done
2601
2602if test -r "$cache_file"; then
2603  # Some versions of bash will fail to source /dev/null (special files
2604  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2605  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2606    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2607$as_echo "$as_me: loading cache $cache_file" >&6;}
2608    case $cache_file in
2609      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2610      *)                      . "./$cache_file";;
2611    esac
2612  fi
2613else
2614  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2615$as_echo "$as_me: creating cache $cache_file" >&6;}
2616  >$cache_file
2617fi
2618
2619# Check that the precious variables saved in the cache have kept the same
2620# value.
2621ac_cache_corrupted=false
2622for ac_var in $ac_precious_vars; do
2623  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2624  eval ac_new_set=\$ac_env_${ac_var}_set
2625  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2626  eval ac_new_val=\$ac_env_${ac_var}_value
2627  case $ac_old_set,$ac_new_set in
2628    set,)
2629      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2630$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2631      ac_cache_corrupted=: ;;
2632    ,set)
2633      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2634$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2635      ac_cache_corrupted=: ;;
2636    ,);;
2637    *)
2638      if test "x$ac_old_val" != "x$ac_new_val"; then
2639	# differences in whitespace do not lead to failure.
2640	ac_old_val_w=`echo x $ac_old_val`
2641	ac_new_val_w=`echo x $ac_new_val`
2642	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2643	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2644$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2645	  ac_cache_corrupted=:
2646	else
2647	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2648$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2649	  eval $ac_var=\$ac_old_val
2650	fi
2651	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2652$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2653	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2654$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2655      fi;;
2656  esac
2657  # Pass precious variables to config.status.
2658  if test "$ac_new_set" = set; then
2659    case $ac_new_val in
2660    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2661    *) ac_arg=$ac_var=$ac_new_val ;;
2662    esac
2663    case " $ac_configure_args " in
2664      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2665      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2666    esac
2667  fi
2668done
2669if $ac_cache_corrupted; then
2670  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2671$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2672  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2673$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2674  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2675fi
2676## -------------------- ##
2677## Main body of script. ##
2678## -------------------- ##
2679
2680ac_ext=c
2681ac_cpp='$CPP $CPPFLAGS'
2682ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685
2686
2687
2688ac_aux_dir=
2689for ac_dir in config "$srcdir"/config; do
2690  if test -f "$ac_dir/install-sh"; then
2691    ac_aux_dir=$ac_dir
2692    ac_install_sh="$ac_aux_dir/install-sh -c"
2693    break
2694  elif test -f "$ac_dir/install.sh"; then
2695    ac_aux_dir=$ac_dir
2696    ac_install_sh="$ac_aux_dir/install.sh -c"
2697    break
2698  elif test -f "$ac_dir/shtool"; then
2699    ac_aux_dir=$ac_dir
2700    ac_install_sh="$ac_aux_dir/shtool install -c"
2701    break
2702  fi
2703done
2704if test -z "$ac_aux_dir"; then
2705  as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2706fi
2707
2708# These three variables are undocumented and unsupported,
2709# and are intended to be withdrawn in a future Autoconf release.
2710# They can cause serious problems if a builder's source tree is in a directory
2711# whose full name contains unusual characters.
2712ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2713ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2714ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2715
2716
2717
2718ac_config_headers="$ac_config_headers src/platform.hpp"
2719
2720am__api_version='1.11'
2721
2722# Find a good install program.  We prefer a C program (faster),
2723# so one script is as good as another.  But avoid the broken or
2724# incompatible versions:
2725# SysV /etc/install, /usr/sbin/install
2726# SunOS /usr/etc/install
2727# IRIX /sbin/install
2728# AIX /bin/install
2729# AmigaOS /C/install, which installs bootblocks on floppy discs
2730# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2731# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2732# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2733# OS/2's system install, which has a completely different semantic
2734# ./install, which can be erroneously created by make from ./install.sh.
2735# Reject install programs that cannot install multiple files.
2736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2737$as_echo_n "checking for a BSD-compatible install... " >&6; }
2738if test -z "$INSTALL"; then
2739if ${ac_cv_path_install+:} false; then :
2740  $as_echo_n "(cached) " >&6
2741else
2742  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743for as_dir in $PATH
2744do
2745  IFS=$as_save_IFS
2746  test -z "$as_dir" && as_dir=.
2747    # Account for people who put trailing slashes in PATH elements.
2748case $as_dir/ in #((
2749  ./ | .// | /[cC]/* | \
2750  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2751  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2752  /usr/ucb/* ) ;;
2753  *)
2754    # OSF1 and SCO ODT 3.0 have their own names for install.
2755    # Don't use installbsd from OSF since it installs stuff as root
2756    # by default.
2757    for ac_prog in ginstall scoinst install; do
2758      for ac_exec_ext in '' $ac_executable_extensions; do
2759	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2760	  if test $ac_prog = install &&
2761	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2762	    # AIX install.  It has an incompatible calling convention.
2763	    :
2764	  elif test $ac_prog = install &&
2765	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2766	    # program-specific install script used by HP pwplus--don't use.
2767	    :
2768	  else
2769	    rm -rf conftest.one conftest.two conftest.dir
2770	    echo one > conftest.one
2771	    echo two > conftest.two
2772	    mkdir conftest.dir
2773	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2774	      test -s conftest.one && test -s conftest.two &&
2775	      test -s conftest.dir/conftest.one &&
2776	      test -s conftest.dir/conftest.two
2777	    then
2778	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2779	      break 3
2780	    fi
2781	  fi
2782	fi
2783      done
2784    done
2785    ;;
2786esac
2787
2788  done
2789IFS=$as_save_IFS
2790
2791rm -rf conftest.one conftest.two conftest.dir
2792
2793fi
2794  if test "${ac_cv_path_install+set}" = set; then
2795    INSTALL=$ac_cv_path_install
2796  else
2797    # As a last resort, use the slow shell script.  Don't cache a
2798    # value for INSTALL within a source directory, because that will
2799    # break other packages using the cache if that directory is
2800    # removed, or if the value is a relative name.
2801    INSTALL=$ac_install_sh
2802  fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2805$as_echo "$INSTALL" >&6; }
2806
2807# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2808# It thinks the first close brace ends the variable substitution.
2809test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2810
2811test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2812
2813test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2814
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2816$as_echo_n "checking whether build environment is sane... " >&6; }
2817# Just in case
2818sleep 1
2819echo timestamp > conftest.file
2820# Reject unsafe characters in $srcdir or the absolute working directory
2821# name.  Accept space and tab only in the latter.
2822am_lf='
2823'
2824case `pwd` in
2825  *[\\\"\#\$\&\'\`$am_lf]*)
2826    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2827esac
2828case $srcdir in
2829  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2830    as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2831esac
2832
2833# Do `set' in a subshell so we don't clobber the current shell's
2834# arguments.  Must try -L first in case configure is actually a
2835# symlink; some systems play weird games with the mod time of symlinks
2836# (eg FreeBSD returns the mod time of the symlink's containing
2837# directory).
2838if (
2839   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2840   if test "$*" = "X"; then
2841      # -L didn't work.
2842      set X `ls -t "$srcdir/configure" conftest.file`
2843   fi
2844   rm -f conftest.file
2845   if test "$*" != "X $srcdir/configure conftest.file" \
2846      && test "$*" != "X conftest.file $srcdir/configure"; then
2847
2848      # If neither matched, then we have a broken ls.  This can happen
2849      # if, for instance, CONFIG_SHELL is bash and it inherits a
2850      # broken ls alias from the environment.  This has actually
2851      # happened.  Such a system could not be considered "sane".
2852      as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2853alias in your environment" "$LINENO" 5
2854   fi
2855
2856   test "$2" = conftest.file
2857   )
2858then
2859   # Ok.
2860   :
2861else
2862   as_fn_error $? "newly created file is older than distributed files!
2863Check your system clock" "$LINENO" 5
2864fi
2865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2866$as_echo "yes" >&6; }
2867test "$program_prefix" != NONE &&
2868  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2869# Use a double $ so make ignores it.
2870test "$program_suffix" != NONE &&
2871  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2872# Double any \ or $.
2873# By default was `s,x,x', remove it if useless.
2874ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2875program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2876
2877# expand $ac_aux_dir to an absolute path
2878am_aux_dir=`cd $ac_aux_dir && pwd`
2879
2880if test x"${MISSING+set}" != xset; then
2881  case $am_aux_dir in
2882  *\ * | *\	*)
2883    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2884  *)
2885    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2886  esac
2887fi
2888# Use eval to expand $SHELL
2889if eval "$MISSING --run true"; then
2890  am_missing_run="$MISSING --run "
2891else
2892  am_missing_run=
2893  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2894$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2895fi
2896
2897if test x"${install_sh}" != xset; then
2898  case $am_aux_dir in
2899  *\ * | *\	*)
2900    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2901  *)
2902    install_sh="\${SHELL} $am_aux_dir/install-sh"
2903  esac
2904fi
2905
2906# Installed binaries are usually stripped using `strip' when the user
2907# run `make install-strip'.  However `strip' might not be the right
2908# tool to use in cross-compilation environments, therefore Automake
2909# will honor the `STRIP' environment variable to overrule this program.
2910if test "$cross_compiling" != no; then
2911  if test -n "$ac_tool_prefix"; then
2912  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2913set dummy ${ac_tool_prefix}strip; ac_word=$2
2914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2915$as_echo_n "checking for $ac_word... " >&6; }
2916if ${ac_cv_prog_STRIP+:} false; then :
2917  $as_echo_n "(cached) " >&6
2918else
2919  if test -n "$STRIP"; then
2920  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2921else
2922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923for as_dir in $PATH
2924do
2925  IFS=$as_save_IFS
2926  test -z "$as_dir" && as_dir=.
2927    for ac_exec_ext in '' $ac_executable_extensions; do
2928  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2929    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2930    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2931    break 2
2932  fi
2933done
2934  done
2935IFS=$as_save_IFS
2936
2937fi
2938fi
2939STRIP=$ac_cv_prog_STRIP
2940if test -n "$STRIP"; then
2941  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2942$as_echo "$STRIP" >&6; }
2943else
2944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2945$as_echo "no" >&6; }
2946fi
2947
2948
2949fi
2950if test -z "$ac_cv_prog_STRIP"; then
2951  ac_ct_STRIP=$STRIP
2952  # Extract the first word of "strip", so it can be a program name with args.
2953set dummy strip; ac_word=$2
2954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2955$as_echo_n "checking for $ac_word... " >&6; }
2956if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2957  $as_echo_n "(cached) " >&6
2958else
2959  if test -n "$ac_ct_STRIP"; then
2960  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2961else
2962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2963for as_dir in $PATH
2964do
2965  IFS=$as_save_IFS
2966  test -z "$as_dir" && as_dir=.
2967    for ac_exec_ext in '' $ac_executable_extensions; do
2968  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2969    ac_cv_prog_ac_ct_STRIP="strip"
2970    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2971    break 2
2972  fi
2973done
2974  done
2975IFS=$as_save_IFS
2976
2977fi
2978fi
2979ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2980if test -n "$ac_ct_STRIP"; then
2981  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2982$as_echo "$ac_ct_STRIP" >&6; }
2983else
2984  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2985$as_echo "no" >&6; }
2986fi
2987
2988  if test "x$ac_ct_STRIP" = x; then
2989    STRIP=":"
2990  else
2991    case $cross_compiling:$ac_tool_warned in
2992yes:)
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2994$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2995ac_tool_warned=yes ;;
2996esac
2997    STRIP=$ac_ct_STRIP
2998  fi
2999else
3000  STRIP="$ac_cv_prog_STRIP"
3001fi
3002
3003fi
3004INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3005
3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3007$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3008if test -z "$MKDIR_P"; then
3009  if ${ac_cv_path_mkdir+:} false; then :
3010  $as_echo_n "(cached) " >&6
3011else
3012  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3014do
3015  IFS=$as_save_IFS
3016  test -z "$as_dir" && as_dir=.
3017    for ac_prog in mkdir gmkdir; do
3018	 for ac_exec_ext in '' $ac_executable_extensions; do
3019	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3020	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3021	     'mkdir (GNU coreutils) '* | \
3022	     'mkdir (coreutils) '* | \
3023	     'mkdir (fileutils) '4.1*)
3024	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3025	       break 3;;
3026	   esac
3027	 done
3028       done
3029  done
3030IFS=$as_save_IFS
3031
3032fi
3033
3034  test -d ./--version && rmdir ./--version
3035  if test "${ac_cv_path_mkdir+set}" = set; then
3036    MKDIR_P="$ac_cv_path_mkdir -p"
3037  else
3038    # As a last resort, use the slow shell script.  Don't cache a
3039    # value for MKDIR_P within a source directory, because that will
3040    # break other packages using the cache if that directory is
3041    # removed, or if the value is a relative name.
3042    MKDIR_P="$ac_install_sh -d"
3043  fi
3044fi
3045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3046$as_echo "$MKDIR_P" >&6; }
3047
3048mkdir_p="$MKDIR_P"
3049case $mkdir_p in
3050  [\\/$]* | ?:[\\/]*) ;;
3051  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3052esac
3053
3054for ac_prog in gawk mawk nawk awk
3055do
3056  # Extract the first word of "$ac_prog", so it can be a program name with args.
3057set dummy $ac_prog; ac_word=$2
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3059$as_echo_n "checking for $ac_word... " >&6; }
3060if ${ac_cv_prog_AWK+:} false; then :
3061  $as_echo_n "(cached) " >&6
3062else
3063  if test -n "$AWK"; then
3064  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3065else
3066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067for as_dir in $PATH
3068do
3069  IFS=$as_save_IFS
3070  test -z "$as_dir" && as_dir=.
3071    for ac_exec_ext in '' $ac_executable_extensions; do
3072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073    ac_cv_prog_AWK="$ac_prog"
3074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075    break 2
3076  fi
3077done
3078  done
3079IFS=$as_save_IFS
3080
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3086$as_echo "$AWK" >&6; }
3087else
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089$as_echo "no" >&6; }
3090fi
3091
3092
3093  test -n "$AWK" && break
3094done
3095
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3097$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3098set x ${MAKE-make}
3099ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3100if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3101  $as_echo_n "(cached) " >&6
3102else
3103  cat >conftest.make <<\_ACEOF
3104SHELL = /bin/sh
3105all:
3106	@echo '@@@%%%=$(MAKE)=@@@%%%'
3107_ACEOF
3108# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3109case `${MAKE-make} -f conftest.make 2>/dev/null` in
3110  *@@@%%%=?*=@@@%%%*)
3111    eval ac_cv_prog_make_${ac_make}_set=yes;;
3112  *)
3113    eval ac_cv_prog_make_${ac_make}_set=no;;
3114esac
3115rm -f conftest.make
3116fi
3117if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3119$as_echo "yes" >&6; }
3120  SET_MAKE=
3121else
3122  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123$as_echo "no" >&6; }
3124  SET_MAKE="MAKE=${MAKE-make}"
3125fi
3126
3127rm -rf .tst 2>/dev/null
3128mkdir .tst 2>/dev/null
3129if test -d .tst; then
3130  am__leading_dot=.
3131else
3132  am__leading_dot=_
3133fi
3134rmdir .tst 2>/dev/null
3135
3136if test "`cd $srcdir && pwd`" != "`pwd`"; then
3137  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3138  # is not polluted with repeated "-I."
3139  am__isrc=' -I$(srcdir)'
3140  # test to see if srcdir already configured
3141  if test -f $srcdir/config.status; then
3142    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3143  fi
3144fi
3145
3146# test whether we have cygpath
3147if test -z "$CYGPATH_W"; then
3148  if (cygpath --version) >/dev/null 2>/dev/null; then
3149    CYGPATH_W='cygpath -w'
3150  else
3151    CYGPATH_W=echo
3152  fi
3153fi
3154
3155
3156# Define the identity of the package.
3157 PACKAGE='zeromq'
3158 VERSION='2.2.0'
3159
3160
3161cat >>confdefs.h <<_ACEOF
3162#define PACKAGE "$PACKAGE"
3163_ACEOF
3164
3165
3166cat >>confdefs.h <<_ACEOF
3167#define VERSION "$VERSION"
3168_ACEOF
3169
3170# Some tools Automake needs.
3171
3172ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3173
3174
3175AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3176
3177
3178AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3179
3180
3181AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3182
3183
3184MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3185
3186# We need awk for the "check" target.  The system "awk" is bad on
3187# some platforms.
3188# Always define AMTAR for backward compatibility.
3189
3190AMTAR=${AMTAR-"${am_missing_run}tar"}
3191
3192
3193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3194$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3195# Loop over all known methods to create a tar archive until one works.
3196_am_tools='gnutar plaintar pax cpio none'
3197_am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3198# Do not fold the above two line into one, because Tru64 sh and
3199# Solaris sh will not grok spaces in the rhs of `-'.
3200for _am_tool in $_am_tools
3201do
3202  case $_am_tool in
3203  gnutar)
3204    for _am_tar in tar gnutar gtar;
3205    do
3206      { echo "$as_me:$LINENO: $_am_tar --version" >&5
3207   ($_am_tar --version) >&5 2>&5
3208   ac_status=$?
3209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210   (exit $ac_status); } && break
3211    done
3212    am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3213    am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3214    am__untar="$_am_tar -xf -"
3215    ;;
3216  plaintar)
3217    # Must skip GNU tar: if it does not support --format= it doesn't create
3218    # ustar tarball either.
3219    (tar --version) >/dev/null 2>&1 && continue
3220    am__tar='tar chf - "$$tardir"'
3221    am__tar_='tar chf - "$tardir"'
3222    am__untar='tar xf -'
3223    ;;
3224  pax)
3225    am__tar='pax -L -x ustar -w "$$tardir"'
3226    am__tar_='pax -L -x ustar -w "$tardir"'
3227    am__untar='pax -r'
3228    ;;
3229  cpio)
3230    am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3231    am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3232    am__untar='cpio -i -H ustar -d'
3233    ;;
3234  none)
3235    am__tar=false
3236    am__tar_=false
3237    am__untar=false
3238    ;;
3239  esac
3240
3241  # If the value was cached, stop now.  We just wanted to have am__tar
3242  # and am__untar set.
3243  test -n "${am_cv_prog_tar_ustar}" && break
3244
3245  # tar/untar a dummy directory, and stop if the command works
3246  rm -rf conftest.dir
3247  mkdir conftest.dir
3248  echo GrepMe > conftest.dir/file
3249  { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3250   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3251   ac_status=$?
3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253   (exit $ac_status); }
3254  rm -rf conftest.dir
3255  if test -s conftest.tar; then
3256    { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3257   ($am__untar <conftest.tar) >&5 2>&5
3258   ac_status=$?
3259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3260   (exit $ac_status); }
3261    grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3262  fi
3263done
3264rm -rf conftest.dir
3265
3266if ${am_cv_prog_tar_ustar+:} false; then :
3267  $as_echo_n "(cached) " >&6
3268else
3269  am_cv_prog_tar_ustar=$_am_tool
3270fi
3271
3272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3273$as_echo "$am_cv_prog_tar_ustar" >&6; }
3274
3275
3276
3277
3278
3279# Check whether --enable-silent-rules was given.
3280if test "${enable_silent_rules+set}" = set; then :
3281  enableval=$enable_silent_rules;
3282fi
3283
3284case $enable_silent_rules in
3285yes) AM_DEFAULT_VERBOSITY=0;;
3286no)  AM_DEFAULT_VERBOSITY=1;;
3287*)   AM_DEFAULT_VERBOSITY=0;;
3288esac
3289AM_BACKSLASH='\'
3290
3291
3292# This lets us use PACKAGE_VERSION in Makefiles
3293
3294
3295# Libtool -version-info (ABI version)
3296#
3297# Don't change this unless you know exactly what you're doing and have read and
3298# understand:
3299# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
3300#
3301# Changes:
3302#
3303# ZeroMQ versions prior to 2.1.0 use 0.0.0 ("unstable")
3304# ZeroMQ version 2.1.0: 1:0:0
3305# ZeroMQ version 2.2.0: 1:1:0
3306#
3307# libzmq -version-info current:revision:age
3308LTVER="1:1:0"
3309
3310
3311# Take a copy of original flags
3312ZMQ_ORIG_CFLAGS="${CFLAGS:-none}"
3313ZMQ_ORIG_CPPFLAGS="${CPPFLAGS:-none}"
3314ZMQ_ORIG_CXXFLAGS="${CXXFLAGS:-none}"
3315
3316# Checks for programs.
3317ac_ext=c
3318ac_cpp='$CPP $CPPFLAGS'
3319ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322if test -n "$ac_tool_prefix"; then
3323  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3324set dummy ${ac_tool_prefix}gcc; ac_word=$2
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326$as_echo_n "checking for $ac_word... " >&6; }
3327if ${ac_cv_prog_CC+:} false; then :
3328  $as_echo_n "(cached) " >&6
3329else
3330  if test -n "$CC"; then
3331  ac_cv_prog_CC="$CC" # Let the user override the test.
3332else
3333as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334for as_dir in $PATH
3335do
3336  IFS=$as_save_IFS
3337  test -z "$as_dir" && as_dir=.
3338    for ac_exec_ext in '' $ac_executable_extensions; do
3339  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3341    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342    break 2
3343  fi
3344done
3345  done
3346IFS=$as_save_IFS
3347
3348fi
3349fi
3350CC=$ac_cv_prog_CC
3351if test -n "$CC"; then
3352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3353$as_echo "$CC" >&6; }
3354else
3355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356$as_echo "no" >&6; }
3357fi
3358
3359
3360fi
3361if test -z "$ac_cv_prog_CC"; then
3362  ac_ct_CC=$CC
3363  # Extract the first word of "gcc", so it can be a program name with args.
3364set dummy gcc; ac_word=$2
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366$as_echo_n "checking for $ac_word... " >&6; }
3367if ${ac_cv_prog_ac_ct_CC+:} false; then :
3368  $as_echo_n "(cached) " >&6
3369else
3370  if test -n "$ac_ct_CC"; then
3371  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372else
3373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374for as_dir in $PATH
3375do
3376  IFS=$as_save_IFS
3377  test -z "$as_dir" && as_dir=.
3378    for ac_exec_ext in '' $ac_executable_extensions; do
3379  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380    ac_cv_prog_ac_ct_CC="gcc"
3381    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382    break 2
3383  fi
3384done
3385  done
3386IFS=$as_save_IFS
3387
3388fi
3389fi
3390ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391if test -n "$ac_ct_CC"; then
3392  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3393$as_echo "$ac_ct_CC" >&6; }
3394else
3395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396$as_echo "no" >&6; }
3397fi
3398
3399  if test "x$ac_ct_CC" = x; then
3400    CC=""
3401  else
3402    case $cross_compiling:$ac_tool_warned in
3403yes:)
3404{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3405$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406ac_tool_warned=yes ;;
3407esac
3408    CC=$ac_ct_CC
3409  fi
3410else
3411  CC="$ac_cv_prog_CC"
3412fi
3413
3414if test -z "$CC"; then
3415          if test -n "$ac_tool_prefix"; then
3416    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3417set dummy ${ac_tool_prefix}cc; ac_word=$2
3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419$as_echo_n "checking for $ac_word... " >&6; }
3420if ${ac_cv_prog_CC+:} false; then :
3421  $as_echo_n "(cached) " >&6
3422else
3423  if test -n "$CC"; then
3424  ac_cv_prog_CC="$CC" # Let the user override the test.
3425else
3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427for as_dir in $PATH
3428do
3429  IFS=$as_save_IFS
3430  test -z "$as_dir" && as_dir=.
3431    for ac_exec_ext in '' $ac_executable_extensions; do
3432  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433    ac_cv_prog_CC="${ac_tool_prefix}cc"
3434    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435    break 2
3436  fi
3437done
3438  done
3439IFS=$as_save_IFS
3440
3441fi
3442fi
3443CC=$ac_cv_prog_CC
3444if test -n "$CC"; then
3445  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3446$as_echo "$CC" >&6; }
3447else
3448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449$as_echo "no" >&6; }
3450fi
3451
3452
3453  fi
3454fi
3455if test -z "$CC"; then
3456  # Extract the first word of "cc", so it can be a program name with args.
3457set dummy cc; ac_word=$2
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459$as_echo_n "checking for $ac_word... " >&6; }
3460if ${ac_cv_prog_CC+:} false; then :
3461  $as_echo_n "(cached) " >&6
3462else
3463  if test -n "$CC"; then
3464  ac_cv_prog_CC="$CC" # Let the user override the test.
3465else
3466  ac_prog_rejected=no
3467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468for as_dir in $PATH
3469do
3470  IFS=$as_save_IFS
3471  test -z "$as_dir" && as_dir=.
3472    for ac_exec_ext in '' $ac_executable_extensions; do
3473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3475       ac_prog_rejected=yes
3476       continue
3477     fi
3478    ac_cv_prog_CC="cc"
3479    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480    break 2
3481  fi
3482done
3483  done
3484IFS=$as_save_IFS
3485
3486if test $ac_prog_rejected = yes; then
3487  # We found a bogon in the path, so make sure we never use it.
3488  set dummy $ac_cv_prog_CC
3489  shift
3490  if test $# != 0; then
3491    # We chose a different compiler from the bogus one.
3492    # However, it has the same basename, so the bogon will be chosen
3493    # first if we set CC to just the basename; use the full file name.
3494    shift
3495    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3496  fi
3497fi
3498fi
3499fi
3500CC=$ac_cv_prog_CC
3501if test -n "$CC"; then
3502  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503$as_echo "$CC" >&6; }
3504else
3505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506$as_echo "no" >&6; }
3507fi
3508
3509
3510fi
3511if test -z "$CC"; then
3512  if test -n "$ac_tool_prefix"; then
3513  for ac_prog in cl.exe
3514  do
3515    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3518$as_echo_n "checking for $ac_word... " >&6; }
3519if ${ac_cv_prog_CC+:} false; then :
3520  $as_echo_n "(cached) " >&6
3521else
3522  if test -n "$CC"; then
3523  ac_cv_prog_CC="$CC" # Let the user override the test.
3524else
3525as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526for as_dir in $PATH
3527do
3528  IFS=$as_save_IFS
3529  test -z "$as_dir" && as_dir=.
3530    for ac_exec_ext in '' $ac_executable_extensions; do
3531  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3533    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534    break 2
3535  fi
3536done
3537  done
3538IFS=$as_save_IFS
3539
3540fi
3541fi
3542CC=$ac_cv_prog_CC
3543if test -n "$CC"; then
3544  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3545$as_echo "$CC" >&6; }
3546else
3547  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3548$as_echo "no" >&6; }
3549fi
3550
3551
3552    test -n "$CC" && break
3553  done
3554fi
3555if test -z "$CC"; then
3556  ac_ct_CC=$CC
3557  for ac_prog in cl.exe
3558do
3559  # Extract the first word of "$ac_prog", so it can be a program name with args.
3560set dummy $ac_prog; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; }
3563if ${ac_cv_prog_ac_ct_CC+:} false; then :
3564  $as_echo_n "(cached) " >&6
3565else
3566  if test -n "$ac_ct_CC"; then
3567  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568else
3569as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570for as_dir in $PATH
3571do
3572  IFS=$as_save_IFS
3573  test -z "$as_dir" && as_dir=.
3574    for ac_exec_ext in '' $ac_executable_extensions; do
3575  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576    ac_cv_prog_ac_ct_CC="$ac_prog"
3577    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578    break 2
3579  fi
3580done
3581  done
3582IFS=$as_save_IFS
3583
3584fi
3585fi
3586ac_ct_CC=$ac_cv_prog_ac_ct_CC
3587if test -n "$ac_ct_CC"; then
3588  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3589$as_echo "$ac_ct_CC" >&6; }
3590else
3591  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592$as_echo "no" >&6; }
3593fi
3594
3595
3596  test -n "$ac_ct_CC" && break
3597done
3598
3599  if test "x$ac_ct_CC" = x; then
3600    CC=""
3601  else
3602    case $cross_compiling:$ac_tool_warned in
3603yes:)
3604{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3605$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3606ac_tool_warned=yes ;;
3607esac
3608    CC=$ac_ct_CC
3609  fi
3610fi
3611
3612fi
3613
3614
3615test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617as_fn_error $? "no acceptable C compiler found in \$PATH
3618See \`config.log' for more details" "$LINENO" 5; }
3619
3620# Provide some information about the compiler.
3621$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3622set X $ac_compile
3623ac_compiler=$2
3624for ac_option in --version -v -V -qversion; do
3625  { { ac_try="$ac_compiler $ac_option >&5"
3626case "(($ac_try" in
3627  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628  *) ac_try_echo=$ac_try;;
3629esac
3630eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631$as_echo "$ac_try_echo"; } >&5
3632  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3633  ac_status=$?
3634  if test -s conftest.err; then
3635    sed '10a\
3636... rest of stderr output deleted ...
3637         10q' conftest.err >conftest.er1
3638    cat conftest.er1 >&5
3639  fi
3640  rm -f conftest.er1 conftest.err
3641  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642  test $ac_status = 0; }
3643done
3644
3645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646/* end confdefs.h.  */
3647
3648int
3649main ()
3650{
3651
3652  ;
3653  return 0;
3654}
3655_ACEOF
3656ac_clean_files_save=$ac_clean_files
3657ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3658# Try to create an executable without -o first, disregard a.out.
3659# It will help us diagnose broken compilers, and finding out an intuition
3660# of exeext.
3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3662$as_echo_n "checking whether the C compiler works... " >&6; }
3663ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3664
3665# The possible output files:
3666ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3667
3668ac_rmfiles=
3669for ac_file in $ac_files
3670do
3671  case $ac_file in
3672    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3673    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3674  esac
3675done
3676rm -f $ac_rmfiles
3677
3678if { { ac_try="$ac_link_default"
3679case "(($ac_try" in
3680  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681  *) ac_try_echo=$ac_try;;
3682esac
3683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3684$as_echo "$ac_try_echo"; } >&5
3685  (eval "$ac_link_default") 2>&5
3686  ac_status=$?
3687  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3688  test $ac_status = 0; }; then :
3689  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3690# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3691# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3692# so that the user can short-circuit this test for compilers unknown to
3693# Autoconf.
3694for ac_file in $ac_files ''
3695do
3696  test -f "$ac_file" || continue
3697  case $ac_file in
3698    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3699	;;
3700    [ab].out )
3701	# We found the default executable, but exeext='' is most
3702	# certainly right.
3703	break;;
3704    *.* )
3705	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3706	then :; else
3707	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3708	fi
3709	# We set ac_cv_exeext here because the later test for it is not
3710	# safe: cross compilers may not add the suffix if given an `-o'
3711	# argument, so we may need to know it at that point already.
3712	# Even if this section looks crufty: it has the advantage of
3713	# actually working.
3714	break;;
3715    * )
3716	break;;
3717  esac
3718done
3719test "$ac_cv_exeext" = no && ac_cv_exeext=
3720
3721else
3722  ac_file=''
3723fi
3724if test -z "$ac_file"; then :
3725  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726$as_echo "no" >&6; }
3727$as_echo "$as_me: failed program was:" >&5
3728sed 's/^/| /' conftest.$ac_ext >&5
3729
3730{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732as_fn_error 77 "C compiler cannot create executables
3733See \`config.log' for more details" "$LINENO" 5; }
3734else
3735  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3736$as_echo "yes" >&6; }
3737fi
3738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3739$as_echo_n "checking for C compiler default output file name... " >&6; }
3740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3741$as_echo "$ac_file" >&6; }
3742ac_exeext=$ac_cv_exeext
3743
3744rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3745ac_clean_files=$ac_clean_files_save
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3747$as_echo_n "checking for suffix of executables... " >&6; }
3748if { { ac_try="$ac_link"
3749case "(($ac_try" in
3750  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751  *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755  (eval "$ac_link") 2>&5
3756  ac_status=$?
3757  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758  test $ac_status = 0; }; then :
3759  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3760# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3761# work properly (i.e., refer to `conftest.exe'), while it won't with
3762# `rm'.
3763for ac_file in conftest.exe conftest conftest.*; do
3764  test -f "$ac_file" || continue
3765  case $ac_file in
3766    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3767    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3768	  break;;
3769    * ) break;;
3770  esac
3771done
3772else
3773  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3774$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3775as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3776See \`config.log' for more details" "$LINENO" 5; }
3777fi
3778rm -f conftest conftest$ac_cv_exeext
3779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3780$as_echo "$ac_cv_exeext" >&6; }
3781
3782rm -f conftest.$ac_ext
3783EXEEXT=$ac_cv_exeext
3784ac_exeext=$EXEEXT
3785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3786/* end confdefs.h.  */
3787#include <stdio.h>
3788int
3789main ()
3790{
3791FILE *f = fopen ("conftest.out", "w");
3792 return ferror (f) || fclose (f) != 0;
3793
3794  ;
3795  return 0;
3796}
3797_ACEOF
3798ac_clean_files="$ac_clean_files conftest.out"
3799# Check that the compiler produces executables we can run.  If not, either
3800# the compiler is broken, or we cross compile.
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3802$as_echo_n "checking whether we are cross compiling... " >&6; }
3803if test "$cross_compiling" != yes; then
3804  { { ac_try="$ac_link"
3805case "(($ac_try" in
3806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807  *) ac_try_echo=$ac_try;;
3808esac
3809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810$as_echo "$ac_try_echo"; } >&5
3811  (eval "$ac_link") 2>&5
3812  ac_status=$?
3813  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3814  test $ac_status = 0; }
3815  if { ac_try='./conftest$ac_cv_exeext'
3816  { { case "(($ac_try" in
3817  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3818  *) ac_try_echo=$ac_try;;
3819esac
3820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3821$as_echo "$ac_try_echo"; } >&5
3822  (eval "$ac_try") 2>&5
3823  ac_status=$?
3824  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3825  test $ac_status = 0; }; }; then
3826    cross_compiling=no
3827  else
3828    if test "$cross_compiling" = maybe; then
3829	cross_compiling=yes
3830    else
3831	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833as_fn_error $? "cannot run C compiled programs.
3834If you meant to cross compile, use \`--host'.
3835See \`config.log' for more details" "$LINENO" 5; }
3836    fi
3837  fi
3838fi
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3840$as_echo "$cross_compiling" >&6; }
3841
3842rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3843ac_clean_files=$ac_clean_files_save
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3845$as_echo_n "checking for suffix of object files... " >&6; }
3846if ${ac_cv_objext+:} false; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850/* end confdefs.h.  */
3851
3852int
3853main ()
3854{
3855
3856  ;
3857  return 0;
3858}
3859_ACEOF
3860rm -f conftest.o conftest.obj
3861if { { ac_try="$ac_compile"
3862case "(($ac_try" in
3863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864  *) ac_try_echo=$ac_try;;
3865esac
3866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867$as_echo "$ac_try_echo"; } >&5
3868  (eval "$ac_compile") 2>&5
3869  ac_status=$?
3870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871  test $ac_status = 0; }; then :
3872  for ac_file in conftest.o conftest.obj conftest.*; do
3873  test -f "$ac_file" || continue;
3874  case $ac_file in
3875    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3876    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3877       break;;
3878  esac
3879done
3880else
3881  $as_echo "$as_me: failed program was:" >&5
3882sed 's/^/| /' conftest.$ac_ext >&5
3883
3884{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3885$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3886as_fn_error $? "cannot compute suffix of object files: cannot compile
3887See \`config.log' for more details" "$LINENO" 5; }
3888fi
3889rm -f conftest.$ac_cv_objext conftest.$ac_ext
3890fi
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3892$as_echo "$ac_cv_objext" >&6; }
3893OBJEXT=$ac_cv_objext
3894ac_objext=$OBJEXT
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3896$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3897if ${ac_cv_c_compiler_gnu+:} false; then :
3898  $as_echo_n "(cached) " >&6
3899else
3900  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901/* end confdefs.h.  */
3902
3903int
3904main ()
3905{
3906#ifndef __GNUC__
3907       choke me
3908#endif
3909
3910  ;
3911  return 0;
3912}
3913_ACEOF
3914if ac_fn_c_try_compile "$LINENO"; then :
3915  ac_compiler_gnu=yes
3916else
3917  ac_compiler_gnu=no
3918fi
3919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920ac_cv_c_compiler_gnu=$ac_compiler_gnu
3921
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3924$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3925if test $ac_compiler_gnu = yes; then
3926  GCC=yes
3927else
3928  GCC=
3929fi
3930ac_test_CFLAGS=${CFLAGS+set}
3931ac_save_CFLAGS=$CFLAGS
3932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3933$as_echo_n "checking whether $CC accepts -g... " >&6; }
3934if ${ac_cv_prog_cc_g+:} false; then :
3935  $as_echo_n "(cached) " >&6
3936else
3937  ac_save_c_werror_flag=$ac_c_werror_flag
3938   ac_c_werror_flag=yes
3939   ac_cv_prog_cc_g=no
3940   CFLAGS="-g"
3941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3942/* end confdefs.h.  */
3943
3944int
3945main ()
3946{
3947
3948  ;
3949  return 0;
3950}
3951_ACEOF
3952if ac_fn_c_try_compile "$LINENO"; then :
3953  ac_cv_prog_cc_g=yes
3954else
3955  CFLAGS=""
3956      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957/* end confdefs.h.  */
3958
3959int
3960main ()
3961{
3962
3963  ;
3964  return 0;
3965}
3966_ACEOF
3967if ac_fn_c_try_compile "$LINENO"; then :
3968
3969else
3970  ac_c_werror_flag=$ac_save_c_werror_flag
3971	 CFLAGS="-g"
3972	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973/* end confdefs.h.  */
3974
3975int
3976main ()
3977{
3978
3979  ;
3980  return 0;
3981}
3982_ACEOF
3983if ac_fn_c_try_compile "$LINENO"; then :
3984  ac_cv_prog_cc_g=yes
3985fi
3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3987fi
3988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3989fi
3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991   ac_c_werror_flag=$ac_save_c_werror_flag
3992fi
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3994$as_echo "$ac_cv_prog_cc_g" >&6; }
3995if test "$ac_test_CFLAGS" = set; then
3996  CFLAGS=$ac_save_CFLAGS
3997elif test $ac_cv_prog_cc_g = yes; then
3998  if test "$GCC" = yes; then
3999    CFLAGS="-g -O2"
4000  else
4001    CFLAGS="-g"
4002  fi
4003else
4004  if test "$GCC" = yes; then
4005    CFLAGS="-O2"
4006  else
4007    CFLAGS=
4008  fi
4009fi
4010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4011$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4012if ${ac_cv_prog_cc_c89+:} false; then :
4013  $as_echo_n "(cached) " >&6
4014else
4015  ac_cv_prog_cc_c89=no
4016ac_save_CC=$CC
4017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018/* end confdefs.h.  */
4019#include <stdarg.h>
4020#include <stdio.h>
4021#include <sys/types.h>
4022#include <sys/stat.h>
4023/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4024struct buf { int x; };
4025FILE * (*rcsopen) (struct buf *, struct stat *, int);
4026static char *e (p, i)
4027     char **p;
4028     int i;
4029{
4030  return p[i];
4031}
4032static char *f (char * (*g) (char **, int), char **p, ...)
4033{
4034  char *s;
4035  va_list v;
4036  va_start (v,p);
4037  s = g (p, va_arg (v,int));
4038  va_end (v);
4039  return s;
4040}
4041
4042/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4043   function prototypes and stuff, but not '\xHH' hex character constants.
4044   These don't provoke an error unfortunately, instead are silently treated
4045   as 'x'.  The following induces an error, until -std is added to get
4046   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4047   array size at least.  It's necessary to write '\x00'==0 to get something
4048   that's true only with -std.  */
4049int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050
4051/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4052   inside strings and character constants.  */
4053#define FOO(x) 'x'
4054int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055
4056int test (int i, double x);
4057struct s1 {int (*f) (int a);};
4058struct s2 {int (*f) (double a);};
4059int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4060int argc;
4061char **argv;
4062int
4063main ()
4064{
4065return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4066  ;
4067  return 0;
4068}
4069_ACEOF
4070for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4071	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072do
4073  CC="$ac_save_CC $ac_arg"
4074  if ac_fn_c_try_compile "$LINENO"; then :
4075  ac_cv_prog_cc_c89=$ac_arg
4076fi
4077rm -f core conftest.err conftest.$ac_objext
4078  test "x$ac_cv_prog_cc_c89" != "xno" && break
4079done
4080rm -f conftest.$ac_ext
4081CC=$ac_save_CC
4082
4083fi
4084# AC_CACHE_VAL
4085case "x$ac_cv_prog_cc_c89" in
4086  x)
4087    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4088$as_echo "none needed" >&6; } ;;
4089  xno)
4090    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4091$as_echo "unsupported" >&6; } ;;
4092  *)
4093    CC="$CC $ac_cv_prog_cc_c89"
4094    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4095$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4096esac
4097if test "x$ac_cv_prog_cc_c89" != xno; then :
4098
4099fi
4100
4101ac_ext=c
4102ac_cpp='$CPP $CPPFLAGS'
4103ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105ac_compiler_gnu=$ac_cv_c_compiler_gnu
4106DEPDIR="${am__leading_dot}deps"
4107
4108ac_config_commands="$ac_config_commands depfiles"
4109
4110
4111am_make=${MAKE-make}
4112cat > confinc << 'END'
4113am__doit:
4114	@echo this is the am__doit target
4115.PHONY: am__doit
4116END
4117# If we don't find an include directive, just comment out the code.
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4119$as_echo_n "checking for style of include used by $am_make... " >&6; }
4120am__include="#"
4121am__quote=
4122_am_result=none
4123# First try GNU make style include.
4124echo "include confinc" > confmf
4125# Ignore all kinds of additional output from `make'.
4126case `$am_make -s -f confmf 2> /dev/null` in #(
4127*the\ am__doit\ target*)
4128  am__include=include
4129  am__quote=
4130  _am_result=GNU
4131  ;;
4132esac
4133# Now try BSD make style include.
4134if test "$am__include" = "#"; then
4135   echo '.include "confinc"' > confmf
4136   case `$am_make -s -f confmf 2> /dev/null` in #(
4137   *the\ am__doit\ target*)
4138     am__include=.include
4139     am__quote="\""
4140     _am_result=BSD
4141     ;;
4142   esac
4143fi
4144
4145
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4147$as_echo "$_am_result" >&6; }
4148rm -f confinc confmf
4149
4150# Check whether --enable-dependency-tracking was given.
4151if test "${enable_dependency_tracking+set}" = set; then :
4152  enableval=$enable_dependency_tracking;
4153fi
4154
4155if test "x$enable_dependency_tracking" != xno; then
4156  am_depcomp="$ac_aux_dir/depcomp"
4157  AMDEPBACKSLASH='\'
4158fi
4159 if test "x$enable_dependency_tracking" != xno; then
4160  AMDEP_TRUE=
4161  AMDEP_FALSE='#'
4162else
4163  AMDEP_TRUE='#'
4164  AMDEP_FALSE=
4165fi
4166
4167
4168
4169depcc="$CC"   am_compiler_list=
4170
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4172$as_echo_n "checking dependency style of $depcc... " >&6; }
4173if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4174  $as_echo_n "(cached) " >&6
4175else
4176  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4177  # We make a subdir and do the tests there.  Otherwise we can end up
4178  # making bogus files that we don't know about and never remove.  For
4179  # instance it was reported that on HP-UX the gcc test will end up
4180  # making a dummy file named `D' -- because `-MD' means `put the output
4181  # in D'.
4182  mkdir conftest.dir
4183  # Copy depcomp to subdir because otherwise we won't find it if we're
4184  # using a relative directory.
4185  cp "$am_depcomp" conftest.dir
4186  cd conftest.dir
4187  # We will build objects and dependencies in a subdirectory because
4188  # it helps to detect inapplicable dependency modes.  For instance
4189  # both Tru64's cc and ICC support -MD to output dependencies as a
4190  # side effect of compilation, but ICC will put the dependencies in
4191  # the current directory while Tru64 will put them in the object
4192  # directory.
4193  mkdir sub
4194
4195  am_cv_CC_dependencies_compiler_type=none
4196  if test "$am_compiler_list" = ""; then
4197     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4198  fi
4199  am__universal=false
4200  case " $depcc " in #(
4201     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4202     esac
4203
4204  for depmode in $am_compiler_list; do
4205    # Setup a source with many dependencies, because some compilers
4206    # like to wrap large dependency lists on column 80 (with \), and
4207    # we should not choose a depcomp mode which is confused by this.
4208    #
4209    # We need to recreate these files for each test, as the compiler may
4210    # overwrite some of them when testing with obscure command lines.
4211    # This happens at least with the AIX C compiler.
4212    : > sub/conftest.c
4213    for i in 1 2 3 4 5 6; do
4214      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4215      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4216      # Solaris 8's {/usr,}/bin/sh.
4217      touch sub/conftst$i.h
4218    done
4219    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4220
4221    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4222    # mode.  It turns out that the SunPro C++ compiler does not properly
4223    # handle `-M -o', and we need to detect this.  Also, some Intel
4224    # versions had trouble with output in subdirs
4225    am__obj=sub/conftest.${OBJEXT-o}
4226    am__minus_obj="-o $am__obj"
4227    case $depmode in
4228    gcc)
4229      # This depmode causes a compiler race in universal mode.
4230      test "$am__universal" = false || continue
4231      ;;
4232    nosideeffect)
4233      # after this tag, mechanisms are not by side-effect, so they'll
4234      # only be used when explicitly requested
4235      if test "x$enable_dependency_tracking" = xyes; then
4236	continue
4237      else
4238	break
4239      fi
4240      ;;
4241    msvisualcpp | msvcmsys)
4242      # This compiler won't grok `-c -o', but also, the minuso test has
4243      # not run yet.  These depmodes are late enough in the game, and
4244      # so weak that their functioning should not be impacted.
4245      am__obj=conftest.${OBJEXT-o}
4246      am__minus_obj=
4247      ;;
4248    none) break ;;
4249    esac
4250    if depmode=$depmode \
4251       source=sub/conftest.c object=$am__obj \
4252       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4253       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4254         >/dev/null 2>conftest.err &&
4255       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4256       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4257       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4258       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4259      # icc doesn't choke on unknown options, it will just issue warnings
4260      # or remarks (even with -Werror).  So we grep stderr for any message
4261      # that says an option was ignored or not supported.
4262      # When given -MP, icc 7.0 and 7.1 complain thusly:
4263      #   icc: Command line warning: ignoring option '-M'; no argument required
4264      # The diagnosis changed in icc 8.0:
4265      #   icc: Command line remark: option '-MP' not supported
4266      if (grep 'ignoring option' conftest.err ||
4267          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4268        am_cv_CC_dependencies_compiler_type=$depmode
4269        break
4270      fi
4271    fi
4272  done
4273
4274  cd ..
4275  rm -rf conftest.dir
4276else
4277  am_cv_CC_dependencies_compiler_type=none
4278fi
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4282$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4283CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4284
4285 if
4286  test "x$enable_dependency_tracking" != xno \
4287  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4288  am__fastdepCC_TRUE=
4289  am__fastdepCC_FALSE='#'
4290else
4291  am__fastdepCC_TRUE='#'
4292  am__fastdepCC_FALSE=
4293fi
4294
4295
4296   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4297$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4298if ${ac_cv_prog_cc_c99+:} false; then :
4299  $as_echo_n "(cached) " >&6
4300else
4301  ac_cv_prog_cc_c99=no
4302ac_save_CC=$CC
4303cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h.  */
4305#include <stdarg.h>
4306#include <stdbool.h>
4307#include <stdlib.h>
4308#include <wchar.h>
4309#include <stdio.h>
4310
4311// Check varargs macros.  These examples are taken from C99 6.10.3.5.
4312#define debug(...) fprintf (stderr, __VA_ARGS__)
4313#define showlist(...) puts (#__VA_ARGS__)
4314#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4315static void
4316test_varargs_macros (void)
4317{
4318  int x = 1234;
4319  int y = 5678;
4320  debug ("Flag");
4321  debug ("X = %d\n", x);
4322  showlist (The first, second, and third items.);
4323  report (x>y, "x is %d but y is %d", x, y);
4324}
4325
4326// Check long long types.
4327#define BIG64 18446744073709551615ull
4328#define BIG32 4294967295ul
4329#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4330#if !BIG_OK
4331  your preprocessor is broken;
4332#endif
4333#if BIG_OK
4334#else
4335  your preprocessor is broken;
4336#endif
4337static long long int bignum = -9223372036854775807LL;
4338static unsigned long long int ubignum = BIG64;
4339
4340struct incomplete_array
4341{
4342  int datasize;
4343  double data[];
4344};
4345
4346struct named_init {
4347  int number;
4348  const wchar_t *name;
4349  double average;
4350};
4351
4352typedef const char *ccp;
4353
4354static inline int
4355test_restrict (ccp restrict text)
4356{
4357  // See if C++-style comments work.
4358  // Iterate through items via the restricted pointer.
4359  // Also check for declarations in for loops.
4360  for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4361    continue;
4362  return 0;
4363}
4364
4365// Check varargs and va_copy.
4366static void
4367test_varargs (const char *format, ...)
4368{
4369  va_list args;
4370  va_start (args, format);
4371  va_list args_copy;
4372  va_copy (args_copy, args);
4373
4374  const char *str;
4375  int number;
4376  float fnumber;
4377
4378  while (*format)
4379    {
4380      switch (*format++)
4381	{
4382	case 's': // string
4383	  str = va_arg (args_copy, const char *);
4384	  break;
4385	case 'd': // int
4386	  number = va_arg (args_copy, int);
4387	  break;
4388	case 'f': // float
4389	  fnumber = va_arg (args_copy, double);
4390	  break;
4391	default:
4392	  break;
4393	}
4394    }
4395  va_end (args_copy);
4396  va_end (args);
4397}
4398
4399int
4400main ()
4401{
4402
4403  // Check bool.
4404  _Bool success = false;
4405
4406  // Check restrict.
4407  if (test_restrict ("String literal") == 0)
4408    success = true;
4409  char *restrict newvar = "Another string";
4410
4411  // Check varargs.
4412  test_varargs ("s, d' f .", "string", 65, 34.234);
4413  test_varargs_macros ();
4414
4415  // Check flexible array members.
4416  struct incomplete_array *ia =
4417    malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4418  ia->datasize = 10;
4419  for (int i = 0; i < ia->datasize; ++i)
4420    ia->data[i] = i * 1.234;
4421
4422  // Check named initializers.
4423  struct named_init ni = {
4424    .number = 34,
4425    .name = L"Test wide string",
4426    .average = 543.34343,
4427  };
4428
4429  ni.number = 58;
4430
4431  int dynamic_array[ni.number];
4432  dynamic_array[ni.number - 1] = 543;
4433
4434  // work around unused variable warnings
4435  return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4436	  || dynamic_array[ni.number - 1] != 543);
4437
4438  ;
4439  return 0;
4440}
4441_ACEOF
4442for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4443do
4444  CC="$ac_save_CC $ac_arg"
4445  if ac_fn_c_try_compile "$LINENO"; then :
4446  ac_cv_prog_cc_c99=$ac_arg
4447fi
4448rm -f core conftest.err conftest.$ac_objext
4449  test "x$ac_cv_prog_cc_c99" != "xno" && break
4450done
4451rm -f conftest.$ac_ext
4452CC=$ac_save_CC
4453
4454fi
4455# AC_CACHE_VAL
4456case "x$ac_cv_prog_cc_c99" in
4457  x)
4458    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4459$as_echo "none needed" >&6; } ;;
4460  xno)
4461    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4462$as_echo "unsupported" >&6; } ;;
4463  *)
4464    CC="$CC $ac_cv_prog_cc_c99"
4465    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4466$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4467esac
4468if test "x$ac_cv_prog_cc_c99" != xno; then :
4469
4470fi
4471
4472
4473ac_ext=cpp
4474ac_cpp='$CXXCPP $CPPFLAGS'
4475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4478if test -z "$CXX"; then
4479  if test -n "$CCC"; then
4480    CXX=$CCC
4481  else
4482    if test -n "$ac_tool_prefix"; then
4483  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4484  do
4485    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4486set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4488$as_echo_n "checking for $ac_word... " >&6; }
4489if ${ac_cv_prog_CXX+:} false; then :
4490  $as_echo_n "(cached) " >&6
4491else
4492  if test -n "$CXX"; then
4493  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4494else
4495as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4496for as_dir in $PATH
4497do
4498  IFS=$as_save_IFS
4499  test -z "$as_dir" && as_dir=.
4500    for ac_exec_ext in '' $ac_executable_extensions; do
4501  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4502    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4503    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4504    break 2
4505  fi
4506done
4507  done
4508IFS=$as_save_IFS
4509
4510fi
4511fi
4512CXX=$ac_cv_prog_CXX
4513if test -n "$CXX"; then
4514  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4515$as_echo "$CXX" >&6; }
4516else
4517  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4518$as_echo "no" >&6; }
4519fi
4520
4521
4522    test -n "$CXX" && break
4523  done
4524fi
4525if test -z "$CXX"; then
4526  ac_ct_CXX=$CXX
4527  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4528do
4529  # Extract the first word of "$ac_prog", so it can be a program name with args.
4530set dummy $ac_prog; ac_word=$2
4531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4532$as_echo_n "checking for $ac_word... " >&6; }
4533if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4534  $as_echo_n "(cached) " >&6
4535else
4536  if test -n "$ac_ct_CXX"; then
4537  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542  IFS=$as_save_IFS
4543  test -z "$as_dir" && as_dir=.
4544    for ac_exec_ext in '' $ac_executable_extensions; do
4545  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4546    ac_cv_prog_ac_ct_CXX="$ac_prog"
4547    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4548    break 2
4549  fi
4550done
4551  done
4552IFS=$as_save_IFS
4553
4554fi
4555fi
4556ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4557if test -n "$ac_ct_CXX"; then
4558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4559$as_echo "$ac_ct_CXX" >&6; }
4560else
4561  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4562$as_echo "no" >&6; }
4563fi
4564
4565
4566  test -n "$ac_ct_CXX" && break
4567done
4568
4569  if test "x$ac_ct_CXX" = x; then
4570    CXX="g++"
4571  else
4572    case $cross_compiling:$ac_tool_warned in
4573yes:)
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4576ac_tool_warned=yes ;;
4577esac
4578    CXX=$ac_ct_CXX
4579  fi
4580fi
4581
4582  fi
4583fi
4584# Provide some information about the compiler.
4585$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4586set X $ac_compile
4587ac_compiler=$2
4588for ac_option in --version -v -V -qversion; do
4589  { { ac_try="$ac_compiler $ac_option >&5"
4590case "(($ac_try" in
4591  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592  *) ac_try_echo=$ac_try;;
4593esac
4594eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595$as_echo "$ac_try_echo"; } >&5
4596  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4597  ac_status=$?
4598  if test -s conftest.err; then
4599    sed '10a\
4600... rest of stderr output deleted ...
4601         10q' conftest.err >conftest.er1
4602    cat conftest.er1 >&5
4603  fi
4604  rm -f conftest.er1 conftest.err
4605  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4606  test $ac_status = 0; }
4607done
4608
4609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4610$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4611if ${ac_cv_cxx_compiler_gnu+:} false; then :
4612  $as_echo_n "(cached) " >&6
4613else
4614  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4615/* end confdefs.h.  */
4616
4617int
4618main ()
4619{
4620#ifndef __GNUC__
4621       choke me
4622#endif
4623
4624  ;
4625  return 0;
4626}
4627_ACEOF
4628if ac_fn_cxx_try_compile "$LINENO"; then :
4629  ac_compiler_gnu=yes
4630else
4631  ac_compiler_gnu=no
4632fi
4633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4635
4636fi
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4638$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4639if test $ac_compiler_gnu = yes; then
4640  GXX=yes
4641else
4642  GXX=
4643fi
4644ac_test_CXXFLAGS=${CXXFLAGS+set}
4645ac_save_CXXFLAGS=$CXXFLAGS
4646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4647$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4648if ${ac_cv_prog_cxx_g+:} false; then :
4649  $as_echo_n "(cached) " >&6
4650else
4651  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4652   ac_cxx_werror_flag=yes
4653   ac_cv_prog_cxx_g=no
4654   CXXFLAGS="-g"
4655   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656/* end confdefs.h.  */
4657
4658int
4659main ()
4660{
4661
4662  ;
4663  return 0;
4664}
4665_ACEOF
4666if ac_fn_cxx_try_compile "$LINENO"; then :
4667  ac_cv_prog_cxx_g=yes
4668else
4669  CXXFLAGS=""
4670      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671/* end confdefs.h.  */
4672
4673int
4674main ()
4675{
4676
4677  ;
4678  return 0;
4679}
4680_ACEOF
4681if ac_fn_cxx_try_compile "$LINENO"; then :
4682
4683else
4684  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4685	 CXXFLAGS="-g"
4686	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4687/* end confdefs.h.  */
4688
4689int
4690main ()
4691{
4692
4693  ;
4694  return 0;
4695}
4696_ACEOF
4697if ac_fn_cxx_try_compile "$LINENO"; then :
4698  ac_cv_prog_cxx_g=yes
4699fi
4700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701fi
4702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703fi
4704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4705   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4706fi
4707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4708$as_echo "$ac_cv_prog_cxx_g" >&6; }
4709if test "$ac_test_CXXFLAGS" = set; then
4710  CXXFLAGS=$ac_save_CXXFLAGS
4711elif test $ac_cv_prog_cxx_g = yes; then
4712  if test "$GXX" = yes; then
4713    CXXFLAGS="-g -O2"
4714  else
4715    CXXFLAGS="-g"
4716  fi
4717else
4718  if test "$GXX" = yes; then
4719    CXXFLAGS="-O2"
4720  else
4721    CXXFLAGS=
4722  fi
4723fi
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
4730depcc="$CXX"  am_compiler_list=
4731
4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4733$as_echo_n "checking dependency style of $depcc... " >&6; }
4734if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4735  $as_echo_n "(cached) " >&6
4736else
4737  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4738  # We make a subdir and do the tests there.  Otherwise we can end up
4739  # making bogus files that we don't know about and never remove.  For
4740  # instance it was reported that on HP-UX the gcc test will end up
4741  # making a dummy file named `D' -- because `-MD' means `put the output
4742  # in D'.
4743  mkdir conftest.dir
4744  # Copy depcomp to subdir because otherwise we won't find it if we're
4745  # using a relative directory.
4746  cp "$am_depcomp" conftest.dir
4747  cd conftest.dir
4748  # We will build objects and dependencies in a subdirectory because
4749  # it helps to detect inapplicable dependency modes.  For instance
4750  # both Tru64's cc and ICC support -MD to output dependencies as a
4751  # side effect of compilation, but ICC will put the dependencies in
4752  # the current directory while Tru64 will put them in the object
4753  # directory.
4754  mkdir sub
4755
4756  am_cv_CXX_dependencies_compiler_type=none
4757  if test "$am_compiler_list" = ""; then
4758     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4759  fi
4760  am__universal=false
4761  case " $depcc " in #(
4762     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4763     esac
4764
4765  for depmode in $am_compiler_list; do
4766    # Setup a source with many dependencies, because some compilers
4767    # like to wrap large dependency lists on column 80 (with \), and
4768    # we should not choose a depcomp mode which is confused by this.
4769    #
4770    # We need to recreate these files for each test, as the compiler may
4771    # overwrite some of them when testing with obscure command lines.
4772    # This happens at least with the AIX C compiler.
4773    : > sub/conftest.c
4774    for i in 1 2 3 4 5 6; do
4775      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4776      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4777      # Solaris 8's {/usr,}/bin/sh.
4778      touch sub/conftst$i.h
4779    done
4780    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4781
4782    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4783    # mode.  It turns out that the SunPro C++ compiler does not properly
4784    # handle `-M -o', and we need to detect this.  Also, some Intel
4785    # versions had trouble with output in subdirs
4786    am__obj=sub/conftest.${OBJEXT-o}
4787    am__minus_obj="-o $am__obj"
4788    case $depmode in
4789    gcc)
4790      # This depmode causes a compiler race in universal mode.
4791      test "$am__universal" = false || continue
4792      ;;
4793    nosideeffect)
4794      # after this tag, mechanisms are not by side-effect, so they'll
4795      # only be used when explicitly requested
4796      if test "x$enable_dependency_tracking" = xyes; then
4797	continue
4798      else
4799	break
4800      fi
4801      ;;
4802    msvisualcpp | msvcmsys)
4803      # This compiler won't grok `-c -o', but also, the minuso test has
4804      # not run yet.  These depmodes are late enough in the game, and
4805      # so weak that their functioning should not be impacted.
4806      am__obj=conftest.${OBJEXT-o}
4807      am__minus_obj=
4808      ;;
4809    none) break ;;
4810    esac
4811    if depmode=$depmode \
4812       source=sub/conftest.c object=$am__obj \
4813       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4814       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4815         >/dev/null 2>conftest.err &&
4816       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4817       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4818       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4819       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4820      # icc doesn't choke on unknown options, it will just issue warnings
4821      # or remarks (even with -Werror).  So we grep stderr for any message
4822      # that says an option was ignored or not supported.
4823      # When given -MP, icc 7.0 and 7.1 complain thusly:
4824      #   icc: Command line warning: ignoring option '-M'; no argument required
4825      # The diagnosis changed in icc 8.0:
4826      #   icc: Command line remark: option '-MP' not supported
4827      if (grep 'ignoring option' conftest.err ||
4828          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4829        am_cv_CXX_dependencies_compiler_type=$depmode
4830        break
4831      fi
4832    fi
4833  done
4834
4835  cd ..
4836  rm -rf conftest.dir
4837else
4838  am_cv_CXX_dependencies_compiler_type=none
4839fi
4840
4841fi
4842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4843$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4844CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4845
4846 if
4847  test "x$enable_dependency_tracking" != xno \
4848  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4849  am__fastdepCXX_TRUE=
4850  am__fastdepCXX_FALSE='#'
4851else
4852  am__fastdepCXX_TRUE='#'
4853  am__fastdepCXX_FALSE=
4854fi
4855
4856
4857if test "x$CC" != xcc; then
4858  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4859$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4860else
4861  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4862$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4863fi
4864set dummy $CC; ac_cc=`$as_echo "$2" |
4865		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4866if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4867  $as_echo_n "(cached) " >&6
4868else
4869  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4870/* end confdefs.h.  */
4871
4872int
4873main ()
4874{
4875
4876  ;
4877  return 0;
4878}
4879_ACEOF
4880# Make sure it works both with $CC and with simple cc.
4881# We do the test twice because some compilers refuse to overwrite an
4882# existing .o file with -o, though they will create one.
4883ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4884rm -f conftest2.*
4885if { { case "(($ac_try" in
4886  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887  *) ac_try_echo=$ac_try;;
4888esac
4889eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4890$as_echo "$ac_try_echo"; } >&5
4891  (eval "$ac_try") 2>&5
4892  ac_status=$?
4893  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4894  test $ac_status = 0; } &&
4895   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4896  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4897  *) ac_try_echo=$ac_try;;
4898esac
4899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4900$as_echo "$ac_try_echo"; } >&5
4901  (eval "$ac_try") 2>&5
4902  ac_status=$?
4903  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4904  test $ac_status = 0; };
4905then
4906  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4907  if test "x$CC" != xcc; then
4908    # Test first that cc exists at all.
4909    if { ac_try='cc -c conftest.$ac_ext >&5'
4910  { { case "(($ac_try" in
4911  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4912  *) ac_try_echo=$ac_try;;
4913esac
4914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4915$as_echo "$ac_try_echo"; } >&5
4916  (eval "$ac_try") 2>&5
4917  ac_status=$?
4918  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4919  test $ac_status = 0; }; }; then
4920      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4921      rm -f conftest2.*
4922      if { { case "(($ac_try" in
4923  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4924  *) ac_try_echo=$ac_try;;
4925esac
4926eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4927$as_echo "$ac_try_echo"; } >&5
4928  (eval "$ac_try") 2>&5
4929  ac_status=$?
4930  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4931  test $ac_status = 0; } &&
4932	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4933  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934  *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4937$as_echo "$ac_try_echo"; } >&5
4938  (eval "$ac_try") 2>&5
4939  ac_status=$?
4940  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4941  test $ac_status = 0; };
4942      then
4943	# cc works too.
4944	:
4945      else
4946	# cc exists but doesn't like -o.
4947	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4948      fi
4949    fi
4950  fi
4951else
4952  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4953fi
4954rm -f core conftest*
4955
4956fi
4957if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4959$as_echo "yes" >&6; }
4960else
4961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962$as_echo "no" >&6; }
4963
4964$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4965
4966fi
4967
4968# FIXME: we rely on the cache variable name because
4969# there is no other way.
4970set dummy $CC
4971am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4972eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4973if test "$am_t" != yes; then
4974   # Losing compiler, so override with the script.
4975   # FIXME: It is wrong to rewrite CC.
4976   # But if we don't then we get into trouble of one sort or another.
4977   # A longer-term fix would be to have automake use am__CC in this case,
4978   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4979   CC="$am_aux_dir/compile $CC"
4980fi
4981
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4984$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4985if ${ac_cv_path_SED+:} false; then :
4986  $as_echo_n "(cached) " >&6
4987else
4988            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4989     for ac_i in 1 2 3 4 5 6 7; do
4990       ac_script="$ac_script$as_nl$ac_script"
4991     done
4992     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4993     { ac_script=; unset ac_script;}
4994     if test -z "$SED"; then
4995  ac_path_SED_found=false
4996  # Loop through the user's path and test for each of PROGNAME-LIST
4997  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998for as_dir in $PATH
4999do
5000  IFS=$as_save_IFS
5001  test -z "$as_dir" && as_dir=.
5002    for ac_prog in sed gsed; do
5003    for ac_exec_ext in '' $ac_executable_extensions; do
5004      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5005      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5006# Check for GNU ac_path_SED and select it if it is found.
5007  # Check for GNU $ac_path_SED
5008case `"$ac_path_SED" --version 2>&1` in
5009*GNU*)
5010  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011*)
5012  ac_count=0
5013  $as_echo_n 0123456789 >"conftest.in"
5014  while :
5015  do
5016    cat "conftest.in" "conftest.in" >"conftest.tmp"
5017    mv "conftest.tmp" "conftest.in"
5018    cp "conftest.in" "conftest.nl"
5019    $as_echo '' >> "conftest.nl"
5020    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5021    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5022    as_fn_arith $ac_count + 1 && ac_count=$as_val
5023    if test $ac_count -gt ${ac_path_SED_max-0}; then
5024      # Best one so far, save it but keep looking for a better one
5025      ac_cv_path_SED="$ac_path_SED"
5026      ac_path_SED_max=$ac_count
5027    fi
5028    # 10*(2^10) chars as input seems more than enough
5029    test $ac_count -gt 10 && break
5030  done
5031  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5032esac
5033
5034      $ac_path_SED_found && break 3
5035    done
5036  done
5037  done
5038IFS=$as_save_IFS
5039  if test -z "$ac_cv_path_SED"; then
5040    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041  fi
5042else
5043  ac_cv_path_SED=$SED
5044fi
5045
5046fi
5047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5048$as_echo "$ac_cv_path_SED" >&6; }
5049 SED="$ac_cv_path_SED"
5050  rm -f conftest.sed
5051
5052for ac_prog in gawk mawk nawk awk
5053do
5054  # Extract the first word of "$ac_prog", so it can be a program name with args.
5055set dummy $ac_prog; ac_word=$2
5056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057$as_echo_n "checking for $ac_word... " >&6; }
5058if ${ac_cv_prog_AWK+:} false; then :
5059  $as_echo_n "(cached) " >&6
5060else
5061  if test -n "$AWK"; then
5062  ac_cv_prog_AWK="$AWK" # Let the user override the test.
5063else
5064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5065for as_dir in $PATH
5066do
5067  IFS=$as_save_IFS
5068  test -z "$as_dir" && as_dir=.
5069    for ac_exec_ext in '' $ac_executable_extensions; do
5070  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071    ac_cv_prog_AWK="$ac_prog"
5072    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5073    break 2
5074  fi
5075done
5076  done
5077IFS=$as_save_IFS
5078
5079fi
5080fi
5081AWK=$ac_cv_prog_AWK
5082if test -n "$AWK"; then
5083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5084$as_echo "$AWK" >&6; }
5085else
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5087$as_echo "no" >&6; }
5088fi
5089
5090
5091  test -n "$AWK" && break
5092done
5093
5094
5095
5096# Extract the first word of "xmlto", so it can be a program name with args.
5097set dummy xmlto; ac_word=$2
5098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099$as_echo_n "checking for $ac_word... " >&6; }
5100if ${ac_cv_path_XMLTO+:} false; then :
5101  $as_echo_n "(cached) " >&6
5102else
5103  case $XMLTO in
5104  [\\/]* | ?:[\\/]*)
5105  ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
5106  ;;
5107  *)
5108  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109for as_dir in $PATH
5110do
5111  IFS=$as_save_IFS
5112  test -z "$as_dir" && as_dir=.
5113    for ac_exec_ext in '' $ac_executable_extensions; do
5114  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115    ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
5116    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117    break 2
5118  fi
5119done
5120  done
5121IFS=$as_save_IFS
5122
5123  ;;
5124esac
5125fi
5126XMLTO=$ac_cv_path_XMLTO
5127if test -n "$XMLTO"; then
5128  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
5129$as_echo "$XMLTO" >&6; }
5130else
5131  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132$as_echo "no" >&6; }
5133fi
5134
5135
5136
5137# Extract the first word of "asciidoc", so it can be a program name with args.
5138set dummy asciidoc; ac_word=$2
5139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140$as_echo_n "checking for $ac_word... " >&6; }
5141if ${ac_cv_path_ASCIIDOC+:} false; then :
5142  $as_echo_n "(cached) " >&6
5143else
5144  case $ASCIIDOC in
5145  [\\/]* | ?:[\\/]*)
5146  ac_cv_path_ASCIIDOC="$ASCIIDOC" # Let the user override the test with a path.
5147  ;;
5148  *)
5149  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150for as_dir in $PATH
5151do
5152  IFS=$as_save_IFS
5153  test -z "$as_dir" && as_dir=.
5154    for ac_exec_ext in '' $ac_executable_extensions; do
5155  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5156    ac_cv_path_ASCIIDOC="$as_dir/$ac_word$ac_exec_ext"
5157    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158    break 2
5159  fi
5160done
5161  done
5162IFS=$as_save_IFS
5163
5164  ;;
5165esac
5166fi
5167ASCIIDOC=$ac_cv_path_ASCIIDOC
5168if test -n "$ASCIIDOC"; then
5169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ASCIIDOC" >&5
5170$as_echo "$ASCIIDOC" >&6; }
5171else
5172  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173$as_echo "no" >&6; }
5174fi
5175
5176
5177# Make sure we can run config.sub.
5178$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5179  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5180
5181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5182$as_echo_n "checking build system type... " >&6; }
5183if ${ac_cv_build+:} false; then :
5184  $as_echo_n "(cached) " >&6
5185else
5186  ac_build_alias=$build_alias
5187test "x$ac_build_alias" = x &&
5188  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5189test "x$ac_build_alias" = x &&
5190  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5191ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5192  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5193
5194fi
5195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5196$as_echo "$ac_cv_build" >&6; }
5197case $ac_cv_build in
5198*-*-*) ;;
5199*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5200esac
5201build=$ac_cv_build
5202ac_save_IFS=$IFS; IFS='-'
5203set x $ac_cv_build
5204shift
5205build_cpu=$1
5206build_vendor=$2
5207shift; shift
5208# Remember, the first character of IFS is used to create $*,
5209# except with old shells:
5210build_os=$*
5211IFS=$ac_save_IFS
5212case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5213
5214
5215{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5216$as_echo_n "checking host system type... " >&6; }
5217if ${ac_cv_host+:} false; then :
5218  $as_echo_n "(cached) " >&6
5219else
5220  if test "x$host_alias" = x; then
5221  ac_cv_host=$ac_cv_build
5222else
5223  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5224    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5225fi
5226
5227fi
5228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5229$as_echo "$ac_cv_host" >&6; }
5230case $ac_cv_host in
5231*-*-*) ;;
5232*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5233esac
5234host=$ac_cv_host
5235ac_save_IFS=$IFS; IFS='-'
5236set x $ac_cv_host
5237shift
5238host_cpu=$1
5239host_vendor=$2
5240shift; shift
5241# Remember, the first character of IFS is used to create $*,
5242# except with old shells:
5243host_os=$*
5244IFS=$ac_save_IFS
5245case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5246
5247
5248{
5249
5250
5251    # Libtool configuration for different targets
5252    case "${host_os}" in
5253        *mingw32*|*cygwin*)
5254            # Disable static build by default
5255            # Check whether --enable-static was given.
5256if test "${enable_static+set}" = set; then :
5257  enableval=$enable_static; p=${PACKAGE-default}
5258    case $enableval in
5259    yes) enable_static=yes ;;
5260    no) enable_static=no ;;
5261    *)
5262     enable_static=no
5263      # Look at the argument we got.  We use all the common list separators.
5264      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5265      for pkg in $enableval; do
5266	IFS="$lt_save_ifs"
5267	if test "X$pkg" = "X$p"; then
5268	  enable_static=yes
5269	fi
5270      done
5271      IFS="$lt_save_ifs"
5272      ;;
5273    esac
5274else
5275  enable_static=no
5276fi
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286        ;;
5287        *)
5288            # Everything else with static enabled
5289            # Check whether --enable-static was given.
5290if test "${enable_static+set}" = set; then :
5291  enableval=$enable_static; p=${PACKAGE-default}
5292    case $enableval in
5293    yes) enable_static=yes ;;
5294    no) enable_static=no ;;
5295    *)
5296     enable_static=no
5297      # Look at the argument we got.  We use all the common list separators.
5298      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5299      for pkg in $enableval; do
5300	IFS="$lt_save_ifs"
5301	if test "X$pkg" = "X$p"; then
5302	  enable_static=yes
5303	fi
5304      done
5305      IFS="$lt_save_ifs"
5306      ;;
5307    esac
5308else
5309  enable_static=yes
5310fi
5311
5312
5313
5314
5315
5316
5317        ;;
5318    esac
5319}
5320enable_win32_dll=yes
5321
5322case $host in
5323*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
5324  if test -n "$ac_tool_prefix"; then
5325  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5326set dummy ${ac_tool_prefix}as; ac_word=$2
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328$as_echo_n "checking for $ac_word... " >&6; }
5329if ${ac_cv_prog_AS+:} false; then :
5330  $as_echo_n "(cached) " >&6
5331else
5332  if test -n "$AS"; then
5333  ac_cv_prog_AS="$AS" # Let the user override the test.
5334else
5335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342    ac_cv_prog_AS="${ac_tool_prefix}as"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350fi
5351fi
5352AS=$ac_cv_prog_AS
5353if test -n "$AS"; then
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5355$as_echo "$AS" >&6; }
5356else
5357  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5358$as_echo "no" >&6; }
5359fi
5360
5361
5362fi
5363if test -z "$ac_cv_prog_AS"; then
5364  ac_ct_AS=$AS
5365  # Extract the first word of "as", so it can be a program name with args.
5366set dummy as; ac_word=$2
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5368$as_echo_n "checking for $ac_word... " >&6; }
5369if ${ac_cv_prog_ac_ct_AS+:} false; then :
5370  $as_echo_n "(cached) " >&6
5371else
5372  if test -n "$ac_ct_AS"; then
5373  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5374else
5375as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376for as_dir in $PATH
5377do
5378  IFS=$as_save_IFS
5379  test -z "$as_dir" && as_dir=.
5380    for ac_exec_ext in '' $ac_executable_extensions; do
5381  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382    ac_cv_prog_ac_ct_AS="as"
5383    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384    break 2
5385  fi
5386done
5387  done
5388IFS=$as_save_IFS
5389
5390fi
5391fi
5392ac_ct_AS=$ac_cv_prog_ac_ct_AS
5393if test -n "$ac_ct_AS"; then
5394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5395$as_echo "$ac_ct_AS" >&6; }
5396else
5397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5398$as_echo "no" >&6; }
5399fi
5400
5401  if test "x$ac_ct_AS" = x; then
5402    AS="false"
5403  else
5404    case $cross_compiling:$ac_tool_warned in
5405yes:)
5406{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5407$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5408ac_tool_warned=yes ;;
5409esac
5410    AS=$ac_ct_AS
5411  fi
5412else
5413  AS="$ac_cv_prog_AS"
5414fi
5415
5416  if test -n "$ac_tool_prefix"; then
5417  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5418set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420$as_echo_n "checking for $ac_word... " >&6; }
5421if ${ac_cv_prog_DLLTOOL+:} false; then :
5422  $as_echo_n "(cached) " >&6
5423else
5424  if test -n "$DLLTOOL"; then
5425  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5426else
5427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428for as_dir in $PATH
5429do
5430  IFS=$as_save_IFS
5431  test -z "$as_dir" && as_dir=.
5432    for ac_exec_ext in '' $ac_executable_extensions; do
5433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5436    break 2
5437  fi
5438done
5439  done
5440IFS=$as_save_IFS
5441
5442fi
5443fi
5444DLLTOOL=$ac_cv_prog_DLLTOOL
5445if test -n "$DLLTOOL"; then
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5447$as_echo "$DLLTOOL" >&6; }
5448else
5449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450$as_echo "no" >&6; }
5451fi
5452
5453
5454fi
5455if test -z "$ac_cv_prog_DLLTOOL"; then
5456  ac_ct_DLLTOOL=$DLLTOOL
5457  # Extract the first word of "dlltool", so it can be a program name with args.
5458set dummy dlltool; ac_word=$2
5459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460$as_echo_n "checking for $ac_word... " >&6; }
5461if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5462  $as_echo_n "(cached) " >&6
5463else
5464  if test -n "$ac_ct_DLLTOOL"; then
5465  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5466else
5467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5468for as_dir in $PATH
5469do
5470  IFS=$as_save_IFS
5471  test -z "$as_dir" && as_dir=.
5472    for ac_exec_ext in '' $ac_executable_extensions; do
5473  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5475    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476    break 2
5477  fi
5478done
5479  done
5480IFS=$as_save_IFS
5481
5482fi
5483fi
5484ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5485if test -n "$ac_ct_DLLTOOL"; then
5486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5487$as_echo "$ac_ct_DLLTOOL" >&6; }
5488else
5489  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490$as_echo "no" >&6; }
5491fi
5492
5493  if test "x$ac_ct_DLLTOOL" = x; then
5494    DLLTOOL="false"
5495  else
5496    case $cross_compiling:$ac_tool_warned in
5497yes:)
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500ac_tool_warned=yes ;;
5501esac
5502    DLLTOOL=$ac_ct_DLLTOOL
5503  fi
5504else
5505  DLLTOOL="$ac_cv_prog_DLLTOOL"
5506fi
5507
5508  if test -n "$ac_tool_prefix"; then
5509  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5510set dummy ${ac_tool_prefix}objdump; ac_word=$2
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512$as_echo_n "checking for $ac_word... " >&6; }
5513if ${ac_cv_prog_OBJDUMP+:} false; then :
5514  $as_echo_n "(cached) " >&6
5515else
5516  if test -n "$OBJDUMP"; then
5517  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5518else
5519as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520for as_dir in $PATH
5521do
5522  IFS=$as_save_IFS
5523  test -z "$as_dir" && as_dir=.
5524    for ac_exec_ext in '' $ac_executable_extensions; do
5525  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5527    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528    break 2
5529  fi
5530done
5531  done
5532IFS=$as_save_IFS
5533
5534fi
5535fi
5536OBJDUMP=$ac_cv_prog_OBJDUMP
5537if test -n "$OBJDUMP"; then
5538  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5539$as_echo "$OBJDUMP" >&6; }
5540else
5541  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542$as_echo "no" >&6; }
5543fi
5544
5545
5546fi
5547if test -z "$ac_cv_prog_OBJDUMP"; then
5548  ac_ct_OBJDUMP=$OBJDUMP
5549  # Extract the first word of "objdump", so it can be a program name with args.
5550set dummy objdump; ac_word=$2
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552$as_echo_n "checking for $ac_word... " >&6; }
5553if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  if test -n "$ac_ct_OBJDUMP"; then
5557  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5558else
5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560for as_dir in $PATH
5561do
5562  IFS=$as_save_IFS
5563  test -z "$as_dir" && as_dir=.
5564    for ac_exec_ext in '' $ac_executable_extensions; do
5565  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5566    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5567    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568    break 2
5569  fi
5570done
5571  done
5572IFS=$as_save_IFS
5573
5574fi
5575fi
5576ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5577if test -n "$ac_ct_OBJDUMP"; then
5578  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5579$as_echo "$ac_ct_OBJDUMP" >&6; }
5580else
5581  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582$as_echo "no" >&6; }
5583fi
5584
5585  if test "x$ac_ct_OBJDUMP" = x; then
5586    OBJDUMP="false"
5587  else
5588    case $cross_compiling:$ac_tool_warned in
5589yes:)
5590{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592ac_tool_warned=yes ;;
5593esac
5594    OBJDUMP=$ac_ct_OBJDUMP
5595  fi
5596else
5597  OBJDUMP="$ac_cv_prog_OBJDUMP"
5598fi
5599
5600  ;;
5601esac
5602
5603test -z "$AS" && AS=as
5604
5605
5606
5607
5608
5609test -z "$DLLTOOL" && DLLTOOL=dlltool
5610
5611
5612
5613
5614
5615test -z "$OBJDUMP" && OBJDUMP=objdump
5616
5617
5618
5619
5620
5621
5622
5623case `pwd` in
5624  *\ * | *\	*)
5625    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5626$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5627esac
5628
5629
5630
5631macro_version='2.4'
5632macro_revision='1.3293'
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646ltmain="$ac_aux_dir/ltmain.sh"
5647
5648# Backslashify metacharacters that are still active within
5649# double-quoted strings.
5650sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5651
5652# Same as above, but do not quote variable references.
5653double_quote_subst='s/\(["`\\]\)/\\\1/g'
5654
5655# Sed substitution to delay expansion of an escaped shell variable in a
5656# double_quote_subst'ed string.
5657delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5658
5659# Sed substitution to delay expansion of an escaped single quote.
5660delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5661
5662# Sed substitution to avoid accidental globbing in evaled expressions
5663no_glob_subst='s/\*/\\\*/g'
5664
5665ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5666ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5667ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5668
5669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5670$as_echo_n "checking how to print strings... " >&6; }
5671# Test print first, because it will be a builtin if present.
5672if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5673   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5674  ECHO='print -r --'
5675elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5676  ECHO='printf %s\n'
5677else
5678  # Use this function as a fallback that always works.
5679  func_fallback_echo ()
5680  {
5681    eval 'cat <<_LTECHO_EOF
5682$1
5683_LTECHO_EOF'
5684  }
5685  ECHO='func_fallback_echo'
5686fi
5687
5688# func_echo_all arg...
5689# Invoke $ECHO with all args, space-separated.
5690func_echo_all ()
5691{
5692    $ECHO ""
5693}
5694
5695case "$ECHO" in
5696  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5697$as_echo "printf" >&6; } ;;
5698  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5699$as_echo "print -r" >&6; } ;;
5700  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5701$as_echo "cat" >&6; } ;;
5702esac
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5718$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5719if ${ac_cv_path_SED+:} false; then :
5720  $as_echo_n "(cached) " >&6
5721else
5722            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5723     for ac_i in 1 2 3 4 5 6 7; do
5724       ac_script="$ac_script$as_nl$ac_script"
5725     done
5726     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5727     { ac_script=; unset ac_script;}
5728     if test -z "$SED"; then
5729  ac_path_SED_found=false
5730  # Loop through the user's path and test for each of PROGNAME-LIST
5731  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732for as_dir in $PATH
5733do
5734  IFS=$as_save_IFS
5735  test -z "$as_dir" && as_dir=.
5736    for ac_prog in sed gsed; do
5737    for ac_exec_ext in '' $ac_executable_extensions; do
5738      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5739      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5740# Check for GNU ac_path_SED and select it if it is found.
5741  # Check for GNU $ac_path_SED
5742case `"$ac_path_SED" --version 2>&1` in
5743*GNU*)
5744  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5745*)
5746  ac_count=0
5747  $as_echo_n 0123456789 >"conftest.in"
5748  while :
5749  do
5750    cat "conftest.in" "conftest.in" >"conftest.tmp"
5751    mv "conftest.tmp" "conftest.in"
5752    cp "conftest.in" "conftest.nl"
5753    $as_echo '' >> "conftest.nl"
5754    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5755    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5756    as_fn_arith $ac_count + 1 && ac_count=$as_val
5757    if test $ac_count -gt ${ac_path_SED_max-0}; then
5758      # Best one so far, save it but keep looking for a better one
5759      ac_cv_path_SED="$ac_path_SED"
5760      ac_path_SED_max=$ac_count
5761    fi
5762    # 10*(2^10) chars as input seems more than enough
5763    test $ac_count -gt 10 && break
5764  done
5765  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5766esac
5767
5768      $ac_path_SED_found && break 3
5769    done
5770  done
5771  done
5772IFS=$as_save_IFS
5773  if test -z "$ac_cv_path_SED"; then
5774    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5775  fi
5776else
5777  ac_cv_path_SED=$SED
5778fi
5779
5780fi
5781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5782$as_echo "$ac_cv_path_SED" >&6; }
5783 SED="$ac_cv_path_SED"
5784  rm -f conftest.sed
5785
5786test -z "$SED" && SED=sed
5787Xsed="$SED -e 1s/^X//"
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5800$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5801if ${ac_cv_path_GREP+:} false; then :
5802  $as_echo_n "(cached) " >&6
5803else
5804  if test -z "$GREP"; then
5805  ac_path_GREP_found=false
5806  # Loop through the user's path and test for each of PROGNAME-LIST
5807  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5809do
5810  IFS=$as_save_IFS
5811  test -z "$as_dir" && as_dir=.
5812    for ac_prog in grep ggrep; do
5813    for ac_exec_ext in '' $ac_executable_extensions; do
5814      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5815      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5816# Check for GNU ac_path_GREP and select it if it is found.
5817  # Check for GNU $ac_path_GREP
5818case `"$ac_path_GREP" --version 2>&1` in
5819*GNU*)
5820  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5821*)
5822  ac_count=0
5823  $as_echo_n 0123456789 >"conftest.in"
5824  while :
5825  do
5826    cat "conftest.in" "conftest.in" >"conftest.tmp"
5827    mv "conftest.tmp" "conftest.in"
5828    cp "conftest.in" "conftest.nl"
5829    $as_echo 'GREP' >> "conftest.nl"
5830    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5831    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5832    as_fn_arith $ac_count + 1 && ac_count=$as_val
5833    if test $ac_count -gt ${ac_path_GREP_max-0}; then
5834      # Best one so far, save it but keep looking for a better one
5835      ac_cv_path_GREP="$ac_path_GREP"
5836      ac_path_GREP_max=$ac_count
5837    fi
5838    # 10*(2^10) chars as input seems more than enough
5839    test $ac_count -gt 10 && break
5840  done
5841  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5842esac
5843
5844      $ac_path_GREP_found && break 3
5845    done
5846  done
5847  done
5848IFS=$as_save_IFS
5849  if test -z "$ac_cv_path_GREP"; then
5850    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5851  fi
5852else
5853  ac_cv_path_GREP=$GREP
5854fi
5855
5856fi
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5858$as_echo "$ac_cv_path_GREP" >&6; }
5859 GREP="$ac_cv_path_GREP"
5860
5861
5862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5863$as_echo_n "checking for egrep... " >&6; }
5864if ${ac_cv_path_EGREP+:} false; then :
5865  $as_echo_n "(cached) " >&6
5866else
5867  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5868   then ac_cv_path_EGREP="$GREP -E"
5869   else
5870     if test -z "$EGREP"; then
5871  ac_path_EGREP_found=false
5872  # Loop through the user's path and test for each of PROGNAME-LIST
5873  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5874for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5875do
5876  IFS=$as_save_IFS
5877  test -z "$as_dir" && as_dir=.
5878    for ac_prog in egrep; do
5879    for ac_exec_ext in '' $ac_executable_extensions; do
5880      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5881      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5882# Check for GNU ac_path_EGREP and select it if it is found.
5883  # Check for GNU $ac_path_EGREP
5884case `"$ac_path_EGREP" --version 2>&1` in
5885*GNU*)
5886  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5887*)
5888  ac_count=0
5889  $as_echo_n 0123456789 >"conftest.in"
5890  while :
5891  do
5892    cat "conftest.in" "conftest.in" >"conftest.tmp"
5893    mv "conftest.tmp" "conftest.in"
5894    cp "conftest.in" "conftest.nl"
5895    $as_echo 'EGREP' >> "conftest.nl"
5896    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898    as_fn_arith $ac_count + 1 && ac_count=$as_val
5899    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5900      # Best one so far, save it but keep looking for a better one
5901      ac_cv_path_EGREP="$ac_path_EGREP"
5902      ac_path_EGREP_max=$ac_count
5903    fi
5904    # 10*(2^10) chars as input seems more than enough
5905    test $ac_count -gt 10 && break
5906  done
5907  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5908esac
5909
5910      $ac_path_EGREP_found && break 3
5911    done
5912  done
5913  done
5914IFS=$as_save_IFS
5915  if test -z "$ac_cv_path_EGREP"; then
5916    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5917  fi
5918else
5919  ac_cv_path_EGREP=$EGREP
5920fi
5921
5922   fi
5923fi
5924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5925$as_echo "$ac_cv_path_EGREP" >&6; }
5926 EGREP="$ac_cv_path_EGREP"
5927
5928
5929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5930$as_echo_n "checking for fgrep... " >&6; }
5931if ${ac_cv_path_FGREP+:} false; then :
5932  $as_echo_n "(cached) " >&6
5933else
5934  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5935   then ac_cv_path_FGREP="$GREP -F"
5936   else
5937     if test -z "$FGREP"; then
5938  ac_path_FGREP_found=false
5939  # Loop through the user's path and test for each of PROGNAME-LIST
5940  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5942do
5943  IFS=$as_save_IFS
5944  test -z "$as_dir" && as_dir=.
5945    for ac_prog in fgrep; do
5946    for ac_exec_ext in '' $ac_executable_extensions; do
5947      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5948      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5949# Check for GNU ac_path_FGREP and select it if it is found.
5950  # Check for GNU $ac_path_FGREP
5951case `"$ac_path_FGREP" --version 2>&1` in
5952*GNU*)
5953  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5954*)
5955  ac_count=0
5956  $as_echo_n 0123456789 >"conftest.in"
5957  while :
5958  do
5959    cat "conftest.in" "conftest.in" >"conftest.tmp"
5960    mv "conftest.tmp" "conftest.in"
5961    cp "conftest.in" "conftest.nl"
5962    $as_echo 'FGREP' >> "conftest.nl"
5963    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5964    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5965    as_fn_arith $ac_count + 1 && ac_count=$as_val
5966    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5967      # Best one so far, save it but keep looking for a better one
5968      ac_cv_path_FGREP="$ac_path_FGREP"
5969      ac_path_FGREP_max=$ac_count
5970    fi
5971    # 10*(2^10) chars as input seems more than enough
5972    test $ac_count -gt 10 && break
5973  done
5974  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5975esac
5976
5977      $ac_path_FGREP_found && break 3
5978    done
5979  done
5980  done
5981IFS=$as_save_IFS
5982  if test -z "$ac_cv_path_FGREP"; then
5983    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5984  fi
5985else
5986  ac_cv_path_FGREP=$FGREP
5987fi
5988
5989   fi
5990fi
5991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5992$as_echo "$ac_cv_path_FGREP" >&6; }
5993 FGREP="$ac_cv_path_FGREP"
5994
5995
5996test -z "$GREP" && GREP=grep
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016# Check whether --with-gnu-ld was given.
6017if test "${with_gnu_ld+set}" = set; then :
6018  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6019else
6020  with_gnu_ld=no
6021fi
6022
6023ac_prog=ld
6024if test "$GCC" = yes; then
6025  # Check if gcc -print-prog-name=ld gives a path.
6026  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6027$as_echo_n "checking for ld used by $CC... " >&6; }
6028  case $host in
6029  *-*-mingw*)
6030    # gcc leaves a trailing carriage return which upsets mingw
6031    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6032  *)
6033    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6034  esac
6035  case $ac_prog in
6036    # Accept absolute paths.
6037    [\\/]* | ?:[\\/]*)
6038      re_direlt='/[^/][^/]*/\.\./'
6039      # Canonicalize the pathname of ld
6040      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6041      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6042	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6043      done
6044      test -z "$LD" && LD="$ac_prog"
6045      ;;
6046  "")
6047    # If it fails, then pretend we aren't using GCC.
6048    ac_prog=ld
6049    ;;
6050  *)
6051    # If it is relative, then search for the first ld in PATH.
6052    with_gnu_ld=unknown
6053    ;;
6054  esac
6055elif test "$with_gnu_ld" = yes; then
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6057$as_echo_n "checking for GNU ld... " >&6; }
6058else
6059  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6060$as_echo_n "checking for non-GNU ld... " >&6; }
6061fi
6062if ${lt_cv_path_LD+:} false; then :
6063  $as_echo_n "(cached) " >&6
6064else
6065  if test -z "$LD"; then
6066  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6067  for ac_dir in $PATH; do
6068    IFS="$lt_save_ifs"
6069    test -z "$ac_dir" && ac_dir=.
6070    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6071      lt_cv_path_LD="$ac_dir/$ac_prog"
6072      # Check to see if the program is GNU ld.  I'd rather use --version,
6073      # but apparently some variants of GNU ld only accept -v.
6074      # Break only if it was the GNU/non-GNU ld that we prefer.
6075      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6076      *GNU* | *'with BFD'*)
6077	test "$with_gnu_ld" != no && break
6078	;;
6079      *)
6080	test "$with_gnu_ld" != yes && break
6081	;;
6082      esac
6083    fi
6084  done
6085  IFS="$lt_save_ifs"
6086else
6087  lt_cv_path_LD="$LD" # Let the user override the test with a path.
6088fi
6089fi
6090
6091LD="$lt_cv_path_LD"
6092if test -n "$LD"; then
6093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6094$as_echo "$LD" >&6; }
6095else
6096  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097$as_echo "no" >&6; }
6098fi
6099test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6101$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6102if ${lt_cv_prog_gnu_ld+:} false; then :
6103  $as_echo_n "(cached) " >&6
6104else
6105  # I'd rather use --version here, but apparently some GNU lds only accept -v.
6106case `$LD -v 2>&1 </dev/null` in
6107*GNU* | *'with BFD'*)
6108  lt_cv_prog_gnu_ld=yes
6109  ;;
6110*)
6111  lt_cv_prog_gnu_ld=no
6112  ;;
6113esac
6114fi
6115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6116$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6117with_gnu_ld=$lt_cv_prog_gnu_ld
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6128$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6129if ${lt_cv_path_NM+:} false; then :
6130  $as_echo_n "(cached) " >&6
6131else
6132  if test -n "$NM"; then
6133  # Let the user override the test.
6134  lt_cv_path_NM="$NM"
6135else
6136  lt_nm_to_check="${ac_tool_prefix}nm"
6137  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6138    lt_nm_to_check="$lt_nm_to_check nm"
6139  fi
6140  for lt_tmp_nm in $lt_nm_to_check; do
6141    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6142    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6143      IFS="$lt_save_ifs"
6144      test -z "$ac_dir" && ac_dir=.
6145      tmp_nm="$ac_dir/$lt_tmp_nm"
6146      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6147	# Check to see if the nm accepts a BSD-compat flag.
6148	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6149	#   nm: unknown option "B" ignored
6150	# Tru64's nm complains that /dev/null is an invalid object file
6151	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6152	*/dev/null* | *'Invalid file or object type'*)
6153	  lt_cv_path_NM="$tmp_nm -B"
6154	  break
6155	  ;;
6156	*)
6157	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6158	  */dev/null*)
6159	    lt_cv_path_NM="$tmp_nm -p"
6160	    break
6161	    ;;
6162	  *)
6163	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6164	    continue # so that we can try to find one that supports BSD flags
6165	    ;;
6166	  esac
6167	  ;;
6168	esac
6169      fi
6170    done
6171    IFS="$lt_save_ifs"
6172  done
6173  : ${lt_cv_path_NM=no}
6174fi
6175fi
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6177$as_echo "$lt_cv_path_NM" >&6; }
6178if test "$lt_cv_path_NM" != "no"; then
6179  NM="$lt_cv_path_NM"
6180else
6181  # Didn't find any BSD compatible name lister, look for dumpbin.
6182  if test -n "$DUMPBIN"; then :
6183    # Let the user override the test.
6184  else
6185    if test -n "$ac_tool_prefix"; then
6186  for ac_prog in dumpbin "link -dump"
6187  do
6188    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6189set dummy $ac_tool_prefix$ac_prog; 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_DUMPBIN+:} false; then :
6193  $as_echo_n "(cached) " >&6
6194else
6195  if test -n "$DUMPBIN"; then
6196  ac_cv_prog_DUMPBIN="$DUMPBIN" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6205    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
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
6215DUMPBIN=$ac_cv_prog_DUMPBIN
6216if test -n "$DUMPBIN"; then
6217  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6218$as_echo "$DUMPBIN" >&6; }
6219else
6220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6221$as_echo "no" >&6; }
6222fi
6223
6224
6225    test -n "$DUMPBIN" && break
6226  done
6227fi
6228if test -z "$DUMPBIN"; then
6229  ac_ct_DUMPBIN=$DUMPBIN
6230  for ac_prog in dumpbin "link -dump"
6231do
6232  # Extract the first word of "$ac_prog", so it can be a program name with args.
6233set dummy $ac_prog; ac_word=$2
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235$as_echo_n "checking for $ac_word... " >&6; }
6236if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6237  $as_echo_n "(cached) " >&6
6238else
6239  if test -n "$ac_ct_DUMPBIN"; then
6240  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6241else
6242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243for as_dir in $PATH
6244do
6245  IFS=$as_save_IFS
6246  test -z "$as_dir" && as_dir=.
6247    for ac_exec_ext in '' $ac_executable_extensions; do
6248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251    break 2
6252  fi
6253done
6254  done
6255IFS=$as_save_IFS
6256
6257fi
6258fi
6259ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6260if test -n "$ac_ct_DUMPBIN"; then
6261  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6262$as_echo "$ac_ct_DUMPBIN" >&6; }
6263else
6264  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265$as_echo "no" >&6; }
6266fi
6267
6268
6269  test -n "$ac_ct_DUMPBIN" && break
6270done
6271
6272  if test "x$ac_ct_DUMPBIN" = x; then
6273    DUMPBIN=":"
6274  else
6275    case $cross_compiling:$ac_tool_warned in
6276yes:)
6277{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6278$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6279ac_tool_warned=yes ;;
6280esac
6281    DUMPBIN=$ac_ct_DUMPBIN
6282  fi
6283fi
6284
6285    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6286    *COFF*)
6287      DUMPBIN="$DUMPBIN -symbols"
6288      ;;
6289    *)
6290      DUMPBIN=:
6291      ;;
6292    esac
6293  fi
6294
6295  if test "$DUMPBIN" != ":"; then
6296    NM="$DUMPBIN"
6297  fi
6298fi
6299test -z "$NM" && NM=nm
6300
6301
6302
6303
6304
6305
6306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6307$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6308if ${lt_cv_nm_interface+:} false; then :
6309  $as_echo_n "(cached) " >&6
6310else
6311  lt_cv_nm_interface="BSD nm"
6312  echo "int some_variable = 0;" > conftest.$ac_ext
6313  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6314  (eval "$ac_compile" 2>conftest.err)
6315  cat conftest.err >&5
6316  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6317  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6318  cat conftest.err >&5
6319  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6320  cat conftest.out >&5
6321  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6322    lt_cv_nm_interface="MS dumpbin"
6323  fi
6324  rm -f conftest*
6325fi
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6327$as_echo "$lt_cv_nm_interface" >&6; }
6328
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6330$as_echo_n "checking whether ln -s works... " >&6; }
6331LN_S=$as_ln_s
6332if test "$LN_S" = "ln -s"; then
6333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6334$as_echo "yes" >&6; }
6335else
6336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6337$as_echo "no, using $LN_S" >&6; }
6338fi
6339
6340# find the maximum length of command line arguments
6341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6342$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6343if ${lt_cv_sys_max_cmd_len+:} false; then :
6344  $as_echo_n "(cached) " >&6
6345else
6346    i=0
6347  teststring="ABCD"
6348
6349  case $build_os in
6350  msdosdjgpp*)
6351    # On DJGPP, this test can blow up pretty badly due to problems in libc
6352    # (any single argument exceeding 2000 bytes causes a buffer overrun
6353    # during glob expansion).  Even if it were fixed, the result of this
6354    # check would be larger than it should be.
6355    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6356    ;;
6357
6358  gnu*)
6359    # Under GNU Hurd, this test is not required because there is
6360    # no limit to the length of command line arguments.
6361    # Libtool will interpret -1 as no limit whatsoever
6362    lt_cv_sys_max_cmd_len=-1;
6363    ;;
6364
6365  cygwin* | mingw* | cegcc*)
6366    # On Win9x/ME, this test blows up -- it succeeds, but takes
6367    # about 5 minutes as the teststring grows exponentially.
6368    # Worse, since 9x/ME are not pre-emptively multitasking,
6369    # you end up with a "frozen" computer, even though with patience
6370    # the test eventually succeeds (with a max line length of 256k).
6371    # Instead, let's just punt: use the minimum linelength reported by
6372    # all of the supported platforms: 8192 (on NT/2K/XP).
6373    lt_cv_sys_max_cmd_len=8192;
6374    ;;
6375
6376  mint*)
6377    # On MiNT this can take a long time and run out of memory.
6378    lt_cv_sys_max_cmd_len=8192;
6379    ;;
6380
6381  amigaos*)
6382    # On AmigaOS with pdksh, this test takes hours, literally.
6383    # So we just punt and use a minimum line length of 8192.
6384    lt_cv_sys_max_cmd_len=8192;
6385    ;;
6386
6387  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6388    # This has been around since 386BSD, at least.  Likely further.
6389    if test -x /sbin/sysctl; then
6390      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6391    elif test -x /usr/sbin/sysctl; then
6392      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6393    else
6394      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
6395    fi
6396    # And add a safety zone
6397    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6398    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6399    ;;
6400
6401  interix*)
6402    # We know the value 262144 and hardcode it with a safety zone (like BSD)
6403    lt_cv_sys_max_cmd_len=196608
6404    ;;
6405
6406  osf*)
6407    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6408    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6409    # nice to cause kernel panics so lets avoid the loop below.
6410    # First set a reasonable default.
6411    lt_cv_sys_max_cmd_len=16384
6412    #
6413    if test -x /sbin/sysconfig; then
6414      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6415        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6416      esac
6417    fi
6418    ;;
6419  sco3.2v5*)
6420    lt_cv_sys_max_cmd_len=102400
6421    ;;
6422  sysv5* | sco5v6* | sysv4.2uw2*)
6423    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6424    if test -n "$kargmax"; then
6425      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6426    else
6427      lt_cv_sys_max_cmd_len=32768
6428    fi
6429    ;;
6430  *)
6431    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6432    if test -n "$lt_cv_sys_max_cmd_len"; then
6433      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6434      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6435    else
6436      # Make teststring a little bigger before we do anything with it.
6437      # a 1K string should be a reasonable start.
6438      for i in 1 2 3 4 5 6 7 8 ; do
6439        teststring=$teststring$teststring
6440      done
6441      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6442      # If test is not a shell built-in, we'll probably end up computing a
6443      # maximum length that is only half of the actual maximum length, but
6444      # we can't tell.
6445      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6446	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6447	      test $i != 17 # 1/2 MB should be enough
6448      do
6449        i=`expr $i + 1`
6450        teststring=$teststring$teststring
6451      done
6452      # Only check the string length outside the loop.
6453      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6454      teststring=
6455      # Add a significant safety factor because C++ compilers can tack on
6456      # massive amounts of additional arguments before passing them to the
6457      # linker.  It appears as though 1/2 is a usable value.
6458      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6459    fi
6460    ;;
6461  esac
6462
6463fi
6464
6465if test -n $lt_cv_sys_max_cmd_len ; then
6466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6467$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6468else
6469  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6470$as_echo "none" >&6; }
6471fi
6472max_cmd_len=$lt_cv_sys_max_cmd_len
6473
6474
6475
6476
6477
6478
6479: ${CP="cp -f"}
6480: ${MV="mv -f"}
6481: ${RM="rm -f"}
6482
6483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6484$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6485# Try some XSI features
6486xsi_shell=no
6487( _lt_dummy="a/b/c"
6488  test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6489      = c,a/b,b/c, \
6490    && eval 'test $(( 1 + 1 )) -eq 2 \
6491    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6492  && xsi_shell=yes
6493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6494$as_echo "$xsi_shell" >&6; }
6495
6496
6497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6498$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6499lt_shell_append=no
6500( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6501    >/dev/null 2>&1 \
6502  && lt_shell_append=yes
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6504$as_echo "$lt_shell_append" >&6; }
6505
6506
6507if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6508  lt_unset=unset
6509else
6510  lt_unset=false
6511fi
6512
6513
6514
6515
6516
6517# test EBCDIC or ASCII
6518case `echo X|tr X '\101'` in
6519 A) # ASCII based system
6520    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6521  lt_SP2NL='tr \040 \012'
6522  lt_NL2SP='tr \015\012 \040\040'
6523  ;;
6524 *) # EBCDIC based system
6525  lt_SP2NL='tr \100 \n'
6526  lt_NL2SP='tr \r\n \100\100'
6527  ;;
6528esac
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6539$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6540if ${lt_cv_to_host_file_cmd+:} false; then :
6541  $as_echo_n "(cached) " >&6
6542else
6543  case $host in
6544  *-*-mingw* )
6545    case $build in
6546      *-*-mingw* ) # actually msys
6547        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6548        ;;
6549      *-*-cygwin* )
6550        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6551        ;;
6552      * ) # otherwise, assume *nix
6553        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6554        ;;
6555    esac
6556    ;;
6557  *-*-cygwin* )
6558    case $build in
6559      *-*-mingw* ) # actually msys
6560        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6561        ;;
6562      *-*-cygwin* )
6563        lt_cv_to_host_file_cmd=func_convert_file_noop
6564        ;;
6565      * ) # otherwise, assume *nix
6566        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6567        ;;
6568    esac
6569    ;;
6570  * ) # unhandled hosts (and "normal" native builds)
6571    lt_cv_to_host_file_cmd=func_convert_file_noop
6572    ;;
6573esac
6574
6575fi
6576
6577to_host_file_cmd=$lt_cv_to_host_file_cmd
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6579$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6580
6581
6582
6583
6584
6585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6586$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6587if ${lt_cv_to_tool_file_cmd+:} false; then :
6588  $as_echo_n "(cached) " >&6
6589else
6590  #assume ordinary cross tools, or native build.
6591lt_cv_to_tool_file_cmd=func_convert_file_noop
6592case $host in
6593  *-*-mingw* )
6594    case $build in
6595      *-*-mingw* ) # actually msys
6596        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6597        ;;
6598    esac
6599    ;;
6600esac
6601
6602fi
6603
6604to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6606$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6607
6608
6609
6610
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6613$as_echo_n "checking for $LD option to reload object files... " >&6; }
6614if ${lt_cv_ld_reload_flag+:} false; then :
6615  $as_echo_n "(cached) " >&6
6616else
6617  lt_cv_ld_reload_flag='-r'
6618fi
6619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6620$as_echo "$lt_cv_ld_reload_flag" >&6; }
6621reload_flag=$lt_cv_ld_reload_flag
6622case $reload_flag in
6623"" | " "*) ;;
6624*) reload_flag=" $reload_flag" ;;
6625esac
6626reload_cmds='$LD$reload_flag -o $output$reload_objs'
6627case $host_os in
6628  cygwin* | mingw* | pw32* | cegcc*)
6629    if test "$GCC" != yes; then
6630      reload_cmds=false
6631    fi
6632    ;;
6633  darwin*)
6634    if test "$GCC" = yes; then
6635      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6636    else
6637      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6638    fi
6639    ;;
6640esac
6641
6642
6643
6644
6645
6646
6647
6648
6649
6650if test -n "$ac_tool_prefix"; then
6651  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6652set dummy ${ac_tool_prefix}objdump; ac_word=$2
6653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654$as_echo_n "checking for $ac_word... " >&6; }
6655if ${ac_cv_prog_OBJDUMP+:} false; then :
6656  $as_echo_n "(cached) " >&6
6657else
6658  if test -n "$OBJDUMP"; then
6659  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6660else
6661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6662for as_dir in $PATH
6663do
6664  IFS=$as_save_IFS
6665  test -z "$as_dir" && as_dir=.
6666    for ac_exec_ext in '' $ac_executable_extensions; do
6667  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6668    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6669    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6670    break 2
6671  fi
6672done
6673  done
6674IFS=$as_save_IFS
6675
6676fi
6677fi
6678OBJDUMP=$ac_cv_prog_OBJDUMP
6679if test -n "$OBJDUMP"; then
6680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6681$as_echo "$OBJDUMP" >&6; }
6682else
6683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6684$as_echo "no" >&6; }
6685fi
6686
6687
6688fi
6689if test -z "$ac_cv_prog_OBJDUMP"; then
6690  ac_ct_OBJDUMP=$OBJDUMP
6691  # Extract the first word of "objdump", so it can be a program name with args.
6692set dummy objdump; ac_word=$2
6693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6694$as_echo_n "checking for $ac_word... " >&6; }
6695if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6696  $as_echo_n "(cached) " >&6
6697else
6698  if test -n "$ac_ct_OBJDUMP"; then
6699  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6700else
6701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6702for as_dir in $PATH
6703do
6704  IFS=$as_save_IFS
6705  test -z "$as_dir" && as_dir=.
6706    for ac_exec_ext in '' $ac_executable_extensions; do
6707  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6708    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6709    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710    break 2
6711  fi
6712done
6713  done
6714IFS=$as_save_IFS
6715
6716fi
6717fi
6718ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6719if test -n "$ac_ct_OBJDUMP"; then
6720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6721$as_echo "$ac_ct_OBJDUMP" >&6; }
6722else
6723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6724$as_echo "no" >&6; }
6725fi
6726
6727  if test "x$ac_ct_OBJDUMP" = x; then
6728    OBJDUMP="false"
6729  else
6730    case $cross_compiling:$ac_tool_warned in
6731yes:)
6732{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6733$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6734ac_tool_warned=yes ;;
6735esac
6736    OBJDUMP=$ac_ct_OBJDUMP
6737  fi
6738else
6739  OBJDUMP="$ac_cv_prog_OBJDUMP"
6740fi
6741
6742test -z "$OBJDUMP" && OBJDUMP=objdump
6743
6744
6745
6746
6747
6748
6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6750$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6751if ${lt_cv_deplibs_check_method+:} false; then :
6752  $as_echo_n "(cached) " >&6
6753else
6754  lt_cv_file_magic_cmd='$MAGIC_CMD'
6755lt_cv_file_magic_test_file=
6756lt_cv_deplibs_check_method='unknown'
6757# Need to set the preceding variable on all platforms that support
6758# interlibrary dependencies.
6759# 'none' -- dependencies not supported.
6760# `unknown' -- same as none, but documents that we really don't know.
6761# 'pass_all' -- all dependencies passed with no checks.
6762# 'test_compile' -- check by making test program.
6763# 'file_magic [[regex]]' -- check by looking for files in library path
6764# which responds to the $file_magic_cmd with a given extended regex.
6765# If you have `file' or equivalent on your system and you're not sure
6766# whether `pass_all' will *always* work, you probably want this one.
6767
6768case $host_os in
6769aix[4-9]*)
6770  lt_cv_deplibs_check_method=pass_all
6771  ;;
6772
6773beos*)
6774  lt_cv_deplibs_check_method=pass_all
6775  ;;
6776
6777bsdi[45]*)
6778  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6779  lt_cv_file_magic_cmd='/usr/bin/file -L'
6780  lt_cv_file_magic_test_file=/shlib/libc.so
6781  ;;
6782
6783cygwin*)
6784  # func_win32_libid is a shell function defined in ltmain.sh
6785  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6786  lt_cv_file_magic_cmd='func_win32_libid'
6787  ;;
6788
6789mingw* | pw32*)
6790  # Base MSYS/MinGW do not provide the 'file' command needed by
6791  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6792  # unless we find 'file', for example because we are cross-compiling.
6793  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6794  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6795    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6796    lt_cv_file_magic_cmd='func_win32_libid'
6797  else
6798    # Keep this pattern in sync with the one in func_win32_libid.
6799    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6800    lt_cv_file_magic_cmd='$OBJDUMP -f'
6801  fi
6802  ;;
6803
6804cegcc*)
6805  # use the weaker test based on 'objdump'. See mingw*.
6806  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6807  lt_cv_file_magic_cmd='$OBJDUMP -f'
6808  ;;
6809
6810darwin* | rhapsody*)
6811  lt_cv_deplibs_check_method=pass_all
6812  ;;
6813
6814freebsd* | dragonfly*)
6815  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6816    case $host_cpu in
6817    i*86 )
6818      # Not sure whether the presence of OpenBSD here was a mistake.
6819      # Let's accept both of them until this is cleared up.
6820      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6821      lt_cv_file_magic_cmd=/usr/bin/file
6822      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6823      ;;
6824    esac
6825  else
6826    lt_cv_deplibs_check_method=pass_all
6827  fi
6828  ;;
6829
6830gnu*)
6831  lt_cv_deplibs_check_method=pass_all
6832  ;;
6833
6834haiku*)
6835  lt_cv_deplibs_check_method=pass_all
6836  ;;
6837
6838hpux10.20* | hpux11*)
6839  lt_cv_file_magic_cmd=/usr/bin/file
6840  case $host_cpu in
6841  ia64*)
6842    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6843    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6844    ;;
6845  hppa*64*)
6846    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]'
6847    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6848    ;;
6849  *)
6850    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6851    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6852    ;;
6853  esac
6854  ;;
6855
6856interix[3-9]*)
6857  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6858  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6859  ;;
6860
6861irix5* | irix6* | nonstopux*)
6862  case $LD in
6863  *-32|*"-32 ") libmagic=32-bit;;
6864  *-n32|*"-n32 ") libmagic=N32;;
6865  *-64|*"-64 ") libmagic=64-bit;;
6866  *) libmagic=never-match;;
6867  esac
6868  lt_cv_deplibs_check_method=pass_all
6869  ;;
6870
6871# This must be Linux ELF.
6872linux* | k*bsd*-gnu | kopensolaris*-gnu)
6873  lt_cv_deplibs_check_method=pass_all
6874  ;;
6875
6876netbsd* | netbsdelf*-gnu)
6877  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6878    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6879  else
6880    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6881  fi
6882  ;;
6883
6884newos6*)
6885  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6886  lt_cv_file_magic_cmd=/usr/bin/file
6887  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6888  ;;
6889
6890*nto* | *qnx*)
6891  lt_cv_deplibs_check_method=pass_all
6892  ;;
6893
6894openbsd*)
6895  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6896    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6897  else
6898    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6899  fi
6900  ;;
6901
6902osf3* | osf4* | osf5*)
6903  lt_cv_deplibs_check_method=pass_all
6904  ;;
6905
6906rdos*)
6907  lt_cv_deplibs_check_method=pass_all
6908  ;;
6909
6910solaris*)
6911  lt_cv_deplibs_check_method=pass_all
6912  ;;
6913
6914sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6915  lt_cv_deplibs_check_method=pass_all
6916  ;;
6917
6918sysv4 | sysv4.3*)
6919  case $host_vendor in
6920  motorola)
6921    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]'
6922    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6923    ;;
6924  ncr)
6925    lt_cv_deplibs_check_method=pass_all
6926    ;;
6927  sequent)
6928    lt_cv_file_magic_cmd='/bin/file'
6929    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6930    ;;
6931  sni)
6932    lt_cv_file_magic_cmd='/bin/file'
6933    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6934    lt_cv_file_magic_test_file=/lib/libc.so
6935    ;;
6936  siemens)
6937    lt_cv_deplibs_check_method=pass_all
6938    ;;
6939  pc)
6940    lt_cv_deplibs_check_method=pass_all
6941    ;;
6942  esac
6943  ;;
6944
6945tpf*)
6946  lt_cv_deplibs_check_method=pass_all
6947  ;;
6948esac
6949
6950fi
6951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6952$as_echo "$lt_cv_deplibs_check_method" >&6; }
6953
6954file_magic_glob=
6955want_nocaseglob=no
6956if test "$build" = "$host"; then
6957  case $host_os in
6958  mingw* | pw32*)
6959    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6960      want_nocaseglob=yes
6961    else
6962      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6963    fi
6964    ;;
6965  esac
6966fi
6967
6968file_magic_cmd=$lt_cv_file_magic_cmd
6969deplibs_check_method=$lt_cv_deplibs_check_method
6970test -z "$deplibs_check_method" && deplibs_check_method=unknown
6971
6972
6973
6974
6975
6976
6977
6978
6979
6980
6981
6982
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993if test -n "$ac_tool_prefix"; then
6994  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6995set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6997$as_echo_n "checking for $ac_word... " >&6; }
6998if ${ac_cv_prog_DLLTOOL+:} false; then :
6999  $as_echo_n "(cached) " >&6
7000else
7001  if test -n "$DLLTOOL"; then
7002  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7003else
7004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7005for as_dir in $PATH
7006do
7007  IFS=$as_save_IFS
7008  test -z "$as_dir" && as_dir=.
7009    for ac_exec_ext in '' $ac_executable_extensions; do
7010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7011    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7013    break 2
7014  fi
7015done
7016  done
7017IFS=$as_save_IFS
7018
7019fi
7020fi
7021DLLTOOL=$ac_cv_prog_DLLTOOL
7022if test -n "$DLLTOOL"; then
7023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7024$as_echo "$DLLTOOL" >&6; }
7025else
7026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7027$as_echo "no" >&6; }
7028fi
7029
7030
7031fi
7032if test -z "$ac_cv_prog_DLLTOOL"; then
7033  ac_ct_DLLTOOL=$DLLTOOL
7034  # Extract the first word of "dlltool", so it can be a program name with args.
7035set dummy dlltool; ac_word=$2
7036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7037$as_echo_n "checking for $ac_word... " >&6; }
7038if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7039  $as_echo_n "(cached) " >&6
7040else
7041  if test -n "$ac_ct_DLLTOOL"; then
7042  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7043else
7044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7045for as_dir in $PATH
7046do
7047  IFS=$as_save_IFS
7048  test -z "$as_dir" && as_dir=.
7049    for ac_exec_ext in '' $ac_executable_extensions; do
7050  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7051    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7052    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7053    break 2
7054  fi
7055done
7056  done
7057IFS=$as_save_IFS
7058
7059fi
7060fi
7061ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7062if test -n "$ac_ct_DLLTOOL"; then
7063  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7064$as_echo "$ac_ct_DLLTOOL" >&6; }
7065else
7066  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7067$as_echo "no" >&6; }
7068fi
7069
7070  if test "x$ac_ct_DLLTOOL" = x; then
7071    DLLTOOL="false"
7072  else
7073    case $cross_compiling:$ac_tool_warned in
7074yes:)
7075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7077ac_tool_warned=yes ;;
7078esac
7079    DLLTOOL=$ac_ct_DLLTOOL
7080  fi
7081else
7082  DLLTOOL="$ac_cv_prog_DLLTOOL"
7083fi
7084
7085test -z "$DLLTOOL" && DLLTOOL=dlltool
7086
7087
7088
7089
7090
7091
7092
7093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7094$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7095if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7096  $as_echo_n "(cached) " >&6
7097else
7098  lt_cv_sharedlib_from_linklib_cmd='unknown'
7099
7100case $host_os in
7101cygwin* | mingw* | pw32* | cegcc*)
7102  # two different shell functions defined in ltmain.sh
7103  # decide which to use based on capabilities of $DLLTOOL
7104  case `$DLLTOOL --help 2>&1` in
7105  *--identify-strict*)
7106    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7107    ;;
7108  *)
7109    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7110    ;;
7111  esac
7112  ;;
7113*)
7114  # fallback: assume linklib IS sharedlib
7115  lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7116  ;;
7117esac
7118
7119fi
7120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7121$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7122sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7123test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7124
7125
7126
7127
7128
7129
7130
7131
7132if test -n "$ac_tool_prefix"; then
7133  for ac_prog in ar
7134  do
7135    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7136set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_AR+:} false; then :
7140  $as_echo_n "(cached) " >&6
7141else
7142  if test -n "$AR"; then
7143  ac_cv_prog_AR="$AR" # Let the user override the test.
7144else
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148  IFS=$as_save_IFS
7149  test -z "$as_dir" && as_dir=.
7150    for ac_exec_ext in '' $ac_executable_extensions; do
7151  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7153    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154    break 2
7155  fi
7156done
7157  done
7158IFS=$as_save_IFS
7159
7160fi
7161fi
7162AR=$ac_cv_prog_AR
7163if test -n "$AR"; then
7164  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7165$as_echo "$AR" >&6; }
7166else
7167  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
7169fi
7170
7171
7172    test -n "$AR" && break
7173  done
7174fi
7175if test -z "$AR"; then
7176  ac_ct_AR=$AR
7177  for ac_prog in ar
7178do
7179  # Extract the first word of "$ac_prog", so it can be a program name with args.
7180set dummy $ac_prog; ac_word=$2
7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7182$as_echo_n "checking for $ac_word... " >&6; }
7183if ${ac_cv_prog_ac_ct_AR+:} false; then :
7184  $as_echo_n "(cached) " >&6
7185else
7186  if test -n "$ac_ct_AR"; then
7187  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7188else
7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7190for as_dir in $PATH
7191do
7192  IFS=$as_save_IFS
7193  test -z "$as_dir" && as_dir=.
7194    for ac_exec_ext in '' $ac_executable_extensions; do
7195  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7196    ac_cv_prog_ac_ct_AR="$ac_prog"
7197    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7198    break 2
7199  fi
7200done
7201  done
7202IFS=$as_save_IFS
7203
7204fi
7205fi
7206ac_ct_AR=$ac_cv_prog_ac_ct_AR
7207if test -n "$ac_ct_AR"; then
7208  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7209$as_echo "$ac_ct_AR" >&6; }
7210else
7211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7212$as_echo "no" >&6; }
7213fi
7214
7215
7216  test -n "$ac_ct_AR" && break
7217done
7218
7219  if test "x$ac_ct_AR" = x; then
7220    AR="false"
7221  else
7222    case $cross_compiling:$ac_tool_warned in
7223yes:)
7224{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7226ac_tool_warned=yes ;;
7227esac
7228    AR=$ac_ct_AR
7229  fi
7230fi
7231
7232: ${AR=ar}
7233: ${AR_FLAGS=cru}
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7246$as_echo_n "checking for archiver @FILE support... " >&6; }
7247if ${lt_cv_ar_at_file+:} false; then :
7248  $as_echo_n "(cached) " >&6
7249else
7250  lt_cv_ar_at_file=no
7251   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7252/* end confdefs.h.  */
7253
7254int
7255main ()
7256{
7257
7258  ;
7259  return 0;
7260}
7261_ACEOF
7262if ac_fn_c_try_compile "$LINENO"; then :
7263  echo conftest.$ac_objext > conftest.lst
7264      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7265      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7266  (eval $lt_ar_try) 2>&5
7267  ac_status=$?
7268  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269  test $ac_status = 0; }
7270      if test "$ac_status" -eq 0; then
7271	# Ensure the archiver fails upon bogus file names.
7272	rm -f conftest.$ac_objext libconftest.a
7273	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7274  (eval $lt_ar_try) 2>&5
7275  ac_status=$?
7276  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7277  test $ac_status = 0; }
7278	if test "$ac_status" -ne 0; then
7279          lt_cv_ar_at_file=@
7280        fi
7281      fi
7282      rm -f conftest.* libconftest.a
7283
7284fi
7285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286
7287fi
7288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7289$as_echo "$lt_cv_ar_at_file" >&6; }
7290
7291if test "x$lt_cv_ar_at_file" = xno; then
7292  archiver_list_spec=
7293else
7294  archiver_list_spec=$lt_cv_ar_at_file
7295fi
7296
7297
7298
7299
7300
7301
7302
7303if test -n "$ac_tool_prefix"; then
7304  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7305set dummy ${ac_tool_prefix}strip; ac_word=$2
7306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307$as_echo_n "checking for $ac_word... " >&6; }
7308if ${ac_cv_prog_STRIP+:} false; then :
7309  $as_echo_n "(cached) " >&6
7310else
7311  if test -n "$STRIP"; then
7312  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7313else
7314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315for as_dir in $PATH
7316do
7317  IFS=$as_save_IFS
7318  test -z "$as_dir" && as_dir=.
7319    for ac_exec_ext in '' $ac_executable_extensions; do
7320  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7321    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7322    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323    break 2
7324  fi
7325done
7326  done
7327IFS=$as_save_IFS
7328
7329fi
7330fi
7331STRIP=$ac_cv_prog_STRIP
7332if test -n "$STRIP"; then
7333  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7334$as_echo "$STRIP" >&6; }
7335else
7336  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337$as_echo "no" >&6; }
7338fi
7339
7340
7341fi
7342if test -z "$ac_cv_prog_STRIP"; then
7343  ac_ct_STRIP=$STRIP
7344  # Extract the first word of "strip", so it can be a program name with args.
7345set dummy strip; ac_word=$2
7346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347$as_echo_n "checking for $ac_word... " >&6; }
7348if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7349  $as_echo_n "(cached) " >&6
7350else
7351  if test -n "$ac_ct_STRIP"; then
7352  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7353else
7354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355for as_dir in $PATH
7356do
7357  IFS=$as_save_IFS
7358  test -z "$as_dir" && as_dir=.
7359    for ac_exec_ext in '' $ac_executable_extensions; do
7360  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7361    ac_cv_prog_ac_ct_STRIP="strip"
7362    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363    break 2
7364  fi
7365done
7366  done
7367IFS=$as_save_IFS
7368
7369fi
7370fi
7371ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7372if test -n "$ac_ct_STRIP"; then
7373  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7374$as_echo "$ac_ct_STRIP" >&6; }
7375else
7376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377$as_echo "no" >&6; }
7378fi
7379
7380  if test "x$ac_ct_STRIP" = x; then
7381    STRIP=":"
7382  else
7383    case $cross_compiling:$ac_tool_warned in
7384yes:)
7385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387ac_tool_warned=yes ;;
7388esac
7389    STRIP=$ac_ct_STRIP
7390  fi
7391else
7392  STRIP="$ac_cv_prog_STRIP"
7393fi
7394
7395test -z "$STRIP" && STRIP=:
7396
7397
7398
7399
7400
7401
7402if test -n "$ac_tool_prefix"; then
7403  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7404set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7405{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406$as_echo_n "checking for $ac_word... " >&6; }
7407if ${ac_cv_prog_RANLIB+:} false; then :
7408  $as_echo_n "(cached) " >&6
7409else
7410  if test -n "$RANLIB"; then
7411  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7412else
7413as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414for as_dir in $PATH
7415do
7416  IFS=$as_save_IFS
7417  test -z "$as_dir" && as_dir=.
7418    for ac_exec_ext in '' $ac_executable_extensions; do
7419  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7420    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7421    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422    break 2
7423  fi
7424done
7425  done
7426IFS=$as_save_IFS
7427
7428fi
7429fi
7430RANLIB=$ac_cv_prog_RANLIB
7431if test -n "$RANLIB"; then
7432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7433$as_echo "$RANLIB" >&6; }
7434else
7435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436$as_echo "no" >&6; }
7437fi
7438
7439
7440fi
7441if test -z "$ac_cv_prog_RANLIB"; then
7442  ac_ct_RANLIB=$RANLIB
7443  # Extract the first word of "ranlib", so it can be a program name with args.
7444set dummy ranlib; ac_word=$2
7445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446$as_echo_n "checking for $ac_word... " >&6; }
7447if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7448  $as_echo_n "(cached) " >&6
7449else
7450  if test -n "$ac_ct_RANLIB"; then
7451  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7452else
7453as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454for as_dir in $PATH
7455do
7456  IFS=$as_save_IFS
7457  test -z "$as_dir" && as_dir=.
7458    for ac_exec_ext in '' $ac_executable_extensions; do
7459  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7460    ac_cv_prog_ac_ct_RANLIB="ranlib"
7461    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462    break 2
7463  fi
7464done
7465  done
7466IFS=$as_save_IFS
7467
7468fi
7469fi
7470ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7471if test -n "$ac_ct_RANLIB"; then
7472  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7473$as_echo "$ac_ct_RANLIB" >&6; }
7474else
7475  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476$as_echo "no" >&6; }
7477fi
7478
7479  if test "x$ac_ct_RANLIB" = x; then
7480    RANLIB=":"
7481  else
7482    case $cross_compiling:$ac_tool_warned in
7483yes:)
7484{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486ac_tool_warned=yes ;;
7487esac
7488    RANLIB=$ac_ct_RANLIB
7489  fi
7490else
7491  RANLIB="$ac_cv_prog_RANLIB"
7492fi
7493
7494test -z "$RANLIB" && RANLIB=:
7495
7496
7497
7498
7499
7500
7501# Determine commands to create old-style static archives.
7502old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7503old_postinstall_cmds='chmod 644 $oldlib'
7504old_postuninstall_cmds=
7505
7506if test -n "$RANLIB"; then
7507  case $host_os in
7508  openbsd*)
7509    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7510    ;;
7511  *)
7512    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7513    ;;
7514  esac
7515  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7516fi
7517
7518case $host_os in
7519  darwin*)
7520    lock_old_archive_extraction=yes ;;
7521  *)
7522    lock_old_archive_extraction=no ;;
7523esac
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561
7562
7563# If no C compiler was specified, use CC.
7564LTCC=${LTCC-"$CC"}
7565
7566# If no C compiler flags were specified, use CFLAGS.
7567LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7568
7569# Allow CC to be a program name with arguments.
7570compiler=$CC
7571
7572
7573# Check for command to grab the raw symbol name followed by C symbol from nm.
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7575$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7576if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7577  $as_echo_n "(cached) " >&6
7578else
7579
7580# These are sane defaults that work on at least a few old systems.
7581# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7582
7583# Character class describing NM global symbol codes.
7584symcode='[BCDEGRST]'
7585
7586# Regexp to match symbols that can be accessed directly from C.
7587sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7588
7589# Define system-specific variables.
7590case $host_os in
7591aix*)
7592  symcode='[BCDT]'
7593  ;;
7594cygwin* | mingw* | pw32* | cegcc*)
7595  symcode='[ABCDGISTW]'
7596  ;;
7597hpux*)
7598  if test "$host_cpu" = ia64; then
7599    symcode='[ABCDEGRST]'
7600  fi
7601  ;;
7602irix* | nonstopux*)
7603  symcode='[BCDEGRST]'
7604  ;;
7605osf*)
7606  symcode='[BCDEGQRST]'
7607  ;;
7608solaris*)
7609  symcode='[BDRT]'
7610  ;;
7611sco3.2v5*)
7612  symcode='[DT]'
7613  ;;
7614sysv4.2uw2*)
7615  symcode='[DT]'
7616  ;;
7617sysv5* | sco5v6* | unixware* | OpenUNIX*)
7618  symcode='[ABDT]'
7619  ;;
7620sysv4)
7621  symcode='[DFNSTU]'
7622  ;;
7623esac
7624
7625# If we're using GNU nm, then use its standard symbol codes.
7626case `$NM -V 2>&1` in
7627*GNU* | *'with BFD'*)
7628  symcode='[ABCDGIRSTW]' ;;
7629esac
7630
7631# Transform an extracted symbol line into a proper C declaration.
7632# Some systems (esp. on ia64) link data and code symbols differently,
7633# so use this general approach.
7634lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7635
7636# Transform an extracted symbol line into symbol name and symbol address
7637lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7638lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7639
7640# Handle CRLF in mingw tool chain
7641opt_cr=
7642case $build_os in
7643mingw*)
7644  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7645  ;;
7646esac
7647
7648# Try without a prefix underscore, then with it.
7649for ac_symprfx in "" "_"; do
7650
7651  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7652  symxfrm="\\1 $ac_symprfx\\2 \\2"
7653
7654  # Write the raw and C identifiers.
7655  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7656    # Fake it for dumpbin and say T for any non-static function
7657    # and D for any global variable.
7658    # Also find C++ and __fastcall symbols from MSVC++,
7659    # which start with @ or ?.
7660    lt_cv_sys_global_symbol_pipe="$AWK '"\
7661"     {last_section=section; section=\$ 3};"\
7662"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7663"     \$ 0!~/External *\|/{next};"\
7664"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7665"     {if(hide[section]) next};"\
7666"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7667"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7668"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7669"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7670"     ' prfx=^$ac_symprfx"
7671  else
7672    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7673  fi
7674  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7675
7676  # Check to see that the pipe works correctly.
7677  pipe_works=no
7678
7679  rm -f conftest*
7680  cat > conftest.$ac_ext <<_LT_EOF
7681#ifdef __cplusplus
7682extern "C" {
7683#endif
7684char nm_test_var;
7685void nm_test_func(void);
7686void nm_test_func(void){}
7687#ifdef __cplusplus
7688}
7689#endif
7690int main(){nm_test_var='a';nm_test_func();return(0);}
7691_LT_EOF
7692
7693  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694  (eval $ac_compile) 2>&5
7695  ac_status=$?
7696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697  test $ac_status = 0; }; then
7698    # Now try to grab the symbols.
7699    nlist=conftest.nm
7700    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7701  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7702  ac_status=$?
7703  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7704  test $ac_status = 0; } && test -s "$nlist"; then
7705      # Try sorting and uniquifying the output.
7706      if sort "$nlist" | uniq > "$nlist"T; then
7707	mv -f "$nlist"T "$nlist"
7708      else
7709	rm -f "$nlist"T
7710      fi
7711
7712      # Make sure that we snagged all the symbols we need.
7713      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7714	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7715	  cat <<_LT_EOF > conftest.$ac_ext
7716/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7717#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7718/* DATA imports from DLLs on WIN32 con't be const, because runtime
7719   relocations are performed -- see ld's documentation on pseudo-relocs.  */
7720# define LT_DLSYM_CONST
7721#elif defined(__osf__)
7722/* This system does not cope well with relocations in const data.  */
7723# define LT_DLSYM_CONST
7724#else
7725# define LT_DLSYM_CONST const
7726#endif
7727
7728#ifdef __cplusplus
7729extern "C" {
7730#endif
7731
7732_LT_EOF
7733	  # Now generate the symbol file.
7734	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7735
7736	  cat <<_LT_EOF >> conftest.$ac_ext
7737
7738/* The mapping between symbol names and symbols.  */
7739LT_DLSYM_CONST struct {
7740  const char *name;
7741  void       *address;
7742}
7743lt__PROGRAM__LTX_preloaded_symbols[] =
7744{
7745  { "@PROGRAM@", (void *) 0 },
7746_LT_EOF
7747	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7748	  cat <<\_LT_EOF >> conftest.$ac_ext
7749  {0, (void *) 0}
7750};
7751
7752/* This works around a problem in FreeBSD linker */
7753#ifdef FREEBSD_WORKAROUND
7754static const void *lt_preloaded_setup() {
7755  return lt__PROGRAM__LTX_preloaded_symbols;
7756}
7757#endif
7758
7759#ifdef __cplusplus
7760}
7761#endif
7762_LT_EOF
7763	  # Now try linking the two files.
7764	  mv conftest.$ac_objext conftstm.$ac_objext
7765	  lt_globsym_save_LIBS=$LIBS
7766	  lt_globsym_save_CFLAGS=$CFLAGS
7767	  LIBS="conftstm.$ac_objext"
7768	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7769	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7770  (eval $ac_link) 2>&5
7771  ac_status=$?
7772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7774	    pipe_works=yes
7775	  fi
7776	  LIBS=$lt_globsym_save_LIBS
7777	  CFLAGS=$lt_globsym_save_CFLAGS
7778	else
7779	  echo "cannot find nm_test_func in $nlist" >&5
7780	fi
7781      else
7782	echo "cannot find nm_test_var in $nlist" >&5
7783      fi
7784    else
7785      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7786    fi
7787  else
7788    echo "$progname: failed program was:" >&5
7789    cat conftest.$ac_ext >&5
7790  fi
7791  rm -rf conftest* conftst*
7792
7793  # Do not use the global_symbol_pipe unless it works.
7794  if test "$pipe_works" = yes; then
7795    break
7796  else
7797    lt_cv_sys_global_symbol_pipe=
7798  fi
7799done
7800
7801fi
7802
7803if test -z "$lt_cv_sys_global_symbol_pipe"; then
7804  lt_cv_sys_global_symbol_to_cdecl=
7805fi
7806if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7808$as_echo "failed" >&6; }
7809else
7810  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7811$as_echo "ok" >&6; }
7812fi
7813
7814# Response file support.
7815if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7816  nm_file_list_spec='@'
7817elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7818  nm_file_list_spec='@'
7819fi
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845
7846
7847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7848$as_echo_n "checking for sysroot... " >&6; }
7849
7850# Check whether --with-sysroot was given.
7851if test "${with_sysroot+set}" = set; then :
7852  withval=$with_sysroot;
7853else
7854  with_sysroot=no
7855fi
7856
7857
7858lt_sysroot=
7859case ${with_sysroot} in #(
7860 yes)
7861   if test "$GCC" = yes; then
7862     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7863   fi
7864   ;; #(
7865 /*)
7866   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7867   ;; #(
7868 no|'')
7869   ;; #(
7870 *)
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7872$as_echo "${with_sysroot}" >&6; }
7873   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7874   ;;
7875esac
7876
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7878$as_echo "${lt_sysroot:-no}" >&6; }
7879
7880
7881
7882
7883
7884# Check whether --enable-libtool-lock was given.
7885if test "${enable_libtool_lock+set}" = set; then :
7886  enableval=$enable_libtool_lock;
7887fi
7888
7889test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7890
7891# Some flags need to be propagated to the compiler or linker for good
7892# libtool support.
7893case $host in
7894ia64-*-hpux*)
7895  # Find out which ABI we are using.
7896  echo 'int i;' > conftest.$ac_ext
7897  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7898  (eval $ac_compile) 2>&5
7899  ac_status=$?
7900  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901  test $ac_status = 0; }; then
7902    case `/usr/bin/file conftest.$ac_objext` in
7903      *ELF-32*)
7904	HPUX_IA64_MODE="32"
7905	;;
7906      *ELF-64*)
7907	HPUX_IA64_MODE="64"
7908	;;
7909    esac
7910  fi
7911  rm -rf conftest*
7912  ;;
7913*-*-irix6*)
7914  # Find out which ABI we are using.
7915  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7916  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7917  (eval $ac_compile) 2>&5
7918  ac_status=$?
7919  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920  test $ac_status = 0; }; then
7921    if test "$lt_cv_prog_gnu_ld" = yes; then
7922      case `/usr/bin/file conftest.$ac_objext` in
7923	*32-bit*)
7924	  LD="${LD-ld} -melf32bsmip"
7925	  ;;
7926	*N32*)
7927	  LD="${LD-ld} -melf32bmipn32"
7928	  ;;
7929	*64-bit*)
7930	  LD="${LD-ld} -melf64bmip"
7931	;;
7932      esac
7933    else
7934      case `/usr/bin/file conftest.$ac_objext` in
7935	*32-bit*)
7936	  LD="${LD-ld} -32"
7937	  ;;
7938	*N32*)
7939	  LD="${LD-ld} -n32"
7940	  ;;
7941	*64-bit*)
7942	  LD="${LD-ld} -64"
7943	  ;;
7944      esac
7945    fi
7946  fi
7947  rm -rf conftest*
7948  ;;
7949
7950x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7951s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7952  # Find out which ABI we are using.
7953  echo 'int i;' > conftest.$ac_ext
7954  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7955  (eval $ac_compile) 2>&5
7956  ac_status=$?
7957  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7958  test $ac_status = 0; }; then
7959    case `/usr/bin/file conftest.o` in
7960      *32-bit*)
7961	case $host in
7962	  x86_64-*kfreebsd*-gnu)
7963	    LD="${LD-ld} -m elf_i386_fbsd"
7964	    ;;
7965	  x86_64-*linux*)
7966	    LD="${LD-ld} -m elf_i386"
7967	    ;;
7968	  ppc64-*linux*|powerpc64-*linux*)
7969	    LD="${LD-ld} -m elf32ppclinux"
7970	    ;;
7971	  s390x-*linux*)
7972	    LD="${LD-ld} -m elf_s390"
7973	    ;;
7974	  sparc64-*linux*)
7975	    LD="${LD-ld} -m elf32_sparc"
7976	    ;;
7977	esac
7978	;;
7979      *64-bit*)
7980	case $host in
7981	  x86_64-*kfreebsd*-gnu)
7982	    LD="${LD-ld} -m elf_x86_64_fbsd"
7983	    ;;
7984	  x86_64-*linux*)
7985	    LD="${LD-ld} -m elf_x86_64"
7986	    ;;
7987	  ppc*-*linux*|powerpc*-*linux*)
7988	    LD="${LD-ld} -m elf64ppc"
7989	    ;;
7990	  s390*-*linux*|s390*-*tpf*)
7991	    LD="${LD-ld} -m elf64_s390"
7992	    ;;
7993	  sparc*-*linux*)
7994	    LD="${LD-ld} -m elf64_sparc"
7995	    ;;
7996	esac
7997	;;
7998    esac
7999  fi
8000  rm -rf conftest*
8001  ;;
8002
8003*-*-sco3.2v5*)
8004  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8005  SAVE_CFLAGS="$CFLAGS"
8006  CFLAGS="$CFLAGS -belf"
8007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8008$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8009if ${lt_cv_cc_needs_belf+:} false; then :
8010  $as_echo_n "(cached) " >&6
8011else
8012  ac_ext=c
8013ac_cpp='$CPP $CPPFLAGS'
8014ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8015ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8016ac_compiler_gnu=$ac_cv_c_compiler_gnu
8017
8018     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h.  */
8020
8021int
8022main ()
8023{
8024
8025  ;
8026  return 0;
8027}
8028_ACEOF
8029if ac_fn_c_try_link "$LINENO"; then :
8030  lt_cv_cc_needs_belf=yes
8031else
8032  lt_cv_cc_needs_belf=no
8033fi
8034rm -f core conftest.err conftest.$ac_objext \
8035    conftest$ac_exeext conftest.$ac_ext
8036     ac_ext=c
8037ac_cpp='$CPP $CPPFLAGS'
8038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8040ac_compiler_gnu=$ac_cv_c_compiler_gnu
8041
8042fi
8043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8044$as_echo "$lt_cv_cc_needs_belf" >&6; }
8045  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8046    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8047    CFLAGS="$SAVE_CFLAGS"
8048  fi
8049  ;;
8050sparc*-*solaris*)
8051  # Find out which ABI we are using.
8052  echo 'int i;' > conftest.$ac_ext
8053  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8054  (eval $ac_compile) 2>&5
8055  ac_status=$?
8056  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8057  test $ac_status = 0; }; then
8058    case `/usr/bin/file conftest.o` in
8059    *64-bit*)
8060      case $lt_cv_prog_gnu_ld in
8061      yes*) LD="${LD-ld} -m elf64_sparc" ;;
8062      *)
8063	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8064	  LD="${LD-ld} -64"
8065	fi
8066	;;
8067      esac
8068      ;;
8069    esac
8070  fi
8071  rm -rf conftest*
8072  ;;
8073esac
8074
8075need_locks="$enable_libtool_lock"
8076
8077if test -n "$ac_tool_prefix"; then
8078  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8079set dummy ${ac_tool_prefix}mt; ac_word=$2
8080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081$as_echo_n "checking for $ac_word... " >&6; }
8082if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8083  $as_echo_n "(cached) " >&6
8084else
8085  if test -n "$MANIFEST_TOOL"; then
8086  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8087else
8088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089for as_dir in $PATH
8090do
8091  IFS=$as_save_IFS
8092  test -z "$as_dir" && as_dir=.
8093    for ac_exec_ext in '' $ac_executable_extensions; do
8094  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8095    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8096    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097    break 2
8098  fi
8099done
8100  done
8101IFS=$as_save_IFS
8102
8103fi
8104fi
8105MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8106if test -n "$MANIFEST_TOOL"; then
8107  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8108$as_echo "$MANIFEST_TOOL" >&6; }
8109else
8110  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113
8114
8115fi
8116if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8117  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8118  # Extract the first word of "mt", so it can be a program name with args.
8119set dummy mt; ac_word=$2
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121$as_echo_n "checking for $ac_word... " >&6; }
8122if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8123  $as_echo_n "(cached) " >&6
8124else
8125  if test -n "$ac_ct_MANIFEST_TOOL"; then
8126  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8127else
8128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129for as_dir in $PATH
8130do
8131  IFS=$as_save_IFS
8132  test -z "$as_dir" && as_dir=.
8133    for ac_exec_ext in '' $ac_executable_extensions; do
8134  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8136    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137    break 2
8138  fi
8139done
8140  done
8141IFS=$as_save_IFS
8142
8143fi
8144fi
8145ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8146if test -n "$ac_ct_MANIFEST_TOOL"; then
8147  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8148$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8149else
8150  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151$as_echo "no" >&6; }
8152fi
8153
8154  if test "x$ac_ct_MANIFEST_TOOL" = x; then
8155    MANIFEST_TOOL=":"
8156  else
8157    case $cross_compiling:$ac_tool_warned in
8158yes:)
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161ac_tool_warned=yes ;;
8162esac
8163    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8164  fi
8165else
8166  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8167fi
8168
8169test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8171$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8172if ${lt_cv_path_mainfest_tool+:} false; then :
8173  $as_echo_n "(cached) " >&6
8174else
8175  lt_cv_path_mainfest_tool=no
8176  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8177  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8178  cat conftest.err >&5
8179  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8180    lt_cv_path_mainfest_tool=yes
8181  fi
8182  rm -f conftest*
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8185$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8186if test "x$lt_cv_path_mainfest_tool" != xyes; then
8187  MANIFEST_TOOL=:
8188fi
8189
8190
8191
8192
8193
8194
8195  case $host_os in
8196    rhapsody* | darwin*)
8197    if test -n "$ac_tool_prefix"; then
8198  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8199set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201$as_echo_n "checking for $ac_word... " >&6; }
8202if ${ac_cv_prog_DSYMUTIL+:} false; then :
8203  $as_echo_n "(cached) " >&6
8204else
8205  if test -n "$DSYMUTIL"; then
8206  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8207else
8208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8209for as_dir in $PATH
8210do
8211  IFS=$as_save_IFS
8212  test -z "$as_dir" && as_dir=.
8213    for ac_exec_ext in '' $ac_executable_extensions; do
8214  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8215    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8216    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8217    break 2
8218  fi
8219done
8220  done
8221IFS=$as_save_IFS
8222
8223fi
8224fi
8225DSYMUTIL=$ac_cv_prog_DSYMUTIL
8226if test -n "$DSYMUTIL"; then
8227  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8228$as_echo "$DSYMUTIL" >&6; }
8229else
8230  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8231$as_echo "no" >&6; }
8232fi
8233
8234
8235fi
8236if test -z "$ac_cv_prog_DSYMUTIL"; then
8237  ac_ct_DSYMUTIL=$DSYMUTIL
8238  # Extract the first word of "dsymutil", so it can be a program name with args.
8239set dummy dsymutil; ac_word=$2
8240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241$as_echo_n "checking for $ac_word... " >&6; }
8242if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8243  $as_echo_n "(cached) " >&6
8244else
8245  if test -n "$ac_ct_DSYMUTIL"; then
8246  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8247else
8248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8249for as_dir in $PATH
8250do
8251  IFS=$as_save_IFS
8252  test -z "$as_dir" && as_dir=.
8253    for ac_exec_ext in '' $ac_executable_extensions; do
8254  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8255    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8256    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257    break 2
8258  fi
8259done
8260  done
8261IFS=$as_save_IFS
8262
8263fi
8264fi
8265ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8266if test -n "$ac_ct_DSYMUTIL"; then
8267  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8268$as_echo "$ac_ct_DSYMUTIL" >&6; }
8269else
8270  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271$as_echo "no" >&6; }
8272fi
8273
8274  if test "x$ac_ct_DSYMUTIL" = x; then
8275    DSYMUTIL=":"
8276  else
8277    case $cross_compiling:$ac_tool_warned in
8278yes:)
8279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8281ac_tool_warned=yes ;;
8282esac
8283    DSYMUTIL=$ac_ct_DSYMUTIL
8284  fi
8285else
8286  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8287fi
8288
8289    if test -n "$ac_tool_prefix"; then
8290  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8291set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8293$as_echo_n "checking for $ac_word... " >&6; }
8294if ${ac_cv_prog_NMEDIT+:} false; then :
8295  $as_echo_n "(cached) " >&6
8296else
8297  if test -n "$NMEDIT"; then
8298  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8299else
8300as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301for as_dir in $PATH
8302do
8303  IFS=$as_save_IFS
8304  test -z "$as_dir" && as_dir=.
8305    for ac_exec_ext in '' $ac_executable_extensions; do
8306  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8307    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8308    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309    break 2
8310  fi
8311done
8312  done
8313IFS=$as_save_IFS
8314
8315fi
8316fi
8317NMEDIT=$ac_cv_prog_NMEDIT
8318if test -n "$NMEDIT"; then
8319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8320$as_echo "$NMEDIT" >&6; }
8321else
8322  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8323$as_echo "no" >&6; }
8324fi
8325
8326
8327fi
8328if test -z "$ac_cv_prog_NMEDIT"; then
8329  ac_ct_NMEDIT=$NMEDIT
8330  # Extract the first word of "nmedit", so it can be a program name with args.
8331set dummy nmedit; ac_word=$2
8332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8333$as_echo_n "checking for $ac_word... " >&6; }
8334if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8335  $as_echo_n "(cached) " >&6
8336else
8337  if test -n "$ac_ct_NMEDIT"; then
8338  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8339else
8340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8341for as_dir in $PATH
8342do
8343  IFS=$as_save_IFS
8344  test -z "$as_dir" && as_dir=.
8345    for ac_exec_ext in '' $ac_executable_extensions; do
8346  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8347    ac_cv_prog_ac_ct_NMEDIT="nmedit"
8348    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349    break 2
8350  fi
8351done
8352  done
8353IFS=$as_save_IFS
8354
8355fi
8356fi
8357ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8358if test -n "$ac_ct_NMEDIT"; then
8359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8360$as_echo "$ac_ct_NMEDIT" >&6; }
8361else
8362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8363$as_echo "no" >&6; }
8364fi
8365
8366  if test "x$ac_ct_NMEDIT" = x; then
8367    NMEDIT=":"
8368  else
8369    case $cross_compiling:$ac_tool_warned in
8370yes:)
8371{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8372$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8373ac_tool_warned=yes ;;
8374esac
8375    NMEDIT=$ac_ct_NMEDIT
8376  fi
8377else
8378  NMEDIT="$ac_cv_prog_NMEDIT"
8379fi
8380
8381    if test -n "$ac_tool_prefix"; then
8382  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8383set dummy ${ac_tool_prefix}lipo; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
8386if ${ac_cv_prog_LIPO+:} false; then :
8387  $as_echo_n "(cached) " >&6
8388else
8389  if test -n "$LIPO"; then
8390  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8391else
8392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393for as_dir in $PATH
8394do
8395  IFS=$as_save_IFS
8396  test -z "$as_dir" && as_dir=.
8397    for ac_exec_ext in '' $ac_executable_extensions; do
8398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8399    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8401    break 2
8402  fi
8403done
8404  done
8405IFS=$as_save_IFS
8406
8407fi
8408fi
8409LIPO=$ac_cv_prog_LIPO
8410if test -n "$LIPO"; then
8411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8412$as_echo "$LIPO" >&6; }
8413else
8414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415$as_echo "no" >&6; }
8416fi
8417
8418
8419fi
8420if test -z "$ac_cv_prog_LIPO"; then
8421  ac_ct_LIPO=$LIPO
8422  # Extract the first word of "lipo", so it can be a program name with args.
8423set dummy lipo; ac_word=$2
8424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8425$as_echo_n "checking for $ac_word... " >&6; }
8426if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8427  $as_echo_n "(cached) " >&6
8428else
8429  if test -n "$ac_ct_LIPO"; then
8430  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8431else
8432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433for as_dir in $PATH
8434do
8435  IFS=$as_save_IFS
8436  test -z "$as_dir" && as_dir=.
8437    for ac_exec_ext in '' $ac_executable_extensions; do
8438  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8439    ac_cv_prog_ac_ct_LIPO="lipo"
8440    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441    break 2
8442  fi
8443done
8444  done
8445IFS=$as_save_IFS
8446
8447fi
8448fi
8449ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8450if test -n "$ac_ct_LIPO"; then
8451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8452$as_echo "$ac_ct_LIPO" >&6; }
8453else
8454  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455$as_echo "no" >&6; }
8456fi
8457
8458  if test "x$ac_ct_LIPO" = x; then
8459    LIPO=":"
8460  else
8461    case $cross_compiling:$ac_tool_warned in
8462yes:)
8463{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8464$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8465ac_tool_warned=yes ;;
8466esac
8467    LIPO=$ac_ct_LIPO
8468  fi
8469else
8470  LIPO="$ac_cv_prog_LIPO"
8471fi
8472
8473    if test -n "$ac_tool_prefix"; then
8474  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8475set dummy ${ac_tool_prefix}otool; ac_word=$2
8476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8477$as_echo_n "checking for $ac_word... " >&6; }
8478if ${ac_cv_prog_OTOOL+:} false; then :
8479  $as_echo_n "(cached) " >&6
8480else
8481  if test -n "$OTOOL"; then
8482  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8483else
8484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8485for as_dir in $PATH
8486do
8487  IFS=$as_save_IFS
8488  test -z "$as_dir" && as_dir=.
8489    for ac_exec_ext in '' $ac_executable_extensions; do
8490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8491    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8493    break 2
8494  fi
8495done
8496  done
8497IFS=$as_save_IFS
8498
8499fi
8500fi
8501OTOOL=$ac_cv_prog_OTOOL
8502if test -n "$OTOOL"; then
8503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8504$as_echo "$OTOOL" >&6; }
8505else
8506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8507$as_echo "no" >&6; }
8508fi
8509
8510
8511fi
8512if test -z "$ac_cv_prog_OTOOL"; then
8513  ac_ct_OTOOL=$OTOOL
8514  # Extract the first word of "otool", so it can be a program name with args.
8515set dummy otool; ac_word=$2
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517$as_echo_n "checking for $ac_word... " >&6; }
8518if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8519  $as_echo_n "(cached) " >&6
8520else
8521  if test -n "$ac_ct_OTOOL"; then
8522  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8523else
8524as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525for as_dir in $PATH
8526do
8527  IFS=$as_save_IFS
8528  test -z "$as_dir" && as_dir=.
8529    for ac_exec_ext in '' $ac_executable_extensions; do
8530  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531    ac_cv_prog_ac_ct_OTOOL="otool"
8532    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533    break 2
8534  fi
8535done
8536  done
8537IFS=$as_save_IFS
8538
8539fi
8540fi
8541ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8542if test -n "$ac_ct_OTOOL"; then
8543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8544$as_echo "$ac_ct_OTOOL" >&6; }
8545else
8546  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8547$as_echo "no" >&6; }
8548fi
8549
8550  if test "x$ac_ct_OTOOL" = x; then
8551    OTOOL=":"
8552  else
8553    case $cross_compiling:$ac_tool_warned in
8554yes:)
8555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8557ac_tool_warned=yes ;;
8558esac
8559    OTOOL=$ac_ct_OTOOL
8560  fi
8561else
8562  OTOOL="$ac_cv_prog_OTOOL"
8563fi
8564
8565    if test -n "$ac_tool_prefix"; then
8566  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8567set dummy ${ac_tool_prefix}otool64; ac_word=$2
8568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569$as_echo_n "checking for $ac_word... " >&6; }
8570if ${ac_cv_prog_OTOOL64+:} false; then :
8571  $as_echo_n "(cached) " >&6
8572else
8573  if test -n "$OTOOL64"; then
8574  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8575else
8576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8577for as_dir in $PATH
8578do
8579  IFS=$as_save_IFS
8580  test -z "$as_dir" && as_dir=.
8581    for ac_exec_ext in '' $ac_executable_extensions; do
8582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8583    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8585    break 2
8586  fi
8587done
8588  done
8589IFS=$as_save_IFS
8590
8591fi
8592fi
8593OTOOL64=$ac_cv_prog_OTOOL64
8594if test -n "$OTOOL64"; then
8595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8596$as_echo "$OTOOL64" >&6; }
8597else
8598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599$as_echo "no" >&6; }
8600fi
8601
8602
8603fi
8604if test -z "$ac_cv_prog_OTOOL64"; then
8605  ac_ct_OTOOL64=$OTOOL64
8606  # Extract the first word of "otool64", so it can be a program name with args.
8607set dummy otool64; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
8610if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8611  $as_echo_n "(cached) " >&6
8612else
8613  if test -n "$ac_ct_OTOOL64"; then
8614  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8615else
8616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617for as_dir in $PATH
8618do
8619  IFS=$as_save_IFS
8620  test -z "$as_dir" && as_dir=.
8621    for ac_exec_ext in '' $ac_executable_extensions; do
8622  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8623    ac_cv_prog_ac_ct_OTOOL64="otool64"
8624    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625    break 2
8626  fi
8627done
8628  done
8629IFS=$as_save_IFS
8630
8631fi
8632fi
8633ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8634if test -n "$ac_ct_OTOOL64"; then
8635  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8636$as_echo "$ac_ct_OTOOL64" >&6; }
8637else
8638  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8639$as_echo "no" >&6; }
8640fi
8641
8642  if test "x$ac_ct_OTOOL64" = x; then
8643    OTOOL64=":"
8644  else
8645    case $cross_compiling:$ac_tool_warned in
8646yes:)
8647{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8648$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8649ac_tool_warned=yes ;;
8650esac
8651    OTOOL64=$ac_ct_OTOOL64
8652  fi
8653else
8654  OTOOL64="$ac_cv_prog_OTOOL64"
8655fi
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8684$as_echo_n "checking for -single_module linker flag... " >&6; }
8685if ${lt_cv_apple_cc_single_mod+:} false; then :
8686  $as_echo_n "(cached) " >&6
8687else
8688  lt_cv_apple_cc_single_mod=no
8689      if test -z "${LT_MULTI_MODULE}"; then
8690	# By default we will add the -single_module flag. You can override
8691	# by either setting the environment variable LT_MULTI_MODULE
8692	# non-empty at configure time, or by adding -multi_module to the
8693	# link flags.
8694	rm -rf libconftest.dylib*
8695	echo "int foo(void){return 1;}" > conftest.c
8696	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8697-dynamiclib -Wl,-single_module conftest.c" >&5
8698	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8699	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8700        _lt_result=$?
8701	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8702	  lt_cv_apple_cc_single_mod=yes
8703	else
8704	  cat conftest.err >&5
8705	fi
8706	rm -rf libconftest.dylib*
8707	rm -f conftest.*
8708      fi
8709fi
8710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8711$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8712    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8713$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8714if ${lt_cv_ld_exported_symbols_list+:} false; then :
8715  $as_echo_n "(cached) " >&6
8716else
8717  lt_cv_ld_exported_symbols_list=no
8718      save_LDFLAGS=$LDFLAGS
8719      echo "_main" > conftest.sym
8720      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8721      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8722/* end confdefs.h.  */
8723
8724int
8725main ()
8726{
8727
8728  ;
8729  return 0;
8730}
8731_ACEOF
8732if ac_fn_c_try_link "$LINENO"; then :
8733  lt_cv_ld_exported_symbols_list=yes
8734else
8735  lt_cv_ld_exported_symbols_list=no
8736fi
8737rm -f core conftest.err conftest.$ac_objext \
8738    conftest$ac_exeext conftest.$ac_ext
8739	LDFLAGS="$save_LDFLAGS"
8740
8741fi
8742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8743$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8744    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8745$as_echo_n "checking for -force_load linker flag... " >&6; }
8746if ${lt_cv_ld_force_load+:} false; then :
8747  $as_echo_n "(cached) " >&6
8748else
8749  lt_cv_ld_force_load=no
8750      cat > conftest.c << _LT_EOF
8751int forced_loaded() { return 2;}
8752_LT_EOF
8753      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8754      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8755      echo "$AR cru libconftest.a conftest.o" >&5
8756      $AR cru libconftest.a conftest.o 2>&5
8757      echo "$RANLIB libconftest.a" >&5
8758      $RANLIB libconftest.a 2>&5
8759      cat > conftest.c << _LT_EOF
8760int main() { return 0;}
8761_LT_EOF
8762      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8763      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8764      _lt_result=$?
8765      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8766	lt_cv_ld_force_load=yes
8767      else
8768	cat conftest.err >&5
8769      fi
8770        rm -f conftest.err libconftest.a conftest conftest.c
8771        rm -rf conftest.dSYM
8772
8773fi
8774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8775$as_echo "$lt_cv_ld_force_load" >&6; }
8776    case $host_os in
8777    rhapsody* | darwin1.[012])
8778      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8779    darwin1.*)
8780      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8781    darwin*) # darwin 5.x on
8782      # if running on 10.5 or later, the deployment target defaults
8783      # to the OS version, if on x86, and 10.4, the deployment
8784      # target defaults to 10.4. Don't you love it?
8785      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8786	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8787	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8788	10.[012]*)
8789	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8790	10.*)
8791	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8792      esac
8793    ;;
8794  esac
8795    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8796      _lt_dar_single_mod='$single_module'
8797    fi
8798    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8799      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8800    else
8801      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8802    fi
8803    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8804      _lt_dsymutil='~$DSYMUTIL $lib || :'
8805    else
8806      _lt_dsymutil=
8807    fi
8808    ;;
8809  esac
8810
8811ac_ext=c
8812ac_cpp='$CPP $CPPFLAGS'
8813ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8814ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8815ac_compiler_gnu=$ac_cv_c_compiler_gnu
8816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
8817$as_echo_n "checking how to run the C preprocessor... " >&6; }
8818# On Suns, sometimes $CPP names a directory.
8819if test -n "$CPP" && test -d "$CPP"; then
8820  CPP=
8821fi
8822if test -z "$CPP"; then
8823  if ${ac_cv_prog_CPP+:} false; then :
8824  $as_echo_n "(cached) " >&6
8825else
8826      # Double quotes because CPP needs to be expanded
8827    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
8828    do
8829      ac_preproc_ok=false
8830for ac_c_preproc_warn_flag in '' yes
8831do
8832  # Use a header file that comes with gcc, so configuring glibc
8833  # with a fresh cross-compiler works.
8834  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8835  # <limits.h> exists even on freestanding compilers.
8836  # On the NeXT, cc -E runs the code through the compiler's parser,
8837  # not just through cpp. "Syntax error" is here to catch this case.
8838  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839/* end confdefs.h.  */
8840#ifdef __STDC__
8841# include <limits.h>
8842#else
8843# include <assert.h>
8844#endif
8845		     Syntax error
8846_ACEOF
8847if ac_fn_c_try_cpp "$LINENO"; then :
8848
8849else
8850  # Broken: fails on valid input.
8851continue
8852fi
8853rm -f conftest.err conftest.i conftest.$ac_ext
8854
8855  # OK, works on sane cases.  Now check whether nonexistent headers
8856  # can be detected and how.
8857  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858/* end confdefs.h.  */
8859#include <ac_nonexistent.h>
8860_ACEOF
8861if ac_fn_c_try_cpp "$LINENO"; then :
8862  # Broken: success on invalid input.
8863continue
8864else
8865  # Passes both tests.
8866ac_preproc_ok=:
8867break
8868fi
8869rm -f conftest.err conftest.i conftest.$ac_ext
8870
8871done
8872# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8873rm -f conftest.i conftest.err conftest.$ac_ext
8874if $ac_preproc_ok; then :
8875  break
8876fi
8877
8878    done
8879    ac_cv_prog_CPP=$CPP
8880
8881fi
8882  CPP=$ac_cv_prog_CPP
8883else
8884  ac_cv_prog_CPP=$CPP
8885fi
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
8887$as_echo "$CPP" >&6; }
8888ac_preproc_ok=false
8889for ac_c_preproc_warn_flag in '' yes
8890do
8891  # Use a header file that comes with gcc, so configuring glibc
8892  # with a fresh cross-compiler works.
8893  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8894  # <limits.h> exists even on freestanding compilers.
8895  # On the NeXT, cc -E runs the code through the compiler's parser,
8896  # not just through cpp. "Syntax error" is here to catch this case.
8897  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898/* end confdefs.h.  */
8899#ifdef __STDC__
8900# include <limits.h>
8901#else
8902# include <assert.h>
8903#endif
8904		     Syntax error
8905_ACEOF
8906if ac_fn_c_try_cpp "$LINENO"; then :
8907
8908else
8909  # Broken: fails on valid input.
8910continue
8911fi
8912rm -f conftest.err conftest.i conftest.$ac_ext
8913
8914  # OK, works on sane cases.  Now check whether nonexistent headers
8915  # can be detected and how.
8916  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8917/* end confdefs.h.  */
8918#include <ac_nonexistent.h>
8919_ACEOF
8920if ac_fn_c_try_cpp "$LINENO"; then :
8921  # Broken: success on invalid input.
8922continue
8923else
8924  # Passes both tests.
8925ac_preproc_ok=:
8926break
8927fi
8928rm -f conftest.err conftest.i conftest.$ac_ext
8929
8930done
8931# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8932rm -f conftest.i conftest.err conftest.$ac_ext
8933if $ac_preproc_ok; then :
8934
8935else
8936  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8938as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8939See \`config.log' for more details" "$LINENO" 5; }
8940fi
8941
8942ac_ext=c
8943ac_cpp='$CPP $CPPFLAGS'
8944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8946ac_compiler_gnu=$ac_cv_c_compiler_gnu
8947
8948
8949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8950$as_echo_n "checking for ANSI C header files... " >&6; }
8951if ${ac_cv_header_stdc+:} false; then :
8952  $as_echo_n "(cached) " >&6
8953else
8954  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h.  */
8956#include <stdlib.h>
8957#include <stdarg.h>
8958#include <string.h>
8959#include <float.h>
8960
8961int
8962main ()
8963{
8964
8965  ;
8966  return 0;
8967}
8968_ACEOF
8969if ac_fn_c_try_compile "$LINENO"; then :
8970  ac_cv_header_stdc=yes
8971else
8972  ac_cv_header_stdc=no
8973fi
8974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8975
8976if test $ac_cv_header_stdc = yes; then
8977  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8978  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979/* end confdefs.h.  */
8980#include <string.h>
8981
8982_ACEOF
8983if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8984  $EGREP "memchr" >/dev/null 2>&1; then :
8985
8986else
8987  ac_cv_header_stdc=no
8988fi
8989rm -f conftest*
8990
8991fi
8992
8993if test $ac_cv_header_stdc = yes; then
8994  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8995  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996/* end confdefs.h.  */
8997#include <stdlib.h>
8998
8999_ACEOF
9000if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9001  $EGREP "free" >/dev/null 2>&1; then :
9002
9003else
9004  ac_cv_header_stdc=no
9005fi
9006rm -f conftest*
9007
9008fi
9009
9010if test $ac_cv_header_stdc = yes; then
9011  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9012  if test "$cross_compiling" = yes; then :
9013  :
9014else
9015  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016/* end confdefs.h.  */
9017#include <ctype.h>
9018#include <stdlib.h>
9019#if ((' ' & 0x0FF) == 0x020)
9020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9022#else
9023# define ISLOWER(c) \
9024		   (('a' <= (c) && (c) <= 'i') \
9025		     || ('j' <= (c) && (c) <= 'r') \
9026		     || ('s' <= (c) && (c) <= 'z'))
9027# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9028#endif
9029
9030#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9031int
9032main ()
9033{
9034  int i;
9035  for (i = 0; i < 256; i++)
9036    if (XOR (islower (i), ISLOWER (i))
9037	|| toupper (i) != TOUPPER (i))
9038      return 2;
9039  return 0;
9040}
9041_ACEOF
9042if ac_fn_c_try_run "$LINENO"; then :
9043
9044else
9045  ac_cv_header_stdc=no
9046fi
9047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9048  conftest.$ac_objext conftest.beam conftest.$ac_ext
9049fi
9050
9051fi
9052fi
9053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9054$as_echo "$ac_cv_header_stdc" >&6; }
9055if test $ac_cv_header_stdc = yes; then
9056
9057$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9058
9059fi
9060
9061# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9062for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9063		  inttypes.h stdint.h unistd.h
9064do :
9065  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9066ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9067"
9068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9069  cat >>confdefs.h <<_ACEOF
9070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9071_ACEOF
9072
9073fi
9074
9075done
9076
9077
9078for ac_header in dlfcn.h
9079do :
9080  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9081"
9082if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9083  cat >>confdefs.h <<_ACEOF
9084#define HAVE_DLFCN_H 1
9085_ACEOF
9086
9087fi
9088
9089done
9090
9091
9092
9093
9094func_stripname_cnf ()
9095{
9096  case ${2} in
9097  .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9098  *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9099  esac
9100} # func_stripname_cnf
9101
9102
9103
9104
9105
9106# Set options
9107
9108
9109
9110        enable_dlopen=no
9111
9112
9113
9114            # Check whether --enable-shared was given.
9115if test "${enable_shared+set}" = set; then :
9116  enableval=$enable_shared; p=${PACKAGE-default}
9117    case $enableval in
9118    yes) enable_shared=yes ;;
9119    no) enable_shared=no ;;
9120    *)
9121      enable_shared=no
9122      # Look at the argument we got.  We use all the common list separators.
9123      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9124      for pkg in $enableval; do
9125	IFS="$lt_save_ifs"
9126	if test "X$pkg" = "X$p"; then
9127	  enable_shared=yes
9128	fi
9129      done
9130      IFS="$lt_save_ifs"
9131      ;;
9132    esac
9133else
9134  enable_shared=yes
9135fi
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147# Check whether --with-pic was given.
9148if test "${with_pic+set}" = set; then :
9149  withval=$with_pic; pic_mode="$withval"
9150else
9151  pic_mode=default
9152fi
9153
9154
9155test -z "$pic_mode" && pic_mode=default
9156
9157
9158
9159
9160
9161
9162
9163  # Check whether --enable-fast-install was given.
9164if test "${enable_fast_install+set}" = set; then :
9165  enableval=$enable_fast_install; p=${PACKAGE-default}
9166    case $enableval in
9167    yes) enable_fast_install=yes ;;
9168    no) enable_fast_install=no ;;
9169    *)
9170      enable_fast_install=no
9171      # Look at the argument we got.  We use all the common list separators.
9172      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9173      for pkg in $enableval; do
9174	IFS="$lt_save_ifs"
9175	if test "X$pkg" = "X$p"; then
9176	  enable_fast_install=yes
9177	fi
9178      done
9179      IFS="$lt_save_ifs"
9180      ;;
9181    esac
9182else
9183  enable_fast_install=yes
9184fi
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196# This can be used to rebuild libtool when needed
9197LIBTOOL_DEPS="$ltmain"
9198
9199# Always use our own libtool.
9200LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222
9223
9224
9225
9226
9227test -z "$LN_S" && LN_S="ln -s"
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242if test -n "${ZSH_VERSION+set}" ; then
9243   setopt NO_GLOB_SUBST
9244fi
9245
9246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9247$as_echo_n "checking for objdir... " >&6; }
9248if ${lt_cv_objdir+:} false; then :
9249  $as_echo_n "(cached) " >&6
9250else
9251  rm -f .libs 2>/dev/null
9252mkdir .libs 2>/dev/null
9253if test -d .libs; then
9254  lt_cv_objdir=.libs
9255else
9256  # MS-DOS does not allow filenames that begin with a dot.
9257  lt_cv_objdir=_libs
9258fi
9259rmdir .libs 2>/dev/null
9260fi
9261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9262$as_echo "$lt_cv_objdir" >&6; }
9263objdir=$lt_cv_objdir
9264
9265
9266
9267
9268
9269cat >>confdefs.h <<_ACEOF
9270#define LT_OBJDIR "$lt_cv_objdir/"
9271_ACEOF
9272
9273
9274
9275
9276case $host_os in
9277aix3*)
9278  # AIX sometimes has problems with the GCC collect2 program.  For some
9279  # reason, if we set the COLLECT_NAMES environment variable, the problems
9280  # vanish in a puff of smoke.
9281  if test "X${COLLECT_NAMES+set}" != Xset; then
9282    COLLECT_NAMES=
9283    export COLLECT_NAMES
9284  fi
9285  ;;
9286esac
9287
9288# Global variables:
9289ofile=libtool
9290can_build_shared=yes
9291
9292# All known linkers require a `.a' archive for static linking (except MSVC,
9293# which needs '.lib').
9294libext=a
9295
9296with_gnu_ld="$lt_cv_prog_gnu_ld"
9297
9298old_CC="$CC"
9299old_CFLAGS="$CFLAGS"
9300
9301# Set sane defaults for various variables
9302test -z "$CC" && CC=cc
9303test -z "$LTCC" && LTCC=$CC
9304test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9305test -z "$LD" && LD=ld
9306test -z "$ac_objext" && ac_objext=o
9307
9308for cc_temp in $compiler""; do
9309  case $cc_temp in
9310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9312    \-*) ;;
9313    *) break;;
9314  esac
9315done
9316cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9317
9318
9319# Only perform the check for file, if the check method requires it
9320test -z "$MAGIC_CMD" && MAGIC_CMD=file
9321case $deplibs_check_method in
9322file_magic*)
9323  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9325$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9326if ${lt_cv_path_MAGIC_CMD+:} false; then :
9327  $as_echo_n "(cached) " >&6
9328else
9329  case $MAGIC_CMD in
9330[\\/*] |  ?:[\\/]*)
9331  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9332  ;;
9333*)
9334  lt_save_MAGIC_CMD="$MAGIC_CMD"
9335  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9336  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9337  for ac_dir in $ac_dummy; do
9338    IFS="$lt_save_ifs"
9339    test -z "$ac_dir" && ac_dir=.
9340    if test -f $ac_dir/${ac_tool_prefix}file; then
9341      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9342      if test -n "$file_magic_test_file"; then
9343	case $deplibs_check_method in
9344	"file_magic "*)
9345	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9346	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9347	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9348	    $EGREP "$file_magic_regex" > /dev/null; then
9349	    :
9350	  else
9351	    cat <<_LT_EOF 1>&2
9352
9353*** Warning: the command libtool uses to detect shared libraries,
9354*** $file_magic_cmd, produces output that libtool cannot recognize.
9355*** The result is that libtool may fail to recognize shared libraries
9356*** as such.  This will affect the creation of libtool libraries that
9357*** depend on shared libraries, but programs linked with such libtool
9358*** libraries will work regardless of this problem.  Nevertheless, you
9359*** may want to report the problem to your system manager and/or to
9360*** bug-libtool@gnu.org
9361
9362_LT_EOF
9363	  fi ;;
9364	esac
9365      fi
9366      break
9367    fi
9368  done
9369  IFS="$lt_save_ifs"
9370  MAGIC_CMD="$lt_save_MAGIC_CMD"
9371  ;;
9372esac
9373fi
9374
9375MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9376if test -n "$MAGIC_CMD"; then
9377  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9378$as_echo "$MAGIC_CMD" >&6; }
9379else
9380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9381$as_echo "no" >&6; }
9382fi
9383
9384
9385
9386
9387
9388if test -z "$lt_cv_path_MAGIC_CMD"; then
9389  if test -n "$ac_tool_prefix"; then
9390    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9391$as_echo_n "checking for file... " >&6; }
9392if ${lt_cv_path_MAGIC_CMD+:} false; then :
9393  $as_echo_n "(cached) " >&6
9394else
9395  case $MAGIC_CMD in
9396[\\/*] |  ?:[\\/]*)
9397  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9398  ;;
9399*)
9400  lt_save_MAGIC_CMD="$MAGIC_CMD"
9401  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9402  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9403  for ac_dir in $ac_dummy; do
9404    IFS="$lt_save_ifs"
9405    test -z "$ac_dir" && ac_dir=.
9406    if test -f $ac_dir/file; then
9407      lt_cv_path_MAGIC_CMD="$ac_dir/file"
9408      if test -n "$file_magic_test_file"; then
9409	case $deplibs_check_method in
9410	"file_magic "*)
9411	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9412	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9413	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9414	    $EGREP "$file_magic_regex" > /dev/null; then
9415	    :
9416	  else
9417	    cat <<_LT_EOF 1>&2
9418
9419*** Warning: the command libtool uses to detect shared libraries,
9420*** $file_magic_cmd, produces output that libtool cannot recognize.
9421*** The result is that libtool may fail to recognize shared libraries
9422*** as such.  This will affect the creation of libtool libraries that
9423*** depend on shared libraries, but programs linked with such libtool
9424*** libraries will work regardless of this problem.  Nevertheless, you
9425*** may want to report the problem to your system manager and/or to
9426*** bug-libtool@gnu.org
9427
9428_LT_EOF
9429	  fi ;;
9430	esac
9431      fi
9432      break
9433    fi
9434  done
9435  IFS="$lt_save_ifs"
9436  MAGIC_CMD="$lt_save_MAGIC_CMD"
9437  ;;
9438esac
9439fi
9440
9441MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9442if test -n "$MAGIC_CMD"; then
9443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9444$as_echo "$MAGIC_CMD" >&6; }
9445else
9446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9447$as_echo "no" >&6; }
9448fi
9449
9450
9451  else
9452    MAGIC_CMD=:
9453  fi
9454fi
9455
9456  fi
9457  ;;
9458esac
9459
9460# Use C for the default configuration in the libtool script
9461
9462lt_save_CC="$CC"
9463ac_ext=c
9464ac_cpp='$CPP $CPPFLAGS'
9465ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9466ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9467ac_compiler_gnu=$ac_cv_c_compiler_gnu
9468
9469
9470# Source file extension for C test sources.
9471ac_ext=c
9472
9473# Object file extension for compiled C test sources.
9474objext=o
9475objext=$objext
9476
9477# Code to be used in simple compile tests
9478lt_simple_compile_test_code="int some_variable = 0;"
9479
9480# Code to be used in simple link tests
9481lt_simple_link_test_code='int main(){return(0);}'
9482
9483
9484
9485
9486
9487
9488
9489# If no C compiler was specified, use CC.
9490LTCC=${LTCC-"$CC"}
9491
9492# If no C compiler flags were specified, use CFLAGS.
9493LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9494
9495# Allow CC to be a program name with arguments.
9496compiler=$CC
9497
9498# Save the default compiler, since it gets overwritten when the other
9499# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9500compiler_DEFAULT=$CC
9501
9502# save warnings/boilerplate of simple test code
9503ac_outfile=conftest.$ac_objext
9504echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9505eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9506_lt_compiler_boilerplate=`cat conftest.err`
9507$RM conftest*
9508
9509ac_outfile=conftest.$ac_objext
9510echo "$lt_simple_link_test_code" >conftest.$ac_ext
9511eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9512_lt_linker_boilerplate=`cat conftest.err`
9513$RM -r conftest*
9514
9515
9516## CAVEAT EMPTOR:
9517## There is no encapsulation within the following macros, do not change
9518## the running order or otherwise move them around unless you know exactly
9519## what you are doing...
9520if test -n "$compiler"; then
9521
9522lt_prog_compiler_no_builtin_flag=
9523
9524if test "$GCC" = yes; then
9525  case $cc_basename in
9526  nvcc*)
9527    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9528  *)
9529    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9530  esac
9531
9532  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9533$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9534if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9535  $as_echo_n "(cached) " >&6
9536else
9537  lt_cv_prog_compiler_rtti_exceptions=no
9538   ac_outfile=conftest.$ac_objext
9539   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9540   lt_compiler_flag="-fno-rtti -fno-exceptions"
9541   # Insert the option either (1) after the last *FLAGS variable, or
9542   # (2) before a word containing "conftest.", or (3) at the end.
9543   # Note that $ac_compile itself does not contain backslashes and begins
9544   # with a dollar sign (not a hyphen), so the echo should work correctly.
9545   # The option is referenced via a variable to avoid confusing sed.
9546   lt_compile=`echo "$ac_compile" | $SED \
9547   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9548   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9549   -e 's:$: $lt_compiler_flag:'`
9550   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9551   (eval "$lt_compile" 2>conftest.err)
9552   ac_status=$?
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   if (exit $ac_status) && test -s "$ac_outfile"; then
9556     # The compiler can only warn and ignore the option if not recognized
9557     # So say no if there are warnings other than the usual output.
9558     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9559     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9560     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9561       lt_cv_prog_compiler_rtti_exceptions=yes
9562     fi
9563   fi
9564   $RM conftest*
9565
9566fi
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9568$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9569
9570if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9571    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9572else
9573    :
9574fi
9575
9576fi
9577
9578
9579
9580
9581
9582
9583  lt_prog_compiler_wl=
9584lt_prog_compiler_pic=
9585lt_prog_compiler_static=
9586
9587
9588  if test "$GCC" = yes; then
9589    lt_prog_compiler_wl='-Wl,'
9590    lt_prog_compiler_static='-static'
9591
9592    case $host_os in
9593      aix*)
9594      # All AIX code is PIC.
9595      if test "$host_cpu" = ia64; then
9596	# AIX 5 now supports IA64 processor
9597	lt_prog_compiler_static='-Bstatic'
9598      fi
9599      ;;
9600
9601    amigaos*)
9602      case $host_cpu in
9603      powerpc)
9604            # see comment about AmigaOS4 .so support
9605            lt_prog_compiler_pic='-fPIC'
9606        ;;
9607      m68k)
9608            # FIXME: we need at least 68020 code to build shared libraries, but
9609            # adding the `-m68020' flag to GCC prevents building anything better,
9610            # like `-m68040'.
9611            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9612        ;;
9613      esac
9614      ;;
9615
9616    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9617      # PIC is the default for these OSes.
9618      ;;
9619
9620    mingw* | cygwin* | pw32* | os2* | cegcc*)
9621      # This hack is so that the source file can tell whether it is being
9622      # built for inclusion in a dll (and should export symbols for example).
9623      # Although the cygwin gcc ignores -fPIC, still need this for old-style
9624      # (--disable-auto-import) libraries
9625      lt_prog_compiler_pic='-DDLL_EXPORT'
9626      ;;
9627
9628    darwin* | rhapsody*)
9629      # PIC is the default on this platform
9630      # Common symbols not allowed in MH_DYLIB files
9631      lt_prog_compiler_pic='-fno-common'
9632      ;;
9633
9634    haiku*)
9635      # PIC is the default for Haiku.
9636      # The "-static" flag exists, but is broken.
9637      lt_prog_compiler_static=
9638      ;;
9639
9640    hpux*)
9641      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9642      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9643      # sets the default TLS model and affects inlining.
9644      case $host_cpu in
9645      hppa*64*)
9646	# +Z the default
9647	;;
9648      *)
9649	lt_prog_compiler_pic='-fPIC'
9650	;;
9651      esac
9652      ;;
9653
9654    interix[3-9]*)
9655      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9656      # Instead, we relocate shared libraries at runtime.
9657      ;;
9658
9659    msdosdjgpp*)
9660      # Just because we use GCC doesn't mean we suddenly get shared libraries
9661      # on systems that don't support them.
9662      lt_prog_compiler_can_build_shared=no
9663      enable_shared=no
9664      ;;
9665
9666    *nto* | *qnx*)
9667      # QNX uses GNU C++, but need to define -shared option too, otherwise
9668      # it will coredump.
9669      lt_prog_compiler_pic='-fPIC -shared'
9670      ;;
9671
9672    sysv4*MP*)
9673      if test -d /usr/nec; then
9674	lt_prog_compiler_pic=-Kconform_pic
9675      fi
9676      ;;
9677
9678    *)
9679      lt_prog_compiler_pic='-fPIC'
9680      ;;
9681    esac
9682
9683    case $cc_basename in
9684    nvcc*) # Cuda Compiler Driver 2.2
9685      lt_prog_compiler_wl='-Xlinker '
9686      lt_prog_compiler_pic='-Xcompiler -fPIC'
9687      ;;
9688    esac
9689  else
9690    # PORTME Check for flag to pass linker flags through the system compiler.
9691    case $host_os in
9692    aix*)
9693      lt_prog_compiler_wl='-Wl,'
9694      if test "$host_cpu" = ia64; then
9695	# AIX 5 now supports IA64 processor
9696	lt_prog_compiler_static='-Bstatic'
9697      else
9698	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9699      fi
9700      ;;
9701
9702    mingw* | cygwin* | pw32* | os2* | cegcc*)
9703      # This hack is so that the source file can tell whether it is being
9704      # built for inclusion in a dll (and should export symbols for example).
9705      lt_prog_compiler_pic='-DDLL_EXPORT'
9706      ;;
9707
9708    hpux9* | hpux10* | hpux11*)
9709      lt_prog_compiler_wl='-Wl,'
9710      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9711      # not for PA HP-UX.
9712      case $host_cpu in
9713      hppa*64*|ia64*)
9714	# +Z the default
9715	;;
9716      *)
9717	lt_prog_compiler_pic='+Z'
9718	;;
9719      esac
9720      # Is there a better lt_prog_compiler_static that works with the bundled CC?
9721      lt_prog_compiler_static='${wl}-a ${wl}archive'
9722      ;;
9723
9724    irix5* | irix6* | nonstopux*)
9725      lt_prog_compiler_wl='-Wl,'
9726      # PIC (with -KPIC) is the default.
9727      lt_prog_compiler_static='-non_shared'
9728      ;;
9729
9730    linux* | k*bsd*-gnu | kopensolaris*-gnu)
9731      case $cc_basename in
9732      # old Intel for x86_64 which still supported -KPIC.
9733      ecc*)
9734	lt_prog_compiler_wl='-Wl,'
9735	lt_prog_compiler_pic='-KPIC'
9736	lt_prog_compiler_static='-static'
9737        ;;
9738      # icc used to be incompatible with GCC.
9739      # ICC 10 doesn't accept -KPIC any more.
9740      icc* | ifort*)
9741	lt_prog_compiler_wl='-Wl,'
9742	lt_prog_compiler_pic='-fPIC'
9743	lt_prog_compiler_static='-static'
9744        ;;
9745      # Lahey Fortran 8.1.
9746      lf95*)
9747	lt_prog_compiler_wl='-Wl,'
9748	lt_prog_compiler_pic='--shared'
9749	lt_prog_compiler_static='--static'
9750	;;
9751      nagfor*)
9752	# NAG Fortran compiler
9753	lt_prog_compiler_wl='-Wl,-Wl,,'
9754	lt_prog_compiler_pic='-PIC'
9755	lt_prog_compiler_static='-Bstatic'
9756	;;
9757      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9758        # Portland Group compilers (*not* the Pentium gcc compiler,
9759	# which looks to be a dead project)
9760	lt_prog_compiler_wl='-Wl,'
9761	lt_prog_compiler_pic='-fpic'
9762	lt_prog_compiler_static='-Bstatic'
9763        ;;
9764      ccc*)
9765        lt_prog_compiler_wl='-Wl,'
9766        # All Alpha code is PIC.
9767        lt_prog_compiler_static='-non_shared'
9768        ;;
9769      xl* | bgxl* | bgf* | mpixl*)
9770	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9771	lt_prog_compiler_wl='-Wl,'
9772	lt_prog_compiler_pic='-qpic'
9773	lt_prog_compiler_static='-qstaticlink'
9774	;;
9775      *)
9776	case `$CC -V 2>&1 | sed 5q` in
9777	*Sun\ F* | *Sun*Fortran*)
9778	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
9779	  lt_prog_compiler_pic='-KPIC'
9780	  lt_prog_compiler_static='-Bstatic'
9781	  lt_prog_compiler_wl=''
9782	  ;;
9783	*Sun\ C*)
9784	  # Sun C 5.9
9785	  lt_prog_compiler_pic='-KPIC'
9786	  lt_prog_compiler_static='-Bstatic'
9787	  lt_prog_compiler_wl='-Wl,'
9788	  ;;
9789	esac
9790	;;
9791      esac
9792      ;;
9793
9794    newsos6)
9795      lt_prog_compiler_pic='-KPIC'
9796      lt_prog_compiler_static='-Bstatic'
9797      ;;
9798
9799    *nto* | *qnx*)
9800      # QNX uses GNU C++, but need to define -shared option too, otherwise
9801      # it will coredump.
9802      lt_prog_compiler_pic='-fPIC -shared'
9803      ;;
9804
9805    osf3* | osf4* | osf5*)
9806      lt_prog_compiler_wl='-Wl,'
9807      # All OSF/1 code is PIC.
9808      lt_prog_compiler_static='-non_shared'
9809      ;;
9810
9811    rdos*)
9812      lt_prog_compiler_static='-non_shared'
9813      ;;
9814
9815    solaris*)
9816      lt_prog_compiler_pic='-KPIC'
9817      lt_prog_compiler_static='-Bstatic'
9818      case $cc_basename in
9819      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9820	lt_prog_compiler_wl='-Qoption ld ';;
9821      *)
9822	lt_prog_compiler_wl='-Wl,';;
9823      esac
9824      ;;
9825
9826    sunos4*)
9827      lt_prog_compiler_wl='-Qoption ld '
9828      lt_prog_compiler_pic='-PIC'
9829      lt_prog_compiler_static='-Bstatic'
9830      ;;
9831
9832    sysv4 | sysv4.2uw2* | sysv4.3*)
9833      lt_prog_compiler_wl='-Wl,'
9834      lt_prog_compiler_pic='-KPIC'
9835      lt_prog_compiler_static='-Bstatic'
9836      ;;
9837
9838    sysv4*MP*)
9839      if test -d /usr/nec ;then
9840	lt_prog_compiler_pic='-Kconform_pic'
9841	lt_prog_compiler_static='-Bstatic'
9842      fi
9843      ;;
9844
9845    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9846      lt_prog_compiler_wl='-Wl,'
9847      lt_prog_compiler_pic='-KPIC'
9848      lt_prog_compiler_static='-Bstatic'
9849      ;;
9850
9851    unicos*)
9852      lt_prog_compiler_wl='-Wl,'
9853      lt_prog_compiler_can_build_shared=no
9854      ;;
9855
9856    uts4*)
9857      lt_prog_compiler_pic='-pic'
9858      lt_prog_compiler_static='-Bstatic'
9859      ;;
9860
9861    *)
9862      lt_prog_compiler_can_build_shared=no
9863      ;;
9864    esac
9865  fi
9866
9867case $host_os in
9868  # For platforms which do not support PIC, -DPIC is meaningless:
9869  *djgpp*)
9870    lt_prog_compiler_pic=
9871    ;;
9872  *)
9873    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9874    ;;
9875esac
9876
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9878$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9879if ${lt_cv_prog_compiler_pic+:} false; then :
9880  $as_echo_n "(cached) " >&6
9881else
9882  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9883fi
9884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9885$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9886lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9887
9888#
9889# Check to make sure the PIC flag actually works.
9890#
9891if test -n "$lt_prog_compiler_pic"; then
9892  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9893$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9894if ${lt_cv_prog_compiler_pic_works+:} false; then :
9895  $as_echo_n "(cached) " >&6
9896else
9897  lt_cv_prog_compiler_pic_works=no
9898   ac_outfile=conftest.$ac_objext
9899   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9900   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9901   # Insert the option either (1) after the last *FLAGS variable, or
9902   # (2) before a word containing "conftest.", or (3) at the end.
9903   # Note that $ac_compile itself does not contain backslashes and begins
9904   # with a dollar sign (not a hyphen), so the echo should work correctly.
9905   # The option is referenced via a variable to avoid confusing sed.
9906   lt_compile=`echo "$ac_compile" | $SED \
9907   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9908   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9909   -e 's:$: $lt_compiler_flag:'`
9910   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9911   (eval "$lt_compile" 2>conftest.err)
9912   ac_status=$?
9913   cat conftest.err >&5
9914   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915   if (exit $ac_status) && test -s "$ac_outfile"; then
9916     # The compiler can only warn and ignore the option if not recognized
9917     # So say no if there are warnings other than the usual output.
9918     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9919     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9920     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9921       lt_cv_prog_compiler_pic_works=yes
9922     fi
9923   fi
9924   $RM conftest*
9925
9926fi
9927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9928$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9929
9930if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9931    case $lt_prog_compiler_pic in
9932     "" | " "*) ;;
9933     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9934     esac
9935else
9936    lt_prog_compiler_pic=
9937     lt_prog_compiler_can_build_shared=no
9938fi
9939
9940fi
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952#
9953# Check to make sure the static flag actually works.
9954#
9955wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9957$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9958if ${lt_cv_prog_compiler_static_works+:} false; then :
9959  $as_echo_n "(cached) " >&6
9960else
9961  lt_cv_prog_compiler_static_works=no
9962   save_LDFLAGS="$LDFLAGS"
9963   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9964   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9965   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9966     # The linker can only warn and ignore the option if not recognized
9967     # So say no if there are warnings
9968     if test -s conftest.err; then
9969       # Append any errors to the config.log.
9970       cat conftest.err 1>&5
9971       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9972       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9973       if diff conftest.exp conftest.er2 >/dev/null; then
9974         lt_cv_prog_compiler_static_works=yes
9975       fi
9976     else
9977       lt_cv_prog_compiler_static_works=yes
9978     fi
9979   fi
9980   $RM -r conftest*
9981   LDFLAGS="$save_LDFLAGS"
9982
9983fi
9984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9985$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9986
9987if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9988    :
9989else
9990    lt_prog_compiler_static=
9991fi
9992
9993
9994
9995
9996
9997
9998
9999  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10000$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10001if ${lt_cv_prog_compiler_c_o+:} false; then :
10002  $as_echo_n "(cached) " >&6
10003else
10004  lt_cv_prog_compiler_c_o=no
10005   $RM -r conftest 2>/dev/null
10006   mkdir conftest
10007   cd conftest
10008   mkdir out
10009   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10010
10011   lt_compiler_flag="-o out/conftest2.$ac_objext"
10012   # Insert the option either (1) after the last *FLAGS variable, or
10013   # (2) before a word containing "conftest.", or (3) at the end.
10014   # Note that $ac_compile itself does not contain backslashes and begins
10015   # with a dollar sign (not a hyphen), so the echo should work correctly.
10016   lt_compile=`echo "$ac_compile" | $SED \
10017   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10018   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10019   -e 's:$: $lt_compiler_flag:'`
10020   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10021   (eval "$lt_compile" 2>out/conftest.err)
10022   ac_status=$?
10023   cat out/conftest.err >&5
10024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10026   then
10027     # The compiler can only warn and ignore the option if not recognized
10028     # So say no if there are warnings
10029     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10030     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10031     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10032       lt_cv_prog_compiler_c_o=yes
10033     fi
10034   fi
10035   chmod u+w . 2>&5
10036   $RM conftest*
10037   # SGI C++ compiler will create directory out/ii_files/ for
10038   # template instantiation
10039   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10040   $RM out/* && rmdir out
10041   cd ..
10042   $RM -r conftest
10043   $RM conftest*
10044
10045fi
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10047$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10048
10049
10050
10051
10052
10053
10054  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10055$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10056if ${lt_cv_prog_compiler_c_o+:} false; then :
10057  $as_echo_n "(cached) " >&6
10058else
10059  lt_cv_prog_compiler_c_o=no
10060   $RM -r conftest 2>/dev/null
10061   mkdir conftest
10062   cd conftest
10063   mkdir out
10064   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10065
10066   lt_compiler_flag="-o out/conftest2.$ac_objext"
10067   # Insert the option either (1) after the last *FLAGS variable, or
10068   # (2) before a word containing "conftest.", or (3) at the end.
10069   # Note that $ac_compile itself does not contain backslashes and begins
10070   # with a dollar sign (not a hyphen), so the echo should work correctly.
10071   lt_compile=`echo "$ac_compile" | $SED \
10072   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10073   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10074   -e 's:$: $lt_compiler_flag:'`
10075   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10076   (eval "$lt_compile" 2>out/conftest.err)
10077   ac_status=$?
10078   cat out/conftest.err >&5
10079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080   if (exit $ac_status) && test -s out/conftest2.$ac_objext
10081   then
10082     # The compiler can only warn and ignore the option if not recognized
10083     # So say no if there are warnings
10084     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10085     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10086     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10087       lt_cv_prog_compiler_c_o=yes
10088     fi
10089   fi
10090   chmod u+w . 2>&5
10091   $RM conftest*
10092   # SGI C++ compiler will create directory out/ii_files/ for
10093   # template instantiation
10094   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10095   $RM out/* && rmdir out
10096   cd ..
10097   $RM -r conftest
10098   $RM conftest*
10099
10100fi
10101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10102$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10103
10104
10105
10106
10107hard_links="nottested"
10108if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10109  # do not overwrite the value of need_locks provided by the user
10110  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10111$as_echo_n "checking if we can lock with hard links... " >&6; }
10112  hard_links=yes
10113  $RM conftest*
10114  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10115  touch conftest.a
10116  ln conftest.a conftest.b 2>&5 || hard_links=no
10117  ln conftest.a conftest.b 2>/dev/null && hard_links=no
10118  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10119$as_echo "$hard_links" >&6; }
10120  if test "$hard_links" = no; then
10121    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10122$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10123    need_locks=warn
10124  fi
10125else
10126  need_locks=no
10127fi
10128
10129
10130
10131
10132
10133
10134  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10135$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10136
10137  runpath_var=
10138  allow_undefined_flag=
10139  always_export_symbols=no
10140  archive_cmds=
10141  archive_expsym_cmds=
10142  compiler_needs_object=no
10143  enable_shared_with_static_runtimes=no
10144  export_dynamic_flag_spec=
10145  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10146  hardcode_automatic=no
10147  hardcode_direct=no
10148  hardcode_direct_absolute=no
10149  hardcode_libdir_flag_spec=
10150  hardcode_libdir_flag_spec_ld=
10151  hardcode_libdir_separator=
10152  hardcode_minus_L=no
10153  hardcode_shlibpath_var=unsupported
10154  inherit_rpath=no
10155  link_all_deplibs=unknown
10156  module_cmds=
10157  module_expsym_cmds=
10158  old_archive_from_new_cmds=
10159  old_archive_from_expsyms_cmds=
10160  thread_safe_flag_spec=
10161  whole_archive_flag_spec=
10162  # include_expsyms should be a list of space-separated symbols to be *always*
10163  # included in the symbol list
10164  include_expsyms=
10165  # exclude_expsyms can be an extended regexp of symbols to exclude
10166  # it will be wrapped by ` (' and `)$', so one must not match beginning or
10167  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10168  # as well as any symbol that contains `d'.
10169  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10170  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10171  # platforms (ab)use it in PIC code, but their linkers get confused if
10172  # the symbol is explicitly referenced.  Since portable code cannot
10173  # rely on this symbol name, it's probably fine to never include it in
10174  # preloaded symbol tables.
10175  # Exclude shared library initialization/finalization symbols.
10176  extract_expsyms_cmds=
10177
10178  case $host_os in
10179  cygwin* | mingw* | pw32* | cegcc*)
10180    # FIXME: the MSVC++ port hasn't been tested in a loooong time
10181    # When not using gcc, we currently assume that we are using
10182    # Microsoft Visual C++.
10183    if test "$GCC" != yes; then
10184      with_gnu_ld=no
10185    fi
10186    ;;
10187  interix*)
10188    # we just hope/assume this is gcc and not c89 (= MSVC++)
10189    with_gnu_ld=yes
10190    ;;
10191  openbsd*)
10192    with_gnu_ld=no
10193    ;;
10194  linux* | k*bsd*-gnu | gnu*)
10195    link_all_deplibs=no
10196    ;;
10197  esac
10198
10199  ld_shlibs=yes
10200
10201  # On some targets, GNU ld is compatible enough with the native linker
10202  # that we're better off using the native interface for both.
10203  lt_use_gnu_ld_interface=no
10204  if test "$with_gnu_ld" = yes; then
10205    case $host_os in
10206      aix*)
10207	# The AIX port of GNU ld has always aspired to compatibility
10208	# with the native linker.  However, as the warning in the GNU ld
10209	# block says, versions before 2.19.5* couldn't really create working
10210	# shared libraries, regardless of the interface used.
10211	case `$LD -v 2>&1` in
10212	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10213	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10214	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10215	  *)
10216	    lt_use_gnu_ld_interface=yes
10217	    ;;
10218	esac
10219	;;
10220      *)
10221	lt_use_gnu_ld_interface=yes
10222	;;
10223    esac
10224  fi
10225
10226  if test "$lt_use_gnu_ld_interface" = yes; then
10227    # If archive_cmds runs LD, not CC, wlarc should be empty
10228    wlarc='${wl}'
10229
10230    # Set some defaults for GNU ld with shared library support. These
10231    # are reset later if shared libraries are not supported. Putting them
10232    # here allows them to be overridden if necessary.
10233    runpath_var=LD_RUN_PATH
10234    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10235    export_dynamic_flag_spec='${wl}--export-dynamic'
10236    # ancient GNU ld didn't support --whole-archive et. al.
10237    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10238      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10239    else
10240      whole_archive_flag_spec=
10241    fi
10242    supports_anon_versioning=no
10243    case `$LD -v 2>&1` in
10244      *GNU\ gold*) supports_anon_versioning=yes ;;
10245      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10246      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10247      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10248      *\ 2.11.*) ;; # other 2.11 versions
10249      *) supports_anon_versioning=yes ;;
10250    esac
10251
10252    # See if GNU ld supports shared libraries.
10253    case $host_os in
10254    aix[3-9]*)
10255      # On AIX/PPC, the GNU linker is very broken
10256      if test "$host_cpu" != ia64; then
10257	ld_shlibs=no
10258	cat <<_LT_EOF 1>&2
10259
10260*** Warning: the GNU linker, at least up to release 2.19, is reported
10261*** to be unable to reliably create shared libraries on AIX.
10262*** Therefore, libtool is disabling shared libraries support.  If you
10263*** really care for shared libraries, you may want to install binutils
10264*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10265*** You will then need to restart the configuration process.
10266
10267_LT_EOF
10268      fi
10269      ;;
10270
10271    amigaos*)
10272      case $host_cpu in
10273      powerpc)
10274            # see comment about AmigaOS4 .so support
10275            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10276            archive_expsym_cmds=''
10277        ;;
10278      m68k)
10279            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)'
10280            hardcode_libdir_flag_spec='-L$libdir'
10281            hardcode_minus_L=yes
10282        ;;
10283      esac
10284      ;;
10285
10286    beos*)
10287      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10288	allow_undefined_flag=unsupported
10289	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10290	# support --undefined.  This deserves some investigation.  FIXME
10291	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292      else
10293	ld_shlibs=no
10294      fi
10295      ;;
10296
10297    cygwin* | mingw* | pw32* | cegcc*)
10298      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10299      # as there is no search path for DLLs.
10300      hardcode_libdir_flag_spec='-L$libdir'
10301      export_dynamic_flag_spec='${wl}--export-all-symbols'
10302      allow_undefined_flag=unsupported
10303      always_export_symbols=no
10304      enable_shared_with_static_runtimes=yes
10305      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'
10306      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10307
10308      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10309        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10310	# If the export-symbols file already is a .def file (1st line
10311	# is EXPORTS), use it as is; otherwise, prepend...
10312	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10313	  cp $export_symbols $output_objdir/$soname.def;
10314	else
10315	  echo EXPORTS > $output_objdir/$soname.def;
10316	  cat $export_symbols >> $output_objdir/$soname.def;
10317	fi~
10318	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10319      else
10320	ld_shlibs=no
10321      fi
10322      ;;
10323
10324    haiku*)
10325      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10326      link_all_deplibs=yes
10327      ;;
10328
10329    interix[3-9]*)
10330      hardcode_direct=no
10331      hardcode_shlibpath_var=no
10332      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10333      export_dynamic_flag_spec='${wl}-E'
10334      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10335      # Instead, shared libraries are loaded at an image base (0x10000000 by
10336      # default) and relocated if they conflict, which is a slow very memory
10337      # consuming and fragmenting process.  To avoid this, we pick a random,
10338      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10339      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10340      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10341      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'
10342      ;;
10343
10344    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10345      tmp_diet=no
10346      if test "$host_os" = linux-dietlibc; then
10347	case $cc_basename in
10348	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
10349	esac
10350      fi
10351      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10352	 && test "$tmp_diet" = no
10353      then
10354	tmp_addflag=' $pic_flag'
10355	tmp_sharedflag='-shared'
10356	case $cc_basename,$host_cpu in
10357        pgcc*)				# Portland Group C compiler
10358	  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'
10359	  tmp_addflag=' $pic_flag'
10360	  ;;
10361	pgf77* | pgf90* | pgf95* | pgfortran*)
10362					# Portland Group f77 and f90 compilers
10363	  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'
10364	  tmp_addflag=' $pic_flag -Mnomain' ;;
10365	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
10366	  tmp_addflag=' -i_dynamic' ;;
10367	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
10368	  tmp_addflag=' -i_dynamic -nofor_main' ;;
10369	ifc* | ifort*)			# Intel Fortran compiler
10370	  tmp_addflag=' -nofor_main' ;;
10371	lf95*)				# Lahey Fortran 8.1
10372	  whole_archive_flag_spec=
10373	  tmp_sharedflag='--shared' ;;
10374	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10375	  tmp_sharedflag='-qmkshrobj'
10376	  tmp_addflag= ;;
10377	nvcc*)	# Cuda Compiler Driver 2.2
10378	  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'
10379	  compiler_needs_object=yes
10380	  ;;
10381	esac
10382	case `$CC -V 2>&1 | sed 5q` in
10383	*Sun\ C*)			# Sun C 5.9
10384	  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'
10385	  compiler_needs_object=yes
10386	  tmp_sharedflag='-G' ;;
10387	*Sun\ F*)			# Sun Fortran 8.3
10388	  tmp_sharedflag='-G' ;;
10389	esac
10390	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10391
10392        if test "x$supports_anon_versioning" = xyes; then
10393          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10394	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10395	    echo "local: *; };" >> $output_objdir/$libname.ver~
10396	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10397        fi
10398
10399	case $cc_basename in
10400	xlf* | bgf* | bgxlf* | mpixlf*)
10401	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10402	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10403	  hardcode_libdir_flag_spec=
10404	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
10405	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10406	  if test "x$supports_anon_versioning" = xyes; then
10407	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10408	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10409	      echo "local: *; };" >> $output_objdir/$libname.ver~
10410	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10411	  fi
10412	  ;;
10413	esac
10414      else
10415        ld_shlibs=no
10416      fi
10417      ;;
10418
10419    netbsd* | netbsdelf*-gnu)
10420      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10421	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10422	wlarc=
10423      else
10424	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10425	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10426      fi
10427      ;;
10428
10429    solaris*)
10430      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10431	ld_shlibs=no
10432	cat <<_LT_EOF 1>&2
10433
10434*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10435*** create shared libraries on Solaris systems.  Therefore, libtool
10436*** is disabling shared libraries support.  We urge you to upgrade GNU
10437*** binutils to release 2.9.1 or newer.  Another option is to modify
10438*** your PATH or compiler configuration so that the native linker is
10439*** used, and then restart.
10440
10441_LT_EOF
10442      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10443	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10444	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10445      else
10446	ld_shlibs=no
10447      fi
10448      ;;
10449
10450    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10451      case `$LD -v 2>&1` in
10452        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10453	ld_shlibs=no
10454	cat <<_LT_EOF 1>&2
10455
10456*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10457*** reliably create shared libraries on SCO systems.  Therefore, libtool
10458*** is disabling shared libraries support.  We urge you to upgrade GNU
10459*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10460*** your PATH or compiler configuration so that the native linker is
10461*** used, and then restart.
10462
10463_LT_EOF
10464	;;
10465	*)
10466	  # For security reasons, it is highly recommended that you always
10467	  # use absolute paths for naming shared libraries, and exclude the
10468	  # DT_RUNPATH tag from executables and libraries.  But doing so
10469	  # requires that you compile everything twice, which is a pain.
10470	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10471	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10472	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10473	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10474	  else
10475	    ld_shlibs=no
10476	  fi
10477	;;
10478      esac
10479      ;;
10480
10481    sunos4*)
10482      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10483      wlarc=
10484      hardcode_direct=yes
10485      hardcode_shlibpath_var=no
10486      ;;
10487
10488    *)
10489      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10490	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10491	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10492      else
10493	ld_shlibs=no
10494      fi
10495      ;;
10496    esac
10497
10498    if test "$ld_shlibs" = no; then
10499      runpath_var=
10500      hardcode_libdir_flag_spec=
10501      export_dynamic_flag_spec=
10502      whole_archive_flag_spec=
10503    fi
10504  else
10505    # PORTME fill in a description of your system's linker (not GNU ld)
10506    case $host_os in
10507    aix3*)
10508      allow_undefined_flag=unsupported
10509      always_export_symbols=yes
10510      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'
10511      # Note: this linker hardcodes the directories in LIBPATH if there
10512      # are no directories specified by -L.
10513      hardcode_minus_L=yes
10514      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10515	# Neither direct hardcoding nor static linking is supported with a
10516	# broken collect2.
10517	hardcode_direct=unsupported
10518      fi
10519      ;;
10520
10521    aix[4-9]*)
10522      if test "$host_cpu" = ia64; then
10523	# On IA64, the linker does run time linking by default, so we don't
10524	# have to do anything special.
10525	aix_use_runtimelinking=no
10526	exp_sym_flag='-Bexport'
10527	no_entry_flag=""
10528      else
10529	# If we're using GNU nm, then we don't want the "-C" option.
10530	# -C means demangle to AIX nm, but means don't demangle with GNU nm
10531	# Also, AIX nm treats weak defined symbols like other global
10532	# defined symbols, whereas GNU nm marks them as "W".
10533	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10534	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10535	else
10536	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10537	fi
10538	aix_use_runtimelinking=no
10539
10540	# Test if we are trying to use run time linking or normal
10541	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10542	# need to do runtime linking.
10543	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10544	  for ld_flag in $LDFLAGS; do
10545	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10546	    aix_use_runtimelinking=yes
10547	    break
10548	  fi
10549	  done
10550	  ;;
10551	esac
10552
10553	exp_sym_flag='-bexport'
10554	no_entry_flag='-bnoentry'
10555      fi
10556
10557      # When large executables or shared objects are built, AIX ld can
10558      # have problems creating the table of contents.  If linking a library
10559      # or program results in "error TOC overflow" add -mminimal-toc to
10560      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10561      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10562
10563      archive_cmds=''
10564      hardcode_direct=yes
10565      hardcode_direct_absolute=yes
10566      hardcode_libdir_separator=':'
10567      link_all_deplibs=yes
10568      file_list_spec='${wl}-f,'
10569
10570      if test "$GCC" = yes; then
10571	case $host_os in aix4.[012]|aix4.[012].*)
10572	# We only want to do this on AIX 4.2 and lower, the check
10573	# below for broken collect2 doesn't work under 4.3+
10574	  collect2name=`${CC} -print-prog-name=collect2`
10575	  if test -f "$collect2name" &&
10576	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10577	  then
10578	  # We have reworked collect2
10579	  :
10580	  else
10581	  # We have old collect2
10582	  hardcode_direct=unsupported
10583	  # It fails to find uninstalled libraries when the uninstalled
10584	  # path is not listed in the libpath.  Setting hardcode_minus_L
10585	  # to unsupported forces relinking
10586	  hardcode_minus_L=yes
10587	  hardcode_libdir_flag_spec='-L$libdir'
10588	  hardcode_libdir_separator=
10589	  fi
10590	  ;;
10591	esac
10592	shared_flag='-shared'
10593	if test "$aix_use_runtimelinking" = yes; then
10594	  shared_flag="$shared_flag "'${wl}-G'
10595	fi
10596	link_all_deplibs=no
10597      else
10598	# not using gcc
10599	if test "$host_cpu" = ia64; then
10600	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10601	# chokes on -Wl,-G. The following line is correct:
10602	  shared_flag='-G'
10603	else
10604	  if test "$aix_use_runtimelinking" = yes; then
10605	    shared_flag='${wl}-G'
10606	  else
10607	    shared_flag='${wl}-bM:SRE'
10608	  fi
10609	fi
10610      fi
10611
10612      export_dynamic_flag_spec='${wl}-bexpall'
10613      # It seems that -bexpall does not export symbols beginning with
10614      # underscore (_), so it is better to generate a list of symbols to export.
10615      always_export_symbols=yes
10616      if test "$aix_use_runtimelinking" = yes; then
10617	# Warning - without using the other runtime loading flags (-brtl),
10618	# -berok will link without error, but may produce a broken library.
10619	allow_undefined_flag='-berok'
10620        # Determine the default libpath from the value encoded in an
10621        # empty executable.
10622        if test "${lt_cv_aix_libpath+set}" = set; then
10623  aix_libpath=$lt_cv_aix_libpath
10624else
10625  if ${lt_cv_aix_libpath_+:} false; then :
10626  $as_echo_n "(cached) " >&6
10627else
10628  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h.  */
10630
10631int
10632main ()
10633{
10634
10635  ;
10636  return 0;
10637}
10638_ACEOF
10639if ac_fn_c_try_link "$LINENO"; then :
10640
10641  lt_aix_libpath_sed='
10642      /Import File Strings/,/^$/ {
10643	  /^0/ {
10644	      s/^0  *\([^ ]*\) *$/\1/
10645	      p
10646	  }
10647      }'
10648  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10649  # Check for a 64-bit object if we didn't find anything.
10650  if test -z "$lt_cv_aix_libpath_"; then
10651    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10652  fi
10653fi
10654rm -f core conftest.err conftest.$ac_objext \
10655    conftest$ac_exeext conftest.$ac_ext
10656  if test -z "$lt_cv_aix_libpath_"; then
10657    lt_cv_aix_libpath_="/usr/lib:/lib"
10658  fi
10659
10660fi
10661
10662  aix_libpath=$lt_cv_aix_libpath_
10663fi
10664
10665        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10666        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10667      else
10668	if test "$host_cpu" = ia64; then
10669	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10670	  allow_undefined_flag="-z nodefs"
10671	  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"
10672	else
10673	 # Determine the default libpath from the value encoded in an
10674	 # empty executable.
10675	 if test "${lt_cv_aix_libpath+set}" = set; then
10676  aix_libpath=$lt_cv_aix_libpath
10677else
10678  if ${lt_cv_aix_libpath_+:} false; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h.  */
10683
10684int
10685main ()
10686{
10687
10688  ;
10689  return 0;
10690}
10691_ACEOF
10692if ac_fn_c_try_link "$LINENO"; then :
10693
10694  lt_aix_libpath_sed='
10695      /Import File Strings/,/^$/ {
10696	  /^0/ {
10697	      s/^0  *\([^ ]*\) *$/\1/
10698	      p
10699	  }
10700      }'
10701  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10702  # Check for a 64-bit object if we didn't find anything.
10703  if test -z "$lt_cv_aix_libpath_"; then
10704    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10705  fi
10706fi
10707rm -f core conftest.err conftest.$ac_objext \
10708    conftest$ac_exeext conftest.$ac_ext
10709  if test -z "$lt_cv_aix_libpath_"; then
10710    lt_cv_aix_libpath_="/usr/lib:/lib"
10711  fi
10712
10713fi
10714
10715  aix_libpath=$lt_cv_aix_libpath_
10716fi
10717
10718	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10719	  # Warning - without using the other run time loading flags,
10720	  # -berok will link without error, but may produce a broken library.
10721	  no_undefined_flag=' ${wl}-bernotok'
10722	  allow_undefined_flag=' ${wl}-berok'
10723	  if test "$with_gnu_ld" = yes; then
10724	    # We only use this code for GNU lds that support --whole-archive.
10725	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10726	  else
10727	    # Exported symbols can be pulled into shared objects from archives
10728	    whole_archive_flag_spec='$convenience'
10729	  fi
10730	  archive_cmds_need_lc=yes
10731	  # This is similar to how AIX traditionally builds its shared libraries.
10732	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10733	fi
10734      fi
10735      ;;
10736
10737    amigaos*)
10738      case $host_cpu in
10739      powerpc)
10740            # see comment about AmigaOS4 .so support
10741            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10742            archive_expsym_cmds=''
10743        ;;
10744      m68k)
10745            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)'
10746            hardcode_libdir_flag_spec='-L$libdir'
10747            hardcode_minus_L=yes
10748        ;;
10749      esac
10750      ;;
10751
10752    bsdi[45]*)
10753      export_dynamic_flag_spec=-rdynamic
10754      ;;
10755
10756    cygwin* | mingw* | pw32* | cegcc*)
10757      # When not using gcc, we currently assume that we are using
10758      # Microsoft Visual C++.
10759      # hardcode_libdir_flag_spec is actually meaningless, as there is
10760      # no search path for DLLs.
10761      case $cc_basename in
10762      cl*)
10763	# Native MSVC
10764	hardcode_libdir_flag_spec=' '
10765	allow_undefined_flag=unsupported
10766	always_export_symbols=yes
10767	file_list_spec='@'
10768	# Tell ltmain to make .lib files, not .a files.
10769	libext=lib
10770	# Tell ltmain to make .dll files, not .so files.
10771	shrext_cmds=".dll"
10772	# FIXME: Setting linknames here is a bad hack.
10773	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10774	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10775	    sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10776	  else
10777	    sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10778	  fi~
10779	  $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10780	  linknames='
10781	# The linker will not automatically build a static lib if we build a DLL.
10782	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10783	enable_shared_with_static_runtimes=yes
10784	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10785	# Don't use ranlib
10786	old_postinstall_cmds='chmod 644 $oldlib'
10787	postlink_cmds='lt_outputfile="@OUTPUT@"~
10788	  lt_tool_outputfile="@TOOL_OUTPUT@"~
10789	  case $lt_outputfile in
10790	    *.exe|*.EXE) ;;
10791	    *)
10792	      lt_outputfile="$lt_outputfile.exe"
10793	      lt_tool_outputfile="$lt_tool_outputfile.exe"
10794	      ;;
10795	  esac~
10796	  if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10797	    $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10798	    $RM "$lt_outputfile.manifest";
10799	  fi'
10800	;;
10801      *)
10802	# Assume MSVC wrapper
10803	hardcode_libdir_flag_spec=' '
10804	allow_undefined_flag=unsupported
10805	# Tell ltmain to make .lib files, not .a files.
10806	libext=lib
10807	# Tell ltmain to make .dll files, not .so files.
10808	shrext_cmds=".dll"
10809	# FIXME: Setting linknames here is a bad hack.
10810	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10811	# The linker will automatically build a .lib file if we build a DLL.
10812	old_archive_from_new_cmds='true'
10813	# FIXME: Should let the user specify the lib program.
10814	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10815	enable_shared_with_static_runtimes=yes
10816	;;
10817      esac
10818      ;;
10819
10820    darwin* | rhapsody*)
10821
10822
10823  archive_cmds_need_lc=no
10824  hardcode_direct=no
10825  hardcode_automatic=yes
10826  hardcode_shlibpath_var=unsupported
10827  if test "$lt_cv_ld_force_load" = "yes"; then
10828    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\"`'
10829  else
10830    whole_archive_flag_spec=''
10831  fi
10832  link_all_deplibs=yes
10833  allow_undefined_flag="$_lt_dar_allow_undefined"
10834  case $cc_basename in
10835     ifort*) _lt_dar_can_shared=yes ;;
10836     *) _lt_dar_can_shared=$GCC ;;
10837  esac
10838  if test "$_lt_dar_can_shared" = "yes"; then
10839    output_verbose_link_cmd=func_echo_all
10840    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10841    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10842    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}"
10843    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}"
10844
10845  else
10846  ld_shlibs=no
10847  fi
10848
10849      ;;
10850
10851    dgux*)
10852      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10853      hardcode_libdir_flag_spec='-L$libdir'
10854      hardcode_shlibpath_var=no
10855      ;;
10856
10857    freebsd1*)
10858      ld_shlibs=no
10859      ;;
10860
10861    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10862    # support.  Future versions do this automatically, but an explicit c++rt0.o
10863    # does not break anything, and helps significantly (at the cost of a little
10864    # extra space).
10865    freebsd2.2*)
10866      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10867      hardcode_libdir_flag_spec='-R$libdir'
10868      hardcode_direct=yes
10869      hardcode_shlibpath_var=no
10870      ;;
10871
10872    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10873    freebsd2*)
10874      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10875      hardcode_direct=yes
10876      hardcode_minus_L=yes
10877      hardcode_shlibpath_var=no
10878      ;;
10879
10880    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10881    freebsd* | dragonfly*)
10882      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10883      hardcode_libdir_flag_spec='-R$libdir'
10884      hardcode_direct=yes
10885      hardcode_shlibpath_var=no
10886      ;;
10887
10888    hpux9*)
10889      if test "$GCC" = yes; then
10890	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10891      else
10892	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10893      fi
10894      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10895      hardcode_libdir_separator=:
10896      hardcode_direct=yes
10897
10898      # hardcode_minus_L: Not really in the search PATH,
10899      # but as the default location of the library.
10900      hardcode_minus_L=yes
10901      export_dynamic_flag_spec='${wl}-E'
10902      ;;
10903
10904    hpux10*)
10905      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10906	archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10907      else
10908	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10909      fi
10910      if test "$with_gnu_ld" = no; then
10911	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10912	hardcode_libdir_flag_spec_ld='+b $libdir'
10913	hardcode_libdir_separator=:
10914	hardcode_direct=yes
10915	hardcode_direct_absolute=yes
10916	export_dynamic_flag_spec='${wl}-E'
10917	# hardcode_minus_L: Not really in the search PATH,
10918	# but as the default location of the library.
10919	hardcode_minus_L=yes
10920      fi
10921      ;;
10922
10923    hpux11*)
10924      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10925	case $host_cpu in
10926	hppa*64*)
10927	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10928	  ;;
10929	ia64*)
10930	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10931	  ;;
10932	*)
10933	  archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10934	  ;;
10935	esac
10936      else
10937	case $host_cpu in
10938	hppa*64*)
10939	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10940	  ;;
10941	ia64*)
10942	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10943	  ;;
10944	*)
10945
10946	  # Older versions of the 11.00 compiler do not understand -b yet
10947	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10948	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10949$as_echo_n "checking if $CC understands -b... " >&6; }
10950if ${lt_cv_prog_compiler__b+:} false; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  lt_cv_prog_compiler__b=no
10954   save_LDFLAGS="$LDFLAGS"
10955   LDFLAGS="$LDFLAGS -b"
10956   echo "$lt_simple_link_test_code" > conftest.$ac_ext
10957   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10958     # The linker can only warn and ignore the option if not recognized
10959     # So say no if there are warnings
10960     if test -s conftest.err; then
10961       # Append any errors to the config.log.
10962       cat conftest.err 1>&5
10963       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10964       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10965       if diff conftest.exp conftest.er2 >/dev/null; then
10966         lt_cv_prog_compiler__b=yes
10967       fi
10968     else
10969       lt_cv_prog_compiler__b=yes
10970     fi
10971   fi
10972   $RM -r conftest*
10973   LDFLAGS="$save_LDFLAGS"
10974
10975fi
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10977$as_echo "$lt_cv_prog_compiler__b" >&6; }
10978
10979if test x"$lt_cv_prog_compiler__b" = xyes; then
10980    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10981else
10982    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10983fi
10984
10985	  ;;
10986	esac
10987      fi
10988      if test "$with_gnu_ld" = no; then
10989	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10990	hardcode_libdir_separator=:
10991
10992	case $host_cpu in
10993	hppa*64*|ia64*)
10994	  hardcode_direct=no
10995	  hardcode_shlibpath_var=no
10996	  ;;
10997	*)
10998	  hardcode_direct=yes
10999	  hardcode_direct_absolute=yes
11000	  export_dynamic_flag_spec='${wl}-E'
11001
11002	  # hardcode_minus_L: Not really in the search PATH,
11003	  # but as the default location of the library.
11004	  hardcode_minus_L=yes
11005	  ;;
11006	esac
11007      fi
11008      ;;
11009
11010    irix5* | irix6* | nonstopux*)
11011      if test "$GCC" = yes; then
11012	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'
11013	# Try to use the -exported_symbol ld option, if it does not
11014	# work, assume that -exports_file does not work either and
11015	# implicitly export all symbols.
11016	# This should be the same for all languages, so no per-tag cache variable.
11017	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11018$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11019if ${lt_cv_irix_exported_symbol+:} false; then :
11020  $as_echo_n "(cached) " >&6
11021else
11022  save_LDFLAGS="$LDFLAGS"
11023	   LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11024	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025/* end confdefs.h.  */
11026int foo (void) { return 0; }
11027_ACEOF
11028if ac_fn_c_try_link "$LINENO"; then :
11029  lt_cv_irix_exported_symbol=yes
11030else
11031  lt_cv_irix_exported_symbol=no
11032fi
11033rm -f core conftest.err conftest.$ac_objext \
11034    conftest$ac_exeext conftest.$ac_ext
11035           LDFLAGS="$save_LDFLAGS"
11036fi
11037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11038$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11039	if test "$lt_cv_irix_exported_symbol" = yes; then
11040          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'
11041	fi
11042      else
11043	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'
11044	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'
11045      fi
11046      archive_cmds_need_lc='no'
11047      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11048      hardcode_libdir_separator=:
11049      inherit_rpath=yes
11050      link_all_deplibs=yes
11051      ;;
11052
11053    netbsd* | netbsdelf*-gnu)
11054      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11055	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11056      else
11057	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11058      fi
11059      hardcode_libdir_flag_spec='-R$libdir'
11060      hardcode_direct=yes
11061      hardcode_shlibpath_var=no
11062      ;;
11063
11064    newsos6)
11065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11066      hardcode_direct=yes
11067      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11068      hardcode_libdir_separator=:
11069      hardcode_shlibpath_var=no
11070      ;;
11071
11072    *nto* | *qnx*)
11073      ;;
11074
11075    openbsd*)
11076      if test -f /usr/libexec/ld.so; then
11077	hardcode_direct=yes
11078	hardcode_shlibpath_var=no
11079	hardcode_direct_absolute=yes
11080	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11081	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11082	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11083	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11084	  export_dynamic_flag_spec='${wl}-E'
11085	else
11086	  case $host_os in
11087	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11088	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11089	     hardcode_libdir_flag_spec='-R$libdir'
11090	     ;;
11091	   *)
11092	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11093	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11094	     ;;
11095	  esac
11096	fi
11097      else
11098	ld_shlibs=no
11099      fi
11100      ;;
11101
11102    os2*)
11103      hardcode_libdir_flag_spec='-L$libdir'
11104      hardcode_minus_L=yes
11105      allow_undefined_flag=unsupported
11106      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11107      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11108      ;;
11109
11110    osf3*)
11111      if test "$GCC" = yes; then
11112	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11113	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'
11114      else
11115	allow_undefined_flag=' -expect_unresolved \*'
11116	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'
11117      fi
11118      archive_cmds_need_lc='no'
11119      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11120      hardcode_libdir_separator=:
11121      ;;
11122
11123    osf4* | osf5*)	# as osf3* with the addition of -msym flag
11124      if test "$GCC" = yes; then
11125	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11126	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'
11127	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11128      else
11129	allow_undefined_flag=' -expect_unresolved \*'
11130	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'
11131	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~
11132	$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'
11133
11134	# Both c and cxx compiler support -rpath directly
11135	hardcode_libdir_flag_spec='-rpath $libdir'
11136      fi
11137      archive_cmds_need_lc='no'
11138      hardcode_libdir_separator=:
11139      ;;
11140
11141    solaris*)
11142      no_undefined_flag=' -z defs'
11143      if test "$GCC" = yes; then
11144	wlarc='${wl}'
11145	archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11146	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11147	  $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'
11148      else
11149	case `$CC -V 2>&1` in
11150	*"Compilers 5.0"*)
11151	  wlarc=''
11152	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11153	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11154	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11155	  ;;
11156	*)
11157	  wlarc='${wl}'
11158	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11159	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11160	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11161	  ;;
11162	esac
11163      fi
11164      hardcode_libdir_flag_spec='-R$libdir'
11165      hardcode_shlibpath_var=no
11166      case $host_os in
11167      solaris2.[0-5] | solaris2.[0-5].*) ;;
11168      *)
11169	# The compiler driver will combine and reorder linker options,
11170	# but understands `-z linker_flag'.  GCC discards it without `$wl',
11171	# but is careful enough not to reorder.
11172	# Supported since Solaris 2.6 (maybe 2.5.1?)
11173	if test "$GCC" = yes; then
11174	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11175	else
11176	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11177	fi
11178	;;
11179      esac
11180      link_all_deplibs=yes
11181      ;;
11182
11183    sunos4*)
11184      if test "x$host_vendor" = xsequent; then
11185	# Use $CC to link under sequent, because it throws in some extra .o
11186	# files that make .init and .fini sections work.
11187	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11188      else
11189	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11190      fi
11191      hardcode_libdir_flag_spec='-L$libdir'
11192      hardcode_direct=yes
11193      hardcode_minus_L=yes
11194      hardcode_shlibpath_var=no
11195      ;;
11196
11197    sysv4)
11198      case $host_vendor in
11199	sni)
11200	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11201	  hardcode_direct=yes # is this really true???
11202	;;
11203	siemens)
11204	  ## LD is ld it makes a PLAMLIB
11205	  ## CC just makes a GrossModule.
11206	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11207	  reload_cmds='$CC -r -o $output$reload_objs'
11208	  hardcode_direct=no
11209        ;;
11210	motorola)
11211	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11212	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11213	;;
11214      esac
11215      runpath_var='LD_RUN_PATH'
11216      hardcode_shlibpath_var=no
11217      ;;
11218
11219    sysv4.3*)
11220      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221      hardcode_shlibpath_var=no
11222      export_dynamic_flag_spec='-Bexport'
11223      ;;
11224
11225    sysv4*MP*)
11226      if test -d /usr/nec; then
11227	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228	hardcode_shlibpath_var=no
11229	runpath_var=LD_RUN_PATH
11230	hardcode_runpath_var=yes
11231	ld_shlibs=yes
11232      fi
11233      ;;
11234
11235    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11236      no_undefined_flag='${wl}-z,text'
11237      archive_cmds_need_lc=no
11238      hardcode_shlibpath_var=no
11239      runpath_var='LD_RUN_PATH'
11240
11241      if test "$GCC" = yes; then
11242	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11243	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11244      else
11245	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11246	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11247      fi
11248      ;;
11249
11250    sysv5* | sco3.2v5* | sco5v6*)
11251      # Note: We can NOT use -z defs as we might desire, because we do not
11252      # link with -lc, and that would cause any symbols used from libc to
11253      # always be unresolved, which means just about no library would
11254      # ever link correctly.  If we're not using GNU ld we use -z text
11255      # though, which does catch some bad symbols but isn't as heavy-handed
11256      # as -z defs.
11257      no_undefined_flag='${wl}-z,text'
11258      allow_undefined_flag='${wl}-z,nodefs'
11259      archive_cmds_need_lc=no
11260      hardcode_shlibpath_var=no
11261      hardcode_libdir_flag_spec='${wl}-R,$libdir'
11262      hardcode_libdir_separator=':'
11263      link_all_deplibs=yes
11264      export_dynamic_flag_spec='${wl}-Bexport'
11265      runpath_var='LD_RUN_PATH'
11266
11267      if test "$GCC" = yes; then
11268	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11269	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11270      else
11271	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11273      fi
11274      ;;
11275
11276    uts4*)
11277      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11278      hardcode_libdir_flag_spec='-L$libdir'
11279      hardcode_shlibpath_var=no
11280      ;;
11281
11282    *)
11283      ld_shlibs=no
11284      ;;
11285    esac
11286
11287    if test x$host_vendor = xsni; then
11288      case $host in
11289      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11290	export_dynamic_flag_spec='${wl}-Blargedynsym'
11291	;;
11292      esac
11293    fi
11294  fi
11295
11296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11297$as_echo "$ld_shlibs" >&6; }
11298test "$ld_shlibs" = no && can_build_shared=no
11299
11300with_gnu_ld=$with_gnu_ld
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316#
11317# Do we need to explicitly link libc?
11318#
11319case "x$archive_cmds_need_lc" in
11320x|xyes)
11321  # Assume -lc should be added
11322  archive_cmds_need_lc=yes
11323
11324  if test "$enable_shared" = yes && test "$GCC" = yes; then
11325    case $archive_cmds in
11326    *'~'*)
11327      # FIXME: we may have to deal with multi-command sequences.
11328      ;;
11329    '$CC '*)
11330      # Test whether the compiler implicitly links with -lc since on some
11331      # systems, -lgcc has to come before -lc. If gcc already passes -lc
11332      # to ld, don't add -lc before -lgcc.
11333      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11334$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11335if ${lt_cv_archive_cmds_need_lc+:} false; then :
11336  $as_echo_n "(cached) " >&6
11337else
11338  $RM conftest*
11339	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11340
11341	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11342  (eval $ac_compile) 2>&5
11343  ac_status=$?
11344  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11345  test $ac_status = 0; } 2>conftest.err; then
11346	  soname=conftest
11347	  lib=conftest
11348	  libobjs=conftest.$ac_objext
11349	  deplibs=
11350	  wl=$lt_prog_compiler_wl
11351	  pic_flag=$lt_prog_compiler_pic
11352	  compiler_flags=-v
11353	  linker_flags=-v
11354	  verstring=
11355	  output_objdir=.
11356	  libname=conftest
11357	  lt_save_allow_undefined_flag=$allow_undefined_flag
11358	  allow_undefined_flag=
11359	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11360  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11361  ac_status=$?
11362  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11363  test $ac_status = 0; }
11364	  then
11365	    lt_cv_archive_cmds_need_lc=no
11366	  else
11367	    lt_cv_archive_cmds_need_lc=yes
11368	  fi
11369	  allow_undefined_flag=$lt_save_allow_undefined_flag
11370	else
11371	  cat conftest.err 1>&5
11372	fi
11373	$RM conftest*
11374
11375fi
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11377$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11378      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11379      ;;
11380    esac
11381  fi
11382  ;;
11383esac
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484
11485
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11542$as_echo_n "checking dynamic linker characteristics... " >&6; }
11543
11544if test "$GCC" = yes; then
11545  case $host_os in
11546    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11547    *) lt_awk_arg="/^libraries:/" ;;
11548  esac
11549  case $host_os in
11550    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11551    *) lt_sed_strip_eq="s,=/,/,g" ;;
11552  esac
11553  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11554  case $lt_search_path_spec in
11555  *\;*)
11556    # if the path contains ";" then we assume it to be the separator
11557    # otherwise default to the standard path separator (i.e. ":") - it is
11558    # assumed that no part of a normal pathname contains ";" but that should
11559    # okay in the real world where ";" in dirpaths is itself problematic.
11560    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11561    ;;
11562  *)
11563    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11564    ;;
11565  esac
11566  # Ok, now we have the path, separated by spaces, we can step through it
11567  # and add multilib dir if necessary.
11568  lt_tmp_lt_search_path_spec=
11569  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11570  for lt_sys_path in $lt_search_path_spec; do
11571    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11572      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11573    else
11574      test -d "$lt_sys_path" && \
11575	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11576    fi
11577  done
11578  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11579BEGIN {RS=" "; FS="/|\n";} {
11580  lt_foo="";
11581  lt_count=0;
11582  for (lt_i = NF; lt_i > 0; lt_i--) {
11583    if ($lt_i != "" && $lt_i != ".") {
11584      if ($lt_i == "..") {
11585        lt_count++;
11586      } else {
11587        if (lt_count == 0) {
11588          lt_foo="/" $lt_i lt_foo;
11589        } else {
11590          lt_count--;
11591        }
11592      }
11593    }
11594  }
11595  if (lt_foo != "") { lt_freq[lt_foo]++; }
11596  if (lt_freq[lt_foo] == 1) { print lt_foo; }
11597}'`
11598  # AWK program above erroneously prepends '/' to C:/dos/paths
11599  # for these hosts.
11600  case $host_os in
11601    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11602      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11603  esac
11604  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11605else
11606  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11607fi
11608library_names_spec=
11609libname_spec='lib$name'
11610soname_spec=
11611shrext_cmds=".so"
11612postinstall_cmds=
11613postuninstall_cmds=
11614finish_cmds=
11615finish_eval=
11616shlibpath_var=
11617shlibpath_overrides_runpath=unknown
11618version_type=none
11619dynamic_linker="$host_os ld.so"
11620sys_lib_dlsearch_path_spec="/lib /usr/lib"
11621need_lib_prefix=unknown
11622hardcode_into_libs=no
11623
11624# when you set need_version to no, make sure it does not cause -set_version
11625# flags to be left without arguments
11626need_version=unknown
11627
11628case $host_os in
11629aix3*)
11630  version_type=linux
11631  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11632  shlibpath_var=LIBPATH
11633
11634  # AIX 3 has no versioning support, so we append a major version to the name.
11635  soname_spec='${libname}${release}${shared_ext}$major'
11636  ;;
11637
11638aix[4-9]*)
11639  version_type=linux
11640  need_lib_prefix=no
11641  need_version=no
11642  hardcode_into_libs=yes
11643  if test "$host_cpu" = ia64; then
11644    # AIX 5 supports IA64
11645    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11646    shlibpath_var=LD_LIBRARY_PATH
11647  else
11648    # With GCC up to 2.95.x, collect2 would create an import file
11649    # for dependence libraries.  The import file would start with
11650    # the line `#! .'.  This would cause the generated library to
11651    # depend on `.', always an invalid library.  This was fixed in
11652    # development snapshots of GCC prior to 3.0.
11653    case $host_os in
11654      aix4 | aix4.[01] | aix4.[01].*)
11655      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11656	   echo ' yes '
11657	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11658	:
11659      else
11660	can_build_shared=no
11661      fi
11662      ;;
11663    esac
11664    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11665    # soname into executable. Probably we can add versioning support to
11666    # collect2, so additional links can be useful in future.
11667    if test "$aix_use_runtimelinking" = yes; then
11668      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11669      # instead of lib<name>.a to let people know that these are not
11670      # typical AIX shared libraries.
11671      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11672    else
11673      # We preserve .a as extension for shared libraries through AIX4.2
11674      # and later when we are not doing run time linking.
11675      library_names_spec='${libname}${release}.a $libname.a'
11676      soname_spec='${libname}${release}${shared_ext}$major'
11677    fi
11678    shlibpath_var=LIBPATH
11679  fi
11680  ;;
11681
11682amigaos*)
11683  case $host_cpu in
11684  powerpc)
11685    # Since July 2007 AmigaOS4 officially supports .so libraries.
11686    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11687    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11688    ;;
11689  m68k)
11690    library_names_spec='$libname.ixlibrary $libname.a'
11691    # Create ${libname}_ixlibrary.a entries in /sys/libs.
11692    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11693    ;;
11694  esac
11695  ;;
11696
11697beos*)
11698  library_names_spec='${libname}${shared_ext}'
11699  dynamic_linker="$host_os ld.so"
11700  shlibpath_var=LIBRARY_PATH
11701  ;;
11702
11703bsdi[45]*)
11704  version_type=linux
11705  need_version=no
11706  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11707  soname_spec='${libname}${release}${shared_ext}$major'
11708  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11709  shlibpath_var=LD_LIBRARY_PATH
11710  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11711  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11712  # the default ld.so.conf also contains /usr/contrib/lib and
11713  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11714  # libtool to hard-code these into programs
11715  ;;
11716
11717cygwin* | mingw* | pw32* | cegcc*)
11718  version_type=windows
11719  shrext_cmds=".dll"
11720  need_version=no
11721  need_lib_prefix=no
11722
11723  case $GCC,$cc_basename in
11724  yes,*)
11725    # gcc
11726    library_names_spec='$libname.dll.a'
11727    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11728    postinstall_cmds='base_file=`basename \${file}`~
11729      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11730      dldir=$destdir/`dirname \$dlpath`~
11731      test -d \$dldir || mkdir -p \$dldir~
11732      $install_prog $dir/$dlname \$dldir/$dlname~
11733      chmod a+x \$dldir/$dlname~
11734      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11735        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11736      fi'
11737    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11738      dlpath=$dir/\$dldll~
11739       $RM \$dlpath'
11740    shlibpath_overrides_runpath=yes
11741
11742    case $host_os in
11743    cygwin*)
11744      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11745      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11746
11747      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11748      ;;
11749    mingw* | cegcc*)
11750      # MinGW DLLs use traditional 'lib' prefix
11751      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11752      ;;
11753    pw32*)
11754      # pw32 DLLs use 'pw' prefix rather than 'lib'
11755      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11756      ;;
11757    esac
11758    dynamic_linker='Win32 ld.exe'
11759    ;;
11760
11761  *,cl*)
11762    # Native MSVC
11763    libname_spec='$name'
11764    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11765    library_names_spec='${libname}.dll.lib'
11766
11767    case $build_os in
11768    mingw*)
11769      sys_lib_search_path_spec=
11770      lt_save_ifs=$IFS
11771      IFS=';'
11772      for lt_path in $LIB
11773      do
11774        IFS=$lt_save_ifs
11775        # Let DOS variable expansion print the short 8.3 style file name.
11776        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11777        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11778      done
11779      IFS=$lt_save_ifs
11780      # Convert to MSYS style.
11781      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11782      ;;
11783    cygwin*)
11784      # Convert to unix form, then to dos form, then back to unix form
11785      # but this time dos style (no spaces!) so that the unix form looks
11786      # like /cygdrive/c/PROGRA~1:/cygdr...
11787      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11788      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11789      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11790      ;;
11791    *)
11792      sys_lib_search_path_spec="$LIB"
11793      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11794        # It is most probably a Windows format PATH.
11795        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11796      else
11797        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11798      fi
11799      # FIXME: find the short name or the path components, as spaces are
11800      # common. (e.g. "Program Files" -> "PROGRA~1")
11801      ;;
11802    esac
11803
11804    # DLL is installed to $(libdir)/../bin by postinstall_cmds
11805    postinstall_cmds='base_file=`basename \${file}`~
11806      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11807      dldir=$destdir/`dirname \$dlpath`~
11808      test -d \$dldir || mkdir -p \$dldir~
11809      $install_prog $dir/$dlname \$dldir/$dlname'
11810    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11811      dlpath=$dir/\$dldll~
11812       $RM \$dlpath'
11813    shlibpath_overrides_runpath=yes
11814    dynamic_linker='Win32 link.exe'
11815    ;;
11816
11817  *)
11818    # Assume MSVC wrapper
11819    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11820    dynamic_linker='Win32 ld.exe'
11821    ;;
11822  esac
11823  # FIXME: first we should search . and the directory the executable is in
11824  shlibpath_var=PATH
11825  ;;
11826
11827darwin* | rhapsody*)
11828  dynamic_linker="$host_os dyld"
11829  version_type=darwin
11830  need_lib_prefix=no
11831  need_version=no
11832  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11833  soname_spec='${libname}${release}${major}$shared_ext'
11834  shlibpath_overrides_runpath=yes
11835  shlibpath_var=DYLD_LIBRARY_PATH
11836  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11837
11838  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11839  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11840  ;;
11841
11842dgux*)
11843  version_type=linux
11844  need_lib_prefix=no
11845  need_version=no
11846  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11847  soname_spec='${libname}${release}${shared_ext}$major'
11848  shlibpath_var=LD_LIBRARY_PATH
11849  ;;
11850
11851freebsd1*)
11852  dynamic_linker=no
11853  ;;
11854
11855freebsd* | dragonfly*)
11856  # DragonFly does not have aout.  When/if they implement a new
11857  # versioning mechanism, adjust this.
11858  if test -x /usr/bin/objformat; then
11859    objformat=`/usr/bin/objformat`
11860  else
11861    case $host_os in
11862    freebsd[123]*) objformat=aout ;;
11863    *) objformat=elf ;;
11864    esac
11865  fi
11866  version_type=freebsd-$objformat
11867  case $version_type in
11868    freebsd-elf*)
11869      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11870      need_version=no
11871      need_lib_prefix=no
11872      ;;
11873    freebsd-*)
11874      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11875      need_version=yes
11876      ;;
11877  esac
11878  shlibpath_var=LD_LIBRARY_PATH
11879  case $host_os in
11880  freebsd2*)
11881    shlibpath_overrides_runpath=yes
11882    ;;
11883  freebsd3.[01]* | freebsdelf3.[01]*)
11884    shlibpath_overrides_runpath=yes
11885    hardcode_into_libs=yes
11886    ;;
11887  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11888  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11889    shlibpath_overrides_runpath=no
11890    hardcode_into_libs=yes
11891    ;;
11892  *) # from 4.6 on, and DragonFly
11893    shlibpath_overrides_runpath=yes
11894    hardcode_into_libs=yes
11895    ;;
11896  esac
11897  ;;
11898
11899gnu*)
11900  version_type=linux
11901  need_lib_prefix=no
11902  need_version=no
11903  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11904  soname_spec='${libname}${release}${shared_ext}$major'
11905  shlibpath_var=LD_LIBRARY_PATH
11906  shlibpath_overrides_runpath=no
11907  hardcode_into_libs=yes
11908  ;;
11909
11910haiku*)
11911  version_type=linux
11912  need_lib_prefix=no
11913  need_version=no
11914  dynamic_linker="$host_os runtime_loader"
11915  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11916  soname_spec='${libname}${release}${shared_ext}$major'
11917  shlibpath_var=LIBRARY_PATH
11918  shlibpath_overrides_runpath=yes
11919  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11920  hardcode_into_libs=yes
11921  ;;
11922
11923hpux9* | hpux10* | hpux11*)
11924  # Give a soname corresponding to the major version so that dld.sl refuses to
11925  # link against other versions.
11926  version_type=sunos
11927  need_lib_prefix=no
11928  need_version=no
11929  case $host_cpu in
11930  ia64*)
11931    shrext_cmds='.so'
11932    hardcode_into_libs=yes
11933    dynamic_linker="$host_os dld.so"
11934    shlibpath_var=LD_LIBRARY_PATH
11935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11937    soname_spec='${libname}${release}${shared_ext}$major'
11938    if test "X$HPUX_IA64_MODE" = X32; then
11939      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11940    else
11941      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11942    fi
11943    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11944    ;;
11945  hppa*64*)
11946    shrext_cmds='.sl'
11947    hardcode_into_libs=yes
11948    dynamic_linker="$host_os dld.sl"
11949    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11950    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11951    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11952    soname_spec='${libname}${release}${shared_ext}$major'
11953    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11954    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11955    ;;
11956  *)
11957    shrext_cmds='.sl'
11958    dynamic_linker="$host_os dld.sl"
11959    shlibpath_var=SHLIB_PATH
11960    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11961    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962    soname_spec='${libname}${release}${shared_ext}$major'
11963    ;;
11964  esac
11965  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11966  postinstall_cmds='chmod 555 $lib'
11967  # or fails outright, so override atomically:
11968  install_override_mode=555
11969  ;;
11970
11971interix[3-9]*)
11972  version_type=linux
11973  need_lib_prefix=no
11974  need_version=no
11975  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11976  soname_spec='${libname}${release}${shared_ext}$major'
11977  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11978  shlibpath_var=LD_LIBRARY_PATH
11979  shlibpath_overrides_runpath=no
11980  hardcode_into_libs=yes
11981  ;;
11982
11983irix5* | irix6* | nonstopux*)
11984  case $host_os in
11985    nonstopux*) version_type=nonstopux ;;
11986    *)
11987	if test "$lt_cv_prog_gnu_ld" = yes; then
11988		version_type=linux
11989	else
11990		version_type=irix
11991	fi ;;
11992  esac
11993  need_lib_prefix=no
11994  need_version=no
11995  soname_spec='${libname}${release}${shared_ext}$major'
11996  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11997  case $host_os in
11998  irix5* | nonstopux*)
11999    libsuff= shlibsuff=
12000    ;;
12001  *)
12002    case $LD in # libtool.m4 will add one of these switches to LD
12003    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12004      libsuff= shlibsuff= libmagic=32-bit;;
12005    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12006      libsuff=32 shlibsuff=N32 libmagic=N32;;
12007    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12008      libsuff=64 shlibsuff=64 libmagic=64-bit;;
12009    *) libsuff= shlibsuff= libmagic=never-match;;
12010    esac
12011    ;;
12012  esac
12013  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12014  shlibpath_overrides_runpath=no
12015  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12016  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12017  hardcode_into_libs=yes
12018  ;;
12019
12020# No shared lib support for Linux oldld, aout, or coff.
12021linux*oldld* | linux*aout* | linux*coff*)
12022  dynamic_linker=no
12023  ;;
12024
12025# This must be Linux ELF.
12026linux* | k*bsd*-gnu | kopensolaris*-gnu)
12027  version_type=linux
12028  need_lib_prefix=no
12029  need_version=no
12030  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12031  soname_spec='${libname}${release}${shared_ext}$major'
12032  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12033  shlibpath_var=LD_LIBRARY_PATH
12034  shlibpath_overrides_runpath=no
12035
12036  # Some binutils ld are patched to set DT_RUNPATH
12037  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12038  $as_echo_n "(cached) " >&6
12039else
12040  lt_cv_shlibpath_overrides_runpath=no
12041    save_LDFLAGS=$LDFLAGS
12042    save_libdir=$libdir
12043    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12044	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12046/* end confdefs.h.  */
12047
12048int
12049main ()
12050{
12051
12052  ;
12053  return 0;
12054}
12055_ACEOF
12056if ac_fn_c_try_link "$LINENO"; then :
12057  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12058  lt_cv_shlibpath_overrides_runpath=yes
12059fi
12060fi
12061rm -f core conftest.err conftest.$ac_objext \
12062    conftest$ac_exeext conftest.$ac_ext
12063    LDFLAGS=$save_LDFLAGS
12064    libdir=$save_libdir
12065
12066fi
12067
12068  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12069
12070  # This implies no fast_install, which is unacceptable.
12071  # Some rework will be needed to allow for fast_install
12072  # before this can be enabled.
12073  hardcode_into_libs=yes
12074
12075  # Append ld.so.conf contents to the search path
12076  if test -f /etc/ld.so.conf; then
12077    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' ' '`
12078    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12079  fi
12080
12081  # We used to test for /lib/ld.so.1 and disable shared libraries on
12082  # powerpc, because MkLinux only supported shared libraries with the
12083  # GNU dynamic linker.  Since this was broken with cross compilers,
12084  # most powerpc-linux boxes support dynamic linking these days and
12085  # people can always --disable-shared, the test was removed, and we
12086  # assume the GNU/Linux dynamic linker is in use.
12087  dynamic_linker='GNU/Linux ld.so'
12088  ;;
12089
12090netbsdelf*-gnu)
12091  version_type=linux
12092  need_lib_prefix=no
12093  need_version=no
12094  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12095  soname_spec='${libname}${release}${shared_ext}$major'
12096  shlibpath_var=LD_LIBRARY_PATH
12097  shlibpath_overrides_runpath=no
12098  hardcode_into_libs=yes
12099  dynamic_linker='NetBSD ld.elf_so'
12100  ;;
12101
12102netbsd*)
12103  version_type=sunos
12104  need_lib_prefix=no
12105  need_version=no
12106  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12107    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12108    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12109    dynamic_linker='NetBSD (a.out) ld.so'
12110  else
12111    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112    soname_spec='${libname}${release}${shared_ext}$major'
12113    dynamic_linker='NetBSD ld.elf_so'
12114  fi
12115  shlibpath_var=LD_LIBRARY_PATH
12116  shlibpath_overrides_runpath=yes
12117  hardcode_into_libs=yes
12118  ;;
12119
12120newsos6)
12121  version_type=linux
12122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123  shlibpath_var=LD_LIBRARY_PATH
12124  shlibpath_overrides_runpath=yes
12125  ;;
12126
12127*nto* | *qnx*)
12128  version_type=qnx
12129  need_lib_prefix=no
12130  need_version=no
12131  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132  soname_spec='${libname}${release}${shared_ext}$major'
12133  shlibpath_var=LD_LIBRARY_PATH
12134  shlibpath_overrides_runpath=no
12135  hardcode_into_libs=yes
12136  dynamic_linker='ldqnx.so'
12137  ;;
12138
12139openbsd*)
12140  version_type=sunos
12141  sys_lib_dlsearch_path_spec="/usr/lib"
12142  need_lib_prefix=no
12143  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12144  case $host_os in
12145    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
12146    *)				need_version=no  ;;
12147  esac
12148  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12149  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12150  shlibpath_var=LD_LIBRARY_PATH
12151  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12152    case $host_os in
12153      openbsd2.[89] | openbsd2.[89].*)
12154	shlibpath_overrides_runpath=no
12155	;;
12156      *)
12157	shlibpath_overrides_runpath=yes
12158	;;
12159      esac
12160  else
12161    shlibpath_overrides_runpath=yes
12162  fi
12163  ;;
12164
12165os2*)
12166  libname_spec='$name'
12167  shrext_cmds=".dll"
12168  need_lib_prefix=no
12169  library_names_spec='$libname${shared_ext} $libname.a'
12170  dynamic_linker='OS/2 ld.exe'
12171  shlibpath_var=LIBPATH
12172  ;;
12173
12174osf3* | osf4* | osf5*)
12175  version_type=osf
12176  need_lib_prefix=no
12177  need_version=no
12178  soname_spec='${libname}${release}${shared_ext}$major'
12179  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12180  shlibpath_var=LD_LIBRARY_PATH
12181  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12182  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12183  ;;
12184
12185rdos*)
12186  dynamic_linker=no
12187  ;;
12188
12189solaris*)
12190  version_type=linux
12191  need_lib_prefix=no
12192  need_version=no
12193  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12194  soname_spec='${libname}${release}${shared_ext}$major'
12195  shlibpath_var=LD_LIBRARY_PATH
12196  shlibpath_overrides_runpath=yes
12197  hardcode_into_libs=yes
12198  # ldd complains unless libraries are executable
12199  postinstall_cmds='chmod +x $lib'
12200  ;;
12201
12202sunos4*)
12203  version_type=sunos
12204  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12205  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12206  shlibpath_var=LD_LIBRARY_PATH
12207  shlibpath_overrides_runpath=yes
12208  if test "$with_gnu_ld" = yes; then
12209    need_lib_prefix=no
12210  fi
12211  need_version=yes
12212  ;;
12213
12214sysv4 | sysv4.3*)
12215  version_type=linux
12216  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12217  soname_spec='${libname}${release}${shared_ext}$major'
12218  shlibpath_var=LD_LIBRARY_PATH
12219  case $host_vendor in
12220    sni)
12221      shlibpath_overrides_runpath=no
12222      need_lib_prefix=no
12223      runpath_var=LD_RUN_PATH
12224      ;;
12225    siemens)
12226      need_lib_prefix=no
12227      ;;
12228    motorola)
12229      need_lib_prefix=no
12230      need_version=no
12231      shlibpath_overrides_runpath=no
12232      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12233      ;;
12234  esac
12235  ;;
12236
12237sysv4*MP*)
12238  if test -d /usr/nec ;then
12239    version_type=linux
12240    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12241    soname_spec='$libname${shared_ext}.$major'
12242    shlibpath_var=LD_LIBRARY_PATH
12243  fi
12244  ;;
12245
12246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12247  version_type=freebsd-elf
12248  need_lib_prefix=no
12249  need_version=no
12250  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12251  soname_spec='${libname}${release}${shared_ext}$major'
12252  shlibpath_var=LD_LIBRARY_PATH
12253  shlibpath_overrides_runpath=yes
12254  hardcode_into_libs=yes
12255  if test "$with_gnu_ld" = yes; then
12256    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12257  else
12258    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12259    case $host_os in
12260      sco3.2v5*)
12261        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12262	;;
12263    esac
12264  fi
12265  sys_lib_dlsearch_path_spec='/usr/lib'
12266  ;;
12267
12268tpf*)
12269  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12270  version_type=linux
12271  need_lib_prefix=no
12272  need_version=no
12273  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12274  shlibpath_var=LD_LIBRARY_PATH
12275  shlibpath_overrides_runpath=no
12276  hardcode_into_libs=yes
12277  ;;
12278
12279uts4*)
12280  version_type=linux
12281  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12282  soname_spec='${libname}${release}${shared_ext}$major'
12283  shlibpath_var=LD_LIBRARY_PATH
12284  ;;
12285
12286*)
12287  dynamic_linker=no
12288  ;;
12289esac
12290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12291$as_echo "$dynamic_linker" >&6; }
12292test "$dynamic_linker" = no && can_build_shared=no
12293
12294variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12295if test "$GCC" = yes; then
12296  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12297fi
12298
12299if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12300  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12301fi
12302if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12303  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12304fi
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
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393
12394
12395
12396
12397  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12398$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12399hardcode_action=
12400if test -n "$hardcode_libdir_flag_spec" ||
12401   test -n "$runpath_var" ||
12402   test "X$hardcode_automatic" = "Xyes" ; then
12403
12404  # We can hardcode non-existent directories.
12405  if test "$hardcode_direct" != no &&
12406     # If the only mechanism to avoid hardcoding is shlibpath_var, we
12407     # have to relink, otherwise we might link with an installed library
12408     # when we should be linking with a yet-to-be-installed one
12409     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12410     test "$hardcode_minus_L" != no; then
12411    # Linking always hardcodes the temporary library directory.
12412    hardcode_action=relink
12413  else
12414    # We can link without hardcoding, and we can hardcode nonexisting dirs.
12415    hardcode_action=immediate
12416  fi
12417else
12418  # We cannot hardcode anything, or else we can only hardcode existing
12419  # directories.
12420  hardcode_action=unsupported
12421fi
12422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12423$as_echo "$hardcode_action" >&6; }
12424
12425if test "$hardcode_action" = relink ||
12426   test "$inherit_rpath" = yes; then
12427  # Fast installation is not supported
12428  enable_fast_install=no
12429elif test "$shlibpath_overrides_runpath" = yes ||
12430     test "$enable_shared" = no; then
12431  # Fast installation is not necessary
12432  enable_fast_install=needless
12433fi
12434
12435
12436
12437
12438
12439
12440  if test "x$enable_dlopen" != xyes; then
12441  enable_dlopen=unknown
12442  enable_dlopen_self=unknown
12443  enable_dlopen_self_static=unknown
12444else
12445  lt_cv_dlopen=no
12446  lt_cv_dlopen_libs=
12447
12448  case $host_os in
12449  beos*)
12450    lt_cv_dlopen="load_add_on"
12451    lt_cv_dlopen_libs=
12452    lt_cv_dlopen_self=yes
12453    ;;
12454
12455  mingw* | pw32* | cegcc*)
12456    lt_cv_dlopen="LoadLibrary"
12457    lt_cv_dlopen_libs=
12458    ;;
12459
12460  cygwin*)
12461    lt_cv_dlopen="dlopen"
12462    lt_cv_dlopen_libs=
12463    ;;
12464
12465  darwin*)
12466  # if libdl is installed we need to link against it
12467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12468$as_echo_n "checking for dlopen in -ldl... " >&6; }
12469if ${ac_cv_lib_dl_dlopen+:} false; then :
12470  $as_echo_n "(cached) " >&6
12471else
12472  ac_check_lib_save_LIBS=$LIBS
12473LIBS="-ldl  $LIBS"
12474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12475/* end confdefs.h.  */
12476
12477/* Override any GCC internal prototype to avoid an error.
12478   Use char because int might match the return type of a GCC
12479   builtin and then its argument prototype would still apply.  */
12480#ifdef __cplusplus
12481extern "C"
12482#endif
12483char dlopen ();
12484int
12485main ()
12486{
12487return dlopen ();
12488  ;
12489  return 0;
12490}
12491_ACEOF
12492if ac_fn_c_try_link "$LINENO"; then :
12493  ac_cv_lib_dl_dlopen=yes
12494else
12495  ac_cv_lib_dl_dlopen=no
12496fi
12497rm -f core conftest.err conftest.$ac_objext \
12498    conftest$ac_exeext conftest.$ac_ext
12499LIBS=$ac_check_lib_save_LIBS
12500fi
12501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12502$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12503if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12504  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12505else
12506
12507    lt_cv_dlopen="dyld"
12508    lt_cv_dlopen_libs=
12509    lt_cv_dlopen_self=yes
12510
12511fi
12512
12513    ;;
12514
12515  *)
12516    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12517if test "x$ac_cv_func_shl_load" = xyes; then :
12518  lt_cv_dlopen="shl_load"
12519else
12520  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12521$as_echo_n "checking for shl_load in -ldld... " >&6; }
12522if ${ac_cv_lib_dld_shl_load+:} false; then :
12523  $as_echo_n "(cached) " >&6
12524else
12525  ac_check_lib_save_LIBS=$LIBS
12526LIBS="-ldld  $LIBS"
12527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12528/* end confdefs.h.  */
12529
12530/* Override any GCC internal prototype to avoid an error.
12531   Use char because int might match the return type of a GCC
12532   builtin and then its argument prototype would still apply.  */
12533#ifdef __cplusplus
12534extern "C"
12535#endif
12536char shl_load ();
12537int
12538main ()
12539{
12540return shl_load ();
12541  ;
12542  return 0;
12543}
12544_ACEOF
12545if ac_fn_c_try_link "$LINENO"; then :
12546  ac_cv_lib_dld_shl_load=yes
12547else
12548  ac_cv_lib_dld_shl_load=no
12549fi
12550rm -f core conftest.err conftest.$ac_objext \
12551    conftest$ac_exeext conftest.$ac_ext
12552LIBS=$ac_check_lib_save_LIBS
12553fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12555$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12556if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12557  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12558else
12559  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12560if test "x$ac_cv_func_dlopen" = xyes; then :
12561  lt_cv_dlopen="dlopen"
12562else
12563  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12564$as_echo_n "checking for dlopen in -ldl... " >&6; }
12565if ${ac_cv_lib_dl_dlopen+:} false; then :
12566  $as_echo_n "(cached) " >&6
12567else
12568  ac_check_lib_save_LIBS=$LIBS
12569LIBS="-ldl  $LIBS"
12570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12571/* end confdefs.h.  */
12572
12573/* Override any GCC internal prototype to avoid an error.
12574   Use char because int might match the return type of a GCC
12575   builtin and then its argument prototype would still apply.  */
12576#ifdef __cplusplus
12577extern "C"
12578#endif
12579char dlopen ();
12580int
12581main ()
12582{
12583return dlopen ();
12584  ;
12585  return 0;
12586}
12587_ACEOF
12588if ac_fn_c_try_link "$LINENO"; then :
12589  ac_cv_lib_dl_dlopen=yes
12590else
12591  ac_cv_lib_dl_dlopen=no
12592fi
12593rm -f core conftest.err conftest.$ac_objext \
12594    conftest$ac_exeext conftest.$ac_ext
12595LIBS=$ac_check_lib_save_LIBS
12596fi
12597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12598$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12599if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12600  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12601else
12602  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12603$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12604if ${ac_cv_lib_svld_dlopen+:} false; then :
12605  $as_echo_n "(cached) " >&6
12606else
12607  ac_check_lib_save_LIBS=$LIBS
12608LIBS="-lsvld  $LIBS"
12609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610/* end confdefs.h.  */
12611
12612/* Override any GCC internal prototype to avoid an error.
12613   Use char because int might match the return type of a GCC
12614   builtin and then its argument prototype would still apply.  */
12615#ifdef __cplusplus
12616extern "C"
12617#endif
12618char dlopen ();
12619int
12620main ()
12621{
12622return dlopen ();
12623  ;
12624  return 0;
12625}
12626_ACEOF
12627if ac_fn_c_try_link "$LINENO"; then :
12628  ac_cv_lib_svld_dlopen=yes
12629else
12630  ac_cv_lib_svld_dlopen=no
12631fi
12632rm -f core conftest.err conftest.$ac_objext \
12633    conftest$ac_exeext conftest.$ac_ext
12634LIBS=$ac_check_lib_save_LIBS
12635fi
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12637$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12638if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12639  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12640else
12641  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12642$as_echo_n "checking for dld_link in -ldld... " >&6; }
12643if ${ac_cv_lib_dld_dld_link+:} false; then :
12644  $as_echo_n "(cached) " >&6
12645else
12646  ac_check_lib_save_LIBS=$LIBS
12647LIBS="-ldld  $LIBS"
12648cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12649/* end confdefs.h.  */
12650
12651/* Override any GCC internal prototype to avoid an error.
12652   Use char because int might match the return type of a GCC
12653   builtin and then its argument prototype would still apply.  */
12654#ifdef __cplusplus
12655extern "C"
12656#endif
12657char dld_link ();
12658int
12659main ()
12660{
12661return dld_link ();
12662  ;
12663  return 0;
12664}
12665_ACEOF
12666if ac_fn_c_try_link "$LINENO"; then :
12667  ac_cv_lib_dld_dld_link=yes
12668else
12669  ac_cv_lib_dld_dld_link=no
12670fi
12671rm -f core conftest.err conftest.$ac_objext \
12672    conftest$ac_exeext conftest.$ac_ext
12673LIBS=$ac_check_lib_save_LIBS
12674fi
12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12676$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12677if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12678  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12679fi
12680
12681
12682fi
12683
12684
12685fi
12686
12687
12688fi
12689
12690
12691fi
12692
12693
12694fi
12695
12696    ;;
12697  esac
12698
12699  if test "x$lt_cv_dlopen" != xno; then
12700    enable_dlopen=yes
12701  else
12702    enable_dlopen=no
12703  fi
12704
12705  case $lt_cv_dlopen in
12706  dlopen)
12707    save_CPPFLAGS="$CPPFLAGS"
12708    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12709
12710    save_LDFLAGS="$LDFLAGS"
12711    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12712
12713    save_LIBS="$LIBS"
12714    LIBS="$lt_cv_dlopen_libs $LIBS"
12715
12716    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12717$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12718if ${lt_cv_dlopen_self+:} false; then :
12719  $as_echo_n "(cached) " >&6
12720else
12721  	  if test "$cross_compiling" = yes; then :
12722  lt_cv_dlopen_self=cross
12723else
12724  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12725  lt_status=$lt_dlunknown
12726  cat > conftest.$ac_ext <<_LT_EOF
12727#line $LINENO "configure"
12728#include "confdefs.h"
12729
12730#if HAVE_DLFCN_H
12731#include <dlfcn.h>
12732#endif
12733
12734#include <stdio.h>
12735
12736#ifdef RTLD_GLOBAL
12737#  define LT_DLGLOBAL		RTLD_GLOBAL
12738#else
12739#  ifdef DL_GLOBAL
12740#    define LT_DLGLOBAL		DL_GLOBAL
12741#  else
12742#    define LT_DLGLOBAL		0
12743#  endif
12744#endif
12745
12746/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12747   find out it does not work in some platform. */
12748#ifndef LT_DLLAZY_OR_NOW
12749#  ifdef RTLD_LAZY
12750#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12751#  else
12752#    ifdef DL_LAZY
12753#      define LT_DLLAZY_OR_NOW		DL_LAZY
12754#    else
12755#      ifdef RTLD_NOW
12756#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12757#      else
12758#        ifdef DL_NOW
12759#          define LT_DLLAZY_OR_NOW	DL_NOW
12760#        else
12761#          define LT_DLLAZY_OR_NOW	0
12762#        endif
12763#      endif
12764#    endif
12765#  endif
12766#endif
12767
12768/* When -fvisbility=hidden is used, assume the code has been annotated
12769   correspondingly for the symbols needed.  */
12770#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12771int fnord () __attribute__((visibility("default")));
12772#endif
12773
12774int fnord () { return 42; }
12775int main ()
12776{
12777  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12778  int status = $lt_dlunknown;
12779
12780  if (self)
12781    {
12782      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12783      else
12784        {
12785	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12786          else puts (dlerror ());
12787	}
12788      /* dlclose (self); */
12789    }
12790  else
12791    puts (dlerror ());
12792
12793  return status;
12794}
12795_LT_EOF
12796  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12797  (eval $ac_link) 2>&5
12798  ac_status=$?
12799  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12800  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12801    (./conftest; exit; ) >&5 2>/dev/null
12802    lt_status=$?
12803    case x$lt_status in
12804      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12805      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12806      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12807    esac
12808  else :
12809    # compilation failed
12810    lt_cv_dlopen_self=no
12811  fi
12812fi
12813rm -fr conftest*
12814
12815
12816fi
12817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12818$as_echo "$lt_cv_dlopen_self" >&6; }
12819
12820    if test "x$lt_cv_dlopen_self" = xyes; then
12821      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12822      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12823$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12824if ${lt_cv_dlopen_self_static+:} false; then :
12825  $as_echo_n "(cached) " >&6
12826else
12827  	  if test "$cross_compiling" = yes; then :
12828  lt_cv_dlopen_self_static=cross
12829else
12830  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12831  lt_status=$lt_dlunknown
12832  cat > conftest.$ac_ext <<_LT_EOF
12833#line $LINENO "configure"
12834#include "confdefs.h"
12835
12836#if HAVE_DLFCN_H
12837#include <dlfcn.h>
12838#endif
12839
12840#include <stdio.h>
12841
12842#ifdef RTLD_GLOBAL
12843#  define LT_DLGLOBAL		RTLD_GLOBAL
12844#else
12845#  ifdef DL_GLOBAL
12846#    define LT_DLGLOBAL		DL_GLOBAL
12847#  else
12848#    define LT_DLGLOBAL		0
12849#  endif
12850#endif
12851
12852/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12853   find out it does not work in some platform. */
12854#ifndef LT_DLLAZY_OR_NOW
12855#  ifdef RTLD_LAZY
12856#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12857#  else
12858#    ifdef DL_LAZY
12859#      define LT_DLLAZY_OR_NOW		DL_LAZY
12860#    else
12861#      ifdef RTLD_NOW
12862#        define LT_DLLAZY_OR_NOW	RTLD_NOW
12863#      else
12864#        ifdef DL_NOW
12865#          define LT_DLLAZY_OR_NOW	DL_NOW
12866#        else
12867#          define LT_DLLAZY_OR_NOW	0
12868#        endif
12869#      endif
12870#    endif
12871#  endif
12872#endif
12873
12874/* When -fvisbility=hidden is used, assume the code has been annotated
12875   correspondingly for the symbols needed.  */
12876#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12877int fnord () __attribute__((visibility("default")));
12878#endif
12879
12880int fnord () { return 42; }
12881int main ()
12882{
12883  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12884  int status = $lt_dlunknown;
12885
12886  if (self)
12887    {
12888      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12889      else
12890        {
12891	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12892          else puts (dlerror ());
12893	}
12894      /* dlclose (self); */
12895    }
12896  else
12897    puts (dlerror ());
12898
12899  return status;
12900}
12901_LT_EOF
12902  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12903  (eval $ac_link) 2>&5
12904  ac_status=$?
12905  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12906  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12907    (./conftest; exit; ) >&5 2>/dev/null
12908    lt_status=$?
12909    case x$lt_status in
12910      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12911      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12912      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12913    esac
12914  else :
12915    # compilation failed
12916    lt_cv_dlopen_self_static=no
12917  fi
12918fi
12919rm -fr conftest*
12920
12921
12922fi
12923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12924$as_echo "$lt_cv_dlopen_self_static" >&6; }
12925    fi
12926
12927    CPPFLAGS="$save_CPPFLAGS"
12928    LDFLAGS="$save_LDFLAGS"
12929    LIBS="$save_LIBS"
12930    ;;
12931  esac
12932
12933  case $lt_cv_dlopen_self in
12934  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12935  *) enable_dlopen_self=unknown ;;
12936  esac
12937
12938  case $lt_cv_dlopen_self_static in
12939  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12940  *) enable_dlopen_self_static=unknown ;;
12941  esac
12942fi
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960striplib=
12961old_striplib=
12962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12963$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12964if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12965  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12966  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12967  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968$as_echo "yes" >&6; }
12969else
12970# FIXME - insert some real tests, host_os isn't really good enough
12971  case $host_os in
12972  darwin*)
12973    if test -n "$STRIP" ; then
12974      striplib="$STRIP -x"
12975      old_striplib="$STRIP -S"
12976      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12977$as_echo "yes" >&6; }
12978    else
12979      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980$as_echo "no" >&6; }
12981    fi
12982    ;;
12983  *)
12984    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12985$as_echo "no" >&6; }
12986    ;;
12987  esac
12988fi
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001  # Report which library types will actually be built
13002  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13003$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13004  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13005$as_echo "$can_build_shared" >&6; }
13006
13007  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13008$as_echo_n "checking whether to build shared libraries... " >&6; }
13009  test "$can_build_shared" = "no" && enable_shared=no
13010
13011  # On AIX, shared libraries and static libraries use the same namespace, and
13012  # are all built from PIC.
13013  case $host_os in
13014  aix3*)
13015    test "$enable_shared" = yes && enable_static=no
13016    if test -n "$RANLIB"; then
13017      archive_cmds="$archive_cmds~\$RANLIB \$lib"
13018      postinstall_cmds='$RANLIB $lib'
13019    fi
13020    ;;
13021
13022  aix[4-9]*)
13023    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13024      test "$enable_shared" = yes && enable_static=no
13025    fi
13026    ;;
13027  esac
13028  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13029$as_echo "$enable_shared" >&6; }
13030
13031  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13032$as_echo_n "checking whether to build static libraries... " >&6; }
13033  # Make sure either enable_shared or enable_static is yes.
13034  test "$enable_shared" = yes || enable_static=yes
13035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13036$as_echo "$enable_static" >&6; }
13037
13038
13039
13040
13041fi
13042ac_ext=c
13043ac_cpp='$CPP $CPPFLAGS'
13044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046ac_compiler_gnu=$ac_cv_c_compiler_gnu
13047
13048CC="$lt_save_CC"
13049
13050      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13051    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13052    (test "X$CXX" != "Xg++"))) ; then
13053  ac_ext=cpp
13054ac_cpp='$CXXCPP $CPPFLAGS'
13055ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13056ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13057ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13059$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13060if test -z "$CXXCPP"; then
13061  if ${ac_cv_prog_CXXCPP+:} false; then :
13062  $as_echo_n "(cached) " >&6
13063else
13064      # Double quotes because CXXCPP needs to be expanded
13065    for CXXCPP in "$CXX -E" "/lib/cpp"
13066    do
13067      ac_preproc_ok=false
13068for ac_cxx_preproc_warn_flag in '' yes
13069do
13070  # Use a header file that comes with gcc, so configuring glibc
13071  # with a fresh cross-compiler works.
13072  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13073  # <limits.h> exists even on freestanding compilers.
13074  # On the NeXT, cc -E runs the code through the compiler's parser,
13075  # not just through cpp. "Syntax error" is here to catch this case.
13076  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077/* end confdefs.h.  */
13078#ifdef __STDC__
13079# include <limits.h>
13080#else
13081# include <assert.h>
13082#endif
13083		     Syntax error
13084_ACEOF
13085if ac_fn_cxx_try_cpp "$LINENO"; then :
13086
13087else
13088  # Broken: fails on valid input.
13089continue
13090fi
13091rm -f conftest.err conftest.i conftest.$ac_ext
13092
13093  # OK, works on sane cases.  Now check whether nonexistent headers
13094  # can be detected and how.
13095  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096/* end confdefs.h.  */
13097#include <ac_nonexistent.h>
13098_ACEOF
13099if ac_fn_cxx_try_cpp "$LINENO"; then :
13100  # Broken: success on invalid input.
13101continue
13102else
13103  # Passes both tests.
13104ac_preproc_ok=:
13105break
13106fi
13107rm -f conftest.err conftest.i conftest.$ac_ext
13108
13109done
13110# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13111rm -f conftest.i conftest.err conftest.$ac_ext
13112if $ac_preproc_ok; then :
13113  break
13114fi
13115
13116    done
13117    ac_cv_prog_CXXCPP=$CXXCPP
13118
13119fi
13120  CXXCPP=$ac_cv_prog_CXXCPP
13121else
13122  ac_cv_prog_CXXCPP=$CXXCPP
13123fi
13124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13125$as_echo "$CXXCPP" >&6; }
13126ac_preproc_ok=false
13127for ac_cxx_preproc_warn_flag in '' yes
13128do
13129  # Use a header file that comes with gcc, so configuring glibc
13130  # with a fresh cross-compiler works.
13131  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13132  # <limits.h> exists even on freestanding compilers.
13133  # On the NeXT, cc -E runs the code through the compiler's parser,
13134  # not just through cpp. "Syntax error" is here to catch this case.
13135  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137#ifdef __STDC__
13138# include <limits.h>
13139#else
13140# include <assert.h>
13141#endif
13142		     Syntax error
13143_ACEOF
13144if ac_fn_cxx_try_cpp "$LINENO"; then :
13145
13146else
13147  # Broken: fails on valid input.
13148continue
13149fi
13150rm -f conftest.err conftest.i conftest.$ac_ext
13151
13152  # OK, works on sane cases.  Now check whether nonexistent headers
13153  # can be detected and how.
13154  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13155/* end confdefs.h.  */
13156#include <ac_nonexistent.h>
13157_ACEOF
13158if ac_fn_cxx_try_cpp "$LINENO"; then :
13159  # Broken: success on invalid input.
13160continue
13161else
13162  # Passes both tests.
13163ac_preproc_ok=:
13164break
13165fi
13166rm -f conftest.err conftest.i conftest.$ac_ext
13167
13168done
13169# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13170rm -f conftest.i conftest.err conftest.$ac_ext
13171if $ac_preproc_ok; then :
13172
13173else
13174  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13176as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13177See \`config.log' for more details" "$LINENO" 5; }
13178fi
13179
13180ac_ext=c
13181ac_cpp='$CPP $CPPFLAGS'
13182ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13183ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13184ac_compiler_gnu=$ac_cv_c_compiler_gnu
13185
13186else
13187  _lt_caught_CXX_error=yes
13188fi
13189
13190ac_ext=cpp
13191ac_cpp='$CXXCPP $CPPFLAGS'
13192ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13193ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13194ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13195
13196archive_cmds_need_lc_CXX=no
13197allow_undefined_flag_CXX=
13198always_export_symbols_CXX=no
13199archive_expsym_cmds_CXX=
13200compiler_needs_object_CXX=no
13201export_dynamic_flag_spec_CXX=
13202hardcode_direct_CXX=no
13203hardcode_direct_absolute_CXX=no
13204hardcode_libdir_flag_spec_CXX=
13205hardcode_libdir_flag_spec_ld_CXX=
13206hardcode_libdir_separator_CXX=
13207hardcode_minus_L_CXX=no
13208hardcode_shlibpath_var_CXX=unsupported
13209hardcode_automatic_CXX=no
13210inherit_rpath_CXX=no
13211module_cmds_CXX=
13212module_expsym_cmds_CXX=
13213link_all_deplibs_CXX=unknown
13214old_archive_cmds_CXX=$old_archive_cmds
13215reload_flag_CXX=$reload_flag
13216reload_cmds_CXX=$reload_cmds
13217no_undefined_flag_CXX=
13218whole_archive_flag_spec_CXX=
13219enable_shared_with_static_runtimes_CXX=no
13220
13221# Source file extension for C++ test sources.
13222ac_ext=cpp
13223
13224# Object file extension for compiled C++ test sources.
13225objext=o
13226objext_CXX=$objext
13227
13228# No sense in running all these tests if we already determined that
13229# the CXX compiler isn't working.  Some variables (like enable_shared)
13230# are currently assumed to apply to all compilers on this platform,
13231# and will be corrupted by setting them based on a non-working compiler.
13232if test "$_lt_caught_CXX_error" != yes; then
13233  # Code to be used in simple compile tests
13234  lt_simple_compile_test_code="int some_variable = 0;"
13235
13236  # Code to be used in simple link tests
13237  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13238
13239  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13240
13241
13242
13243
13244
13245
13246# If no C compiler was specified, use CC.
13247LTCC=${LTCC-"$CC"}
13248
13249# If no C compiler flags were specified, use CFLAGS.
13250LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13251
13252# Allow CC to be a program name with arguments.
13253compiler=$CC
13254
13255
13256  # save warnings/boilerplate of simple test code
13257  ac_outfile=conftest.$ac_objext
13258echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13259eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13260_lt_compiler_boilerplate=`cat conftest.err`
13261$RM conftest*
13262
13263  ac_outfile=conftest.$ac_objext
13264echo "$lt_simple_link_test_code" >conftest.$ac_ext
13265eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13266_lt_linker_boilerplate=`cat conftest.err`
13267$RM -r conftest*
13268
13269
13270  # Allow CC to be a program name with arguments.
13271  lt_save_CC=$CC
13272  lt_save_CFLAGS=$CFLAGS
13273  lt_save_LD=$LD
13274  lt_save_GCC=$GCC
13275  GCC=$GXX
13276  lt_save_with_gnu_ld=$with_gnu_ld
13277  lt_save_path_LD=$lt_cv_path_LD
13278  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13279    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13280  else
13281    $as_unset lt_cv_prog_gnu_ld
13282  fi
13283  if test -n "${lt_cv_path_LDCXX+set}"; then
13284    lt_cv_path_LD=$lt_cv_path_LDCXX
13285  else
13286    $as_unset lt_cv_path_LD
13287  fi
13288  test -z "${LDCXX+set}" || LD=$LDCXX
13289  CC=${CXX-"c++"}
13290  CFLAGS=$CXXFLAGS
13291  compiler=$CC
13292  compiler_CXX=$CC
13293  for cc_temp in $compiler""; do
13294  case $cc_temp in
13295    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13296    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13297    \-*) ;;
13298    *) break;;
13299  esac
13300done
13301cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13302
13303
13304  if test -n "$compiler"; then
13305    # We don't want -fno-exception when compiling C++ code, so set the
13306    # no_builtin_flag separately
13307    if test "$GXX" = yes; then
13308      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13309    else
13310      lt_prog_compiler_no_builtin_flag_CXX=
13311    fi
13312
13313    if test "$GXX" = yes; then
13314      # Set up default GNU C++ configuration
13315
13316
13317
13318# Check whether --with-gnu-ld was given.
13319if test "${with_gnu_ld+set}" = set; then :
13320  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13321else
13322  with_gnu_ld=no
13323fi
13324
13325ac_prog=ld
13326if test "$GCC" = yes; then
13327  # Check if gcc -print-prog-name=ld gives a path.
13328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13329$as_echo_n "checking for ld used by $CC... " >&6; }
13330  case $host in
13331  *-*-mingw*)
13332    # gcc leaves a trailing carriage return which upsets mingw
13333    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13334  *)
13335    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13336  esac
13337  case $ac_prog in
13338    # Accept absolute paths.
13339    [\\/]* | ?:[\\/]*)
13340      re_direlt='/[^/][^/]*/\.\./'
13341      # Canonicalize the pathname of ld
13342      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13343      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13344	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13345      done
13346      test -z "$LD" && LD="$ac_prog"
13347      ;;
13348  "")
13349    # If it fails, then pretend we aren't using GCC.
13350    ac_prog=ld
13351    ;;
13352  *)
13353    # If it is relative, then search for the first ld in PATH.
13354    with_gnu_ld=unknown
13355    ;;
13356  esac
13357elif test "$with_gnu_ld" = yes; then
13358  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13359$as_echo_n "checking for GNU ld... " >&6; }
13360else
13361  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13362$as_echo_n "checking for non-GNU ld... " >&6; }
13363fi
13364if ${lt_cv_path_LD+:} false; then :
13365  $as_echo_n "(cached) " >&6
13366else
13367  if test -z "$LD"; then
13368  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13369  for ac_dir in $PATH; do
13370    IFS="$lt_save_ifs"
13371    test -z "$ac_dir" && ac_dir=.
13372    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13373      lt_cv_path_LD="$ac_dir/$ac_prog"
13374      # Check to see if the program is GNU ld.  I'd rather use --version,
13375      # but apparently some variants of GNU ld only accept -v.
13376      # Break only if it was the GNU/non-GNU ld that we prefer.
13377      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13378      *GNU* | *'with BFD'*)
13379	test "$with_gnu_ld" != no && break
13380	;;
13381      *)
13382	test "$with_gnu_ld" != yes && break
13383	;;
13384      esac
13385    fi
13386  done
13387  IFS="$lt_save_ifs"
13388else
13389  lt_cv_path_LD="$LD" # Let the user override the test with a path.
13390fi
13391fi
13392
13393LD="$lt_cv_path_LD"
13394if test -n "$LD"; then
13395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13396$as_echo "$LD" >&6; }
13397else
13398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13399$as_echo "no" >&6; }
13400fi
13401test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13403$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13404if ${lt_cv_prog_gnu_ld+:} false; then :
13405  $as_echo_n "(cached) " >&6
13406else
13407  # I'd rather use --version here, but apparently some GNU lds only accept -v.
13408case `$LD -v 2>&1 </dev/null` in
13409*GNU* | *'with BFD'*)
13410  lt_cv_prog_gnu_ld=yes
13411  ;;
13412*)
13413  lt_cv_prog_gnu_ld=no
13414  ;;
13415esac
13416fi
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13418$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13419with_gnu_ld=$lt_cv_prog_gnu_ld
13420
13421
13422
13423
13424
13425
13426
13427      # Check if GNU C++ uses GNU ld as the underlying linker, since the
13428      # archiving commands below assume that GNU ld is being used.
13429      if test "$with_gnu_ld" = yes; then
13430        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13431        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13432
13433        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13434        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13435
13436        # If archive_cmds runs LD, not CC, wlarc should be empty
13437        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13438        #     investigate it a little bit more. (MM)
13439        wlarc='${wl}'
13440
13441        # ancient GNU ld didn't support --whole-archive et. al.
13442        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13443	  $GREP 'no-whole-archive' > /dev/null; then
13444          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13445        else
13446          whole_archive_flag_spec_CXX=
13447        fi
13448      else
13449        with_gnu_ld=no
13450        wlarc=
13451
13452        # A generic and very simple default shared library creation
13453        # command for GNU C++ for the case where it uses the native
13454        # linker, instead of GNU ld.  If possible, this setting should
13455        # overridden to take advantage of the native linker features on
13456        # the platform it is being used on.
13457        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13458      fi
13459
13460      # Commands to make compiler produce verbose output that lists
13461      # what "hidden" libraries, object files and flags are used when
13462      # linking a shared library.
13463      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13464
13465    else
13466      GXX=no
13467      with_gnu_ld=no
13468      wlarc=
13469    fi
13470
13471    # PORTME: fill in a description of your system's C++ link characteristics
13472    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13473$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13474    ld_shlibs_CXX=yes
13475    case $host_os in
13476      aix3*)
13477        # FIXME: insert proper C++ library support
13478        ld_shlibs_CXX=no
13479        ;;
13480      aix[4-9]*)
13481        if test "$host_cpu" = ia64; then
13482          # On IA64, the linker does run time linking by default, so we don't
13483          # have to do anything special.
13484          aix_use_runtimelinking=no
13485          exp_sym_flag='-Bexport'
13486          no_entry_flag=""
13487        else
13488          aix_use_runtimelinking=no
13489
13490          # Test if we are trying to use run time linking or normal
13491          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13492          # need to do runtime linking.
13493          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13494	    for ld_flag in $LDFLAGS; do
13495	      case $ld_flag in
13496	      *-brtl*)
13497	        aix_use_runtimelinking=yes
13498	        break
13499	        ;;
13500	      esac
13501	    done
13502	    ;;
13503          esac
13504
13505          exp_sym_flag='-bexport'
13506          no_entry_flag='-bnoentry'
13507        fi
13508
13509        # When large executables or shared objects are built, AIX ld can
13510        # have problems creating the table of contents.  If linking a library
13511        # or program results in "error TOC overflow" add -mminimal-toc to
13512        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13513        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13514
13515        archive_cmds_CXX=''
13516        hardcode_direct_CXX=yes
13517        hardcode_direct_absolute_CXX=yes
13518        hardcode_libdir_separator_CXX=':'
13519        link_all_deplibs_CXX=yes
13520        file_list_spec_CXX='${wl}-f,'
13521
13522        if test "$GXX" = yes; then
13523          case $host_os in aix4.[012]|aix4.[012].*)
13524          # We only want to do this on AIX 4.2 and lower, the check
13525          # below for broken collect2 doesn't work under 4.3+
13526	  collect2name=`${CC} -print-prog-name=collect2`
13527	  if test -f "$collect2name" &&
13528	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13529	  then
13530	    # We have reworked collect2
13531	    :
13532	  else
13533	    # We have old collect2
13534	    hardcode_direct_CXX=unsupported
13535	    # It fails to find uninstalled libraries when the uninstalled
13536	    # path is not listed in the libpath.  Setting hardcode_minus_L
13537	    # to unsupported forces relinking
13538	    hardcode_minus_L_CXX=yes
13539	    hardcode_libdir_flag_spec_CXX='-L$libdir'
13540	    hardcode_libdir_separator_CXX=
13541	  fi
13542          esac
13543          shared_flag='-shared'
13544	  if test "$aix_use_runtimelinking" = yes; then
13545	    shared_flag="$shared_flag "'${wl}-G'
13546	  fi
13547        else
13548          # not using gcc
13549          if test "$host_cpu" = ia64; then
13550	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13551	  # chokes on -Wl,-G. The following line is correct:
13552	  shared_flag='-G'
13553          else
13554	    if test "$aix_use_runtimelinking" = yes; then
13555	      shared_flag='${wl}-G'
13556	    else
13557	      shared_flag='${wl}-bM:SRE'
13558	    fi
13559          fi
13560        fi
13561
13562        export_dynamic_flag_spec_CXX='${wl}-bexpall'
13563        # It seems that -bexpall does not export symbols beginning with
13564        # underscore (_), so it is better to generate a list of symbols to
13565	# export.
13566        always_export_symbols_CXX=yes
13567        if test "$aix_use_runtimelinking" = yes; then
13568          # Warning - without using the other runtime loading flags (-brtl),
13569          # -berok will link without error, but may produce a broken library.
13570          allow_undefined_flag_CXX='-berok'
13571          # Determine the default libpath from the value encoded in an empty
13572          # executable.
13573          if test "${lt_cv_aix_libpath+set}" = set; then
13574  aix_libpath=$lt_cv_aix_libpath
13575else
13576  if ${lt_cv_aix_libpath__CXX+:} false; then :
13577  $as_echo_n "(cached) " >&6
13578else
13579  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13580/* end confdefs.h.  */
13581
13582int
13583main ()
13584{
13585
13586  ;
13587  return 0;
13588}
13589_ACEOF
13590if ac_fn_cxx_try_link "$LINENO"; then :
13591
13592  lt_aix_libpath_sed='
13593      /Import File Strings/,/^$/ {
13594	  /^0/ {
13595	      s/^0  *\([^ ]*\) *$/\1/
13596	      p
13597	  }
13598      }'
13599  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13600  # Check for a 64-bit object if we didn't find anything.
13601  if test -z "$lt_cv_aix_libpath__CXX"; then
13602    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13603  fi
13604fi
13605rm -f core conftest.err conftest.$ac_objext \
13606    conftest$ac_exeext conftest.$ac_ext
13607  if test -z "$lt_cv_aix_libpath__CXX"; then
13608    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13609  fi
13610
13611fi
13612
13613  aix_libpath=$lt_cv_aix_libpath__CXX
13614fi
13615
13616          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13617
13618          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13619        else
13620          if test "$host_cpu" = ia64; then
13621	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13622	    allow_undefined_flag_CXX="-z nodefs"
13623	    archive_expsym_cmds_CXX="\$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"
13624          else
13625	    # Determine the default libpath from the value encoded in an
13626	    # empty executable.
13627	    if test "${lt_cv_aix_libpath+set}" = set; then
13628  aix_libpath=$lt_cv_aix_libpath
13629else
13630  if ${lt_cv_aix_libpath__CXX+:} false; then :
13631  $as_echo_n "(cached) " >&6
13632else
13633  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13634/* end confdefs.h.  */
13635
13636int
13637main ()
13638{
13639
13640  ;
13641  return 0;
13642}
13643_ACEOF
13644if ac_fn_cxx_try_link "$LINENO"; then :
13645
13646  lt_aix_libpath_sed='
13647      /Import File Strings/,/^$/ {
13648	  /^0/ {
13649	      s/^0  *\([^ ]*\) *$/\1/
13650	      p
13651	  }
13652      }'
13653  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13654  # Check for a 64-bit object if we didn't find anything.
13655  if test -z "$lt_cv_aix_libpath__CXX"; then
13656    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13657  fi
13658fi
13659rm -f core conftest.err conftest.$ac_objext \
13660    conftest$ac_exeext conftest.$ac_ext
13661  if test -z "$lt_cv_aix_libpath__CXX"; then
13662    lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13663  fi
13664
13665fi
13666
13667  aix_libpath=$lt_cv_aix_libpath__CXX
13668fi
13669
13670	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13671	    # Warning - without using the other run time loading flags,
13672	    # -berok will link without error, but may produce a broken library.
13673	    no_undefined_flag_CXX=' ${wl}-bernotok'
13674	    allow_undefined_flag_CXX=' ${wl}-berok'
13675	    if test "$with_gnu_ld" = yes; then
13676	      # We only use this code for GNU lds that support --whole-archive.
13677	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13678	    else
13679	      # Exported symbols can be pulled into shared objects from archives
13680	      whole_archive_flag_spec_CXX='$convenience'
13681	    fi
13682	    archive_cmds_need_lc_CXX=yes
13683	    # This is similar to how AIX traditionally builds its shared
13684	    # libraries.
13685	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13686          fi
13687        fi
13688        ;;
13689
13690      beos*)
13691	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13692	  allow_undefined_flag_CXX=unsupported
13693	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13694	  # support --undefined.  This deserves some investigation.  FIXME
13695	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13696	else
13697	  ld_shlibs_CXX=no
13698	fi
13699	;;
13700
13701      chorus*)
13702        case $cc_basename in
13703          *)
13704	  # FIXME: insert proper C++ library support
13705	  ld_shlibs_CXX=no
13706	  ;;
13707        esac
13708        ;;
13709
13710      cygwin* | mingw* | pw32* | cegcc*)
13711	case $GXX,$cc_basename in
13712	,cl* | no,cl*)
13713	  # Native MSVC
13714	  # hardcode_libdir_flag_spec is actually meaningless, as there is
13715	  # no search path for DLLs.
13716	  hardcode_libdir_flag_spec_CXX=' '
13717	  allow_undefined_flag_CXX=unsupported
13718	  always_export_symbols_CXX=yes
13719	  file_list_spec_CXX='@'
13720	  # Tell ltmain to make .lib files, not .a files.
13721	  libext=lib
13722	  # Tell ltmain to make .dll files, not .so files.
13723	  shrext_cmds=".dll"
13724	  # FIXME: Setting linknames here is a bad hack.
13725	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13726	  archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13727	      $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13728	    else
13729	      $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13730	    fi~
13731	    $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13732	    linknames='
13733	  # The linker will not automatically build a static lib if we build a DLL.
13734	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13735	  enable_shared_with_static_runtimes_CXX=yes
13736	  # Don't use ranlib
13737	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
13738	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13739	    lt_tool_outputfile="@TOOL_OUTPUT@"~
13740	    case $lt_outputfile in
13741	      *.exe|*.EXE) ;;
13742	      *)
13743		lt_outputfile="$lt_outputfile.exe"
13744		lt_tool_outputfile="$lt_tool_outputfile.exe"
13745		;;
13746	    esac~
13747	    func_to_tool_file "$lt_outputfile"~
13748	    if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13749	      $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13750	      $RM "$lt_outputfile.manifest";
13751	    fi'
13752	  ;;
13753	*)
13754	  # g++
13755	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13756	  # as there is no search path for DLLs.
13757	  hardcode_libdir_flag_spec_CXX='-L$libdir'
13758	  export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13759	  allow_undefined_flag_CXX=unsupported
13760	  always_export_symbols_CXX=no
13761	  enable_shared_with_static_runtimes_CXX=yes
13762
13763	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13764	    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13765	    # If the export-symbols file already is a .def file (1st line
13766	    # is EXPORTS), use it as is; otherwise, prepend...
13767	    archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13768	      cp $export_symbols $output_objdir/$soname.def;
13769	    else
13770	      echo EXPORTS > $output_objdir/$soname.def;
13771	      cat $export_symbols >> $output_objdir/$soname.def;
13772	    fi~
13773	    $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13774	  else
13775	    ld_shlibs_CXX=no
13776	  fi
13777	  ;;
13778	esac
13779	;;
13780      darwin* | rhapsody*)
13781
13782
13783  archive_cmds_need_lc_CXX=no
13784  hardcode_direct_CXX=no
13785  hardcode_automatic_CXX=yes
13786  hardcode_shlibpath_var_CXX=unsupported
13787  if test "$lt_cv_ld_force_load" = "yes"; then
13788    whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13789  else
13790    whole_archive_flag_spec_CXX=''
13791  fi
13792  link_all_deplibs_CXX=yes
13793  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13794  case $cc_basename in
13795     ifort*) _lt_dar_can_shared=yes ;;
13796     *) _lt_dar_can_shared=$GCC ;;
13797  esac
13798  if test "$_lt_dar_can_shared" = "yes"; then
13799    output_verbose_link_cmd=func_echo_all
13800    archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13801    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13802    archive_expsym_cmds_CXX="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}"
13803    module_expsym_cmds_CXX="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}"
13804       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13805      archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13806      archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13807    fi
13808
13809  else
13810  ld_shlibs_CXX=no
13811  fi
13812
13813	;;
13814
13815      dgux*)
13816        case $cc_basename in
13817          ec++*)
13818	    # FIXME: insert proper C++ library support
13819	    ld_shlibs_CXX=no
13820	    ;;
13821          ghcx*)
13822	    # Green Hills C++ Compiler
13823	    # FIXME: insert proper C++ library support
13824	    ld_shlibs_CXX=no
13825	    ;;
13826          *)
13827	    # FIXME: insert proper C++ library support
13828	    ld_shlibs_CXX=no
13829	    ;;
13830        esac
13831        ;;
13832
13833      freebsd[12]*)
13834        # C++ shared libraries reported to be fairly broken before
13835	# switch to ELF
13836        ld_shlibs_CXX=no
13837        ;;
13838
13839      freebsd-elf*)
13840        archive_cmds_need_lc_CXX=no
13841        ;;
13842
13843      freebsd* | dragonfly*)
13844        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13845        # conventions
13846        ld_shlibs_CXX=yes
13847        ;;
13848
13849      gnu*)
13850        ;;
13851
13852      haiku*)
13853        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13854        link_all_deplibs_CXX=yes
13855        ;;
13856
13857      hpux9*)
13858        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13859        hardcode_libdir_separator_CXX=:
13860        export_dynamic_flag_spec_CXX='${wl}-E'
13861        hardcode_direct_CXX=yes
13862        hardcode_minus_L_CXX=yes # Not in the search PATH,
13863				             # but as the default
13864				             # location of the library.
13865
13866        case $cc_basename in
13867          CC*)
13868            # FIXME: insert proper C++ library support
13869            ld_shlibs_CXX=no
13870            ;;
13871          aCC*)
13872            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13873            # Commands to make compiler produce verbose output that lists
13874            # what "hidden" libraries, object files and flags are used when
13875            # linking a shared library.
13876            #
13877            # There doesn't appear to be a way to prevent this compiler from
13878            # explicitly linking system object files so we need to strip them
13879            # from the output so that they don't get included in the library
13880            # dependencies.
13881            output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13882            ;;
13883          *)
13884            if test "$GXX" = yes; then
13885              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13886            else
13887              # FIXME: insert proper C++ library support
13888              ld_shlibs_CXX=no
13889            fi
13890            ;;
13891        esac
13892        ;;
13893
13894      hpux10*|hpux11*)
13895        if test $with_gnu_ld = no; then
13896	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13897	  hardcode_libdir_separator_CXX=:
13898
13899          case $host_cpu in
13900            hppa*64*|ia64*)
13901              ;;
13902            *)
13903	      export_dynamic_flag_spec_CXX='${wl}-E'
13904              ;;
13905          esac
13906        fi
13907        case $host_cpu in
13908          hppa*64*|ia64*)
13909            hardcode_direct_CXX=no
13910            hardcode_shlibpath_var_CXX=no
13911            ;;
13912          *)
13913            hardcode_direct_CXX=yes
13914            hardcode_direct_absolute_CXX=yes
13915            hardcode_minus_L_CXX=yes # Not in the search PATH,
13916					         # but as the default
13917					         # location of the library.
13918            ;;
13919        esac
13920
13921        case $cc_basename in
13922          CC*)
13923	    # FIXME: insert proper C++ library support
13924	    ld_shlibs_CXX=no
13925	    ;;
13926          aCC*)
13927	    case $host_cpu in
13928	      hppa*64*)
13929	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13930	        ;;
13931	      ia64*)
13932	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13933	        ;;
13934	      *)
13935	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13936	        ;;
13937	    esac
13938	    # Commands to make compiler produce verbose output that lists
13939	    # what "hidden" libraries, object files and flags are used when
13940	    # linking a shared library.
13941	    #
13942	    # There doesn't appear to be a way to prevent this compiler from
13943	    # explicitly linking system object files so we need to strip them
13944	    # from the output so that they don't get included in the library
13945	    # dependencies.
13946	    output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13947	    ;;
13948          *)
13949	    if test "$GXX" = yes; then
13950	      if test $with_gnu_ld = no; then
13951	        case $host_cpu in
13952	          hppa*64*)
13953	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13954	            ;;
13955	          ia64*)
13956	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13957	            ;;
13958	          *)
13959	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13960	            ;;
13961	        esac
13962	      fi
13963	    else
13964	      # FIXME: insert proper C++ library support
13965	      ld_shlibs_CXX=no
13966	    fi
13967	    ;;
13968        esac
13969        ;;
13970
13971      interix[3-9]*)
13972	hardcode_direct_CXX=no
13973	hardcode_shlibpath_var_CXX=no
13974	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13975	export_dynamic_flag_spec_CXX='${wl}-E'
13976	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13977	# Instead, shared libraries are loaded at an image base (0x10000000 by
13978	# default) and relocated if they conflict, which is a slow very memory
13979	# consuming and fragmenting process.  To avoid this, we pick a random,
13980	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13981	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13982	archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13983	archive_expsym_cmds_CXX='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'
13984	;;
13985      irix5* | irix6*)
13986        case $cc_basename in
13987          CC*)
13988	    # SGI C++
13989	    archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13990
13991	    # Archives containing C++ object files must be created using
13992	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13993	    # necessary to make sure instantiated templates are included
13994	    # in the archive.
13995	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13996	    ;;
13997          *)
13998	    if test "$GXX" = yes; then
13999	      if test "$with_gnu_ld" = no; then
14000	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
14001	      else
14002	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14003	      fi
14004	    fi
14005	    link_all_deplibs_CXX=yes
14006	    ;;
14007        esac
14008        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14009        hardcode_libdir_separator_CXX=:
14010        inherit_rpath_CXX=yes
14011        ;;
14012
14013      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14014        case $cc_basename in
14015          KCC*)
14016	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14017
14018	    # KCC will only create a shared library if the output file
14019	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14020	    # to its proper name (with version) after linking.
14021	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14022	    archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14023	    # Commands to make compiler produce verbose output that lists
14024	    # what "hidden" libraries, object files and flags are used when
14025	    # linking a shared library.
14026	    #
14027	    # There doesn't appear to be a way to prevent this compiler from
14028	    # explicitly linking system object files so we need to strip them
14029	    # from the output so that they don't get included in the library
14030	    # dependencies.
14031	    output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14032
14033	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14034	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14035
14036	    # Archives containing C++ object files must be created using
14037	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14038	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14039	    ;;
14040	  icpc* | ecpc* )
14041	    # Intel C++
14042	    with_gnu_ld=yes
14043	    # version 8.0 and above of icpc choke on multiply defined symbols
14044	    # if we add $predep_objects and $postdep_objects, however 7.1 and
14045	    # earlier do not add the objects themselves.
14046	    case `$CC -V 2>&1` in
14047	      *"Version 7."*)
14048	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049		archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14050		;;
14051	      *)  # Version 8.0 or newer
14052	        tmp_idyn=
14053	        case $host_cpu in
14054		  ia64*) tmp_idyn=' -i_dynamic';;
14055		esac
14056	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14057		archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14058		;;
14059	    esac
14060	    archive_cmds_need_lc_CXX=no
14061	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14062	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14063	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14064	    ;;
14065          pgCC* | pgcpp*)
14066            # Portland Group C++ compiler
14067	    case `$CC -V` in
14068	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14069	      prelink_cmds_CXX='tpldir=Template.dir~
14070		rm -rf $tpldir~
14071		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14072		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14073	      old_archive_cmds_CXX='tpldir=Template.dir~
14074		rm -rf $tpldir~
14075		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14076		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14077		$RANLIB $oldlib'
14078	      archive_cmds_CXX='tpldir=Template.dir~
14079		rm -rf $tpldir~
14080		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14081		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14082	      archive_expsym_cmds_CXX='tpldir=Template.dir~
14083		rm -rf $tpldir~
14084		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14085		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14086	      ;;
14087	    *) # Version 6 and above use weak symbols
14088	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14089	      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14090	      ;;
14091	    esac
14092
14093	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14094	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14095	    whole_archive_flag_spec_CXX='${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'
14096            ;;
14097	  cxx*)
14098	    # Compaq C++
14099	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14100	    archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14101
14102	    runpath_var=LD_RUN_PATH
14103	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14104	    hardcode_libdir_separator_CXX=:
14105
14106	    # Commands to make compiler produce verbose output that lists
14107	    # what "hidden" libraries, object files and flags are used when
14108	    # linking a shared library.
14109	    #
14110	    # There doesn't appear to be a way to prevent this compiler from
14111	    # explicitly linking system object files so we need to strip them
14112	    # from the output so that they don't get included in the library
14113	    # dependencies.
14114	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14115	    ;;
14116	  xl* | mpixl* | bgxl*)
14117	    # IBM XL 8.0 on PPC, with GNU ld
14118	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14119	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14120	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14121	    if test "x$supports_anon_versioning" = xyes; then
14122	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14123		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14124		echo "local: *; };" >> $output_objdir/$libname.ver~
14125		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14126	    fi
14127	    ;;
14128	  *)
14129	    case `$CC -V 2>&1 | sed 5q` in
14130	    *Sun\ C*)
14131	      # Sun C++ 5.9
14132	      no_undefined_flag_CXX=' -zdefs'
14133	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14134	      archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14135	      hardcode_libdir_flag_spec_CXX='-R$libdir'
14136	      whole_archive_flag_spec_CXX='${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'
14137	      compiler_needs_object_CXX=yes
14138
14139	      # Not sure whether something based on
14140	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14141	      # would be better.
14142	      output_verbose_link_cmd='func_echo_all'
14143
14144	      # Archives containing C++ object files must be created using
14145	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14146	      # necessary to make sure instantiated templates are included
14147	      # in the archive.
14148	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14149	      ;;
14150	    esac
14151	    ;;
14152	esac
14153	;;
14154
14155      lynxos*)
14156        # FIXME: insert proper C++ library support
14157	ld_shlibs_CXX=no
14158	;;
14159
14160      m88k*)
14161        # FIXME: insert proper C++ library support
14162        ld_shlibs_CXX=no
14163	;;
14164
14165      mvs*)
14166        case $cc_basename in
14167          cxx*)
14168	    # FIXME: insert proper C++ library support
14169	    ld_shlibs_CXX=no
14170	    ;;
14171	  *)
14172	    # FIXME: insert proper C++ library support
14173	    ld_shlibs_CXX=no
14174	    ;;
14175	esac
14176	;;
14177
14178      netbsd*)
14179        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14180	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14181	  wlarc=
14182	  hardcode_libdir_flag_spec_CXX='-R$libdir'
14183	  hardcode_direct_CXX=yes
14184	  hardcode_shlibpath_var_CXX=no
14185	fi
14186	# Workaround some broken pre-1.5 toolchains
14187	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14188	;;
14189
14190      *nto* | *qnx*)
14191        ld_shlibs_CXX=yes
14192	;;
14193
14194      openbsd2*)
14195        # C++ shared libraries are fairly broken
14196	ld_shlibs_CXX=no
14197	;;
14198
14199      openbsd*)
14200	if test -f /usr/libexec/ld.so; then
14201	  hardcode_direct_CXX=yes
14202	  hardcode_shlibpath_var_CXX=no
14203	  hardcode_direct_absolute_CXX=yes
14204	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14205	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14206	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14207	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14208	    export_dynamic_flag_spec_CXX='${wl}-E'
14209	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14210	  fi
14211	  output_verbose_link_cmd=func_echo_all
14212	else
14213	  ld_shlibs_CXX=no
14214	fi
14215	;;
14216
14217      osf3* | osf4* | osf5*)
14218        case $cc_basename in
14219          KCC*)
14220	    # Kuck and Associates, Inc. (KAI) C++ Compiler
14221
14222	    # KCC will only create a shared library if the output file
14223	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
14224	    # to its proper name (with version) after linking.
14225	    archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14226
14227	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14228	    hardcode_libdir_separator_CXX=:
14229
14230	    # Archives containing C++ object files must be created using
14231	    # the KAI C++ compiler.
14232	    case $host in
14233	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14234	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14235	    esac
14236	    ;;
14237          RCC*)
14238	    # Rational C++ 2.4.1
14239	    # FIXME: insert proper C++ library support
14240	    ld_shlibs_CXX=no
14241	    ;;
14242          cxx*)
14243	    case $host in
14244	      osf3*)
14245	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14246	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14247	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14248		;;
14249	      *)
14250	        allow_undefined_flag_CXX=' -expect_unresolved \*'
14251	        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14252	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14253	          echo "-hidden">> $lib.exp~
14254	          $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14255	          $RM $lib.exp'
14256	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14257		;;
14258	    esac
14259
14260	    hardcode_libdir_separator_CXX=:
14261
14262	    # Commands to make compiler produce verbose output that lists
14263	    # what "hidden" libraries, object files and flags are used when
14264	    # linking a shared library.
14265	    #
14266	    # There doesn't appear to be a way to prevent this compiler from
14267	    # explicitly linking system object files so we need to strip them
14268	    # from the output so that they don't get included in the library
14269	    # dependencies.
14270	    output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14271	    ;;
14272	  *)
14273	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14274	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14275	      case $host in
14276	        osf3*)
14277	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14278		  ;;
14279	        *)
14280	          archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14281		  ;;
14282	      esac
14283
14284	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14285	      hardcode_libdir_separator_CXX=:
14286
14287	      # Commands to make compiler produce verbose output that lists
14288	      # what "hidden" libraries, object files and flags are used when
14289	      # linking a shared library.
14290	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14291
14292	    else
14293	      # FIXME: insert proper C++ library support
14294	      ld_shlibs_CXX=no
14295	    fi
14296	    ;;
14297        esac
14298        ;;
14299
14300      psos*)
14301        # FIXME: insert proper C++ library support
14302        ld_shlibs_CXX=no
14303        ;;
14304
14305      sunos4*)
14306        case $cc_basename in
14307          CC*)
14308	    # Sun C++ 4.x
14309	    # FIXME: insert proper C++ library support
14310	    ld_shlibs_CXX=no
14311	    ;;
14312          lcc*)
14313	    # Lucid
14314	    # FIXME: insert proper C++ library support
14315	    ld_shlibs_CXX=no
14316	    ;;
14317          *)
14318	    # FIXME: insert proper C++ library support
14319	    ld_shlibs_CXX=no
14320	    ;;
14321        esac
14322        ;;
14323
14324      solaris*)
14325        case $cc_basename in
14326          CC* | sunCC*)
14327	    # Sun C++ 4.2, 5.x and Centerline C++
14328            archive_cmds_need_lc_CXX=yes
14329	    no_undefined_flag_CXX=' -zdefs'
14330	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14331	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14332	      $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14333
14334	    hardcode_libdir_flag_spec_CXX='-R$libdir'
14335	    hardcode_shlibpath_var_CXX=no
14336	    case $host_os in
14337	      solaris2.[0-5] | solaris2.[0-5].*) ;;
14338	      *)
14339		# The compiler driver will combine and reorder linker options,
14340		# but understands `-z linker_flag'.
14341	        # Supported since Solaris 2.6 (maybe 2.5.1?)
14342		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14343	        ;;
14344	    esac
14345	    link_all_deplibs_CXX=yes
14346
14347	    output_verbose_link_cmd='func_echo_all'
14348
14349	    # Archives containing C++ object files must be created using
14350	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14351	    # necessary to make sure instantiated templates are included
14352	    # in the archive.
14353	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14354	    ;;
14355          gcx*)
14356	    # Green Hills C++ Compiler
14357	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14358
14359	    # The C++ compiler must be used to create the archive.
14360	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14361	    ;;
14362          *)
14363	    # GNU C++ compiler with Solaris linker
14364	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14365	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14366	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14367	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14368	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14369		  $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14370
14371	        # Commands to make compiler produce verbose output that lists
14372	        # what "hidden" libraries, object files and flags are used when
14373	        # linking a shared library.
14374	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14375	      else
14376	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
14377	        # platform.
14378	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14379	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14380		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14381
14382	        # Commands to make compiler produce verbose output that lists
14383	        # what "hidden" libraries, object files and flags are used when
14384	        # linking a shared library.
14385	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14386	      fi
14387
14388	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14389	      case $host_os in
14390		solaris2.[0-5] | solaris2.[0-5].*) ;;
14391		*)
14392		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14393		  ;;
14394	      esac
14395	    fi
14396	    ;;
14397        esac
14398        ;;
14399
14400    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14401      no_undefined_flag_CXX='${wl}-z,text'
14402      archive_cmds_need_lc_CXX=no
14403      hardcode_shlibpath_var_CXX=no
14404      runpath_var='LD_RUN_PATH'
14405
14406      case $cc_basename in
14407        CC*)
14408	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14409	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14410	  ;;
14411	*)
14412	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14413	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14414	  ;;
14415      esac
14416      ;;
14417
14418      sysv5* | sco3.2v5* | sco5v6*)
14419	# Note: We can NOT use -z defs as we might desire, because we do not
14420	# link with -lc, and that would cause any symbols used from libc to
14421	# always be unresolved, which means just about no library would
14422	# ever link correctly.  If we're not using GNU ld we use -z text
14423	# though, which does catch some bad symbols but isn't as heavy-handed
14424	# as -z defs.
14425	no_undefined_flag_CXX='${wl}-z,text'
14426	allow_undefined_flag_CXX='${wl}-z,nodefs'
14427	archive_cmds_need_lc_CXX=no
14428	hardcode_shlibpath_var_CXX=no
14429	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14430	hardcode_libdir_separator_CXX=':'
14431	link_all_deplibs_CXX=yes
14432	export_dynamic_flag_spec_CXX='${wl}-Bexport'
14433	runpath_var='LD_RUN_PATH'
14434
14435	case $cc_basename in
14436          CC*)
14437	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14438	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14439	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14440	      '"$old_archive_cmds_CXX"
14441	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14442	      '"$reload_cmds_CXX"
14443	    ;;
14444	  *)
14445	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14446	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14447	    ;;
14448	esac
14449      ;;
14450
14451      tandem*)
14452        case $cc_basename in
14453          NCC*)
14454	    # NonStop-UX NCC 3.20
14455	    # FIXME: insert proper C++ library support
14456	    ld_shlibs_CXX=no
14457	    ;;
14458          *)
14459	    # FIXME: insert proper C++ library support
14460	    ld_shlibs_CXX=no
14461	    ;;
14462        esac
14463        ;;
14464
14465      vxworks*)
14466        # FIXME: insert proper C++ library support
14467        ld_shlibs_CXX=no
14468        ;;
14469
14470      *)
14471        # FIXME: insert proper C++ library support
14472        ld_shlibs_CXX=no
14473        ;;
14474    esac
14475
14476    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14477$as_echo "$ld_shlibs_CXX" >&6; }
14478    test "$ld_shlibs_CXX" = no && can_build_shared=no
14479
14480    GCC_CXX="$GXX"
14481    LD_CXX="$LD"
14482
14483    ## CAVEAT EMPTOR:
14484    ## There is no encapsulation within the following macros, do not change
14485    ## the running order or otherwise move them around unless you know exactly
14486    ## what you are doing...
14487    # Dependencies to place before and after the object being linked:
14488predep_objects_CXX=
14489postdep_objects_CXX=
14490predeps_CXX=
14491postdeps_CXX=
14492compiler_lib_search_path_CXX=
14493
14494cat > conftest.$ac_ext <<_LT_EOF
14495class Foo
14496{
14497public:
14498  Foo (void) { a = 0; }
14499private:
14500  int a;
14501};
14502_LT_EOF
14503
14504
14505_lt_libdeps_save_CFLAGS=$CFLAGS
14506case "$CC $CFLAGS " in #(
14507*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14508*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14509esac
14510
14511if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14512  (eval $ac_compile) 2>&5
14513  ac_status=$?
14514  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14515  test $ac_status = 0; }; then
14516  # Parse the compiler output and extract the necessary
14517  # objects, libraries and library flags.
14518
14519  # Sentinel used to keep track of whether or not we are before
14520  # the conftest object file.
14521  pre_test_object_deps_done=no
14522
14523  for p in `eval "$output_verbose_link_cmd"`; do
14524    case ${prev}${p} in
14525
14526    -L* | -R* | -l*)
14527       # Some compilers place space between "-{L,R}" and the path.
14528       # Remove the space.
14529       if test $p = "-L" ||
14530          test $p = "-R"; then
14531	 prev=$p
14532	 continue
14533       fi
14534
14535       # Expand the sysroot to ease extracting the directories later.
14536       if test -z "$prev"; then
14537         case $p in
14538         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14539         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14540         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14541         esac
14542       fi
14543       case $p in
14544       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14545       esac
14546       if test "$pre_test_object_deps_done" = no; then
14547	 case ${prev} in
14548	 -L | -R)
14549	   # Internal compiler library paths should come after those
14550	   # provided the user.  The postdeps already come after the
14551	   # user supplied libs so there is no need to process them.
14552	   if test -z "$compiler_lib_search_path_CXX"; then
14553	     compiler_lib_search_path_CXX="${prev}${p}"
14554	   else
14555	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14556	   fi
14557	   ;;
14558	 # The "-l" case would never come before the object being
14559	 # linked, so don't bother handling this case.
14560	 esac
14561       else
14562	 if test -z "$postdeps_CXX"; then
14563	   postdeps_CXX="${prev}${p}"
14564	 else
14565	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14566	 fi
14567       fi
14568       prev=
14569       ;;
14570
14571    *.lto.$objext) ;; # Ignore GCC LTO objects
14572    *.$objext)
14573       # This assumes that the test object file only shows up
14574       # once in the compiler output.
14575       if test "$p" = "conftest.$objext"; then
14576	 pre_test_object_deps_done=yes
14577	 continue
14578       fi
14579
14580       if test "$pre_test_object_deps_done" = no; then
14581	 if test -z "$predep_objects_CXX"; then
14582	   predep_objects_CXX="$p"
14583	 else
14584	   predep_objects_CXX="$predep_objects_CXX $p"
14585	 fi
14586       else
14587	 if test -z "$postdep_objects_CXX"; then
14588	   postdep_objects_CXX="$p"
14589	 else
14590	   postdep_objects_CXX="$postdep_objects_CXX $p"
14591	 fi
14592       fi
14593       ;;
14594
14595    *) ;; # Ignore the rest.
14596
14597    esac
14598  done
14599
14600  # Clean up.
14601  rm -f a.out a.exe
14602else
14603  echo "libtool.m4: error: problem compiling CXX test program"
14604fi
14605
14606$RM -f confest.$objext
14607CFLAGS=$_lt_libdeps_save_CFLAGS
14608
14609# PORTME: override above test on systems where it is broken
14610case $host_os in
14611interix[3-9]*)
14612  # Interix 3.5 installs completely hosed .la files for C++, so rather than
14613  # hack all around it, let's just trust "g++" to DTRT.
14614  predep_objects_CXX=
14615  postdep_objects_CXX=
14616  postdeps_CXX=
14617  ;;
14618
14619linux*)
14620  case `$CC -V 2>&1 | sed 5q` in
14621  *Sun\ C*)
14622    # Sun C++ 5.9
14623
14624    # The more standards-conforming stlport4 library is
14625    # incompatible with the Cstd library. Avoid specifying
14626    # it if it's in CXXFLAGS. Ignore libCrun as
14627    # -library=stlport4 depends on it.
14628    case " $CXX $CXXFLAGS " in
14629    *" -library=stlport4 "*)
14630      solaris_use_stlport4=yes
14631      ;;
14632    esac
14633
14634    if test "$solaris_use_stlport4" != yes; then
14635      postdeps_CXX='-library=Cstd -library=Crun'
14636    fi
14637    ;;
14638  esac
14639  ;;
14640
14641solaris*)
14642  case $cc_basename in
14643  CC* | sunCC*)
14644    # The more standards-conforming stlport4 library is
14645    # incompatible with the Cstd library. Avoid specifying
14646    # it if it's in CXXFLAGS. Ignore libCrun as
14647    # -library=stlport4 depends on it.
14648    case " $CXX $CXXFLAGS " in
14649    *" -library=stlport4 "*)
14650      solaris_use_stlport4=yes
14651      ;;
14652    esac
14653
14654    # Adding this requires a known-good setup of shared libraries for
14655    # Sun compiler versions before 5.6, else PIC objects from an old
14656    # archive will be linked into the output, leading to subtle bugs.
14657    if test "$solaris_use_stlport4" != yes; then
14658      postdeps_CXX='-library=Cstd -library=Crun'
14659    fi
14660    ;;
14661  esac
14662  ;;
14663esac
14664
14665
14666case " $postdeps_CXX " in
14667*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14668esac
14669 compiler_lib_search_dirs_CXX=
14670if test -n "${compiler_lib_search_path_CXX}"; then
14671 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14672fi
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704    lt_prog_compiler_wl_CXX=
14705lt_prog_compiler_pic_CXX=
14706lt_prog_compiler_static_CXX=
14707
14708
14709  # C++ specific cases for pic, static, wl, etc.
14710  if test "$GXX" = yes; then
14711    lt_prog_compiler_wl_CXX='-Wl,'
14712    lt_prog_compiler_static_CXX='-static'
14713
14714    case $host_os in
14715    aix*)
14716      # All AIX code is PIC.
14717      if test "$host_cpu" = ia64; then
14718	# AIX 5 now supports IA64 processor
14719	lt_prog_compiler_static_CXX='-Bstatic'
14720      fi
14721      ;;
14722
14723    amigaos*)
14724      case $host_cpu in
14725      powerpc)
14726            # see comment about AmigaOS4 .so support
14727            lt_prog_compiler_pic_CXX='-fPIC'
14728        ;;
14729      m68k)
14730            # FIXME: we need at least 68020 code to build shared libraries, but
14731            # adding the `-m68020' flag to GCC prevents building anything better,
14732            # like `-m68040'.
14733            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14734        ;;
14735      esac
14736      ;;
14737
14738    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14739      # PIC is the default for these OSes.
14740      ;;
14741    mingw* | cygwin* | os2* | pw32* | cegcc*)
14742      # This hack is so that the source file can tell whether it is being
14743      # built for inclusion in a dll (and should export symbols for example).
14744      # Although the cygwin gcc ignores -fPIC, still need this for old-style
14745      # (--disable-auto-import) libraries
14746      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14747      ;;
14748    darwin* | rhapsody*)
14749      # PIC is the default on this platform
14750      # Common symbols not allowed in MH_DYLIB files
14751      lt_prog_compiler_pic_CXX='-fno-common'
14752      ;;
14753    *djgpp*)
14754      # DJGPP does not support shared libraries at all
14755      lt_prog_compiler_pic_CXX=
14756      ;;
14757    haiku*)
14758      # PIC is the default for Haiku.
14759      # The "-static" flag exists, but is broken.
14760      lt_prog_compiler_static_CXX=
14761      ;;
14762    interix[3-9]*)
14763      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14764      # Instead, we relocate shared libraries at runtime.
14765      ;;
14766    sysv4*MP*)
14767      if test -d /usr/nec; then
14768	lt_prog_compiler_pic_CXX=-Kconform_pic
14769      fi
14770      ;;
14771    hpux*)
14772      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14773      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14774      # sets the default TLS model and affects inlining.
14775      case $host_cpu in
14776      hppa*64*)
14777	;;
14778      *)
14779	lt_prog_compiler_pic_CXX='-fPIC'
14780	;;
14781      esac
14782      ;;
14783    *qnx* | *nto*)
14784      # QNX uses GNU C++, but need to define -shared option too, otherwise
14785      # it will coredump.
14786      lt_prog_compiler_pic_CXX='-fPIC -shared'
14787      ;;
14788    *)
14789      lt_prog_compiler_pic_CXX='-fPIC'
14790      ;;
14791    esac
14792  else
14793    case $host_os in
14794      aix[4-9]*)
14795	# All AIX code is PIC.
14796	if test "$host_cpu" = ia64; then
14797	  # AIX 5 now supports IA64 processor
14798	  lt_prog_compiler_static_CXX='-Bstatic'
14799	else
14800	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14801	fi
14802	;;
14803      chorus*)
14804	case $cc_basename in
14805	cxch68*)
14806	  # Green Hills C++ Compiler
14807	  # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14808	  ;;
14809	esac
14810	;;
14811      mingw* | cygwin* | os2* | pw32* | cegcc*)
14812	# This hack is so that the source file can tell whether it is being
14813	# built for inclusion in a dll (and should export symbols for example).
14814	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14815	;;
14816      dgux*)
14817	case $cc_basename in
14818	  ec++*)
14819	    lt_prog_compiler_pic_CXX='-KPIC'
14820	    ;;
14821	  ghcx*)
14822	    # Green Hills C++ Compiler
14823	    lt_prog_compiler_pic_CXX='-pic'
14824	    ;;
14825	  *)
14826	    ;;
14827	esac
14828	;;
14829      freebsd* | dragonfly*)
14830	# FreeBSD uses GNU C++
14831	;;
14832      hpux9* | hpux10* | hpux11*)
14833	case $cc_basename in
14834	  CC*)
14835	    lt_prog_compiler_wl_CXX='-Wl,'
14836	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14837	    if test "$host_cpu" != ia64; then
14838	      lt_prog_compiler_pic_CXX='+Z'
14839	    fi
14840	    ;;
14841	  aCC*)
14842	    lt_prog_compiler_wl_CXX='-Wl,'
14843	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14844	    case $host_cpu in
14845	    hppa*64*|ia64*)
14846	      # +Z the default
14847	      ;;
14848	    *)
14849	      lt_prog_compiler_pic_CXX='+Z'
14850	      ;;
14851	    esac
14852	    ;;
14853	  *)
14854	    ;;
14855	esac
14856	;;
14857      interix*)
14858	# This is c89, which is MS Visual C++ (no shared libs)
14859	# Anyone wants to do a port?
14860	;;
14861      irix5* | irix6* | nonstopux*)
14862	case $cc_basename in
14863	  CC*)
14864	    lt_prog_compiler_wl_CXX='-Wl,'
14865	    lt_prog_compiler_static_CXX='-non_shared'
14866	    # CC pic flag -KPIC is the default.
14867	    ;;
14868	  *)
14869	    ;;
14870	esac
14871	;;
14872      linux* | k*bsd*-gnu | kopensolaris*-gnu)
14873	case $cc_basename in
14874	  KCC*)
14875	    # KAI C++ Compiler
14876	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14877	    lt_prog_compiler_pic_CXX='-fPIC'
14878	    ;;
14879	  ecpc* )
14880	    # old Intel C++ for x86_64 which still supported -KPIC.
14881	    lt_prog_compiler_wl_CXX='-Wl,'
14882	    lt_prog_compiler_pic_CXX='-KPIC'
14883	    lt_prog_compiler_static_CXX='-static'
14884	    ;;
14885	  icpc* )
14886	    # Intel C++, used to be incompatible with GCC.
14887	    # ICC 10 doesn't accept -KPIC any more.
14888	    lt_prog_compiler_wl_CXX='-Wl,'
14889	    lt_prog_compiler_pic_CXX='-fPIC'
14890	    lt_prog_compiler_static_CXX='-static'
14891	    ;;
14892	  pgCC* | pgcpp*)
14893	    # Portland Group C++ compiler
14894	    lt_prog_compiler_wl_CXX='-Wl,'
14895	    lt_prog_compiler_pic_CXX='-fpic'
14896	    lt_prog_compiler_static_CXX='-Bstatic'
14897	    ;;
14898	  cxx*)
14899	    # Compaq C++
14900	    # Make sure the PIC flag is empty.  It appears that all Alpha
14901	    # Linux and Compaq Tru64 Unix objects are PIC.
14902	    lt_prog_compiler_pic_CXX=
14903	    lt_prog_compiler_static_CXX='-non_shared'
14904	    ;;
14905	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14906	    # IBM XL 8.0, 9.0 on PPC and BlueGene
14907	    lt_prog_compiler_wl_CXX='-Wl,'
14908	    lt_prog_compiler_pic_CXX='-qpic'
14909	    lt_prog_compiler_static_CXX='-qstaticlink'
14910	    ;;
14911	  *)
14912	    case `$CC -V 2>&1 | sed 5q` in
14913	    *Sun\ C*)
14914	      # Sun C++ 5.9
14915	      lt_prog_compiler_pic_CXX='-KPIC'
14916	      lt_prog_compiler_static_CXX='-Bstatic'
14917	      lt_prog_compiler_wl_CXX='-Qoption ld '
14918	      ;;
14919	    esac
14920	    ;;
14921	esac
14922	;;
14923      lynxos*)
14924	;;
14925      m88k*)
14926	;;
14927      mvs*)
14928	case $cc_basename in
14929	  cxx*)
14930	    lt_prog_compiler_pic_CXX='-W c,exportall'
14931	    ;;
14932	  *)
14933	    ;;
14934	esac
14935	;;
14936      netbsd* | netbsdelf*-gnu)
14937	;;
14938      *qnx* | *nto*)
14939        # QNX uses GNU C++, but need to define -shared option too, otherwise
14940        # it will coredump.
14941        lt_prog_compiler_pic_CXX='-fPIC -shared'
14942        ;;
14943      osf3* | osf4* | osf5*)
14944	case $cc_basename in
14945	  KCC*)
14946	    lt_prog_compiler_wl_CXX='--backend -Wl,'
14947	    ;;
14948	  RCC*)
14949	    # Rational C++ 2.4.1
14950	    lt_prog_compiler_pic_CXX='-pic'
14951	    ;;
14952	  cxx*)
14953	    # Digital/Compaq C++
14954	    lt_prog_compiler_wl_CXX='-Wl,'
14955	    # Make sure the PIC flag is empty.  It appears that all Alpha
14956	    # Linux and Compaq Tru64 Unix objects are PIC.
14957	    lt_prog_compiler_pic_CXX=
14958	    lt_prog_compiler_static_CXX='-non_shared'
14959	    ;;
14960	  *)
14961	    ;;
14962	esac
14963	;;
14964      psos*)
14965	;;
14966      solaris*)
14967	case $cc_basename in
14968	  CC* | sunCC*)
14969	    # Sun C++ 4.2, 5.x and Centerline C++
14970	    lt_prog_compiler_pic_CXX='-KPIC'
14971	    lt_prog_compiler_static_CXX='-Bstatic'
14972	    lt_prog_compiler_wl_CXX='-Qoption ld '
14973	    ;;
14974	  gcx*)
14975	    # Green Hills C++ Compiler
14976	    lt_prog_compiler_pic_CXX='-PIC'
14977	    ;;
14978	  *)
14979	    ;;
14980	esac
14981	;;
14982      sunos4*)
14983	case $cc_basename in
14984	  CC*)
14985	    # Sun C++ 4.x
14986	    lt_prog_compiler_pic_CXX='-pic'
14987	    lt_prog_compiler_static_CXX='-Bstatic'
14988	    ;;
14989	  lcc*)
14990	    # Lucid
14991	    lt_prog_compiler_pic_CXX='-pic'
14992	    ;;
14993	  *)
14994	    ;;
14995	esac
14996	;;
14997      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14998	case $cc_basename in
14999	  CC*)
15000	    lt_prog_compiler_wl_CXX='-Wl,'
15001	    lt_prog_compiler_pic_CXX='-KPIC'
15002	    lt_prog_compiler_static_CXX='-Bstatic'
15003	    ;;
15004	esac
15005	;;
15006      tandem*)
15007	case $cc_basename in
15008	  NCC*)
15009	    # NonStop-UX NCC 3.20
15010	    lt_prog_compiler_pic_CXX='-KPIC'
15011	    ;;
15012	  *)
15013	    ;;
15014	esac
15015	;;
15016      vxworks*)
15017	;;
15018      *)
15019	lt_prog_compiler_can_build_shared_CXX=no
15020	;;
15021    esac
15022  fi
15023
15024case $host_os in
15025  # For platforms which do not support PIC, -DPIC is meaningless:
15026  *djgpp*)
15027    lt_prog_compiler_pic_CXX=
15028    ;;
15029  *)
15030    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15031    ;;
15032esac
15033
15034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15035$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15036if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15037  $as_echo_n "(cached) " >&6
15038else
15039  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15040fi
15041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15042$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15043lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15044
15045#
15046# Check to make sure the PIC flag actually works.
15047#
15048if test -n "$lt_prog_compiler_pic_CXX"; then
15049  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15050$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15051if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15052  $as_echo_n "(cached) " >&6
15053else
15054  lt_cv_prog_compiler_pic_works_CXX=no
15055   ac_outfile=conftest.$ac_objext
15056   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15057   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15058   # Insert the option either (1) after the last *FLAGS variable, or
15059   # (2) before a word containing "conftest.", or (3) at the end.
15060   # Note that $ac_compile itself does not contain backslashes and begins
15061   # with a dollar sign (not a hyphen), so the echo should work correctly.
15062   # The option is referenced via a variable to avoid confusing sed.
15063   lt_compile=`echo "$ac_compile" | $SED \
15064   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15065   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15066   -e 's:$: $lt_compiler_flag:'`
15067   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15068   (eval "$lt_compile" 2>conftest.err)
15069   ac_status=$?
15070   cat conftest.err >&5
15071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072   if (exit $ac_status) && test -s "$ac_outfile"; then
15073     # The compiler can only warn and ignore the option if not recognized
15074     # So say no if there are warnings other than the usual output.
15075     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15076     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15077     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15078       lt_cv_prog_compiler_pic_works_CXX=yes
15079     fi
15080   fi
15081   $RM conftest*
15082
15083fi
15084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15085$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15086
15087if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15088    case $lt_prog_compiler_pic_CXX in
15089     "" | " "*) ;;
15090     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15091     esac
15092else
15093    lt_prog_compiler_pic_CXX=
15094     lt_prog_compiler_can_build_shared_CXX=no
15095fi
15096
15097fi
15098
15099
15100
15101
15102
15103#
15104# Check to make sure the static flag actually works.
15105#
15106wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15108$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15109if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15110  $as_echo_n "(cached) " >&6
15111else
15112  lt_cv_prog_compiler_static_works_CXX=no
15113   save_LDFLAGS="$LDFLAGS"
15114   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15115   echo "$lt_simple_link_test_code" > conftest.$ac_ext
15116   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15117     # The linker can only warn and ignore the option if not recognized
15118     # So say no if there are warnings
15119     if test -s conftest.err; then
15120       # Append any errors to the config.log.
15121       cat conftest.err 1>&5
15122       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15123       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15124       if diff conftest.exp conftest.er2 >/dev/null; then
15125         lt_cv_prog_compiler_static_works_CXX=yes
15126       fi
15127     else
15128       lt_cv_prog_compiler_static_works_CXX=yes
15129     fi
15130   fi
15131   $RM -r conftest*
15132   LDFLAGS="$save_LDFLAGS"
15133
15134fi
15135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15136$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15137
15138if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15139    :
15140else
15141    lt_prog_compiler_static_CXX=
15142fi
15143
15144
15145
15146
15147    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15149if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15150  $as_echo_n "(cached) " >&6
15151else
15152  lt_cv_prog_compiler_c_o_CXX=no
15153   $RM -r conftest 2>/dev/null
15154   mkdir conftest
15155   cd conftest
15156   mkdir out
15157   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15158
15159   lt_compiler_flag="-o out/conftest2.$ac_objext"
15160   # Insert the option either (1) after the last *FLAGS variable, or
15161   # (2) before a word containing "conftest.", or (3) at the end.
15162   # Note that $ac_compile itself does not contain backslashes and begins
15163   # with a dollar sign (not a hyphen), so the echo should work correctly.
15164   lt_compile=`echo "$ac_compile" | $SED \
15165   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15166   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15167   -e 's:$: $lt_compiler_flag:'`
15168   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15169   (eval "$lt_compile" 2>out/conftest.err)
15170   ac_status=$?
15171   cat out/conftest.err >&5
15172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15173   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15174   then
15175     # The compiler can only warn and ignore the option if not recognized
15176     # So say no if there are warnings
15177     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15178     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15179     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15180       lt_cv_prog_compiler_c_o_CXX=yes
15181     fi
15182   fi
15183   chmod u+w . 2>&5
15184   $RM conftest*
15185   # SGI C++ compiler will create directory out/ii_files/ for
15186   # template instantiation
15187   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15188   $RM out/* && rmdir out
15189   cd ..
15190   $RM -r conftest
15191   $RM conftest*
15192
15193fi
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15195$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15196
15197
15198
15199    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15200$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15201if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15202  $as_echo_n "(cached) " >&6
15203else
15204  lt_cv_prog_compiler_c_o_CXX=no
15205   $RM -r conftest 2>/dev/null
15206   mkdir conftest
15207   cd conftest
15208   mkdir out
15209   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15210
15211   lt_compiler_flag="-o out/conftest2.$ac_objext"
15212   # Insert the option either (1) after the last *FLAGS variable, or
15213   # (2) before a word containing "conftest.", or (3) at the end.
15214   # Note that $ac_compile itself does not contain backslashes and begins
15215   # with a dollar sign (not a hyphen), so the echo should work correctly.
15216   lt_compile=`echo "$ac_compile" | $SED \
15217   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15218   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15219   -e 's:$: $lt_compiler_flag:'`
15220   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15221   (eval "$lt_compile" 2>out/conftest.err)
15222   ac_status=$?
15223   cat out/conftest.err >&5
15224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225   if (exit $ac_status) && test -s out/conftest2.$ac_objext
15226   then
15227     # The compiler can only warn and ignore the option if not recognized
15228     # So say no if there are warnings
15229     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15230     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15231     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15232       lt_cv_prog_compiler_c_o_CXX=yes
15233     fi
15234   fi
15235   chmod u+w . 2>&5
15236   $RM conftest*
15237   # SGI C++ compiler will create directory out/ii_files/ for
15238   # template instantiation
15239   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15240   $RM out/* && rmdir out
15241   cd ..
15242   $RM -r conftest
15243   $RM conftest*
15244
15245fi
15246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15247$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15248
15249
15250
15251
15252hard_links="nottested"
15253if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15254  # do not overwrite the value of need_locks provided by the user
15255  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15256$as_echo_n "checking if we can lock with hard links... " >&6; }
15257  hard_links=yes
15258  $RM conftest*
15259  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15260  touch conftest.a
15261  ln conftest.a conftest.b 2>&5 || hard_links=no
15262  ln conftest.a conftest.b 2>/dev/null && hard_links=no
15263  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15264$as_echo "$hard_links" >&6; }
15265  if test "$hard_links" = no; then
15266    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15267$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15268    need_locks=warn
15269  fi
15270else
15271  need_locks=no
15272fi
15273
15274
15275
15276    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15277$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15278
15279  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15280  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15281  case $host_os in
15282  aix[4-9]*)
15283    # If we're using GNU nm, then we don't want the "-C" option.
15284    # -C means demangle to AIX nm, but means don't demangle with GNU nm
15285    # Also, AIX nm treats weak defined symbols like other global defined
15286    # symbols, whereas GNU nm marks them as "W".
15287    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15288      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15289    else
15290      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15291    fi
15292    ;;
15293  pw32*)
15294    export_symbols_cmds_CXX="$ltdll_cmds"
15295    ;;
15296  cygwin* | mingw* | cegcc*)
15297    case $cc_basename in
15298    cl*) ;;
15299    *)
15300      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15301      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15302      ;;
15303    esac
15304    ;;
15305  linux* | k*bsd*-gnu | gnu*)
15306    link_all_deplibs_CXX=no
15307    ;;
15308  *)
15309    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15310    ;;
15311  esac
15312
15313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15314$as_echo "$ld_shlibs_CXX" >&6; }
15315test "$ld_shlibs_CXX" = no && can_build_shared=no
15316
15317with_gnu_ld_CXX=$with_gnu_ld
15318
15319
15320
15321
15322
15323
15324#
15325# Do we need to explicitly link libc?
15326#
15327case "x$archive_cmds_need_lc_CXX" in
15328x|xyes)
15329  # Assume -lc should be added
15330  archive_cmds_need_lc_CXX=yes
15331
15332  if test "$enable_shared" = yes && test "$GCC" = yes; then
15333    case $archive_cmds_CXX in
15334    *'~'*)
15335      # FIXME: we may have to deal with multi-command sequences.
15336      ;;
15337    '$CC '*)
15338      # Test whether the compiler implicitly links with -lc since on some
15339      # systems, -lgcc has to come before -lc. If gcc already passes -lc
15340      # to ld, don't add -lc before -lgcc.
15341      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15342$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15343if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15344  $as_echo_n "(cached) " >&6
15345else
15346  $RM conftest*
15347	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15348
15349	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15350  (eval $ac_compile) 2>&5
15351  ac_status=$?
15352  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15353  test $ac_status = 0; } 2>conftest.err; then
15354	  soname=conftest
15355	  lib=conftest
15356	  libobjs=conftest.$ac_objext
15357	  deplibs=
15358	  wl=$lt_prog_compiler_wl_CXX
15359	  pic_flag=$lt_prog_compiler_pic_CXX
15360	  compiler_flags=-v
15361	  linker_flags=-v
15362	  verstring=
15363	  output_objdir=.
15364	  libname=conftest
15365	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15366	  allow_undefined_flag_CXX=
15367	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15368  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15369  ac_status=$?
15370  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15371  test $ac_status = 0; }
15372	  then
15373	    lt_cv_archive_cmds_need_lc_CXX=no
15374	  else
15375	    lt_cv_archive_cmds_need_lc_CXX=yes
15376	  fi
15377	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15378	else
15379	  cat conftest.err 1>&5
15380	fi
15381	$RM conftest*
15382
15383fi
15384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15385$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15386      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15387      ;;
15388    esac
15389  fi
15390  ;;
15391esac
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421
15422
15423
15424
15425
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15457$as_echo_n "checking dynamic linker characteristics... " >&6; }
15458
15459library_names_spec=
15460libname_spec='lib$name'
15461soname_spec=
15462shrext_cmds=".so"
15463postinstall_cmds=
15464postuninstall_cmds=
15465finish_cmds=
15466finish_eval=
15467shlibpath_var=
15468shlibpath_overrides_runpath=unknown
15469version_type=none
15470dynamic_linker="$host_os ld.so"
15471sys_lib_dlsearch_path_spec="/lib /usr/lib"
15472need_lib_prefix=unknown
15473hardcode_into_libs=no
15474
15475# when you set need_version to no, make sure it does not cause -set_version
15476# flags to be left without arguments
15477need_version=unknown
15478
15479case $host_os in
15480aix3*)
15481  version_type=linux
15482  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15483  shlibpath_var=LIBPATH
15484
15485  # AIX 3 has no versioning support, so we append a major version to the name.
15486  soname_spec='${libname}${release}${shared_ext}$major'
15487  ;;
15488
15489aix[4-9]*)
15490  version_type=linux
15491  need_lib_prefix=no
15492  need_version=no
15493  hardcode_into_libs=yes
15494  if test "$host_cpu" = ia64; then
15495    # AIX 5 supports IA64
15496    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15497    shlibpath_var=LD_LIBRARY_PATH
15498  else
15499    # With GCC up to 2.95.x, collect2 would create an import file
15500    # for dependence libraries.  The import file would start with
15501    # the line `#! .'.  This would cause the generated library to
15502    # depend on `.', always an invalid library.  This was fixed in
15503    # development snapshots of GCC prior to 3.0.
15504    case $host_os in
15505      aix4 | aix4.[01] | aix4.[01].*)
15506      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15507	   echo ' yes '
15508	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15509	:
15510      else
15511	can_build_shared=no
15512      fi
15513      ;;
15514    esac
15515    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15516    # soname into executable. Probably we can add versioning support to
15517    # collect2, so additional links can be useful in future.
15518    if test "$aix_use_runtimelinking" = yes; then
15519      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15520      # instead of lib<name>.a to let people know that these are not
15521      # typical AIX shared libraries.
15522      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15523    else
15524      # We preserve .a as extension for shared libraries through AIX4.2
15525      # and later when we are not doing run time linking.
15526      library_names_spec='${libname}${release}.a $libname.a'
15527      soname_spec='${libname}${release}${shared_ext}$major'
15528    fi
15529    shlibpath_var=LIBPATH
15530  fi
15531  ;;
15532
15533amigaos*)
15534  case $host_cpu in
15535  powerpc)
15536    # Since July 2007 AmigaOS4 officially supports .so libraries.
15537    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15538    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15539    ;;
15540  m68k)
15541    library_names_spec='$libname.ixlibrary $libname.a'
15542    # Create ${libname}_ixlibrary.a entries in /sys/libs.
15543    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15544    ;;
15545  esac
15546  ;;
15547
15548beos*)
15549  library_names_spec='${libname}${shared_ext}'
15550  dynamic_linker="$host_os ld.so"
15551  shlibpath_var=LIBRARY_PATH
15552  ;;
15553
15554bsdi[45]*)
15555  version_type=linux
15556  need_version=no
15557  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15558  soname_spec='${libname}${release}${shared_ext}$major'
15559  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15560  shlibpath_var=LD_LIBRARY_PATH
15561  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15562  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15563  # the default ld.so.conf also contains /usr/contrib/lib and
15564  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15565  # libtool to hard-code these into programs
15566  ;;
15567
15568cygwin* | mingw* | pw32* | cegcc*)
15569  version_type=windows
15570  shrext_cmds=".dll"
15571  need_version=no
15572  need_lib_prefix=no
15573
15574  case $GCC,$cc_basename in
15575  yes,*)
15576    # gcc
15577    library_names_spec='$libname.dll.a'
15578    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15579    postinstall_cmds='base_file=`basename \${file}`~
15580      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15581      dldir=$destdir/`dirname \$dlpath`~
15582      test -d \$dldir || mkdir -p \$dldir~
15583      $install_prog $dir/$dlname \$dldir/$dlname~
15584      chmod a+x \$dldir/$dlname~
15585      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15586        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15587      fi'
15588    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15589      dlpath=$dir/\$dldll~
15590       $RM \$dlpath'
15591    shlibpath_overrides_runpath=yes
15592
15593    case $host_os in
15594    cygwin*)
15595      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15596      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15597
15598      ;;
15599    mingw* | cegcc*)
15600      # MinGW DLLs use traditional 'lib' prefix
15601      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15602      ;;
15603    pw32*)
15604      # pw32 DLLs use 'pw' prefix rather than 'lib'
15605      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15606      ;;
15607    esac
15608    dynamic_linker='Win32 ld.exe'
15609    ;;
15610
15611  *,cl*)
15612    # Native MSVC
15613    libname_spec='$name'
15614    soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615    library_names_spec='${libname}.dll.lib'
15616
15617    case $build_os in
15618    mingw*)
15619      sys_lib_search_path_spec=
15620      lt_save_ifs=$IFS
15621      IFS=';'
15622      for lt_path in $LIB
15623      do
15624        IFS=$lt_save_ifs
15625        # Let DOS variable expansion print the short 8.3 style file name.
15626        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15627        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15628      done
15629      IFS=$lt_save_ifs
15630      # Convert to MSYS style.
15631      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15632      ;;
15633    cygwin*)
15634      # Convert to unix form, then to dos form, then back to unix form
15635      # but this time dos style (no spaces!) so that the unix form looks
15636      # like /cygdrive/c/PROGRA~1:/cygdr...
15637      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15638      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15639      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15640      ;;
15641    *)
15642      sys_lib_search_path_spec="$LIB"
15643      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15644        # It is most probably a Windows format PATH.
15645        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15646      else
15647        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15648      fi
15649      # FIXME: find the short name or the path components, as spaces are
15650      # common. (e.g. "Program Files" -> "PROGRA~1")
15651      ;;
15652    esac
15653
15654    # DLL is installed to $(libdir)/../bin by postinstall_cmds
15655    postinstall_cmds='base_file=`basename \${file}`~
15656      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15657      dldir=$destdir/`dirname \$dlpath`~
15658      test -d \$dldir || mkdir -p \$dldir~
15659      $install_prog $dir/$dlname \$dldir/$dlname'
15660    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15661      dlpath=$dir/\$dldll~
15662       $RM \$dlpath'
15663    shlibpath_overrides_runpath=yes
15664    dynamic_linker='Win32 link.exe'
15665    ;;
15666
15667  *)
15668    # Assume MSVC wrapper
15669    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15670    dynamic_linker='Win32 ld.exe'
15671    ;;
15672  esac
15673  # FIXME: first we should search . and the directory the executable is in
15674  shlibpath_var=PATH
15675  ;;
15676
15677darwin* | rhapsody*)
15678  dynamic_linker="$host_os dyld"
15679  version_type=darwin
15680  need_lib_prefix=no
15681  need_version=no
15682  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15683  soname_spec='${libname}${release}${major}$shared_ext'
15684  shlibpath_overrides_runpath=yes
15685  shlibpath_var=DYLD_LIBRARY_PATH
15686  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15687
15688  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15689  ;;
15690
15691dgux*)
15692  version_type=linux
15693  need_lib_prefix=no
15694  need_version=no
15695  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15696  soname_spec='${libname}${release}${shared_ext}$major'
15697  shlibpath_var=LD_LIBRARY_PATH
15698  ;;
15699
15700freebsd1*)
15701  dynamic_linker=no
15702  ;;
15703
15704freebsd* | dragonfly*)
15705  # DragonFly does not have aout.  When/if they implement a new
15706  # versioning mechanism, adjust this.
15707  if test -x /usr/bin/objformat; then
15708    objformat=`/usr/bin/objformat`
15709  else
15710    case $host_os in
15711    freebsd[123]*) objformat=aout ;;
15712    *) objformat=elf ;;
15713    esac
15714  fi
15715  version_type=freebsd-$objformat
15716  case $version_type in
15717    freebsd-elf*)
15718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15719      need_version=no
15720      need_lib_prefix=no
15721      ;;
15722    freebsd-*)
15723      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15724      need_version=yes
15725      ;;
15726  esac
15727  shlibpath_var=LD_LIBRARY_PATH
15728  case $host_os in
15729  freebsd2*)
15730    shlibpath_overrides_runpath=yes
15731    ;;
15732  freebsd3.[01]* | freebsdelf3.[01]*)
15733    shlibpath_overrides_runpath=yes
15734    hardcode_into_libs=yes
15735    ;;
15736  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15737  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15738    shlibpath_overrides_runpath=no
15739    hardcode_into_libs=yes
15740    ;;
15741  *) # from 4.6 on, and DragonFly
15742    shlibpath_overrides_runpath=yes
15743    hardcode_into_libs=yes
15744    ;;
15745  esac
15746  ;;
15747
15748gnu*)
15749  version_type=linux
15750  need_lib_prefix=no
15751  need_version=no
15752  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15753  soname_spec='${libname}${release}${shared_ext}$major'
15754  shlibpath_var=LD_LIBRARY_PATH
15755  shlibpath_overrides_runpath=no
15756  hardcode_into_libs=yes
15757  ;;
15758
15759haiku*)
15760  version_type=linux
15761  need_lib_prefix=no
15762  need_version=no
15763  dynamic_linker="$host_os runtime_loader"
15764  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15765  soname_spec='${libname}${release}${shared_ext}$major'
15766  shlibpath_var=LIBRARY_PATH
15767  shlibpath_overrides_runpath=yes
15768  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15769  hardcode_into_libs=yes
15770  ;;
15771
15772hpux9* | hpux10* | hpux11*)
15773  # Give a soname corresponding to the major version so that dld.sl refuses to
15774  # link against other versions.
15775  version_type=sunos
15776  need_lib_prefix=no
15777  need_version=no
15778  case $host_cpu in
15779  ia64*)
15780    shrext_cmds='.so'
15781    hardcode_into_libs=yes
15782    dynamic_linker="$host_os dld.so"
15783    shlibpath_var=LD_LIBRARY_PATH
15784    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15785    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15786    soname_spec='${libname}${release}${shared_ext}$major'
15787    if test "X$HPUX_IA64_MODE" = X32; then
15788      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15789    else
15790      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15791    fi
15792    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15793    ;;
15794  hppa*64*)
15795    shrext_cmds='.sl'
15796    hardcode_into_libs=yes
15797    dynamic_linker="$host_os dld.sl"
15798    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15799    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15800    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15801    soname_spec='${libname}${release}${shared_ext}$major'
15802    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15803    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15804    ;;
15805  *)
15806    shrext_cmds='.sl'
15807    dynamic_linker="$host_os dld.sl"
15808    shlibpath_var=SHLIB_PATH
15809    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15810    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811    soname_spec='${libname}${release}${shared_ext}$major'
15812    ;;
15813  esac
15814  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15815  postinstall_cmds='chmod 555 $lib'
15816  # or fails outright, so override atomically:
15817  install_override_mode=555
15818  ;;
15819
15820interix[3-9]*)
15821  version_type=linux
15822  need_lib_prefix=no
15823  need_version=no
15824  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15825  soname_spec='${libname}${release}${shared_ext}$major'
15826  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15827  shlibpath_var=LD_LIBRARY_PATH
15828  shlibpath_overrides_runpath=no
15829  hardcode_into_libs=yes
15830  ;;
15831
15832irix5* | irix6* | nonstopux*)
15833  case $host_os in
15834    nonstopux*) version_type=nonstopux ;;
15835    *)
15836	if test "$lt_cv_prog_gnu_ld" = yes; then
15837		version_type=linux
15838	else
15839		version_type=irix
15840	fi ;;
15841  esac
15842  need_lib_prefix=no
15843  need_version=no
15844  soname_spec='${libname}${release}${shared_ext}$major'
15845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15846  case $host_os in
15847  irix5* | nonstopux*)
15848    libsuff= shlibsuff=
15849    ;;
15850  *)
15851    case $LD in # libtool.m4 will add one of these switches to LD
15852    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15853      libsuff= shlibsuff= libmagic=32-bit;;
15854    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15855      libsuff=32 shlibsuff=N32 libmagic=N32;;
15856    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15857      libsuff=64 shlibsuff=64 libmagic=64-bit;;
15858    *) libsuff= shlibsuff= libmagic=never-match;;
15859    esac
15860    ;;
15861  esac
15862  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15863  shlibpath_overrides_runpath=no
15864  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15865  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15866  hardcode_into_libs=yes
15867  ;;
15868
15869# No shared lib support for Linux oldld, aout, or coff.
15870linux*oldld* | linux*aout* | linux*coff*)
15871  dynamic_linker=no
15872  ;;
15873
15874# This must be Linux ELF.
15875linux* | k*bsd*-gnu | kopensolaris*-gnu)
15876  version_type=linux
15877  need_lib_prefix=no
15878  need_version=no
15879  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880  soname_spec='${libname}${release}${shared_ext}$major'
15881  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15882  shlibpath_var=LD_LIBRARY_PATH
15883  shlibpath_overrides_runpath=no
15884
15885  # Some binutils ld are patched to set DT_RUNPATH
15886  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15887  $as_echo_n "(cached) " >&6
15888else
15889  lt_cv_shlibpath_overrides_runpath=no
15890    save_LDFLAGS=$LDFLAGS
15891    save_libdir=$libdir
15892    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15893	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15894    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15895/* end confdefs.h.  */
15896
15897int
15898main ()
15899{
15900
15901  ;
15902  return 0;
15903}
15904_ACEOF
15905if ac_fn_cxx_try_link "$LINENO"; then :
15906  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15907  lt_cv_shlibpath_overrides_runpath=yes
15908fi
15909fi
15910rm -f core conftest.err conftest.$ac_objext \
15911    conftest$ac_exeext conftest.$ac_ext
15912    LDFLAGS=$save_LDFLAGS
15913    libdir=$save_libdir
15914
15915fi
15916
15917  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15918
15919  # This implies no fast_install, which is unacceptable.
15920  # Some rework will be needed to allow for fast_install
15921  # before this can be enabled.
15922  hardcode_into_libs=yes
15923
15924  # Append ld.so.conf contents to the search path
15925  if test -f /etc/ld.so.conf; then
15926    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' ' '`
15927    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15928  fi
15929
15930  # We used to test for /lib/ld.so.1 and disable shared libraries on
15931  # powerpc, because MkLinux only supported shared libraries with the
15932  # GNU dynamic linker.  Since this was broken with cross compilers,
15933  # most powerpc-linux boxes support dynamic linking these days and
15934  # people can always --disable-shared, the test was removed, and we
15935  # assume the GNU/Linux dynamic linker is in use.
15936  dynamic_linker='GNU/Linux ld.so'
15937  ;;
15938
15939netbsdelf*-gnu)
15940  version_type=linux
15941  need_lib_prefix=no
15942  need_version=no
15943  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15944  soname_spec='${libname}${release}${shared_ext}$major'
15945  shlibpath_var=LD_LIBRARY_PATH
15946  shlibpath_overrides_runpath=no
15947  hardcode_into_libs=yes
15948  dynamic_linker='NetBSD ld.elf_so'
15949  ;;
15950
15951netbsd*)
15952  version_type=sunos
15953  need_lib_prefix=no
15954  need_version=no
15955  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15956    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15957    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15958    dynamic_linker='NetBSD (a.out) ld.so'
15959  else
15960    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15961    soname_spec='${libname}${release}${shared_ext}$major'
15962    dynamic_linker='NetBSD ld.elf_so'
15963  fi
15964  shlibpath_var=LD_LIBRARY_PATH
15965  shlibpath_overrides_runpath=yes
15966  hardcode_into_libs=yes
15967  ;;
15968
15969newsos6)
15970  version_type=linux
15971  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15972  shlibpath_var=LD_LIBRARY_PATH
15973  shlibpath_overrides_runpath=yes
15974  ;;
15975
15976*nto* | *qnx*)
15977  version_type=qnx
15978  need_lib_prefix=no
15979  need_version=no
15980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981  soname_spec='${libname}${release}${shared_ext}$major'
15982  shlibpath_var=LD_LIBRARY_PATH
15983  shlibpath_overrides_runpath=no
15984  hardcode_into_libs=yes
15985  dynamic_linker='ldqnx.so'
15986  ;;
15987
15988openbsd*)
15989  version_type=sunos
15990  sys_lib_dlsearch_path_spec="/usr/lib"
15991  need_lib_prefix=no
15992  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15993  case $host_os in
15994    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
15995    *)				need_version=no  ;;
15996  esac
15997  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15998  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15999  shlibpath_var=LD_LIBRARY_PATH
16000  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16001    case $host_os in
16002      openbsd2.[89] | openbsd2.[89].*)
16003	shlibpath_overrides_runpath=no
16004	;;
16005      *)
16006	shlibpath_overrides_runpath=yes
16007	;;
16008      esac
16009  else
16010    shlibpath_overrides_runpath=yes
16011  fi
16012  ;;
16013
16014os2*)
16015  libname_spec='$name'
16016  shrext_cmds=".dll"
16017  need_lib_prefix=no
16018  library_names_spec='$libname${shared_ext} $libname.a'
16019  dynamic_linker='OS/2 ld.exe'
16020  shlibpath_var=LIBPATH
16021  ;;
16022
16023osf3* | osf4* | osf5*)
16024  version_type=osf
16025  need_lib_prefix=no
16026  need_version=no
16027  soname_spec='${libname}${release}${shared_ext}$major'
16028  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16029  shlibpath_var=LD_LIBRARY_PATH
16030  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16031  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16032  ;;
16033
16034rdos*)
16035  dynamic_linker=no
16036  ;;
16037
16038solaris*)
16039  version_type=linux
16040  need_lib_prefix=no
16041  need_version=no
16042  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16043  soname_spec='${libname}${release}${shared_ext}$major'
16044  shlibpath_var=LD_LIBRARY_PATH
16045  shlibpath_overrides_runpath=yes
16046  hardcode_into_libs=yes
16047  # ldd complains unless libraries are executable
16048  postinstall_cmds='chmod +x $lib'
16049  ;;
16050
16051sunos4*)
16052  version_type=sunos
16053  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16054  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16055  shlibpath_var=LD_LIBRARY_PATH
16056  shlibpath_overrides_runpath=yes
16057  if test "$with_gnu_ld" = yes; then
16058    need_lib_prefix=no
16059  fi
16060  need_version=yes
16061  ;;
16062
16063sysv4 | sysv4.3*)
16064  version_type=linux
16065  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066  soname_spec='${libname}${release}${shared_ext}$major'
16067  shlibpath_var=LD_LIBRARY_PATH
16068  case $host_vendor in
16069    sni)
16070      shlibpath_overrides_runpath=no
16071      need_lib_prefix=no
16072      runpath_var=LD_RUN_PATH
16073      ;;
16074    siemens)
16075      need_lib_prefix=no
16076      ;;
16077    motorola)
16078      need_lib_prefix=no
16079      need_version=no
16080      shlibpath_overrides_runpath=no
16081      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16082      ;;
16083  esac
16084  ;;
16085
16086sysv4*MP*)
16087  if test -d /usr/nec ;then
16088    version_type=linux
16089    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16090    soname_spec='$libname${shared_ext}.$major'
16091    shlibpath_var=LD_LIBRARY_PATH
16092  fi
16093  ;;
16094
16095sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16096  version_type=freebsd-elf
16097  need_lib_prefix=no
16098  need_version=no
16099  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16100  soname_spec='${libname}${release}${shared_ext}$major'
16101  shlibpath_var=LD_LIBRARY_PATH
16102  shlibpath_overrides_runpath=yes
16103  hardcode_into_libs=yes
16104  if test "$with_gnu_ld" = yes; then
16105    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16106  else
16107    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16108    case $host_os in
16109      sco3.2v5*)
16110        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16111	;;
16112    esac
16113  fi
16114  sys_lib_dlsearch_path_spec='/usr/lib'
16115  ;;
16116
16117tpf*)
16118  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16119  version_type=linux
16120  need_lib_prefix=no
16121  need_version=no
16122  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123  shlibpath_var=LD_LIBRARY_PATH
16124  shlibpath_overrides_runpath=no
16125  hardcode_into_libs=yes
16126  ;;
16127
16128uts4*)
16129  version_type=linux
16130  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16131  soname_spec='${libname}${release}${shared_ext}$major'
16132  shlibpath_var=LD_LIBRARY_PATH
16133  ;;
16134
16135*)
16136  dynamic_linker=no
16137  ;;
16138esac
16139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16140$as_echo "$dynamic_linker" >&6; }
16141test "$dynamic_linker" = no && can_build_shared=no
16142
16143variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16144if test "$GCC" = yes; then
16145  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16146fi
16147
16148if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16149  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16150fi
16151if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16152  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16153fi
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16193$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16194hardcode_action_CXX=
16195if test -n "$hardcode_libdir_flag_spec_CXX" ||
16196   test -n "$runpath_var_CXX" ||
16197   test "X$hardcode_automatic_CXX" = "Xyes" ; then
16198
16199  # We can hardcode non-existent directories.
16200  if test "$hardcode_direct_CXX" != no &&
16201     # If the only mechanism to avoid hardcoding is shlibpath_var, we
16202     # have to relink, otherwise we might link with an installed library
16203     # when we should be linking with a yet-to-be-installed one
16204     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16205     test "$hardcode_minus_L_CXX" != no; then
16206    # Linking always hardcodes the temporary library directory.
16207    hardcode_action_CXX=relink
16208  else
16209    # We can link without hardcoding, and we can hardcode nonexisting dirs.
16210    hardcode_action_CXX=immediate
16211  fi
16212else
16213  # We cannot hardcode anything, or else we can only hardcode existing
16214  # directories.
16215  hardcode_action_CXX=unsupported
16216fi
16217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16218$as_echo "$hardcode_action_CXX" >&6; }
16219
16220if test "$hardcode_action_CXX" = relink ||
16221   test "$inherit_rpath_CXX" = yes; then
16222  # Fast installation is not supported
16223  enable_fast_install=no
16224elif test "$shlibpath_overrides_runpath" = yes ||
16225     test "$enable_shared" = no; then
16226  # Fast installation is not necessary
16227  enable_fast_install=needless
16228fi
16229
16230
16231
16232
16233
16234
16235
16236  fi # test -n "$compiler"
16237
16238  CC=$lt_save_CC
16239  CFLAGS=$lt_save_CFLAGS
16240  LDCXX=$LD
16241  LD=$lt_save_LD
16242  GCC=$lt_save_GCC
16243  with_gnu_ld=$lt_save_with_gnu_ld
16244  lt_cv_path_LDCXX=$lt_cv_path_LD
16245  lt_cv_path_LD=$lt_save_path_LD
16246  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16247  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16248fi # test "$_lt_caught_CXX_error" != yes
16249
16250ac_ext=c
16251ac_cpp='$CPP $CPPFLAGS'
16252ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16253ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16254ac_compiler_gnu=$ac_cv_c_compiler_gnu
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268        ac_config_commands="$ac_config_commands libtool"
16269
16270
16271
16272
16273# Only expand once:
16274
16275
16276
16277# Check whether to build a with debug symbols
16278{
16279    # For that the compiler works and try to come up with the type
16280    ac_ext=c
16281ac_cpp='$CPP $CPPFLAGS'
16282ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16283ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16284ac_compiler_gnu=$ac_cv_c_compiler_gnu
16285
16286    {
16287    # Test that compiler for the current language actually works
16288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
16289$as_echo_n "checking whether the C compiler works... " >&6; }
16290if ${libzmq_cv_c_compiler_works+:} false; then :
16291  $as_echo_n "(cached) " >&6
16292else
16293  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294/* end confdefs.h.  */
16295
16296int
16297main ()
16298{
16299
16300  ;
16301  return 0;
16302}
16303_ACEOF
16304if ac_fn_c_try_link "$LINENO"; then :
16305  libzmq_cv_c_compiler_works="yes" ;
16306else
16307  libzmq_cv_c_compiler_works="no" ;
16308fi
16309rm -f core conftest.err conftest.$ac_objext \
16310    conftest$ac_exeext conftest.$ac_ext
16311
16312fi
16313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_compiler_works" >&5
16314$as_echo "$libzmq_cv_c_compiler_works" >&6; }
16315
16316    if test "x$libzmq_cv_c_compiler_works" != "xyes"; then
16317        as_fn_error $? "Unable to find a working C compiler" "$LINENO" 5
16318    fi
16319}
16320
16321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C compiler" >&5
16322$as_echo_n "checking whether we are using Intel C compiler... " >&6; }
16323if ${libzmq_cv_c_intel_compiler+:} false; then :
16324  $as_echo_n "(cached) " >&6
16325else
16326  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16327/* end confdefs.h.  */
16328
16329int
16330main ()
16331{
16332#ifndef __INTEL_COMPILER
16333       error if not ICC
16334#endif
16335
16336  ;
16337  return 0;
16338}
16339_ACEOF
16340if ac_fn_c_try_compile "$LINENO"; then :
16341  libzmq_cv_c_intel_compiler="yes" ;
16342else
16343  libzmq_cv_c_intel_compiler="no" ;
16344fi
16345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16346
16347fi
16348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_intel_compiler" >&5
16349$as_echo "$libzmq_cv_c_intel_compiler" >&6; }
16350    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Sun Studio C compiler" >&5
16351$as_echo_n "checking whether we are using Sun Studio C compiler... " >&6; }
16352if ${libzmq_cv_c_sun_studio_compiler+:} false; then :
16353  $as_echo_n "(cached) " >&6
16354else
16355  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16356/* end confdefs.h.  */
16357
16358int
16359main ()
16360{
16361#if !defined(__SUNPRO_CC) && !defined(__SUNPRO_C)
16362       error if not sun studio
16363#endif
16364
16365  ;
16366  return 0;
16367}
16368_ACEOF
16369if ac_fn_c_try_compile "$LINENO"; then :
16370  libzmq_cv_c_sun_studio_compiler="yes" ;
16371else
16372  libzmq_cv_c_sun_studio_compiler="no" ;
16373fi
16374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16375
16376fi
16377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_sun_studio_compiler" >&5
16378$as_echo "$libzmq_cv_c_sun_studio_compiler" >&6; }
16379    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using clang C compiler" >&5
16380$as_echo_n "checking whether we are using clang C compiler... " >&6; }
16381if ${libzmq_cv_c_clang_compiler+:} false; then :
16382  $as_echo_n "(cached) " >&6
16383else
16384  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16385/* end confdefs.h.  */
16386
16387int
16388main ()
16389{
16390#ifndef __clang__
16391       error if not clang
16392#endif
16393
16394  ;
16395  return 0;
16396}
16397_ACEOF
16398if ac_fn_c_try_compile "$LINENO"; then :
16399  libzmq_cv_c_clang_compiler="yes" ;
16400else
16401  libzmq_cv_c_clang_compiler="no" ;
16402fi
16403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404
16405fi
16406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_clang_compiler" >&5
16407$as_echo "$libzmq_cv_c_clang_compiler" >&6; }
16408    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc >= 4 C compiler" >&5
16409$as_echo_n "checking whether we are using gcc >= 4 C compiler... " >&6; }
16410if ${libzmq_cv_c_gcc4_compiler+:} false; then :
16411  $as_echo_n "(cached) " >&6
16412else
16413  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414/* end confdefs.h.  */
16415
16416int
16417main ()
16418{
16419#if (!defined __GNUC__ || __GNUC__ < 4)
16420       error if not gcc4 or higher
16421#endif
16422
16423  ;
16424  return 0;
16425}
16426_ACEOF
16427if ac_fn_c_try_compile "$LINENO"; then :
16428  libzmq_cv_c_gcc4_compiler="yes" ;
16429else
16430  libzmq_cv_c_gcc4_compiler="no" ;
16431fi
16432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16433
16434fi
16435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_c_gcc4_compiler" >&5
16436$as_echo "$libzmq_cv_c_gcc4_compiler" >&6; }
16437    ac_ext=c
16438ac_cpp='$CPP $CPPFLAGS'
16439ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16440ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16441ac_compiler_gnu=$ac_cv_c_compiler_gnu
16442
16443
16444    ac_ext=cpp
16445ac_cpp='$CXXCPP $CPPFLAGS'
16446ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16447ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16448ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16449
16450    {
16451    # Test that compiler for the current language actually works
16452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
16453$as_echo_n "checking whether the C++ compiler works... " >&6; }
16454if ${libzmq_cv_cxx_compiler_works+:} false; then :
16455  $as_echo_n "(cached) " >&6
16456else
16457  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16458/* end confdefs.h.  */
16459
16460int
16461main ()
16462{
16463
16464  ;
16465  return 0;
16466}
16467_ACEOF
16468if ac_fn_cxx_try_link "$LINENO"; then :
16469  libzmq_cv_cxx_compiler_works="yes" ;
16470else
16471  libzmq_cv_cxx_compiler_works="no" ;
16472fi
16473rm -f core conftest.err conftest.$ac_objext \
16474    conftest$ac_exeext conftest.$ac_ext
16475
16476fi
16477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_compiler_works" >&5
16478$as_echo "$libzmq_cv_cxx_compiler_works" >&6; }
16479
16480    if test "x$libzmq_cv_cxx_compiler_works" != "xyes"; then
16481        as_fn_error $? "Unable to find a working C++ compiler" "$LINENO" 5
16482    fi
16483}
16484
16485    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Intel C++ compiler" >&5
16486$as_echo_n "checking whether we are using Intel C++ compiler... " >&6; }
16487if ${libzmq_cv_cxx_intel_compiler+:} false; then :
16488  $as_echo_n "(cached) " >&6
16489else
16490  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16491/* end confdefs.h.  */
16492
16493int
16494main ()
16495{
16496#ifndef __INTEL_COMPILER
16497       error if not ICC
16498#endif
16499
16500  ;
16501  return 0;
16502}
16503_ACEOF
16504if ac_fn_cxx_try_compile "$LINENO"; then :
16505  libzmq_cv_cxx_intel_compiler="yes" ;
16506else
16507  libzmq_cv_cxx_intel_compiler="no" ;
16508fi
16509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16510
16511fi
16512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_intel_compiler" >&5
16513$as_echo "$libzmq_cv_cxx_intel_compiler" >&6; }
16514    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using Sun Studio C++ compiler" >&5
16515$as_echo_n "checking whether we are using Sun Studio C++ compiler... " >&6; }
16516if ${libzmq_cv_cxx_sun_studio_compiler+:} false; then :
16517  $as_echo_n "(cached) " >&6
16518else
16519  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16520/* end confdefs.h.  */
16521
16522int
16523main ()
16524{
16525#if !defined(__SUNPRO_CC) && !defined(__SUNPRO_C)
16526       error if not sun studio
16527#endif
16528
16529  ;
16530  return 0;
16531}
16532_ACEOF
16533if ac_fn_cxx_try_compile "$LINENO"; then :
16534  libzmq_cv_cxx_sun_studio_compiler="yes" ;
16535else
16536  libzmq_cv_cxx_sun_studio_compiler="no" ;
16537fi
16538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16539
16540fi
16541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_sun_studio_compiler" >&5
16542$as_echo "$libzmq_cv_cxx_sun_studio_compiler" >&6; }
16543    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using clang C++ compiler" >&5
16544$as_echo_n "checking whether we are using clang C++ compiler... " >&6; }
16545if ${libzmq_cv_cxx_clang_compiler+:} false; then :
16546  $as_echo_n "(cached) " >&6
16547else
16548  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16549/* end confdefs.h.  */
16550
16551int
16552main ()
16553{
16554#ifndef __clang__
16555       error if not clang
16556#endif
16557
16558  ;
16559  return 0;
16560}
16561_ACEOF
16562if ac_fn_cxx_try_compile "$LINENO"; then :
16563  libzmq_cv_cxx_clang_compiler="yes" ;
16564else
16565  libzmq_cv_cxx_clang_compiler="no" ;
16566fi
16567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16568
16569fi
16570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_clang_compiler" >&5
16571$as_echo "$libzmq_cv_cxx_clang_compiler" >&6; }
16572    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using gcc >= 4 C++ compiler" >&5
16573$as_echo_n "checking whether we are using gcc >= 4 C++ compiler... " >&6; }
16574if ${libzmq_cv_cxx_gcc4_compiler+:} false; then :
16575  $as_echo_n "(cached) " >&6
16576else
16577  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578/* end confdefs.h.  */
16579
16580int
16581main ()
16582{
16583#if (!defined __GNUC__ || __GNUC__ < 4)
16584       error if not gcc4 or higher
16585#endif
16586
16587  ;
16588  return 0;
16589}
16590_ACEOF
16591if ac_fn_cxx_try_compile "$LINENO"; then :
16592  libzmq_cv_cxx_gcc4_compiler="yes" ;
16593else
16594  libzmq_cv_cxx_gcc4_compiler="no" ;
16595fi
16596rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16597
16598fi
16599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_gcc4_compiler" >&5
16600$as_echo "$libzmq_cv_cxx_gcc4_compiler" >&6; }
16601    ac_ext=c
16602ac_cpp='$CPP $CPPFLAGS'
16603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16605ac_compiler_gnu=$ac_cv_c_compiler_gnu
16606
16607
16608    # Set GCC and GXX variables correctly
16609    if test "x$GCC" = "xyes"; then
16610        if test "xyes" = "x$libzmq_cv_c_intel_compiler"; then
16611            GCC="no"
16612        fi
16613    fi
16614
16615    if test "x$GXX" = "xyes"; then
16616        if test "xyes" = "x$libzmq_cv_cxx_intel_compiler"; then
16617            GXX="no"
16618        fi
16619    fi
16620}
16621{
16622
16623    # Require compiler specifics
16624
16625
16626    # This flag is checked also in
16627    # Check whether --enable-debug was given.
16628if test "${enable_debug+set}" = set; then :
16629  enableval=$enable_debug;
16630fi
16631
16632
16633    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging information" >&5
16634$as_echo_n "checking whether to enable debugging information... " >&6; }
16635
16636    if test "x$enable_debug" = "xyes"; then
16637
16638        # GCC, clang and ICC
16639        if test "x$GCC" = "xyes" -o \
16640                "x$libzmq_cv_c_intel_compiler" = "xyes" -o \
16641                "x$libzmq_cv_c_clang_compiler" = "xyes"; then
16642            CFLAGS="-g -O0 "
16643        elif test "x$libzmq_cv_c_sun_studio_compiler" = "xyes"; then
16644            CFLAGS="-g0 "
16645        fi
16646
16647        # GCC, clang and ICC
16648        if test "x$GXX" = "xyes" -o \
16649                "x$libzmq_cv_cxx_intel_compiler" = "xyes" -o \
16650                "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then
16651            CPPFLAGS="-g -O0 "
16652            CXXFLAGS="-g -O0 "
16653        # Sun studio
16654        elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
16655            CPPFLAGS="-g0 "
16656            CXXFLAGS="-g0 "
16657        fi
16658
16659        if test "x$ZMQ_ORIG_CFLAGS" != "xnone"; then
16660            CFLAGS="${CFLAGS} ${ZMQ_ORIG_CFLAGS}"
16661        fi
16662        if test "x$ZMQ_ORIG_CPPFLAGS" != "xnone"; then
16663            CPPFLAGS="${CPPFLAGS} ${ZMQ_ORIG_CPPFLAGS}"
16664        fi
16665        if test "x$ZMQ_ORIG_CXXFLAGS" != "xnone"; then
16666            CXXFLAGS="${CXXFLAGS} ${ZMQ_ORIG_CXXFLAGS}"
16667        fi
16668        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16669$as_echo "yes" >&6; }
16670    else
16671        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16672$as_echo "no" >&6; }
16673    fi
16674}
16675
16676# Check wheter to enable code coverage
16677{
16678    # Require compiler specifics
16679
16680
16681
16682# Check whether --with-gcov was given.
16683if test "${with_gcov+set}" = set; then :
16684  withval=$with_gcov; ZMQ_GCOV="$withval"
16685fi
16686
16687
16688    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable code coverage" >&5
16689$as_echo_n "checking whether to enable code coverage... " >&6; }
16690
16691    if test "x$ZMQ_GCOV" = "xyes"; then
16692
16693        if test "x$GXX" != "xyes"; then
16694            as_fn_error $? "--with-gcov=yes works only with GCC" "$LINENO" 5
16695        fi
16696
16697        CFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
16698        if test "x${ZMQ_ORIG_CPPFLAGS}" != "xnone"; then
16699            CFLAGS="${CFLAGS} ${ZMQ_ORIG_CFLAGS}"
16700        fi
16701
16702        CPPFLAGS="-g -O0 -fprofile-arcs -ftest-coverage"
16703        if test "x${ZMQ_ORIG_CPPFLAGS}" != "xnone"; then
16704            CPPFLAGS="${CPPFLAGS} ${ZMQ_ORIG_CPPFLAGS}"
16705        fi
16706
16707        CXXFLAGS="-fprofile-arcs"
16708        if test "x${ZMQ_ORIG_CXXFLAGS}" != "xnone"; then
16709            CXXFLAGS="${CXXFLAGS} ${ZMQ_ORIG_CXXFLAGS}"
16710        fi
16711
16712        LIBS="-lgcov ${LIBS}"
16713    fi
16714
16715    if test "x$ZMQ_GCOV" = "xyes"; then :
16716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16717$as_echo "yes" >&6; } ;
16718else
16719  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720$as_echo "no" >&6; } ;
16721fi
16722}
16723
16724# Checks for libraries.
16725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
16726$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
16727if ${ac_cv_lib_pthread_pthread_create+:} false; then :
16728  $as_echo_n "(cached) " >&6
16729else
16730  ac_check_lib_save_LIBS=$LIBS
16731LIBS="-lpthread  $LIBS"
16732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16733/* end confdefs.h.  */
16734
16735/* Override any GCC internal prototype to avoid an error.
16736   Use char because int might match the return type of a GCC
16737   builtin and then its argument prototype would still apply.  */
16738#ifdef __cplusplus
16739extern "C"
16740#endif
16741char pthread_create ();
16742int
16743main ()
16744{
16745return pthread_create ();
16746  ;
16747  return 0;
16748}
16749_ACEOF
16750if ac_fn_c_try_link "$LINENO"; then :
16751  ac_cv_lib_pthread_pthread_create=yes
16752else
16753  ac_cv_lib_pthread_pthread_create=no
16754fi
16755rm -f core conftest.err conftest.$ac_objext \
16756    conftest$ac_exeext conftest.$ac_ext
16757LIBS=$ac_check_lib_save_LIBS
16758fi
16759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
16760$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
16761if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
16762  cat >>confdefs.h <<_ACEOF
16763#define HAVE_LIBPTHREAD 1
16764_ACEOF
16765
16766  LIBS="-lpthread $LIBS"
16767
16768fi
16769
16770
16771# Set pedantic
16772libzmq_pedantic="yes"
16773
16774# By default compiling with -Werror except OSX.
16775libzmq_werror="yes"
16776
16777# By default use DSO visibility
16778libzmq_dso_visibility="yes"
16779
16780# Whether we are on mingw or not.
16781libzmq_on_mingw32="no"
16782
16783# Set some default features required by 0MQ code.
16784CPPFLAGS="-D_REENTRANT -D_THREAD_SAFE $CPPFLAGS"
16785
16786# For host type checks
16787
16788
16789# OS-specific tests
16790case "${host_os}" in
16791    *linux*)
16792        # Define on Linux to enable all library features. Define if using a gnu compiler
16793        if test "x$GXX" = "xyes"; then
16794            CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
16795        fi
16796
16797$as_echo "#define ZMQ_HAVE_LINUX 1" >>confdefs.h
16798
16799        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
16800$as_echo_n "checking for sem_init in -lrt... " >&6; }
16801if ${ac_cv_lib_rt_sem_init+:} false; then :
16802  $as_echo_n "(cached) " >&6
16803else
16804  ac_check_lib_save_LIBS=$LIBS
16805LIBS="-lrt  $LIBS"
16806cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16807/* end confdefs.h.  */
16808
16809/* Override any GCC internal prototype to avoid an error.
16810   Use char because int might match the return type of a GCC
16811   builtin and then its argument prototype would still apply.  */
16812#ifdef __cplusplus
16813extern "C"
16814#endif
16815char sem_init ();
16816int
16817main ()
16818{
16819return sem_init ();
16820  ;
16821  return 0;
16822}
16823_ACEOF
16824if ac_fn_c_try_link "$LINENO"; then :
16825  ac_cv_lib_rt_sem_init=yes
16826else
16827  ac_cv_lib_rt_sem_init=no
16828fi
16829rm -f core conftest.err conftest.$ac_objext \
16830    conftest$ac_exeext conftest.$ac_ext
16831LIBS=$ac_check_lib_save_LIBS
16832fi
16833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
16834$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
16835if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
16836  cat >>confdefs.h <<_ACEOF
16837#define HAVE_LIBRT 1
16838_ACEOF
16839
16840  LIBS="-lrt $LIBS"
16841
16842fi
16843
16844        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
16845$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
16846if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
16847  $as_echo_n "(cached) " >&6
16848else
16849  ac_check_lib_save_LIBS=$LIBS
16850LIBS="-luuid  $LIBS"
16851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h.  */
16853
16854/* Override any GCC internal prototype to avoid an error.
16855   Use char because int might match the return type of a GCC
16856   builtin and then its argument prototype would still apply.  */
16857#ifdef __cplusplus
16858extern "C"
16859#endif
16860char uuid_generate ();
16861int
16862main ()
16863{
16864return uuid_generate ();
16865  ;
16866  return 0;
16867}
16868_ACEOF
16869if ac_fn_c_try_link "$LINENO"; then :
16870  ac_cv_lib_uuid_uuid_generate=yes
16871else
16872  ac_cv_lib_uuid_uuid_generate=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext \
16875    conftest$ac_exeext conftest.$ac_ext
16876LIBS=$ac_check_lib_save_LIBS
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
16879$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
16880if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
16881  cat >>confdefs.h <<_ACEOF
16882#define HAVE_LIBUUID 1
16883_ACEOF
16884
16885  LIBS="-luuid $LIBS"
16886
16887else
16888  as_fn_error $? "cannot link with -luuid, install uuid-dev." "$LINENO" 5
16889fi
16890
16891
16892        case "${host_os}" in
16893            *android*)
16894
16895$as_echo "#define ZMQ_HAVE_ANDROID 1" >>confdefs.h
16896
16897            ;;
16898        esac
16899        ;;
16900    *solaris*)
16901        # Define on Solaris to enable all library features
16902        CPPFLAGS="-D_PTHREADS $CPPFLAGS"
16903
16904$as_echo "#define ZMQ_HAVE_SOLARIS 1" >>confdefs.h
16905
16906        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
16907$as_echo_n "checking for socket in -lsocket... " >&6; }
16908if ${ac_cv_lib_socket_socket+:} false; then :
16909  $as_echo_n "(cached) " >&6
16910else
16911  ac_check_lib_save_LIBS=$LIBS
16912LIBS="-lsocket  $LIBS"
16913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914/* end confdefs.h.  */
16915
16916/* Override any GCC internal prototype to avoid an error.
16917   Use char because int might match the return type of a GCC
16918   builtin and then its argument prototype would still apply.  */
16919#ifdef __cplusplus
16920extern "C"
16921#endif
16922char socket ();
16923int
16924main ()
16925{
16926return socket ();
16927  ;
16928  return 0;
16929}
16930_ACEOF
16931if ac_fn_c_try_link "$LINENO"; then :
16932  ac_cv_lib_socket_socket=yes
16933else
16934  ac_cv_lib_socket_socket=no
16935fi
16936rm -f core conftest.err conftest.$ac_objext \
16937    conftest$ac_exeext conftest.$ac_ext
16938LIBS=$ac_check_lib_save_LIBS
16939fi
16940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
16941$as_echo "$ac_cv_lib_socket_socket" >&6; }
16942if test "x$ac_cv_lib_socket_socket" = xyes; then :
16943  cat >>confdefs.h <<_ACEOF
16944#define HAVE_LIBSOCKET 1
16945_ACEOF
16946
16947  LIBS="-lsocket $LIBS"
16948
16949fi
16950
16951        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16952$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16953if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16954  $as_echo_n "(cached) " >&6
16955else
16956  ac_check_lib_save_LIBS=$LIBS
16957LIBS="-lnsl  $LIBS"
16958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959/* end confdefs.h.  */
16960
16961/* Override any GCC internal prototype to avoid an error.
16962   Use char because int might match the return type of a GCC
16963   builtin and then its argument prototype would still apply.  */
16964#ifdef __cplusplus
16965extern "C"
16966#endif
16967char gethostbyname ();
16968int
16969main ()
16970{
16971return gethostbyname ();
16972  ;
16973  return 0;
16974}
16975_ACEOF
16976if ac_fn_c_try_link "$LINENO"; then :
16977  ac_cv_lib_nsl_gethostbyname=yes
16978else
16979  ac_cv_lib_nsl_gethostbyname=no
16980fi
16981rm -f core conftest.err conftest.$ac_objext \
16982    conftest$ac_exeext conftest.$ac_ext
16983LIBS=$ac_check_lib_save_LIBS
16984fi
16985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16986$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16987if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16988  cat >>confdefs.h <<_ACEOF
16989#define HAVE_LIBNSL 1
16990_ACEOF
16991
16992  LIBS="-lnsl $LIBS"
16993
16994fi
16995
16996        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
16997$as_echo_n "checking for sem_init in -lrt... " >&6; }
16998if ${ac_cv_lib_rt_sem_init+:} false; then :
16999  $as_echo_n "(cached) " >&6
17000else
17001  ac_check_lib_save_LIBS=$LIBS
17002LIBS="-lrt  $LIBS"
17003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17004/* end confdefs.h.  */
17005
17006/* Override any GCC internal prototype to avoid an error.
17007   Use char because int might match the return type of a GCC
17008   builtin and then its argument prototype would still apply.  */
17009#ifdef __cplusplus
17010extern "C"
17011#endif
17012char sem_init ();
17013int
17014main ()
17015{
17016return sem_init ();
17017  ;
17018  return 0;
17019}
17020_ACEOF
17021if ac_fn_c_try_link "$LINENO"; then :
17022  ac_cv_lib_rt_sem_init=yes
17023else
17024  ac_cv_lib_rt_sem_init=no
17025fi
17026rm -f core conftest.err conftest.$ac_objext \
17027    conftest$ac_exeext conftest.$ac_ext
17028LIBS=$ac_check_lib_save_LIBS
17029fi
17030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
17031$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
17032if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
17033  cat >>confdefs.h <<_ACEOF
17034#define HAVE_LIBRT 1
17035_ACEOF
17036
17037  LIBS="-lrt $LIBS"
17038
17039fi
17040
17041        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17042$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17043if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
17044  $as_echo_n "(cached) " >&6
17045else
17046  ac_check_lib_save_LIBS=$LIBS
17047LIBS="-luuid  $LIBS"
17048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17049/* end confdefs.h.  */
17050
17051/* Override any GCC internal prototype to avoid an error.
17052   Use char because int might match the return type of a GCC
17053   builtin and then its argument prototype would still apply.  */
17054#ifdef __cplusplus
17055extern "C"
17056#endif
17057char uuid_generate ();
17058int
17059main ()
17060{
17061return uuid_generate ();
17062  ;
17063  return 0;
17064}
17065_ACEOF
17066if ac_fn_c_try_link "$LINENO"; then :
17067  ac_cv_lib_uuid_uuid_generate=yes
17068else
17069  ac_cv_lib_uuid_uuid_generate=no
17070fi
17071rm -f core conftest.err conftest.$ac_objext \
17072    conftest$ac_exeext conftest.$ac_ext
17073LIBS=$ac_check_lib_save_LIBS
17074fi
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17076$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17077if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
17078  cat >>confdefs.h <<_ACEOF
17079#define HAVE_LIBUUID 1
17080_ACEOF
17081
17082  LIBS="-luuid $LIBS"
17083
17084else
17085  as_fn_error $? "cannot link with -luuid, install uuid-dev." "$LINENO" 5
17086fi
17087
17088        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic operations can be used" >&5
17089$as_echo_n "checking whether atomic operations can be used... " >&6; }
17090        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17091/* end confdefs.h.  */
17092#include <atomic.h>
17093int
17094main ()
17095{
17096uint32_t value;
17097              atomic_cas_32 (&value, 0, 0);
17098              return 0;
17099  ;
17100  return 0;
17101}
17102_ACEOF
17103if ac_fn_c_try_compile "$LINENO"; then :
17104  solaris_has_atomic=yes
17105else
17106  solaris_has_atomic=no
17107fi
17108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $solaris_has_atomic" >&5
17110$as_echo "$solaris_has_atomic" >&6; }
17111        # Solaris 8 does not have atomic operations exported to user space.
17112        if test "x$solaris_has_atomic" = "xno"; then
17113
17114$as_echo "#define ZMQ_FORCE_MUTEXES 1" >>confdefs.h
17115
17116        fi
17117        ;;
17118    *dragonfly*)
17119        # Define on DragonFly to enable all library features
17120        CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
17121
17122$as_echo "#define ZMQ_HAVE_FREEBSD 1" >>confdefs.h
17123$as_echo "#define ZMQ_HAVE_DRAGONFLY 1" >>confdefs.h
17124
17125        ;;
17126    *freebsd*)
17127        # Define on FreeBSD to enable all library features
17128        CPPFLAGS="-D__BSD_VISIBLE $CPPFLAGS"
17129
17130$as_echo "#define ZMQ_HAVE_FREEBSD 1" >>confdefs.h
17131
17132        ;;
17133    *darwin*)
17134        # Define on Darwin to enable all library features
17135        CPPFLAGS="-D_DARWIN_C_SOURCE $CPPFLAGS"
17136        libzmq_pedantic="no"
17137        libzmq_werror="no"
17138
17139$as_echo "#define ZMQ_HAVE_OSX 1" >>confdefs.h
17140
17141        ac_ext=cpp
17142ac_cpp='$CXXCPP $CPPFLAGS'
17143ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17144ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17145ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17146
17147        {
17148    {
17149
17150
17151
17152    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -Wno-uninitialized" >&5
17153$as_echo_n "checking whether C++ compiler supports -Wno-uninitialized... " >&6; }
17154
17155    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag
17156    ac_cxx_werror_flag="yes"
17157
17158    case "xcxx" in
17159        xc)
17160            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
17161            CFLAGS="$CFLAGS -Wno-uninitialized"
17162        ;;
17163        xcxx)
17164            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
17165            CPPFLAGS="$CPPFLAGS -Wno-uninitialized"
17166        ;;
17167        *)
17168            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
17169$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
17170        ;;
17171    esac
17172
17173    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17174/* end confdefs.h.  */
17175
17176int
17177main ()
17178{
17179
17180  ;
17181  return 0;
17182}
17183_ACEOF
17184if ac_fn_cxx_try_compile "$LINENO"; then :
17185  # This hack exist for ICC, which outputs unknown options as remarks
17186                      # Remarks are not turned into errors even with -Werror on
17187                      if ($GREP 'ignoring unknown' conftest.err ||
17188                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
17189                           eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="no"
17190                       else
17191                           eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="yes"
17192                       fi
17193else
17194  eval libzmq_cv_cxx_supports_flag__Wno_uninitialized="no"
17195fi
17196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17197
17198    case "xcxx" in
17199        xc)
17200            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
17201        ;;
17202        xcxx)
17203            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
17204        ;;
17205        *)
17206            # nothing to restore
17207        ;;
17208    esac
17209
17210    # Restore the werror flag
17211    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save
17212
17213    # Call the action as the flags are restored
17214    if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :
17215  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17216$as_echo "yes" >&6; } ;
17217else
17218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17219$as_echo "no" >&6; } ;
17220fi
17221
17222}
17223    case "xcxx" in
17224       xc)
17225            if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :
17226  CFLAGS="-Wno-uninitialized $CFLAGS";
17227fi
17228       ;;
17229       xcxx)
17230            if eval test x$libzmq_cv_cxx_supports_flag__Wno_uninitialized = "xyes"; then :
17231  CPPFLAGS="-Wno-uninitialized $CPPFLAGS";
17232fi
17233       ;;
17234    esac
17235}
17236        ac_ext=c
17237ac_cpp='$CPP $CPPFLAGS'
17238ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17239ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17240ac_compiler_gnu=$ac_cv_c_compiler_gnu
17241
17242        ;;
17243    *netbsd*)
17244        # Define on NetBSD to enable all library features
17245        CPPFLAGS="-D_NETBSD_SOURCE $CPPFLAGS"
17246
17247$as_echo "#define ZMQ_HAVE_NETBSD 1" >>confdefs.h
17248
17249        # NetBSD 5.0 and newer provides atomic operations but we can
17250        # only use these on systems where PR #42842 has been fixed so
17251        # we must try and link a test program using C++.
17252        libzmq_netbsd_has_atomic=no
17253        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether atomic operations can be used" >&5
17254$as_echo_n "checking whether atomic operations can be used... " >&6; }
17255        ac_ext=cpp
17256ac_cpp='$CXXCPP $CPPFLAGS'
17257ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17258ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17259ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17260
17261        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262/* end confdefs.h.  */
17263#include <atomic.h>
17264int
17265main ()
17266{
17267uint32_t value;
17268              atomic_cas_32 (&value, 0, 0);
17269              return 0;
17270  ;
17271  return 0;
17272}
17273_ACEOF
17274if ac_fn_cxx_try_link "$LINENO"; then :
17275  libzmq_netbsd_has_atomic=yes
17276else
17277  libzmq_netbsd_has_atomic=no
17278fi
17279rm -f core conftest.err conftest.$ac_objext \
17280    conftest$ac_exeext conftest.$ac_ext
17281        ac_ext=c
17282ac_cpp='$CPP $CPPFLAGS'
17283ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17284ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17285ac_compiler_gnu=$ac_cv_c_compiler_gnu
17286
17287        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_netbsd_has_atomic" >&5
17288$as_echo "$libzmq_netbsd_has_atomic" >&6; }
17289        if test "x$libzmq_netbsd_has_atomic" = "xno"; then
17290
17291$as_echo "#define ZMQ_FORCE_MUTEXES 1" >>confdefs.h
17292
17293        fi
17294        ;;
17295    *openbsd*)
17296        # Define on OpenBSD to enable all library features
17297        CPPFLAGS="-D_BSD_SOURCE $CPPFLAGS"
17298
17299$as_echo "#define ZMQ_HAVE_OPENBSD 1" >>confdefs.h
17300
17301        ;;
17302    *nto-qnx*)
17303        libzmq_pedantic="no"
17304
17305$as_echo "#define ZMQ_HAVE_QNXNTO 1" >>confdefs.h
17306
17307        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17308$as_echo_n "checking for socket in -lsocket... " >&6; }
17309if ${ac_cv_lib_socket_socket+:} false; then :
17310  $as_echo_n "(cached) " >&6
17311else
17312  ac_check_lib_save_LIBS=$LIBS
17313LIBS="-lsocket  $LIBS"
17314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315/* end confdefs.h.  */
17316
17317/* Override any GCC internal prototype to avoid an error.
17318   Use char because int might match the return type of a GCC
17319   builtin and then its argument prototype would still apply.  */
17320#ifdef __cplusplus
17321extern "C"
17322#endif
17323char socket ();
17324int
17325main ()
17326{
17327return socket ();
17328  ;
17329  return 0;
17330}
17331_ACEOF
17332if ac_fn_c_try_link "$LINENO"; then :
17333  ac_cv_lib_socket_socket=yes
17334else
17335  ac_cv_lib_socket_socket=no
17336fi
17337rm -f core conftest.err conftest.$ac_objext \
17338    conftest$ac_exeext conftest.$ac_ext
17339LIBS=$ac_check_lib_save_LIBS
17340fi
17341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17342$as_echo "$ac_cv_lib_socket_socket" >&6; }
17343if test "x$ac_cv_lib_socket_socket" = xyes; then :
17344  cat >>confdefs.h <<_ACEOF
17345#define HAVE_LIBSOCKET 1
17346_ACEOF
17347
17348  LIBS="-lsocket $LIBS"
17349
17350fi
17351
17352        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_bytes in -lcrypto" >&5
17353$as_echo_n "checking for RAND_bytes in -lcrypto... " >&6; }
17354if ${ac_cv_lib_crypto_RAND_bytes+:} false; then :
17355  $as_echo_n "(cached) " >&6
17356else
17357  ac_check_lib_save_LIBS=$LIBS
17358LIBS="-lcrypto  $LIBS"
17359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17360/* end confdefs.h.  */
17361
17362/* Override any GCC internal prototype to avoid an error.
17363   Use char because int might match the return type of a GCC
17364   builtin and then its argument prototype would still apply.  */
17365#ifdef __cplusplus
17366extern "C"
17367#endif
17368char RAND_bytes ();
17369int
17370main ()
17371{
17372return RAND_bytes ();
17373  ;
17374  return 0;
17375}
17376_ACEOF
17377if ac_fn_c_try_link "$LINENO"; then :
17378  ac_cv_lib_crypto_RAND_bytes=yes
17379else
17380  ac_cv_lib_crypto_RAND_bytes=no
17381fi
17382rm -f core conftest.err conftest.$ac_objext \
17383    conftest$ac_exeext conftest.$ac_ext
17384LIBS=$ac_check_lib_save_LIBS
17385fi
17386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_bytes" >&5
17387$as_echo "$ac_cv_lib_crypto_RAND_bytes" >&6; }
17388if test "x$ac_cv_lib_crypto_RAND_bytes" = xyes; then :
17389  cat >>confdefs.h <<_ACEOF
17390#define HAVE_LIBCRYPTO 1
17391_ACEOF
17392
17393  LIBS="-lcrypto $LIBS"
17394
17395fi
17396
17397        ;;
17398    *aix*)
17399
17400$as_echo "#define ZMQ_HAVE_AIX 1" >>confdefs.h
17401
17402        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_bytes in -lcrypto" >&5
17403$as_echo_n "checking for RAND_bytes in -lcrypto... " >&6; }
17404if ${ac_cv_lib_crypto_RAND_bytes+:} false; then :
17405  $as_echo_n "(cached) " >&6
17406else
17407  ac_check_lib_save_LIBS=$LIBS
17408LIBS="-lcrypto  $LIBS"
17409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17410/* end confdefs.h.  */
17411
17412/* Override any GCC internal prototype to avoid an error.
17413   Use char because int might match the return type of a GCC
17414   builtin and then its argument prototype would still apply.  */
17415#ifdef __cplusplus
17416extern "C"
17417#endif
17418char RAND_bytes ();
17419int
17420main ()
17421{
17422return RAND_bytes ();
17423  ;
17424  return 0;
17425}
17426_ACEOF
17427if ac_fn_c_try_link "$LINENO"; then :
17428  ac_cv_lib_crypto_RAND_bytes=yes
17429else
17430  ac_cv_lib_crypto_RAND_bytes=no
17431fi
17432rm -f core conftest.err conftest.$ac_objext \
17433    conftest$ac_exeext conftest.$ac_ext
17434LIBS=$ac_check_lib_save_LIBS
17435fi
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_bytes" >&5
17437$as_echo "$ac_cv_lib_crypto_RAND_bytes" >&6; }
17438if test "x$ac_cv_lib_crypto_RAND_bytes" = xyes; then :
17439  cat >>confdefs.h <<_ACEOF
17440#define HAVE_LIBCRYPTO 1
17441_ACEOF
17442
17443  LIBS="-lcrypto $LIBS"
17444
17445fi
17446
17447        ;;
17448    *hpux*)
17449        # Define on HP-UX to enable all library features
17450        CPPFLAGS="-D_POSIX_C_SOURCE=200112L $CPPFLAGS"
17451
17452$as_echo "#define ZMQ_HAVE_HPUX 1" >>confdefs.h
17453
17454        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
17455$as_echo_n "checking for sem_init in -lrt... " >&6; }
17456if ${ac_cv_lib_rt_sem_init+:} false; then :
17457  $as_echo_n "(cached) " >&6
17458else
17459  ac_check_lib_save_LIBS=$LIBS
17460LIBS="-lrt  $LIBS"
17461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17462/* end confdefs.h.  */
17463
17464/* Override any GCC internal prototype to avoid an error.
17465   Use char because int might match the return type of a GCC
17466   builtin and then its argument prototype would still apply.  */
17467#ifdef __cplusplus
17468extern "C"
17469#endif
17470char sem_init ();
17471int
17472main ()
17473{
17474return sem_init ();
17475  ;
17476  return 0;
17477}
17478_ACEOF
17479if ac_fn_c_try_link "$LINENO"; then :
17480  ac_cv_lib_rt_sem_init=yes
17481else
17482  ac_cv_lib_rt_sem_init=no
17483fi
17484rm -f core conftest.err conftest.$ac_objext \
17485    conftest$ac_exeext conftest.$ac_ext
17486LIBS=$ac_check_lib_save_LIBS
17487fi
17488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
17489$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
17490if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
17491  cat >>confdefs.h <<_ACEOF
17492#define HAVE_LIBRT 1
17493_ACEOF
17494
17495  LIBS="-lrt $LIBS"
17496
17497fi
17498
17499
17500# Check whether --with-dce was given.
17501if test "${with_dce+set}" = set; then :
17502  withval=$with_dce;
17503fi
17504
17505        if test "x$with_dce" != xno; then :
17506  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_create in -ldcekt" >&5
17507$as_echo_n "checking for uuid_create in -ldcekt... " >&6; }
17508if ${ac_cv_lib_dcekt_uuid_create+:} false; then :
17509  $as_echo_n "(cached) " >&6
17510else
17511  ac_check_lib_save_LIBS=$LIBS
17512LIBS="-ldcekt  $LIBS"
17513cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h.  */
17515
17516/* Override any GCC internal prototype to avoid an error.
17517   Use char because int might match the return type of a GCC
17518   builtin and then its argument prototype would still apply.  */
17519#ifdef __cplusplus
17520extern "C"
17521#endif
17522char uuid_create ();
17523int
17524main ()
17525{
17526return uuid_create ();
17527  ;
17528  return 0;
17529}
17530_ACEOF
17531if ac_fn_c_try_link "$LINENO"; then :
17532  ac_cv_lib_dcekt_uuid_create=yes
17533else
17534  ac_cv_lib_dcekt_uuid_create=no
17535fi
17536rm -f core conftest.err conftest.$ac_objext \
17537    conftest$ac_exeext conftest.$ac_ext
17538LIBS=$ac_check_lib_save_LIBS
17539fi
17540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dcekt_uuid_create" >&5
17541$as_echo "$ac_cv_lib_dcekt_uuid_create" >&6; }
17542if test "x$ac_cv_lib_dcekt_uuid_create" = xyes; then :
17543  cat >>confdefs.h <<_ACEOF
17544#define HAVE_LIBDCEKT 1
17545_ACEOF
17546
17547  LIBS="-ldcekt $LIBS"
17548
17549fi
17550
17551else
17552  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_bytes in -lcrypto" >&5
17553$as_echo_n "checking for RAND_bytes in -lcrypto... " >&6; }
17554if ${ac_cv_lib_crypto_RAND_bytes+:} false; then :
17555  $as_echo_n "(cached) " >&6
17556else
17557  ac_check_lib_save_LIBS=$LIBS
17558LIBS="-lcrypto  $LIBS"
17559cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17560/* end confdefs.h.  */
17561
17562/* Override any GCC internal prototype to avoid an error.
17563   Use char because int might match the return type of a GCC
17564   builtin and then its argument prototype would still apply.  */
17565#ifdef __cplusplus
17566extern "C"
17567#endif
17568char RAND_bytes ();
17569int
17570main ()
17571{
17572return RAND_bytes ();
17573  ;
17574  return 0;
17575}
17576_ACEOF
17577if ac_fn_c_try_link "$LINENO"; then :
17578  ac_cv_lib_crypto_RAND_bytes=yes
17579else
17580  ac_cv_lib_crypto_RAND_bytes=no
17581fi
17582rm -f core conftest.err conftest.$ac_objext \
17583    conftest$ac_exeext conftest.$ac_ext
17584LIBS=$ac_check_lib_save_LIBS
17585fi
17586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_bytes" >&5
17587$as_echo "$ac_cv_lib_crypto_RAND_bytes" >&6; }
17588if test "x$ac_cv_lib_crypto_RAND_bytes" = xyes; then :
17589  cat >>confdefs.h <<_ACEOF
17590#define HAVE_LIBCRYPTO 1
17591_ACEOF
17592
17593  LIBS="-lcrypto $LIBS"
17594
17595fi
17596
17597fi
17598        {
17599    {
17600
17601
17602
17603    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -Ae" >&5
17604$as_echo_n "checking whether C compiler supports -Ae... " >&6; }
17605
17606    libzmq_cv_c_werror_flag_save=$ac_c_werror_flag
17607    ac_c_werror_flag="yes"
17608
17609    case "xc" in
17610        xc)
17611            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
17612            CFLAGS="$CFLAGS -Ae"
17613        ;;
17614        xcxx)
17615            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
17616            CPPFLAGS="$CPPFLAGS -Ae"
17617        ;;
17618        *)
17619            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
17620$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
17621        ;;
17622    esac
17623
17624    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17625/* end confdefs.h.  */
17626
17627int
17628main ()
17629{
17630
17631  ;
17632  return 0;
17633}
17634_ACEOF
17635if ac_fn_c_try_compile "$LINENO"; then :
17636  # This hack exist for ICC, which outputs unknown options as remarks
17637                      # Remarks are not turned into errors even with -Werror on
17638                      if ($GREP 'ignoring unknown' conftest.err ||
17639                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
17640                           eval libzmq_cv_c_supports_flag__Ae="no"
17641                       else
17642                           eval libzmq_cv_c_supports_flag__Ae="yes"
17643                       fi
17644else
17645  eval libzmq_cv_c_supports_flag__Ae="no"
17646fi
17647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17648
17649    case "xc" in
17650        xc)
17651            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
17652        ;;
17653        xcxx)
17654            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
17655        ;;
17656        *)
17657            # nothing to restore
17658        ;;
17659    esac
17660
17661    # Restore the werror flag
17662    ac_c_werror_flag=$libzmq_cv_c_werror_flag_save
17663
17664    # Call the action as the flags are restored
17665    if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
17666  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17667$as_echo "yes" >&6; } ;
17668else
17669  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17670$as_echo "no" >&6; } ;
17671fi
17672
17673}
17674    case "xc" in
17675       xc)
17676            if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
17677  CFLAGS="-Ae $CFLAGS";
17678fi
17679       ;;
17680       xcxx)
17681            if eval test x$libzmq_cv_c_supports_flag__Ae = "xyes"; then :
17682  CPPFLAGS="-Ae $CPPFLAGS";
17683fi
17684       ;;
17685    esac
17686}
17687        for ac_func in gethrtime
17688do :
17689  ac_fn_c_check_func "$LINENO" "gethrtime" "ac_cv_func_gethrtime"
17690if test "x$ac_cv_func_gethrtime" = xyes; then :
17691  cat >>confdefs.h <<_ACEOF
17692#define HAVE_GETHRTIME 1
17693_ACEOF
17694
17695fi
17696done
17697
17698        ;;
17699    *mingw32*)
17700
17701$as_echo "#define ZMQ_HAVE_WINDOWS 1" >>confdefs.h
17702
17703
17704$as_echo "#define ZMQ_HAVE_MINGW32 1" >>confdefs.h
17705
17706        for ac_header in windows.h
17707do :
17708  ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
17709if test "x$ac_cv_header_windows_h" = xyes; then :
17710  cat >>confdefs.h <<_ACEOF
17711#define HAVE_WINDOWS_H 1
17712_ACEOF
17713
17714fi
17715
17716done
17717
17718        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
17719$as_echo_n "checking for main in -lws2_32... " >&6; }
17720if ${ac_cv_lib_ws2_32_main+:} false; then :
17721  $as_echo_n "(cached) " >&6
17722else
17723  ac_check_lib_save_LIBS=$LIBS
17724LIBS="-lws2_32  $LIBS"
17725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17726/* end confdefs.h.  */
17727
17728
17729int
17730main ()
17731{
17732return main ();
17733  ;
17734  return 0;
17735}
17736_ACEOF
17737if ac_fn_c_try_link "$LINENO"; then :
17738  ac_cv_lib_ws2_32_main=yes
17739else
17740  ac_cv_lib_ws2_32_main=no
17741fi
17742rm -f core conftest.err conftest.$ac_objext \
17743    conftest$ac_exeext conftest.$ac_ext
17744LIBS=$ac_check_lib_save_LIBS
17745fi
17746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
17747$as_echo "$ac_cv_lib_ws2_32_main" >&6; }
17748if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
17749  cat >>confdefs.h <<_ACEOF
17750#define HAVE_LIBWS2_32 1
17751_ACEOF
17752
17753  LIBS="-lws2_32 $LIBS"
17754
17755else
17756  as_fn_error $? "cannot link with ws2_32.dll." "$LINENO" 5
17757fi
17758
17759        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lrpcrt4" >&5
17760$as_echo_n "checking for main in -lrpcrt4... " >&6; }
17761if ${ac_cv_lib_rpcrt4_main+:} false; then :
17762  $as_echo_n "(cached) " >&6
17763else
17764  ac_check_lib_save_LIBS=$LIBS
17765LIBS="-lrpcrt4  $LIBS"
17766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17767/* end confdefs.h.  */
17768
17769
17770int
17771main ()
17772{
17773return main ();
17774  ;
17775  return 0;
17776}
17777_ACEOF
17778if ac_fn_c_try_link "$LINENO"; then :
17779  ac_cv_lib_rpcrt4_main=yes
17780else
17781  ac_cv_lib_rpcrt4_main=no
17782fi
17783rm -f core conftest.err conftest.$ac_objext \
17784    conftest$ac_exeext conftest.$ac_ext
17785LIBS=$ac_check_lib_save_LIBS
17786fi
17787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rpcrt4_main" >&5
17788$as_echo "$ac_cv_lib_rpcrt4_main" >&6; }
17789if test "x$ac_cv_lib_rpcrt4_main" = xyes; then :
17790  cat >>confdefs.h <<_ACEOF
17791#define HAVE_LIBRPCRT4 1
17792_ACEOF
17793
17794  LIBS="-lrpcrt4 $LIBS"
17795
17796else
17797  as_fn_error $? "cannot link with rpcrt4.dll." "$LINENO" 5
17798fi
17799
17800        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -liphlpapi" >&5
17801$as_echo_n "checking for main in -liphlpapi... " >&6; }
17802if ${ac_cv_lib_iphlpapi_main+:} false; then :
17803  $as_echo_n "(cached) " >&6
17804else
17805  ac_check_lib_save_LIBS=$LIBS
17806LIBS="-liphlpapi  $LIBS"
17807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808/* end confdefs.h.  */
17809
17810
17811int
17812main ()
17813{
17814return main ();
17815  ;
17816  return 0;
17817}
17818_ACEOF
17819if ac_fn_c_try_link "$LINENO"; then :
17820  ac_cv_lib_iphlpapi_main=yes
17821else
17822  ac_cv_lib_iphlpapi_main=no
17823fi
17824rm -f core conftest.err conftest.$ac_objext \
17825    conftest$ac_exeext conftest.$ac_ext
17826LIBS=$ac_check_lib_save_LIBS
17827fi
17828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iphlpapi_main" >&5
17829$as_echo "$ac_cv_lib_iphlpapi_main" >&6; }
17830if test "x$ac_cv_lib_iphlpapi_main" = xyes; then :
17831  cat >>confdefs.h <<_ACEOF
17832#define HAVE_LIBIPHLPAPI 1
17833_ACEOF
17834
17835  LIBS="-liphlpapi $LIBS"
17836
17837else
17838  as_fn_error $? "cannot link with iphlpapi.dll." "$LINENO" 5
17839fi
17840
17841        # mingw32 defines __int64_t as long long
17842        ac_ext=cpp
17843ac_cpp='$CXXCPP $CPPFLAGS'
17844ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17845ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17846ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17847
17848        {
17849    {
17850
17851
17852
17853    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -Wno-long-long" >&5
17854$as_echo_n "checking whether C++ compiler supports -Wno-long-long... " >&6; }
17855
17856    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag
17857    ac_cxx_werror_flag="yes"
17858
17859    case "xcxx" in
17860        xc)
17861            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
17862            CFLAGS="$CFLAGS -Wno-long-long"
17863        ;;
17864        xcxx)
17865            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
17866            CPPFLAGS="$CPPFLAGS -Wno-long-long"
17867        ;;
17868        *)
17869            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
17870$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
17871        ;;
17872    esac
17873
17874    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875/* end confdefs.h.  */
17876
17877int
17878main ()
17879{
17880
17881  ;
17882  return 0;
17883}
17884_ACEOF
17885if ac_fn_cxx_try_compile "$LINENO"; then :
17886  # This hack exist for ICC, which outputs unknown options as remarks
17887                      # Remarks are not turned into errors even with -Werror on
17888                      if ($GREP 'ignoring unknown' conftest.err ||
17889                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
17890                           eval libzmq_cv_cxx_supports_flag__Wno_long_long="no"
17891                       else
17892                           eval libzmq_cv_cxx_supports_flag__Wno_long_long="yes"
17893                       fi
17894else
17895  eval libzmq_cv_cxx_supports_flag__Wno_long_long="no"
17896fi
17897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17898
17899    case "xcxx" in
17900        xc)
17901            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
17902        ;;
17903        xcxx)
17904            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
17905        ;;
17906        *)
17907            # nothing to restore
17908        ;;
17909    esac
17910
17911    # Restore the werror flag
17912    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save
17913
17914    # Call the action as the flags are restored
17915    if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :
17916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17917$as_echo "yes" >&6; } ;
17918else
17919  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17920$as_echo "no" >&6; } ;
17921fi
17922
17923}
17924    case "xcxx" in
17925       xc)
17926            if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :
17927  CFLAGS="-Wno-long-long $CFLAGS";
17928fi
17929       ;;
17930       xcxx)
17931            if eval test x$libzmq_cv_cxx_supports_flag__Wno_long_long = "xyes"; then :
17932  CPPFLAGS="-Wno-long-long $CPPFLAGS";
17933fi
17934       ;;
17935    esac
17936}
17937        ac_ext=c
17938ac_cpp='$CPP $CPPFLAGS'
17939ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17940ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17941ac_compiler_gnu=$ac_cv_c_compiler_gnu
17942
17943        libzmq_on_mingw32="yes"
17944        libzmq_dso_visibility="no"
17945
17946        if test "x$enable_static" = "xyes"; then
17947            as_fn_error $? "Building static libraries is not supported under MinGW32" "$LINENO" 5
17948        fi
17949        ;;
17950    *cygwin*)
17951        # Define on Cygwin to enable all library features
17952        CPPFLAGS="-D_GNU_SOURCE $CPPFLAGS"
17953
17954$as_echo "#define ZMQ_HAVE_CYGWIN 1" >>confdefs.h
17955
17956        # Cygwin provides libuuid as part of the e2fsprogs package, and somewhat
17957        # uselessly installs the library in /usr/lib/e2fsprogs
17958        LDFLAGS="-L/usr/lib/e2fsprogs ${LDFLAGS}"
17959        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17960$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17961if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
17962  $as_echo_n "(cached) " >&6
17963else
17964  ac_check_lib_save_LIBS=$LIBS
17965LIBS="-luuid  $LIBS"
17966cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17967/* end confdefs.h.  */
17968
17969/* Override any GCC internal prototype to avoid an error.
17970   Use char because int might match the return type of a GCC
17971   builtin and then its argument prototype would still apply.  */
17972#ifdef __cplusplus
17973extern "C"
17974#endif
17975char uuid_generate ();
17976int
17977main ()
17978{
17979return uuid_generate ();
17980  ;
17981  return 0;
17982}
17983_ACEOF
17984if ac_fn_c_try_link "$LINENO"; then :
17985  ac_cv_lib_uuid_uuid_generate=yes
17986else
17987  ac_cv_lib_uuid_uuid_generate=no
17988fi
17989rm -f core conftest.err conftest.$ac_objext \
17990    conftest$ac_exeext conftest.$ac_ext
17991LIBS=$ac_check_lib_save_LIBS
17992fi
17993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17994$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17995if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
17996  cat >>confdefs.h <<_ACEOF
17997#define HAVE_LIBUUID 1
17998_ACEOF
17999
18000  LIBS="-luuid $LIBS"
18001
18002else
18003  as_fn_error $? "cannot link with -luuid, install the e2fsprogs package." "$LINENO" 5
18004fi
18005
18006
18007        if test "x$enable_static" = "xyes"; then
18008            as_fn_error $? "Building static libraries is not supported under Cygwin" "$LINENO" 5
18009        fi
18010        ;;
18011    *)
18012        as_fn_error $? "unsupported system: ${host_os}." "$LINENO" 5
18013        ;;
18014esac
18015
18016#
18017# Check if the compiler supports -fvisibility=hidden flag. MinGW32 uses __declspec
18018#
18019if test "x$libzmq_dso_visibility" = "xyes"; then
18020    ac_ext=cpp
18021ac_cpp='$CXXCPP $CPPFLAGS'
18022ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18023ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18024ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18025
18026    {
18027
18028    libzmq_cv_cxx_visibility_flag=""
18029
18030    if test "x$libzmq_cv_cxx_intel_compiler" = "xyes" -o \
18031            "x$libzmq_cv_cxx_clang_compiler" = "xyes" -o \
18032            "x$libzmq_cv_cxx_gcc4_compiler" = "xyes"; then
18033        {
18034
18035
18036
18037    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -fvisibility=hidden" >&5
18038$as_echo_n "checking whether C++ compiler supports -fvisibility=hidden... " >&6; }
18039
18040    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag
18041    ac_cxx_werror_flag="yes"
18042
18043    case "xcxx" in
18044        xc)
18045            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
18046            CFLAGS="$CFLAGS -fvisibility=hidden"
18047        ;;
18048        xcxx)
18049            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
18050            CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
18051        ;;
18052        *)
18053            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
18054$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
18055        ;;
18056    esac
18057
18058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059/* end confdefs.h.  */
18060
18061int
18062main ()
18063{
18064
18065  ;
18066  return 0;
18067}
18068_ACEOF
18069if ac_fn_cxx_try_compile "$LINENO"; then :
18070  # This hack exist for ICC, which outputs unknown options as remarks
18071                      # Remarks are not turned into errors even with -Werror on
18072                      if ($GREP 'ignoring unknown' conftest.err ||
18073                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
18074                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-fvisibility=hidden" | $as_tr_sh`="no"
18075                       else
18076                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-fvisibility=hidden" | $as_tr_sh`="yes"
18077                       fi
18078else
18079  eval `$as_echo "libzmq_cv_cxx_supports_flag_-fvisibility=hidden" | $as_tr_sh`="no"
18080fi
18081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18082
18083    case "xcxx" in
18084        xc)
18085            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
18086        ;;
18087        xcxx)
18088            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
18089        ;;
18090        *)
18091            # nothing to restore
18092        ;;
18093    esac
18094
18095    # Restore the werror flag
18096    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save
18097
18098    # Call the action as the flags are restored
18099    if eval test x$`$as_echo "libzmq_cv_cxx_supports_flag_-fvisibility=hidden" | $as_tr_sh` = "xyes"; then :
18100  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18101$as_echo "yes" >&6; } ; libzmq_cv_cxx_visibility_flag="-fvisibility=hidden"
18102else
18103  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18104$as_echo "no" >&6; } ;
18105fi
18106
18107}
18108    elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
18109        {
18110
18111
18112
18113    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -xldscope=hidden" >&5
18114$as_echo_n "checking whether C++ compiler supports -xldscope=hidden... " >&6; }
18115
18116    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag
18117    ac_cxx_werror_flag="yes"
18118
18119    case "xcxx" in
18120        xc)
18121            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
18122            CFLAGS="$CFLAGS -xldscope=hidden"
18123        ;;
18124        xcxx)
18125            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
18126            CPPFLAGS="$CPPFLAGS -xldscope=hidden"
18127        ;;
18128        *)
18129            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
18130$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
18131        ;;
18132    esac
18133
18134    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18135/* end confdefs.h.  */
18136
18137int
18138main ()
18139{
18140
18141  ;
18142  return 0;
18143}
18144_ACEOF
18145if ac_fn_cxx_try_compile "$LINENO"; then :
18146  # This hack exist for ICC, which outputs unknown options as remarks
18147                      # Remarks are not turned into errors even with -Werror on
18148                      if ($GREP 'ignoring unknown' conftest.err ||
18149                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
18150                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-xldscope=hidden" | $as_tr_sh`="no"
18151                       else
18152                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-xldscope=hidden" | $as_tr_sh`="yes"
18153                       fi
18154else
18155  eval `$as_echo "libzmq_cv_cxx_supports_flag_-xldscope=hidden" | $as_tr_sh`="no"
18156fi
18157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18158
18159    case "xcxx" in
18160        xc)
18161            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
18162        ;;
18163        xcxx)
18164            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
18165        ;;
18166        *)
18167            # nothing to restore
18168        ;;
18169    esac
18170
18171    # Restore the werror flag
18172    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save
18173
18174    # Call the action as the flags are restored
18175    if eval test x$`$as_echo "libzmq_cv_cxx_supports_flag_-xldscope=hidden" | $as_tr_sh` = "xyes"; then :
18176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18177$as_echo "yes" >&6; } ; libzmq_cv_cxx_visibility_flag="-xldscope=hidden"
18178else
18179  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18180$as_echo "no" >&6; } ;
18181fi
18182
18183}
18184    fi
18185
18186    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports dso visibility" >&5
18187$as_echo_n "checking whether C++ compiler supports dso visibility... " >&6; }
18188
18189    if test "x$libzmq_cv_cxx_visibility_flag" != "x"; then :
18190  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18191$as_echo "yes" >&6; } ; LIBZMQ_EXTRA_CXXFLAGS="$libzmq_cv_cxx_visibility_flag ${LIBZMQ_EXTRA_CXXFLAGS}"
18192else
18193  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18194$as_echo "no" >&6; } ;
18195fi
18196}
18197    ac_ext=c
18198ac_cpp='$CPP $CPPFLAGS'
18199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18201ac_compiler_gnu=$ac_cv_c_compiler_gnu
18202
18203fi
18204
18205# CPU-specific optimizations
18206case "${host_cpu}" in
18207    *sparc*)
18208        ac_ext=cpp
18209ac_cpp='$CXXCPP $CPPFLAGS'
18210ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18211ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18212ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18213
18214        {
18215    {
18216
18217
18218
18219    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports -mcpu=v9" >&5
18220$as_echo_n "checking whether C++ compiler supports -mcpu=v9... " >&6; }
18221
18222    libzmq_cv_cxx_werror_flag_save=$ac_cxx_werror_flag
18223    ac_cxx_werror_flag="yes"
18224
18225    case "xcxx" in
18226        xc)
18227            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
18228            CFLAGS="$CFLAGS -mcpu=v9"
18229        ;;
18230        xcxx)
18231            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
18232            CPPFLAGS="$CPPFLAGS -mcpu=v9"
18233        ;;
18234        *)
18235            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
18236$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
18237        ;;
18238    esac
18239
18240    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18241/* end confdefs.h.  */
18242
18243int
18244main ()
18245{
18246
18247  ;
18248  return 0;
18249}
18250_ACEOF
18251if ac_fn_cxx_try_compile "$LINENO"; then :
18252  # This hack exist for ICC, which outputs unknown options as remarks
18253                      # Remarks are not turned into errors even with -Werror on
18254                      if ($GREP 'ignoring unknown' conftest.err ||
18255                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
18256                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh`="no"
18257                       else
18258                           eval `$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh`="yes"
18259                       fi
18260else
18261  eval `$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh`="no"
18262fi
18263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18264
18265    case "xcxx" in
18266        xc)
18267            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
18268        ;;
18269        xcxx)
18270            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
18271        ;;
18272        *)
18273            # nothing to restore
18274        ;;
18275    esac
18276
18277    # Restore the werror flag
18278    ac_cxx_werror_flag=$libzmq_cv_cxx_werror_flag_save
18279
18280    # Call the action as the flags are restored
18281    if eval test x$`$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh` = "xyes"; then :
18282  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18283$as_echo "yes" >&6; } ;
18284else
18285  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18286$as_echo "no" >&6; } ;
18287fi
18288
18289}
18290    case "xcxx" in
18291       xc)
18292            if eval test x$`$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh` = "xyes"; then :
18293  CFLAGS="-mcpu=v9 $CFLAGS";
18294fi
18295       ;;
18296       xcxx)
18297            if eval test x$`$as_echo "libzmq_cv_cxx_supports_flag_-mcpu=v9" | $as_tr_sh` = "xyes"; then :
18298  CPPFLAGS="-mcpu=v9 $CPPFLAGS";
18299fi
18300       ;;
18301    esac
18302}
18303        ac_ext=c
18304ac_cpp='$CPP $CPPFLAGS'
18305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18307ac_compiler_gnu=$ac_cv_c_compiler_gnu
18308
18309    ;;
18310    *)
18311    ;;
18312esac
18313
18314# Check whether to build docs / install man pages
18315{
18316    # Allow user to disable doc build
18317
18318# Check whether --with-documentation was given.
18319if test "${with_documentation+set}" = set; then :
18320  withval=$with_documentation;
18321fi
18322
18323
18324    if test "x$with_documentation" = "xno"; then
18325        libzmq_build_doc="no"
18326        libzmq_install_man="no"
18327    else
18328        # Determine whether or not documentation should be built and installed.
18329        libzmq_build_doc="yes"
18330        libzmq_install_man="yes"
18331        # Check for asciidoc and xmlto and don't build the docs if these are not installed.
18332        # Extract the first word of "asciidoc", so it can be a program name with args.
18333set dummy asciidoc; ac_word=$2
18334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18335$as_echo_n "checking for $ac_word... " >&6; }
18336if ${ac_cv_prog_libzmq_have_asciidoc+:} false; then :
18337  $as_echo_n "(cached) " >&6
18338else
18339  if test -n "$libzmq_have_asciidoc"; then
18340  ac_cv_prog_libzmq_have_asciidoc="$libzmq_have_asciidoc" # Let the user override the test.
18341else
18342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18343for as_dir in $PATH
18344do
18345  IFS=$as_save_IFS
18346  test -z "$as_dir" && as_dir=.
18347    for ac_exec_ext in '' $ac_executable_extensions; do
18348  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18349    ac_cv_prog_libzmq_have_asciidoc="yes"
18350    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18351    break 2
18352  fi
18353done
18354  done
18355IFS=$as_save_IFS
18356
18357  test -z "$ac_cv_prog_libzmq_have_asciidoc" && ac_cv_prog_libzmq_have_asciidoc="no"
18358fi
18359fi
18360libzmq_have_asciidoc=$ac_cv_prog_libzmq_have_asciidoc
18361if test -n "$libzmq_have_asciidoc"; then
18362  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_have_asciidoc" >&5
18363$as_echo "$libzmq_have_asciidoc" >&6; }
18364else
18365  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366$as_echo "no" >&6; }
18367fi
18368
18369
18370        # Extract the first word of "xmlto", so it can be a program name with args.
18371set dummy xmlto; ac_word=$2
18372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18373$as_echo_n "checking for $ac_word... " >&6; }
18374if ${ac_cv_prog_libzmq_have_xmlto+:} false; then :
18375  $as_echo_n "(cached) " >&6
18376else
18377  if test -n "$libzmq_have_xmlto"; then
18378  ac_cv_prog_libzmq_have_xmlto="$libzmq_have_xmlto" # Let the user override the test.
18379else
18380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18381for as_dir in $PATH
18382do
18383  IFS=$as_save_IFS
18384  test -z "$as_dir" && as_dir=.
18385    for ac_exec_ext in '' $ac_executable_extensions; do
18386  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18387    ac_cv_prog_libzmq_have_xmlto="yes"
18388    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18389    break 2
18390  fi
18391done
18392  done
18393IFS=$as_save_IFS
18394
18395  test -z "$ac_cv_prog_libzmq_have_xmlto" && ac_cv_prog_libzmq_have_xmlto="no"
18396fi
18397fi
18398libzmq_have_xmlto=$ac_cv_prog_libzmq_have_xmlto
18399if test -n "$libzmq_have_xmlto"; then
18400  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_have_xmlto" >&5
18401$as_echo "$libzmq_have_xmlto" >&6; }
18402else
18403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18404$as_echo "no" >&6; }
18405fi
18406
18407
18408        if test "x$libzmq_have_asciidoc" = "xno" -o "x$libzmq_have_xmlto" = "xno"; then
18409            libzmq_build_doc="no"
18410            # Tarballs built with 'make dist' ship with prebuilt documentation.
18411            if ! test -f doc/zmq.7; then
18412                libzmq_install_man="no"
18413                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You are building an unreleased version of 0MQ and asciidoc or xmlto are not installed." >&5
18414$as_echo "$as_me: WARNING: You are building an unreleased version of 0MQ and asciidoc or xmlto are not installed." >&2;}
18415                { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Documentation will not be built and manual pages will not be installed." >&5
18416$as_echo "$as_me: WARNING: Documentation will not be built and manual pages will not be installed." >&2;}
18417            fi
18418        fi
18419
18420        # Do not install man pages if on mingw
18421        if test "x$libzmq_on_mingw32" = "xyes"; then
18422            libzmq_install_man="no"
18423        fi
18424    fi
18425
18426    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
18427$as_echo_n "checking whether to build documentation... " >&6; }
18428    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_build_doc" >&5
18429$as_echo "$libzmq_build_doc" >&6; }
18430
18431    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install manpages" >&5
18432$as_echo_n "checking whether to install manpages... " >&6; }
18433    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_install_man" >&5
18434$as_echo "$libzmq_install_man" >&6; }
18435
18436     if test "x$libzmq_build_doc" = "xyes"; then
18437  BUILD_DOC_TRUE=
18438  BUILD_DOC_FALSE='#'
18439else
18440  BUILD_DOC_TRUE='#'
18441  BUILD_DOC_FALSE=
18442fi
18443
18444     if test "x$libzmq_install_man" = "xyes"; then
18445  INSTALL_MAN_TRUE=
18446  INSTALL_MAN_FALSE='#'
18447else
18448  INSTALL_MAN_TRUE='#'
18449  INSTALL_MAN_FALSE=
18450fi
18451
18452}
18453
18454# Check polling system
18455{
18456
18457    # Allow user to disable doc build
18458
18459# Check whether --with-poller was given.
18460if test "${with_poller+set}" = set; then :
18461  withval=$with_poller;
18462fi
18463
18464
18465    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable polling system" >&5
18466$as_echo_n "checking for suitable polling system... " >&6; }
18467
18468    case "${with_poller}" in
18469        kqueue|epoll|devpoll|poll|select)
18470            # User has chosen polling system
18471            libzmq_cv_poller="${with_poller}"
18472        ;;
18473
18474        *)
18475            # try to find suitable polling system. the order of testing is:
18476            # kqueue -> epoll -> devpoll -> poll -> select
18477            for subsystem in kqueue epoll devpoll poll select; do
18478
18479                case "${subsystem}" in
18480                    kqueue)
18481                        {
18482    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483/* end confdefs.h.  */
18484
18485#include <sys/types.h>
18486#include <sys/event.h>
18487#include <sys/time.h>
18488
18489int
18490main ()
18491{
18492
18493struct kevent t_kev;
18494kqueue();
18495
18496
18497  ;
18498  return 0;
18499}
18500_ACEOF
18501if ac_fn_c_try_link "$LINENO"; then :
18502  libzmq_cv_have_poller_kqueue="yes" ; libzmq_cv_poller=$subsystem
18503else
18504  libzmq_cv_have_poller_kqueue="no" ;
18505fi
18506rm -f core conftest.err conftest.$ac_objext \
18507    conftest$ac_exeext conftest.$ac_ext
18508}
18509                    ;;
18510
18511                    epoll)
18512                        {
18513    if test "$cross_compiling" = yes; then :
18514
18515          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18516/* end confdefs.h.  */
18517
18518#include <sys/epoll.h>
18519
18520int
18521main ()
18522{
18523
18524      struct epoll_event t_ev;
18525      epoll_create(10);
18526
18527
18528  ;
18529  return 0;
18530}
18531_ACEOF
18532if ac_fn_c_try_link "$LINENO"; then :
18533  libzmq_cv_have_poller_epoll="yes" ; libzmq_cv_poller=$subsystem
18534else
18535  libzmq_cv_have_poller_epoll="no" ;
18536fi
18537rm -f core conftest.err conftest.$ac_objext \
18538    conftest$ac_exeext conftest.$ac_ext
18539
18540
18541else
18542  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18543/* end confdefs.h.  */
18544
18545#include <sys/epoll.h>
18546
18547int
18548main ()
18549{
18550
18551struct epoll_event t_ev;
18552int r;
18553r = epoll_create(10);
18554return(r < 0);
18555
18556
18557  ;
18558  return 0;
18559}
18560_ACEOF
18561if ac_fn_c_try_run "$LINENO"; then :
18562  libzmq_cv_have_poller_epoll="yes" ; libzmq_cv_poller=$subsystem
18563else
18564  libzmq_cv_have_poller_epoll="no" ;
18565fi
18566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18567  conftest.$ac_objext conftest.beam conftest.$ac_ext
18568fi
18569
18570}
18571                    ;;
18572
18573                    devpoll)
18574                        {
18575    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18576/* end confdefs.h.  */
18577
18578#include <sys/devpoll.h>
18579
18580int
18581main ()
18582{
18583
18584struct pollfd t_devpoll;
18585int fd = open("/dev/poll", O_RDWR);
18586
18587
18588  ;
18589  return 0;
18590}
18591_ACEOF
18592if ac_fn_c_try_link "$LINENO"; then :
18593  libzmq_cv_have_poller_devpoll="yes" ; libzmq_cv_poller=$subsystem
18594else
18595  libzmq_cv_have_poller_devpoll="no" ;
18596fi
18597rm -f core conftest.err conftest.$ac_objext \
18598    conftest$ac_exeext conftest.$ac_ext
18599}
18600                    ;;
18601
18602                    poll)
18603                        {
18604    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18605/* end confdefs.h.  */
18606
18607#include <poll.h>
18608
18609int
18610main ()
18611{
18612
18613struct pollfd t_poll;
18614poll(&t_poll, 1, 1);
18615
18616
18617  ;
18618  return 0;
18619}
18620_ACEOF
18621if ac_fn_c_try_link "$LINENO"; then :
18622  libzmq_cv_have_poller_poll="yes" ; libzmq_cv_poller=$subsystem
18623else
18624  libzmq_cv_have_poller_poll="no" ;
18625fi
18626rm -f core conftest.err conftest.$ac_objext \
18627    conftest$ac_exeext conftest.$ac_ext
18628}
18629                    ;;
18630
18631                    select)
18632                        {
18633    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18634/* end confdefs.h.  */
18635
18636#ifdef ZMQ_HAVE_WINDOWS
18637#include "winsock2.h"
18638#elif defined ZMQ_HAVE_OPENVMS
18639#include <sys/types.h>
18640#include <sys/time.h>
18641#else
18642#include <sys/select.h>
18643#endif
18644
18645int
18646main ()
18647{
18648
18649fd_set t_rfds;
18650struct timeval tv;
18651
18652FD_ZERO(&t_rfds);
18653FD_SET(0, &t_rfds);
18654
18655tv.tv_sec = 5;
18656tv.tv_usec = 0;
18657
18658select(1, &t_rfds, NULL, NULL, &tv);
18659
18660
18661  ;
18662  return 0;
18663}
18664_ACEOF
18665if ac_fn_c_try_link "$LINENO"; then :
18666  libzmq_cv_have_poller_select="yes" ; libzmq_cv_poller=$subsystem
18667else
18668  libzmq_cv_have_poller_select="no" ;
18669fi
18670rm -f core conftest.err conftest.$ac_objext \
18671    conftest$ac_exeext conftest.$ac_ext
18672}
18673                    ;;
18674                esac
18675
18676                if test "x${libzmq_cv_poller}" != "x"; then
18677                    break
18678                fi
18679            done
18680      ;;
18681    esac
18682
18683    libzmq_cv_poller_flag=`echo "ZMQ_FORCE_${libzmq_cv_poller}" | tr a-z A-Z`
18684
18685    if test "x${libzmq_cv_poller}" != "x"; then :
18686  { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $libzmq_cv_poller" >&5
18687$as_echo "using $libzmq_cv_poller" >&6; } ; CPPFLAGS="${CPPFLAGS} -D${libzmq_cv_poller_flag}"
18688else
18689  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no suitable polling system found" >&5
18690$as_echo "no suitable polling system found" >&6; } ; as_fn_error $? "Unable to continue without polling system" "$LINENO" 5
18691fi
18692}
18693
18694# Checks for header files.
18695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18696$as_echo_n "checking for ANSI C header files... " >&6; }
18697if ${ac_cv_header_stdc+:} false; then :
18698  $as_echo_n "(cached) " >&6
18699else
18700  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701/* end confdefs.h.  */
18702#include <stdlib.h>
18703#include <stdarg.h>
18704#include <string.h>
18705#include <float.h>
18706
18707int
18708main ()
18709{
18710
18711  ;
18712  return 0;
18713}
18714_ACEOF
18715if ac_fn_c_try_compile "$LINENO"; then :
18716  ac_cv_header_stdc=yes
18717else
18718  ac_cv_header_stdc=no
18719fi
18720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18721
18722if test $ac_cv_header_stdc = yes; then
18723  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18724  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18725/* end confdefs.h.  */
18726#include <string.h>
18727
18728_ACEOF
18729if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18730  $EGREP "memchr" >/dev/null 2>&1; then :
18731
18732else
18733  ac_cv_header_stdc=no
18734fi
18735rm -f conftest*
18736
18737fi
18738
18739if test $ac_cv_header_stdc = yes; then
18740  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18741  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742/* end confdefs.h.  */
18743#include <stdlib.h>
18744
18745_ACEOF
18746if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18747  $EGREP "free" >/dev/null 2>&1; then :
18748
18749else
18750  ac_cv_header_stdc=no
18751fi
18752rm -f conftest*
18753
18754fi
18755
18756if test $ac_cv_header_stdc = yes; then
18757  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18758  if test "$cross_compiling" = yes; then :
18759  :
18760else
18761  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18762/* end confdefs.h.  */
18763#include <ctype.h>
18764#include <stdlib.h>
18765#if ((' ' & 0x0FF) == 0x020)
18766# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18767# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18768#else
18769# define ISLOWER(c) \
18770		   (('a' <= (c) && (c) <= 'i') \
18771		     || ('j' <= (c) && (c) <= 'r') \
18772		     || ('s' <= (c) && (c) <= 'z'))
18773# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18774#endif
18775
18776#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18777int
18778main ()
18779{
18780  int i;
18781  for (i = 0; i < 256; i++)
18782    if (XOR (islower (i), ISLOWER (i))
18783	|| toupper (i) != TOUPPER (i))
18784      return 2;
18785  return 0;
18786}
18787_ACEOF
18788if ac_fn_c_try_run "$LINENO"; then :
18789
18790else
18791  ac_cv_header_stdc=no
18792fi
18793rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18794  conftest.$ac_objext conftest.beam conftest.$ac_ext
18795fi
18796
18797fi
18798fi
18799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18800$as_echo "$ac_cv_header_stdc" >&6; }
18801if test $ac_cv_header_stdc = yes; then
18802
18803$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18804
18805fi
18806
18807for ac_header in errno.h arpa/inet.h netinet/tcp.h netinet/in.h stddef.h \
18808stdlib.h string.h sys/socket.h sys/time.h time.h unistd.h limits.h
18809do :
18810  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18811ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18812if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18813  cat >>confdefs.h <<_ACEOF
18814#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18815_ACEOF
18816
18817fi
18818
18819done
18820
18821
18822# Check if we have ifaddrs.h header file.
18823for ac_header in ifaddrs.h
18824do :
18825  ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
18826if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
18827  cat >>confdefs.h <<_ACEOF
18828#define HAVE_IFADDRS_H 1
18829_ACEOF
18830
18831$as_echo "#define ZMQ_HAVE_IFADDRS 1" >>confdefs.h
18832
18833fi
18834
18835done
18836
18837
18838# Use c++ in subsequent tests
18839ac_ext=cpp
18840ac_cpp='$CXXCPP $CPPFLAGS'
18841ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18844
18845
18846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
18847$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
18848if ${ac_cv_header_stdbool_h+:} false; then :
18849  $as_echo_n "(cached) " >&6
18850else
18851  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18852/* end confdefs.h.  */
18853
18854#include <stdbool.h>
18855#ifndef bool
18856 "error: bool is not defined"
18857#endif
18858#ifndef false
18859 "error: false is not defined"
18860#endif
18861#if false
18862 "error: false is not 0"
18863#endif
18864#ifndef true
18865 "error: true is not defined"
18866#endif
18867#if true != 1
18868 "error: true is not 1"
18869#endif
18870#ifndef __bool_true_false_are_defined
18871 "error: __bool_true_false_are_defined is not defined"
18872#endif
18873
18874	struct s { _Bool s: 1; _Bool t; } s;
18875
18876	char a[true == 1 ? 1 : -1];
18877	char b[false == 0 ? 1 : -1];
18878	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
18879	char d[(bool) 0.5 == true ? 1 : -1];
18880	/* See body of main program for 'e'.  */
18881	char f[(_Bool) 0.0 == false ? 1 : -1];
18882	char g[true];
18883	char h[sizeof (_Bool)];
18884	char i[sizeof s.t];
18885	enum { j = false, k = true, l = false * true, m = true * 256 };
18886	/* The following fails for
18887	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
18888	_Bool n[m];
18889	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
18890	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
18891	/* Catch a bug in an HP-UX C compiler.  See
18892	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
18893	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
18894	 */
18895	_Bool q = true;
18896	_Bool *pq = &q;
18897
18898int
18899main ()
18900{
18901
18902	bool e = &s;
18903	*pq |= q;
18904	*pq |= ! q;
18905	/* Refer to every declared value, to avoid compiler optimizations.  */
18906	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
18907		+ !m + !n + !o + !p + !q + !pq);
18908
18909  ;
18910  return 0;
18911}
18912_ACEOF
18913if ac_fn_cxx_try_compile "$LINENO"; then :
18914  ac_cv_header_stdbool_h=yes
18915else
18916  ac_cv_header_stdbool_h=no
18917fi
18918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18919fi
18920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
18921$as_echo "$ac_cv_header_stdbool_h" >&6; }
18922ac_fn_cxx_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
18923if test "x$ac_cv_type__Bool" = xyes; then :
18924
18925cat >>confdefs.h <<_ACEOF
18926#define HAVE__BOOL 1
18927_ACEOF
18928
18929
18930fi
18931
18932if test $ac_cv_header_stdbool_h = yes; then
18933
18934$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
18935
18936fi
18937
18938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18939$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18940if ${ac_cv_c_const+:} false; then :
18941  $as_echo_n "(cached) " >&6
18942else
18943  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18944/* end confdefs.h.  */
18945
18946int
18947main ()
18948{
18949/* FIXME: Include the comments suggested by Paul. */
18950#ifndef __cplusplus
18951  /* Ultrix mips cc rejects this.  */
18952  typedef int charset[2];
18953  const charset cs;
18954  /* SunOS 4.1.1 cc rejects this.  */
18955  char const *const *pcpcc;
18956  char **ppc;
18957  /* NEC SVR4.0.2 mips cc rejects this.  */
18958  struct point {int x, y;};
18959  static struct point const zero = {0,0};
18960  /* AIX XL C 1.02.0.0 rejects this.
18961     It does not let you subtract one const X* pointer from another in
18962     an arm of an if-expression whose if-part is not a constant
18963     expression */
18964  const char *g = "string";
18965  pcpcc = &g + (g ? g-g : 0);
18966  /* HPUX 7.0 cc rejects these. */
18967  ++pcpcc;
18968  ppc = (char**) pcpcc;
18969  pcpcc = (char const *const *) ppc;
18970  { /* SCO 3.2v4 cc rejects this.  */
18971    char *t;
18972    char const *s = 0 ? (char *) 0 : (char const *) 0;
18973
18974    *t++ = 0;
18975    if (s) return 0;
18976  }
18977  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18978    int x[] = {25, 17};
18979    const int *foo = &x[0];
18980    ++foo;
18981  }
18982  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18983    typedef const int *iptr;
18984    iptr p = 0;
18985    ++p;
18986  }
18987  { /* AIX XL C 1.02.0.0 rejects this saying
18988       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18989    struct s { int j; const int *ap[3]; };
18990    struct s *b; b->j = 5;
18991  }
18992  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18993    const int foo = 10;
18994    if (!foo) return 0;
18995  }
18996  return !cs[0] && !zero.x;
18997#endif
18998
18999  ;
19000  return 0;
19001}
19002_ACEOF
19003if ac_fn_cxx_try_compile "$LINENO"; then :
19004  ac_cv_c_const=yes
19005else
19006  ac_cv_c_const=no
19007fi
19008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19009fi
19010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19011$as_echo "$ac_cv_c_const" >&6; }
19012if test $ac_cv_c_const = no; then
19013
19014$as_echo "#define const /**/" >>confdefs.h
19015
19016fi
19017
19018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19019$as_echo_n "checking for inline... " >&6; }
19020if ${ac_cv_c_inline+:} false; then :
19021  $as_echo_n "(cached) " >&6
19022else
19023  ac_cv_c_inline=no
19024for ac_kw in inline __inline__ __inline; do
19025  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19026/* end confdefs.h.  */
19027#ifndef __cplusplus
19028typedef int foo_t;
19029static $ac_kw foo_t static_foo () {return 0; }
19030$ac_kw foo_t foo () {return 0; }
19031#endif
19032
19033_ACEOF
19034if ac_fn_cxx_try_compile "$LINENO"; then :
19035  ac_cv_c_inline=$ac_kw
19036fi
19037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19038  test "$ac_cv_c_inline" != no && break
19039done
19040
19041fi
19042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19043$as_echo "$ac_cv_c_inline" >&6; }
19044
19045case $ac_cv_c_inline in
19046  inline | yes) ;;
19047  *)
19048    case $ac_cv_c_inline in
19049      no) ac_val=;;
19050      *) ac_val=$ac_cv_c_inline;;
19051    esac
19052    cat >>confdefs.h <<_ACEOF
19053#ifndef __cplusplus
19054#define inline $ac_val
19055#endif
19056_ACEOF
19057    ;;
19058esac
19059
19060# Checks for typedefs, structures, and compiler characteristics.
19061if test "x$libzmq_cv_cxx_intel_compiler" = "xyes"; then
19062            {
19063    libzmq_check_with_flag_save_CFLAGS="$CFLAGS"
19064    libzmq_check_with_flag_save_CPPFLAGS="$CPPFLAGS"
19065
19066    CFLAGS="$CFLAGS -wd279"
19067    CPPFLAGS="$CPPFLAGS -wd279"
19068
19069    # Execute the macro
19070    ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19071if test "x$ac_cv_type_size_t" = xyes; then :
19072
19073else
19074
19075cat >>confdefs.h <<_ACEOF
19076#define size_t unsigned int
19077_ACEOF
19078
19079fi
19080
19081
19082    CFLAGS="$libzmq_check_with_flag_save_CFLAGS"
19083    CPPFLAGS="$libzmq_check_with_flag_save_CPPFLAGS"
19084}
19085    {
19086    libzmq_check_with_flag_save_CFLAGS="$CFLAGS"
19087    libzmq_check_with_flag_save_CPPFLAGS="$CPPFLAGS"
19088
19089    CFLAGS="$CFLAGS -wd279"
19090    CPPFLAGS="$CPPFLAGS -wd279"
19091
19092    # Execute the macro
19093    ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
19094if test "x$ac_cv_type_ssize_t" = xyes; then :
19095
19096else
19097
19098cat >>confdefs.h <<_ACEOF
19099#define ssize_t int
19100_ACEOF
19101
19102fi
19103
19104
19105    CFLAGS="$libzmq_check_with_flag_save_CFLAGS"
19106    CPPFLAGS="$libzmq_check_with_flag_save_CPPFLAGS"
19107}
19108else
19109    ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19110if test "x$ac_cv_type_size_t" = xyes; then :
19111
19112else
19113
19114cat >>confdefs.h <<_ACEOF
19115#define size_t unsigned int
19116_ACEOF
19117
19118fi
19119
19120    ac_fn_cxx_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
19121if test "x$ac_cv_type_ssize_t" = xyes; then :
19122
19123else
19124
19125cat >>confdefs.h <<_ACEOF
19126#define ssize_t int
19127_ACEOF
19128
19129fi
19130
19131fi
19132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19133$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19134if ${ac_cv_header_time+:} false; then :
19135  $as_echo_n "(cached) " >&6
19136else
19137  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19138/* end confdefs.h.  */
19139#include <sys/types.h>
19140#include <sys/time.h>
19141#include <time.h>
19142
19143int
19144main ()
19145{
19146if ((struct tm *) 0)
19147return 0;
19148  ;
19149  return 0;
19150}
19151_ACEOF
19152if ac_fn_cxx_try_compile "$LINENO"; then :
19153  ac_cv_header_time=yes
19154else
19155  ac_cv_header_time=no
19156fi
19157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158fi
19159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19160$as_echo "$ac_cv_header_time" >&6; }
19161if test $ac_cv_header_time = yes; then
19162
19163$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19164
19165fi
19166
19167ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
19168case $ac_cv_c_uint32_t in #(
19169  no|yes) ;; #(
19170  *)
19171
19172$as_echo "#define _UINT32_T 1" >>confdefs.h
19173
19174
19175cat >>confdefs.h <<_ACEOF
19176#define uint32_t $ac_cv_c_uint32_t
19177_ACEOF
19178;;
19179  esac
19180
19181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19182$as_echo_n "checking for working volatile... " >&6; }
19183if ${ac_cv_c_volatile+:} false; then :
19184  $as_echo_n "(cached) " >&6
19185else
19186  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187/* end confdefs.h.  */
19188
19189int
19190main ()
19191{
19192
19193volatile int x;
19194int * volatile y = (int *) 0;
19195return !x && !y;
19196  ;
19197  return 0;
19198}
19199_ACEOF
19200if ac_fn_cxx_try_compile "$LINENO"; then :
19201  ac_cv_c_volatile=yes
19202else
19203  ac_cv_c_volatile=no
19204fi
19205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206fi
19207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19208$as_echo "$ac_cv_c_volatile" >&6; }
19209if test $ac_cv_c_volatile = no; then
19210
19211$as_echo "#define volatile /**/" >>confdefs.h
19212
19213fi
19214
19215
19216#  PGM extension
19217libzmq_pgm_ext="no"
19218
19219pgm_basename="libpgm-5.1.118~dfsg"
19220
19221
19222# Check whether --with-pgm was given.
19223if test "${with_pgm+set}" = set; then :
19224  withval=$with_pgm; with_pgm_ext=$withval
19225else
19226  with_pgm_ext=no
19227fi
19228
19229
19230# build using system pgm
19231
19232# Check whether --with-system-pgm was given.
19233if test "${with_system_pgm+set}" = set; then :
19234  withval=$with_system_pgm; with_system_pgm_ext=yes
19235else
19236  with_system_pgm_ext=no
19237fi
19238
19239
19240if test "x$with_pgm_ext" != "xno" -a "x$with_system_pgm_ext" != "xno"; then
19241    as_fn_error $? "--with-pgm and --with-system-pgm cannot be specified together" "$LINENO" 5
19242fi
19243
19244if test "x$with_pgm_ext" != "xno"; then
19245
19246    # This allows placing the tar.gz to foreign/openpgm
19247    # and using ./configure --with-pgm=libpgm-x.y.z
19248    if test "x$with_pgm_ext" != "xyes"; then
19249        pgm_basename="$with_pgm_ext"
19250    fi
19251
19252    # Unpack libpgm
19253    { $as_echo "$as_me:${as_lineno-$LINENO}: Unpacking ${pgm_basename}.tar.gz" >&5
19254$as_echo "$as_me: Unpacking ${pgm_basename}.tar.gz" >&6;}
19255    libzmq_pwd=`pwd`
19256    cd foreign/openpgm
19257
19258    if ! (gzip -dc "${pgm_basename}.tar.gz" || echo "failed") | ${am__untar}; then
19259        as_fn_error $? "cannot unpack the foreign/openpgm/${pgm_basename}.tar.gz file" "$LINENO" 5
19260    fi
19261
19262    cd "${libzmq_pwd}"
19263
19264    if test -d foreign/openpgm/build-staging; then
19265        rm -rf foreign/openpgm/build-staging
19266    fi
19267
19268    mv foreign/openpgm/${pgm_basename} foreign/openpgm/build-staging
19269    pgm_srcdir=foreign/openpgm/build-staging/openpgm/pgm
19270
19271    if ! test -d foreign/openpgm/build-staging/openpgm/pgm/config; then
19272        mkdir foreign/openpgm/build-staging/openpgm/pgm/config
19273    fi
19274
19275    # DSO symbol visibility for openpgm
19276    ac_ext=c
19277ac_cpp='$CPP $CPPFLAGS'
19278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282    {
19283
19284    libzmq_cv_c_visibility_flag=""
19285
19286    if test "x$libzmq_cv_c_intel_compiler" = "xyes" -o \
19287            "x$libzmq_cv_c_clang_compiler" = "xyes" -o \
19288            "x$libzmq_cv_c_gcc4_compiler" = "xyes"; then
19289        {
19290
19291
19292
19293    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -fvisibility=hidden" >&5
19294$as_echo_n "checking whether C compiler supports -fvisibility=hidden... " >&6; }
19295
19296    libzmq_cv_c_werror_flag_save=$ac_c_werror_flag
19297    ac_c_werror_flag="yes"
19298
19299    case "xc" in
19300        xc)
19301            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
19302            CFLAGS="$CFLAGS -fvisibility=hidden"
19303        ;;
19304        xcxx)
19305            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
19306            CPPFLAGS="$CPPFLAGS -fvisibility=hidden"
19307        ;;
19308        *)
19309            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
19310$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
19311        ;;
19312    esac
19313
19314    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19315/* end confdefs.h.  */
19316
19317int
19318main ()
19319{
19320
19321  ;
19322  return 0;
19323}
19324_ACEOF
19325if ac_fn_c_try_compile "$LINENO"; then :
19326  # This hack exist for ICC, which outputs unknown options as remarks
19327                      # Remarks are not turned into errors even with -Werror on
19328                      if ($GREP 'ignoring unknown' conftest.err ||
19329                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
19330                           eval `$as_echo "libzmq_cv_c_supports_flag_-fvisibility=hidden" | $as_tr_sh`="no"
19331                       else
19332                           eval `$as_echo "libzmq_cv_c_supports_flag_-fvisibility=hidden" | $as_tr_sh`="yes"
19333                       fi
19334else
19335  eval `$as_echo "libzmq_cv_c_supports_flag_-fvisibility=hidden" | $as_tr_sh`="no"
19336fi
19337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19338
19339    case "xc" in
19340        xc)
19341            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
19342        ;;
19343        xcxx)
19344            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
19345        ;;
19346        *)
19347            # nothing to restore
19348        ;;
19349    esac
19350
19351    # Restore the werror flag
19352    ac_c_werror_flag=$libzmq_cv_c_werror_flag_save
19353
19354    # Call the action as the flags are restored
19355    if eval test x$`$as_echo "libzmq_cv_c_supports_flag_-fvisibility=hidden" | $as_tr_sh` = "xyes"; then :
19356  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19357$as_echo "yes" >&6; } ; libzmq_cv_c_visibility_flag="-fvisibility=hidden"
19358else
19359  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19360$as_echo "no" >&6; } ;
19361fi
19362
19363}
19364    elif test "x$libzmq_cv_c_sun_studio_compiler" = "xyes"; then
19365        {
19366
19367
19368
19369    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports -xldscope=hidden" >&5
19370$as_echo_n "checking whether C compiler supports -xldscope=hidden... " >&6; }
19371
19372    libzmq_cv_c_werror_flag_save=$ac_c_werror_flag
19373    ac_c_werror_flag="yes"
19374
19375    case "xc" in
19376        xc)
19377            libzmq_cv_check_lang_flag_save_CFLAGS="$CFLAGS"
19378            CFLAGS="$CFLAGS -xldscope=hidden"
19379        ;;
19380        xcxx)
19381            libzmq_cv_check_lang_flag_save_CPPFLAGS="$CPPFLAGS"
19382            CPPFLAGS="$CPPFLAGS -xldscope=hidden"
19383        ;;
19384        *)
19385            { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: testing compiler characteristic on an unknown language" >&5
19386$as_echo "$as_me: WARNING: testing compiler characteristic on an unknown language" >&2;}
19387        ;;
19388    esac
19389
19390    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19391/* end confdefs.h.  */
19392
19393int
19394main ()
19395{
19396
19397  ;
19398  return 0;
19399}
19400_ACEOF
19401if ac_fn_c_try_compile "$LINENO"; then :
19402  # This hack exist for ICC, which outputs unknown options as remarks
19403                      # Remarks are not turned into errors even with -Werror on
19404                      if ($GREP 'ignoring unknown' conftest.err ||
19405                           $GREP 'not supported' conftest.err) >/dev/null 2>&1; then
19406                           eval `$as_echo "libzmq_cv_c_supports_flag_-xldscope=hidden" | $as_tr_sh`="no"
19407                       else
19408                           eval `$as_echo "libzmq_cv_c_supports_flag_-xldscope=hidden" | $as_tr_sh`="yes"
19409                       fi
19410else
19411  eval `$as_echo "libzmq_cv_c_supports_flag_-xldscope=hidden" | $as_tr_sh`="no"
19412fi
19413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414
19415    case "xc" in
19416        xc)
19417            CFLAGS="$libzmq_cv_check_lang_flag_save_CFLAGS"
19418        ;;
19419        xcxx)
19420            CPPFLAGS="$libzmq_cv_check_lang_flag_save_CPPFLAGS"
19421        ;;
19422        *)
19423            # nothing to restore
19424        ;;
19425    esac
19426
19427    # Restore the werror flag
19428    ac_c_werror_flag=$libzmq_cv_c_werror_flag_save
19429
19430    # Call the action as the flags are restored
19431    if eval test x$`$as_echo "libzmq_cv_c_supports_flag_-xldscope=hidden" | $as_tr_sh` = "xyes"; then :
19432  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19433$as_echo "yes" >&6; } ; libzmq_cv_c_visibility_flag="-xldscope=hidden"
19434else
19435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19436$as_echo "no" >&6; } ;
19437fi
19438
19439}
19440    fi
19441
19442    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler supports dso visibility" >&5
19443$as_echo_n "checking whether C compiler supports dso visibility... " >&6; }
19444
19445    if test "x$libzmq_cv_c_visibility_flag" != "x"; then :
19446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19447$as_echo "yes" >&6; } ; ac_configure_args="CFLAGS='$libzmq_cv_c_visibility_flag' ${ac_configure_args}"
19448else
19449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19450$as_echo "no" >&6; } ;
19451fi
19452}
19453    ac_ext=cpp
19454ac_cpp='$CXXCPP $CPPFLAGS'
19455ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19458
19459
19460    pgm_subdir=build-staging/openpgm/pgm
19461
19462
19463
19464
19465
19466subdirs="$subdirs foreign/openpgm/build-staging/openpgm/pgm/"
19467
19468
19469    #  Success!
19470
19471$as_echo "#define ZMQ_HAVE_OPENPGM 1" >>confdefs.h
19472
19473    libzmq_pgm_ext="yes"
19474fi
19475
19476# Build with system openpgm
19477if test "x$with_system_pgm_ext" != "xno"; then
19478
19479
19480
19481
19482
19483
19484
19485
19486if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
19487	if test -n "$ac_tool_prefix"; then
19488  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
19489set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
19490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19491$as_echo_n "checking for $ac_word... " >&6; }
19492if ${ac_cv_path_PKG_CONFIG+:} false; then :
19493  $as_echo_n "(cached) " >&6
19494else
19495  case $PKG_CONFIG in
19496  [\\/]* | ?:[\\/]*)
19497  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19498  ;;
19499  *)
19500  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19501for as_dir in $PATH
19502do
19503  IFS=$as_save_IFS
19504  test -z "$as_dir" && as_dir=.
19505    for ac_exec_ext in '' $ac_executable_extensions; do
19506  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19507    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19508    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19509    break 2
19510  fi
19511done
19512  done
19513IFS=$as_save_IFS
19514
19515  ;;
19516esac
19517fi
19518PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19519if test -n "$PKG_CONFIG"; then
19520  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19521$as_echo "$PKG_CONFIG" >&6; }
19522else
19523  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524$as_echo "no" >&6; }
19525fi
19526
19527
19528fi
19529if test -z "$ac_cv_path_PKG_CONFIG"; then
19530  ac_pt_PKG_CONFIG=$PKG_CONFIG
19531  # Extract the first word of "pkg-config", so it can be a program name with args.
19532set dummy pkg-config; ac_word=$2
19533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19534$as_echo_n "checking for $ac_word... " >&6; }
19535if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
19536  $as_echo_n "(cached) " >&6
19537else
19538  case $ac_pt_PKG_CONFIG in
19539  [\\/]* | ?:[\\/]*)
19540  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
19541  ;;
19542  *)
19543  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19544for as_dir in $PATH
19545do
19546  IFS=$as_save_IFS
19547  test -z "$as_dir" && as_dir=.
19548    for ac_exec_ext in '' $ac_executable_extensions; do
19549  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19550    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19551    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19552    break 2
19553  fi
19554done
19555  done
19556IFS=$as_save_IFS
19557
19558  ;;
19559esac
19560fi
19561ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
19562if test -n "$ac_pt_PKG_CONFIG"; then
19563  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
19564$as_echo "$ac_pt_PKG_CONFIG" >&6; }
19565else
19566  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567$as_echo "no" >&6; }
19568fi
19569
19570  if test "x$ac_pt_PKG_CONFIG" = x; then
19571    PKG_CONFIG=""
19572  else
19573    case $cross_compiling:$ac_tool_warned in
19574yes:)
19575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19577ac_tool_warned=yes ;;
19578esac
19579    PKG_CONFIG=$ac_pt_PKG_CONFIG
19580  fi
19581else
19582  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
19583fi
19584
19585fi
19586if test -n "$PKG_CONFIG"; then
19587	_pkg_min_version=0.9.0
19588	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
19589$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
19590	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
19591		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19592$as_echo "yes" >&6; }
19593	else
19594		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19595$as_echo "no" >&6; }
19596		PKG_CONFIG=""
19597	fi
19598fi
19599
19600pkg_failed=no
19601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenPGM" >&5
19602$as_echo_n "checking for OpenPGM... " >&6; }
19603
19604if test -n "$OpenPGM_CFLAGS"; then
19605    pkg_cv_OpenPGM_CFLAGS="$OpenPGM_CFLAGS"
19606 elif test -n "$PKG_CONFIG"; then
19607    if test -n "$PKG_CONFIG" && \
19608    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openpgm-5.1 >= 5.1\""; } >&5
19609  ($PKG_CONFIG --exists --print-errors "openpgm-5.1 >= 5.1") 2>&5
19610  ac_status=$?
19611  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19612  test $ac_status = 0; }; then
19613  pkg_cv_OpenPGM_CFLAGS=`$PKG_CONFIG --cflags "openpgm-5.1 >= 5.1" 2>/dev/null`
19614		      test "x$?" != "x0" && pkg_failed=yes
19615else
19616  pkg_failed=yes
19617fi
19618 else
19619    pkg_failed=untried
19620fi
19621if test -n "$OpenPGM_LIBS"; then
19622    pkg_cv_OpenPGM_LIBS="$OpenPGM_LIBS"
19623 elif test -n "$PKG_CONFIG"; then
19624    if test -n "$PKG_CONFIG" && \
19625    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openpgm-5.1 >= 5.1\""; } >&5
19626  ($PKG_CONFIG --exists --print-errors "openpgm-5.1 >= 5.1") 2>&5
19627  ac_status=$?
19628  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19629  test $ac_status = 0; }; then
19630  pkg_cv_OpenPGM_LIBS=`$PKG_CONFIG --libs "openpgm-5.1 >= 5.1" 2>/dev/null`
19631		      test "x$?" != "x0" && pkg_failed=yes
19632else
19633  pkg_failed=yes
19634fi
19635 else
19636    pkg_failed=untried
19637fi
19638
19639
19640
19641if test $pkg_failed = yes; then
19642   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19643$as_echo "no" >&6; }
19644
19645if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19646        _pkg_short_errors_supported=yes
19647else
19648        _pkg_short_errors_supported=no
19649fi
19650        if test $_pkg_short_errors_supported = yes; then
19651	        OpenPGM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openpgm-5.1 >= 5.1" 2>&1`
19652        else
19653	        OpenPGM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openpgm-5.1 >= 5.1" 2>&1`
19654        fi
19655	# Put the nasty error message in config.log where it belongs
19656	echo "$OpenPGM_PKG_ERRORS" >&5
19657
19658	as_fn_error $? "Package requirements (openpgm-5.1 >= 5.1) were not met:
19659
19660$OpenPGM_PKG_ERRORS
19661
19662Consider adjusting the PKG_CONFIG_PATH environment variable if you
19663installed software in a non-standard prefix.
19664
19665Alternatively, you may set the environment variables OpenPGM_CFLAGS
19666and OpenPGM_LIBS to avoid the need to call pkg-config.
19667See the pkg-config man page for more details." "$LINENO" 5
19668elif test $pkg_failed = untried; then
19669     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19670$as_echo "no" >&6; }
19671	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19673as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
19674is in your PATH or set the PKG_CONFIG environment variable to the full
19675path to pkg-config.
19676
19677Alternatively, you may set the environment variables OpenPGM_CFLAGS
19678and OpenPGM_LIBS to avoid the need to call pkg-config.
19679See the pkg-config man page for more details.
19680
19681To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19682See \`config.log' for more details" "$LINENO" 5; }
19683else
19684	OpenPGM_CFLAGS=$pkg_cv_OpenPGM_CFLAGS
19685	OpenPGM_LIBS=$pkg_cv_OpenPGM_LIBS
19686        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19687$as_echo "yes" >&6; }
19688
19689fi
19690
19691$as_echo "#define ZMQ_HAVE_OPENPGM 1" >>confdefs.h
19692
19693        LIBZMQ_EXTRA_CXXFLAGS="$OpenPGM_CFLAGS $LIBZMQ_EXTRA_CXXFLAGS"
19694        LIBS="$OpenPGM_LIBS $LIBS"
19695
19696fi
19697
19698
19699
19700# Set -Wall, -Werror and -pedantic
19701ac_ext=cpp
19702ac_cpp='$CXXCPP $CPPFLAGS'
19703ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19704ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19705ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19706
19707
19708# Check how to enable -Wall
19709{
19710
19711    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to enable additional warnings for C++ compiler" >&5
19712$as_echo_n "checking how to enable additional warnings for C++ compiler... " >&6; }
19713
19714    libzmq_cv_cxx_wall_flag=""
19715
19716    # C compilers
19717    case "xcxx" in
19718       xc)
19719            # GCC, clang and ICC
19720            if test "x$GCC" = "xyes" -o \
19721                    "x$libzmq_cv_cxx_intel_compiler" = "xyes" -o \
19722                    "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then
19723                libzmq_cv_cxx_wall_flag="-Wall"
19724            # Sun studio
19725            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19726                libzmq_cv_cxx_wall_flag="-v"
19727            fi
19728       ;;
19729       xcxx)
19730            # GCC, clang and ICC
19731            if test "x$GXX" = "xyes" -o \
19732                    "x$libzmq_cv_cxx_intel_compiler" = "xyes" -o \
19733                    "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then
19734                libzmq_cv_cxx_wall_flag="-Wall"
19735            # Sun studio
19736            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19737                libzmq_cv_cxx_wall_flag="+w"
19738            fi
19739       ;;
19740       *)
19741       ;;
19742    esac
19743
19744    # Call the action
19745    if test "x$libzmq_cv_cxx_wall_flag" != "x"; then
19746        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_wall_flag" >&5
19747$as_echo "$libzmq_cv_cxx_wall_flag" >&6; }
19748        CPPFLAGS="$libzmq_cv_cxx_wall_flag $CPPFLAGS"
19749    else
19750        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19751$as_echo "not found" >&6; }
19752
19753    fi
19754}
19755
19756if test "x$libzmq_werror" = "xyes" -a "x$libzmq_cv_cxx_sun_studio_compiler" != "xyes"; then
19757    {
19758    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to turn warnings to errors in C++ compiler" >&5
19759$as_echo_n "checking how to turn warnings to errors in C++ compiler... " >&6; }
19760
19761    libzmq_cv_cxx_werror_flag=""
19762
19763    # C compilers
19764    case "xcxx" in
19765       xc)
19766            # GCC, clang and ICC
19767            if test "x$GCC" = "xyes" -o "x$libzmq_cv_cxx_intel_compiler" = "xyes"; then
19768                libzmq_cv_cxx_werror_flag="-Werror"
19769            # Sun studio
19770            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19771                libzmq_cv_cxx_werror_flag="-errwarn=%all"
19772            fi
19773       ;;
19774       xcxx)
19775            # GCC, clang and ICC
19776            if test "x$GXX" = "xyes" -o "x$libzmq_cv_cxx_intel_compiler" = "xyes"; then
19777                libzmq_cv_cxx_werror_flag="-Werror"
19778            # Sun studio
19779            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19780                libzmq_cv_cxx_werror_flag="-errwarn=%all"
19781            fi
19782       ;;
19783       *)
19784       ;;
19785    esac
19786
19787    # Call the action
19788    if test "x$libzmq_cv_cxx_werror_flag" != "x"; then
19789        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_werror_flag" >&5
19790$as_echo "$libzmq_cv_cxx_werror_flag" >&6; }
19791        CPPFLAGS="$libzmq_cv_cxx_werror_flag $CPPFLAGS"
19792    else
19793        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19794$as_echo "not found" >&6; }
19795
19796    fi
19797}
19798fi
19799
19800if test "x$libzmq_pedantic" = "xyes"; then
19801    {
19802    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to enable strict standards compliance in C++ compiler" >&5
19803$as_echo_n "checking how to enable strict standards compliance in C++ compiler... " >&6; }
19804
19805    libzmq_cv_cxx_strict_flag=""
19806
19807    # C compilers
19808    case "xcxx" in
19809       xc)
19810            # GCC, clang and ICC
19811            if test "x$GCC" = "xyes" -o "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then
19812                libzmq_cv_cxx_strict_flag="-pedantic"
19813            elif test "x$libzmq_cv_cxx_intel_compiler" = "xyes"; then
19814                libzmq_cv_cxx_strict_flag="-strict-ansi"
19815            # Sun studio
19816            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19817                libzmq_cv_cxx_strict_flag="-Xc"
19818            fi
19819       ;;
19820       xcxx)
19821            # GCC, clang and ICC
19822            if test "x$GXX" = "xyes" -o "x$libzmq_cv_cxx_clang_compiler" = "xyes"; then
19823                libzmq_cv_cxx_strict_flag="-pedantic"
19824            elif test "x$libzmq_cv_cxx_intel_compiler" = "xyes"; then
19825                libzmq_cv_cxx_strict_flag="-strict-ansi"
19826            # Sun studio
19827            elif test "x$libzmq_cv_cxx_sun_studio_compiler" = "xyes"; then
19828                libzmq_cv_cxx_strict_flag="-compat=5"
19829            fi
19830       ;;
19831       *)
19832       ;;
19833    esac
19834
19835    # Call the action
19836    if test "x$libzmq_cv_cxx_strict_flag" != "x"; then
19837        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libzmq_cv_cxx_strict_flag" >&5
19838$as_echo "$libzmq_cv_cxx_strict_flag" >&6; }
19839        CPPFLAGS="$libzmq_cv_cxx_strict_flag $CPPFLAGS"
19840    else
19841        { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
19842$as_echo "not found" >&6; }
19843
19844    fi
19845}
19846fi
19847ac_ext=cpp
19848ac_cpp='$CXXCPP $CPPFLAGS'
19849ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19850ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19851ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19852
19853
19854 if test "x$libzmq_pgm_ext" = "xyes"; then
19855  BUILD_PGM_TRUE=
19856  BUILD_PGM_FALSE='#'
19857else
19858  BUILD_PGM_TRUE='#'
19859  BUILD_PGM_FALSE=
19860fi
19861
19862 if test "x$libzmq_on_mingw32" = "xyes"; then
19863  ON_MINGW_TRUE=
19864  ON_MINGW_FALSE='#'
19865else
19866  ON_MINGW_TRUE='#'
19867  ON_MINGW_FALSE=
19868fi
19869
19870
19871# Checks for library functions.
19872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
19873$as_echo_n "checking return type of signal handlers... " >&6; }
19874if ${ac_cv_type_signal+:} false; then :
19875  $as_echo_n "(cached) " >&6
19876else
19877  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878/* end confdefs.h.  */
19879#include <sys/types.h>
19880#include <signal.h>
19881
19882int
19883main ()
19884{
19885return *(signal (0, 0)) (0) == 1;
19886  ;
19887  return 0;
19888}
19889_ACEOF
19890if ac_fn_cxx_try_compile "$LINENO"; then :
19891  ac_cv_type_signal=int
19892else
19893  ac_cv_type_signal=void
19894fi
19895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19896fi
19897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
19898$as_echo "$ac_cv_type_signal" >&6; }
19899
19900cat >>confdefs.h <<_ACEOF
19901#define RETSIGTYPE $ac_cv_type_signal
19902_ACEOF
19903
19904
19905for ac_func in perror gettimeofday clock_gettime memset socket getifaddrs freeifaddrs
19906do :
19907  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19908ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
19909if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19910  cat >>confdefs.h <<_ACEOF
19911#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19912_ACEOF
19913
19914fi
19915done
19916
19917
19918for ac_header in alloca.h
19919do :
19920  ac_fn_cxx_check_header_mongrel "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "$ac_includes_default"
19921if test "x$ac_cv_header_alloca_h" = xyes; then :
19922  cat >>confdefs.h <<_ACEOF
19923#define HAVE_ALLOCA_H 1
19924_ACEOF
19925
19926fi
19927
19928done
19929
19930{
19931    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether SOCK_CLOEXEC is supported" >&5
19932$as_echo_n "checking whether SOCK_CLOEXEC is supported... " >&6; }
19933    if test "$cross_compiling" = yes; then :
19934  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not during cross-compile" >&5
19935$as_echo "not during cross-compile" >&6; } ; libzmq_cv_sock_cloexec="no"
19936
19937else
19938  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19939/* end confdefs.h.  */
19940/* SOCK_CLOEXEC test */
19941#include <sys/types.h>
19942#include <sys/socket.h>
19943
19944int main (int argc, char *argv [])
19945{
19946    int s = socket (PF_INET, SOCK_STREAM | SOCK_CLOEXEC, 0);
19947    return (s == -1);
19948}
19949
19950_ACEOF
19951if ac_fn_cxx_try_run "$LINENO"; then :
19952  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19953$as_echo "yes" >&6; } ; libzmq_cv_sock_cloexec="yes" ;
19954$as_echo "#define HAVE_SOCK_CLOEXEC 1" >>confdefs.h
19955
19956
19957else
19958  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959$as_echo "no" >&6; }  ; libzmq_cv_sock_cloexec="no"  ;
19960fi
19961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19962  conftest.$ac_objext conftest.beam conftest.$ac_ext
19963fi
19964
19965}
19966
19967# Subst LIBZMQ_EXTRA_CFLAGS & CXXFLAGS & LDFLAGS
19968
19969
19970
19971
19972ac_config_files="$ac_config_files Makefile src/Makefile doc/Makefile perf/Makefile src/libzmq.pc builds/msvc/Makefile tests/Makefile foreign/openpgm/Makefile builds/redhat/zeromq.spec"
19973
19974cat >confcache <<\_ACEOF
19975# This file is a shell script that caches the results of configure
19976# tests run on this system so they can be shared between configure
19977# scripts and configure runs, see configure's option --config-cache.
19978# It is not useful on other systems.  If it contains results you don't
19979# want to keep, you may remove or edit it.
19980#
19981# config.status only pays attention to the cache file if you give it
19982# the --recheck option to rerun configure.
19983#
19984# `ac_cv_env_foo' variables (set or unset) will be overridden when
19985# loading this file, other *unset* `ac_cv_foo' will be assigned the
19986# following values.
19987
19988_ACEOF
19989
19990# The following way of writing the cache mishandles newlines in values,
19991# but we know of no workaround that is simple, portable, and efficient.
19992# So, we kill variables containing newlines.
19993# Ultrix sh set writes to stderr and can't be redirected directly,
19994# and sets the high bit in the cache file unless we assign to the vars.
19995(
19996  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19997    eval ac_val=\$$ac_var
19998    case $ac_val in #(
19999    *${as_nl}*)
20000      case $ac_var in #(
20001      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20002$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20003      esac
20004      case $ac_var in #(
20005      _ | IFS | as_nl) ;; #(
20006      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20007      *) { eval $ac_var=; unset $ac_var;} ;;
20008      esac ;;
20009    esac
20010  done
20011
20012  (set) 2>&1 |
20013    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20014    *${as_nl}ac_space=\ *)
20015      # `set' does not quote correctly, so add quotes: double-quote
20016      # substitution turns \\\\ into \\, and sed turns \\ into \.
20017      sed -n \
20018	"s/'/'\\\\''/g;
20019	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20020      ;; #(
20021    *)
20022      # `set' quotes correctly as required by POSIX, so do not add quotes.
20023      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20024      ;;
20025    esac |
20026    sort
20027) |
20028  sed '
20029     /^ac_cv_env_/b end
20030     t clear
20031     :clear
20032     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20033     t end
20034     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20035     :end' >>confcache
20036if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20037  if test -w "$cache_file"; then
20038    if test "x$cache_file" != "x/dev/null"; then
20039      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20040$as_echo "$as_me: updating cache $cache_file" >&6;}
20041      if test ! -f "$cache_file" || test -h "$cache_file"; then
20042	cat confcache >"$cache_file"
20043      else
20044        case $cache_file in #(
20045        */* | ?:*)
20046	  mv -f confcache "$cache_file"$$ &&
20047	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20048        *)
20049	  mv -f confcache "$cache_file" ;;
20050	esac
20051      fi
20052    fi
20053  else
20054    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20055$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20056  fi
20057fi
20058rm -f confcache
20059
20060test "x$prefix" = xNONE && prefix=$ac_default_prefix
20061# Let make expand exec_prefix.
20062test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20063
20064DEFS=-DHAVE_CONFIG_H
20065
20066ac_libobjs=
20067ac_ltlibobjs=
20068U=
20069for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20070  # 1. Remove the extension, and $U if already installed.
20071  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20072  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20073  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20074  #    will be set to the directory where LIBOBJS objects are built.
20075  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20076  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20077done
20078LIBOBJS=$ac_libobjs
20079
20080LTLIBOBJS=$ac_ltlibobjs
20081
20082
20083 if test -n "$EXEEXT"; then
20084  am__EXEEXT_TRUE=
20085  am__EXEEXT_FALSE='#'
20086else
20087  am__EXEEXT_TRUE='#'
20088  am__EXEEXT_FALSE=
20089fi
20090
20091if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20092  as_fn_error $? "conditional \"AMDEP\" was never defined.
20093Usually this means the macro was only invoked conditionally." "$LINENO" 5
20094fi
20095if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20096  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20097Usually this means the macro was only invoked conditionally." "$LINENO" 5
20098fi
20099if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20100  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20101Usually this means the macro was only invoked conditionally." "$LINENO" 5
20102fi
20103if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
20104  as_fn_error $? "conditional \"BUILD_DOC\" was never defined.
20105Usually this means the macro was only invoked conditionally." "$LINENO" 5
20106fi
20107if test -z "${INSTALL_MAN_TRUE}" && test -z "${INSTALL_MAN_FALSE}"; then
20108  as_fn_error $? "conditional \"INSTALL_MAN\" was never defined.
20109Usually this means the macro was only invoked conditionally." "$LINENO" 5
20110fi
20111if test -z "${BUILD_PGM_TRUE}" && test -z "${BUILD_PGM_FALSE}"; then
20112  as_fn_error $? "conditional \"BUILD_PGM\" was never defined.
20113Usually this means the macro was only invoked conditionally." "$LINENO" 5
20114fi
20115if test -z "${ON_MINGW_TRUE}" && test -z "${ON_MINGW_FALSE}"; then
20116  as_fn_error $? "conditional \"ON_MINGW\" was never defined.
20117Usually this means the macro was only invoked conditionally." "$LINENO" 5
20118fi
20119
20120: "${CONFIG_STATUS=./config.status}"
20121ac_write_fail=0
20122ac_clean_files_save=$ac_clean_files
20123ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20124{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20125$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20126as_write_fail=0
20127cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20128#! $SHELL
20129# Generated by $as_me.
20130# Run this file to recreate the current configuration.
20131# Compiler output produced by configure, useful for debugging
20132# configure, is in config.log if it exists.
20133
20134debug=false
20135ac_cs_recheck=false
20136ac_cs_silent=false
20137
20138SHELL=\${CONFIG_SHELL-$SHELL}
20139export SHELL
20140_ASEOF
20141cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20142## -------------------- ##
20143## M4sh Initialization. ##
20144## -------------------- ##
20145
20146# Be more Bourne compatible
20147DUALCASE=1; export DUALCASE # for MKS sh
20148if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20149  emulate sh
20150  NULLCMD=:
20151  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20152  # is contrary to our usage.  Disable this feature.
20153  alias -g '${1+"$@"}'='"$@"'
20154  setopt NO_GLOB_SUBST
20155else
20156  case `(set -o) 2>/dev/null` in #(
20157  *posix*) :
20158    set -o posix ;; #(
20159  *) :
20160     ;;
20161esac
20162fi
20163
20164
20165as_nl='
20166'
20167export as_nl
20168# Printing a long string crashes Solaris 7 /usr/bin/printf.
20169as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20170as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20171as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20172# Prefer a ksh shell builtin over an external printf program on Solaris,
20173# but without wasting forks for bash or zsh.
20174if test -z "$BASH_VERSION$ZSH_VERSION" \
20175    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20176  as_echo='print -r --'
20177  as_echo_n='print -rn --'
20178elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20179  as_echo='printf %s\n'
20180  as_echo_n='printf %s'
20181else
20182  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20183    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20184    as_echo_n='/usr/ucb/echo -n'
20185  else
20186    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20187    as_echo_n_body='eval
20188      arg=$1;
20189      case $arg in #(
20190      *"$as_nl"*)
20191	expr "X$arg" : "X\\(.*\\)$as_nl";
20192	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20193      esac;
20194      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20195    '
20196    export as_echo_n_body
20197    as_echo_n='sh -c $as_echo_n_body as_echo'
20198  fi
20199  export as_echo_body
20200  as_echo='sh -c $as_echo_body as_echo'
20201fi
20202
20203# The user is always right.
20204if test "${PATH_SEPARATOR+set}" != set; then
20205  PATH_SEPARATOR=:
20206  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20207    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20208      PATH_SEPARATOR=';'
20209  }
20210fi
20211
20212
20213# IFS
20214# We need space, tab and new line, in precisely that order.  Quoting is
20215# there to prevent editors from complaining about space-tab.
20216# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20217# splitting by setting IFS to empty value.)
20218IFS=" ""	$as_nl"
20219
20220# Find who we are.  Look in the path if we contain no directory separator.
20221as_myself=
20222case $0 in #((
20223  *[\\/]* ) as_myself=$0 ;;
20224  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20225for as_dir in $PATH
20226do
20227  IFS=$as_save_IFS
20228  test -z "$as_dir" && as_dir=.
20229    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20230  done
20231IFS=$as_save_IFS
20232
20233     ;;
20234esac
20235# We did not find ourselves, most probably we were run as `sh COMMAND'
20236# in which case we are not to be found in the path.
20237if test "x$as_myself" = x; then
20238  as_myself=$0
20239fi
20240if test ! -f "$as_myself"; then
20241  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20242  exit 1
20243fi
20244
20245# Unset variables that we do not need and which cause bugs (e.g. in
20246# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
20247# suppresses any "Segmentation fault" message there.  '((' could
20248# trigger a bug in pdksh 5.2.14.
20249for as_var in BASH_ENV ENV MAIL MAILPATH
20250do eval test x\${$as_var+set} = xset \
20251  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20252done
20253PS1='$ '
20254PS2='> '
20255PS4='+ '
20256
20257# NLS nuisances.
20258LC_ALL=C
20259export LC_ALL
20260LANGUAGE=C
20261export LANGUAGE
20262
20263# CDPATH.
20264(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20265
20266
20267# as_fn_error STATUS ERROR [LINENO LOG_FD]
20268# ----------------------------------------
20269# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20270# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20271# script with STATUS, using 1 if that was 0.
20272as_fn_error ()
20273{
20274  as_status=$1; test $as_status -eq 0 && as_status=1
20275  if test "$4"; then
20276    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20277    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20278  fi
20279  $as_echo "$as_me: error: $2" >&2
20280  as_fn_exit $as_status
20281} # as_fn_error
20282
20283
20284# as_fn_set_status STATUS
20285# -----------------------
20286# Set $? to STATUS, without forking.
20287as_fn_set_status ()
20288{
20289  return $1
20290} # as_fn_set_status
20291
20292# as_fn_exit STATUS
20293# -----------------
20294# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20295as_fn_exit ()
20296{
20297  set +e
20298  as_fn_set_status $1
20299  exit $1
20300} # as_fn_exit
20301
20302# as_fn_unset VAR
20303# ---------------
20304# Portably unset VAR.
20305as_fn_unset ()
20306{
20307  { eval $1=; unset $1;}
20308}
20309as_unset=as_fn_unset
20310# as_fn_append VAR VALUE
20311# ----------------------
20312# Append the text in VALUE to the end of the definition contained in VAR. Take
20313# advantage of any shell optimizations that allow amortized linear growth over
20314# repeated appends, instead of the typical quadratic growth present in naive
20315# implementations.
20316if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20317  eval 'as_fn_append ()
20318  {
20319    eval $1+=\$2
20320  }'
20321else
20322  as_fn_append ()
20323  {
20324    eval $1=\$$1\$2
20325  }
20326fi # as_fn_append
20327
20328# as_fn_arith ARG...
20329# ------------------
20330# Perform arithmetic evaluation on the ARGs, and store the result in the
20331# global $as_val. Take advantage of shells that can avoid forks. The arguments
20332# must be portable across $(()) and expr.
20333if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20334  eval 'as_fn_arith ()
20335  {
20336    as_val=$(( $* ))
20337  }'
20338else
20339  as_fn_arith ()
20340  {
20341    as_val=`expr "$@" || test $? -eq 1`
20342  }
20343fi # as_fn_arith
20344
20345
20346if expr a : '\(a\)' >/dev/null 2>&1 &&
20347   test "X`expr 00001 : '.*\(...\)'`" = X001; then
20348  as_expr=expr
20349else
20350  as_expr=false
20351fi
20352
20353if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20354  as_basename=basename
20355else
20356  as_basename=false
20357fi
20358
20359if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20360  as_dirname=dirname
20361else
20362  as_dirname=false
20363fi
20364
20365as_me=`$as_basename -- "$0" ||
20366$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20367	 X"$0" : 'X\(//\)$' \| \
20368	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20369$as_echo X/"$0" |
20370    sed '/^.*\/\([^/][^/]*\)\/*$/{
20371	    s//\1/
20372	    q
20373	  }
20374	  /^X\/\(\/\/\)$/{
20375	    s//\1/
20376	    q
20377	  }
20378	  /^X\/\(\/\).*/{
20379	    s//\1/
20380	    q
20381	  }
20382	  s/.*/./; q'`
20383
20384# Avoid depending upon Character Ranges.
20385as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20386as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20387as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20388as_cr_digits='0123456789'
20389as_cr_alnum=$as_cr_Letters$as_cr_digits
20390
20391ECHO_C= ECHO_N= ECHO_T=
20392case `echo -n x` in #(((((
20393-n*)
20394  case `echo 'xy\c'` in
20395  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
20396  xy)  ECHO_C='\c';;
20397  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
20398       ECHO_T='	';;
20399  esac;;
20400*)
20401  ECHO_N='-n';;
20402esac
20403
20404rm -f conf$$ conf$$.exe conf$$.file
20405if test -d conf$$.dir; then
20406  rm -f conf$$.dir/conf$$.file
20407else
20408  rm -f conf$$.dir
20409  mkdir conf$$.dir 2>/dev/null
20410fi
20411if (echo >conf$$.file) 2>/dev/null; then
20412  if ln -s conf$$.file conf$$ 2>/dev/null; then
20413    as_ln_s='ln -s'
20414    # ... but there are two gotchas:
20415    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20416    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20417    # In both cases, we have to default to `cp -p'.
20418    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20419      as_ln_s='cp -p'
20420  elif ln conf$$.file conf$$ 2>/dev/null; then
20421    as_ln_s=ln
20422  else
20423    as_ln_s='cp -p'
20424  fi
20425else
20426  as_ln_s='cp -p'
20427fi
20428rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20429rmdir conf$$.dir 2>/dev/null
20430
20431
20432# as_fn_mkdir_p
20433# -------------
20434# Create "$as_dir" as a directory, including parents if necessary.
20435as_fn_mkdir_p ()
20436{
20437
20438  case $as_dir in #(
20439  -*) as_dir=./$as_dir;;
20440  esac
20441  test -d "$as_dir" || eval $as_mkdir_p || {
20442    as_dirs=
20443    while :; do
20444      case $as_dir in #(
20445      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20446      *) as_qdir=$as_dir;;
20447      esac
20448      as_dirs="'$as_qdir' $as_dirs"
20449      as_dir=`$as_dirname -- "$as_dir" ||
20450$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20451	 X"$as_dir" : 'X\(//\)[^/]' \| \
20452	 X"$as_dir" : 'X\(//\)$' \| \
20453	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20454$as_echo X"$as_dir" |
20455    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20456	    s//\1/
20457	    q
20458	  }
20459	  /^X\(\/\/\)[^/].*/{
20460	    s//\1/
20461	    q
20462	  }
20463	  /^X\(\/\/\)$/{
20464	    s//\1/
20465	    q
20466	  }
20467	  /^X\(\/\).*/{
20468	    s//\1/
20469	    q
20470	  }
20471	  s/.*/./; q'`
20472      test -d "$as_dir" && break
20473    done
20474    test -z "$as_dirs" || eval "mkdir $as_dirs"
20475  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20476
20477
20478} # as_fn_mkdir_p
20479if mkdir -p . 2>/dev/null; then
20480  as_mkdir_p='mkdir -p "$as_dir"'
20481else
20482  test -d ./-p && rmdir ./-p
20483  as_mkdir_p=false
20484fi
20485
20486if test -x / >/dev/null 2>&1; then
20487  as_test_x='test -x'
20488else
20489  if ls -dL / >/dev/null 2>&1; then
20490    as_ls_L_option=L
20491  else
20492    as_ls_L_option=
20493  fi
20494  as_test_x='
20495    eval sh -c '\''
20496      if test -d "$1"; then
20497	test -d "$1/.";
20498      else
20499	case $1 in #(
20500	-*)set "./$1";;
20501	esac;
20502	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20503	???[sx]*):;;*)false;;esac;fi
20504    '\'' sh
20505  '
20506fi
20507as_executable_p=$as_test_x
20508
20509# Sed expression to map a string onto a valid CPP name.
20510as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20511
20512# Sed expression to map a string onto a valid variable name.
20513as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20514
20515
20516exec 6>&1
20517## ----------------------------------- ##
20518## Main body of $CONFIG_STATUS script. ##
20519## ----------------------------------- ##
20520_ASEOF
20521test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20522
20523cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20524# Save the log message, to keep $0 and so on meaningful, and to
20525# report actual input values of CONFIG_FILES etc. instead of their
20526# values after options handling.
20527ac_log="
20528This file was extended by zeromq $as_me 2.2.0, which was
20529generated by GNU Autoconf 2.68.  Invocation command line was
20530
20531  CONFIG_FILES    = $CONFIG_FILES
20532  CONFIG_HEADERS  = $CONFIG_HEADERS
20533  CONFIG_LINKS    = $CONFIG_LINKS
20534  CONFIG_COMMANDS = $CONFIG_COMMANDS
20535  $ $0 $@
20536
20537on `(hostname || uname -n) 2>/dev/null | sed 1q`
20538"
20539
20540_ACEOF
20541
20542case $ac_config_files in *"
20543"*) set x $ac_config_files; shift; ac_config_files=$*;;
20544esac
20545
20546case $ac_config_headers in *"
20547"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20548esac
20549
20550
20551cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20552# Files that config.status was made for.
20553config_files="$ac_config_files"
20554config_headers="$ac_config_headers"
20555config_commands="$ac_config_commands"
20556
20557_ACEOF
20558
20559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20560ac_cs_usage="\
20561\`$as_me' instantiates files and other configuration actions
20562from templates according to the current configuration.  Unless the files
20563and actions are specified as TAGs, all are instantiated by default.
20564
20565Usage: $0 [OPTION]... [TAG]...
20566
20567  -h, --help       print this help, then exit
20568  -V, --version    print version number and configuration settings, then exit
20569      --config     print configuration, then exit
20570  -q, --quiet, --silent
20571                   do not print progress messages
20572  -d, --debug      don't remove temporary files
20573      --recheck    update $as_me by reconfiguring in the same conditions
20574      --file=FILE[:TEMPLATE]
20575                   instantiate the configuration file FILE
20576      --header=FILE[:TEMPLATE]
20577                   instantiate the configuration header FILE
20578
20579Configuration files:
20580$config_files
20581
20582Configuration headers:
20583$config_headers
20584
20585Configuration commands:
20586$config_commands
20587
20588Report bugs to <zeromq-dev@lists.zeromq.org>."
20589
20590_ACEOF
20591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20592ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20593ac_cs_version="\\
20594zeromq config.status 2.2.0
20595configured by $0, generated by GNU Autoconf 2.68,
20596  with options \\"\$ac_cs_config\\"
20597
20598Copyright (C) 2010 Free Software Foundation, Inc.
20599This config.status script is free software; the Free Software Foundation
20600gives unlimited permission to copy, distribute and modify it."
20601
20602ac_pwd='$ac_pwd'
20603srcdir='$srcdir'
20604INSTALL='$INSTALL'
20605MKDIR_P='$MKDIR_P'
20606AWK='$AWK'
20607test -n "\$AWK" || AWK=awk
20608_ACEOF
20609
20610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20611# The default lists apply if the user does not specify any file.
20612ac_need_defaults=:
20613while test $# != 0
20614do
20615  case $1 in
20616  --*=?*)
20617    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20618    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20619    ac_shift=:
20620    ;;
20621  --*=)
20622    ac_option=`expr "X$1" : 'X\([^=]*\)='`
20623    ac_optarg=
20624    ac_shift=:
20625    ;;
20626  *)
20627    ac_option=$1
20628    ac_optarg=$2
20629    ac_shift=shift
20630    ;;
20631  esac
20632
20633  case $ac_option in
20634  # Handling of the options.
20635  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20636    ac_cs_recheck=: ;;
20637  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20638    $as_echo "$ac_cs_version"; exit ;;
20639  --config | --confi | --conf | --con | --co | --c )
20640    $as_echo "$ac_cs_config"; exit ;;
20641  --debug | --debu | --deb | --de | --d | -d )
20642    debug=: ;;
20643  --file | --fil | --fi | --f )
20644    $ac_shift
20645    case $ac_optarg in
20646    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20647    '') as_fn_error $? "missing file argument" ;;
20648    esac
20649    as_fn_append CONFIG_FILES " '$ac_optarg'"
20650    ac_need_defaults=false;;
20651  --header | --heade | --head | --hea )
20652    $ac_shift
20653    case $ac_optarg in
20654    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20655    esac
20656    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20657    ac_need_defaults=false;;
20658  --he | --h)
20659    # Conflict between --help and --header
20660    as_fn_error $? "ambiguous option: \`$1'
20661Try \`$0 --help' for more information.";;
20662  --help | --hel | -h )
20663    $as_echo "$ac_cs_usage"; exit ;;
20664  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20665  | -silent | --silent | --silen | --sile | --sil | --si | --s)
20666    ac_cs_silent=: ;;
20667
20668  # This is an error.
20669  -*) as_fn_error $? "unrecognized option: \`$1'
20670Try \`$0 --help' for more information." ;;
20671
20672  *) as_fn_append ac_config_targets " $1"
20673     ac_need_defaults=false ;;
20674
20675  esac
20676  shift
20677done
20678
20679ac_configure_extra_args=
20680
20681if $ac_cs_silent; then
20682  exec 6>/dev/null
20683  ac_configure_extra_args="$ac_configure_extra_args --silent"
20684fi
20685
20686_ACEOF
20687cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20688if \$ac_cs_recheck; then
20689  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20690  shift
20691  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20692  CONFIG_SHELL='$SHELL'
20693  export CONFIG_SHELL
20694  exec "\$@"
20695fi
20696
20697_ACEOF
20698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20699exec 5>>config.log
20700{
20701  echo
20702  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20703## Running $as_me. ##
20704_ASBOX
20705  $as_echo "$ac_log"
20706} >&5
20707
20708_ACEOF
20709cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20710#
20711# INIT-COMMANDS
20712#
20713AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20714
20715
20716# The HP-UX ksh and POSIX shell print the target directory to stdout
20717# if CDPATH is set.
20718(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20719
20720sed_quote_subst='$sed_quote_subst'
20721double_quote_subst='$double_quote_subst'
20722delay_variable_subst='$delay_variable_subst'
20723enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20724AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20725DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20726OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20727macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20728macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20729enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20730pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20731enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20732SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20733ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20734host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20735host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20736host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20737build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20738build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20739build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20740SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20741Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20742GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20743EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20744FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20745LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20746NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20747LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20748max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20749ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20750exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20751lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20752lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20753lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20754lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20755lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20756reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20757reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20758deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20759file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20760file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20761want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20762sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20763AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20764AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20765archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20766STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20767RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20768old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20769old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20770old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20771lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20772CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20773CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20774compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20775GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20776lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20777lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20778lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20779lt_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"`'
20780nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20781lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20782objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20783MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20784lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20785lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20786lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20787lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20788lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20789need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20790MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20791DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20792NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20793LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20794OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20795OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20796libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20797shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20798extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20799archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20800enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20801export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20802whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20803compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20804old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20805old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20806archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20807archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20808module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20809module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20810with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20811allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20812no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20813hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20814hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20815hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20816hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20817hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20818hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20819hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20820hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20821inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20822link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20823always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20824export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20825exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20826include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20827prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20828postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20829file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20830variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20831need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20832need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20833version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20834runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20835shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20836shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20837libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20838library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20839soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20840install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20841postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20842postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20843finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20844finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20845hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20846sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20847sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20848hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20849enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20850enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20851enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20852old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20853striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20854compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20855predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20856postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20857predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20858postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20859compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20860LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20861reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20862reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20863old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20864compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20865GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20866lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20867lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20868lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20869lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20870lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20871archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20872enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20873export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20874whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20875compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20876old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20877old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20878archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20879archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20880module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20881module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20882with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20883allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20884no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20885hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20886hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
20887hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20888hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20889hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20890hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20891hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20892hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20893inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20894link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20895always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20896export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20897exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20898include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20899prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20900postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20901file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20902hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20903compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20904predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20905postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20906predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20907postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20908compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20909
20910LTCC='$LTCC'
20911LTCFLAGS='$LTCFLAGS'
20912compiler='$compiler_DEFAULT'
20913
20914# A function that is used when there is no print builtin or printf.
20915func_fallback_echo ()
20916{
20917  eval 'cat <<_LTECHO_EOF
20918\$1
20919_LTECHO_EOF'
20920}
20921
20922# Quote evaled strings.
20923for var in AS \
20924DLLTOOL \
20925OBJDUMP \
20926SHELL \
20927ECHO \
20928SED \
20929GREP \
20930EGREP \
20931FGREP \
20932LD \
20933NM \
20934LN_S \
20935lt_SP2NL \
20936lt_NL2SP \
20937reload_flag \
20938deplibs_check_method \
20939file_magic_cmd \
20940file_magic_glob \
20941want_nocaseglob \
20942sharedlib_from_linklib_cmd \
20943AR \
20944AR_FLAGS \
20945archiver_list_spec \
20946STRIP \
20947RANLIB \
20948CC \
20949CFLAGS \
20950compiler \
20951lt_cv_sys_global_symbol_pipe \
20952lt_cv_sys_global_symbol_to_cdecl \
20953lt_cv_sys_global_symbol_to_c_name_address \
20954lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20955nm_file_list_spec \
20956lt_prog_compiler_no_builtin_flag \
20957lt_prog_compiler_pic \
20958lt_prog_compiler_wl \
20959lt_prog_compiler_static \
20960lt_cv_prog_compiler_c_o \
20961need_locks \
20962MANIFEST_TOOL \
20963DSYMUTIL \
20964NMEDIT \
20965LIPO \
20966OTOOL \
20967OTOOL64 \
20968shrext_cmds \
20969export_dynamic_flag_spec \
20970whole_archive_flag_spec \
20971compiler_needs_object \
20972with_gnu_ld \
20973allow_undefined_flag \
20974no_undefined_flag \
20975hardcode_libdir_flag_spec \
20976hardcode_libdir_flag_spec_ld \
20977hardcode_libdir_separator \
20978exclude_expsyms \
20979include_expsyms \
20980file_list_spec \
20981variables_saved_for_relink \
20982libname_spec \
20983library_names_spec \
20984soname_spec \
20985install_override_mode \
20986finish_eval \
20987old_striplib \
20988striplib \
20989compiler_lib_search_dirs \
20990predep_objects \
20991postdep_objects \
20992predeps \
20993postdeps \
20994compiler_lib_search_path \
20995LD_CXX \
20996reload_flag_CXX \
20997compiler_CXX \
20998lt_prog_compiler_no_builtin_flag_CXX \
20999lt_prog_compiler_pic_CXX \
21000lt_prog_compiler_wl_CXX \
21001lt_prog_compiler_static_CXX \
21002lt_cv_prog_compiler_c_o_CXX \
21003export_dynamic_flag_spec_CXX \
21004whole_archive_flag_spec_CXX \
21005compiler_needs_object_CXX \
21006with_gnu_ld_CXX \
21007allow_undefined_flag_CXX \
21008no_undefined_flag_CXX \
21009hardcode_libdir_flag_spec_CXX \
21010hardcode_libdir_flag_spec_ld_CXX \
21011hardcode_libdir_separator_CXX \
21012exclude_expsyms_CXX \
21013include_expsyms_CXX \
21014file_list_spec_CXX \
21015compiler_lib_search_dirs_CXX \
21016predep_objects_CXX \
21017postdep_objects_CXX \
21018predeps_CXX \
21019postdeps_CXX \
21020compiler_lib_search_path_CXX; do
21021    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21022    *[\\\\\\\`\\"\\\$]*)
21023      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21024      ;;
21025    *)
21026      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21027      ;;
21028    esac
21029done
21030
21031# Double-quote double-evaled strings.
21032for var in reload_cmds \
21033old_postinstall_cmds \
21034old_postuninstall_cmds \
21035old_archive_cmds \
21036extract_expsyms_cmds \
21037old_archive_from_new_cmds \
21038old_archive_from_expsyms_cmds \
21039archive_cmds \
21040archive_expsym_cmds \
21041module_cmds \
21042module_expsym_cmds \
21043export_symbols_cmds \
21044prelink_cmds \
21045postlink_cmds \
21046postinstall_cmds \
21047postuninstall_cmds \
21048finish_cmds \
21049sys_lib_search_path_spec \
21050sys_lib_dlsearch_path_spec \
21051reload_cmds_CXX \
21052old_archive_cmds_CXX \
21053old_archive_from_new_cmds_CXX \
21054old_archive_from_expsyms_cmds_CXX \
21055archive_cmds_CXX \
21056archive_expsym_cmds_CXX \
21057module_cmds_CXX \
21058module_expsym_cmds_CXX \
21059export_symbols_cmds_CXX \
21060prelink_cmds_CXX \
21061postlink_cmds_CXX; do
21062    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21063    *[\\\\\\\`\\"\\\$]*)
21064      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21065      ;;
21066    *)
21067      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21068      ;;
21069    esac
21070done
21071
21072ac_aux_dir='$ac_aux_dir'
21073xsi_shell='$xsi_shell'
21074lt_shell_append='$lt_shell_append'
21075
21076# See if we are running on zsh, and set the options which allow our
21077# commands through without removal of \ escapes INIT.
21078if test -n "\${ZSH_VERSION+set}" ; then
21079   setopt NO_GLOB_SUBST
21080fi
21081
21082
21083    PACKAGE='$PACKAGE'
21084    VERSION='$VERSION'
21085    TIMESTAMP='$TIMESTAMP'
21086    RM='$RM'
21087    ofile='$ofile'
21088
21089
21090
21091
21092
21093
21094_ACEOF
21095
21096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21097
21098# Handling of arguments.
21099for ac_config_target in $ac_config_targets
21100do
21101  case $ac_config_target in
21102    "src/platform.hpp") CONFIG_HEADERS="$CONFIG_HEADERS src/platform.hpp" ;;
21103    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21104    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21105    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21106    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21107    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
21108    "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
21109    "src/libzmq.pc") CONFIG_FILES="$CONFIG_FILES src/libzmq.pc" ;;
21110    "builds/msvc/Makefile") CONFIG_FILES="$CONFIG_FILES builds/msvc/Makefile" ;;
21111    "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
21112    "foreign/openpgm/Makefile") CONFIG_FILES="$CONFIG_FILES foreign/openpgm/Makefile" ;;
21113    "builds/redhat/zeromq.spec") CONFIG_FILES="$CONFIG_FILES builds/redhat/zeromq.spec" ;;
21114
21115  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21116  esac
21117done
21118
21119
21120# If the user did not use the arguments to specify the items to instantiate,
21121# then the envvar interface is used.  Set only those that are not.
21122# We use the long form for the default assignment because of an extremely
21123# bizarre bug on SunOS 4.1.3.
21124if $ac_need_defaults; then
21125  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21126  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21127  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21128fi
21129
21130# Have a temporary directory for convenience.  Make it in the build tree
21131# simply because there is no reason against having it here, and in addition,
21132# creating and moving files from /tmp can sometimes cause problems.
21133# Hook for its removal unless debugging.
21134# Note that there is a small window in which the directory will not be cleaned:
21135# after its creation but before its name has been assigned to `$tmp'.
21136$debug ||
21137{
21138  tmp= ac_tmp=
21139  trap 'exit_status=$?
21140  : "${ac_tmp:=$tmp}"
21141  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21142' 0
21143  trap 'as_fn_exit 1' 1 2 13 15
21144}
21145# Create a (secure) tmp directory for tmp files.
21146
21147{
21148  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21149  test -d "$tmp"
21150}  ||
21151{
21152  tmp=./conf$$-$RANDOM
21153  (umask 077 && mkdir "$tmp")
21154} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21155ac_tmp=$tmp
21156
21157# Set up the scripts for CONFIG_FILES section.
21158# No need to generate them if there are no CONFIG_FILES.
21159# This happens for instance with `./config.status config.h'.
21160if test -n "$CONFIG_FILES"; then
21161
21162
21163ac_cr=`echo X | tr X '\015'`
21164# On cygwin, bash can eat \r inside `` if the user requested igncr.
21165# But we know of no other shell where ac_cr would be empty at this
21166# point, so we can use a bashism as a fallback.
21167if test "x$ac_cr" = x; then
21168  eval ac_cr=\$\'\\r\'
21169fi
21170ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21171if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21172  ac_cs_awk_cr='\\r'
21173else
21174  ac_cs_awk_cr=$ac_cr
21175fi
21176
21177echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21178_ACEOF
21179
21180
21181{
21182  echo "cat >conf$$subs.awk <<_ACEOF" &&
21183  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21184  echo "_ACEOF"
21185} >conf$$subs.sh ||
21186  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21187ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21188ac_delim='%!_!# '
21189for ac_last_try in false false false false false :; do
21190  . ./conf$$subs.sh ||
21191    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21192
21193  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21194  if test $ac_delim_n = $ac_delim_num; then
21195    break
21196  elif $ac_last_try; then
21197    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21198  else
21199    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21200  fi
21201done
21202rm -f conf$$subs.sh
21203
21204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21205cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21206_ACEOF
21207sed -n '
21208h
21209s/^/S["/; s/!.*/"]=/
21210p
21211g
21212s/^[^!]*!//
21213:repl
21214t repl
21215s/'"$ac_delim"'$//
21216t delim
21217:nl
21218h
21219s/\(.\{148\}\)..*/\1/
21220t more1
21221s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21222p
21223n
21224b repl
21225:more1
21226s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21227p
21228g
21229s/.\{148\}//
21230t nl
21231:delim
21232h
21233s/\(.\{148\}\)..*/\1/
21234t more2
21235s/["\\]/\\&/g; s/^/"/; s/$/"/
21236p
21237b
21238:more2
21239s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21240p
21241g
21242s/.\{148\}//
21243t delim
21244' <conf$$subs.awk | sed '
21245/^[^""]/{
21246  N
21247  s/\n//
21248}
21249' >>$CONFIG_STATUS || ac_write_fail=1
21250rm -f conf$$subs.awk
21251cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21252_ACAWK
21253cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21254  for (key in S) S_is_set[key] = 1
21255  FS = ""
21256
21257}
21258{
21259  line = $ 0
21260  nfields = split(line, field, "@")
21261  substed = 0
21262  len = length(field[1])
21263  for (i = 2; i < nfields; i++) {
21264    key = field[i]
21265    keylen = length(key)
21266    if (S_is_set[key]) {
21267      value = S[key]
21268      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21269      len += length(value) + length(field[++i])
21270      substed = 1
21271    } else
21272      len += 1 + keylen
21273  }
21274
21275  print line
21276}
21277
21278_ACAWK
21279_ACEOF
21280cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21281if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21282  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21283else
21284  cat
21285fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21286  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21287_ACEOF
21288
21289# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21290# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21291# trailing colons and then remove the whole line if VPATH becomes empty
21292# (actually we leave an empty line to preserve line numbers).
21293if test "x$srcdir" = x.; then
21294  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
21295h
21296s///
21297s/^/:/
21298s/[	 ]*$/:/
21299s/:\$(srcdir):/:/g
21300s/:\${srcdir}:/:/g
21301s/:@srcdir@:/:/g
21302s/^:*//
21303s/:*$//
21304x
21305s/\(=[	 ]*\).*/\1/
21306G
21307s/\n//
21308s/^[^=]*=[	 ]*$//
21309}'
21310fi
21311
21312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21313fi # test -n "$CONFIG_FILES"
21314
21315# Set up the scripts for CONFIG_HEADERS section.
21316# No need to generate them if there are no CONFIG_HEADERS.
21317# This happens for instance with `./config.status Makefile'.
21318if test -n "$CONFIG_HEADERS"; then
21319cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21320BEGIN {
21321_ACEOF
21322
21323# Transform confdefs.h into an awk script `defines.awk', embedded as
21324# here-document in config.status, that substitutes the proper values into
21325# config.h.in to produce config.h.
21326
21327# Create a delimiter string that does not exist in confdefs.h, to ease
21328# handling of long lines.
21329ac_delim='%!_!# '
21330for ac_last_try in false false :; do
21331  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21332  if test -z "$ac_tt"; then
21333    break
21334  elif $ac_last_try; then
21335    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21336  else
21337    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21338  fi
21339done
21340
21341# For the awk script, D is an array of macro values keyed by name,
21342# likewise P contains macro parameters if any.  Preserve backslash
21343# newline sequences.
21344
21345ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21346sed -n '
21347s/.\{148\}/&'"$ac_delim"'/g
21348t rset
21349:rset
21350s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
21351t def
21352d
21353:def
21354s/\\$//
21355t bsnl
21356s/["\\]/\\&/g
21357s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21358D["\1"]=" \3"/p
21359s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
21360d
21361:bsnl
21362s/["\\]/\\&/g
21363s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
21364D["\1"]=" \3\\\\\\n"\\/p
21365t cont
21366s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21367t cont
21368d
21369:cont
21370n
21371s/.\{148\}/&'"$ac_delim"'/g
21372t clear
21373:clear
21374s/\\$//
21375t bsnlc
21376s/["\\]/\\&/g; s/^/"/; s/$/"/p
21377d
21378:bsnlc
21379s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21380b cont
21381' <confdefs.h | sed '
21382s/'"$ac_delim"'/"\\\
21383"/g' >>$CONFIG_STATUS || ac_write_fail=1
21384
21385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21386  for (key in D) D_is_set[key] = 1
21387  FS = ""
21388}
21389/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21390  line = \$ 0
21391  split(line, arg, " ")
21392  if (arg[1] == "#") {
21393    defundef = arg[2]
21394    mac1 = arg[3]
21395  } else {
21396    defundef = substr(arg[1], 2)
21397    mac1 = arg[2]
21398  }
21399  split(mac1, mac2, "(") #)
21400  macro = mac2[1]
21401  prefix = substr(line, 1, index(line, defundef) - 1)
21402  if (D_is_set[macro]) {
21403    # Preserve the white space surrounding the "#".
21404    print prefix "define", macro P[macro] D[macro]
21405    next
21406  } else {
21407    # Replace #undef with comments.  This is necessary, for example,
21408    # in the case of _POSIX_SOURCE, which is predefined and required
21409    # on some systems where configure will not decide to define it.
21410    if (defundef == "undef") {
21411      print "/*", prefix defundef, macro, "*/"
21412      next
21413    }
21414  }
21415}
21416{ print }
21417_ACAWK
21418_ACEOF
21419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21420  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21421fi # test -n "$CONFIG_HEADERS"
21422
21423
21424eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
21425shift
21426for ac_tag
21427do
21428  case $ac_tag in
21429  :[FHLC]) ac_mode=$ac_tag; continue;;
21430  esac
21431  case $ac_mode$ac_tag in
21432  :[FHL]*:*);;
21433  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21434  :[FH]-) ac_tag=-:-;;
21435  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21436  esac
21437  ac_save_IFS=$IFS
21438  IFS=:
21439  set x $ac_tag
21440  IFS=$ac_save_IFS
21441  shift
21442  ac_file=$1
21443  shift
21444
21445  case $ac_mode in
21446  :L) ac_source=$1;;
21447  :[FH])
21448    ac_file_inputs=
21449    for ac_f
21450    do
21451      case $ac_f in
21452      -) ac_f="$ac_tmp/stdin";;
21453      *) # Look for the file first in the build tree, then in the source tree
21454	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
21455	 # because $ac_f cannot contain `:'.
21456	 test -f "$ac_f" ||
21457	   case $ac_f in
21458	   [\\/$]*) false;;
21459	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21460	   esac ||
21461	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21462      esac
21463      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21464      as_fn_append ac_file_inputs " '$ac_f'"
21465    done
21466
21467    # Let's still pretend it is `configure' which instantiates (i.e., don't
21468    # use $as_me), people would be surprised to read:
21469    #    /* config.h.  Generated by config.status.  */
21470    configure_input='Generated from '`
21471	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21472	`' by configure.'
21473    if test x"$ac_file" != x-; then
21474      configure_input="$ac_file.  $configure_input"
21475      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21476$as_echo "$as_me: creating $ac_file" >&6;}
21477    fi
21478    # Neutralize special characters interpreted by sed in replacement strings.
21479    case $configure_input in #(
21480    *\&* | *\|* | *\\* )
21481       ac_sed_conf_input=`$as_echo "$configure_input" |
21482       sed 's/[\\\\&|]/\\\\&/g'`;; #(
21483    *) ac_sed_conf_input=$configure_input;;
21484    esac
21485
21486    case $ac_tag in
21487    *:-:* | *:-) cat >"$ac_tmp/stdin" \
21488      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21489    esac
21490    ;;
21491  esac
21492
21493  ac_dir=`$as_dirname -- "$ac_file" ||
21494$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21495	 X"$ac_file" : 'X\(//\)[^/]' \| \
21496	 X"$ac_file" : 'X\(//\)$' \| \
21497	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21498$as_echo X"$ac_file" |
21499    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21500	    s//\1/
21501	    q
21502	  }
21503	  /^X\(\/\/\)[^/].*/{
21504	    s//\1/
21505	    q
21506	  }
21507	  /^X\(\/\/\)$/{
21508	    s//\1/
21509	    q
21510	  }
21511	  /^X\(\/\).*/{
21512	    s//\1/
21513	    q
21514	  }
21515	  s/.*/./; q'`
21516  as_dir="$ac_dir"; as_fn_mkdir_p
21517  ac_builddir=.
21518
21519case "$ac_dir" in
21520.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21521*)
21522  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21523  # A ".." for each directory in $ac_dir_suffix.
21524  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21525  case $ac_top_builddir_sub in
21526  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21527  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21528  esac ;;
21529esac
21530ac_abs_top_builddir=$ac_pwd
21531ac_abs_builddir=$ac_pwd$ac_dir_suffix
21532# for backward compatibility:
21533ac_top_builddir=$ac_top_build_prefix
21534
21535case $srcdir in
21536  .)  # We are building in place.
21537    ac_srcdir=.
21538    ac_top_srcdir=$ac_top_builddir_sub
21539    ac_abs_top_srcdir=$ac_pwd ;;
21540  [\\/]* | ?:[\\/]* )  # Absolute name.
21541    ac_srcdir=$srcdir$ac_dir_suffix;
21542    ac_top_srcdir=$srcdir
21543    ac_abs_top_srcdir=$srcdir ;;
21544  *) # Relative name.
21545    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21546    ac_top_srcdir=$ac_top_build_prefix$srcdir
21547    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21548esac
21549ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21550
21551
21552  case $ac_mode in
21553  :F)
21554  #
21555  # CONFIG_FILE
21556  #
21557
21558  case $INSTALL in
21559  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21560  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21561  esac
21562  ac_MKDIR_P=$MKDIR_P
21563  case $MKDIR_P in
21564  [\\/$]* | ?:[\\/]* ) ;;
21565  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21566  esac
21567_ACEOF
21568
21569cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21570# If the template does not know about datarootdir, expand it.
21571# FIXME: This hack should be removed a few years after 2.60.
21572ac_datarootdir_hack=; ac_datarootdir_seen=
21573ac_sed_dataroot='
21574/datarootdir/ {
21575  p
21576  q
21577}
21578/@datadir@/p
21579/@docdir@/p
21580/@infodir@/p
21581/@localedir@/p
21582/@mandir@/p'
21583case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21584*datarootdir*) ac_datarootdir_seen=yes;;
21585*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21586  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21587$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21588_ACEOF
21589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21590  ac_datarootdir_hack='
21591  s&@datadir@&$datadir&g
21592  s&@docdir@&$docdir&g
21593  s&@infodir@&$infodir&g
21594  s&@localedir@&$localedir&g
21595  s&@mandir@&$mandir&g
21596  s&\\\${datarootdir}&$datarootdir&g' ;;
21597esac
21598_ACEOF
21599
21600# Neutralize VPATH when `$srcdir' = `.'.
21601# Shell code in configure.ac might set extrasub.
21602# FIXME: do we really want to maintain this feature?
21603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21604ac_sed_extra="$ac_vpsub
21605$extrasub
21606_ACEOF
21607cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21608:t
21609/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21610s|@configure_input@|$ac_sed_conf_input|;t t
21611s&@top_builddir@&$ac_top_builddir_sub&;t t
21612s&@top_build_prefix@&$ac_top_build_prefix&;t t
21613s&@srcdir@&$ac_srcdir&;t t
21614s&@abs_srcdir@&$ac_abs_srcdir&;t t
21615s&@top_srcdir@&$ac_top_srcdir&;t t
21616s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21617s&@builddir@&$ac_builddir&;t t
21618s&@abs_builddir@&$ac_abs_builddir&;t t
21619s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21620s&@INSTALL@&$ac_INSTALL&;t t
21621s&@MKDIR_P@&$ac_MKDIR_P&;t t
21622$ac_datarootdir_hack
21623"
21624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21625  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21626
21627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21628  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21629  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
21630      "$ac_tmp/out"`; test -z "$ac_out"; } &&
21631  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21632which seems to be undefined.  Please make sure it is defined" >&5
21633$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21634which seems to be undefined.  Please make sure it is defined" >&2;}
21635
21636  rm -f "$ac_tmp/stdin"
21637  case $ac_file in
21638  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21639  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21640  esac \
21641  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21642 ;;
21643  :H)
21644  #
21645  # CONFIG_HEADER
21646  #
21647  if test x"$ac_file" != x-; then
21648    {
21649      $as_echo "/* $configure_input  */" \
21650      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21651    } >"$ac_tmp/config.h" \
21652      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21653    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21654      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21655$as_echo "$as_me: $ac_file is unchanged" >&6;}
21656    else
21657      rm -f "$ac_file"
21658      mv "$ac_tmp/config.h" "$ac_file" \
21659	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
21660    fi
21661  else
21662    $as_echo "/* $configure_input  */" \
21663      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21664      || as_fn_error $? "could not create -" "$LINENO" 5
21665  fi
21666# Compute "$ac_file"'s index in $config_headers.
21667_am_arg="$ac_file"
21668_am_stamp_count=1
21669for _am_header in $config_headers :; do
21670  case $_am_header in
21671    $_am_arg | $_am_arg:* )
21672      break ;;
21673    * )
21674      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21675  esac
21676done
21677echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21678$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21679	 X"$_am_arg" : 'X\(//\)[^/]' \| \
21680	 X"$_am_arg" : 'X\(//\)$' \| \
21681	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21682$as_echo X"$_am_arg" |
21683    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21684	    s//\1/
21685	    q
21686	  }
21687	  /^X\(\/\/\)[^/].*/{
21688	    s//\1/
21689	    q
21690	  }
21691	  /^X\(\/\/\)$/{
21692	    s//\1/
21693	    q
21694	  }
21695	  /^X\(\/\).*/{
21696	    s//\1/
21697	    q
21698	  }
21699	  s/.*/./; q'`/stamp-h$_am_stamp_count
21700 ;;
21701
21702  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21703$as_echo "$as_me: executing $ac_file commands" >&6;}
21704 ;;
21705  esac
21706
21707
21708  case $ac_file$ac_mode in
21709    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21710  # Autoconf 2.62 quotes --file arguments for eval, but not when files
21711  # are listed without --file.  Let's play safe and only enable the eval
21712  # if we detect the quoting.
21713  case $CONFIG_FILES in
21714  *\'*) eval set x "$CONFIG_FILES" ;;
21715  *)   set x $CONFIG_FILES ;;
21716  esac
21717  shift
21718  for mf
21719  do
21720    # Strip MF so we end up with the name of the file.
21721    mf=`echo "$mf" | sed -e 's/:.*$//'`
21722    # Check whether this is an Automake generated Makefile or not.
21723    # We used to match only the files named `Makefile.in', but
21724    # some people rename them; so instead we look at the file content.
21725    # Grep'ing the first line is not enough: some people post-process
21726    # each Makefile.in and add a new line on top of each file to say so.
21727    # Grep'ing the whole file is not good either: AIX grep has a line
21728    # limit of 2048, but all sed's we know have understand at least 4000.
21729    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21730      dirpart=`$as_dirname -- "$mf" ||
21731$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21732	 X"$mf" : 'X\(//\)[^/]' \| \
21733	 X"$mf" : 'X\(//\)$' \| \
21734	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21735$as_echo X"$mf" |
21736    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21737	    s//\1/
21738	    q
21739	  }
21740	  /^X\(\/\/\)[^/].*/{
21741	    s//\1/
21742	    q
21743	  }
21744	  /^X\(\/\/\)$/{
21745	    s//\1/
21746	    q
21747	  }
21748	  /^X\(\/\).*/{
21749	    s//\1/
21750	    q
21751	  }
21752	  s/.*/./; q'`
21753    else
21754      continue
21755    fi
21756    # Extract the definition of DEPDIR, am__include, and am__quote
21757    # from the Makefile without running `make'.
21758    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21759    test -z "$DEPDIR" && continue
21760    am__include=`sed -n 's/^am__include = //p' < "$mf"`
21761    test -z "am__include" && continue
21762    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21763    # When using ansi2knr, U may be empty or an underscore; expand it
21764    U=`sed -n 's/^U = //p' < "$mf"`
21765    # Find all dependency output files, they are included files with
21766    # $(DEPDIR) in their names.  We invoke sed twice because it is the
21767    # simplest approach to changing $(DEPDIR) to its actual value in the
21768    # expansion.
21769    for file in `sed -n "
21770      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21771	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21772      # Make sure the directory exists.
21773      test -f "$dirpart/$file" && continue
21774      fdir=`$as_dirname -- "$file" ||
21775$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21776	 X"$file" : 'X\(//\)[^/]' \| \
21777	 X"$file" : 'X\(//\)$' \| \
21778	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21779$as_echo X"$file" |
21780    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21781	    s//\1/
21782	    q
21783	  }
21784	  /^X\(\/\/\)[^/].*/{
21785	    s//\1/
21786	    q
21787	  }
21788	  /^X\(\/\/\)$/{
21789	    s//\1/
21790	    q
21791	  }
21792	  /^X\(\/\).*/{
21793	    s//\1/
21794	    q
21795	  }
21796	  s/.*/./; q'`
21797      as_dir=$dirpart/$fdir; as_fn_mkdir_p
21798      # echo "creating $dirpart/$file"
21799      echo '# dummy' > "$dirpart/$file"
21800    done
21801  done
21802}
21803 ;;
21804    "libtool":C)
21805
21806    # See if we are running on zsh, and set the options which allow our
21807    # commands through without removal of \ escapes.
21808    if test -n "${ZSH_VERSION+set}" ; then
21809      setopt NO_GLOB_SUBST
21810    fi
21811
21812    cfgfile="${ofile}T"
21813    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21814    $RM "$cfgfile"
21815
21816    cat <<_LT_EOF >> "$cfgfile"
21817#! $SHELL
21818
21819# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21820# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21821# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21822# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21823#
21824#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21825#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
21826#                 Inc.
21827#   Written by Gordon Matzigkeit, 1996
21828#
21829#   This file is part of GNU Libtool.
21830#
21831# GNU Libtool is free software; you can redistribute it and/or
21832# modify it under the terms of the GNU General Public License as
21833# published by the Free Software Foundation; either version 2 of
21834# the License, or (at your option) any later version.
21835#
21836# As a special exception to the GNU General Public License,
21837# if you distribute this file as part of a program or library that
21838# is built using GNU Libtool, you may include this file under the
21839# same distribution terms that you use for the rest of that program.
21840#
21841# GNU Libtool is distributed in the hope that it will be useful,
21842# but WITHOUT ANY WARRANTY; without even the implied warranty of
21843# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21844# GNU General Public License for more details.
21845#
21846# You should have received a copy of the GNU General Public License
21847# along with GNU Libtool; see the file COPYING.  If not, a copy
21848# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21849# obtained by writing to the Free Software Foundation, Inc.,
21850# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21851
21852
21853# The names of the tagged configurations supported by this script.
21854available_tags="CXX "
21855
21856# ### BEGIN LIBTOOL CONFIG
21857
21858# Whether or not to build static libraries.
21859build_old_libs=$enable_static
21860
21861# Assembler program.
21862AS=$lt_AS
21863
21864# DLL creation program.
21865DLLTOOL=$lt_DLLTOOL
21866
21867# Object dumper program.
21868OBJDUMP=$lt_OBJDUMP
21869
21870# Which release of libtool.m4 was used?
21871macro_version=$macro_version
21872macro_revision=$macro_revision
21873
21874# Whether or not to build shared libraries.
21875build_libtool_libs=$enable_shared
21876
21877# What type of objects to build.
21878pic_mode=$pic_mode
21879
21880# Whether or not to optimize for fast installation.
21881fast_install=$enable_fast_install
21882
21883# Shell to use when invoking shell scripts.
21884SHELL=$lt_SHELL
21885
21886# An echo program that protects backslashes.
21887ECHO=$lt_ECHO
21888
21889# The host system.
21890host_alias=$host_alias
21891host=$host
21892host_os=$host_os
21893
21894# The build system.
21895build_alias=$build_alias
21896build=$build
21897build_os=$build_os
21898
21899# A sed program that does not truncate output.
21900SED=$lt_SED
21901
21902# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21903Xsed="\$SED -e 1s/^X//"
21904
21905# A grep program that handles long lines.
21906GREP=$lt_GREP
21907
21908# An ERE matcher.
21909EGREP=$lt_EGREP
21910
21911# A literal string matcher.
21912FGREP=$lt_FGREP
21913
21914# A BSD- or MS-compatible name lister.
21915NM=$lt_NM
21916
21917# Whether we need soft or hard links.
21918LN_S=$lt_LN_S
21919
21920# What is the maximum length of a command?
21921max_cmd_len=$max_cmd_len
21922
21923# Object file suffix (normally "o").
21924objext=$ac_objext
21925
21926# Executable file suffix (normally "").
21927exeext=$exeext
21928
21929# whether the shell understands "unset".
21930lt_unset=$lt_unset
21931
21932# turn spaces into newlines.
21933SP2NL=$lt_lt_SP2NL
21934
21935# turn newlines into spaces.
21936NL2SP=$lt_lt_NL2SP
21937
21938# convert \$build file names to \$host format.
21939to_host_file_cmd=$lt_cv_to_host_file_cmd
21940
21941# convert \$build files to toolchain format.
21942to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21943
21944# Method to check whether dependent libraries are shared objects.
21945deplibs_check_method=$lt_deplibs_check_method
21946
21947# Command to use when deplibs_check_method = "file_magic".
21948file_magic_cmd=$lt_file_magic_cmd
21949
21950# How to find potential files when deplibs_check_method = "file_magic".
21951file_magic_glob=$lt_file_magic_glob
21952
21953# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21954want_nocaseglob=$lt_want_nocaseglob
21955
21956# Command to associate shared and link libraries.
21957sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21958
21959# The archiver.
21960AR=$lt_AR
21961
21962# Flags to create an archive.
21963AR_FLAGS=$lt_AR_FLAGS
21964
21965# How to feed a file listing to the archiver.
21966archiver_list_spec=$lt_archiver_list_spec
21967
21968# A symbol stripping program.
21969STRIP=$lt_STRIP
21970
21971# Commands used to install an old-style archive.
21972RANLIB=$lt_RANLIB
21973old_postinstall_cmds=$lt_old_postinstall_cmds
21974old_postuninstall_cmds=$lt_old_postuninstall_cmds
21975
21976# Whether to use a lock for old archive extraction.
21977lock_old_archive_extraction=$lock_old_archive_extraction
21978
21979# A C compiler.
21980LTCC=$lt_CC
21981
21982# LTCC compiler flags.
21983LTCFLAGS=$lt_CFLAGS
21984
21985# Take the output of nm and produce a listing of raw symbols and C names.
21986global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21987
21988# Transform the output of nm in a proper C declaration.
21989global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21990
21991# Transform the output of nm in a C name address pair.
21992global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21993
21994# Transform the output of nm in a C name address pair when lib prefix is needed.
21995global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21996
21997# Specify filename containing input files for \$NM.
21998nm_file_list_spec=$lt_nm_file_list_spec
21999
22000# The root where to search for dependent libraries,and in which our libraries should be installed.
22001lt_sysroot=$lt_sysroot
22002
22003# The name of the directory that contains temporary libtool files.
22004objdir=$objdir
22005
22006# Used to examine libraries when file_magic_cmd begins with "file".
22007MAGIC_CMD=$MAGIC_CMD
22008
22009# Must we lock files when doing compilation?
22010need_locks=$lt_need_locks
22011
22012# Manifest tool.
22013MANIFEST_TOOL=$lt_MANIFEST_TOOL
22014
22015# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22016DSYMUTIL=$lt_DSYMUTIL
22017
22018# Tool to change global to local symbols on Mac OS X.
22019NMEDIT=$lt_NMEDIT
22020
22021# Tool to manipulate fat objects and archives on Mac OS X.
22022LIPO=$lt_LIPO
22023
22024# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22025OTOOL=$lt_OTOOL
22026
22027# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22028OTOOL64=$lt_OTOOL64
22029
22030# Old archive suffix (normally "a").
22031libext=$libext
22032
22033# Shared library suffix (normally ".so").
22034shrext_cmds=$lt_shrext_cmds
22035
22036# The commands to extract the exported symbol list from a shared archive.
22037extract_expsyms_cmds=$lt_extract_expsyms_cmds
22038
22039# Variables whose values should be saved in libtool wrapper scripts and
22040# restored at link time.
22041variables_saved_for_relink=$lt_variables_saved_for_relink
22042
22043# Do we need the "lib" prefix for modules?
22044need_lib_prefix=$need_lib_prefix
22045
22046# Do we need a version for libraries?
22047need_version=$need_version
22048
22049# Library versioning type.
22050version_type=$version_type
22051
22052# Shared library runtime path variable.
22053runpath_var=$runpath_var
22054
22055# Shared library path variable.
22056shlibpath_var=$shlibpath_var
22057
22058# Is shlibpath searched before the hard-coded library search path?
22059shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22060
22061# Format of library name prefix.
22062libname_spec=$lt_libname_spec
22063
22064# List of archive names.  First name is the real one, the rest are links.
22065# The last name is the one that the linker finds with -lNAME
22066library_names_spec=$lt_library_names_spec
22067
22068# The coded name of the library, if different from the real name.
22069soname_spec=$lt_soname_spec
22070
22071# Permission mode override for installation of shared libraries.
22072install_override_mode=$lt_install_override_mode
22073
22074# Command to use after installation of a shared archive.
22075postinstall_cmds=$lt_postinstall_cmds
22076
22077# Command to use after uninstallation of a shared archive.
22078postuninstall_cmds=$lt_postuninstall_cmds
22079
22080# Commands used to finish a libtool library installation in a directory.
22081finish_cmds=$lt_finish_cmds
22082
22083# As "finish_cmds", except a single script fragment to be evaled but
22084# not shown.
22085finish_eval=$lt_finish_eval
22086
22087# Whether we should hardcode library paths into libraries.
22088hardcode_into_libs=$hardcode_into_libs
22089
22090# Compile-time system search path for libraries.
22091sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22092
22093# Run-time system search path for libraries.
22094sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22095
22096# Whether dlopen is supported.
22097dlopen_support=$enable_dlopen
22098
22099# Whether dlopen of programs is supported.
22100dlopen_self=$enable_dlopen_self
22101
22102# Whether dlopen of statically linked programs is supported.
22103dlopen_self_static=$enable_dlopen_self_static
22104
22105# Commands to strip libraries.
22106old_striplib=$lt_old_striplib
22107striplib=$lt_striplib
22108
22109
22110# The linker used to build libraries.
22111LD=$lt_LD
22112
22113# How to create reloadable object files.
22114reload_flag=$lt_reload_flag
22115reload_cmds=$lt_reload_cmds
22116
22117# Commands used to build an old-style archive.
22118old_archive_cmds=$lt_old_archive_cmds
22119
22120# A language specific compiler.
22121CC=$lt_compiler
22122
22123# Is the compiler the GNU compiler?
22124with_gcc=$GCC
22125
22126# Compiler flag to turn off builtin functions.
22127no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22128
22129# Additional compiler flags for building library objects.
22130pic_flag=$lt_lt_prog_compiler_pic
22131
22132# How to pass a linker flag through the compiler.
22133wl=$lt_lt_prog_compiler_wl
22134
22135# Compiler flag to prevent dynamic linking.
22136link_static_flag=$lt_lt_prog_compiler_static
22137
22138# Does compiler simultaneously support -c and -o options?
22139compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22140
22141# Whether or not to add -lc for building shared libraries.
22142build_libtool_need_lc=$archive_cmds_need_lc
22143
22144# Whether or not to disallow shared libs when runtime libs are static.
22145allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22146
22147# Compiler flag to allow reflexive dlopens.
22148export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22149
22150# Compiler flag to generate shared objects directly from archives.
22151whole_archive_flag_spec=$lt_whole_archive_flag_spec
22152
22153# Whether the compiler copes with passing no objects directly.
22154compiler_needs_object=$lt_compiler_needs_object
22155
22156# Create an old-style archive from a shared archive.
22157old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22158
22159# Create a temporary old-style archive to link instead of a shared archive.
22160old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22161
22162# Commands used to build a shared archive.
22163archive_cmds=$lt_archive_cmds
22164archive_expsym_cmds=$lt_archive_expsym_cmds
22165
22166# Commands used to build a loadable module if different from building
22167# a shared archive.
22168module_cmds=$lt_module_cmds
22169module_expsym_cmds=$lt_module_expsym_cmds
22170
22171# Whether we are building with GNU ld or not.
22172with_gnu_ld=$lt_with_gnu_ld
22173
22174# Flag that allows shared libraries with undefined symbols to be built.
22175allow_undefined_flag=$lt_allow_undefined_flag
22176
22177# Flag that enforces no undefined symbols.
22178no_undefined_flag=$lt_no_undefined_flag
22179
22180# Flag to hardcode \$libdir into a binary during linking.
22181# This must work even if \$libdir does not exist
22182hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22183
22184# If ld is used when linking, flag to hardcode \$libdir into a binary
22185# during linking.  This must work even if \$libdir does not exist.
22186hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22187
22188# Whether we need a single "-rpath" flag with a separated argument.
22189hardcode_libdir_separator=$lt_hardcode_libdir_separator
22190
22191# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22192# DIR into the resulting binary.
22193hardcode_direct=$hardcode_direct
22194
22195# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22196# DIR into the resulting binary and the resulting library dependency is
22197# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22198# library is relocated.
22199hardcode_direct_absolute=$hardcode_direct_absolute
22200
22201# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22202# into the resulting binary.
22203hardcode_minus_L=$hardcode_minus_L
22204
22205# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22206# into the resulting binary.
22207hardcode_shlibpath_var=$hardcode_shlibpath_var
22208
22209# Set to "yes" if building a shared library automatically hardcodes DIR
22210# into the library and all subsequent libraries and executables linked
22211# against it.
22212hardcode_automatic=$hardcode_automatic
22213
22214# Set to yes if linker adds runtime paths of dependent libraries
22215# to runtime path list.
22216inherit_rpath=$inherit_rpath
22217
22218# Whether libtool must link a program against all its dependency libraries.
22219link_all_deplibs=$link_all_deplibs
22220
22221# Set to "yes" if exported symbols are required.
22222always_export_symbols=$always_export_symbols
22223
22224# The commands to list exported symbols.
22225export_symbols_cmds=$lt_export_symbols_cmds
22226
22227# Symbols that should not be listed in the preloaded symbols.
22228exclude_expsyms=$lt_exclude_expsyms
22229
22230# Symbols that must always be exported.
22231include_expsyms=$lt_include_expsyms
22232
22233# Commands necessary for linking programs (against libraries) with templates.
22234prelink_cmds=$lt_prelink_cmds
22235
22236# Commands necessary for finishing linking programs.
22237postlink_cmds=$lt_postlink_cmds
22238
22239# Specify filename containing input files.
22240file_list_spec=$lt_file_list_spec
22241
22242# How to hardcode a shared library path into an executable.
22243hardcode_action=$hardcode_action
22244
22245# The directories searched by this compiler when creating a shared library.
22246compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22247
22248# Dependencies to place before and after the objects being linked to
22249# create a shared library.
22250predep_objects=$lt_predep_objects
22251postdep_objects=$lt_postdep_objects
22252predeps=$lt_predeps
22253postdeps=$lt_postdeps
22254
22255# The library search path used internally by the compiler when linking
22256# a shared library.
22257compiler_lib_search_path=$lt_compiler_lib_search_path
22258
22259# ### END LIBTOOL CONFIG
22260
22261_LT_EOF
22262
22263  case $host_os in
22264  aix3*)
22265    cat <<\_LT_EOF >> "$cfgfile"
22266# AIX sometimes has problems with the GCC collect2 program.  For some
22267# reason, if we set the COLLECT_NAMES environment variable, the problems
22268# vanish in a puff of smoke.
22269if test "X${COLLECT_NAMES+set}" != Xset; then
22270  COLLECT_NAMES=
22271  export COLLECT_NAMES
22272fi
22273_LT_EOF
22274    ;;
22275  esac
22276
22277
22278ltmain="$ac_aux_dir/ltmain.sh"
22279
22280
22281  # We use sed instead of cat because bash on DJGPP gets confused if
22282  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
22283  # text mode, it properly converts lines to CR/LF.  This bash problem
22284  # is reportedly fixed, but why not run on old versions too?
22285  sed '$q' "$ltmain" >> "$cfgfile" \
22286     || (rm -f "$cfgfile"; exit 1)
22287
22288  if test x"$xsi_shell" = xyes; then
22289  sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22290func_dirname ()\
22291{\
22292\    case ${1} in\
22293\      */*) func_dirname_result="${1%/*}${2}" ;;\
22294\      *  ) func_dirname_result="${3}" ;;\
22295\    esac\
22296} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22297  && mv -f "$cfgfile.tmp" "$cfgfile" \
22298    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22299test 0 -eq $? || _lt_function_replace_fail=:
22300
22301
22302  sed -e '/^func_basename ()$/,/^} # func_basename /c\
22303func_basename ()\
22304{\
22305\    func_basename_result="${1##*/}"\
22306} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22307  && mv -f "$cfgfile.tmp" "$cfgfile" \
22308    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22309test 0 -eq $? || _lt_function_replace_fail=:
22310
22311
22312  sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22313func_dirname_and_basename ()\
22314{\
22315\    case ${1} in\
22316\      */*) func_dirname_result="${1%/*}${2}" ;;\
22317\      *  ) func_dirname_result="${3}" ;;\
22318\    esac\
22319\    func_basename_result="${1##*/}"\
22320} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22321  && mv -f "$cfgfile.tmp" "$cfgfile" \
22322    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22323test 0 -eq $? || _lt_function_replace_fail=:
22324
22325
22326  sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22327func_stripname ()\
22328{\
22329\    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22330\    # positional parameters, so assign one to ordinary parameter first.\
22331\    func_stripname_result=${3}\
22332\    func_stripname_result=${func_stripname_result#"${1}"}\
22333\    func_stripname_result=${func_stripname_result%"${2}"}\
22334} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22335  && mv -f "$cfgfile.tmp" "$cfgfile" \
22336    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22337test 0 -eq $? || _lt_function_replace_fail=:
22338
22339
22340  sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22341func_split_long_opt ()\
22342{\
22343\    func_split_long_opt_name=${1%%=*}\
22344\    func_split_long_opt_arg=${1#*=}\
22345} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22346  && mv -f "$cfgfile.tmp" "$cfgfile" \
22347    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22348test 0 -eq $? || _lt_function_replace_fail=:
22349
22350
22351  sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22352func_split_short_opt ()\
22353{\
22354\    func_split_short_opt_arg=${1#??}\
22355\    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22356} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22357  && mv -f "$cfgfile.tmp" "$cfgfile" \
22358    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22359test 0 -eq $? || _lt_function_replace_fail=:
22360
22361
22362  sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22363func_lo2o ()\
22364{\
22365\    case ${1} in\
22366\      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22367\      *)    func_lo2o_result=${1} ;;\
22368\    esac\
22369} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22370  && mv -f "$cfgfile.tmp" "$cfgfile" \
22371    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22372test 0 -eq $? || _lt_function_replace_fail=:
22373
22374
22375  sed -e '/^func_xform ()$/,/^} # func_xform /c\
22376func_xform ()\
22377{\
22378    func_xform_result=${1%.*}.lo\
22379} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22380  && mv -f "$cfgfile.tmp" "$cfgfile" \
22381    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22382test 0 -eq $? || _lt_function_replace_fail=:
22383
22384
22385  sed -e '/^func_arith ()$/,/^} # func_arith /c\
22386func_arith ()\
22387{\
22388    func_arith_result=$(( $* ))\
22389} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22390  && mv -f "$cfgfile.tmp" "$cfgfile" \
22391    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22392test 0 -eq $? || _lt_function_replace_fail=:
22393
22394
22395  sed -e '/^func_len ()$/,/^} # func_len /c\
22396func_len ()\
22397{\
22398    func_len_result=${#1}\
22399} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22400  && mv -f "$cfgfile.tmp" "$cfgfile" \
22401    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22402test 0 -eq $? || _lt_function_replace_fail=:
22403
22404fi
22405
22406if test x"$lt_shell_append" = xyes; then
22407  sed -e '/^func_append ()$/,/^} # func_append /c\
22408func_append ()\
22409{\
22410    eval "${1}+=\\${2}"\
22411} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22412  && mv -f "$cfgfile.tmp" "$cfgfile" \
22413    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22414test 0 -eq $? || _lt_function_replace_fail=:
22415
22416
22417  sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22418func_append_quoted ()\
22419{\
22420\    func_quote_for_eval "${2}"\
22421\    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22422} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22423  && mv -f "$cfgfile.tmp" "$cfgfile" \
22424    || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22425test 0 -eq $? || _lt_function_replace_fail=:
22426
22427
22428  # Save a `func_append' function call where possible by direct use of '+='
22429  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22430    && mv -f "$cfgfile.tmp" "$cfgfile" \
22431      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22432  test 0 -eq $? || _lt_function_replace_fail=:
22433else
22434  # Save a `func_append' function call even when '+=' is not available
22435  sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22436    && mv -f "$cfgfile.tmp" "$cfgfile" \
22437      || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22438  test 0 -eq $? || _lt_function_replace_fail=:
22439fi
22440
22441if test x"$_lt_function_replace_fail" = x":"; then
22442  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22443$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22444fi
22445
22446
22447   mv -f "$cfgfile" "$ofile" ||
22448    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22449  chmod +x "$ofile"
22450
22451
22452    cat <<_LT_EOF >> "$ofile"
22453
22454# ### BEGIN LIBTOOL TAG CONFIG: CXX
22455
22456# The linker used to build libraries.
22457LD=$lt_LD_CXX
22458
22459# How to create reloadable object files.
22460reload_flag=$lt_reload_flag_CXX
22461reload_cmds=$lt_reload_cmds_CXX
22462
22463# Commands used to build an old-style archive.
22464old_archive_cmds=$lt_old_archive_cmds_CXX
22465
22466# A language specific compiler.
22467CC=$lt_compiler_CXX
22468
22469# Is the compiler the GNU compiler?
22470with_gcc=$GCC_CXX
22471
22472# Compiler flag to turn off builtin functions.
22473no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22474
22475# Additional compiler flags for building library objects.
22476pic_flag=$lt_lt_prog_compiler_pic_CXX
22477
22478# How to pass a linker flag through the compiler.
22479wl=$lt_lt_prog_compiler_wl_CXX
22480
22481# Compiler flag to prevent dynamic linking.
22482link_static_flag=$lt_lt_prog_compiler_static_CXX
22483
22484# Does compiler simultaneously support -c and -o options?
22485compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22486
22487# Whether or not to add -lc for building shared libraries.
22488build_libtool_need_lc=$archive_cmds_need_lc_CXX
22489
22490# Whether or not to disallow shared libs when runtime libs are static.
22491allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22492
22493# Compiler flag to allow reflexive dlopens.
22494export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22495
22496# Compiler flag to generate shared objects directly from archives.
22497whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22498
22499# Whether the compiler copes with passing no objects directly.
22500compiler_needs_object=$lt_compiler_needs_object_CXX
22501
22502# Create an old-style archive from a shared archive.
22503old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22504
22505# Create a temporary old-style archive to link instead of a shared archive.
22506old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22507
22508# Commands used to build a shared archive.
22509archive_cmds=$lt_archive_cmds_CXX
22510archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22511
22512# Commands used to build a loadable module if different from building
22513# a shared archive.
22514module_cmds=$lt_module_cmds_CXX
22515module_expsym_cmds=$lt_module_expsym_cmds_CXX
22516
22517# Whether we are building with GNU ld or not.
22518with_gnu_ld=$lt_with_gnu_ld_CXX
22519
22520# Flag that allows shared libraries with undefined symbols to be built.
22521allow_undefined_flag=$lt_allow_undefined_flag_CXX
22522
22523# Flag that enforces no undefined symbols.
22524no_undefined_flag=$lt_no_undefined_flag_CXX
22525
22526# Flag to hardcode \$libdir into a binary during linking.
22527# This must work even if \$libdir does not exist
22528hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22529
22530# If ld is used when linking, flag to hardcode \$libdir into a binary
22531# during linking.  This must work even if \$libdir does not exist.
22532hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22533
22534# Whether we need a single "-rpath" flag with a separated argument.
22535hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22536
22537# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22538# DIR into the resulting binary.
22539hardcode_direct=$hardcode_direct_CXX
22540
22541# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22542# DIR into the resulting binary and the resulting library dependency is
22543# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22544# library is relocated.
22545hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22546
22547# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22548# into the resulting binary.
22549hardcode_minus_L=$hardcode_minus_L_CXX
22550
22551# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22552# into the resulting binary.
22553hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22554
22555# Set to "yes" if building a shared library automatically hardcodes DIR
22556# into the library and all subsequent libraries and executables linked
22557# against it.
22558hardcode_automatic=$hardcode_automatic_CXX
22559
22560# Set to yes if linker adds runtime paths of dependent libraries
22561# to runtime path list.
22562inherit_rpath=$inherit_rpath_CXX
22563
22564# Whether libtool must link a program against all its dependency libraries.
22565link_all_deplibs=$link_all_deplibs_CXX
22566
22567# Set to "yes" if exported symbols are required.
22568always_export_symbols=$always_export_symbols_CXX
22569
22570# The commands to list exported symbols.
22571export_symbols_cmds=$lt_export_symbols_cmds_CXX
22572
22573# Symbols that should not be listed in the preloaded symbols.
22574exclude_expsyms=$lt_exclude_expsyms_CXX
22575
22576# Symbols that must always be exported.
22577include_expsyms=$lt_include_expsyms_CXX
22578
22579# Commands necessary for linking programs (against libraries) with templates.
22580prelink_cmds=$lt_prelink_cmds_CXX
22581
22582# Commands necessary for finishing linking programs.
22583postlink_cmds=$lt_postlink_cmds_CXX
22584
22585# Specify filename containing input files.
22586file_list_spec=$lt_file_list_spec_CXX
22587
22588# How to hardcode a shared library path into an executable.
22589hardcode_action=$hardcode_action_CXX
22590
22591# The directories searched by this compiler when creating a shared library.
22592compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22593
22594# Dependencies to place before and after the objects being linked to
22595# create a shared library.
22596predep_objects=$lt_predep_objects_CXX
22597postdep_objects=$lt_postdep_objects_CXX
22598predeps=$lt_predeps_CXX
22599postdeps=$lt_postdeps_CXX
22600
22601# The library search path used internally by the compiler when linking
22602# a shared library.
22603compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22604
22605# ### END LIBTOOL TAG CONFIG: CXX
22606_LT_EOF
22607
22608 ;;
22609
22610  esac
22611done # for ac_tag
22612
22613
22614as_fn_exit 0
22615_ACEOF
22616ac_clean_files=$ac_clean_files_save
22617
22618test $ac_write_fail = 0 ||
22619  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22620
22621
22622# configure is writing to config.log, and then calls config.status.
22623# config.status does its own redirection, appending to config.log.
22624# Unfortunately, on DOS this fails, as config.log is still kept open
22625# by configure, so config.status won't be able to write to it; its
22626# output is simply discarded.  So we exec the FD to /dev/null,
22627# effectively closing config.log, so it can be properly (re)opened and
22628# appended to by config.status.  When coming back to configure, we
22629# need to make the FD available again.
22630if test "$no_create" != yes; then
22631  ac_cs_success=:
22632  ac_config_status_args=
22633  test "$silent" = yes &&
22634    ac_config_status_args="$ac_config_status_args --quiet"
22635  exec 5>/dev/null
22636  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22637  exec 5>>config.log
22638  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22639  # would make configure fail if this is the last instruction.
22640  $ac_cs_success || as_fn_exit 1
22641fi
22642
22643#
22644# CONFIG_SUBDIRS section.
22645#
22646if test "$no_recursion" != yes; then
22647
22648  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
22649  # so they do not pile up.
22650  ac_sub_configure_args=
22651  ac_prev=
22652  eval "set x $ac_configure_args"
22653  shift
22654  for ac_arg
22655  do
22656    if test -n "$ac_prev"; then
22657      ac_prev=
22658      continue
22659    fi
22660    case $ac_arg in
22661    -cache-file | --cache-file | --cache-fil | --cache-fi \
22662    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22663      ac_prev=cache_file ;;
22664    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22665    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22666    | --c=*)
22667      ;;
22668    --config-cache | -C)
22669      ;;
22670    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22671      ac_prev=srcdir ;;
22672    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22673      ;;
22674    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22675      ac_prev=prefix ;;
22676    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22677      ;;
22678    --disable-option-checking)
22679      ;;
22680    *)
22681      case $ac_arg in
22682      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22683      esac
22684      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
22685    esac
22686  done
22687
22688  # Always prepend --prefix to ensure using the same prefix
22689  # in subdir configurations.
22690  ac_arg="--prefix=$prefix"
22691  case $ac_arg in
22692  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22693  esac
22694  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
22695
22696  # Pass --silent
22697  if test "$silent" = yes; then
22698    ac_sub_configure_args="--silent $ac_sub_configure_args"
22699  fi
22700
22701  # Always prepend --disable-option-checking to silence warnings, since
22702  # different subdirs can have different --enable and --with options.
22703  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
22704
22705  ac_popdir=`pwd`
22706  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22707
22708    # Do not complain, so a configure script can configure whichever
22709    # parts of a large source tree are present.
22710    test -d "$srcdir/$ac_dir" || continue
22711
22712    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22713    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
22714    $as_echo "$ac_msg" >&6
22715    as_dir="$ac_dir"; as_fn_mkdir_p
22716    ac_builddir=.
22717
22718case "$ac_dir" in
22719.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22720*)
22721  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22722  # A ".." for each directory in $ac_dir_suffix.
22723  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22724  case $ac_top_builddir_sub in
22725  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22726  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22727  esac ;;
22728esac
22729ac_abs_top_builddir=$ac_pwd
22730ac_abs_builddir=$ac_pwd$ac_dir_suffix
22731# for backward compatibility:
22732ac_top_builddir=$ac_top_build_prefix
22733
22734case $srcdir in
22735  .)  # We are building in place.
22736    ac_srcdir=.
22737    ac_top_srcdir=$ac_top_builddir_sub
22738    ac_abs_top_srcdir=$ac_pwd ;;
22739  [\\/]* | ?:[\\/]* )  # Absolute name.
22740    ac_srcdir=$srcdir$ac_dir_suffix;
22741    ac_top_srcdir=$srcdir
22742    ac_abs_top_srcdir=$srcdir ;;
22743  *) # Relative name.
22744    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22745    ac_top_srcdir=$ac_top_build_prefix$srcdir
22746    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22747esac
22748ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22749
22750
22751    cd "$ac_dir"
22752
22753    # Check for guested configure; otherwise get Cygnus style configure.
22754    if test -f "$ac_srcdir/configure.gnu"; then
22755      ac_sub_configure=$ac_srcdir/configure.gnu
22756    elif test -f "$ac_srcdir/configure"; then
22757      ac_sub_configure=$ac_srcdir/configure
22758    elif test -f "$ac_srcdir/configure.in"; then
22759      # This should be Cygnus configure.
22760      ac_sub_configure=$ac_aux_dir/configure
22761    else
22762      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
22763$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22764      ac_sub_configure=
22765    fi
22766
22767    # The recursion is here.
22768    if test -n "$ac_sub_configure"; then
22769      # Make the cache file name correct relative to the subdirectory.
22770      case $cache_file in
22771      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22772      *) # Relative name.
22773	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22774      esac
22775
22776      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22777$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22778      # The eval makes quoting arguments work.
22779      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22780	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22781	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
22782    fi
22783
22784    cd "$ac_popdir"
22785  done
22786fi
22787if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22788  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22789$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22790fi
22791
22792