~ubuntu-branches/ubuntu/quantal/libbonobo/quantal-201207170711

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2005-02-18 14:40:51 UTC
  • mto: (3.1.1 etch) (1.1.25 upstream)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20050218144051-fo4h9qh2gim8x3wt
Tags: upstream-2.8.1
ImportĀ upstreamĀ versionĀ 2.8.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by Autoconf 2.52.
 
3
# Generated by GNU Autoconf 2.59.
4
4
#
5
 
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6
 
# Free Software Foundation, Inc.
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
7
6
# This configure script is free software; the Free Software Foundation
8
7
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Find the correct PATH separator.  Usually this is `:', but
11
 
# DJGPP uses `;' like DOS.
12
 
if test "X${PATH_SEPARATOR+set}" != Xset; then
13
 
  UNAME=${UNAME-`uname 2>/dev/null`}
14
 
  case X$UNAME in
15
 
    *-DOS) lt_cv_sys_path_separator=';' ;;
16
 
    *)     lt_cv_sys_path_separator=':' ;;
17
 
  esac
18
 
fi
 
8
## --------------------- ##
 
9
## M4sh Initialization.  ##
 
10
## --------------------- ##
 
11
 
 
12
# Be Bourne compatible
 
13
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
14
  emulate sh
 
15
  NULLCMD=:
 
16
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
17
  # is contrary to our usage.  Disable this feature.
 
18
  alias -g '${1+"$@"}'='"$@"'
 
19
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
20
  set -o posix
 
21
fi
 
22
DUALCASE=1; export DUALCASE # for MKS sh
 
23
 
 
24
# Support unset when possible.
 
25
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
40
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
41
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
65
# Name of the executable.
 
66
as_me=`$as_basename "$0" ||
 
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
68
         X"$0" : 'X\(//\)$' \| \
 
69
         X"$0" : 'X\(/\)$' \| \
 
70
         .     : '\(.\)' 2>/dev/null ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
78
# PATH needs CR, and LINENO needs CR and PATH.
 
79
# Avoid depending upon Character Ranges.
 
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
83
as_cr_digits='0123456789'
 
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
85
 
 
86
# The user is always right.
 
87
if test "${PATH_SEPARATOR+set}" != set; then
 
88
  echo "#! /bin/sh" >conf$$.sh
 
89
  echo  "exit 0"   >>conf$$.sh
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
102
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
103
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
104
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
105
  # Find who we are.  Look in the path if we contain no path at all
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
119
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
120
  # in which case we are not to be found in the path.
 
121
  if test "x$as_myself" = x; then
 
122
    as_myself=$0
 
123
  fi
 
124
  if test ! -f "$as_myself"; then
 
125
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
 
126
   { (exit 1); exit 1; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
141
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
142
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
143
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
144
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
145
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
146
             CONFIG_SHELL=$as_dir/$as_base
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
156
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
157
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
158
  # line-number line before each line; the second 'sed' does the real
 
159
  # work.  The second script uses 'N' to pair each line-number line
 
160
  # with the numbered line, and appends trailing '-' during
 
161
  # substitution so that $LINENO is not a special case at line end.
 
162
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
163
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
164
  sed '=' <$as_myself |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
174
  chmod +x $as_me.lineno ||
 
175
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
176
   { (exit 1); exit 1; }; }
 
177
 
 
178
  # Don't try to exec as it changes $[0], causing all sort of problems
 
179
  # (the dirname of $[0] is not the place where we might find the
 
180
  # original and so on.  Autoconf is especially sensible to this).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >conf$$.file
 
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
203
  # We could just check for DJGPP; but this test a) works b) is more generic
 
204
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
205
  if test -f conf$$.exe; then
 
206
    # Don't use ln at all; we don't have any links
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  test -d ./-p && rmdir ./-p
 
222
  as_mkdir_p=false
 
223
fi
 
224
 
 
225
as_executable_p="test -f"
 
226
 
 
227
# Sed expression to map a string onto a valid CPP name.
 
228
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
229
 
 
230
# Sed expression to map a string onto a valid variable name.
 
231
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
232
 
 
233
 
 
234
# IFS
 
235
# We need space, tab and new line, in precisely that order.
 
236
as_nl='
 
237
'
 
238
IFS="   $as_nl"
 
239
 
 
240
# CDPATH.
 
241
$as_unset CDPATH
 
242
 
 
243
 
19
244
 
20
245
# Check that we are running under the correct shell.
21
246
SHELL=${CONFIG_SHELL-/bin/sh}
34
259
elif test "X$1" = X--fallback-echo; then
35
260
  # Avoid inline document here, it may be left over
36
261
  :
37
 
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
38
263
  # Yippee, $echo works!
39
264
  :
40
265
else
46
271
  # used as fallback echo
47
272
  shift
48
273
  cat <<EOF
49
 
 
 
274
$*
50
275
EOF
51
276
  exit 0
52
277
fi
53
278
 
54
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
55
280
# if CDPATH is set.
56
 
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
281
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
57
282
 
58
283
if test -z "$ECHO"; then
59
284
if test "X${echo_test_string+set}" != Xset; then
80
305
  #
81
306
  # So, first we look for a working echo in the user's PATH.
82
307
 
83
 
  IFS="${IFS=   }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
84
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
85
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90
316
      break
91
317
    fi
92
318
  done
93
 
  IFS="$save_ifs"
 
319
  IFS="$lt_save_ifs"
94
320
 
95
321
  if test "X$echo" = Xecho; then
96
322
    # We didn't find a better echo, so look for alternatives.
162
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163
389
fi
164
390
 
165
 
# Avoid depending upon Character Ranges.
166
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
167
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
168
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
169
 
as_cr_digits='0123456789'
170
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
171
 
 
172
 
# Sed expression to map a string onto a valid variable name.
173
 
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
174
 
 
175
 
# Sed expression to map a string onto a valid CPP name.
176
 
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
177
 
 
178
 
# Be Bourne compatible
179
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
180
 
  emulate sh
181
 
  NULLCMD=:
182
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
183
 
  set -o posix
184
 
fi
185
 
 
186
 
# Name of the executable.
187
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
188
 
 
189
 
if expr a : '\(a\)' >/dev/null 2>&1; then
190
 
  as_expr=expr
191
 
else
192
 
  as_expr=false
193
 
fi
194
 
 
195
 
rm -f conf$$ conf$$.exe conf$$.file
196
 
echo >conf$$.file
197
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
198
 
  # We could just check for DJGPP; but this test a) works b) is more generic
199
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200
 
  if test -f conf$$.exe; then
201
 
    # Don't use ln at all; we don't have any links
202
 
    as_ln_s='cp -p'
203
 
  else
204
 
    as_ln_s='ln -s'
205
 
  fi
206
 
elif ln conf$$.file conf$$ 2>/dev/null; then
207
 
  as_ln_s=ln
208
 
else
209
 
  as_ln_s='cp -p'
210
 
fi
211
 
rm -f conf$$ conf$$.exe conf$$.file
212
 
 
213
 
as_executable_p="test -f"
214
 
 
215
 
# Support unset when possible.
216
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
217
 
  as_unset=unset
218
 
else
219
 
  as_unset=false
220
 
fi
221
 
 
222
 
# NLS nuisances.
223
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
224
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
225
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
226
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
227
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
228
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
229
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
230
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
231
 
 
232
 
# IFS
233
 
# We need space, tab and new line, in precisely that order.
234
 
as_nl='
235
 
'
236
 
IFS="   $as_nl"
237
 
 
238
 
# CDPATH.
239
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
240
397
 
241
398
# Name of the host.
242
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249
406
# Initializations.
250
407
#
251
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
252
410
cross_compiling=no
253
411
subdirs=
254
 
MFLAGS= MAKEFLAGS=
 
412
MFLAGS=
 
413
MAKEFLAGS=
255
414
SHELL=${CONFIG_SHELL-/bin/sh}
256
415
 
257
416
# Maximum number of lines to put in a shell here document.
259
418
# only ac_max_sed_lines should be used.
260
419
: ${ac_max_here_lines=38}
261
420
 
262
 
ac_unique_file="message-of-doom"
 
421
# Identity of this package.
 
422
PACKAGE_NAME=
 
423
PACKAGE_TARNAME=
 
424
PACKAGE_VERSION=
 
425
PACKAGE_STRING=
 
426
PACKAGE_BUGREPORT=
 
427
 
 
428
ac_unique_file="bonobo/bonobo-moniker.h"
263
429
# Factoring default headers for most tests.
264
430
ac_includes_default="\
265
431
#include <stdio.h>
297
463
# include <unistd.h>
298
464
#endif"
299
465
 
 
466
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot BONOBO_MAJOR_VERSION BONOBO_MINOR_VERSION BONOBO_MICRO_VERSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INTLTOOL_DESKTOP_RULE INTLTOOL_DIRECTORY_RULE INTLTOOL_KEYS_RULE INTLTOOL_PROP_RULE INTLTOOL_OAF_RULE INTLTOOL_PONG_RULE INTLTOOL_SERVER_RULE INTLTOOL_SHEET_RULE INTLTOOL_SOUNDLIST_RULE INTLTOOL_UI_RULE INTLTOOL_XAM_RULE INTLTOOL_KBD_RULE INTLTOOL_XML_RULE INTLTOOL_XML_NOMERGE_RULE INTLTOOL_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL INTLTOOL_ICONV INTLTOOL_MSGFMT INTLTOOL_MSGMERGE INTLTOOL_XGETTEXT mkdir_p LIBBONOBO_LT_VERSION_INFO BONOBO_ACTIVATION_LT_VERSION_INFO CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE LEX LEXLIB LEX_OUTPUT_ROOT LFLAGS CPP EGREP LN_S build build_cpu build_vendor build_os host host_cpu host_vendor host_os ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL YACC PATH_TO_XRDB GETTEXT_PACKAGE gnomelocaledir USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS WARN_CFLAGS PKG_CONFIG LIBBONOBO_CFLAGS LIBBONOBO_LIBS SERVER_CFLAGS SERVER_LIBS ORBIT_IDL POPT_LIBS GLIB_GENMARSHAL HTML_DIR ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE PERL_PATH PS_PATH BONOBO_SLAY IF_BSD_PS IF_POSIX_PS LIBOBJS LTLIBOBJS'
 
467
ac_subst_files=''
 
468
 
300
469
# Initialize some variables set by options.
301
470
ac_init_help=
302
471
ac_init_version=false
335
504
infodir='${prefix}/info'
336
505
mandir='${prefix}/man'
337
506
 
338
 
# Identity of this package.
339
 
PACKAGE_NAME=
340
 
PACKAGE_TARNAME=
341
 
PACKAGE_VERSION=
342
 
PACKAGE_STRING=
343
 
PACKAGE_BUGREPORT=
344
 
 
345
507
ac_prev=
346
508
for ac_option
347
509
do
474
636
    with_fp=no ;;
475
637
 
476
638
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477
 
  | --no-cr | --no-c)
 
639
  | --no-cr | --no-c | -n)
478
640
    no_create=yes ;;
479
641
 
480
642
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653
815
  eval ac_val=$`echo $ac_var`
654
816
  case $ac_val in
655
817
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
656
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
818
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
657
819
   { (exit 1); exit 1; }; };;
658
820
  esac
659
821
done
660
822
 
661
823
# Be sure to have absolute paths.
662
824
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
663
 
              localstatedir libdir includedir oldincludedir infodir mandir
 
825
              localstatedir libdir includedir oldincludedir infodir mandir
664
826
do
665
827
  eval ac_val=$`echo $ac_var`
666
828
  case $ac_val in
667
829
    [\\/$]* | ?:[\\/]* ) ;;
668
 
    *)  { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
 
830
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669
831
   { (exit 1); exit 1; }; };;
670
832
  esac
671
833
done
672
834
 
673
835
# There might be people who depend on the old broken behavior: `$host'
674
836
# used to hold the argument of --host etc.
 
837
# FIXME: To remove some day.
675
838
build=$build_alias
676
839
host=$host_alias
677
840
target=$target_alias
678
841
 
679
 
# FIXME: should be removed in autoconf 3.0.
 
842
# FIXME: To remove some day.
680
843
if test "x$host_alias" != x; then
681
844
  if test "x$build_alias" = x; then
682
845
    cross_compiling=maybe
692
855
 
693
856
test "$silent" = yes && exec 6>/dev/null
694
857
 
 
858
 
695
859
# Find the source files, if location was not specified.
696
860
if test -z "$srcdir"; then
697
861
  ac_srcdir_defaulted=yes
698
862
  # Try the directory containing this script, then its parent.
699
 
  ac_prog=$0
700
 
  ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
701
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
863
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
864
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
865
         X"$0" : 'X\(//\)[^/]' \| \
 
866
         X"$0" : 'X\(//\)$' \| \
 
867
         X"$0" : 'X\(/\)' \| \
 
868
         .     : '\(.\)' 2>/dev/null ||
 
869
echo X"$0" |
 
870
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
871
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
872
          /^X\(\/\/\)$/{ s//\1/; q; }
 
873
          /^X\(\/\).*/{ s//\1/; q; }
 
874
          s/.*/./; q'`
702
875
  srcdir=$ac_confdir
703
876
  if test ! -r $srcdir/$ac_unique_file; then
704
877
    srcdir=..
708
881
fi
709
882
if test ! -r $srcdir/$ac_unique_file; then
710
883
  if test "$ac_srcdir_defaulted" = yes; then
711
 
    { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
 
884
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
712
885
   { (exit 1); exit 1; }; }
713
886
  else
714
 
    { echo "$as_me: error: cannot find sources in $srcdir" >&2
 
887
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
715
888
   { (exit 1); exit 1; }; }
716
889
  fi
717
890
fi
 
891
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
892
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
893
   { (exit 1); exit 1; }; }
718
894
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
719
895
ac_env_build_alias_set=${build_alias+set}
720
896
ac_env_build_alias_value=$build_alias
748
924
ac_env_CPP_value=$CPP
749
925
ac_cv_env_CPP_set=${CPP+set}
750
926
ac_cv_env_CPP_value=$CPP
 
927
ac_env_CXX_set=${CXX+set}
 
928
ac_env_CXX_value=$CXX
 
929
ac_cv_env_CXX_set=${CXX+set}
 
930
ac_cv_env_CXX_value=$CXX
 
931
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
932
ac_env_CXXFLAGS_value=$CXXFLAGS
 
933
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
934
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
935
ac_env_CXXCPP_set=${CXXCPP+set}
 
936
ac_env_CXXCPP_value=$CXXCPP
 
937
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
938
ac_cv_env_CXXCPP_value=$CXXCPP
 
939
ac_env_F77_set=${F77+set}
 
940
ac_env_F77_value=$F77
 
941
ac_cv_env_F77_set=${F77+set}
 
942
ac_cv_env_F77_value=$F77
 
943
ac_env_FFLAGS_set=${FFLAGS+set}
 
944
ac_env_FFLAGS_value=$FFLAGS
 
945
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
946
ac_cv_env_FFLAGS_value=$FFLAGS
751
947
 
752
948
#
753
949
# Report the --help message.
755
951
if test "$ac_init_help" = "long"; then
756
952
  # Omit some internal or obsolete options to make the list less imposing.
757
953
  # This message is too long to be a string in the A/UX 3.1 sh.
758
 
  cat <<EOF
 
954
  cat <<_ACEOF
759
955
\`configure' configures this package to adapt to many kinds of systems.
760
956
 
761
957
Usage: $0 [OPTION]... [VAR=VALUE]...
776
972
  -n, --no-create         do not create output files
777
973
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
778
974
 
779
 
EOF
 
975
_ACEOF
780
976
 
781
 
  cat <<EOF
 
977
  cat <<_ACEOF
782
978
Installation directories:
783
979
  --prefix=PREFIX         install architecture-independent files in PREFIX
784
 
                          [$ac_default_prefix]
 
980
                          [$ac_default_prefix]
785
981
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
786
 
                          [PREFIX]
 
982
                          [PREFIX]
787
983
 
788
984
By default, \`make install' will install all the files in
789
985
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
805
1001
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
806
1002
  --infodir=DIR          info documentation [PREFIX/info]
807
1003
  --mandir=DIR           man documentation [PREFIX/man]
808
 
EOF
 
1004
_ACEOF
809
1005
 
810
 
  cat <<\EOF
 
1006
  cat <<\_ACEOF
811
1007
 
812
1008
Program names:
813
1009
  --program-prefix=PREFIX            prepend PREFIX to installed program names
816
1012
 
817
1013
System types:
818
1014
  --build=BUILD     configure for building on BUILD [guessed]
819
 
  --host=HOST       build programs to run on HOST [BUILD]
820
 
EOF
 
1015
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1016
_ACEOF
821
1017
fi
822
1018
 
823
1019
if test -n "$ac_init_help"; then
824
1020
 
825
 
  cat <<\EOF
 
1021
  cat <<\_ACEOF
826
1022
 
827
1023
Optional Features:
828
1024
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
829
1025
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
830
1026
  --enable-maintainer-mode enable make rules and dependencies not useful
831
1027
                          (and sometimes confusing) to the casual installer
832
 
  --enable-shared=PKGS  build shared libraries default=yes
833
 
  --enable-static=PKGS  build static libraries default=yes
834
 
  --enable-fast-install=PKGS  optimize for fast installation default=yes
 
1028
  --disable-dependency-tracking Speeds up one-time builds
 
1029
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1030
  --enable-shared[=PKGS]
 
1031
                          build shared libraries [default=yes]
 
1032
  --enable-static[=PKGS]
 
1033
                          build static libraries [default=yes]
 
1034
  --enable-fast-install[=PKGS]
 
1035
                          optimize for fast installation [default=yes]
835
1036
  --disable-libtool-lock  avoid locking (might break parallel builds)
836
 
  --enable-compile-warnings=no/minimum/yes/maximum/error        Turn on compiler warnings.
 
1037
  --enable-compile-warnings=[no/minimum/yes/maximum/error]
 
1038
                          Turn on compiler warnings
837
1039
  --enable-iso-c          Try to warn if code is not ISO C
838
 
  --enable-gtk-doc  Use gtk-doc to build documentation default=auto
 
1040
  --enable-gtk-doc        use gtk-doc to build documentation default=no
 
1041
  --enable-debug   Enable debugging code default=disabled
 
1042
 
 
1043
  --enable-bonobo-activation-debug=no/yes turn on debugging default=$bonobo_activation_debug_default
 
1044
 
839
1045
 
840
1046
Optional Packages:
841
1047
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842
1048
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843
 
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
844
 
  --with-pic              try to use only PIC/non-PIC objects default=use both
845
 
  --with-html-dir=PATH path to installed docs
 
1049
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1050
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1051
                          both]
 
1052
  --with-tags[=TAGS]
 
1053
                          include additional configurations [automatic]
 
1054
  --with-html-dir=PATH    path to installed docs
846
1055
 
847
1056
Some influential environment variables:
848
1057
  CC          C compiler command
852
1061
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
853
1062
              headers in a nonstandard directory <include dir>
854
1063
  CPP         C preprocessor
 
1064
  CXX         C++ compiler command
 
1065
  CXXFLAGS    C++ compiler flags
 
1066
  CXXCPP      C++ preprocessor
 
1067
  F77         Fortran 77 compiler command
 
1068
  FFLAGS      Fortran 77 compiler flags
855
1069
 
856
1070
Use these variables to override the choices made by `configure' or to help
857
1071
it to find libraries and programs with nonstandard names/locations.
858
1072
 
859
 
EOF
 
1073
_ACEOF
860
1074
fi
861
1075
 
862
1076
if test "$ac_init_help" = "recursive"; then
863
1077
  # If there are subdirs, report their specific --help.
864
1078
  ac_popdir=`pwd`
865
 
  for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
866
 
    cd $ac_subdir
867
 
    # A "../" for each directory in /$ac_subdir.
868
 
    ac_dots=`echo $ac_subdir |
869
 
             sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
870
 
 
871
 
    case $srcdir in
872
 
    .) # No --srcdir option.  We are building in place.
873
 
      ac_sub_srcdir=$srcdir ;;
874
 
    [\\/]* | ?:[\\/]* ) # Absolute path.
875
 
      ac_sub_srcdir=$srcdir/$ac_subdir ;;
876
 
    *) # Relative path.
877
 
      ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
878
 
    esac
879
 
 
 
1079
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1080
    test -d $ac_dir || continue
 
1081
    ac_builddir=.
 
1082
 
 
1083
if test "$ac_dir" != .; then
 
1084
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1085
  # A "../" for each directory in $ac_dir_suffix.
 
1086
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1087
else
 
1088
  ac_dir_suffix= ac_top_builddir=
 
1089
fi
 
1090
 
 
1091
case $srcdir in
 
1092
  .)  # No --srcdir option.  We are building in place.
 
1093
    ac_srcdir=.
 
1094
    if test -z "$ac_top_builddir"; then
 
1095
       ac_top_srcdir=.
 
1096
    else
 
1097
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1098
    fi ;;
 
1099
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1100
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1101
    ac_top_srcdir=$srcdir ;;
 
1102
  *) # Relative path.
 
1103
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1104
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1105
esac
 
1106
 
 
1107
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1108
# the directories may not exist.
 
1109
case `pwd` in
 
1110
.) ac_abs_builddir="$ac_dir";;
 
1111
*)
 
1112
  case "$ac_dir" in
 
1113
  .) ac_abs_builddir=`pwd`;;
 
1114
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1115
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1116
  esac;;
 
1117
esac
 
1118
case $ac_abs_builddir in
 
1119
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1120
*)
 
1121
  case ${ac_top_builddir}. in
 
1122
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1123
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1124
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1125
  esac;;
 
1126
esac
 
1127
case $ac_abs_builddir in
 
1128
.) ac_abs_srcdir=$ac_srcdir;;
 
1129
*)
 
1130
  case $ac_srcdir in
 
1131
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1132
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1133
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1134
  esac;;
 
1135
esac
 
1136
case $ac_abs_builddir in
 
1137
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1138
*)
 
1139
  case $ac_top_srcdir in
 
1140
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1141
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1142
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1143
  esac;;
 
1144
esac
 
1145
 
 
1146
    cd $ac_dir
880
1147
    # Check for guested configure; otherwise get Cygnus style configure.
881
 
    if test -f $ac_sub_srcdir/configure.gnu; then
882
 
      echo
883
 
      $SHELL $ac_sub_srcdir/configure.gnu  --help=recursive
884
 
    elif test -f $ac_sub_srcdir/configure; then
885
 
      echo
886
 
      $SHELL $ac_sub_srcdir/configure  --help=recursive
887
 
    elif test -f $ac_sub_srcdir/configure.ac ||
888
 
           test -f $ac_sub_srcdir/configure.in; then
 
1148
    if test -f $ac_srcdir/configure.gnu; then
 
1149
      echo
 
1150
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1151
    elif test -f $ac_srcdir/configure; then
 
1152
      echo
 
1153
      $SHELL $ac_srcdir/configure  --help=recursive
 
1154
    elif test -f $ac_srcdir/configure.ac ||
 
1155
           test -f $ac_srcdir/configure.in; then
889
1156
      echo
890
1157
      $ac_configure --help
891
1158
    else
892
 
      echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
 
1159
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
893
1160
    fi
894
1161
    cd $ac_popdir
895
1162
  done
897
1164
 
898
1165
test -n "$ac_init_help" && exit 0
899
1166
if $ac_init_version; then
900
 
  cat <<\EOF
 
1167
  cat <<\_ACEOF
901
1168
 
902
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
903
 
Free Software Foundation, Inc.
 
1169
Copyright (C) 2003 Free Software Foundation, Inc.
904
1170
This configure script is free software; the Free Software Foundation
905
1171
gives unlimited permission to copy, distribute and modify it.
906
 
EOF
 
1172
_ACEOF
907
1173
  exit 0
908
1174
fi
909
1175
exec 5>config.log
910
 
cat >&5 <<EOF
 
1176
cat >&5 <<_ACEOF
911
1177
This file contains any messages produced by compilers while
912
1178
running configure, to aid debugging if configure makes a mistake.
913
1179
 
914
1180
It was created by $as_me, which was
915
 
generated by GNU Autoconf 2.52.  Invocation command line was
 
1181
generated by GNU Autoconf 2.59.  Invocation command line was
916
1182
 
917
1183
  $ $0 $@
918
1184
 
919
 
EOF
 
1185
_ACEOF
920
1186
{
921
1187
cat <<_ASUNAME
922
 
## ---------- ##
923
 
## Platform.  ##
924
 
## ---------- ##
 
1188
## --------- ##
 
1189
## Platform. ##
 
1190
## --------- ##
925
1191
 
926
1192
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
927
1193
uname -m = `(uname -m) 2>/dev/null || echo unknown`
940
1206
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
941
1207
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
942
1208
 
943
 
PATH = $PATH
944
 
 
945
1209
_ASUNAME
 
1210
 
 
1211
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1212
for as_dir in $PATH
 
1213
do
 
1214
  IFS=$as_save_IFS
 
1215
  test -z "$as_dir" && as_dir=.
 
1216
  echo "PATH: $as_dir"
 
1217
done
 
1218
 
946
1219
} >&5
947
1220
 
948
 
cat >&5 <<EOF
949
 
## ------------ ##
950
 
## Core tests.  ##
951
 
## ------------ ##
952
 
 
953
 
EOF
 
1221
cat >&5 <<_ACEOF
 
1222
 
 
1223
 
 
1224
## ----------- ##
 
1225
## Core tests. ##
 
1226
## ----------- ##
 
1227
 
 
1228
_ACEOF
 
1229
 
954
1230
 
955
1231
# Keep a trace of the command line.
956
1232
# Strip out --no-create and --no-recursion so they do not pile up.
 
1233
# Strip out --silent because we don't want to record it for future runs.
957
1234
# Also quote any args containing shell meta-characters.
 
1235
# Make two passes to allow for proper duplicate-argument suppression.
958
1236
ac_configure_args=
 
1237
ac_configure_args0=
 
1238
ac_configure_args1=
959
1239
ac_sep=
960
 
for ac_arg
 
1240
ac_must_keep_next=false
 
1241
for ac_pass in 1 2
961
1242
do
962
 
  case $ac_arg in
963
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964
 
  | --no-cr | --no-c) ;;
965
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
966
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
967
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
968
 
    ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
969
 
    ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
970
 
    ac_sep=" " ;;
971
 
  *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
972
 
     ac_sep=" " ;;
973
 
  esac
974
 
  # Get rid of the leading space.
 
1243
  for ac_arg
 
1244
  do
 
1245
    case $ac_arg in
 
1246
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1247
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1248
    | -silent | --silent | --silen | --sile | --sil)
 
1249
      continue ;;
 
1250
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1251
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1252
    esac
 
1253
    case $ac_pass in
 
1254
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1255
    2)
 
1256
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1257
      if test $ac_must_keep_next = true; then
 
1258
        ac_must_keep_next=false # Got value, back to normal.
 
1259
      else
 
1260
        case $ac_arg in
 
1261
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1262
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1263
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1264
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1265
            case "$ac_configure_args0 " in
 
1266
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1267
            esac
 
1268
            ;;
 
1269
          -* ) ac_must_keep_next=true ;;
 
1270
        esac
 
1271
      fi
 
1272
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1273
      # Get rid of the leading space.
 
1274
      ac_sep=" "
 
1275
      ;;
 
1276
    esac
 
1277
  done
975
1278
done
 
1279
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1280
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
976
1281
 
977
1282
# When interrupted or exit'd, cleanup temporary files, and complete
978
1283
# config.log.  We remove comments because anyway the quotes in there
979
1284
# would cause problems or look ugly.
 
1285
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1286
# such as our DU 5.0 friend, will then `close' the trap.
980
1287
trap 'exit_status=$?
981
1288
  # Save into config.log some information that might help in debugging.
982
 
  echo >&5
983
 
  echo "## ----------------- ##" >&5
984
 
  echo "## Cache variables.  ##" >&5
985
 
  echo "## ----------------- ##" >&5
986
 
  echo >&5
987
 
  # The following way of writing the cache mishandles newlines in values,
 
1289
  {
 
1290
    echo
 
1291
 
 
1292
    cat <<\_ASBOX
 
1293
## ---------------- ##
 
1294
## Cache variables. ##
 
1295
## ---------------- ##
 
1296
_ASBOX
 
1297
    echo
 
1298
    # The following way of writing the cache mishandles newlines in values,
988
1299
{
989
1300
  (set) 2>&1 |
990
1301
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
991
1302
    *ac_space=\ *)
992
1303
      sed -n \
993
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
994
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1304
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1305
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
995
1306
      ;;
996
1307
    *)
997
1308
      sed -n \
998
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1309
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
999
1310
      ;;
1000
1311
    esac;
1001
 
} >&5
1002
 
  sed "/^$/d" confdefs.h >conftest.log
1003
 
  if test -s conftest.log; then
1004
 
    echo >&5
1005
 
    echo "## ------------ ##" >&5
1006
 
    echo "## confdefs.h.  ##" >&5
1007
 
    echo "## ------------ ##" >&5
1008
 
    echo >&5
1009
 
    cat conftest.log >&5
1010
 
  fi
1011
 
  (echo; echo) >&5
1012
 
  test "$ac_signal" != 0 &&
1013
 
    echo "$as_me: caught signal $ac_signal" >&5
1014
 
  echo "$as_me: exit $exit_status" >&5
1015
 
  rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
 
1312
}
 
1313
    echo
 
1314
 
 
1315
    cat <<\_ASBOX
 
1316
## ----------------- ##
 
1317
## Output variables. ##
 
1318
## ----------------- ##
 
1319
_ASBOX
 
1320
    echo
 
1321
    for ac_var in $ac_subst_vars
 
1322
    do
 
1323
      eval ac_val=$`echo $ac_var`
 
1324
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1325
    done | sort
 
1326
    echo
 
1327
 
 
1328
    if test -n "$ac_subst_files"; then
 
1329
      cat <<\_ASBOX
 
1330
## ------------- ##
 
1331
## Output files. ##
 
1332
## ------------- ##
 
1333
_ASBOX
 
1334
      echo
 
1335
      for ac_var in $ac_subst_files
 
1336
      do
 
1337
        eval ac_val=$`echo $ac_var`
 
1338
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1339
      done | sort
 
1340
      echo
 
1341
    fi
 
1342
 
 
1343
    if test -s confdefs.h; then
 
1344
      cat <<\_ASBOX
 
1345
## ----------- ##
 
1346
## confdefs.h. ##
 
1347
## ----------- ##
 
1348
_ASBOX
 
1349
      echo
 
1350
      sed "/^$/d" confdefs.h | sort
 
1351
      echo
 
1352
    fi
 
1353
    test "$ac_signal" != 0 &&
 
1354
      echo "$as_me: caught signal $ac_signal"
 
1355
    echo "$as_me: exit $exit_status"
 
1356
  } >&5
 
1357
  rm -f core *.core &&
 
1358
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1016
1359
    exit $exit_status
1017
1360
     ' 0
1018
1361
for ac_signal in 1 2 13 15; do
1025
1368
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1026
1369
echo >confdefs.h
1027
1370
 
 
1371
# Predefined preprocessor variables.
 
1372
 
 
1373
cat >>confdefs.h <<_ACEOF
 
1374
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1375
_ACEOF
 
1376
 
 
1377
 
 
1378
cat >>confdefs.h <<_ACEOF
 
1379
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1380
_ACEOF
 
1381
 
 
1382
 
 
1383
cat >>confdefs.h <<_ACEOF
 
1384
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1385
_ACEOF
 
1386
 
 
1387
 
 
1388
cat >>confdefs.h <<_ACEOF
 
1389
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1390
_ACEOF
 
1391
 
 
1392
 
 
1393
cat >>confdefs.h <<_ACEOF
 
1394
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1395
_ACEOF
 
1396
 
 
1397
 
1028
1398
# Let the site file select an alternate cache file if it wants to.
1029
1399
# Prefer explicitly selected file to automatically selected ones.
1030
1400
if test -z "$CONFIG_SITE"; then
1036
1406
fi
1037
1407
for ac_site_file in $CONFIG_SITE; do
1038
1408
  if test -r "$ac_site_file"; then
1039
 
    { echo "$as_me:1039: loading site script $ac_site_file" >&5
 
1409
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1040
1410
echo "$as_me: loading site script $ac_site_file" >&6;}
1041
 
    cat "$ac_site_file" >&5
 
1411
    sed 's/^/| /' "$ac_site_file" >&5
1042
1412
    . "$ac_site_file"
1043
1413
  fi
1044
1414
done
1047
1417
  # Some versions of bash will fail to source /dev/null (special
1048
1418
  # files actually), so we avoid doing that.
1049
1419
  if test -f "$cache_file"; then
1050
 
    { echo "$as_me:1050: loading cache $cache_file" >&5
 
1420
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1051
1421
echo "$as_me: loading cache $cache_file" >&6;}
1052
1422
    case $cache_file in
1053
1423
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1055
1425
    esac
1056
1426
  fi
1057
1427
else
1058
 
  { echo "$as_me:1058: creating cache $cache_file" >&5
 
1428
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1059
1429
echo "$as_me: creating cache $cache_file" >&6;}
1060
1430
  >$cache_file
1061
1431
fi
1064
1434
# value.
1065
1435
ac_cache_corrupted=false
1066
1436
for ac_var in `(set) 2>&1 |
1067
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1437
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1068
1438
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1069
1439
  eval ac_new_set=\$ac_env_${ac_var}_set
1070
1440
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1071
1441
  eval ac_new_val="\$ac_env_${ac_var}_value"
1072
1442
  case $ac_old_set,$ac_new_set in
1073
1443
    set,)
1074
 
      { echo "$as_me:1074: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1444
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1075
1445
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1076
1446
      ac_cache_corrupted=: ;;
1077
1447
    ,set)
1078
 
      { echo "$as_me:1078: error: \`$ac_var' was not set in the previous run" >&5
 
1448
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1079
1449
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1080
1450
      ac_cache_corrupted=: ;;
1081
1451
    ,);;
1082
1452
    *)
1083
1453
      if test "x$ac_old_val" != "x$ac_new_val"; then
1084
 
        { echo "$as_me:1084: error: \`$ac_var' has changed since the previous run:" >&5
 
1454
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1085
1455
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1086
 
        { echo "$as_me:1086:   former value:  $ac_old_val" >&5
 
1456
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1087
1457
echo "$as_me:   former value:  $ac_old_val" >&2;}
1088
 
        { echo "$as_me:1088:   current value: $ac_new_val" >&5
 
1458
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1089
1459
echo "$as_me:   current value: $ac_new_val" >&2;}
1090
 
        ac_cache_corrupted=:
 
1460
        ac_cache_corrupted=:
1091
1461
      fi;;
1092
1462
  esac
1093
 
  # Pass precious variables to config.status.  It doesn't matter if
1094
 
  # we pass some twice (in addition to the command line arguments).
 
1463
  # Pass precious variables to config.status.
1095
1464
  if test "$ac_new_set" = set; then
1096
1465
    case $ac_new_val in
1097
1466
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1098
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"`
1099
 
      ac_configure_args="$ac_configure_args '$ac_arg'"
1100
 
      ;;
1101
 
    *) ac_configure_args="$ac_configure_args $ac_var=$ac_new_val"
1102
 
       ;;
 
1467
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1468
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1469
    esac
 
1470
    case " $ac_configure_args " in
 
1471
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1472
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1103
1473
    esac
1104
1474
  fi
1105
1475
done
1106
1476
if $ac_cache_corrupted; then
1107
 
  { echo "$as_me:1107: error: changes in the environment can compromise the build" >&5
 
1477
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1108
1478
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1109
 
  { { echo "$as_me:1109: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1479
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1110
1480
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1111
1481
   { (exit 1); exit 1; }; }
1112
1482
fi
1117
1487
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1118
1488
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1119
1489
 
1120
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1121
 
  *c*,-n*) ECHO_N= ECHO_C='
1122
 
' ECHO_T='      ' ;;
1123
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1124
 
  *)      ECHO_N= ECHO_C='\c' ECHO_T= ;;
1125
 
esac
1126
 
echo "#! $SHELL" >conftest.sh
1127
 
echo  "exit 0"   >>conftest.sh
1128
 
chmod +x conftest.sh
1129
 
if { (echo "$as_me:1129: PATH=\".;.\"; conftest.sh") >&5
1130
 
  (PATH=".;."; conftest.sh) 2>&5
1131
 
  ac_status=$?
1132
 
  echo "$as_me:1132: \$? = $ac_status" >&5
1133
 
  (exit $ac_status); }; then
1134
 
  ac_path_separator=';'
1135
 
else
1136
 
  ac_path_separator=:
1137
 
fi
1138
 
PATH_SEPARATOR="$ac_path_separator"
1139
 
rm -f conftest.sh
1140
 
 
1141
 
ac_config_headers="$ac_config_headers config.h"
1142
 
 
1143
 
ac_config_commands="$ac_config_commands default-1"
1144
 
 
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
          ac_config_headers="$ac_config_headers config.h"
 
1510
 
 
1511
 
 
1512
BONOBO_MAJOR_VERSION=2
 
1513
BONOBO_MINOR_VERSION=8
 
1514
BONOBO_MICRO_VERSION=1
 
1515
BONOBO_VERSION="$BONOBO_MAJOR_VERSION.$BONOBO_MINOR_VERSION.$BONOBO_MICRO_VERSION"
 
1516
 
 
1517
am__api_version="1.7"
1145
1518
ac_aux_dir=
1146
1519
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1147
1520
  if test -f $ac_dir/install-sh; then
1159
1532
  fi
1160
1533
done
1161
1534
if test -z "$ac_aux_dir"; then
1162
 
  { { echo "$as_me:1162: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1535
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1163
1536
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1164
1537
   { (exit 1); exit 1; }; }
1165
1538
fi
1178
1551
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1179
1552
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1180
1553
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1554
# OS/2's system install, which has a completely different semantic
1181
1555
# ./install, which can be erroneously created by make from ./install.sh.
1182
 
echo "$as_me:1182: checking for a BSD compatible install" >&5
1183
 
echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
 
1556
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1557
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1184
1558
if test -z "$INSTALL"; then
1185
1559
if test "${ac_cv_path_install+set}" = set; then
1186
1560
  echo $ECHO_N "(cached) $ECHO_C" >&6
1187
1561
else
1188
 
    ac_save_IFS=$IFS; IFS=$ac_path_separator
1189
 
  for ac_dir in $PATH; do
1190
 
    IFS=$ac_save_IFS
1191
 
    # Account for people who put trailing slashes in PATH elements.
1192
 
    case $ac_dir/ in
1193
 
    / | ./ | .// | /cC/* \
1194
 
    | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1195
 
    | /usr/ucb/* ) ;;
1196
 
    *)
1197
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
1198
 
      # Don't use installbsd from OSF since it installs stuff as root
1199
 
      # by default.
1200
 
      for ac_prog in ginstall scoinst install; do
1201
 
        if $as_executable_p "$ac_dir/$ac_prog"; then
 
1562
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1563
for as_dir in $PATH
 
1564
do
 
1565
  IFS=$as_save_IFS
 
1566
  test -z "$as_dir" && as_dir=.
 
1567
  # Account for people who put trailing slashes in PATH elements.
 
1568
case $as_dir/ in
 
1569
  ./ | .// | /cC/* | \
 
1570
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1571
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1572
  /usr/ucb/* ) ;;
 
1573
  *)
 
1574
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1575
    # Don't use installbsd from OSF since it installs stuff as root
 
1576
    # by default.
 
1577
    for ac_prog in ginstall scoinst install; do
 
1578
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1579
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1202
1580
          if test $ac_prog = install &&
1203
 
            grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1581
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1204
1582
            # AIX install.  It has an incompatible calling convention.
1205
1583
            :
1206
1584
          elif test $ac_prog = install &&
1207
 
            grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
 
1585
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1208
1586
            # program-specific install script used by HP pwplus--don't use.
1209
1587
            :
1210
1588
          else
1211
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
1212
 
            break 2
 
1589
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1590
            break 3
1213
1591
          fi
1214
1592
        fi
1215
1593
      done
1216
 
      ;;
1217
 
    esac
1218
 
  done
 
1594
    done
 
1595
    ;;
 
1596
esac
 
1597
done
 
1598
 
1219
1599
 
1220
1600
fi
1221
1601
  if test "${ac_cv_path_install+set}" = set; then
1228
1608
    INSTALL=$ac_install_sh
1229
1609
  fi
1230
1610
fi
1231
 
echo "$as_me:1231: result: $INSTALL" >&5
 
1611
echo "$as_me:$LINENO: result: $INSTALL" >&5
1232
1612
echo "${ECHO_T}$INSTALL" >&6
1233
1613
 
1234
1614
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1239
1619
 
1240
1620
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1241
1621
 
1242
 
echo "$as_me:1242: checking whether build environment is sane" >&5
 
1622
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1243
1623
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1244
1624
# Just in case
1245
1625
sleep 1
1246
 
echo timestamp > conftestfile
 
1626
echo timestamp > conftest.file
1247
1627
# Do `set' in a subshell so we don't clobber the current shell's
1248
1628
# arguments.  Must try -L first in case configure is actually a
1249
1629
# symlink; some systems play weird games with the mod time of symlinks
1250
1630
# (eg FreeBSD returns the mod time of the symlink's containing
1251
1631
# directory).
1252
1632
if (
1253
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1633
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1254
1634
   if test "$*" = "X"; then
1255
1635
      # -L didn't work.
1256
 
      set X `ls -t $srcdir/configure conftestfile`
 
1636
      set X `ls -t $srcdir/configure conftest.file`
1257
1637
   fi
1258
 
   if test "$*" != "X $srcdir/configure conftestfile" \
1259
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1638
   rm -f conftest.file
 
1639
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1640
      && test "$*" != "X conftest.file $srcdir/configure"; then
1260
1641
 
1261
1642
      # If neither matched, then we have a broken ls.  This can happen
1262
1643
      # if, for instance, CONFIG_SHELL is bash and it inherits a
1263
1644
      # broken ls alias from the environment.  This has actually
1264
1645
      # happened.  Such a system could not be considered "sane".
1265
 
      { { echo "$as_me:1265: error: ls -t appears to fail.  Make sure there is not a broken
 
1646
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1266
1647
alias in your environment" >&5
1267
1648
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1268
1649
alias in your environment" >&2;}
1269
1650
   { (exit 1); exit 1; }; }
1270
1651
   fi
1271
1652
 
1272
 
   test "$2" = conftestfile
 
1653
   test "$2" = conftest.file
1273
1654
   )
1274
1655
then
1275
1656
   # Ok.
1276
1657
   :
1277
1658
else
1278
 
   { { echo "$as_me:1278: error: newly created file is older than distributed files!
 
1659
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1279
1660
Check your system clock" >&5
1280
1661
echo "$as_me: error: newly created file is older than distributed files!
1281
1662
Check your system clock" >&2;}
1282
1663
   { (exit 1); exit 1; }; }
1283
1664
fi
1284
 
rm -f conftest*
1285
 
echo "$as_me:1285: result: yes" >&5
 
1665
echo "$as_me:$LINENO: result: yes" >&5
1286
1666
echo "${ECHO_T}yes" >&6
1287
1667
test "$program_prefix" != NONE &&
1288
1668
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
1297
1677
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1298
1678
rm conftest.sed
1299
1679
 
1300
 
echo "$as_me:1300: checking whether ${MAKE-make} sets \${MAKE}" >&5
1301
 
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1302
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
 
1680
 
 
1681
# expand $ac_aux_dir to an absolute path
 
1682
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1683
 
 
1684
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1685
# Use eval to expand $SHELL
 
1686
if eval "$MISSING --run true"; then
 
1687
  am_missing_run="$MISSING --run "
 
1688
else
 
1689
  am_missing_run=
 
1690
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1691
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1692
fi
 
1693
 
 
1694
for ac_prog in gawk mawk nawk awk
 
1695
do
 
1696
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1697
set dummy $ac_prog; ac_word=$2
 
1698
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1699
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1700
if test "${ac_cv_prog_AWK+set}" = set; then
 
1701
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1702
else
 
1703
  if test -n "$AWK"; then
 
1704
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1705
else
 
1706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1707
for as_dir in $PATH
 
1708
do
 
1709
  IFS=$as_save_IFS
 
1710
  test -z "$as_dir" && as_dir=.
 
1711
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1712
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1713
    ac_cv_prog_AWK="$ac_prog"
 
1714
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1715
    break 2
 
1716
  fi
 
1717
done
 
1718
done
 
1719
 
 
1720
fi
 
1721
fi
 
1722
AWK=$ac_cv_prog_AWK
 
1723
if test -n "$AWK"; then
 
1724
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1725
echo "${ECHO_T}$AWK" >&6
 
1726
else
 
1727
  echo "$as_me:$LINENO: result: no" >&5
 
1728
echo "${ECHO_T}no" >&6
 
1729
fi
 
1730
 
 
1731
  test -n "$AWK" && break
 
1732
done
 
1733
 
 
1734
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1735
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1736
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1303
1737
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1304
1738
  echo $ECHO_N "(cached) $ECHO_C" >&6
1305
1739
else
1306
 
  cat >conftest.make <<\EOF
 
1740
  cat >conftest.make <<\_ACEOF
1307
1741
all:
1308
 
        @echo 'ac_maketemp="${MAKE}"'
1309
 
EOF
 
1742
        @echo 'ac_maketemp="$(MAKE)"'
 
1743
_ACEOF
1310
1744
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1311
1745
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1312
1746
if test -n "$ac_maketemp"; then
1317
1751
rm -f conftest.make
1318
1752
fi
1319
1753
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1320
 
  echo "$as_me:1320: result: yes" >&5
 
1754
  echo "$as_me:$LINENO: result: yes" >&5
1321
1755
echo "${ECHO_T}yes" >&6
1322
1756
  SET_MAKE=
1323
1757
else
1324
 
  echo "$as_me:1324: result: no" >&5
 
1758
  echo "$as_me:$LINENO: result: no" >&5
1325
1759
echo "${ECHO_T}no" >&6
1326
1760
  SET_MAKE="MAKE=${MAKE-make}"
1327
1761
fi
1328
1762
 
1329
 
PACKAGE=libbonobo
1330
 
 
1331
 
VERSION=1.113.0
1332
 
 
1333
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1334
 
  { { echo "$as_me:1334: error: source directory already configured; run \"make distclean\" there first" >&5
 
1763
rm -rf .tst 2>/dev/null
 
1764
mkdir .tst 2>/dev/null
 
1765
if test -d .tst; then
 
1766
  am__leading_dot=.
 
1767
else
 
1768
  am__leading_dot=_
 
1769
fi
 
1770
rmdir .tst 2>/dev/null
 
1771
 
 
1772
 # test to see if srcdir already configured
 
1773
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1774
   test -f $srcdir/config.status; then
 
1775
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1335
1776
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1336
1777
   { (exit 1); exit 1; }; }
1337
1778
fi
1338
1779
 
1339
 
cat >>confdefs.h <<EOF
 
1780
# test whether we have cygpath
 
1781
if test -z "$CYGPATH_W"; then
 
1782
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
1783
    CYGPATH_W='cygpath -w'
 
1784
  else
 
1785
    CYGPATH_W=echo
 
1786
  fi
 
1787
fi
 
1788
 
 
1789
 
 
1790
# Define the identity of the package.
 
1791
 PACKAGE=libbonobo
 
1792
 VERSION=$BONOBO_VERSION
 
1793
 
 
1794
 
 
1795
cat >>confdefs.h <<_ACEOF
1340
1796
#define PACKAGE "$PACKAGE"
1341
 
EOF
1342
 
 
1343
 
cat >>confdefs.h <<EOF
 
1797
_ACEOF
 
1798
 
 
1799
 
 
1800
cat >>confdefs.h <<_ACEOF
1344
1801
#define VERSION "$VERSION"
1345
 
EOF
1346
 
 
1347
 
missing_dir=`cd $ac_aux_dir && pwd`
1348
 
echo "$as_me:1348: checking for working aclocal" >&5
1349
 
echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1350
 
# Run test in a subshell; some versions of sh will print an error if
1351
 
# an executable is not found, even if stderr is redirected.
1352
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1353
 
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1354
 
   ACLOCAL=aclocal
1355
 
   echo "$as_me:1355: result: found" >&5
1356
 
echo "${ECHO_T}found" >&6
1357
 
else
1358
 
   ACLOCAL="$missing_dir/missing aclocal"
1359
 
   echo "$as_me:1359: result: missing" >&5
1360
 
echo "${ECHO_T}missing" >&6
1361
 
fi
1362
 
 
1363
 
echo "$as_me:1363: checking for working autoconf" >&5
1364
 
echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1365
 
# Run test in a subshell; some versions of sh will print an error if
1366
 
# an executable is not found, even if stderr is redirected.
1367
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1368
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1369
 
   AUTOCONF=autoconf
1370
 
   echo "$as_me:1370: result: found" >&5
1371
 
echo "${ECHO_T}found" >&6
1372
 
else
1373
 
   AUTOCONF="$missing_dir/missing autoconf"
1374
 
   echo "$as_me:1374: result: missing" >&5
1375
 
echo "${ECHO_T}missing" >&6
1376
 
fi
1377
 
 
1378
 
echo "$as_me:1378: checking for working automake" >&5
1379
 
echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1380
 
# Run test in a subshell; some versions of sh will print an error if
1381
 
# an executable is not found, even if stderr is redirected.
1382
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1383
 
if (automake --version) < /dev/null > /dev/null 2>&1; then
1384
 
   AUTOMAKE=automake
1385
 
   echo "$as_me:1385: result: found" >&5
1386
 
echo "${ECHO_T}found" >&6
1387
 
else
1388
 
   AUTOMAKE="$missing_dir/missing automake"
1389
 
   echo "$as_me:1389: result: missing" >&5
1390
 
echo "${ECHO_T}missing" >&6
1391
 
fi
1392
 
 
1393
 
echo "$as_me:1393: checking for working autoheader" >&5
1394
 
echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1395
 
# Run test in a subshell; some versions of sh will print an error if
1396
 
# an executable is not found, even if stderr is redirected.
1397
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1398
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1399
 
   AUTOHEADER=autoheader
1400
 
   echo "$as_me:1400: result: found" >&5
1401
 
echo "${ECHO_T}found" >&6
1402
 
else
1403
 
   AUTOHEADER="$missing_dir/missing autoheader"
1404
 
   echo "$as_me:1404: result: missing" >&5
1405
 
echo "${ECHO_T}missing" >&6
1406
 
fi
1407
 
 
1408
 
echo "$as_me:1408: checking for working makeinfo" >&5
1409
 
echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1410
 
# Run test in a subshell; some versions of sh will print an error if
1411
 
# an executable is not found, even if stderr is redirected.
1412
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
1413
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1414
 
   MAKEINFO=makeinfo
1415
 
   echo "$as_me:1415: result: found" >&5
1416
 
echo "${ECHO_T}found" >&6
1417
 
else
1418
 
   MAKEINFO="$missing_dir/missing makeinfo"
1419
 
   echo "$as_me:1419: result: missing" >&5
1420
 
echo "${ECHO_T}missing" >&6
1421
 
fi
1422
 
 
1423
 
echo "$as_me:1423: checking whether to enable maintainer-specific portions of Makefiles" >&5
 
1802
_ACEOF
 
1803
 
 
1804
# Some tools Automake needs.
 
1805
 
 
1806
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1807
 
 
1808
 
 
1809
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1810
 
 
1811
 
 
1812
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1813
 
 
1814
 
 
1815
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1816
 
 
1817
 
 
1818
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1819
 
 
1820
 
 
1821
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1822
 
 
1823
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1824
 
 
1825
# Installed binaries are usually stripped using `strip' when the user
 
1826
# run `make install-strip'.  However `strip' might not be the right
 
1827
# tool to use in cross-compilation environments, therefore Automake
 
1828
# will honor the `STRIP' environment variable to overrule this program.
 
1829
if test "$cross_compiling" != no; then
 
1830
  if test -n "$ac_tool_prefix"; then
 
1831
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1832
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1833
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1834
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1835
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1836
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1837
else
 
1838
  if test -n "$STRIP"; then
 
1839
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1840
else
 
1841
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1842
for as_dir in $PATH
 
1843
do
 
1844
  IFS=$as_save_IFS
 
1845
  test -z "$as_dir" && as_dir=.
 
1846
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1847
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1848
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1849
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1850
    break 2
 
1851
  fi
 
1852
done
 
1853
done
 
1854
 
 
1855
fi
 
1856
fi
 
1857
STRIP=$ac_cv_prog_STRIP
 
1858
if test -n "$STRIP"; then
 
1859
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1860
echo "${ECHO_T}$STRIP" >&6
 
1861
else
 
1862
  echo "$as_me:$LINENO: result: no" >&5
 
1863
echo "${ECHO_T}no" >&6
 
1864
fi
 
1865
 
 
1866
fi
 
1867
if test -z "$ac_cv_prog_STRIP"; then
 
1868
  ac_ct_STRIP=$STRIP
 
1869
  # Extract the first word of "strip", so it can be a program name with args.
 
1870
set dummy strip; ac_word=$2
 
1871
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1872
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1873
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1874
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1875
else
 
1876
  if test -n "$ac_ct_STRIP"; then
 
1877
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1878
else
 
1879
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1880
for as_dir in $PATH
 
1881
do
 
1882
  IFS=$as_save_IFS
 
1883
  test -z "$as_dir" && as_dir=.
 
1884
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1885
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1886
    ac_cv_prog_ac_ct_STRIP="strip"
 
1887
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1888
    break 2
 
1889
  fi
 
1890
done
 
1891
done
 
1892
 
 
1893
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1894
fi
 
1895
fi
 
1896
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1897
if test -n "$ac_ct_STRIP"; then
 
1898
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1899
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1900
else
 
1901
  echo "$as_me:$LINENO: result: no" >&5
 
1902
echo "${ECHO_T}no" >&6
 
1903
fi
 
1904
 
 
1905
  STRIP=$ac_ct_STRIP
 
1906
else
 
1907
  STRIP="$ac_cv_prog_STRIP"
 
1908
fi
 
1909
 
 
1910
fi
 
1911
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1912
 
 
1913
# We need awk for the "check" target.  The system "awk" is bad on
 
1914
# some platforms.
 
1915
 
 
1916
 
 
1917
 
 
1918
 
 
1919
 
 
1920
 
 
1921
 
 
1922
 
 
1923
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1424
1924
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1425
1925
    # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1426
1926
if test "${enable_maintainer_mode+set}" = set; then
1429
1929
else
1430
1930
  USE_MAINTAINER_MODE=no
1431
1931
fi;
1432
 
  echo "$as_me:1432: result: $USE_MAINTAINER_MODE" >&5
 
1932
  echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1433
1933
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1434
1934
 
 
1935
 
1435
1936
if test $USE_MAINTAINER_MODE = yes; then
1436
1937
  MAINTAINER_MODE_TRUE=
1437
1938
  MAINTAINER_MODE_FALSE='#'
1439
1940
  MAINTAINER_MODE_TRUE='#'
1440
1941
  MAINTAINER_MODE_FALSE=
1441
1942
fi
 
1943
 
1442
1944
  MAINT=$MAINTAINER_MODE_TRUE
1443
1945
 
 
1946
 
 
1947
 
 
1948
 
 
1949
 
1444
1950
if test -n ""; then
1445
 
    echo "$as_me:1445: checking for intltool >= " >&5
 
1951
    echo "$as_me:$LINENO: checking for intltool >= " >&5
1446
1952
echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
1447
1953
 
1448
1954
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
1449
 
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < intltool-update.in`
1450
 
 
1451
 
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < intltool-update.in`
 
1955
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
 
1956
 
 
1957
    INTLTOOL_APPLIED_VERSION_AS_INT=`awk -F\" '/\\$VERSION / { split($2, VERSION, "."); printf "%d\n", VERSION[1] * 100 + VERSION[2];}' < ${ac_aux_dir}/intltool-update.in`
 
1958
 
1452
1959
 
1453
1960
    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
1454
 
        echo "$as_me:1454: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
1961
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
1455
1962
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
1456
1963
    else
1457
 
        echo "$as_me:1457: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
 
1964
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
1458
1965
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
1459
1966
        exit 1
1460
1967
    fi
1461
1968
fi
1462
1969
 
1463
 
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1464
 
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1465
 
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
1466
 
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
1467
 
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1468
 
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
1469
 
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1470
 
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
1471
 
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1472
 
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
1473
 
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
1970
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1971
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1972
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1973
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1974
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
 
1975
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1976
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1977
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1978
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1979
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1980
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1981
      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
 
1982
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1983
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1984
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1985
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1986
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
 
1987
 
 
1988
 
 
1989
 
 
1990
 
 
1991
 
 
1992
 
 
1993
 
 
1994
 
 
1995
 
 
1996
 
 
1997
 
 
1998
 
 
1999
 
 
2000
 
 
2001
 
 
2002
 
 
2003
 
 
2004
 
1474
2005
 
1475
2006
# Use the tools built into the package, not the ones that are installed.
1476
2007
 
1478
2009
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
1479
2010
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
1480
2011
 
 
2012
 
 
2013
 
 
2014
 
 
2015
 
1481
2016
# Extract the first word of "perl", so it can be a program name with args.
1482
2017
set dummy perl; ac_word=$2
1483
 
echo "$as_me:1483: checking for $ac_word" >&5
 
2018
echo "$as_me:$LINENO: checking for $ac_word" >&5
1484
2019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1485
2020
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
1486
2021
  echo $ECHO_N "(cached) $ECHO_C" >&6
1490
2025
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
1491
2026
  ;;
1492
2027
  *)
1493
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1494
 
ac_dummy="$PATH"
1495
 
for ac_dir in $ac_dummy; do
1496
 
  IFS=$ac_save_IFS
1497
 
  test -z "$ac_dir" && ac_dir=.
1498
 
  if $as_executable_p "$ac_dir/$ac_word"; then
1499
 
   ac_cv_path_INTLTOOL_PERL="$ac_dir/$ac_word"
1500
 
   echo "$as_me:1500: found $ac_dir/$ac_word" >&5
1501
 
   break
1502
 
fi
 
2028
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2029
for as_dir in $PATH
 
2030
do
 
2031
  IFS=$as_save_IFS
 
2032
  test -z "$as_dir" && as_dir=.
 
2033
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2034
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2035
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
2036
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2037
    break 2
 
2038
  fi
 
2039
done
1503
2040
done
1504
2041
 
1505
2042
  ;;
1508
2045
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
1509
2046
 
1510
2047
if test -n "$INTLTOOL_PERL"; then
1511
 
  echo "$as_me:1511: result: $INTLTOOL_PERL" >&5
 
2048
  echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
1512
2049
echo "${ECHO_T}$INTLTOOL_PERL" >&6
1513
2050
else
1514
 
  echo "$as_me:1514: result: no" >&5
 
2051
  echo "$as_me:$LINENO: result: no" >&5
1515
2052
echo "${ECHO_T}no" >&6
1516
2053
fi
1517
2054
 
1518
2055
if test -z "$INTLTOOL_PERL"; then
1519
 
   { { echo "$as_me:1519: error: perl not found; required for intltool" >&5
 
2056
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
1520
2057
echo "$as_me: error: perl not found; required for intltool" >&2;}
1521
2058
   { (exit 1); exit 1; }; }
1522
2059
fi
1523
2060
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
1524
 
   { { echo "$as_me:1524: error: perl 5.x required for intltool" >&5
 
2061
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
1525
2062
echo "$as_me: error: perl 5.x required for intltool" >&2;}
1526
2063
   { (exit 1); exit 1; }; }
1527
2064
fi
 
2065
if test "x" != "xno-xml"; then
 
2066
   echo "$as_me:$LINENO: checking for XML::Parser" >&5
 
2067
echo $ECHO_N "checking for XML::Parser... $ECHO_C" >&6
 
2068
   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
 
2069
       echo "$as_me:$LINENO: result: ok" >&5
 
2070
echo "${ECHO_T}ok" >&6
 
2071
   else
 
2072
       { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
2073
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
2074
   { (exit 1); exit 1; }; }
 
2075
   fi
 
2076
fi
 
2077
 
 
2078
# Extract the first word of "iconv", so it can be a program name with args.
 
2079
set dummy iconv; ac_word=$2
 
2080
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2081
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2082
if test "${ac_cv_path_INTLTOOL_ICONV+set}" = set; then
 
2083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2084
else
 
2085
  case $INTLTOOL_ICONV in
 
2086
  [\\/]* | ?:[\\/]*)
 
2087
  ac_cv_path_INTLTOOL_ICONV="$INTLTOOL_ICONV" # Let the user override the test with a path.
 
2088
  ;;
 
2089
  *)
 
2090
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2091
for as_dir in $PATH
 
2092
do
 
2093
  IFS=$as_save_IFS
 
2094
  test -z "$as_dir" && as_dir=.
 
2095
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2096
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2097
    ac_cv_path_INTLTOOL_ICONV="$as_dir/$ac_word$ac_exec_ext"
 
2098
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2099
    break 2
 
2100
  fi
 
2101
done
 
2102
done
 
2103
 
 
2104
  test -z "$ac_cv_path_INTLTOOL_ICONV" && ac_cv_path_INTLTOOL_ICONV="iconv"
 
2105
  ;;
 
2106
esac
 
2107
fi
 
2108
INTLTOOL_ICONV=$ac_cv_path_INTLTOOL_ICONV
 
2109
 
 
2110
if test -n "$INTLTOOL_ICONV"; then
 
2111
  echo "$as_me:$LINENO: result: $INTLTOOL_ICONV" >&5
 
2112
echo "${ECHO_T}$INTLTOOL_ICONV" >&6
 
2113
else
 
2114
  echo "$as_me:$LINENO: result: no" >&5
 
2115
echo "${ECHO_T}no" >&6
 
2116
fi
 
2117
 
 
2118
# Extract the first word of "msgfmt", so it can be a program name with args.
 
2119
set dummy msgfmt; ac_word=$2
 
2120
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2122
if test "${ac_cv_path_INTLTOOL_MSGFMT+set}" = set; then
 
2123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2124
else
 
2125
  case $INTLTOOL_MSGFMT in
 
2126
  [\\/]* | ?:[\\/]*)
 
2127
  ac_cv_path_INTLTOOL_MSGFMT="$INTLTOOL_MSGFMT" # Let the user override the test with a path.
 
2128
  ;;
 
2129
  *)
 
2130
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2131
for as_dir in $PATH
 
2132
do
 
2133
  IFS=$as_save_IFS
 
2134
  test -z "$as_dir" && as_dir=.
 
2135
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2136
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2137
    ac_cv_path_INTLTOOL_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
2138
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2139
    break 2
 
2140
  fi
 
2141
done
 
2142
done
 
2143
 
 
2144
  test -z "$ac_cv_path_INTLTOOL_MSGFMT" && ac_cv_path_INTLTOOL_MSGFMT="msgfmt"
 
2145
  ;;
 
2146
esac
 
2147
fi
 
2148
INTLTOOL_MSGFMT=$ac_cv_path_INTLTOOL_MSGFMT
 
2149
 
 
2150
if test -n "$INTLTOOL_MSGFMT"; then
 
2151
  echo "$as_me:$LINENO: result: $INTLTOOL_MSGFMT" >&5
 
2152
echo "${ECHO_T}$INTLTOOL_MSGFMT" >&6
 
2153
else
 
2154
  echo "$as_me:$LINENO: result: no" >&5
 
2155
echo "${ECHO_T}no" >&6
 
2156
fi
 
2157
 
 
2158
# Extract the first word of "msgmerge", so it can be a program name with args.
 
2159
set dummy msgmerge; ac_word=$2
 
2160
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2161
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2162
if test "${ac_cv_path_INTLTOOL_MSGMERGE+set}" = set; then
 
2163
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2164
else
 
2165
  case $INTLTOOL_MSGMERGE in
 
2166
  [\\/]* | ?:[\\/]*)
 
2167
  ac_cv_path_INTLTOOL_MSGMERGE="$INTLTOOL_MSGMERGE" # Let the user override the test with a path.
 
2168
  ;;
 
2169
  *)
 
2170
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2171
for as_dir in $PATH
 
2172
do
 
2173
  IFS=$as_save_IFS
 
2174
  test -z "$as_dir" && as_dir=.
 
2175
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2176
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2177
    ac_cv_path_INTLTOOL_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
 
2178
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2179
    break 2
 
2180
  fi
 
2181
done
 
2182
done
 
2183
 
 
2184
  test -z "$ac_cv_path_INTLTOOL_MSGMERGE" && ac_cv_path_INTLTOOL_MSGMERGE="msgmerge"
 
2185
  ;;
 
2186
esac
 
2187
fi
 
2188
INTLTOOL_MSGMERGE=$ac_cv_path_INTLTOOL_MSGMERGE
 
2189
 
 
2190
if test -n "$INTLTOOL_MSGMERGE"; then
 
2191
  echo "$as_me:$LINENO: result: $INTLTOOL_MSGMERGE" >&5
 
2192
echo "${ECHO_T}$INTLTOOL_MSGMERGE" >&6
 
2193
else
 
2194
  echo "$as_me:$LINENO: result: no" >&5
 
2195
echo "${ECHO_T}no" >&6
 
2196
fi
 
2197
 
 
2198
# Extract the first word of "xgettext", so it can be a program name with args.
 
2199
set dummy xgettext; ac_word=$2
 
2200
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2202
if test "${ac_cv_path_INTLTOOL_XGETTEXT+set}" = set; then
 
2203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2204
else
 
2205
  case $INTLTOOL_XGETTEXT in
 
2206
  [\\/]* | ?:[\\/]*)
 
2207
  ac_cv_path_INTLTOOL_XGETTEXT="$INTLTOOL_XGETTEXT" # Let the user override the test with a path.
 
2208
  ;;
 
2209
  *)
 
2210
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2211
for as_dir in $PATH
 
2212
do
 
2213
  IFS=$as_save_IFS
 
2214
  test -z "$as_dir" && as_dir=.
 
2215
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2216
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2217
    ac_cv_path_INTLTOOL_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
 
2218
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2219
    break 2
 
2220
  fi
 
2221
done
 
2222
done
 
2223
 
 
2224
  test -z "$ac_cv_path_INTLTOOL_XGETTEXT" && ac_cv_path_INTLTOOL_XGETTEXT="xgettext"
 
2225
  ;;
 
2226
esac
 
2227
fi
 
2228
INTLTOOL_XGETTEXT=$ac_cv_path_INTLTOOL_XGETTEXT
 
2229
 
 
2230
if test -n "$INTLTOOL_XGETTEXT"; then
 
2231
  echo "$as_me:$LINENO: result: $INTLTOOL_XGETTEXT" >&5
 
2232
echo "${ECHO_T}$INTLTOOL_XGETTEXT" >&6
 
2233
else
 
2234
  echo "$as_me:$LINENO: result: no" >&5
 
2235
echo "${ECHO_T}no" >&6
 
2236
fi
 
2237
 
1528
2238
 
1529
2239
# Remove file type tags (using []) from po/POTFILES.
1530
2240
 
 
2241
 
 
2242
 
 
2243
 
 
2244
 
 
2245
 
 
2246
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
2247
  # Keeping the `.' argument allows $(mkdir_p) to be used without
 
2248
  # argument.  Indeed, we sometimes output rules like
 
2249
  #   $(mkdir_p) $(somedir)
 
2250
  # where $(somedir) is conditionally defined.
 
2251
  # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
 
2252
  # expensive solution, as it forces Make to start a sub-shell.)
 
2253
  mkdir_p='mkdir -p -- .'
 
2254
else
 
2255
  # On NextStep and OpenStep, the `mkdir' command does not
 
2256
  # recognize any option.  It will interpret all options as
 
2257
  # directories to create, and then abort because `.' already
 
2258
  # exists.
 
2259
  for d in ./-p ./--version;
 
2260
  do
 
2261
    test -d $d && rmdir $d
 
2262
  done
 
2263
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2264
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2265
    mkdir_p='$(mkinstalldirs)'
 
2266
  else
 
2267
    mkdir_p='$(install_sh) -d'
 
2268
  fi
 
2269
fi
 
2270
 
 
2271
 
 
2272
 
1531
2273
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
1532
2274
 
1533
 
ac_config_commands="$ac_config_commands default-2"
 
2275
          ac_config_commands="$ac_config_commands intltool"
 
2276
 
 
2277
 
 
2278
 
 
2279
 
 
2280
ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
 
2281
 
 
2282
LIBBONOBO_LT_VERSION_INFO='-version-info 0:0:0'
 
2283
 
 
2284
BONOBO_ACTIVATION_LT_VERSION_INFO='-version-info 4:0:0'
 
2285
 
 
2286
 
 
2287
DEPDIR="${am__leading_dot}deps"
 
2288
 
 
2289
          ac_config_commands="$ac_config_commands depfiles"
 
2290
 
 
2291
 
 
2292
am_make=${MAKE-make}
 
2293
cat > confinc << 'END'
 
2294
am__doit:
 
2295
        @echo done
 
2296
.PHONY: am__doit
 
2297
END
 
2298
# If we don't find an include directive, just comment out the code.
 
2299
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2300
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
2301
am__include="#"
 
2302
am__quote=
 
2303
_am_result=none
 
2304
# First try GNU make style include.
 
2305
echo "include confinc" > confmf
 
2306
# We grep out `Entering directory' and `Leaving directory'
 
2307
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2308
# In particular we don't look at `^make:' because GNU make might
 
2309
# be invoked under some other name (usually "gmake"), in which
 
2310
# case it prints its new name instead of `make'.
 
2311
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2312
   am__include=include
 
2313
   am__quote=
 
2314
   _am_result=GNU
 
2315
fi
 
2316
# Now try BSD make style include.
 
2317
if test "$am__include" = "#"; then
 
2318
   echo '.include "confinc"' > confmf
 
2319
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2320
      am__include=.include
 
2321
      am__quote="\""
 
2322
      _am_result=BSD
 
2323
   fi
 
2324
fi
 
2325
 
 
2326
 
 
2327
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2328
echo "${ECHO_T}$_am_result" >&6
 
2329
rm -f confinc confmf
 
2330
 
 
2331
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
2332
if test "${enable_dependency_tracking+set}" = set; then
 
2333
  enableval="$enable_dependency_tracking"
 
2334
 
 
2335
fi;
 
2336
if test "x$enable_dependency_tracking" != xno; then
 
2337
  am_depcomp="$ac_aux_dir/depcomp"
 
2338
  AMDEPBACKSLASH='\'
 
2339
fi
 
2340
 
 
2341
 
 
2342
if test "x$enable_dependency_tracking" != xno; then
 
2343
  AMDEP_TRUE=
 
2344
  AMDEP_FALSE='#'
 
2345
else
 
2346
  AMDEP_TRUE='#'
 
2347
  AMDEP_FALSE=
 
2348
fi
 
2349
 
 
2350
 
1534
2351
 
1535
2352
ac_ext=c
1536
2353
ac_cpp='$CPP $CPPFLAGS'
1540
2357
if test -n "$ac_tool_prefix"; then
1541
2358
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1542
2359
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1543
 
echo "$as_me:1543: checking for $ac_word" >&5
 
2360
echo "$as_me:$LINENO: checking for $ac_word" >&5
1544
2361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1545
2362
if test "${ac_cv_prog_CC+set}" = set; then
1546
2363
  echo $ECHO_N "(cached) $ECHO_C" >&6
1548
2365
  if test -n "$CC"; then
1549
2366
  ac_cv_prog_CC="$CC" # Let the user override the test.
1550
2367
else
1551
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1552
 
ac_dummy="$PATH"
1553
 
for ac_dir in $ac_dummy; do
1554
 
  IFS=$ac_save_IFS
1555
 
  test -z "$ac_dir" && ac_dir=.
1556
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1557
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1558
 
echo "$as_me:1558: found $ac_dir/$ac_word" >&5
1559
 
break
 
2368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2369
for as_dir in $PATH
 
2370
do
 
2371
  IFS=$as_save_IFS
 
2372
  test -z "$as_dir" && as_dir=.
 
2373
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2374
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2375
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
2376
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2377
    break 2
 
2378
  fi
 
2379
done
1560
2380
done
1561
2381
 
1562
2382
fi
1563
2383
fi
1564
2384
CC=$ac_cv_prog_CC
1565
2385
if test -n "$CC"; then
1566
 
  echo "$as_me:1566: result: $CC" >&5
 
2386
  echo "$as_me:$LINENO: result: $CC" >&5
1567
2387
echo "${ECHO_T}$CC" >&6
1568
2388
else
1569
 
  echo "$as_me:1569: result: no" >&5
 
2389
  echo "$as_me:$LINENO: result: no" >&5
1570
2390
echo "${ECHO_T}no" >&6
1571
2391
fi
1572
2392
 
1575
2395
  ac_ct_CC=$CC
1576
2396
  # Extract the first word of "gcc", so it can be a program name with args.
1577
2397
set dummy gcc; ac_word=$2
1578
 
echo "$as_me:1578: checking for $ac_word" >&5
 
2398
echo "$as_me:$LINENO: checking for $ac_word" >&5
1579
2399
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1580
2400
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1581
2401
  echo $ECHO_N "(cached) $ECHO_C" >&6
1583
2403
  if test -n "$ac_ct_CC"; then
1584
2404
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1585
2405
else
1586
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1587
 
ac_dummy="$PATH"
1588
 
for ac_dir in $ac_dummy; do
1589
 
  IFS=$ac_save_IFS
1590
 
  test -z "$ac_dir" && ac_dir=.
1591
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1592
 
ac_cv_prog_ac_ct_CC="gcc"
1593
 
echo "$as_me:1593: found $ac_dir/$ac_word" >&5
1594
 
break
 
2406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2407
for as_dir in $PATH
 
2408
do
 
2409
  IFS=$as_save_IFS
 
2410
  test -z "$as_dir" && as_dir=.
 
2411
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2412
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2413
    ac_cv_prog_ac_ct_CC="gcc"
 
2414
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2415
    break 2
 
2416
  fi
 
2417
done
1595
2418
done
1596
2419
 
1597
2420
fi
1598
2421
fi
1599
2422
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1600
2423
if test -n "$ac_ct_CC"; then
1601
 
  echo "$as_me:1601: result: $ac_ct_CC" >&5
 
2424
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1602
2425
echo "${ECHO_T}$ac_ct_CC" >&6
1603
2426
else
1604
 
  echo "$as_me:1604: result: no" >&5
 
2427
  echo "$as_me:$LINENO: result: no" >&5
1605
2428
echo "${ECHO_T}no" >&6
1606
2429
fi
1607
2430
 
1614
2437
  if test -n "$ac_tool_prefix"; then
1615
2438
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1616
2439
set dummy ${ac_tool_prefix}cc; ac_word=$2
1617
 
echo "$as_me:1617: checking for $ac_word" >&5
 
2440
echo "$as_me:$LINENO: checking for $ac_word" >&5
1618
2441
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1619
2442
if test "${ac_cv_prog_CC+set}" = set; then
1620
2443
  echo $ECHO_N "(cached) $ECHO_C" >&6
1622
2445
  if test -n "$CC"; then
1623
2446
  ac_cv_prog_CC="$CC" # Let the user override the test.
1624
2447
else
1625
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1626
 
ac_dummy="$PATH"
1627
 
for ac_dir in $ac_dummy; do
1628
 
  IFS=$ac_save_IFS
1629
 
  test -z "$ac_dir" && ac_dir=.
1630
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1631
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
1632
 
echo "$as_me:1632: found $ac_dir/$ac_word" >&5
1633
 
break
 
2448
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2449
for as_dir in $PATH
 
2450
do
 
2451
  IFS=$as_save_IFS
 
2452
  test -z "$as_dir" && as_dir=.
 
2453
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2454
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2455
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2456
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2457
    break 2
 
2458
  fi
 
2459
done
1634
2460
done
1635
2461
 
1636
2462
fi
1637
2463
fi
1638
2464
CC=$ac_cv_prog_CC
1639
2465
if test -n "$CC"; then
1640
 
  echo "$as_me:1640: result: $CC" >&5
 
2466
  echo "$as_me:$LINENO: result: $CC" >&5
1641
2467
echo "${ECHO_T}$CC" >&6
1642
2468
else
1643
 
  echo "$as_me:1643: result: no" >&5
 
2469
  echo "$as_me:$LINENO: result: no" >&5
1644
2470
echo "${ECHO_T}no" >&6
1645
2471
fi
1646
2472
 
1649
2475
  ac_ct_CC=$CC
1650
2476
  # Extract the first word of "cc", so it can be a program name with args.
1651
2477
set dummy cc; ac_word=$2
1652
 
echo "$as_me:1652: checking for $ac_word" >&5
 
2478
echo "$as_me:$LINENO: checking for $ac_word" >&5
1653
2479
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1654
2480
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1655
2481
  echo $ECHO_N "(cached) $ECHO_C" >&6
1657
2483
  if test -n "$ac_ct_CC"; then
1658
2484
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1659
2485
else
1660
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1661
 
ac_dummy="$PATH"
1662
 
for ac_dir in $ac_dummy; do
1663
 
  IFS=$ac_save_IFS
1664
 
  test -z "$ac_dir" && ac_dir=.
1665
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1666
 
ac_cv_prog_ac_ct_CC="cc"
1667
 
echo "$as_me:1667: found $ac_dir/$ac_word" >&5
1668
 
break
 
2486
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2487
for as_dir in $PATH
 
2488
do
 
2489
  IFS=$as_save_IFS
 
2490
  test -z "$as_dir" && as_dir=.
 
2491
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2492
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2493
    ac_cv_prog_ac_ct_CC="cc"
 
2494
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2495
    break 2
 
2496
  fi
 
2497
done
1669
2498
done
1670
2499
 
1671
2500
fi
1672
2501
fi
1673
2502
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1674
2503
if test -n "$ac_ct_CC"; then
1675
 
  echo "$as_me:1675: result: $ac_ct_CC" >&5
 
2504
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1676
2505
echo "${ECHO_T}$ac_ct_CC" >&6
1677
2506
else
1678
 
  echo "$as_me:1678: result: no" >&5
 
2507
  echo "$as_me:$LINENO: result: no" >&5
1679
2508
echo "${ECHO_T}no" >&6
1680
2509
fi
1681
2510
 
1688
2517
if test -z "$CC"; then
1689
2518
  # Extract the first word of "cc", so it can be a program name with args.
1690
2519
set dummy cc; ac_word=$2
1691
 
echo "$as_me:1691: checking for $ac_word" >&5
 
2520
echo "$as_me:$LINENO: checking for $ac_word" >&5
1692
2521
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1693
2522
if test "${ac_cv_prog_CC+set}" = set; then
1694
2523
  echo $ECHO_N "(cached) $ECHO_C" >&6
1697
2526
  ac_cv_prog_CC="$CC" # Let the user override the test.
1698
2527
else
1699
2528
  ac_prog_rejected=no
1700
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1701
 
ac_dummy="$PATH"
1702
 
for ac_dir in $ac_dummy; do
1703
 
  IFS=$ac_save_IFS
1704
 
  test -z "$ac_dir" && ac_dir=.
1705
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1706
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1707
 
  ac_prog_rejected=yes
1708
 
  continue
1709
 
fi
1710
 
ac_cv_prog_CC="cc"
1711
 
echo "$as_me:1711: found $ac_dir/$ac_word" >&5
1712
 
break
 
2529
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2530
for as_dir in $PATH
 
2531
do
 
2532
  IFS=$as_save_IFS
 
2533
  test -z "$as_dir" && as_dir=.
 
2534
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2535
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2536
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2537
       ac_prog_rejected=yes
 
2538
       continue
 
2539
     fi
 
2540
    ac_cv_prog_CC="cc"
 
2541
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2542
    break 2
 
2543
  fi
 
2544
done
1713
2545
done
1714
2546
 
1715
2547
if test $ac_prog_rejected = yes; then
1721
2553
    # However, it has the same basename, so the bogon will be chosen
1722
2554
    # first if we set CC to just the basename; use the full file name.
1723
2555
    shift
1724
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
1725
 
    shift
1726
 
    ac_cv_prog_CC="$@"
 
2556
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1727
2557
  fi
1728
2558
fi
1729
2559
fi
1730
2560
fi
1731
2561
CC=$ac_cv_prog_CC
1732
2562
if test -n "$CC"; then
1733
 
  echo "$as_me:1733: result: $CC" >&5
 
2563
  echo "$as_me:$LINENO: result: $CC" >&5
1734
2564
echo "${ECHO_T}$CC" >&6
1735
2565
else
1736
 
  echo "$as_me:1736: result: no" >&5
 
2566
  echo "$as_me:$LINENO: result: no" >&5
1737
2567
echo "${ECHO_T}no" >&6
1738
2568
fi
1739
2569
 
1744
2574
  do
1745
2575
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1746
2576
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1747
 
echo "$as_me:1747: checking for $ac_word" >&5
 
2577
echo "$as_me:$LINENO: checking for $ac_word" >&5
1748
2578
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1749
2579
if test "${ac_cv_prog_CC+set}" = set; then
1750
2580
  echo $ECHO_N "(cached) $ECHO_C" >&6
1752
2582
  if test -n "$CC"; then
1753
2583
  ac_cv_prog_CC="$CC" # Let the user override the test.
1754
2584
else
1755
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1756
 
ac_dummy="$PATH"
1757
 
for ac_dir in $ac_dummy; do
1758
 
  IFS=$ac_save_IFS
1759
 
  test -z "$ac_dir" && ac_dir=.
1760
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1761
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762
 
echo "$as_me:1762: found $ac_dir/$ac_word" >&5
1763
 
break
 
2585
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2586
for as_dir in $PATH
 
2587
do
 
2588
  IFS=$as_save_IFS
 
2589
  test -z "$as_dir" && as_dir=.
 
2590
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2591
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2592
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2593
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2594
    break 2
 
2595
  fi
 
2596
done
1764
2597
done
1765
2598
 
1766
2599
fi
1767
2600
fi
1768
2601
CC=$ac_cv_prog_CC
1769
2602
if test -n "$CC"; then
1770
 
  echo "$as_me:1770: result: $CC" >&5
 
2603
  echo "$as_me:$LINENO: result: $CC" >&5
1771
2604
echo "${ECHO_T}$CC" >&6
1772
2605
else
1773
 
  echo "$as_me:1773: result: no" >&5
 
2606
  echo "$as_me:$LINENO: result: no" >&5
1774
2607
echo "${ECHO_T}no" >&6
1775
2608
fi
1776
2609
 
1783
2616
do
1784
2617
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1785
2618
set dummy $ac_prog; ac_word=$2
1786
 
echo "$as_me:1786: checking for $ac_word" >&5
 
2619
echo "$as_me:$LINENO: checking for $ac_word" >&5
1787
2620
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788
2621
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789
2622
  echo $ECHO_N "(cached) $ECHO_C" >&6
1791
2624
  if test -n "$ac_ct_CC"; then
1792
2625
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793
2626
else
1794
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
1795
 
ac_dummy="$PATH"
1796
 
for ac_dir in $ac_dummy; do
1797
 
  IFS=$ac_save_IFS
1798
 
  test -z "$ac_dir" && ac_dir=.
1799
 
  $as_executable_p "$ac_dir/$ac_word" || continue
1800
 
ac_cv_prog_ac_ct_CC="$ac_prog"
1801
 
echo "$as_me:1801: found $ac_dir/$ac_word" >&5
1802
 
break
 
2627
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2628
for as_dir in $PATH
 
2629
do
 
2630
  IFS=$as_save_IFS
 
2631
  test -z "$as_dir" && as_dir=.
 
2632
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2633
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2634
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2635
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2636
    break 2
 
2637
  fi
 
2638
done
1803
2639
done
1804
2640
 
1805
2641
fi
1806
2642
fi
1807
2643
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1808
2644
if test -n "$ac_ct_CC"; then
1809
 
  echo "$as_me:1809: result: $ac_ct_CC" >&5
 
2645
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1810
2646
echo "${ECHO_T}$ac_ct_CC" >&6
1811
2647
else
1812
 
  echo "$as_me:1812: result: no" >&5
 
2648
  echo "$as_me:$LINENO: result: no" >&5
1813
2649
echo "${ECHO_T}no" >&6
1814
2650
fi
1815
2651
 
1821
2657
 
1822
2658
fi
1823
2659
 
1824
 
test -z "$CC" && { { echo "$as_me:1824: error: no acceptable cc found in \$PATH" >&5
1825
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
2660
 
 
2661
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2662
See \`config.log' for more details." >&5
 
2663
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2664
See \`config.log' for more details." >&2;}
1826
2665
   { (exit 1); exit 1; }; }
1827
2666
 
1828
2667
# Provide some information about the compiler.
1829
 
echo "$as_me:1829:" \
 
2668
echo "$as_me:$LINENO:" \
1830
2669
     "checking for C compiler version" >&5
1831
2670
ac_compiler=`set X $ac_compile; echo $2`
1832
 
{ (eval echo "$as_me:1832: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2671
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1833
2672
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1834
2673
  ac_status=$?
1835
 
  echo "$as_me:1835: \$? = $ac_status" >&5
 
2674
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1836
2675
  (exit $ac_status); }
1837
 
{ (eval echo "$as_me:1837: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2676
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1838
2677
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1839
2678
  ac_status=$?
1840
 
  echo "$as_me:1840: \$? = $ac_status" >&5
 
2679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841
2680
  (exit $ac_status); }
1842
 
{ (eval echo "$as_me:1842: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2681
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1843
2682
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1844
2683
  ac_status=$?
1845
 
  echo "$as_me:1845: \$? = $ac_status" >&5
 
2684
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846
2685
  (exit $ac_status); }
1847
2686
 
1848
2687
cat >conftest.$ac_ext <<_ACEOF
1849
 
#line 1849 "configure"
1850
 
#include "confdefs.h"
 
2688
/* confdefs.h.  */
 
2689
_ACEOF
 
2690
cat confdefs.h >>conftest.$ac_ext
 
2691
cat >>conftest.$ac_ext <<_ACEOF
 
2692
/* end confdefs.h.  */
1851
2693
 
1852
2694
int
1853
2695
main ()
1858
2700
}
1859
2701
_ACEOF
1860
2702
ac_clean_files_save=$ac_clean_files
1861
 
ac_clean_files="$ac_clean_files a.out a.exe"
 
2703
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1862
2704
# Try to create an executable without -o first, disregard a.out.
1863
2705
# It will help us diagnose broken compilers, and finding out an intuition
1864
2706
# of exeext.
1865
 
echo "$as_me:1865: checking for C compiler default output" >&5
1866
 
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
 
2707
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2708
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1867
2709
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1868
 
if { (eval echo "$as_me:1868: \"$ac_link_default\"") >&5
 
2710
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1869
2711
  (eval $ac_link_default) 2>&5
1870
2712
  ac_status=$?
1871
 
  echo "$as_me:1871: \$? = $ac_status" >&5
 
2713
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872
2714
  (exit $ac_status); }; then
1873
2715
  # Find the output, starting from the most likely.  This scheme is
1874
2716
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1875
2717
# resort.
1876
 
for ac_file in `ls a.exe conftest.exe 2>/dev/null;
1877
 
                ls a.out conftest 2>/dev/null;
1878
 
                ls a.* conftest.* 2>/dev/null`; do
 
2718
 
 
2719
# Be careful to initialize this variable, since it used to be cached.
 
2720
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2721
ac_cv_exeext=
 
2722
# b.out is created by i960 compilers.
 
2723
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2724
do
 
2725
  test -f "$ac_file" || continue
1879
2726
  case $ac_file in
1880
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1881
 
    a.out ) # We found the default executable, but exeext='' is most
1882
 
            # certainly right.
1883
 
            break;;
1884
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1885
 
          # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1886
 
          export ac_cv_exeext
1887
 
          break;;
1888
 
    * ) break;;
 
2727
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2728
        ;;
 
2729
    conftest.$ac_ext )
 
2730
        # This is the source file.
 
2731
        ;;
 
2732
    [ab].out )
 
2733
        # We found the default executable, but exeext='' is most
 
2734
        # certainly right.
 
2735
        break;;
 
2736
    *.* )
 
2737
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2738
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2739
        # but it would be cool to find out if it's true.  Does anybody
 
2740
        # maintain Libtool? --akim.
 
2741
        export ac_cv_exeext
 
2742
        break;;
 
2743
    * )
 
2744
        break;;
1889
2745
  esac
1890
2746
done
1891
2747
else
1892
2748
  echo "$as_me: failed program was:" >&5
1893
 
cat conftest.$ac_ext >&5
1894
 
{ { echo "$as_me:1894: error: C compiler cannot create executables" >&5
1895
 
echo "$as_me: error: C compiler cannot create executables" >&2;}
 
2749
sed 's/^/| /' conftest.$ac_ext >&5
 
2750
 
 
2751
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2752
See \`config.log' for more details." >&5
 
2753
echo "$as_me: error: C compiler cannot create executables
 
2754
See \`config.log' for more details." >&2;}
1896
2755
   { (exit 77); exit 77; }; }
1897
2756
fi
1898
2757
 
1899
2758
ac_exeext=$ac_cv_exeext
1900
 
echo "$as_me:1900: result: $ac_file" >&5
 
2759
echo "$as_me:$LINENO: result: $ac_file" >&5
1901
2760
echo "${ECHO_T}$ac_file" >&6
1902
2761
 
1903
2762
# Check the compiler produces executables we can run.  If not, either
1904
2763
# the compiler is broken, or we cross compile.
1905
 
echo "$as_me:1905: checking whether the C compiler works" >&5
 
2764
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1906
2765
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1907
2766
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1908
2767
# If not cross compiling, check that we can run a simple program.
1909
2768
if test "$cross_compiling" != yes; then
1910
2769
  if { ac_try='./$ac_file'
1911
 
  { (eval echo "$as_me:1911: \"$ac_try\"") >&5
 
2770
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1912
2771
  (eval $ac_try) 2>&5
1913
2772
  ac_status=$?
1914
 
  echo "$as_me:1914: \$? = $ac_status" >&5
 
2773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1915
2774
  (exit $ac_status); }; }; then
1916
2775
    cross_compiling=no
1917
2776
  else
1918
2777
    if test "$cross_compiling" = maybe; then
1919
2778
        cross_compiling=yes
1920
2779
    else
1921
 
        { { echo "$as_me:1921: error: cannot run C compiled programs.
1922
 
If you meant to cross compile, use \`--host'." >&5
 
2780
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2781
If you meant to cross compile, use \`--host'.
 
2782
See \`config.log' for more details." >&5
1923
2783
echo "$as_me: error: cannot run C compiled programs.
1924
 
If you meant to cross compile, use \`--host'." >&2;}
 
2784
If you meant to cross compile, use \`--host'.
 
2785
See \`config.log' for more details." >&2;}
1925
2786
   { (exit 1); exit 1; }; }
1926
2787
    fi
1927
2788
  fi
1928
2789
fi
1929
 
echo "$as_me:1929: result: yes" >&5
 
2790
echo "$as_me:$LINENO: result: yes" >&5
1930
2791
echo "${ECHO_T}yes" >&6
1931
2792
 
1932
 
rm -f a.out a.exe conftest$ac_cv_exeext
 
2793
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1933
2794
ac_clean_files=$ac_clean_files_save
1934
2795
# Check the compiler produces executables we can run.  If not, either
1935
2796
# the compiler is broken, or we cross compile.
1936
 
echo "$as_me:1936: checking whether we are cross compiling" >&5
 
2797
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1937
2798
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1938
 
echo "$as_me:1938: result: $cross_compiling" >&5
 
2799
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1939
2800
echo "${ECHO_T}$cross_compiling" >&6
1940
2801
 
1941
 
echo "$as_me:1941: checking for executable suffix" >&5
1942
 
echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1943
 
if { (eval echo "$as_me:1943: \"$ac_link\"") >&5
 
2802
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2803
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2804
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1944
2805
  (eval $ac_link) 2>&5
1945
2806
  ac_status=$?
1946
 
  echo "$as_me:1946: \$? = $ac_status" >&5
 
2807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1947
2808
  (exit $ac_status); }; then
1948
2809
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1949
2810
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1950
2811
# work properly (i.e., refer to `conftest.exe'), while it won't with
1951
2812
# `rm'.
1952
 
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
 
2813
for ac_file in conftest.exe conftest conftest.*; do
 
2814
  test -f "$ac_file" || continue
1953
2815
  case $ac_file in
1954
 
    *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2816
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1955
2817
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1956
 
          export ac_cv_exeext
1957
 
          break;;
 
2818
          export ac_cv_exeext
 
2819
          break;;
1958
2820
    * ) break;;
1959
2821
  esac
1960
2822
done
1961
2823
else
1962
 
  { { echo "$as_me:1962: error: cannot compute EXEEXT: cannot compile and link" >&5
1963
 
echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
 
2824
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2825
See \`config.log' for more details." >&5
 
2826
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2827
See \`config.log' for more details." >&2;}
1964
2828
   { (exit 1); exit 1; }; }
1965
2829
fi
1966
2830
 
1967
2831
rm -f conftest$ac_cv_exeext
1968
 
echo "$as_me:1968: result: $ac_cv_exeext" >&5
 
2832
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1969
2833
echo "${ECHO_T}$ac_cv_exeext" >&6
1970
2834
 
1971
2835
rm -f conftest.$ac_ext
1972
2836
EXEEXT=$ac_cv_exeext
1973
2837
ac_exeext=$EXEEXT
1974
 
echo "$as_me:1974: checking for object suffix" >&5
1975
 
echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
 
2838
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2839
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1976
2840
if test "${ac_cv_objext+set}" = set; then
1977
2841
  echo $ECHO_N "(cached) $ECHO_C" >&6
1978
2842
else
1979
2843
  cat >conftest.$ac_ext <<_ACEOF
1980
 
#line 1980 "configure"
1981
 
#include "confdefs.h"
 
2844
/* confdefs.h.  */
 
2845
_ACEOF
 
2846
cat confdefs.h >>conftest.$ac_ext
 
2847
cat >>conftest.$ac_ext <<_ACEOF
 
2848
/* end confdefs.h.  */
1982
2849
 
1983
2850
int
1984
2851
main ()
1989
2856
}
1990
2857
_ACEOF
1991
2858
rm -f conftest.o conftest.obj
1992
 
if { (eval echo "$as_me:1992: \"$ac_compile\"") >&5
 
2859
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1993
2860
  (eval $ac_compile) 2>&5
1994
2861
  ac_status=$?
1995
 
  echo "$as_me:1995: \$? = $ac_status" >&5
 
2862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1996
2863
  (exit $ac_status); }; then
1997
2864
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1998
2865
  case $ac_file in
1999
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
 
2866
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2000
2867
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2001
2868
       break;;
2002
2869
  esac
2003
2870
done
2004
2871
else
2005
2872
  echo "$as_me: failed program was:" >&5
2006
 
cat conftest.$ac_ext >&5
2007
 
{ { echo "$as_me:2007: error: cannot compute OBJEXT: cannot compile" >&5
2008
 
echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
 
2873
sed 's/^/| /' conftest.$ac_ext >&5
 
2874
 
 
2875
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2876
See \`config.log' for more details." >&5
 
2877
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2878
See \`config.log' for more details." >&2;}
2009
2879
   { (exit 1); exit 1; }; }
2010
2880
fi
2011
2881
 
2012
2882
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2013
2883
fi
2014
 
echo "$as_me:2014: result: $ac_cv_objext" >&5
 
2884
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2015
2885
echo "${ECHO_T}$ac_cv_objext" >&6
2016
2886
OBJEXT=$ac_cv_objext
2017
2887
ac_objext=$OBJEXT
2018
 
echo "$as_me:2018: checking whether we are using the GNU C compiler" >&5
 
2888
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2019
2889
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2020
2890
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2021
2891
  echo $ECHO_N "(cached) $ECHO_C" >&6
2022
2892
else
2023
2893
  cat >conftest.$ac_ext <<_ACEOF
2024
 
#line 2024 "configure"
2025
 
#include "confdefs.h"
 
2894
/* confdefs.h.  */
 
2895
_ACEOF
 
2896
cat confdefs.h >>conftest.$ac_ext
 
2897
cat >>conftest.$ac_ext <<_ACEOF
 
2898
/* end confdefs.h.  */
2026
2899
 
2027
2900
int
2028
2901
main ()
2036
2909
}
2037
2910
_ACEOF
2038
2911
rm -f conftest.$ac_objext
2039
 
if { (eval echo "$as_me:2039: \"$ac_compile\"") >&5
2040
 
  (eval $ac_compile) 2>&5
 
2912
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2913
  (eval $ac_compile) 2>conftest.er1
2041
2914
  ac_status=$?
2042
 
  echo "$as_me:2042: \$? = $ac_status" >&5
 
2915
  grep -v '^ *+' conftest.er1 >conftest.err
 
2916
  rm -f conftest.er1
 
2917
  cat conftest.err >&5
 
2918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2043
2919
  (exit $ac_status); } &&
2044
 
         { ac_try='test -s conftest.$ac_objext'
2045
 
  { (eval echo "$as_me:2045: \"$ac_try\"") >&5
2046
 
  (eval $ac_try) 2>&5
2047
 
  ac_status=$?
2048
 
  echo "$as_me:2048: \$? = $ac_status" >&5
 
2920
         { ac_try='test -z "$ac_c_werror_flag"
 
2921
                         || test ! -s conftest.err'
 
2922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2923
  (eval $ac_try) 2>&5
 
2924
  ac_status=$?
 
2925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2926
  (exit $ac_status); }; } &&
 
2927
         { ac_try='test -s conftest.$ac_objext'
 
2928
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2929
  (eval $ac_try) 2>&5
 
2930
  ac_status=$?
 
2931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2049
2932
  (exit $ac_status); }; }; then
2050
2933
  ac_compiler_gnu=yes
2051
2934
else
2052
2935
  echo "$as_me: failed program was:" >&5
2053
 
cat conftest.$ac_ext >&5
 
2936
sed 's/^/| /' conftest.$ac_ext >&5
 
2937
 
2054
2938
ac_compiler_gnu=no
2055
2939
fi
2056
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2940
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2057
2941
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2058
2942
 
2059
2943
fi
2060
 
echo "$as_me:2060: result: $ac_cv_c_compiler_gnu" >&5
 
2944
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2061
2945
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2062
2946
GCC=`test $ac_compiler_gnu = yes && echo yes`
2063
2947
ac_test_CFLAGS=${CFLAGS+set}
2064
2948
ac_save_CFLAGS=$CFLAGS
2065
2949
CFLAGS="-g"
2066
 
echo "$as_me:2066: checking whether $CC accepts -g" >&5
 
2950
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2067
2951
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2068
2952
if test "${ac_cv_prog_cc_g+set}" = set; then
2069
2953
  echo $ECHO_N "(cached) $ECHO_C" >&6
2070
2954
else
2071
2955
  cat >conftest.$ac_ext <<_ACEOF
2072
 
#line 2072 "configure"
2073
 
#include "confdefs.h"
 
2956
/* confdefs.h.  */
 
2957
_ACEOF
 
2958
cat confdefs.h >>conftest.$ac_ext
 
2959
cat >>conftest.$ac_ext <<_ACEOF
 
2960
/* end confdefs.h.  */
2074
2961
 
2075
2962
int
2076
2963
main ()
2081
2968
}
2082
2969
_ACEOF
2083
2970
rm -f conftest.$ac_objext
2084
 
if { (eval echo "$as_me:2084: \"$ac_compile\"") >&5
2085
 
  (eval $ac_compile) 2>&5
 
2971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2972
  (eval $ac_compile) 2>conftest.er1
2086
2973
  ac_status=$?
2087
 
  echo "$as_me:2087: \$? = $ac_status" >&5
 
2974
  grep -v '^ *+' conftest.er1 >conftest.err
 
2975
  rm -f conftest.er1
 
2976
  cat conftest.err >&5
 
2977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088
2978
  (exit $ac_status); } &&
2089
 
         { ac_try='test -s conftest.$ac_objext'
2090
 
  { (eval echo "$as_me:2090: \"$ac_try\"") >&5
2091
 
  (eval $ac_try) 2>&5
2092
 
  ac_status=$?
2093
 
  echo "$as_me:2093: \$? = $ac_status" >&5
 
2979
         { ac_try='test -z "$ac_c_werror_flag"
 
2980
                         || test ! -s conftest.err'
 
2981
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2982
  (eval $ac_try) 2>&5
 
2983
  ac_status=$?
 
2984
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2985
  (exit $ac_status); }; } &&
 
2986
         { ac_try='test -s conftest.$ac_objext'
 
2987
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2988
  (eval $ac_try) 2>&5
 
2989
  ac_status=$?
 
2990
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094
2991
  (exit $ac_status); }; }; then
2095
2992
  ac_cv_prog_cc_g=yes
2096
2993
else
2097
2994
  echo "$as_me: failed program was:" >&5
2098
 
cat conftest.$ac_ext >&5
 
2995
sed 's/^/| /' conftest.$ac_ext >&5
 
2996
 
2099
2997
ac_cv_prog_cc_g=no
2100
2998
fi
2101
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
2999
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2102
3000
fi
2103
 
echo "$as_me:2103: result: $ac_cv_prog_cc_g" >&5
 
3001
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2104
3002
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2105
3003
if test "$ac_test_CFLAGS" = set; then
2106
3004
  CFLAGS=$ac_save_CFLAGS
2117
3015
    CFLAGS=
2118
3016
  fi
2119
3017
fi
 
3018
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3019
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3020
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3022
else
 
3023
  ac_cv_prog_cc_stdc=no
 
3024
ac_save_CC=$CC
 
3025
cat >conftest.$ac_ext <<_ACEOF
 
3026
/* confdefs.h.  */
 
3027
_ACEOF
 
3028
cat confdefs.h >>conftest.$ac_ext
 
3029
cat >>conftest.$ac_ext <<_ACEOF
 
3030
/* end confdefs.h.  */
 
3031
#include <stdarg.h>
 
3032
#include <stdio.h>
 
3033
#include <sys/types.h>
 
3034
#include <sys/stat.h>
 
3035
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3036
struct buf { int x; };
 
3037
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3038
static char *e (p, i)
 
3039
     char **p;
 
3040
     int i;
 
3041
{
 
3042
  return p[i];
 
3043
}
 
3044
static char *f (char * (*g) (char **, int), char **p, ...)
 
3045
{
 
3046
  char *s;
 
3047
  va_list v;
 
3048
  va_start (v,p);
 
3049
  s = g (p, va_arg (v,int));
 
3050
  va_end (v);
 
3051
  return s;
 
3052
}
 
3053
 
 
3054
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3055
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3056
   These don't provoke an error unfortunately, instead are silently treated
 
3057
   as 'x'.  The following induces an error, until -std1 is added to get
 
3058
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3059
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3060
   that's true only with -std1.  */
 
3061
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3062
 
 
3063
int test (int i, double x);
 
3064
struct s1 {int (*f) (int a);};
 
3065
struct s2 {int (*f) (double a);};
 
3066
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3067
int argc;
 
3068
char **argv;
 
3069
int
 
3070
main ()
 
3071
{
 
3072
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3073
  ;
 
3074
  return 0;
 
3075
}
 
3076
_ACEOF
 
3077
# Don't try gcc -ansi; that turns off useful extensions and
 
3078
# breaks some systems' header files.
 
3079
# AIX                   -qlanglvl=ansi
 
3080
# Ultrix and OSF/1      -std1
 
3081
# HP-UX 10.20 and later -Ae
 
3082
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3083
# SVR4                  -Xc -D__EXTENSIONS__
 
3084
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3085
do
 
3086
  CC="$ac_save_CC $ac_arg"
 
3087
  rm -f conftest.$ac_objext
 
3088
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3089
  (eval $ac_compile) 2>conftest.er1
 
3090
  ac_status=$?
 
3091
  grep -v '^ *+' conftest.er1 >conftest.err
 
3092
  rm -f conftest.er1
 
3093
  cat conftest.err >&5
 
3094
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3095
  (exit $ac_status); } &&
 
3096
         { ac_try='test -z "$ac_c_werror_flag"
 
3097
                         || test ! -s conftest.err'
 
3098
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3099
  (eval $ac_try) 2>&5
 
3100
  ac_status=$?
 
3101
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3102
  (exit $ac_status); }; } &&
 
3103
         { ac_try='test -s conftest.$ac_objext'
 
3104
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3105
  (eval $ac_try) 2>&5
 
3106
  ac_status=$?
 
3107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3108
  (exit $ac_status); }; }; then
 
3109
  ac_cv_prog_cc_stdc=$ac_arg
 
3110
break
 
3111
else
 
3112
  echo "$as_me: failed program was:" >&5
 
3113
sed 's/^/| /' conftest.$ac_ext >&5
 
3114
 
 
3115
fi
 
3116
rm -f conftest.err conftest.$ac_objext
 
3117
done
 
3118
rm -f conftest.$ac_ext conftest.$ac_objext
 
3119
CC=$ac_save_CC
 
3120
 
 
3121
fi
 
3122
 
 
3123
case "x$ac_cv_prog_cc_stdc" in
 
3124
  x|xno)
 
3125
    echo "$as_me:$LINENO: result: none needed" >&5
 
3126
echo "${ECHO_T}none needed" >&6 ;;
 
3127
  *)
 
3128
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3129
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3130
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3131
esac
 
3132
 
2120
3133
# Some people use a C++ compiler to compile C.  Since we use `exit',
2121
3134
# in C++ we need to declare it.  In case someone uses the same compiler
2122
3135
# for both compiling C and C++ we need to have the C++ compiler decide
2127
3140
#endif
2128
3141
_ACEOF
2129
3142
rm -f conftest.$ac_objext
2130
 
if { (eval echo "$as_me:2130: \"$ac_compile\"") >&5
2131
 
  (eval $ac_compile) 2>&5
 
3143
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3144
  (eval $ac_compile) 2>conftest.er1
2132
3145
  ac_status=$?
2133
 
  echo "$as_me:2133: \$? = $ac_status" >&5
 
3146
  grep -v '^ *+' conftest.er1 >conftest.err
 
3147
  rm -f conftest.er1
 
3148
  cat conftest.err >&5
 
3149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134
3150
  (exit $ac_status); } &&
2135
 
         { ac_try='test -s conftest.$ac_objext'
2136
 
  { (eval echo "$as_me:2136: \"$ac_try\"") >&5
2137
 
  (eval $ac_try) 2>&5
2138
 
  ac_status=$?
2139
 
  echo "$as_me:2139: \$? = $ac_status" >&5
 
3151
         { ac_try='test -z "$ac_c_werror_flag"
 
3152
                         || test ! -s conftest.err'
 
3153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3154
  (eval $ac_try) 2>&5
 
3155
  ac_status=$?
 
3156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3157
  (exit $ac_status); }; } &&
 
3158
         { ac_try='test -s conftest.$ac_objext'
 
3159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3160
  (eval $ac_try) 2>&5
 
3161
  ac_status=$?
 
3162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140
3163
  (exit $ac_status); }; }; then
2141
3164
  for ac_declaration in \
2142
 
   ''\
2143
 
   '#include <stdlib.h>' \
 
3165
   '' \
2144
3166
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2145
3167
   'extern "C" void std::exit (int); using std::exit;' \
2146
3168
   'extern "C" void exit (int) throw ();' \
2148
3170
   'void exit (int);'
2149
3171
do
2150
3172
  cat >conftest.$ac_ext <<_ACEOF
2151
 
#line 2151 "configure"
2152
 
#include "confdefs.h"
 
3173
/* confdefs.h.  */
 
3174
_ACEOF
 
3175
cat confdefs.h >>conftest.$ac_ext
 
3176
cat >>conftest.$ac_ext <<_ACEOF
 
3177
/* end confdefs.h.  */
 
3178
$ac_declaration
2153
3179
#include <stdlib.h>
2154
 
$ac_declaration
2155
3180
int
2156
3181
main ()
2157
3182
{
2161
3186
}
2162
3187
_ACEOF
2163
3188
rm -f conftest.$ac_objext
2164
 
if { (eval echo "$as_me:2164: \"$ac_compile\"") >&5
2165
 
  (eval $ac_compile) 2>&5
 
3189
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3190
  (eval $ac_compile) 2>conftest.er1
2166
3191
  ac_status=$?
2167
 
  echo "$as_me:2167: \$? = $ac_status" >&5
 
3192
  grep -v '^ *+' conftest.er1 >conftest.err
 
3193
  rm -f conftest.er1
 
3194
  cat conftest.err >&5
 
3195
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2168
3196
  (exit $ac_status); } &&
2169
 
         { ac_try='test -s conftest.$ac_objext'
2170
 
  { (eval echo "$as_me:2170: \"$ac_try\"") >&5
2171
 
  (eval $ac_try) 2>&5
2172
 
  ac_status=$?
2173
 
  echo "$as_me:2173: \$? = $ac_status" >&5
 
3197
         { ac_try='test -z "$ac_c_werror_flag"
 
3198
                         || test ! -s conftest.err'
 
3199
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3200
  (eval $ac_try) 2>&5
 
3201
  ac_status=$?
 
3202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3203
  (exit $ac_status); }; } &&
 
3204
         { ac_try='test -s conftest.$ac_objext'
 
3205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3206
  (eval $ac_try) 2>&5
 
3207
  ac_status=$?
 
3208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174
3209
  (exit $ac_status); }; }; then
2175
3210
  :
2176
3211
else
2177
3212
  echo "$as_me: failed program was:" >&5
2178
 
cat conftest.$ac_ext >&5
 
3213
sed 's/^/| /' conftest.$ac_ext >&5
 
3214
 
2179
3215
continue
2180
3216
fi
2181
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3217
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2182
3218
  cat >conftest.$ac_ext <<_ACEOF
2183
 
#line 2183 "configure"
2184
 
#include "confdefs.h"
 
3219
/* confdefs.h.  */
 
3220
_ACEOF
 
3221
cat confdefs.h >>conftest.$ac_ext
 
3222
cat >>conftest.$ac_ext <<_ACEOF
 
3223
/* end confdefs.h.  */
2185
3224
$ac_declaration
2186
3225
int
2187
3226
main ()
2192
3231
}
2193
3232
_ACEOF
2194
3233
rm -f conftest.$ac_objext
2195
 
if { (eval echo "$as_me:2195: \"$ac_compile\"") >&5
2196
 
  (eval $ac_compile) 2>&5
 
3234
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3235
  (eval $ac_compile) 2>conftest.er1
2197
3236
  ac_status=$?
2198
 
  echo "$as_me:2198: \$? = $ac_status" >&5
 
3237
  grep -v '^ *+' conftest.er1 >conftest.err
 
3238
  rm -f conftest.er1
 
3239
  cat conftest.err >&5
 
3240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2199
3241
  (exit $ac_status); } &&
2200
 
         { ac_try='test -s conftest.$ac_objext'
2201
 
  { (eval echo "$as_me:2201: \"$ac_try\"") >&5
2202
 
  (eval $ac_try) 2>&5
2203
 
  ac_status=$?
2204
 
  echo "$as_me:2204: \$? = $ac_status" >&5
 
3242
         { ac_try='test -z "$ac_c_werror_flag"
 
3243
                         || test ! -s conftest.err'
 
3244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3245
  (eval $ac_try) 2>&5
 
3246
  ac_status=$?
 
3247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3248
  (exit $ac_status); }; } &&
 
3249
         { ac_try='test -s conftest.$ac_objext'
 
3250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3251
  (eval $ac_try) 2>&5
 
3252
  ac_status=$?
 
3253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2205
3254
  (exit $ac_status); }; }; then
2206
3255
  break
2207
3256
else
2208
3257
  echo "$as_me: failed program was:" >&5
2209
 
cat conftest.$ac_ext >&5
 
3258
sed 's/^/| /' conftest.$ac_ext >&5
 
3259
 
2210
3260
fi
2211
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3261
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2212
3262
done
2213
3263
rm -f conftest*
2214
3264
if test -n "$ac_declaration"; then
2219
3269
 
2220
3270
else
2221
3271
  echo "$as_me: failed program was:" >&5
2222
 
cat conftest.$ac_ext >&5
 
3272
sed 's/^/| /' conftest.$ac_ext >&5
 
3273
 
2223
3274
fi
2224
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3275
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2225
3276
ac_ext=c
2226
3277
ac_cpp='$CPP $CPPFLAGS'
2227
3278
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2228
3279
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2229
3280
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2230
3281
 
2231
 
        echo "$as_me:2231: checking for strerror in -lcposix" >&5
 
3282
depcc="$CC"   am_compiler_list=
 
3283
 
 
3284
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3285
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3286
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3288
else
 
3289
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3290
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3291
  # making bogus files that we don't know about and never remove.  For
 
3292
  # instance it was reported that on HP-UX the gcc test will end up
 
3293
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3294
  # in D'.
 
3295
  mkdir conftest.dir
 
3296
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3297
  # using a relative directory.
 
3298
  cp "$am_depcomp" conftest.dir
 
3299
  cd conftest.dir
 
3300
  # We will build objects and dependencies in a subdirectory because
 
3301
  # it helps to detect inapplicable dependency modes.  For instance
 
3302
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3303
  # side effect of compilation, but ICC will put the dependencies in
 
3304
  # the current directory while Tru64 will put them in the object
 
3305
  # directory.
 
3306
  mkdir sub
 
3307
 
 
3308
  am_cv_CC_dependencies_compiler_type=none
 
3309
  if test "$am_compiler_list" = ""; then
 
3310
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3311
  fi
 
3312
  for depmode in $am_compiler_list; do
 
3313
    # Setup a source with many dependencies, because some compilers
 
3314
    # like to wrap large dependency lists on column 80 (with \), and
 
3315
    # we should not choose a depcomp mode which is confused by this.
 
3316
    #
 
3317
    # We need to recreate these files for each test, as the compiler may
 
3318
    # overwrite some of them when testing with obscure command lines.
 
3319
    # This happens at least with the AIX C compiler.
 
3320
    : > sub/conftest.c
 
3321
    for i in 1 2 3 4 5 6; do
 
3322
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3323
      : > sub/conftst$i.h
 
3324
    done
 
3325
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3326
 
 
3327
    case $depmode in
 
3328
    nosideeffect)
 
3329
      # after this tag, mechanisms are not by side-effect, so they'll
 
3330
      # only be used when explicitly requested
 
3331
      if test "x$enable_dependency_tracking" = xyes; then
 
3332
        continue
 
3333
      else
 
3334
        break
 
3335
      fi
 
3336
      ;;
 
3337
    none) break ;;
 
3338
    esac
 
3339
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3340
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3341
    # handle `-M -o', and we need to detect this.
 
3342
    if depmode=$depmode \
 
3343
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3344
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3345
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3346
         >/dev/null 2>conftest.err &&
 
3347
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3348
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3349
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3350
      # icc doesn't choke on unknown options, it will just issue warnings
 
3351
      # (even with -Werror).  So we grep stderr for any message
 
3352
      # that says an option was ignored.
 
3353
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
3354
        am_cv_CC_dependencies_compiler_type=$depmode
 
3355
        break
 
3356
      fi
 
3357
    fi
 
3358
  done
 
3359
 
 
3360
  cd ..
 
3361
  rm -rf conftest.dir
 
3362
else
 
3363
  am_cv_CC_dependencies_compiler_type=none
 
3364
fi
 
3365
 
 
3366
fi
 
3367
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3368
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3369
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3370
 
 
3371
 
 
3372
 
 
3373
if
 
3374
  test "x$enable_dependency_tracking" != xno \
 
3375
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3376
  am__fastdepCC_TRUE=
 
3377
  am__fastdepCC_FALSE='#'
 
3378
else
 
3379
  am__fastdepCC_TRUE='#'
 
3380
  am__fastdepCC_FALSE=
 
3381
fi
 
3382
 
 
3383
 
 
3384
 
 
3385
 
 
3386
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
2232
3387
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
2233
3388
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
2234
3389
  echo $ECHO_N "(cached) $ECHO_C" >&6
2236
3391
  ac_check_lib_save_LIBS=$LIBS
2237
3392
LIBS="-lcposix  $LIBS"
2238
3393
cat >conftest.$ac_ext <<_ACEOF
2239
 
#line 2239 "configure"
2240
 
#include "confdefs.h"
 
3394
/* confdefs.h.  */
 
3395
_ACEOF
 
3396
cat confdefs.h >>conftest.$ac_ext
 
3397
cat >>conftest.$ac_ext <<_ACEOF
 
3398
/* end confdefs.h.  */
2241
3399
 
2242
3400
/* Override any gcc2 internal prototype to avoid an error.  */
2243
3401
#ifdef __cplusplus
2255
3413
}
2256
3414
_ACEOF
2257
3415
rm -f conftest.$ac_objext conftest$ac_exeext
2258
 
if { (eval echo "$as_me:2258: \"$ac_link\"") >&5
2259
 
  (eval $ac_link) 2>&5
 
3416
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3417
  (eval $ac_link) 2>conftest.er1
2260
3418
  ac_status=$?
2261
 
  echo "$as_me:2261: \$? = $ac_status" >&5
 
3419
  grep -v '^ *+' conftest.er1 >conftest.err
 
3420
  rm -f conftest.er1
 
3421
  cat conftest.err >&5
 
3422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262
3423
  (exit $ac_status); } &&
2263
 
         { ac_try='test -s conftest$ac_exeext'
2264
 
  { (eval echo "$as_me:2264: \"$ac_try\"") >&5
2265
 
  (eval $ac_try) 2>&5
2266
 
  ac_status=$?
2267
 
  echo "$as_me:2267: \$? = $ac_status" >&5
 
3424
         { ac_try='test -z "$ac_c_werror_flag"
 
3425
                         || test ! -s conftest.err'
 
3426
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3427
  (eval $ac_try) 2>&5
 
3428
  ac_status=$?
 
3429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3430
  (exit $ac_status); }; } &&
 
3431
         { ac_try='test -s conftest$ac_exeext'
 
3432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3433
  (eval $ac_try) 2>&5
 
3434
  ac_status=$?
 
3435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268
3436
  (exit $ac_status); }; }; then
2269
3437
  ac_cv_lib_cposix_strerror=yes
2270
3438
else
2271
3439
  echo "$as_me: failed program was:" >&5
2272
 
cat conftest.$ac_ext >&5
 
3440
sed 's/^/| /' conftest.$ac_ext >&5
 
3441
 
2273
3442
ac_cv_lib_cposix_strerror=no
2274
3443
fi
2275
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3444
rm -f conftest.err conftest.$ac_objext \
 
3445
      conftest$ac_exeext conftest.$ac_ext
2276
3446
LIBS=$ac_check_lib_save_LIBS
2277
3447
fi
2278
 
echo "$as_me:2278: result: $ac_cv_lib_cposix_strerror" >&5
 
3448
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
2279
3449
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
2280
3450
if test $ac_cv_lib_cposix_strerror = yes; then
2281
3451
  LIBS="$LIBS -lcposix"
2282
3452
fi
2283
3453
 
 
3454
 
 
3455
 
2284
3456
ac_ext=c
2285
3457
ac_cpp='$CPP $CPPFLAGS'
2286
3458
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2289
3461
if test -n "$ac_tool_prefix"; then
2290
3462
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2291
3463
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2292
 
echo "$as_me:2292: checking for $ac_word" >&5
 
3464
echo "$as_me:$LINENO: checking for $ac_word" >&5
2293
3465
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294
3466
if test "${ac_cv_prog_CC+set}" = set; then
2295
3467
  echo $ECHO_N "(cached) $ECHO_C" >&6
2297
3469
  if test -n "$CC"; then
2298
3470
  ac_cv_prog_CC="$CC" # Let the user override the test.
2299
3471
else
2300
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2301
 
ac_dummy="$PATH"
2302
 
for ac_dir in $ac_dummy; do
2303
 
  IFS=$ac_save_IFS
2304
 
  test -z "$ac_dir" && ac_dir=.
2305
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2306
 
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2307
 
echo "$as_me:2307: found $ac_dir/$ac_word" >&5
2308
 
break
 
3472
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3473
for as_dir in $PATH
 
3474
do
 
3475
  IFS=$as_save_IFS
 
3476
  test -z "$as_dir" && as_dir=.
 
3477
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3478
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3479
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3480
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3481
    break 2
 
3482
  fi
 
3483
done
2309
3484
done
2310
3485
 
2311
3486
fi
2312
3487
fi
2313
3488
CC=$ac_cv_prog_CC
2314
3489
if test -n "$CC"; then
2315
 
  echo "$as_me:2315: result: $CC" >&5
 
3490
  echo "$as_me:$LINENO: result: $CC" >&5
2316
3491
echo "${ECHO_T}$CC" >&6
2317
3492
else
2318
 
  echo "$as_me:2318: result: no" >&5
 
3493
  echo "$as_me:$LINENO: result: no" >&5
2319
3494
echo "${ECHO_T}no" >&6
2320
3495
fi
2321
3496
 
2324
3499
  ac_ct_CC=$CC
2325
3500
  # Extract the first word of "gcc", so it can be a program name with args.
2326
3501
set dummy gcc; ac_word=$2
2327
 
echo "$as_me:2327: checking for $ac_word" >&5
 
3502
echo "$as_me:$LINENO: checking for $ac_word" >&5
2328
3503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2329
3504
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2330
3505
  echo $ECHO_N "(cached) $ECHO_C" >&6
2332
3507
  if test -n "$ac_ct_CC"; then
2333
3508
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2334
3509
else
2335
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2336
 
ac_dummy="$PATH"
2337
 
for ac_dir in $ac_dummy; do
2338
 
  IFS=$ac_save_IFS
2339
 
  test -z "$ac_dir" && ac_dir=.
2340
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2341
 
ac_cv_prog_ac_ct_CC="gcc"
2342
 
echo "$as_me:2342: found $ac_dir/$ac_word" >&5
2343
 
break
 
3510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3511
for as_dir in $PATH
 
3512
do
 
3513
  IFS=$as_save_IFS
 
3514
  test -z "$as_dir" && as_dir=.
 
3515
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3516
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3517
    ac_cv_prog_ac_ct_CC="gcc"
 
3518
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3519
    break 2
 
3520
  fi
 
3521
done
2344
3522
done
2345
3523
 
2346
3524
fi
2347
3525
fi
2348
3526
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2349
3527
if test -n "$ac_ct_CC"; then
2350
 
  echo "$as_me:2350: result: $ac_ct_CC" >&5
 
3528
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2351
3529
echo "${ECHO_T}$ac_ct_CC" >&6
2352
3530
else
2353
 
  echo "$as_me:2353: result: no" >&5
 
3531
  echo "$as_me:$LINENO: result: no" >&5
2354
3532
echo "${ECHO_T}no" >&6
2355
3533
fi
2356
3534
 
2363
3541
  if test -n "$ac_tool_prefix"; then
2364
3542
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2365
3543
set dummy ${ac_tool_prefix}cc; ac_word=$2
2366
 
echo "$as_me:2366: checking for $ac_word" >&5
 
3544
echo "$as_me:$LINENO: checking for $ac_word" >&5
2367
3545
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2368
3546
if test "${ac_cv_prog_CC+set}" = set; then
2369
3547
  echo $ECHO_N "(cached) $ECHO_C" >&6
2371
3549
  if test -n "$CC"; then
2372
3550
  ac_cv_prog_CC="$CC" # Let the user override the test.
2373
3551
else
2374
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2375
 
ac_dummy="$PATH"
2376
 
for ac_dir in $ac_dummy; do
2377
 
  IFS=$ac_save_IFS
2378
 
  test -z "$ac_dir" && ac_dir=.
2379
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2380
 
ac_cv_prog_CC="${ac_tool_prefix}cc"
2381
 
echo "$as_me:2381: found $ac_dir/$ac_word" >&5
2382
 
break
 
3552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3553
for as_dir in $PATH
 
3554
do
 
3555
  IFS=$as_save_IFS
 
3556
  test -z "$as_dir" && as_dir=.
 
3557
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3558
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3559
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3560
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3561
    break 2
 
3562
  fi
 
3563
done
2383
3564
done
2384
3565
 
2385
3566
fi
2386
3567
fi
2387
3568
CC=$ac_cv_prog_CC
2388
3569
if test -n "$CC"; then
2389
 
  echo "$as_me:2389: result: $CC" >&5
 
3570
  echo "$as_me:$LINENO: result: $CC" >&5
2390
3571
echo "${ECHO_T}$CC" >&6
2391
3572
else
2392
 
  echo "$as_me:2392: result: no" >&5
 
3573
  echo "$as_me:$LINENO: result: no" >&5
2393
3574
echo "${ECHO_T}no" >&6
2394
3575
fi
2395
3576
 
2398
3579
  ac_ct_CC=$CC
2399
3580
  # Extract the first word of "cc", so it can be a program name with args.
2400
3581
set dummy cc; ac_word=$2
2401
 
echo "$as_me:2401: checking for $ac_word" >&5
 
3582
echo "$as_me:$LINENO: checking for $ac_word" >&5
2402
3583
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2403
3584
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2404
3585
  echo $ECHO_N "(cached) $ECHO_C" >&6
2406
3587
  if test -n "$ac_ct_CC"; then
2407
3588
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2408
3589
else
2409
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2410
 
ac_dummy="$PATH"
2411
 
for ac_dir in $ac_dummy; do
2412
 
  IFS=$ac_save_IFS
2413
 
  test -z "$ac_dir" && ac_dir=.
2414
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2415
 
ac_cv_prog_ac_ct_CC="cc"
2416
 
echo "$as_me:2416: found $ac_dir/$ac_word" >&5
2417
 
break
 
3590
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3591
for as_dir in $PATH
 
3592
do
 
3593
  IFS=$as_save_IFS
 
3594
  test -z "$as_dir" && as_dir=.
 
3595
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3596
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3597
    ac_cv_prog_ac_ct_CC="cc"
 
3598
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3599
    break 2
 
3600
  fi
 
3601
done
2418
3602
done
2419
3603
 
2420
3604
fi
2421
3605
fi
2422
3606
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2423
3607
if test -n "$ac_ct_CC"; then
2424
 
  echo "$as_me:2424: result: $ac_ct_CC" >&5
 
3608
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2425
3609
echo "${ECHO_T}$ac_ct_CC" >&6
2426
3610
else
2427
 
  echo "$as_me:2427: result: no" >&5
 
3611
  echo "$as_me:$LINENO: result: no" >&5
2428
3612
echo "${ECHO_T}no" >&6
2429
3613
fi
2430
3614
 
2437
3621
if test -z "$CC"; then
2438
3622
  # Extract the first word of "cc", so it can be a program name with args.
2439
3623
set dummy cc; ac_word=$2
2440
 
echo "$as_me:2440: checking for $ac_word" >&5
 
3624
echo "$as_me:$LINENO: checking for $ac_word" >&5
2441
3625
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2442
3626
if test "${ac_cv_prog_CC+set}" = set; then
2443
3627
  echo $ECHO_N "(cached) $ECHO_C" >&6
2446
3630
  ac_cv_prog_CC="$CC" # Let the user override the test.
2447
3631
else
2448
3632
  ac_prog_rejected=no
2449
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2450
 
ac_dummy="$PATH"
2451
 
for ac_dir in $ac_dummy; do
2452
 
  IFS=$ac_save_IFS
2453
 
  test -z "$ac_dir" && ac_dir=.
2454
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2455
 
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
2456
 
  ac_prog_rejected=yes
2457
 
  continue
2458
 
fi
2459
 
ac_cv_prog_CC="cc"
2460
 
echo "$as_me:2460: found $ac_dir/$ac_word" >&5
2461
 
break
 
3633
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3634
for as_dir in $PATH
 
3635
do
 
3636
  IFS=$as_save_IFS
 
3637
  test -z "$as_dir" && as_dir=.
 
3638
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3639
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3640
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3641
       ac_prog_rejected=yes
 
3642
       continue
 
3643
     fi
 
3644
    ac_cv_prog_CC="cc"
 
3645
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3646
    break 2
 
3647
  fi
 
3648
done
2462
3649
done
2463
3650
 
2464
3651
if test $ac_prog_rejected = yes; then
2470
3657
    # However, it has the same basename, so the bogon will be chosen
2471
3658
    # first if we set CC to just the basename; use the full file name.
2472
3659
    shift
2473
 
    set dummy "$ac_dir/$ac_word" ${1+"$@"}
2474
 
    shift
2475
 
    ac_cv_prog_CC="$@"
 
3660
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2476
3661
  fi
2477
3662
fi
2478
3663
fi
2479
3664
fi
2480
3665
CC=$ac_cv_prog_CC
2481
3666
if test -n "$CC"; then
2482
 
  echo "$as_me:2482: result: $CC" >&5
 
3667
  echo "$as_me:$LINENO: result: $CC" >&5
2483
3668
echo "${ECHO_T}$CC" >&6
2484
3669
else
2485
 
  echo "$as_me:2485: result: no" >&5
 
3670
  echo "$as_me:$LINENO: result: no" >&5
2486
3671
echo "${ECHO_T}no" >&6
2487
3672
fi
2488
3673
 
2493
3678
  do
2494
3679
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2495
3680
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2496
 
echo "$as_me:2496: checking for $ac_word" >&5
 
3681
echo "$as_me:$LINENO: checking for $ac_word" >&5
2497
3682
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2498
3683
if test "${ac_cv_prog_CC+set}" = set; then
2499
3684
  echo $ECHO_N "(cached) $ECHO_C" >&6
2501
3686
  if test -n "$CC"; then
2502
3687
  ac_cv_prog_CC="$CC" # Let the user override the test.
2503
3688
else
2504
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2505
 
ac_dummy="$PATH"
2506
 
for ac_dir in $ac_dummy; do
2507
 
  IFS=$ac_save_IFS
2508
 
  test -z "$ac_dir" && ac_dir=.
2509
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2510
 
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2511
 
echo "$as_me:2511: found $ac_dir/$ac_word" >&5
2512
 
break
 
3689
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3690
for as_dir in $PATH
 
3691
do
 
3692
  IFS=$as_save_IFS
 
3693
  test -z "$as_dir" && as_dir=.
 
3694
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3695
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3696
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3697
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3698
    break 2
 
3699
  fi
 
3700
done
2513
3701
done
2514
3702
 
2515
3703
fi
2516
3704
fi
2517
3705
CC=$ac_cv_prog_CC
2518
3706
if test -n "$CC"; then
2519
 
  echo "$as_me:2519: result: $CC" >&5
 
3707
  echo "$as_me:$LINENO: result: $CC" >&5
2520
3708
echo "${ECHO_T}$CC" >&6
2521
3709
else
2522
 
  echo "$as_me:2522: result: no" >&5
 
3710
  echo "$as_me:$LINENO: result: no" >&5
2523
3711
echo "${ECHO_T}no" >&6
2524
3712
fi
2525
3713
 
2532
3720
do
2533
3721
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2534
3722
set dummy $ac_prog; ac_word=$2
2535
 
echo "$as_me:2535: checking for $ac_word" >&5
 
3723
echo "$as_me:$LINENO: checking for $ac_word" >&5
2536
3724
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2537
3725
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2538
3726
  echo $ECHO_N "(cached) $ECHO_C" >&6
2540
3728
  if test -n "$ac_ct_CC"; then
2541
3729
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2542
3730
else
2543
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
2544
 
ac_dummy="$PATH"
2545
 
for ac_dir in $ac_dummy; do
2546
 
  IFS=$ac_save_IFS
2547
 
  test -z "$ac_dir" && ac_dir=.
2548
 
  $as_executable_p "$ac_dir/$ac_word" || continue
2549
 
ac_cv_prog_ac_ct_CC="$ac_prog"
2550
 
echo "$as_me:2550: found $ac_dir/$ac_word" >&5
2551
 
break
 
3731
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3732
for as_dir in $PATH
 
3733
do
 
3734
  IFS=$as_save_IFS
 
3735
  test -z "$as_dir" && as_dir=.
 
3736
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3737
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3738
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3739
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3740
    break 2
 
3741
  fi
 
3742
done
2552
3743
done
2553
3744
 
2554
3745
fi
2555
3746
fi
2556
3747
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2557
3748
if test -n "$ac_ct_CC"; then
2558
 
  echo "$as_me:2558: result: $ac_ct_CC" >&5
 
3749
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2559
3750
echo "${ECHO_T}$ac_ct_CC" >&6
2560
3751
else
2561
 
  echo "$as_me:2561: result: no" >&5
 
3752
  echo "$as_me:$LINENO: result: no" >&5
2562
3753
echo "${ECHO_T}no" >&6
2563
3754
fi
2564
3755
 
2570
3761
 
2571
3762
fi
2572
3763
 
2573
 
test -z "$CC" && { { echo "$as_me:2573: error: no acceptable cc found in \$PATH" >&5
2574
 
echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
 
3764
 
 
3765
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3766
See \`config.log' for more details." >&5
 
3767
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3768
See \`config.log' for more details." >&2;}
2575
3769
   { (exit 1); exit 1; }; }
2576
3770
 
2577
3771
# Provide some information about the compiler.
2578
 
echo "$as_me:2578:" \
 
3772
echo "$as_me:$LINENO:" \
2579
3773
     "checking for C compiler version" >&5
2580
3774
ac_compiler=`set X $ac_compile; echo $2`
2581
 
{ (eval echo "$as_me:2581: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3775
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2582
3776
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2583
3777
  ac_status=$?
2584
 
  echo "$as_me:2584: \$? = $ac_status" >&5
 
3778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585
3779
  (exit $ac_status); }
2586
 
{ (eval echo "$as_me:2586: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3780
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2587
3781
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2588
3782
  ac_status=$?
2589
 
  echo "$as_me:2589: \$? = $ac_status" >&5
 
3783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590
3784
  (exit $ac_status); }
2591
 
{ (eval echo "$as_me:2591: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3785
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2592
3786
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2593
3787
  ac_status=$?
2594
 
  echo "$as_me:2594: \$? = $ac_status" >&5
 
3788
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
3789
  (exit $ac_status); }
2596
3790
 
2597
 
echo "$as_me:2597: checking whether we are using the GNU C compiler" >&5
 
3791
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2598
3792
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2599
3793
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2600
3794
  echo $ECHO_N "(cached) $ECHO_C" >&6
2601
3795
else
2602
3796
  cat >conftest.$ac_ext <<_ACEOF
2603
 
#line 2603 "configure"
2604
 
#include "confdefs.h"
 
3797
/* confdefs.h.  */
 
3798
_ACEOF
 
3799
cat confdefs.h >>conftest.$ac_ext
 
3800
cat >>conftest.$ac_ext <<_ACEOF
 
3801
/* end confdefs.h.  */
2605
3802
 
2606
3803
int
2607
3804
main ()
2615
3812
}
2616
3813
_ACEOF
2617
3814
rm -f conftest.$ac_objext
2618
 
if { (eval echo "$as_me:2618: \"$ac_compile\"") >&5
2619
 
  (eval $ac_compile) 2>&5
 
3815
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3816
  (eval $ac_compile) 2>conftest.er1
2620
3817
  ac_status=$?
2621
 
  echo "$as_me:2621: \$? = $ac_status" >&5
 
3818
  grep -v '^ *+' conftest.er1 >conftest.err
 
3819
  rm -f conftest.er1
 
3820
  cat conftest.err >&5
 
3821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622
3822
  (exit $ac_status); } &&
2623
 
         { ac_try='test -s conftest.$ac_objext'
2624
 
  { (eval echo "$as_me:2624: \"$ac_try\"") >&5
2625
 
  (eval $ac_try) 2>&5
2626
 
  ac_status=$?
2627
 
  echo "$as_me:2627: \$? = $ac_status" >&5
 
3823
         { ac_try='test -z "$ac_c_werror_flag"
 
3824
                         || test ! -s conftest.err'
 
3825
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3826
  (eval $ac_try) 2>&5
 
3827
  ac_status=$?
 
3828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3829
  (exit $ac_status); }; } &&
 
3830
         { ac_try='test -s conftest.$ac_objext'
 
3831
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3832
  (eval $ac_try) 2>&5
 
3833
  ac_status=$?
 
3834
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
3835
  (exit $ac_status); }; }; then
2629
3836
  ac_compiler_gnu=yes
2630
3837
else
2631
3838
  echo "$as_me: failed program was:" >&5
2632
 
cat conftest.$ac_ext >&5
 
3839
sed 's/^/| /' conftest.$ac_ext >&5
 
3840
 
2633
3841
ac_compiler_gnu=no
2634
3842
fi
2635
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3843
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2636
3844
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2637
3845
 
2638
3846
fi
2639
 
echo "$as_me:2639: result: $ac_cv_c_compiler_gnu" >&5
 
3847
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2640
3848
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2641
3849
GCC=`test $ac_compiler_gnu = yes && echo yes`
2642
3850
ac_test_CFLAGS=${CFLAGS+set}
2643
3851
ac_save_CFLAGS=$CFLAGS
2644
3852
CFLAGS="-g"
2645
 
echo "$as_me:2645: checking whether $CC accepts -g" >&5
 
3853
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2646
3854
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2647
3855
if test "${ac_cv_prog_cc_g+set}" = set; then
2648
3856
  echo $ECHO_N "(cached) $ECHO_C" >&6
2649
3857
else
2650
3858
  cat >conftest.$ac_ext <<_ACEOF
2651
 
#line 2651 "configure"
2652
 
#include "confdefs.h"
 
3859
/* confdefs.h.  */
 
3860
_ACEOF
 
3861
cat confdefs.h >>conftest.$ac_ext
 
3862
cat >>conftest.$ac_ext <<_ACEOF
 
3863
/* end confdefs.h.  */
2653
3864
 
2654
3865
int
2655
3866
main ()
2660
3871
}
2661
3872
_ACEOF
2662
3873
rm -f conftest.$ac_objext
2663
 
if { (eval echo "$as_me:2663: \"$ac_compile\"") >&5
2664
 
  (eval $ac_compile) 2>&5
 
3874
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3875
  (eval $ac_compile) 2>conftest.er1
2665
3876
  ac_status=$?
2666
 
  echo "$as_me:2666: \$? = $ac_status" >&5
 
3877
  grep -v '^ *+' conftest.er1 >conftest.err
 
3878
  rm -f conftest.er1
 
3879
  cat conftest.err >&5
 
3880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667
3881
  (exit $ac_status); } &&
2668
 
         { ac_try='test -s conftest.$ac_objext'
2669
 
  { (eval echo "$as_me:2669: \"$ac_try\"") >&5
2670
 
  (eval $ac_try) 2>&5
2671
 
  ac_status=$?
2672
 
  echo "$as_me:2672: \$? = $ac_status" >&5
 
3882
         { ac_try='test -z "$ac_c_werror_flag"
 
3883
                         || test ! -s conftest.err'
 
3884
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3885
  (eval $ac_try) 2>&5
 
3886
  ac_status=$?
 
3887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3888
  (exit $ac_status); }; } &&
 
3889
         { ac_try='test -s conftest.$ac_objext'
 
3890
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3891
  (eval $ac_try) 2>&5
 
3892
  ac_status=$?
 
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673
3894
  (exit $ac_status); }; }; then
2674
3895
  ac_cv_prog_cc_g=yes
2675
3896
else
2676
3897
  echo "$as_me: failed program was:" >&5
2677
 
cat conftest.$ac_ext >&5
 
3898
sed 's/^/| /' conftest.$ac_ext >&5
 
3899
 
2678
3900
ac_cv_prog_cc_g=no
2679
3901
fi
2680
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
3902
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2681
3903
fi
2682
 
echo "$as_me:2682: result: $ac_cv_prog_cc_g" >&5
 
3904
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2683
3905
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2684
3906
if test "$ac_test_CFLAGS" = set; then
2685
3907
  CFLAGS=$ac_save_CFLAGS
2696
3918
    CFLAGS=
2697
3919
  fi
2698
3920
fi
 
3921
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3922
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3923
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3924
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3925
else
 
3926
  ac_cv_prog_cc_stdc=no
 
3927
ac_save_CC=$CC
 
3928
cat >conftest.$ac_ext <<_ACEOF
 
3929
/* confdefs.h.  */
 
3930
_ACEOF
 
3931
cat confdefs.h >>conftest.$ac_ext
 
3932
cat >>conftest.$ac_ext <<_ACEOF
 
3933
/* end confdefs.h.  */
 
3934
#include <stdarg.h>
 
3935
#include <stdio.h>
 
3936
#include <sys/types.h>
 
3937
#include <sys/stat.h>
 
3938
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3939
struct buf { int x; };
 
3940
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3941
static char *e (p, i)
 
3942
     char **p;
 
3943
     int i;
 
3944
{
 
3945
  return p[i];
 
3946
}
 
3947
static char *f (char * (*g) (char **, int), char **p, ...)
 
3948
{
 
3949
  char *s;
 
3950
  va_list v;
 
3951
  va_start (v,p);
 
3952
  s = g (p, va_arg (v,int));
 
3953
  va_end (v);
 
3954
  return s;
 
3955
}
 
3956
 
 
3957
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3958
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3959
   These don't provoke an error unfortunately, instead are silently treated
 
3960
   as 'x'.  The following induces an error, until -std1 is added to get
 
3961
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3962
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3963
   that's true only with -std1.  */
 
3964
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3965
 
 
3966
int test (int i, double x);
 
3967
struct s1 {int (*f) (int a);};
 
3968
struct s2 {int (*f) (double a);};
 
3969
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3970
int argc;
 
3971
char **argv;
 
3972
int
 
3973
main ()
 
3974
{
 
3975
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3976
  ;
 
3977
  return 0;
 
3978
}
 
3979
_ACEOF
 
3980
# Don't try gcc -ansi; that turns off useful extensions and
 
3981
# breaks some systems' header files.
 
3982
# AIX                   -qlanglvl=ansi
 
3983
# Ultrix and OSF/1      -std1
 
3984
# HP-UX 10.20 and later -Ae
 
3985
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3986
# SVR4                  -Xc -D__EXTENSIONS__
 
3987
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3988
do
 
3989
  CC="$ac_save_CC $ac_arg"
 
3990
  rm -f conftest.$ac_objext
 
3991
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3992
  (eval $ac_compile) 2>conftest.er1
 
3993
  ac_status=$?
 
3994
  grep -v '^ *+' conftest.er1 >conftest.err
 
3995
  rm -f conftest.er1
 
3996
  cat conftest.err >&5
 
3997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3998
  (exit $ac_status); } &&
 
3999
         { ac_try='test -z "$ac_c_werror_flag"
 
4000
                         || test ! -s conftest.err'
 
4001
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4002
  (eval $ac_try) 2>&5
 
4003
  ac_status=$?
 
4004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4005
  (exit $ac_status); }; } &&
 
4006
         { ac_try='test -s conftest.$ac_objext'
 
4007
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4008
  (eval $ac_try) 2>&5
 
4009
  ac_status=$?
 
4010
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4011
  (exit $ac_status); }; }; then
 
4012
  ac_cv_prog_cc_stdc=$ac_arg
 
4013
break
 
4014
else
 
4015
  echo "$as_me: failed program was:" >&5
 
4016
sed 's/^/| /' conftest.$ac_ext >&5
 
4017
 
 
4018
fi
 
4019
rm -f conftest.err conftest.$ac_objext
 
4020
done
 
4021
rm -f conftest.$ac_ext conftest.$ac_objext
 
4022
CC=$ac_save_CC
 
4023
 
 
4024
fi
 
4025
 
 
4026
case "x$ac_cv_prog_cc_stdc" in
 
4027
  x|xno)
 
4028
    echo "$as_me:$LINENO: result: none needed" >&5
 
4029
echo "${ECHO_T}none needed" >&6 ;;
 
4030
  *)
 
4031
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
4032
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
4033
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
4034
esac
 
4035
 
2699
4036
# Some people use a C++ compiler to compile C.  Since we use `exit',
2700
4037
# in C++ we need to declare it.  In case someone uses the same compiler
2701
4038
# for both compiling C and C++ we need to have the C++ compiler decide
2706
4043
#endif
2707
4044
_ACEOF
2708
4045
rm -f conftest.$ac_objext
2709
 
if { (eval echo "$as_me:2709: \"$ac_compile\"") >&5
2710
 
  (eval $ac_compile) 2>&5
 
4046
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4047
  (eval $ac_compile) 2>conftest.er1
2711
4048
  ac_status=$?
2712
 
  echo "$as_me:2712: \$? = $ac_status" >&5
 
4049
  grep -v '^ *+' conftest.er1 >conftest.err
 
4050
  rm -f conftest.er1
 
4051
  cat conftest.err >&5
 
4052
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713
4053
  (exit $ac_status); } &&
2714
 
         { ac_try='test -s conftest.$ac_objext'
2715
 
  { (eval echo "$as_me:2715: \"$ac_try\"") >&5
2716
 
  (eval $ac_try) 2>&5
2717
 
  ac_status=$?
2718
 
  echo "$as_me:2718: \$? = $ac_status" >&5
 
4054
         { ac_try='test -z "$ac_c_werror_flag"
 
4055
                         || test ! -s conftest.err'
 
4056
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4057
  (eval $ac_try) 2>&5
 
4058
  ac_status=$?
 
4059
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4060
  (exit $ac_status); }; } &&
 
4061
         { ac_try='test -s conftest.$ac_objext'
 
4062
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4063
  (eval $ac_try) 2>&5
 
4064
  ac_status=$?
 
4065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719
4066
  (exit $ac_status); }; }; then
2720
4067
  for ac_declaration in \
2721
 
   ''\
2722
 
   '#include <stdlib.h>' \
 
4068
   '' \
2723
4069
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2724
4070
   'extern "C" void std::exit (int); using std::exit;' \
2725
4071
   'extern "C" void exit (int) throw ();' \
2727
4073
   'void exit (int);'
2728
4074
do
2729
4075
  cat >conftest.$ac_ext <<_ACEOF
2730
 
#line 2730 "configure"
2731
 
#include "confdefs.h"
 
4076
/* confdefs.h.  */
 
4077
_ACEOF
 
4078
cat confdefs.h >>conftest.$ac_ext
 
4079
cat >>conftest.$ac_ext <<_ACEOF
 
4080
/* end confdefs.h.  */
 
4081
$ac_declaration
2732
4082
#include <stdlib.h>
2733
 
$ac_declaration
2734
4083
int
2735
4084
main ()
2736
4085
{
2740
4089
}
2741
4090
_ACEOF
2742
4091
rm -f conftest.$ac_objext
2743
 
if { (eval echo "$as_me:2743: \"$ac_compile\"") >&5
2744
 
  (eval $ac_compile) 2>&5
 
4092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4093
  (eval $ac_compile) 2>conftest.er1
2745
4094
  ac_status=$?
2746
 
  echo "$as_me:2746: \$? = $ac_status" >&5
 
4095
  grep -v '^ *+' conftest.er1 >conftest.err
 
4096
  rm -f conftest.er1
 
4097
  cat conftest.err >&5
 
4098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2747
4099
  (exit $ac_status); } &&
2748
 
         { ac_try='test -s conftest.$ac_objext'
2749
 
  { (eval echo "$as_me:2749: \"$ac_try\"") >&5
2750
 
  (eval $ac_try) 2>&5
2751
 
  ac_status=$?
2752
 
  echo "$as_me:2752: \$? = $ac_status" >&5
 
4100
         { ac_try='test -z "$ac_c_werror_flag"
 
4101
                         || test ! -s conftest.err'
 
4102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4103
  (eval $ac_try) 2>&5
 
4104
  ac_status=$?
 
4105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4106
  (exit $ac_status); }; } &&
 
4107
         { ac_try='test -s conftest.$ac_objext'
 
4108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4109
  (eval $ac_try) 2>&5
 
4110
  ac_status=$?
 
4111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753
4112
  (exit $ac_status); }; }; then
2754
4113
  :
2755
4114
else
2756
4115
  echo "$as_me: failed program was:" >&5
2757
 
cat conftest.$ac_ext >&5
 
4116
sed 's/^/| /' conftest.$ac_ext >&5
 
4117
 
2758
4118
continue
2759
4119
fi
2760
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4120
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2761
4121
  cat >conftest.$ac_ext <<_ACEOF
2762
 
#line 2762 "configure"
2763
 
#include "confdefs.h"
 
4122
/* confdefs.h.  */
 
4123
_ACEOF
 
4124
cat confdefs.h >>conftest.$ac_ext
 
4125
cat >>conftest.$ac_ext <<_ACEOF
 
4126
/* end confdefs.h.  */
2764
4127
$ac_declaration
2765
4128
int
2766
4129
main ()
2771
4134
}
2772
4135
_ACEOF
2773
4136
rm -f conftest.$ac_objext
2774
 
if { (eval echo "$as_me:2774: \"$ac_compile\"") >&5
2775
 
  (eval $ac_compile) 2>&5
 
4137
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4138
  (eval $ac_compile) 2>conftest.er1
2776
4139
  ac_status=$?
2777
 
  echo "$as_me:2777: \$? = $ac_status" >&5
 
4140
  grep -v '^ *+' conftest.er1 >conftest.err
 
4141
  rm -f conftest.er1
 
4142
  cat conftest.err >&5
 
4143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778
4144
  (exit $ac_status); } &&
2779
 
         { ac_try='test -s conftest.$ac_objext'
2780
 
  { (eval echo "$as_me:2780: \"$ac_try\"") >&5
2781
 
  (eval $ac_try) 2>&5
2782
 
  ac_status=$?
2783
 
  echo "$as_me:2783: \$? = $ac_status" >&5
 
4145
         { ac_try='test -z "$ac_c_werror_flag"
 
4146
                         || test ! -s conftest.err'
 
4147
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4148
  (eval $ac_try) 2>&5
 
4149
  ac_status=$?
 
4150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4151
  (exit $ac_status); }; } &&
 
4152
         { ac_try='test -s conftest.$ac_objext'
 
4153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4154
  (eval $ac_try) 2>&5
 
4155
  ac_status=$?
 
4156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784
4157
  (exit $ac_status); }; }; then
2785
4158
  break
2786
4159
else
2787
4160
  echo "$as_me: failed program was:" >&5
2788
 
cat conftest.$ac_ext >&5
 
4161
sed 's/^/| /' conftest.$ac_ext >&5
 
4162
 
2789
4163
fi
2790
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
4164
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2791
4165
done
2792
4166
rm -f conftest*
2793
4167
if test -n "$ac_declaration"; then
2798
4172
 
2799
4173
else
2800
4174
  echo "$as_me: failed program was:" >&5
2801
 
cat conftest.$ac_ext >&5
2802
 
fi
2803
 
rm -f conftest.$ac_objext conftest.$ac_ext
2804
 
ac_ext=c
2805
 
ac_cpp='$CPP $CPPFLAGS'
2806
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2807
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2808
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2809
 
 
2810
 
ac_ext=c
2811
 
ac_cpp='$CPP $CPPFLAGS'
2812
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2813
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2814
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2815
 
echo "$as_me:2815: checking how to run the C preprocessor" >&5
 
4175
sed 's/^/| /' conftest.$ac_ext >&5
 
4176
 
 
4177
fi
 
4178
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4179
ac_ext=c
 
4180
ac_cpp='$CPP $CPPFLAGS'
 
4181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4184
 
 
4185
depcc="$CC"   am_compiler_list=
 
4186
 
 
4187
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
4188
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
4189
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
4190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4191
else
 
4192
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
4193
  # We make a subdir and do the tests there.  Otherwise we can end up
 
4194
  # making bogus files that we don't know about and never remove.  For
 
4195
  # instance it was reported that on HP-UX the gcc test will end up
 
4196
  # making a dummy file named `D' -- because `-MD' means `put the output
 
4197
  # in D'.
 
4198
  mkdir conftest.dir
 
4199
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
4200
  # using a relative directory.
 
4201
  cp "$am_depcomp" conftest.dir
 
4202
  cd conftest.dir
 
4203
  # We will build objects and dependencies in a subdirectory because
 
4204
  # it helps to detect inapplicable dependency modes.  For instance
 
4205
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
4206
  # side effect of compilation, but ICC will put the dependencies in
 
4207
  # the current directory while Tru64 will put them in the object
 
4208
  # directory.
 
4209
  mkdir sub
 
4210
 
 
4211
  am_cv_CC_dependencies_compiler_type=none
 
4212
  if test "$am_compiler_list" = ""; then
 
4213
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
4214
  fi
 
4215
  for depmode in $am_compiler_list; do
 
4216
    # Setup a source with many dependencies, because some compilers
 
4217
    # like to wrap large dependency lists on column 80 (with \), and
 
4218
    # we should not choose a depcomp mode which is confused by this.
 
4219
    #
 
4220
    # We need to recreate these files for each test, as the compiler may
 
4221
    # overwrite some of them when testing with obscure command lines.
 
4222
    # This happens at least with the AIX C compiler.
 
4223
    : > sub/conftest.c
 
4224
    for i in 1 2 3 4 5 6; do
 
4225
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
4226
      : > sub/conftst$i.h
 
4227
    done
 
4228
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
4229
 
 
4230
    case $depmode in
 
4231
    nosideeffect)
 
4232
      # after this tag, mechanisms are not by side-effect, so they'll
 
4233
      # only be used when explicitly requested
 
4234
      if test "x$enable_dependency_tracking" = xyes; then
 
4235
        continue
 
4236
      else
 
4237
        break
 
4238
      fi
 
4239
      ;;
 
4240
    none) break ;;
 
4241
    esac
 
4242
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
4243
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
4244
    # handle `-M -o', and we need to detect this.
 
4245
    if depmode=$depmode \
 
4246
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
4247
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
4248
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
4249
         >/dev/null 2>conftest.err &&
 
4250
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
4251
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
4252
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
4253
      # icc doesn't choke on unknown options, it will just issue warnings
 
4254
      # (even with -Werror).  So we grep stderr for any message
 
4255
      # that says an option was ignored.
 
4256
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
4257
        am_cv_CC_dependencies_compiler_type=$depmode
 
4258
        break
 
4259
      fi
 
4260
    fi
 
4261
  done
 
4262
 
 
4263
  cd ..
 
4264
  rm -rf conftest.dir
 
4265
else
 
4266
  am_cv_CC_dependencies_compiler_type=none
 
4267
fi
 
4268
 
 
4269
fi
 
4270
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
4271
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
4272
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
4273
 
 
4274
 
 
4275
 
 
4276
if
 
4277
  test "x$enable_dependency_tracking" != xno \
 
4278
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
4279
  am__fastdepCC_TRUE=
 
4280
  am__fastdepCC_FALSE='#'
 
4281
else
 
4282
  am__fastdepCC_TRUE='#'
 
4283
  am__fastdepCC_FALSE=
 
4284
fi
 
4285
 
 
4286
 
 
4287
for ac_prog in flex lex
 
4288
do
 
4289
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
4290
set dummy $ac_prog; ac_word=$2
 
4291
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4292
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4293
if test "${ac_cv_prog_LEX+set}" = set; then
 
4294
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4295
else
 
4296
  if test -n "$LEX"; then
 
4297
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
 
4298
else
 
4299
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4300
for as_dir in $PATH
 
4301
do
 
4302
  IFS=$as_save_IFS
 
4303
  test -z "$as_dir" && as_dir=.
 
4304
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4305
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4306
    ac_cv_prog_LEX="$ac_prog"
 
4307
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4308
    break 2
 
4309
  fi
 
4310
done
 
4311
done
 
4312
 
 
4313
fi
 
4314
fi
 
4315
LEX=$ac_cv_prog_LEX
 
4316
if test -n "$LEX"; then
 
4317
  echo "$as_me:$LINENO: result: $LEX" >&5
 
4318
echo "${ECHO_T}$LEX" >&6
 
4319
else
 
4320
  echo "$as_me:$LINENO: result: no" >&5
 
4321
echo "${ECHO_T}no" >&6
 
4322
fi
 
4323
 
 
4324
  test -n "$LEX" && break
 
4325
done
 
4326
test -n "$LEX" || LEX=":"
 
4327
 
 
4328
if test -z "$LEXLIB"
 
4329
then
 
4330
  echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
 
4331
echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
 
4332
if test "${ac_cv_lib_fl_yywrap+set}" = set; then
 
4333
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4334
else
 
4335
  ac_check_lib_save_LIBS=$LIBS
 
4336
LIBS="-lfl  $LIBS"
 
4337
cat >conftest.$ac_ext <<_ACEOF
 
4338
/* confdefs.h.  */
 
4339
_ACEOF
 
4340
cat confdefs.h >>conftest.$ac_ext
 
4341
cat >>conftest.$ac_ext <<_ACEOF
 
4342
/* end confdefs.h.  */
 
4343
 
 
4344
/* Override any gcc2 internal prototype to avoid an error.  */
 
4345
#ifdef __cplusplus
 
4346
extern "C"
 
4347
#endif
 
4348
/* We use char because int might match the return type of a gcc2
 
4349
   builtin and then its argument prototype would still apply.  */
 
4350
char yywrap ();
 
4351
int
 
4352
main ()
 
4353
{
 
4354
yywrap ();
 
4355
  ;
 
4356
  return 0;
 
4357
}
 
4358
_ACEOF
 
4359
rm -f conftest.$ac_objext conftest$ac_exeext
 
4360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4361
  (eval $ac_link) 2>conftest.er1
 
4362
  ac_status=$?
 
4363
  grep -v '^ *+' conftest.er1 >conftest.err
 
4364
  rm -f conftest.er1
 
4365
  cat conftest.err >&5
 
4366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4367
  (exit $ac_status); } &&
 
4368
         { ac_try='test -z "$ac_c_werror_flag"
 
4369
                         || test ! -s conftest.err'
 
4370
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4371
  (eval $ac_try) 2>&5
 
4372
  ac_status=$?
 
4373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4374
  (exit $ac_status); }; } &&
 
4375
         { ac_try='test -s conftest$ac_exeext'
 
4376
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4377
  (eval $ac_try) 2>&5
 
4378
  ac_status=$?
 
4379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4380
  (exit $ac_status); }; }; then
 
4381
  ac_cv_lib_fl_yywrap=yes
 
4382
else
 
4383
  echo "$as_me: failed program was:" >&5
 
4384
sed 's/^/| /' conftest.$ac_ext >&5
 
4385
 
 
4386
ac_cv_lib_fl_yywrap=no
 
4387
fi
 
4388
rm -f conftest.err conftest.$ac_objext \
 
4389
      conftest$ac_exeext conftest.$ac_ext
 
4390
LIBS=$ac_check_lib_save_LIBS
 
4391
fi
 
4392
echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
 
4393
echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
 
4394
if test $ac_cv_lib_fl_yywrap = yes; then
 
4395
  LEXLIB="-lfl"
 
4396
else
 
4397
  echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
 
4398
echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
 
4399
if test "${ac_cv_lib_l_yywrap+set}" = set; then
 
4400
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4401
else
 
4402
  ac_check_lib_save_LIBS=$LIBS
 
4403
LIBS="-ll  $LIBS"
 
4404
cat >conftest.$ac_ext <<_ACEOF
 
4405
/* confdefs.h.  */
 
4406
_ACEOF
 
4407
cat confdefs.h >>conftest.$ac_ext
 
4408
cat >>conftest.$ac_ext <<_ACEOF
 
4409
/* end confdefs.h.  */
 
4410
 
 
4411
/* Override any gcc2 internal prototype to avoid an error.  */
 
4412
#ifdef __cplusplus
 
4413
extern "C"
 
4414
#endif
 
4415
/* We use char because int might match the return type of a gcc2
 
4416
   builtin and then its argument prototype would still apply.  */
 
4417
char yywrap ();
 
4418
int
 
4419
main ()
 
4420
{
 
4421
yywrap ();
 
4422
  ;
 
4423
  return 0;
 
4424
}
 
4425
_ACEOF
 
4426
rm -f conftest.$ac_objext conftest$ac_exeext
 
4427
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4428
  (eval $ac_link) 2>conftest.er1
 
4429
  ac_status=$?
 
4430
  grep -v '^ *+' conftest.er1 >conftest.err
 
4431
  rm -f conftest.er1
 
4432
  cat conftest.err >&5
 
4433
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4434
  (exit $ac_status); } &&
 
4435
         { ac_try='test -z "$ac_c_werror_flag"
 
4436
                         || test ! -s conftest.err'
 
4437
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4438
  (eval $ac_try) 2>&5
 
4439
  ac_status=$?
 
4440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4441
  (exit $ac_status); }; } &&
 
4442
         { ac_try='test -s conftest$ac_exeext'
 
4443
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4444
  (eval $ac_try) 2>&5
 
4445
  ac_status=$?
 
4446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4447
  (exit $ac_status); }; }; then
 
4448
  ac_cv_lib_l_yywrap=yes
 
4449
else
 
4450
  echo "$as_me: failed program was:" >&5
 
4451
sed 's/^/| /' conftest.$ac_ext >&5
 
4452
 
 
4453
ac_cv_lib_l_yywrap=no
 
4454
fi
 
4455
rm -f conftest.err conftest.$ac_objext \
 
4456
      conftest$ac_exeext conftest.$ac_ext
 
4457
LIBS=$ac_check_lib_save_LIBS
 
4458
fi
 
4459
echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
 
4460
echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
 
4461
if test $ac_cv_lib_l_yywrap = yes; then
 
4462
  LEXLIB="-ll"
 
4463
fi
 
4464
 
 
4465
fi
 
4466
 
 
4467
fi
 
4468
 
 
4469
if test "x$LEX" != "x:"; then
 
4470
  echo "$as_me:$LINENO: checking lex output file root" >&5
 
4471
echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
 
4472
if test "${ac_cv_prog_lex_root+set}" = set; then
 
4473
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4474
else
 
4475
  # The minimal lex program is just a single line: %%.  But some broken lexes
 
4476
# (Solaris, I think it was) want two %% lines, so accommodate them.
 
4477
cat >conftest.l <<_ACEOF
 
4478
%%
 
4479
%%
 
4480
_ACEOF
 
4481
{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
 
4482
  (eval $LEX conftest.l) 2>&5
 
4483
  ac_status=$?
 
4484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4485
  (exit $ac_status); }
 
4486
if test -f lex.yy.c; then
 
4487
  ac_cv_prog_lex_root=lex.yy
 
4488
elif test -f lexyy.c; then
 
4489
  ac_cv_prog_lex_root=lexyy
 
4490
else
 
4491
  { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
 
4492
echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
 
4493
   { (exit 1); exit 1; }; }
 
4494
fi
 
4495
fi
 
4496
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
 
4497
echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
 
4498
rm -f conftest.l
 
4499
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
4500
 
 
4501
echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
 
4502
echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
 
4503
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
 
4504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4505
else
 
4506
  # POSIX says lex can declare yytext either as a pointer or an array; the
 
4507
# default is implementation-dependent. Figure out which it is, since
 
4508
# not all implementations provide the %pointer and %array declarations.
 
4509
ac_cv_prog_lex_yytext_pointer=no
 
4510
echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 
4511
ac_save_LIBS=$LIBS
 
4512
LIBS="$LIBS $LEXLIB"
 
4513
cat >conftest.$ac_ext <<_ACEOF
 
4514
`cat $LEX_OUTPUT_ROOT.c`
 
4515
_ACEOF
 
4516
rm -f conftest.$ac_objext conftest$ac_exeext
 
4517
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4518
  (eval $ac_link) 2>conftest.er1
 
4519
  ac_status=$?
 
4520
  grep -v '^ *+' conftest.er1 >conftest.err
 
4521
  rm -f conftest.er1
 
4522
  cat conftest.err >&5
 
4523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4524
  (exit $ac_status); } &&
 
4525
         { ac_try='test -z "$ac_c_werror_flag"
 
4526
                         || test ! -s conftest.err'
 
4527
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4528
  (eval $ac_try) 2>&5
 
4529
  ac_status=$?
 
4530
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4531
  (exit $ac_status); }; } &&
 
4532
         { ac_try='test -s conftest$ac_exeext'
 
4533
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4534
  (eval $ac_try) 2>&5
 
4535
  ac_status=$?
 
4536
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4537
  (exit $ac_status); }; }; then
 
4538
  ac_cv_prog_lex_yytext_pointer=yes
 
4539
else
 
4540
  echo "$as_me: failed program was:" >&5
 
4541
sed 's/^/| /' conftest.$ac_ext >&5
 
4542
 
 
4543
fi
 
4544
rm -f conftest.err conftest.$ac_objext \
 
4545
      conftest$ac_exeext conftest.$ac_ext
 
4546
LIBS=$ac_save_LIBS
 
4547
rm -f "${LEX_OUTPUT_ROOT}.c"
 
4548
 
 
4549
fi
 
4550
echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
 
4551
echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
 
4552
if test $ac_cv_prog_lex_yytext_pointer = yes; then
 
4553
 
 
4554
cat >>confdefs.h <<\_ACEOF
 
4555
#define YYTEXT_POINTER 1
 
4556
_ACEOF
 
4557
 
 
4558
fi
 
4559
 
 
4560
fi
 
4561
if test "$LEX" = :; then
 
4562
  LEX=${am_missing_run}flex
 
4563
fi
 
4564
if [ "$LEX" != "flex" ]; then
 
4565
        { { echo "$as_me:$LINENO: error: flex is required to build bonobo-activation" >&5
 
4566
echo "$as_me: error: flex is required to build bonobo-activation" >&2;}
 
4567
   { (exit 1); exit 1; }; }
 
4568
fi
 
4569
 
 
4570
ac_ext=c
 
4571
ac_cpp='$CPP $CPPFLAGS'
 
4572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4575
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2816
4576
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2817
4577
# On Suns, sometimes $CPP names a directory.
2818
4578
if test -n "$CPP" && test -d "$CPP"; then
2830
4590
do
2831
4591
  # Use a header file that comes with gcc, so configuring glibc
2832
4592
  # with a fresh cross-compiler works.
 
4593
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4594
  # <limits.h> exists even on freestanding compilers.
2833
4595
  # On the NeXT, cc -E runs the code through the compiler's parser,
2834
4596
  # not just through cpp. "Syntax error" is here to catch this case.
2835
4597
  cat >conftest.$ac_ext <<_ACEOF
2836
 
#line 2836 "configure"
2837
 
#include "confdefs.h"
2838
 
#include <assert.h>
2839
 
                     Syntax error
2840
 
_ACEOF
2841
 
if { (eval echo "$as_me:2841: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4598
/* confdefs.h.  */
 
4599
_ACEOF
 
4600
cat confdefs.h >>conftest.$ac_ext
 
4601
cat >>conftest.$ac_ext <<_ACEOF
 
4602
/* end confdefs.h.  */
 
4603
#ifdef __STDC__
 
4604
# include <limits.h>
 
4605
#else
 
4606
# include <assert.h>
 
4607
#endif
 
4608
                     Syntax error
 
4609
_ACEOF
 
4610
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2842
4611
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2843
4612
  ac_status=$?
2844
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4613
  grep -v '^ *+' conftest.er1 >conftest.err
2845
4614
  rm -f conftest.er1
2846
4615
  cat conftest.err >&5
2847
 
  echo "$as_me:2847: \$? = $ac_status" >&5
 
4616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848
4617
  (exit $ac_status); } >/dev/null; then
2849
4618
  if test -s conftest.err; then
2850
4619
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4620
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2851
4621
  else
2852
4622
    ac_cpp_err=
2853
4623
  fi
2858
4628
  :
2859
4629
else
2860
4630
  echo "$as_me: failed program was:" >&5
2861
 
  cat conftest.$ac_ext >&5
 
4631
sed 's/^/| /' conftest.$ac_ext >&5
 
4632
 
2862
4633
  # Broken: fails on valid input.
2863
4634
continue
2864
4635
fi
2867
4638
  # OK, works on sane cases.  Now check whether non-existent headers
2868
4639
  # can be detected and how.
2869
4640
  cat >conftest.$ac_ext <<_ACEOF
2870
 
#line 2870 "configure"
2871
 
#include "confdefs.h"
 
4641
/* confdefs.h.  */
 
4642
_ACEOF
 
4643
cat confdefs.h >>conftest.$ac_ext
 
4644
cat >>conftest.$ac_ext <<_ACEOF
 
4645
/* end confdefs.h.  */
2872
4646
#include <ac_nonexistent.h>
2873
4647
_ACEOF
2874
 
if { (eval echo "$as_me:2874: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4648
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2875
4649
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2876
4650
  ac_status=$?
2877
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4651
  grep -v '^ *+' conftest.er1 >conftest.err
2878
4652
  rm -f conftest.er1
2879
4653
  cat conftest.err >&5
2880
 
  echo "$as_me:2880: \$? = $ac_status" >&5
 
4654
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2881
4655
  (exit $ac_status); } >/dev/null; then
2882
4656
  if test -s conftest.err; then
2883
4657
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4658
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2884
4659
  else
2885
4660
    ac_cpp_err=
2886
4661
  fi
2892
4667
continue
2893
4668
else
2894
4669
  echo "$as_me: failed program was:" >&5
2895
 
  cat conftest.$ac_ext >&5
 
4670
sed 's/^/| /' conftest.$ac_ext >&5
 
4671
 
2896
4672
  # Passes both tests.
2897
4673
ac_preproc_ok=:
2898
4674
break
2914
4690
else
2915
4691
  ac_cv_prog_CPP=$CPP
2916
4692
fi
2917
 
echo "$as_me:2917: result: $CPP" >&5
 
4693
echo "$as_me:$LINENO: result: $CPP" >&5
2918
4694
echo "${ECHO_T}$CPP" >&6
2919
4695
ac_preproc_ok=false
2920
4696
for ac_c_preproc_warn_flag in '' yes
2921
4697
do
2922
4698
  # Use a header file that comes with gcc, so configuring glibc
2923
4699
  # with a fresh cross-compiler works.
 
4700
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4701
  # <limits.h> exists even on freestanding compilers.
2924
4702
  # On the NeXT, cc -E runs the code through the compiler's parser,
2925
4703
  # not just through cpp. "Syntax error" is here to catch this case.
2926
4704
  cat >conftest.$ac_ext <<_ACEOF
2927
 
#line 2927 "configure"
2928
 
#include "confdefs.h"
2929
 
#include <assert.h>
2930
 
                     Syntax error
2931
 
_ACEOF
2932
 
if { (eval echo "$as_me:2932: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4705
/* confdefs.h.  */
 
4706
_ACEOF
 
4707
cat confdefs.h >>conftest.$ac_ext
 
4708
cat >>conftest.$ac_ext <<_ACEOF
 
4709
/* end confdefs.h.  */
 
4710
#ifdef __STDC__
 
4711
# include <limits.h>
 
4712
#else
 
4713
# include <assert.h>
 
4714
#endif
 
4715
                     Syntax error
 
4716
_ACEOF
 
4717
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2933
4718
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2934
4719
  ac_status=$?
2935
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4720
  grep -v '^ *+' conftest.er1 >conftest.err
2936
4721
  rm -f conftest.er1
2937
4722
  cat conftest.err >&5
2938
 
  echo "$as_me:2938: \$? = $ac_status" >&5
 
4723
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939
4724
  (exit $ac_status); } >/dev/null; then
2940
4725
  if test -s conftest.err; then
2941
4726
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4727
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2942
4728
  else
2943
4729
    ac_cpp_err=
2944
4730
  fi
2949
4735
  :
2950
4736
else
2951
4737
  echo "$as_me: failed program was:" >&5
2952
 
  cat conftest.$ac_ext >&5
 
4738
sed 's/^/| /' conftest.$ac_ext >&5
 
4739
 
2953
4740
  # Broken: fails on valid input.
2954
4741
continue
2955
4742
fi
2958
4745
  # OK, works on sane cases.  Now check whether non-existent headers
2959
4746
  # can be detected and how.
2960
4747
  cat >conftest.$ac_ext <<_ACEOF
2961
 
#line 2961 "configure"
2962
 
#include "confdefs.h"
 
4748
/* confdefs.h.  */
 
4749
_ACEOF
 
4750
cat confdefs.h >>conftest.$ac_ext
 
4751
cat >>conftest.$ac_ext <<_ACEOF
 
4752
/* end confdefs.h.  */
2963
4753
#include <ac_nonexistent.h>
2964
4754
_ACEOF
2965
 
if { (eval echo "$as_me:2965: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4755
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2966
4756
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2967
4757
  ac_status=$?
2968
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4758
  grep -v '^ *+' conftest.er1 >conftest.err
2969
4759
  rm -f conftest.er1
2970
4760
  cat conftest.err >&5
2971
 
  echo "$as_me:2971: \$? = $ac_status" >&5
 
4761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972
4762
  (exit $ac_status); } >/dev/null; then
2973
4763
  if test -s conftest.err; then
2974
4764
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4765
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2975
4766
  else
2976
4767
    ac_cpp_err=
2977
4768
  fi
2983
4774
continue
2984
4775
else
2985
4776
  echo "$as_me: failed program was:" >&5
2986
 
  cat conftest.$ac_ext >&5
 
4777
sed 's/^/| /' conftest.$ac_ext >&5
 
4778
 
2987
4779
  # Passes both tests.
2988
4780
ac_preproc_ok=:
2989
4781
break
2996
4788
if $ac_preproc_ok; then
2997
4789
  :
2998
4790
else
2999
 
  { { echo "$as_me:2999: error: C preprocessor \"$CPP\" fails sanity check" >&5
3000
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
 
4791
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4792
See \`config.log' for more details." >&5
 
4793
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4794
See \`config.log' for more details." >&2;}
3001
4795
   { (exit 1); exit 1; }; }
3002
4796
fi
3003
4797
 
3007
4801
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008
4802
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009
4803
 
3010
 
echo "$as_me:3010: checking for ANSI C header files" >&5
 
4804
 
 
4805
echo "$as_me:$LINENO: checking for egrep" >&5
 
4806
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4807
if test "${ac_cv_prog_egrep+set}" = set; then
 
4808
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4809
else
 
4810
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4811
    then ac_cv_prog_egrep='grep -E'
 
4812
    else ac_cv_prog_egrep='egrep'
 
4813
    fi
 
4814
fi
 
4815
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4816
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4817
 EGREP=$ac_cv_prog_egrep
 
4818
 
 
4819
 
 
4820
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3011
4821
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3012
4822
if test "${ac_cv_header_stdc+set}" = set; then
3013
4823
  echo $ECHO_N "(cached) $ECHO_C" >&6
3014
4824
else
3015
4825
  cat >conftest.$ac_ext <<_ACEOF
3016
 
#line 3016 "configure"
3017
 
#include "confdefs.h"
 
4826
/* confdefs.h.  */
 
4827
_ACEOF
 
4828
cat confdefs.h >>conftest.$ac_ext
 
4829
cat >>conftest.$ac_ext <<_ACEOF
 
4830
/* end confdefs.h.  */
3018
4831
#include <stdlib.h>
3019
4832
#include <stdarg.h>
3020
4833
#include <string.h>
3021
4834
#include <float.h>
3022
4835
 
 
4836
int
 
4837
main ()
 
4838
{
 
4839
 
 
4840
  ;
 
4841
  return 0;
 
4842
}
3023
4843
_ACEOF
3024
 
if { (eval echo "$as_me:3024: \"$ac_cpp conftest.$ac_ext\"") >&5
3025
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4844
rm -f conftest.$ac_objext
 
4845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4846
  (eval $ac_compile) 2>conftest.er1
3026
4847
  ac_status=$?
3027
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
4848
  grep -v '^ *+' conftest.er1 >conftest.err
3028
4849
  rm -f conftest.er1
3029
4850
  cat conftest.err >&5
3030
 
  echo "$as_me:3030: \$? = $ac_status" >&5
3031
 
  (exit $ac_status); } >/dev/null; then
3032
 
  if test -s conftest.err; then
3033
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3034
 
  else
3035
 
    ac_cpp_err=
3036
 
  fi
3037
 
else
3038
 
  ac_cpp_err=yes
3039
 
fi
3040
 
if test -z "$ac_cpp_err"; then
 
4851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4852
  (exit $ac_status); } &&
 
4853
         { ac_try='test -z "$ac_c_werror_flag"
 
4854
                         || test ! -s conftest.err'
 
4855
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4856
  (eval $ac_try) 2>&5
 
4857
  ac_status=$?
 
4858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4859
  (exit $ac_status); }; } &&
 
4860
         { ac_try='test -s conftest.$ac_objext'
 
4861
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4862
  (eval $ac_try) 2>&5
 
4863
  ac_status=$?
 
4864
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4865
  (exit $ac_status); }; }; then
3041
4866
  ac_cv_header_stdc=yes
3042
4867
else
3043
4868
  echo "$as_me: failed program was:" >&5
3044
 
  cat conftest.$ac_ext >&5
3045
 
  ac_cv_header_stdc=no
 
4869
sed 's/^/| /' conftest.$ac_ext >&5
 
4870
 
 
4871
ac_cv_header_stdc=no
3046
4872
fi
3047
 
rm -f conftest.err conftest.$ac_ext
 
4873
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3048
4874
 
3049
4875
if test $ac_cv_header_stdc = yes; then
3050
4876
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3051
4877
  cat >conftest.$ac_ext <<_ACEOF
3052
 
#line 3052 "configure"
3053
 
#include "confdefs.h"
 
4878
/* confdefs.h.  */
 
4879
_ACEOF
 
4880
cat confdefs.h >>conftest.$ac_ext
 
4881
cat >>conftest.$ac_ext <<_ACEOF
 
4882
/* end confdefs.h.  */
3054
4883
#include <string.h>
3055
4884
 
3056
4885
_ACEOF
3057
4886
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3058
 
  egrep "memchr" >/dev/null 2>&1; then
 
4887
  $EGREP "memchr" >/dev/null 2>&1; then
3059
4888
  :
3060
4889
else
3061
4890
  ac_cv_header_stdc=no
3067
4896
if test $ac_cv_header_stdc = yes; then
3068
4897
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3069
4898
  cat >conftest.$ac_ext <<_ACEOF
3070
 
#line 3070 "configure"
3071
 
#include "confdefs.h"
 
4899
/* confdefs.h.  */
 
4900
_ACEOF
 
4901
cat confdefs.h >>conftest.$ac_ext
 
4902
cat >>conftest.$ac_ext <<_ACEOF
 
4903
/* end confdefs.h.  */
3072
4904
#include <stdlib.h>
3073
4905
 
3074
4906
_ACEOF
3075
4907
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3076
 
  egrep "free" >/dev/null 2>&1; then
 
4908
  $EGREP "free" >/dev/null 2>&1; then
3077
4909
  :
3078
4910
else
3079
4911
  ac_cv_header_stdc=no
3088
4920
  :
3089
4921
else
3090
4922
  cat >conftest.$ac_ext <<_ACEOF
3091
 
#line 3091 "configure"
3092
 
#include "confdefs.h"
 
4923
/* confdefs.h.  */
 
4924
_ACEOF
 
4925
cat confdefs.h >>conftest.$ac_ext
 
4926
cat >>conftest.$ac_ext <<_ACEOF
 
4927
/* end confdefs.h.  */
3093
4928
#include <ctype.h>
3094
4929
#if ((' ' & 0x0FF) == 0x020)
3095
4930
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3096
4931
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3097
4932
#else
3098
 
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3099
 
                     || ('j' <= (c) && (c) <= 'r') \
3100
 
                     || ('s' <= (c) && (c) <= 'z'))
 
4933
# define ISLOWER(c) \
 
4934
                   (('a' <= (c) && (c) <= 'i') \
 
4935
                     || ('j' <= (c) && (c) <= 'r') \
 
4936
                     || ('s' <= (c) && (c) <= 'z'))
3101
4937
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3102
4938
#endif
3103
4939
 
3108
4944
  int i;
3109
4945
  for (i = 0; i < 256; i++)
3110
4946
    if (XOR (islower (i), ISLOWER (i))
3111
 
        || toupper (i) != TOUPPER (i))
 
4947
        || toupper (i) != TOUPPER (i))
3112
4948
      exit(2);
3113
4949
  exit (0);
3114
4950
}
3115
4951
_ACEOF
3116
4952
rm -f conftest$ac_exeext
3117
 
if { (eval echo "$as_me:3117: \"$ac_link\"") >&5
 
4953
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3118
4954
  (eval $ac_link) 2>&5
3119
4955
  ac_status=$?
3120
 
  echo "$as_me:3120: \$? = $ac_status" >&5
 
4956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3121
4957
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3122
 
  { (eval echo "$as_me:3122: \"$ac_try\"") >&5
 
4958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123
4959
  (eval $ac_try) 2>&5
3124
4960
  ac_status=$?
3125
 
  echo "$as_me:3125: \$? = $ac_status" >&5
 
4961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126
4962
  (exit $ac_status); }; }; then
3127
4963
  :
3128
4964
else
3129
4965
  echo "$as_me: program exited with status $ac_status" >&5
3130
4966
echo "$as_me: failed program was:" >&5
3131
 
cat conftest.$ac_ext >&5
 
4967
sed 's/^/| /' conftest.$ac_ext >&5
 
4968
 
 
4969
( exit $ac_status )
3132
4970
ac_cv_header_stdc=no
3133
4971
fi
3134
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3135
 
fi
3136
 
fi
3137
 
fi
3138
 
echo "$as_me:3138: result: $ac_cv_header_stdc" >&5
 
4972
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4973
fi
 
4974
fi
 
4975
fi
 
4976
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3139
4977
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3140
4978
if test $ac_cv_header_stdc = yes; then
3141
4979
 
3142
 
cat >>confdefs.h <<\EOF
 
4980
cat >>confdefs.h <<\_ACEOF
3143
4981
#define STDC_HEADERS 1
3144
 
EOF
3145
 
 
3146
 
fi
 
4982
_ACEOF
 
4983
 
 
4984
fi
 
4985
 
 
4986
# Find a good install program.  We prefer a C program (faster),
 
4987
# so one script is as good as another.  But avoid the broken or
 
4988
# incompatible versions:
 
4989
# SysV /etc/install, /usr/sbin/install
 
4990
# SunOS /usr/etc/install
 
4991
# IRIX /sbin/install
 
4992
# AIX /bin/install
 
4993
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
4994
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
4995
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
4996
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
4997
# OS/2's system install, which has a completely different semantic
 
4998
# ./install, which can be erroneously created by make from ./install.sh.
 
4999
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
5000
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
5001
if test -z "$INSTALL"; then
 
5002
if test "${ac_cv_path_install+set}" = set; then
 
5003
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5004
else
 
5005
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5006
for as_dir in $PATH
 
5007
do
 
5008
  IFS=$as_save_IFS
 
5009
  test -z "$as_dir" && as_dir=.
 
5010
  # Account for people who put trailing slashes in PATH elements.
 
5011
case $as_dir/ in
 
5012
  ./ | .// | /cC/* | \
 
5013
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
5014
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
5015
  /usr/ucb/* ) ;;
 
5016
  *)
 
5017
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
5018
    # Don't use installbsd from OSF since it installs stuff as root
 
5019
    # by default.
 
5020
    for ac_prog in ginstall scoinst install; do
 
5021
      for ac_exec_ext in '' $ac_executable_extensions; do
 
5022
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
5023
          if test $ac_prog = install &&
 
5024
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5025
            # AIX install.  It has an incompatible calling convention.
 
5026
            :
 
5027
          elif test $ac_prog = install &&
 
5028
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
5029
            # program-specific install script used by HP pwplus--don't use.
 
5030
            :
 
5031
          else
 
5032
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
5033
            break 3
 
5034
          fi
 
5035
        fi
 
5036
      done
 
5037
    done
 
5038
    ;;
 
5039
esac
 
5040
done
 
5041
 
 
5042
 
 
5043
fi
 
5044
  if test "${ac_cv_path_install+set}" = set; then
 
5045
    INSTALL=$ac_cv_path_install
 
5046
  else
 
5047
    # As a last resort, use the slow shell script.  We don't cache a
 
5048
    # path for INSTALL within a source directory, because that will
 
5049
    # break other packages using the cache if that directory is
 
5050
    # removed, or if the path is relative.
 
5051
    INSTALL=$ac_install_sh
 
5052
  fi
 
5053
fi
 
5054
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
5055
echo "${ECHO_T}$INSTALL" >&6
 
5056
 
 
5057
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
5058
# It thinks the first close brace ends the variable substitution.
 
5059
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
5060
 
 
5061
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
5062
 
 
5063
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
5064
 
 
5065
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
5066
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
5067
LN_S=$as_ln_s
 
5068
if test "$LN_S" = "ln -s"; then
 
5069
  echo "$as_me:$LINENO: result: yes" >&5
 
5070
echo "${ECHO_T}yes" >&6
 
5071
else
 
5072
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
5073
echo "${ECHO_T}no, using $LN_S" >&6
 
5074
fi
 
5075
 
 
5076
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
5077
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
5078
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
5079
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
5080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5081
else
 
5082
  cat >conftest.make <<\_ACEOF
 
5083
all:
 
5084
        @echo 'ac_maketemp="$(MAKE)"'
 
5085
_ACEOF
 
5086
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
5087
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
5088
if test -n "$ac_maketemp"; then
 
5089
  eval ac_cv_prog_make_${ac_make}_set=yes
 
5090
else
 
5091
  eval ac_cv_prog_make_${ac_make}_set=no
 
5092
fi
 
5093
rm -f conftest.make
 
5094
fi
 
5095
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
5096
  echo "$as_me:$LINENO: result: yes" >&5
 
5097
echo "${ECHO_T}yes" >&6
 
5098
  SET_MAKE=
 
5099
else
 
5100
  echo "$as_me:$LINENO: result: no" >&5
 
5101
echo "${ECHO_T}no" >&6
 
5102
  SET_MAKE="MAKE=${MAKE-make}"
 
5103
fi
 
5104
 
 
5105
 
 
5106
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
5107
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
5108
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
5109
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5110
else
 
5111
  ac_check_lib_save_LIBS=$LIBS
 
5112
LIBS="-lcposix  $LIBS"
 
5113
cat >conftest.$ac_ext <<_ACEOF
 
5114
/* confdefs.h.  */
 
5115
_ACEOF
 
5116
cat confdefs.h >>conftest.$ac_ext
 
5117
cat >>conftest.$ac_ext <<_ACEOF
 
5118
/* end confdefs.h.  */
 
5119
 
 
5120
/* Override any gcc2 internal prototype to avoid an error.  */
 
5121
#ifdef __cplusplus
 
5122
extern "C"
 
5123
#endif
 
5124
/* We use char because int might match the return type of a gcc2
 
5125
   builtin and then its argument prototype would still apply.  */
 
5126
char strerror ();
 
5127
int
 
5128
main ()
 
5129
{
 
5130
strerror ();
 
5131
  ;
 
5132
  return 0;
 
5133
}
 
5134
_ACEOF
 
5135
rm -f conftest.$ac_objext conftest$ac_exeext
 
5136
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5137
  (eval $ac_link) 2>conftest.er1
 
5138
  ac_status=$?
 
5139
  grep -v '^ *+' conftest.er1 >conftest.err
 
5140
  rm -f conftest.er1
 
5141
  cat conftest.err >&5
 
5142
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5143
  (exit $ac_status); } &&
 
5144
         { ac_try='test -z "$ac_c_werror_flag"
 
5145
                         || test ! -s conftest.err'
 
5146
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5147
  (eval $ac_try) 2>&5
 
5148
  ac_status=$?
 
5149
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5150
  (exit $ac_status); }; } &&
 
5151
         { ac_try='test -s conftest$ac_exeext'
 
5152
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5153
  (eval $ac_try) 2>&5
 
5154
  ac_status=$?
 
5155
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5156
  (exit $ac_status); }; }; then
 
5157
  ac_cv_lib_cposix_strerror=yes
 
5158
else
 
5159
  echo "$as_me: failed program was:" >&5
 
5160
sed 's/^/| /' conftest.$ac_ext >&5
 
5161
 
 
5162
ac_cv_lib_cposix_strerror=no
 
5163
fi
 
5164
rm -f conftest.err conftest.$ac_objext \
 
5165
      conftest$ac_exeext conftest.$ac_ext
 
5166
LIBS=$ac_check_lib_save_LIBS
 
5167
fi
 
5168
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
5169
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
5170
if test $ac_cv_lib_cposix_strerror = yes; then
 
5171
  LIBS="$LIBS -lcposix"
 
5172
fi
 
5173
 
 
5174
 
 
5175
 
 
5176
 
3147
5177
 
3148
5178
# Check whether --enable-shared or --disable-shared was given.
3149
5179
if test "${enable_shared+set}" = set; then
3150
5180
  enableval="$enable_shared"
3151
5181
  p=${PACKAGE-default}
3152
 
case $enableval in
3153
 
yes) enable_shared=yes ;;
3154
 
no) enable_shared=no ;;
3155
 
*)
3156
 
  enable_shared=no
3157
 
  # Look at the argument we got.  We use all the common list separators.
3158
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3159
 
  for pkg in $enableval; do
3160
 
    if test "X$pkg" = "X$p"; then
3161
 
      enable_shared=yes
3162
 
    fi
3163
 
  done
3164
 
  IFS="$ac_save_ifs"
3165
 
  ;;
3166
 
esac
 
5182
    case $enableval in
 
5183
    yes) enable_shared=yes ;;
 
5184
    no) enable_shared=no ;;
 
5185
    *)
 
5186
      enable_shared=no
 
5187
      # Look at the argument we got.  We use all the common list separators.
 
5188
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5189
      for pkg in $enableval; do
 
5190
        IFS="$lt_save_ifs"
 
5191
        if test "X$pkg" = "X$p"; then
 
5192
          enable_shared=yes
 
5193
        fi
 
5194
      done
 
5195
      IFS="$lt_save_ifs"
 
5196
      ;;
 
5197
    esac
3167
5198
else
3168
5199
  enable_shared=yes
3169
5200
fi;
 
5201
 
3170
5202
# Check whether --enable-static or --disable-static was given.
3171
5203
if test "${enable_static+set}" = set; then
3172
5204
  enableval="$enable_static"
3173
5205
  p=${PACKAGE-default}
3174
 
case $enableval in
3175
 
yes) enable_static=yes ;;
3176
 
no) enable_static=no ;;
3177
 
*)
3178
 
  enable_static=no
3179
 
  # Look at the argument we got.  We use all the common list separators.
3180
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3181
 
  for pkg in $enableval; do
3182
 
    if test "X$pkg" = "X$p"; then
3183
 
      enable_static=yes
3184
 
    fi
3185
 
  done
3186
 
  IFS="$ac_save_ifs"
3187
 
  ;;
3188
 
esac
 
5206
    case $enableval in
 
5207
    yes) enable_static=yes ;;
 
5208
    no) enable_static=no ;;
 
5209
    *)
 
5210
     enable_static=no
 
5211
      # Look at the argument we got.  We use all the common list separators.
 
5212
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5213
      for pkg in $enableval; do
 
5214
        IFS="$lt_save_ifs"
 
5215
        if test "X$pkg" = "X$p"; then
 
5216
          enable_static=yes
 
5217
        fi
 
5218
      done
 
5219
      IFS="$lt_save_ifs"
 
5220
      ;;
 
5221
    esac
3189
5222
else
3190
5223
  enable_static=yes
3191
5224
fi;
 
5225
 
3192
5226
# Check whether --enable-fast-install or --disable-fast-install was given.
3193
5227
if test "${enable_fast_install+set}" = set; then
3194
5228
  enableval="$enable_fast_install"
3195
5229
  p=${PACKAGE-default}
3196
 
case $enableval in
3197
 
yes) enable_fast_install=yes ;;
3198
 
no) enable_fast_install=no ;;
3199
 
*)
3200
 
  enable_fast_install=no
3201
 
  # Look at the argument we got.  We use all the common list separators.
3202
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3203
 
  for pkg in $enableval; do
3204
 
    if test "X$pkg" = "X$p"; then
3205
 
      enable_fast_install=yes
3206
 
    fi
3207
 
  done
3208
 
  IFS="$ac_save_ifs"
3209
 
  ;;
3210
 
esac
 
5230
    case $enableval in
 
5231
    yes) enable_fast_install=yes ;;
 
5232
    no) enable_fast_install=no ;;
 
5233
    *)
 
5234
      enable_fast_install=no
 
5235
      # Look at the argument we got.  We use all the common list separators.
 
5236
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
5237
      for pkg in $enableval; do
 
5238
        IFS="$lt_save_ifs"
 
5239
        if test "X$pkg" = "X$p"; then
 
5240
          enable_fast_install=yes
 
5241
        fi
 
5242
      done
 
5243
      IFS="$lt_save_ifs"
 
5244
      ;;
 
5245
    esac
3211
5246
else
3212
5247
  enable_fast_install=yes
3213
5248
fi;
 
5249
 
3214
5250
# Make sure we can run config.sub.
3215
5251
$ac_config_sub sun4 >/dev/null 2>&1 ||
3216
 
  { { echo "$as_me:3216: error: cannot run $ac_config_sub" >&5
 
5252
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3217
5253
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3218
5254
   { (exit 1); exit 1; }; }
3219
5255
 
3220
 
echo "$as_me:3220: checking build system type" >&5
 
5256
echo "$as_me:$LINENO: checking build system type" >&5
3221
5257
echo $ECHO_N "checking build system type... $ECHO_C" >&6
3222
5258
if test "${ac_cv_build+set}" = set; then
3223
5259
  echo $ECHO_N "(cached) $ECHO_C" >&6
3226
5262
test -z "$ac_cv_build_alias" &&
3227
5263
  ac_cv_build_alias=`$ac_config_guess`
3228
5264
test -z "$ac_cv_build_alias" &&
3229
 
  { { echo "$as_me:3229: error: cannot guess build type; you must specify one" >&5
 
5265
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3230
5266
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3231
5267
   { (exit 1); exit 1; }; }
3232
5268
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3233
 
  { { echo "$as_me:3233: error: $ac_config_sub $ac_cv_build_alias failed." >&5
3234
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
 
5269
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
5270
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3235
5271
   { (exit 1); exit 1; }; }
3236
5272
 
3237
5273
fi
3238
 
echo "$as_me:3238: result: $ac_cv_build" >&5
 
5274
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3239
5275
echo "${ECHO_T}$ac_cv_build" >&6
3240
5276
build=$ac_cv_build
3241
5277
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3242
5278
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3243
5279
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3244
5280
 
3245
 
echo "$as_me:3245: checking host system type" >&5
 
5281
 
 
5282
echo "$as_me:$LINENO: checking host system type" >&5
3246
5283
echo $ECHO_N "checking host system type... $ECHO_C" >&6
3247
5284
if test "${ac_cv_host+set}" = set; then
3248
5285
  echo $ECHO_N "(cached) $ECHO_C" >&6
3251
5288
test -z "$ac_cv_host_alias" &&
3252
5289
  ac_cv_host_alias=$ac_cv_build_alias
3253
5290
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3254
 
  { { echo "$as_me:3254: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
5291
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3255
5292
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3256
5293
   { (exit 1); exit 1; }; }
3257
5294
 
3258
5295
fi
3259
 
echo "$as_me:3259: result: $ac_cv_host" >&5
 
5296
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3260
5297
echo "${ECHO_T}$ac_cv_host" >&6
3261
5298
host=$ac_cv_host
3262
5299
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3263
5300
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3264
5301
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3265
5302
 
 
5303
 
 
5304
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
5305
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
5306
if test "${lt_cv_path_SED+set}" = set; then
 
5307
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5308
else
 
5309
  # Loop through the user's path and test for sed and gsed.
 
5310
# Then use that list of sed's as ones to test for truncation.
 
5311
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5312
for as_dir in $PATH
 
5313
do
 
5314
  IFS=$as_save_IFS
 
5315
  test -z "$as_dir" && as_dir=.
 
5316
  for lt_ac_prog in sed gsed; do
 
5317
    for ac_exec_ext in '' $ac_executable_extensions; do
 
5318
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
5319
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
5320
      fi
 
5321
    done
 
5322
  done
 
5323
done
 
5324
lt_ac_max=0
 
5325
lt_ac_count=0
 
5326
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
5327
# along with /bin/sed that truncates output.
 
5328
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
5329
  test ! -f $lt_ac_sed && break
 
5330
  cat /dev/null > conftest.in
 
5331
  lt_ac_count=0
 
5332
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
5333
  # Check for GNU sed and select it if it is found.
 
5334
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
5335
    lt_cv_path_SED=$lt_ac_sed
 
5336
    break
 
5337
  fi
 
5338
  while true; do
 
5339
    cat conftest.in conftest.in >conftest.tmp
 
5340
    mv conftest.tmp conftest.in
 
5341
    cp conftest.in conftest.nl
 
5342
    echo >>conftest.nl
 
5343
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
5344
    cmp -s conftest.out conftest.nl || break
 
5345
    # 10000 chars as input seems more than enough
 
5346
    test $lt_ac_count -gt 10 && break
 
5347
    lt_ac_count=`expr $lt_ac_count + 1`
 
5348
    if test $lt_ac_count -gt $lt_ac_max; then
 
5349
      lt_ac_max=$lt_ac_count
 
5350
      lt_cv_path_SED=$lt_ac_sed
 
5351
    fi
 
5352
  done
 
5353
done
 
5354
 
 
5355
fi
 
5356
 
 
5357
SED=$lt_cv_path_SED
 
5358
echo "$as_me:$LINENO: result: $SED" >&5
 
5359
echo "${ECHO_T}$SED" >&6
 
5360
 
 
5361
 
3266
5362
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3267
5363
if test "${with_gnu_ld+set}" = set; then
3268
5364
  withval="$with_gnu_ld"
3273
5369
ac_prog=ld
3274
5370
if test "$GCC" = yes; then
3275
5371
  # Check if gcc -print-prog-name=ld gives a path.
3276
 
  echo "$as_me:3276: checking for ld used by GCC" >&5
3277
 
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
 
5372
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
5373
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3278
5374
  case $host in
3279
5375
  *-*-mingw*)
3280
5376
    # gcc leaves a trailing carriage return which upsets mingw
3284
5380
  esac
3285
5381
  case $ac_prog in
3286
5382
    # Accept absolute paths.
3287
 
    [\\/]* | [A-Za-z]:[\\/]*)
 
5383
    [\\/]* | ?:[\\/]*)
3288
5384
      re_direlt='/[^/][^/]*/\.\./'
3289
 
      # Canonicalize the path of ld
3290
 
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 
5385
      # Canonicalize the pathname of ld
 
5386
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3291
5387
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3292
 
        ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 
5388
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293
5389
      done
3294
5390
      test -z "$LD" && LD="$ac_prog"
3295
5391
      ;;
3303
5399
    ;;
3304
5400
  esac
3305
5401
elif test "$with_gnu_ld" = yes; then
3306
 
  echo "$as_me:3306: checking for GNU ld" >&5
 
5402
  echo "$as_me:$LINENO: checking for GNU ld" >&5
3307
5403
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308
5404
else
3309
 
  echo "$as_me:3309: checking for non-GNU ld" >&5
 
5405
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3310
5406
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311
5407
fi
3312
5408
if test "${lt_cv_path_LD+set}" = set; then
3313
5409
  echo $ECHO_N "(cached) $ECHO_C" >&6
3314
5410
else
3315
5411
  if test -z "$LD"; then
3316
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
5412
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3317
5413
  for ac_dir in $PATH; do
 
5414
    IFS="$lt_save_ifs"
3318
5415
    test -z "$ac_dir" && ac_dir=.
3319
5416
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3320
5417
      lt_cv_path_LD="$ac_dir/$ac_prog"
3321
5418
      # Check to see if the program is GNU ld.  I'd rather use --version,
3322
5419
      # but apparently some GNU ld's only accept -v.
3323
5420
      # Break only if it was the GNU/non-GNU ld that we prefer.
3324
 
      if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 
5421
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
5422
      *GNU* | *'with BFD'*)
3325
5423
        test "$with_gnu_ld" != no && break
3326
 
      else
 
5424
        ;;
 
5425
      *)
3327
5426
        test "$with_gnu_ld" != yes && break
3328
 
      fi
 
5427
        ;;
 
5428
      esac
3329
5429
    fi
3330
5430
  done
3331
 
  IFS="$ac_save_ifs"
 
5431
  IFS="$lt_save_ifs"
3332
5432
else
3333
5433
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
3334
5434
fi
3336
5436
 
3337
5437
LD="$lt_cv_path_LD"
3338
5438
if test -n "$LD"; then
3339
 
  echo "$as_me:3339: result: $LD" >&5
 
5439
  echo "$as_me:$LINENO: result: $LD" >&5
3340
5440
echo "${ECHO_T}$LD" >&6
3341
5441
else
3342
 
  echo "$as_me:3342: result: no" >&5
 
5442
  echo "$as_me:$LINENO: result: no" >&5
3343
5443
echo "${ECHO_T}no" >&6
3344
5444
fi
3345
 
test -z "$LD" && { { echo "$as_me:3345: error: no acceptable ld found in \$PATH" >&5
 
5445
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3346
5446
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3347
5447
   { (exit 1); exit 1; }; }
3348
 
echo "$as_me:3348: checking if the linker ($LD) is GNU ld" >&5
 
5448
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3349
5449
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3350
5450
if test "${lt_cv_prog_gnu_ld+set}" = set; then
3351
5451
  echo $ECHO_N "(cached) $ECHO_C" >&6
3352
5452
else
3353
5453
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3354
 
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 
5454
case `$LD -v 2>&1 </dev/null` in
 
5455
*GNU* | *'with BFD'*)
3355
5456
  lt_cv_prog_gnu_ld=yes
3356
 
else
 
5457
  ;;
 
5458
*)
3357
5459
  lt_cv_prog_gnu_ld=no
3358
 
fi
3359
 
fi
3360
 
echo "$as_me:3360: result: $lt_cv_prog_gnu_ld" >&5
 
5460
  ;;
 
5461
esac
 
5462
fi
 
5463
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3361
5464
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3362
5465
with_gnu_ld=$lt_cv_prog_gnu_ld
3363
5466
 
3364
 
echo "$as_me:3364: checking for $LD option to reload object files" >&5
 
5467
 
 
5468
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3365
5469
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3366
5470
if test "${lt_cv_ld_reload_flag+set}" = set; then
3367
5471
  echo $ECHO_N "(cached) $ECHO_C" >&6
3368
5472
else
3369
5473
  lt_cv_ld_reload_flag='-r'
3370
5474
fi
3371
 
echo "$as_me:3371: result: $lt_cv_ld_reload_flag" >&5
 
5475
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3372
5476
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3373
5477
reload_flag=$lt_cv_ld_reload_flag
3374
 
test -n "$reload_flag" && reload_flag=" $reload_flag"
 
5478
case $reload_flag in
 
5479
"" | " "*) ;;
 
5480
*) reload_flag=" $reload_flag" ;;
 
5481
esac
 
5482
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5483
case $host_os in
 
5484
  darwin*)
 
5485
    if test "$GCC" = yes; then
 
5486
      reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
 
5487
    else
 
5488
      reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
5489
    fi
 
5490
    ;;
 
5491
esac
3375
5492
 
3376
 
echo "$as_me:3376: checking for BSD-compatible nm" >&5
 
5493
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3377
5494
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3378
5495
if test "${lt_cv_path_NM+set}" = set; then
3379
5496
  echo $ECHO_N "(cached) $ECHO_C" >&6
3382
5499
  # Let the user override the test.
3383
5500
  lt_cv_path_NM="$NM"
3384
5501
else
3385
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
 
5502
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3386
5503
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
5504
    IFS="$lt_save_ifs"
3387
5505
    test -z "$ac_dir" && ac_dir=.
3388
 
    tmp_nm=$ac_dir/${ac_tool_prefix}nm
3389
 
    if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 
5506
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
5507
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3390
5508
      # Check to see if the nm accepts a BSD-compat flag.
3391
5509
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3392
5510
      #   nm: unknown option "B" ignored
3393
5511
      # Tru64's nm complains that /dev/null is an invalid object file
3394
 
      if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 
5512
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
5513
      */dev/null* | *'Invalid file or object type'*)
3395
5514
        lt_cv_path_NM="$tmp_nm -B"
3396
5515
        break
3397
 
      elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3398
 
        lt_cv_path_NM="$tmp_nm -p"
3399
 
        break
3400
 
      else
3401
 
        lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3402
 
        continue # so that we can try to find one that supports BSD flags
3403
 
      fi
 
5516
        ;;
 
5517
      *)
 
5518
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
5519
        */dev/null*)
 
5520
          lt_cv_path_NM="$tmp_nm -p"
 
5521
          break
 
5522
          ;;
 
5523
        *)
 
5524
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
5525
          continue # so that we can try to find one that supports BSD flags
 
5526
          ;;
 
5527
        esac
 
5528
      esac
3404
5529
    fi
3405
5530
  done
3406
 
  IFS="$ac_save_ifs"
 
5531
  IFS="$lt_save_ifs"
3407
5532
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3408
5533
fi
3409
5534
fi
3410
 
 
 
5535
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
5536
echo "${ECHO_T}$lt_cv_path_NM" >&6
3411
5537
NM="$lt_cv_path_NM"
3412
 
echo "$as_me:3412: result: $NM" >&5
3413
 
echo "${ECHO_T}$NM" >&6
3414
 
 
3415
 
echo "$as_me:3415: checking whether ln -s works" >&5
3416
 
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3417
 
LN_S=$as_ln_s
3418
 
if test "$LN_S" = "ln -s"; then
3419
 
  echo "$as_me:3419: result: yes" >&5
3420
 
echo "${ECHO_T}yes" >&6
3421
 
else
3422
 
  echo "$as_me:3422: result: no, using $LN_S" >&5
3423
 
echo "${ECHO_T}no, using $LN_S" >&6
3424
 
fi
3425
 
 
3426
 
echo "$as_me:3426: checking how to recognise dependant libraries" >&5
3427
 
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
 
5538
 
 
5539
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
5540
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3428
5541
if test "${lt_cv_deplibs_check_method+set}" = set; then
3429
5542
  echo $ECHO_N "(cached) $ECHO_C" >&6
3430
5543
else
3437
5550
# `unknown' -- same as none, but documents that we really don't know.
3438
5551
# 'pass_all' -- all dependencies passed with no checks.
3439
5552
# 'test_compile' -- check by making test program.
3440
 
# ['file_magic [regex]'] -- check by looking for files in library path
3441
 
# which responds to the $file_magic_cmd with a given egrep regex.
 
5553
# 'file_magic [[regex]]' -- check by looking for files in library path
 
5554
# which responds to the $file_magic_cmd with a given extended regex.
3442
5555
# If you have `file' or equivalent on your system and you're not sure
3443
5556
# whether `pass_all' will *always* work, you probably want this one.
3444
5557
 
3451
5564
  lt_cv_deplibs_check_method=pass_all
3452
5565
  ;;
3453
5566
 
3454
 
bsdi4*)
 
5567
bsdi[45]*)
3455
5568
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3456
5569
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3457
5570
  lt_cv_file_magic_test_file=/shlib/libc.so
3458
5571
  ;;
3459
5572
 
3460
 
cygwin* | mingw* | pw32*)
 
5573
cygwin*)
 
5574
  # func_win32_libid is a shell function defined in ltmain.sh
 
5575
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
5576
  lt_cv_file_magic_cmd='func_win32_libid'
 
5577
  ;;
 
5578
 
 
5579
mingw* | pw32*)
 
5580
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
5581
  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3461
5582
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3462
5583
  lt_cv_file_magic_cmd='$OBJDUMP -f'
3463
5584
  ;;
3464
5585
 
3465
5586
darwin* | rhapsody*)
3466
 
  lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3467
 
  lt_cv_file_magic_cmd='/usr/bin/file -L'
3468
 
  case "$host_os" in
3469
 
  rhapsody* | darwin1.012)
3470
 
    lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3471
 
    ;;
3472
 
  *) # Darwin 1.3 on
3473
 
    lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3474
 
    ;;
3475
 
  esac
 
5587
  lt_cv_deplibs_check_method=pass_all
3476
5588
  ;;
3477
5589
 
3478
 
freebsd*)
 
5590
freebsd* | kfreebsd*-gnu)
3479
5591
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3480
5592
    case $host_cpu in
3481
5593
    i*86 )
3495
5607
  lt_cv_deplibs_check_method=pass_all
3496
5608
  ;;
3497
5609
 
3498
 
hpux10.20*|hpux11*)
3499
 
  lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5610
hpux10.20* | hpux11*)
3500
5611
  lt_cv_file_magic_cmd=/usr/bin/file
3501
 
  lt_cv_file_magic_test_file=/usr/lib/libc.sl
3502
 
  ;;
3503
 
 
3504
 
irix5* | irix6*)
3505
 
  case $host_os in
3506
 
  irix5*)
3507
 
    # this will be overridden with pass_all, but let us keep it just in case
3508
 
    lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 
5612
  case "$host_cpu" in
 
5613
  ia64*)
 
5614
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
5615
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
5616
    ;;
 
5617
  hppa*64*)
 
5618
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
 
5619
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3509
5620
    ;;
3510
5621
  *)
3511
 
    case $LD in
3512
 
    *-32|*"-32 ") libmagic=32-bit;;
3513
 
    *-n32|*"-n32 ") libmagic=N32;;
3514
 
    *-64|*"-64 ") libmagic=64-bit;;
3515
 
    *) libmagic=never-match;;
3516
 
    esac
3517
 
    # this will be overridden with pass_all, but let us keep it just in case
3518
 
    lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 
5622
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
5623
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
3519
5624
    ;;
3520
5625
  esac
3521
 
  lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 
5626
  ;;
 
5627
 
 
5628
irix5* | irix6* | nonstopux*)
 
5629
  case $LD in
 
5630
  *-32|*"-32 ") libmagic=32-bit;;
 
5631
  *-n32|*"-n32 ") libmagic=N32;;
 
5632
  *-64|*"-64 ") libmagic=64-bit;;
 
5633
  *) libmagic=never-match;;
 
5634
  esac
3522
5635
  lt_cv_deplibs_check_method=pass_all
3523
5636
  ;;
3524
5637
 
3525
5638
# This must be Linux ELF.
3526
 
linux-gnu*)
3527
 
  case $host_cpu in
3528
 
  alpha* | i*86 | powerpc* | sparc* | ia64* )
3529
 
    lt_cv_deplibs_check_method=pass_all ;;
3530
 
  *)
3531
 
    # glibc up to 2.1.1 does not perform some relocations on ARM
3532
 
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3533
 
  esac
3534
 
  lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 
5639
linux*)
 
5640
  lt_cv_deplibs_check_method=pass_all
3535
5641
  ;;
3536
5642
 
3537
5643
netbsd*)
3538
5644
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3539
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 
5645
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3540
5646
  else
3541
 
    lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 
5647
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3542
5648
  fi
3543
5649
  ;;
3544
5650
 
3548
5654
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
3549
5655
  ;;
3550
5656
 
 
5657
nto-qnx*)
 
5658
  lt_cv_deplibs_check_method=unknown
 
5659
  ;;
 
5660
 
 
5661
openbsd*)
 
5662
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
5663
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
 
5664
  else
 
5665
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
5666
  fi
 
5667
  ;;
 
5668
 
3551
5669
osf3* | osf4* | osf5*)
3552
 
  # this will be overridden with pass_all, but let us keep it just in case
3553
 
  lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3554
 
  lt_cv_file_magic_test_file=/shlib/libc.so
3555
5670
  lt_cv_deplibs_check_method=pass_all
3556
5671
  ;;
3557
5672
 
3561
5676
 
3562
5677
solaris*)
3563
5678
  lt_cv_deplibs_check_method=pass_all
3564
 
  lt_cv_file_magic_test_file=/lib/libc.so
3565
 
  ;;
3566
 
 
3567
 
sysv5uw[78]* | sysv4*uw2*)
3568
 
  lt_cv_deplibs_check_method=pass_all
3569
5679
  ;;
3570
5680
 
3571
5681
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3586
5696
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3587
5697
    lt_cv_file_magic_test_file=/lib/libc.so
3588
5698
    ;;
 
5699
  siemens)
 
5700
    lt_cv_deplibs_check_method=pass_all
 
5701
    ;;
3589
5702
  esac
3590
5703
  ;;
 
5704
 
 
5705
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5706
  lt_cv_deplibs_check_method=pass_all
 
5707
  ;;
3591
5708
esac
3592
5709
 
3593
5710
fi
3594
 
echo "$as_me:3594: result: $lt_cv_deplibs_check_method" >&5
 
5711
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3595
5712
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3596
5713
file_magic_cmd=$lt_cv_file_magic_cmd
3597
5714
deplibs_check_method=$lt_cv_deplibs_check_method
 
5715
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5716
 
 
5717
 
 
5718
 
 
5719
 
 
5720
# If no C compiler was specified, use CC.
 
5721
LTCC=${LTCC-"$CC"}
 
5722
 
 
5723
# Allow CC to be a program name with arguments.
 
5724
compiler=$CC
 
5725
 
 
5726
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5727
if test "${enable_libtool_lock+set}" = set; then
 
5728
  enableval="$enable_libtool_lock"
 
5729
 
 
5730
fi;
 
5731
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5732
 
 
5733
# Some flags need to be propagated to the compiler or linker for good
 
5734
# libtool support.
 
5735
case $host in
 
5736
ia64-*-hpux*)
 
5737
  # Find out which ABI we are using.
 
5738
  echo 'int i;' > conftest.$ac_ext
 
5739
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5740
  (eval $ac_compile) 2>&5
 
5741
  ac_status=$?
 
5742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5743
  (exit $ac_status); }; then
 
5744
    case `/usr/bin/file conftest.$ac_objext` in
 
5745
    *ELF-32*)
 
5746
      HPUX_IA64_MODE="32"
 
5747
      ;;
 
5748
    *ELF-64*)
 
5749
      HPUX_IA64_MODE="64"
 
5750
      ;;
 
5751
    esac
 
5752
  fi
 
5753
  rm -rf conftest*
 
5754
  ;;
 
5755
*-*-irix6*)
 
5756
  # Find out which ABI we are using.
 
5757
  echo '#line 5757 "configure"' > conftest.$ac_ext
 
5758
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5759
  (eval $ac_compile) 2>&5
 
5760
  ac_status=$?
 
5761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5762
  (exit $ac_status); }; then
 
5763
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5764
    case `/usr/bin/file conftest.$ac_objext` in
 
5765
    *32-bit*)
 
5766
      LD="${LD-ld} -melf32bsmip"
 
5767
      ;;
 
5768
    *N32*)
 
5769
      LD="${LD-ld} -melf32bmipn32"
 
5770
      ;;
 
5771
    *64-bit*)
 
5772
      LD="${LD-ld} -melf64bmip"
 
5773
      ;;
 
5774
    esac
 
5775
   else
 
5776
    case `/usr/bin/file conftest.$ac_objext` in
 
5777
    *32-bit*)
 
5778
      LD="${LD-ld} -32"
 
5779
      ;;
 
5780
    *N32*)
 
5781
      LD="${LD-ld} -n32"
 
5782
      ;;
 
5783
    *64-bit*)
 
5784
      LD="${LD-ld} -64"
 
5785
      ;;
 
5786
    esac
 
5787
   fi
 
5788
  fi
 
5789
  rm -rf conftest*
 
5790
  ;;
 
5791
 
 
5792
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5793
  # Find out which ABI we are using.
 
5794
  echo 'int i;' > conftest.$ac_ext
 
5795
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5796
  (eval $ac_compile) 2>&5
 
5797
  ac_status=$?
 
5798
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5799
  (exit $ac_status); }; then
 
5800
    case "`/usr/bin/file conftest.o`" in
 
5801
    *32-bit*)
 
5802
      case $host in
 
5803
        x86_64-*linux*)
 
5804
          LD="${LD-ld} -m elf_i386"
 
5805
          ;;
 
5806
        ppc64-*linux*|powerpc64-*linux*)
 
5807
          LD="${LD-ld} -m elf32ppclinux"
 
5808
          ;;
 
5809
        s390x-*linux*)
 
5810
          LD="${LD-ld} -m elf_s390"
 
5811
          ;;
 
5812
        sparc64-*linux*)
 
5813
          LD="${LD-ld} -m elf32_sparc"
 
5814
          ;;
 
5815
      esac
 
5816
      ;;
 
5817
    *64-bit*)
 
5818
      case $host in
 
5819
        x86_64-*linux*)
 
5820
          LD="${LD-ld} -m elf_x86_64"
 
5821
          ;;
 
5822
        ppc*-*linux*|powerpc*-*linux*)
 
5823
          LD="${LD-ld} -m elf64ppc"
 
5824
          ;;
 
5825
        s390*-*linux*)
 
5826
          LD="${LD-ld} -m elf64_s390"
 
5827
          ;;
 
5828
        sparc*-*linux*)
 
5829
          LD="${LD-ld} -m elf64_sparc"
 
5830
          ;;
 
5831
      esac
 
5832
      ;;
 
5833
    esac
 
5834
  fi
 
5835
  rm -rf conftest*
 
5836
  ;;
 
5837
 
 
5838
*-*-sco3.2v5*)
 
5839
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5840
  SAVE_CFLAGS="$CFLAGS"
 
5841
  CFLAGS="$CFLAGS -belf"
 
5842
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5843
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5844
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5845
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5846
else
 
5847
  ac_ext=c
 
5848
ac_cpp='$CPP $CPPFLAGS'
 
5849
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5850
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5851
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5852
 
 
5853
     cat >conftest.$ac_ext <<_ACEOF
 
5854
/* confdefs.h.  */
 
5855
_ACEOF
 
5856
cat confdefs.h >>conftest.$ac_ext
 
5857
cat >>conftest.$ac_ext <<_ACEOF
 
5858
/* end confdefs.h.  */
 
5859
 
 
5860
int
 
5861
main ()
 
5862
{
 
5863
 
 
5864
  ;
 
5865
  return 0;
 
5866
}
 
5867
_ACEOF
 
5868
rm -f conftest.$ac_objext conftest$ac_exeext
 
5869
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5870
  (eval $ac_link) 2>conftest.er1
 
5871
  ac_status=$?
 
5872
  grep -v '^ *+' conftest.er1 >conftest.err
 
5873
  rm -f conftest.er1
 
5874
  cat conftest.err >&5
 
5875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5876
  (exit $ac_status); } &&
 
5877
         { ac_try='test -z "$ac_c_werror_flag"
 
5878
                         || test ! -s conftest.err'
 
5879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5880
  (eval $ac_try) 2>&5
 
5881
  ac_status=$?
 
5882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5883
  (exit $ac_status); }; } &&
 
5884
         { ac_try='test -s conftest$ac_exeext'
 
5885
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5886
  (eval $ac_try) 2>&5
 
5887
  ac_status=$?
 
5888
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5889
  (exit $ac_status); }; }; then
 
5890
  lt_cv_cc_needs_belf=yes
 
5891
else
 
5892
  echo "$as_me: failed program was:" >&5
 
5893
sed 's/^/| /' conftest.$ac_ext >&5
 
5894
 
 
5895
lt_cv_cc_needs_belf=no
 
5896
fi
 
5897
rm -f conftest.err conftest.$ac_objext \
 
5898
      conftest$ac_exeext conftest.$ac_ext
 
5899
     ac_ext=c
 
5900
ac_cpp='$CPP $CPPFLAGS'
 
5901
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5902
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5903
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5904
 
 
5905
fi
 
5906
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5907
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5908
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5909
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5910
    CFLAGS="$SAVE_CFLAGS"
 
5911
  fi
 
5912
  ;;
 
5913
*-*-cygwin* | *-*-mingw* | *-*-pw32*)
 
5914
  if test -n "$ac_tool_prefix"; then
 
5915
  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 
5916
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 
5917
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5919
if test "${ac_cv_prog_DLLTOOL+set}" = set; then
 
5920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5921
else
 
5922
  if test -n "$DLLTOOL"; then
 
5923
  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 
5924
else
 
5925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5926
for as_dir in $PATH
 
5927
do
 
5928
  IFS=$as_save_IFS
 
5929
  test -z "$as_dir" && as_dir=.
 
5930
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5931
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5932
    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 
5933
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5934
    break 2
 
5935
  fi
 
5936
done
 
5937
done
 
5938
 
 
5939
fi
 
5940
fi
 
5941
DLLTOOL=$ac_cv_prog_DLLTOOL
 
5942
if test -n "$DLLTOOL"; then
 
5943
  echo "$as_me:$LINENO: result: $DLLTOOL" >&5
 
5944
echo "${ECHO_T}$DLLTOOL" >&6
 
5945
else
 
5946
  echo "$as_me:$LINENO: result: no" >&5
 
5947
echo "${ECHO_T}no" >&6
 
5948
fi
 
5949
 
 
5950
fi
 
5951
if test -z "$ac_cv_prog_DLLTOOL"; then
 
5952
  ac_ct_DLLTOOL=$DLLTOOL
 
5953
  # Extract the first word of "dlltool", so it can be a program name with args.
 
5954
set dummy dlltool; ac_word=$2
 
5955
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5956
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5957
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
 
5958
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5959
else
 
5960
  if test -n "$ac_ct_DLLTOOL"; then
 
5961
  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
 
5962
else
 
5963
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5964
for as_dir in $PATH
 
5965
do
 
5966
  IFS=$as_save_IFS
 
5967
  test -z "$as_dir" && as_dir=.
 
5968
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5969
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5970
    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
 
5971
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5972
    break 2
 
5973
  fi
 
5974
done
 
5975
done
 
5976
 
 
5977
  test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
 
5978
fi
 
5979
fi
 
5980
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
 
5981
if test -n "$ac_ct_DLLTOOL"; then
 
5982
  echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
 
5983
echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
 
5984
else
 
5985
  echo "$as_me:$LINENO: result: no" >&5
 
5986
echo "${ECHO_T}no" >&6
 
5987
fi
 
5988
 
 
5989
  DLLTOOL=$ac_ct_DLLTOOL
 
5990
else
 
5991
  DLLTOOL="$ac_cv_prog_DLLTOOL"
 
5992
fi
 
5993
 
 
5994
  if test -n "$ac_tool_prefix"; then
 
5995
  # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 
5996
set dummy ${ac_tool_prefix}as; ac_word=$2
 
5997
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5998
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5999
if test "${ac_cv_prog_AS+set}" = set; then
 
6000
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6001
else
 
6002
  if test -n "$AS"; then
 
6003
  ac_cv_prog_AS="$AS" # Let the user override the test.
 
6004
else
 
6005
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6006
for as_dir in $PATH
 
6007
do
 
6008
  IFS=$as_save_IFS
 
6009
  test -z "$as_dir" && as_dir=.
 
6010
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6011
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6012
    ac_cv_prog_AS="${ac_tool_prefix}as"
 
6013
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6014
    break 2
 
6015
  fi
 
6016
done
 
6017
done
 
6018
 
 
6019
fi
 
6020
fi
 
6021
AS=$ac_cv_prog_AS
 
6022
if test -n "$AS"; then
 
6023
  echo "$as_me:$LINENO: result: $AS" >&5
 
6024
echo "${ECHO_T}$AS" >&6
 
6025
else
 
6026
  echo "$as_me:$LINENO: result: no" >&5
 
6027
echo "${ECHO_T}no" >&6
 
6028
fi
 
6029
 
 
6030
fi
 
6031
if test -z "$ac_cv_prog_AS"; then
 
6032
  ac_ct_AS=$AS
 
6033
  # Extract the first word of "as", so it can be a program name with args.
 
6034
set dummy as; ac_word=$2
 
6035
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6037
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
 
6038
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6039
else
 
6040
  if test -n "$ac_ct_AS"; then
 
6041
  ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
 
6042
else
 
6043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6044
for as_dir in $PATH
 
6045
do
 
6046
  IFS=$as_save_IFS
 
6047
  test -z "$as_dir" && as_dir=.
 
6048
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6049
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6050
    ac_cv_prog_ac_ct_AS="as"
 
6051
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6052
    break 2
 
6053
  fi
 
6054
done
 
6055
done
 
6056
 
 
6057
  test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
 
6058
fi
 
6059
fi
 
6060
ac_ct_AS=$ac_cv_prog_ac_ct_AS
 
6061
if test -n "$ac_ct_AS"; then
 
6062
  echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
 
6063
echo "${ECHO_T}$ac_ct_AS" >&6
 
6064
else
 
6065
  echo "$as_me:$LINENO: result: no" >&5
 
6066
echo "${ECHO_T}no" >&6
 
6067
fi
 
6068
 
 
6069
  AS=$ac_ct_AS
 
6070
else
 
6071
  AS="$ac_cv_prog_AS"
 
6072
fi
 
6073
 
 
6074
  if test -n "$ac_tool_prefix"; then
 
6075
  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 
6076
set dummy ${ac_tool_prefix}objdump; ac_word=$2
 
6077
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6078
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6079
if test "${ac_cv_prog_OBJDUMP+set}" = set; then
 
6080
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6081
else
 
6082
  if test -n "$OBJDUMP"; then
 
6083
  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 
6084
else
 
6085
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6086
for as_dir in $PATH
 
6087
do
 
6088
  IFS=$as_save_IFS
 
6089
  test -z "$as_dir" && as_dir=.
 
6090
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6091
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6092
    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 
6093
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6094
    break 2
 
6095
  fi
 
6096
done
 
6097
done
 
6098
 
 
6099
fi
 
6100
fi
 
6101
OBJDUMP=$ac_cv_prog_OBJDUMP
 
6102
if test -n "$OBJDUMP"; then
 
6103
  echo "$as_me:$LINENO: result: $OBJDUMP" >&5
 
6104
echo "${ECHO_T}$OBJDUMP" >&6
 
6105
else
 
6106
  echo "$as_me:$LINENO: result: no" >&5
 
6107
echo "${ECHO_T}no" >&6
 
6108
fi
 
6109
 
 
6110
fi
 
6111
if test -z "$ac_cv_prog_OBJDUMP"; then
 
6112
  ac_ct_OBJDUMP=$OBJDUMP
 
6113
  # Extract the first word of "objdump", so it can be a program name with args.
 
6114
set dummy objdump; ac_word=$2
 
6115
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6116
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6117
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
 
6118
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6119
else
 
6120
  if test -n "$ac_ct_OBJDUMP"; then
 
6121
  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
 
6122
else
 
6123
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6124
for as_dir in $PATH
 
6125
do
 
6126
  IFS=$as_save_IFS
 
6127
  test -z "$as_dir" && as_dir=.
 
6128
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6129
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6130
    ac_cv_prog_ac_ct_OBJDUMP="objdump"
 
6131
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6132
    break 2
 
6133
  fi
 
6134
done
 
6135
done
 
6136
 
 
6137
  test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
 
6138
fi
 
6139
fi
 
6140
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
 
6141
if test -n "$ac_ct_OBJDUMP"; then
 
6142
  echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
 
6143
echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
 
6144
else
 
6145
  echo "$as_me:$LINENO: result: no" >&5
 
6146
echo "${ECHO_T}no" >&6
 
6147
fi
 
6148
 
 
6149
  OBJDUMP=$ac_ct_OBJDUMP
 
6150
else
 
6151
  OBJDUMP="$ac_cv_prog_OBJDUMP"
 
6152
fi
 
6153
 
 
6154
  ;;
 
6155
 
 
6156
esac
 
6157
 
 
6158
need_locks="$enable_libtool_lock"
 
6159
 
 
6160
 
 
6161
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
6162
 
 
6163
 
 
6164
 
 
6165
 
 
6166
 
 
6167
 
 
6168
 
 
6169
 
 
6170
 
 
6171
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
6172
                  inttypes.h stdint.h unistd.h
 
6173
do
 
6174
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6175
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6176
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6177
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6179
else
 
6180
  cat >conftest.$ac_ext <<_ACEOF
 
6181
/* confdefs.h.  */
 
6182
_ACEOF
 
6183
cat confdefs.h >>conftest.$ac_ext
 
6184
cat >>conftest.$ac_ext <<_ACEOF
 
6185
/* end confdefs.h.  */
 
6186
$ac_includes_default
 
6187
 
 
6188
#include <$ac_header>
 
6189
_ACEOF
 
6190
rm -f conftest.$ac_objext
 
6191
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6192
  (eval $ac_compile) 2>conftest.er1
 
6193
  ac_status=$?
 
6194
  grep -v '^ *+' conftest.er1 >conftest.err
 
6195
  rm -f conftest.er1
 
6196
  cat conftest.err >&5
 
6197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6198
  (exit $ac_status); } &&
 
6199
         { ac_try='test -z "$ac_c_werror_flag"
 
6200
                         || test ! -s conftest.err'
 
6201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6202
  (eval $ac_try) 2>&5
 
6203
  ac_status=$?
 
6204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6205
  (exit $ac_status); }; } &&
 
6206
         { ac_try='test -s conftest.$ac_objext'
 
6207
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6208
  (eval $ac_try) 2>&5
 
6209
  ac_status=$?
 
6210
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6211
  (exit $ac_status); }; }; then
 
6212
  eval "$as_ac_Header=yes"
 
6213
else
 
6214
  echo "$as_me: failed program was:" >&5
 
6215
sed 's/^/| /' conftest.$ac_ext >&5
 
6216
 
 
6217
eval "$as_ac_Header=no"
 
6218
fi
 
6219
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6220
fi
 
6221
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6222
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6223
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6224
  cat >>confdefs.h <<_ACEOF
 
6225
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6226
_ACEOF
 
6227
 
 
6228
fi
 
6229
 
 
6230
done
 
6231
 
 
6232
 
 
6233
 
 
6234
for ac_header in dlfcn.h
 
6235
do
 
6236
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6237
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6238
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6239
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6241
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6242
fi
 
6243
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6244
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6245
else
 
6246
  # Is the header compilable?
 
6247
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6248
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
6249
cat >conftest.$ac_ext <<_ACEOF
 
6250
/* confdefs.h.  */
 
6251
_ACEOF
 
6252
cat confdefs.h >>conftest.$ac_ext
 
6253
cat >>conftest.$ac_ext <<_ACEOF
 
6254
/* end confdefs.h.  */
 
6255
$ac_includes_default
 
6256
#include <$ac_header>
 
6257
_ACEOF
 
6258
rm -f conftest.$ac_objext
 
6259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6260
  (eval $ac_compile) 2>conftest.er1
 
6261
  ac_status=$?
 
6262
  grep -v '^ *+' conftest.er1 >conftest.err
 
6263
  rm -f conftest.er1
 
6264
  cat conftest.err >&5
 
6265
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6266
  (exit $ac_status); } &&
 
6267
         { ac_try='test -z "$ac_c_werror_flag"
 
6268
                         || test ! -s conftest.err'
 
6269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6270
  (eval $ac_try) 2>&5
 
6271
  ac_status=$?
 
6272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6273
  (exit $ac_status); }; } &&
 
6274
         { ac_try='test -s conftest.$ac_objext'
 
6275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6276
  (eval $ac_try) 2>&5
 
6277
  ac_status=$?
 
6278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6279
  (exit $ac_status); }; }; then
 
6280
  ac_header_compiler=yes
 
6281
else
 
6282
  echo "$as_me: failed program was:" >&5
 
6283
sed 's/^/| /' conftest.$ac_ext >&5
 
6284
 
 
6285
ac_header_compiler=no
 
6286
fi
 
6287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6288
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6289
echo "${ECHO_T}$ac_header_compiler" >&6
 
6290
 
 
6291
# Is the header present?
 
6292
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6293
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
6294
cat >conftest.$ac_ext <<_ACEOF
 
6295
/* confdefs.h.  */
 
6296
_ACEOF
 
6297
cat confdefs.h >>conftest.$ac_ext
 
6298
cat >>conftest.$ac_ext <<_ACEOF
 
6299
/* end confdefs.h.  */
 
6300
#include <$ac_header>
 
6301
_ACEOF
 
6302
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6303
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6304
  ac_status=$?
 
6305
  grep -v '^ *+' conftest.er1 >conftest.err
 
6306
  rm -f conftest.er1
 
6307
  cat conftest.err >&5
 
6308
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6309
  (exit $ac_status); } >/dev/null; then
 
6310
  if test -s conftest.err; then
 
6311
    ac_cpp_err=$ac_c_preproc_warn_flag
 
6312
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
6313
  else
 
6314
    ac_cpp_err=
 
6315
  fi
 
6316
else
 
6317
  ac_cpp_err=yes
 
6318
fi
 
6319
if test -z "$ac_cpp_err"; then
 
6320
  ac_header_preproc=yes
 
6321
else
 
6322
  echo "$as_me: failed program was:" >&5
 
6323
sed 's/^/| /' conftest.$ac_ext >&5
 
6324
 
 
6325
  ac_header_preproc=no
 
6326
fi
 
6327
rm -f conftest.err conftest.$ac_ext
 
6328
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6329
echo "${ECHO_T}$ac_header_preproc" >&6
 
6330
 
 
6331
# So?  What about this header?
 
6332
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6333
  yes:no: )
 
6334
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6335
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6336
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6337
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6338
    ac_header_preproc=yes
 
6339
    ;;
 
6340
  no:yes:* )
 
6341
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6342
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6343
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6344
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6345
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6346
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6347
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6348
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6349
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6350
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6351
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6352
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6353
    (
 
6354
      cat <<\_ASBOX
 
6355
## ------------------------------------------ ##
 
6356
## Report this to the AC_PACKAGE_NAME lists.  ##
 
6357
## ------------------------------------------ ##
 
6358
_ASBOX
 
6359
    ) |
 
6360
      sed "s/^/$as_me: WARNING:     /" >&2
 
6361
    ;;
 
6362
esac
 
6363
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6364
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
6365
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
6366
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6367
else
 
6368
  eval "$as_ac_Header=\$ac_header_preproc"
 
6369
fi
 
6370
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
6371
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
6372
 
 
6373
fi
 
6374
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6375
  cat >>confdefs.h <<_ACEOF
 
6376
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6377
_ACEOF
 
6378
 
 
6379
fi
 
6380
 
 
6381
done
 
6382
 
 
6383
ac_ext=cc
 
6384
ac_cpp='$CXXCPP $CPPFLAGS'
 
6385
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6386
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6387
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6388
if test -n "$ac_tool_prefix"; then
 
6389
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6390
  do
 
6391
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6392
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6393
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6394
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6395
if test "${ac_cv_prog_CXX+set}" = set; then
 
6396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6397
else
 
6398
  if test -n "$CXX"; then
 
6399
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
6400
else
 
6401
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6402
for as_dir in $PATH
 
6403
do
 
6404
  IFS=$as_save_IFS
 
6405
  test -z "$as_dir" && as_dir=.
 
6406
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6407
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6408
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
6409
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6410
    break 2
 
6411
  fi
 
6412
done
 
6413
done
 
6414
 
 
6415
fi
 
6416
fi
 
6417
CXX=$ac_cv_prog_CXX
 
6418
if test -n "$CXX"; then
 
6419
  echo "$as_me:$LINENO: result: $CXX" >&5
 
6420
echo "${ECHO_T}$CXX" >&6
 
6421
else
 
6422
  echo "$as_me:$LINENO: result: no" >&5
 
6423
echo "${ECHO_T}no" >&6
 
6424
fi
 
6425
 
 
6426
    test -n "$CXX" && break
 
6427
  done
 
6428
fi
 
6429
if test -z "$CXX"; then
 
6430
  ac_ct_CXX=$CXX
 
6431
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
6432
do
 
6433
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6434
set dummy $ac_prog; ac_word=$2
 
6435
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6436
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6437
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
6438
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6439
else
 
6440
  if test -n "$ac_ct_CXX"; then
 
6441
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
6442
else
 
6443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6444
for as_dir in $PATH
 
6445
do
 
6446
  IFS=$as_save_IFS
 
6447
  test -z "$as_dir" && as_dir=.
 
6448
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6449
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6450
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
6451
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6452
    break 2
 
6453
  fi
 
6454
done
 
6455
done
 
6456
 
 
6457
fi
 
6458
fi
 
6459
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
6460
if test -n "$ac_ct_CXX"; then
 
6461
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
6462
echo "${ECHO_T}$ac_ct_CXX" >&6
 
6463
else
 
6464
  echo "$as_me:$LINENO: result: no" >&5
 
6465
echo "${ECHO_T}no" >&6
 
6466
fi
 
6467
 
 
6468
  test -n "$ac_ct_CXX" && break
 
6469
done
 
6470
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
6471
 
 
6472
  CXX=$ac_ct_CXX
 
6473
fi
 
6474
 
 
6475
 
 
6476
# Provide some information about the compiler.
 
6477
echo "$as_me:$LINENO:" \
 
6478
     "checking for C++ compiler version" >&5
 
6479
ac_compiler=`set X $ac_compile; echo $2`
 
6480
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6481
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6482
  ac_status=$?
 
6483
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6484
  (exit $ac_status); }
 
6485
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6486
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6487
  ac_status=$?
 
6488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6489
  (exit $ac_status); }
 
6490
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6491
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6492
  ac_status=$?
 
6493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6494
  (exit $ac_status); }
 
6495
 
 
6496
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
6497
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
6498
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
6499
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6500
else
 
6501
  cat >conftest.$ac_ext <<_ACEOF
 
6502
/* confdefs.h.  */
 
6503
_ACEOF
 
6504
cat confdefs.h >>conftest.$ac_ext
 
6505
cat >>conftest.$ac_ext <<_ACEOF
 
6506
/* end confdefs.h.  */
 
6507
 
 
6508
int
 
6509
main ()
 
6510
{
 
6511
#ifndef __GNUC__
 
6512
       choke me
 
6513
#endif
 
6514
 
 
6515
  ;
 
6516
  return 0;
 
6517
}
 
6518
_ACEOF
 
6519
rm -f conftest.$ac_objext
 
6520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6521
  (eval $ac_compile) 2>conftest.er1
 
6522
  ac_status=$?
 
6523
  grep -v '^ *+' conftest.er1 >conftest.err
 
6524
  rm -f conftest.er1
 
6525
  cat conftest.err >&5
 
6526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6527
  (exit $ac_status); } &&
 
6528
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6529
                         || test ! -s conftest.err'
 
6530
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6531
  (eval $ac_try) 2>&5
 
6532
  ac_status=$?
 
6533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6534
  (exit $ac_status); }; } &&
 
6535
         { ac_try='test -s conftest.$ac_objext'
 
6536
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6537
  (eval $ac_try) 2>&5
 
6538
  ac_status=$?
 
6539
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6540
  (exit $ac_status); }; }; then
 
6541
  ac_compiler_gnu=yes
 
6542
else
 
6543
  echo "$as_me: failed program was:" >&5
 
6544
sed 's/^/| /' conftest.$ac_ext >&5
 
6545
 
 
6546
ac_compiler_gnu=no
 
6547
fi
 
6548
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6549
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
6550
 
 
6551
fi
 
6552
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
6553
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
6554
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
6555
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
6556
ac_save_CXXFLAGS=$CXXFLAGS
 
6557
CXXFLAGS="-g"
 
6558
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
6559
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
6560
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
6561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6562
else
 
6563
  cat >conftest.$ac_ext <<_ACEOF
 
6564
/* confdefs.h.  */
 
6565
_ACEOF
 
6566
cat confdefs.h >>conftest.$ac_ext
 
6567
cat >>conftest.$ac_ext <<_ACEOF
 
6568
/* end confdefs.h.  */
 
6569
 
 
6570
int
 
6571
main ()
 
6572
{
 
6573
 
 
6574
  ;
 
6575
  return 0;
 
6576
}
 
6577
_ACEOF
 
6578
rm -f conftest.$ac_objext
 
6579
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6580
  (eval $ac_compile) 2>conftest.er1
 
6581
  ac_status=$?
 
6582
  grep -v '^ *+' conftest.er1 >conftest.err
 
6583
  rm -f conftest.er1
 
6584
  cat conftest.err >&5
 
6585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6586
  (exit $ac_status); } &&
 
6587
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6588
                         || test ! -s conftest.err'
 
6589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6590
  (eval $ac_try) 2>&5
 
6591
  ac_status=$?
 
6592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6593
  (exit $ac_status); }; } &&
 
6594
         { ac_try='test -s conftest.$ac_objext'
 
6595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6596
  (eval $ac_try) 2>&5
 
6597
  ac_status=$?
 
6598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6599
  (exit $ac_status); }; }; then
 
6600
  ac_cv_prog_cxx_g=yes
 
6601
else
 
6602
  echo "$as_me: failed program was:" >&5
 
6603
sed 's/^/| /' conftest.$ac_ext >&5
 
6604
 
 
6605
ac_cv_prog_cxx_g=no
 
6606
fi
 
6607
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6608
fi
 
6609
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
6610
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
6611
if test "$ac_test_CXXFLAGS" = set; then
 
6612
  CXXFLAGS=$ac_save_CXXFLAGS
 
6613
elif test $ac_cv_prog_cxx_g = yes; then
 
6614
  if test "$GXX" = yes; then
 
6615
    CXXFLAGS="-g -O2"
 
6616
  else
 
6617
    CXXFLAGS="-g"
 
6618
  fi
 
6619
else
 
6620
  if test "$GXX" = yes; then
 
6621
    CXXFLAGS="-O2"
 
6622
  else
 
6623
    CXXFLAGS=
 
6624
  fi
 
6625
fi
 
6626
for ac_declaration in \
 
6627
   '' \
 
6628
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
6629
   'extern "C" void std::exit (int); using std::exit;' \
 
6630
   'extern "C" void exit (int) throw ();' \
 
6631
   'extern "C" void exit (int);' \
 
6632
   'void exit (int);'
 
6633
do
 
6634
  cat >conftest.$ac_ext <<_ACEOF
 
6635
/* confdefs.h.  */
 
6636
_ACEOF
 
6637
cat confdefs.h >>conftest.$ac_ext
 
6638
cat >>conftest.$ac_ext <<_ACEOF
 
6639
/* end confdefs.h.  */
 
6640
$ac_declaration
 
6641
#include <stdlib.h>
 
6642
int
 
6643
main ()
 
6644
{
 
6645
exit (42);
 
6646
  ;
 
6647
  return 0;
 
6648
}
 
6649
_ACEOF
 
6650
rm -f conftest.$ac_objext
 
6651
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6652
  (eval $ac_compile) 2>conftest.er1
 
6653
  ac_status=$?
 
6654
  grep -v '^ *+' conftest.er1 >conftest.err
 
6655
  rm -f conftest.er1
 
6656
  cat conftest.err >&5
 
6657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6658
  (exit $ac_status); } &&
 
6659
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6660
                         || test ! -s conftest.err'
 
6661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6662
  (eval $ac_try) 2>&5
 
6663
  ac_status=$?
 
6664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6665
  (exit $ac_status); }; } &&
 
6666
         { ac_try='test -s conftest.$ac_objext'
 
6667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6668
  (eval $ac_try) 2>&5
 
6669
  ac_status=$?
 
6670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6671
  (exit $ac_status); }; }; then
 
6672
  :
 
6673
else
 
6674
  echo "$as_me: failed program was:" >&5
 
6675
sed 's/^/| /' conftest.$ac_ext >&5
 
6676
 
 
6677
continue
 
6678
fi
 
6679
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6680
  cat >conftest.$ac_ext <<_ACEOF
 
6681
/* confdefs.h.  */
 
6682
_ACEOF
 
6683
cat confdefs.h >>conftest.$ac_ext
 
6684
cat >>conftest.$ac_ext <<_ACEOF
 
6685
/* end confdefs.h.  */
 
6686
$ac_declaration
 
6687
int
 
6688
main ()
 
6689
{
 
6690
exit (42);
 
6691
  ;
 
6692
  return 0;
 
6693
}
 
6694
_ACEOF
 
6695
rm -f conftest.$ac_objext
 
6696
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6697
  (eval $ac_compile) 2>conftest.er1
 
6698
  ac_status=$?
 
6699
  grep -v '^ *+' conftest.er1 >conftest.err
 
6700
  rm -f conftest.er1
 
6701
  cat conftest.err >&5
 
6702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6703
  (exit $ac_status); } &&
 
6704
         { ac_try='test -z "$ac_cxx_werror_flag"
 
6705
                         || test ! -s conftest.err'
 
6706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6707
  (eval $ac_try) 2>&5
 
6708
  ac_status=$?
 
6709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6710
  (exit $ac_status); }; } &&
 
6711
         { ac_try='test -s conftest.$ac_objext'
 
6712
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6713
  (eval $ac_try) 2>&5
 
6714
  ac_status=$?
 
6715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6716
  (exit $ac_status); }; }; then
 
6717
  break
 
6718
else
 
6719
  echo "$as_me: failed program was:" >&5
 
6720
sed 's/^/| /' conftest.$ac_ext >&5
 
6721
 
 
6722
fi
 
6723
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6724
done
 
6725
rm -f conftest*
 
6726
if test -n "$ac_declaration"; then
 
6727
  echo '#ifdef __cplusplus' >>confdefs.h
 
6728
  echo $ac_declaration      >>confdefs.h
 
6729
  echo '#endif'             >>confdefs.h
 
6730
fi
 
6731
 
 
6732
ac_ext=cc
 
6733
ac_cpp='$CXXCPP $CPPFLAGS'
 
6734
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6735
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6736
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6737
 
 
6738
depcc="$CXX"  am_compiler_list=
 
6739
 
 
6740
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
6741
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
6742
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
6743
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6744
else
 
6745
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
6746
  # We make a subdir and do the tests there.  Otherwise we can end up
 
6747
  # making bogus files that we don't know about and never remove.  For
 
6748
  # instance it was reported that on HP-UX the gcc test will end up
 
6749
  # making a dummy file named `D' -- because `-MD' means `put the output
 
6750
  # in D'.
 
6751
  mkdir conftest.dir
 
6752
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
6753
  # using a relative directory.
 
6754
  cp "$am_depcomp" conftest.dir
 
6755
  cd conftest.dir
 
6756
  # We will build objects and dependencies in a subdirectory because
 
6757
  # it helps to detect inapplicable dependency modes.  For instance
 
6758
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
6759
  # side effect of compilation, but ICC will put the dependencies in
 
6760
  # the current directory while Tru64 will put them in the object
 
6761
  # directory.
 
6762
  mkdir sub
 
6763
 
 
6764
  am_cv_CXX_dependencies_compiler_type=none
 
6765
  if test "$am_compiler_list" = ""; then
 
6766
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
6767
  fi
 
6768
  for depmode in $am_compiler_list; do
 
6769
    # Setup a source with many dependencies, because some compilers
 
6770
    # like to wrap large dependency lists on column 80 (with \), and
 
6771
    # we should not choose a depcomp mode which is confused by this.
 
6772
    #
 
6773
    # We need to recreate these files for each test, as the compiler may
 
6774
    # overwrite some of them when testing with obscure command lines.
 
6775
    # This happens at least with the AIX C compiler.
 
6776
    : > sub/conftest.c
 
6777
    for i in 1 2 3 4 5 6; do
 
6778
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
6779
      : > sub/conftst$i.h
 
6780
    done
 
6781
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
6782
 
 
6783
    case $depmode in
 
6784
    nosideeffect)
 
6785
      # after this tag, mechanisms are not by side-effect, so they'll
 
6786
      # only be used when explicitly requested
 
6787
      if test "x$enable_dependency_tracking" = xyes; then
 
6788
        continue
 
6789
      else
 
6790
        break
 
6791
      fi
 
6792
      ;;
 
6793
    none) break ;;
 
6794
    esac
 
6795
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
6796
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
6797
    # handle `-M -o', and we need to detect this.
 
6798
    if depmode=$depmode \
 
6799
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
6800
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
6801
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
6802
         >/dev/null 2>conftest.err &&
 
6803
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
6804
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
6805
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
6806
      # icc doesn't choke on unknown options, it will just issue warnings
 
6807
      # (even with -Werror).  So we grep stderr for any message
 
6808
      # that says an option was ignored.
 
6809
      if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
 
6810
        am_cv_CXX_dependencies_compiler_type=$depmode
 
6811
        break
 
6812
      fi
 
6813
    fi
 
6814
  done
 
6815
 
 
6816
  cd ..
 
6817
  rm -rf conftest.dir
 
6818
else
 
6819
  am_cv_CXX_dependencies_compiler_type=none
 
6820
fi
 
6821
 
 
6822
fi
 
6823
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
6824
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
6825
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
6826
 
 
6827
 
 
6828
 
 
6829
if
 
6830
  test "x$enable_dependency_tracking" != xno \
 
6831
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
6832
  am__fastdepCXX_TRUE=
 
6833
  am__fastdepCXX_FALSE='#'
 
6834
else
 
6835
  am__fastdepCXX_TRUE='#'
 
6836
  am__fastdepCXX_FALSE=
 
6837
fi
 
6838
 
 
6839
 
 
6840
 
 
6841
 
 
6842
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
6843
    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
6844
    (test "X$CXX" != "Xg++"))) ; then
 
6845
  ac_ext=cc
 
6846
ac_cpp='$CXXCPP $CPPFLAGS'
 
6847
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6848
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6849
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6850
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
6851
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
6852
if test -z "$CXXCPP"; then
 
6853
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
6854
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6855
else
 
6856
      # Double quotes because CXXCPP needs to be expanded
 
6857
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
6858
    do
 
6859
      ac_preproc_ok=false
 
6860
for ac_cxx_preproc_warn_flag in '' yes
 
6861
do
 
6862
  # Use a header file that comes with gcc, so configuring glibc
 
6863
  # with a fresh cross-compiler works.
 
6864
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6865
  # <limits.h> exists even on freestanding compilers.
 
6866
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6867
  # not just through cpp. "Syntax error" is here to catch this case.
 
6868
  cat >conftest.$ac_ext <<_ACEOF
 
6869
/* confdefs.h.  */
 
6870
_ACEOF
 
6871
cat confdefs.h >>conftest.$ac_ext
 
6872
cat >>conftest.$ac_ext <<_ACEOF
 
6873
/* end confdefs.h.  */
 
6874
#ifdef __STDC__
 
6875
# include <limits.h>
 
6876
#else
 
6877
# include <assert.h>
 
6878
#endif
 
6879
                     Syntax error
 
6880
_ACEOF
 
6881
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6882
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6883
  ac_status=$?
 
6884
  grep -v '^ *+' conftest.er1 >conftest.err
 
6885
  rm -f conftest.er1
 
6886
  cat conftest.err >&5
 
6887
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6888
  (exit $ac_status); } >/dev/null; then
 
6889
  if test -s conftest.err; then
 
6890
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6891
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6892
  else
 
6893
    ac_cpp_err=
 
6894
  fi
 
6895
else
 
6896
  ac_cpp_err=yes
 
6897
fi
 
6898
if test -z "$ac_cpp_err"; then
 
6899
  :
 
6900
else
 
6901
  echo "$as_me: failed program was:" >&5
 
6902
sed 's/^/| /' conftest.$ac_ext >&5
 
6903
 
 
6904
  # Broken: fails on valid input.
 
6905
continue
 
6906
fi
 
6907
rm -f conftest.err conftest.$ac_ext
 
6908
 
 
6909
  # OK, works on sane cases.  Now check whether non-existent headers
 
6910
  # can be detected and how.
 
6911
  cat >conftest.$ac_ext <<_ACEOF
 
6912
/* confdefs.h.  */
 
6913
_ACEOF
 
6914
cat confdefs.h >>conftest.$ac_ext
 
6915
cat >>conftest.$ac_ext <<_ACEOF
 
6916
/* end confdefs.h.  */
 
6917
#include <ac_nonexistent.h>
 
6918
_ACEOF
 
6919
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6920
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6921
  ac_status=$?
 
6922
  grep -v '^ *+' conftest.er1 >conftest.err
 
6923
  rm -f conftest.er1
 
6924
  cat conftest.err >&5
 
6925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6926
  (exit $ac_status); } >/dev/null; then
 
6927
  if test -s conftest.err; then
 
6928
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6929
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6930
  else
 
6931
    ac_cpp_err=
 
6932
  fi
 
6933
else
 
6934
  ac_cpp_err=yes
 
6935
fi
 
6936
if test -z "$ac_cpp_err"; then
 
6937
  # Broken: success on invalid input.
 
6938
continue
 
6939
else
 
6940
  echo "$as_me: failed program was:" >&5
 
6941
sed 's/^/| /' conftest.$ac_ext >&5
 
6942
 
 
6943
  # Passes both tests.
 
6944
ac_preproc_ok=:
 
6945
break
 
6946
fi
 
6947
rm -f conftest.err conftest.$ac_ext
 
6948
 
 
6949
done
 
6950
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6951
rm -f conftest.err conftest.$ac_ext
 
6952
if $ac_preproc_ok; then
 
6953
  break
 
6954
fi
 
6955
 
 
6956
    done
 
6957
    ac_cv_prog_CXXCPP=$CXXCPP
 
6958
 
 
6959
fi
 
6960
  CXXCPP=$ac_cv_prog_CXXCPP
 
6961
else
 
6962
  ac_cv_prog_CXXCPP=$CXXCPP
 
6963
fi
 
6964
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
6965
echo "${ECHO_T}$CXXCPP" >&6
 
6966
ac_preproc_ok=false
 
6967
for ac_cxx_preproc_warn_flag in '' yes
 
6968
do
 
6969
  # Use a header file that comes with gcc, so configuring glibc
 
6970
  # with a fresh cross-compiler works.
 
6971
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6972
  # <limits.h> exists even on freestanding compilers.
 
6973
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
6974
  # not just through cpp. "Syntax error" is here to catch this case.
 
6975
  cat >conftest.$ac_ext <<_ACEOF
 
6976
/* confdefs.h.  */
 
6977
_ACEOF
 
6978
cat confdefs.h >>conftest.$ac_ext
 
6979
cat >>conftest.$ac_ext <<_ACEOF
 
6980
/* end confdefs.h.  */
 
6981
#ifdef __STDC__
 
6982
# include <limits.h>
 
6983
#else
 
6984
# include <assert.h>
 
6985
#endif
 
6986
                     Syntax error
 
6987
_ACEOF
 
6988
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6989
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6990
  ac_status=$?
 
6991
  grep -v '^ *+' conftest.er1 >conftest.err
 
6992
  rm -f conftest.er1
 
6993
  cat conftest.err >&5
 
6994
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6995
  (exit $ac_status); } >/dev/null; then
 
6996
  if test -s conftest.err; then
 
6997
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6998
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6999
  else
 
7000
    ac_cpp_err=
 
7001
  fi
 
7002
else
 
7003
  ac_cpp_err=yes
 
7004
fi
 
7005
if test -z "$ac_cpp_err"; then
 
7006
  :
 
7007
else
 
7008
  echo "$as_me: failed program was:" >&5
 
7009
sed 's/^/| /' conftest.$ac_ext >&5
 
7010
 
 
7011
  # Broken: fails on valid input.
 
7012
continue
 
7013
fi
 
7014
rm -f conftest.err conftest.$ac_ext
 
7015
 
 
7016
  # OK, works on sane cases.  Now check whether non-existent headers
 
7017
  # can be detected and how.
 
7018
  cat >conftest.$ac_ext <<_ACEOF
 
7019
/* confdefs.h.  */
 
7020
_ACEOF
 
7021
cat confdefs.h >>conftest.$ac_ext
 
7022
cat >>conftest.$ac_ext <<_ACEOF
 
7023
/* end confdefs.h.  */
 
7024
#include <ac_nonexistent.h>
 
7025
_ACEOF
 
7026
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
7027
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
7028
  ac_status=$?
 
7029
  grep -v '^ *+' conftest.er1 >conftest.err
 
7030
  rm -f conftest.er1
 
7031
  cat conftest.err >&5
 
7032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7033
  (exit $ac_status); } >/dev/null; then
 
7034
  if test -s conftest.err; then
 
7035
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
7036
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
7037
  else
 
7038
    ac_cpp_err=
 
7039
  fi
 
7040
else
 
7041
  ac_cpp_err=yes
 
7042
fi
 
7043
if test -z "$ac_cpp_err"; then
 
7044
  # Broken: success on invalid input.
 
7045
continue
 
7046
else
 
7047
  echo "$as_me: failed program was:" >&5
 
7048
sed 's/^/| /' conftest.$ac_ext >&5
 
7049
 
 
7050
  # Passes both tests.
 
7051
ac_preproc_ok=:
 
7052
break
 
7053
fi
 
7054
rm -f conftest.err conftest.$ac_ext
 
7055
 
 
7056
done
 
7057
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
7058
rm -f conftest.err conftest.$ac_ext
 
7059
if $ac_preproc_ok; then
 
7060
  :
 
7061
else
 
7062
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7063
See \`config.log' for more details." >&5
 
7064
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
7065
See \`config.log' for more details." >&2;}
 
7066
   { (exit 1); exit 1; }; }
 
7067
fi
 
7068
 
 
7069
ac_ext=cc
 
7070
ac_cpp='$CXXCPP $CPPFLAGS'
 
7071
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7072
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7073
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
7074
 
 
7075
fi
 
7076
 
 
7077
 
 
7078
ac_ext=f
 
7079
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
7080
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7081
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
7082
if test -n "$ac_tool_prefix"; then
 
7083
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7084
  do
 
7085
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
7086
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
7087
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7088
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7089
if test "${ac_cv_prog_F77+set}" = set; then
 
7090
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7091
else
 
7092
  if test -n "$F77"; then
 
7093
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
7094
else
 
7095
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7096
for as_dir in $PATH
 
7097
do
 
7098
  IFS=$as_save_IFS
 
7099
  test -z "$as_dir" && as_dir=.
 
7100
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7101
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7102
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
7103
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7104
    break 2
 
7105
  fi
 
7106
done
 
7107
done
 
7108
 
 
7109
fi
 
7110
fi
 
7111
F77=$ac_cv_prog_F77
 
7112
if test -n "$F77"; then
 
7113
  echo "$as_me:$LINENO: result: $F77" >&5
 
7114
echo "${ECHO_T}$F77" >&6
 
7115
else
 
7116
  echo "$as_me:$LINENO: result: no" >&5
 
7117
echo "${ECHO_T}no" >&6
 
7118
fi
 
7119
 
 
7120
    test -n "$F77" && break
 
7121
  done
 
7122
fi
 
7123
if test -z "$F77"; then
 
7124
  ac_ct_F77=$F77
 
7125
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
7126
do
 
7127
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7128
set dummy $ac_prog; ac_word=$2
 
7129
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7130
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7131
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
7132
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7133
else
 
7134
  if test -n "$ac_ct_F77"; then
 
7135
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
7136
else
 
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7138
for as_dir in $PATH
 
7139
do
 
7140
  IFS=$as_save_IFS
 
7141
  test -z "$as_dir" && as_dir=.
 
7142
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7143
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7144
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
7145
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7146
    break 2
 
7147
  fi
 
7148
done
 
7149
done
 
7150
 
 
7151
fi
 
7152
fi
 
7153
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
7154
if test -n "$ac_ct_F77"; then
 
7155
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
7156
echo "${ECHO_T}$ac_ct_F77" >&6
 
7157
else
 
7158
  echo "$as_me:$LINENO: result: no" >&5
 
7159
echo "${ECHO_T}no" >&6
 
7160
fi
 
7161
 
 
7162
  test -n "$ac_ct_F77" && break
 
7163
done
 
7164
 
 
7165
  F77=$ac_ct_F77
 
7166
fi
 
7167
 
 
7168
 
 
7169
# Provide some information about the compiler.
 
7170
echo "$as_me:7170:" \
 
7171
     "checking for Fortran 77 compiler version" >&5
 
7172
ac_compiler=`set X $ac_compile; echo $2`
 
7173
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
7174
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
7175
  ac_status=$?
 
7176
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7177
  (exit $ac_status); }
 
7178
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
7179
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
7180
  ac_status=$?
 
7181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7182
  (exit $ac_status); }
 
7183
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
7184
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
7185
  ac_status=$?
 
7186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7187
  (exit $ac_status); }
 
7188
rm -f a.out
 
7189
 
 
7190
# If we don't use `.F' as extension, the preprocessor is not run on the
 
7191
# input file.  (Note that this only needs to work for GNU compilers.)
 
7192
ac_save_ext=$ac_ext
 
7193
ac_ext=F
 
7194
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
7195
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
7196
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
7197
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7198
else
 
7199
  cat >conftest.$ac_ext <<_ACEOF
 
7200
      program main
 
7201
#ifndef __GNUC__
 
7202
       choke me
 
7203
#endif
 
7204
 
 
7205
      end
 
7206
_ACEOF
 
7207
rm -f conftest.$ac_objext
 
7208
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7209
  (eval $ac_compile) 2>conftest.er1
 
7210
  ac_status=$?
 
7211
  grep -v '^ *+' conftest.er1 >conftest.err
 
7212
  rm -f conftest.er1
 
7213
  cat conftest.err >&5
 
7214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7215
  (exit $ac_status); } &&
 
7216
         { ac_try='test -z "$ac_f77_werror_flag"
 
7217
                         || test ! -s conftest.err'
 
7218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7219
  (eval $ac_try) 2>&5
 
7220
  ac_status=$?
 
7221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7222
  (exit $ac_status); }; } &&
 
7223
         { ac_try='test -s conftest.$ac_objext'
 
7224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7225
  (eval $ac_try) 2>&5
 
7226
  ac_status=$?
 
7227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7228
  (exit $ac_status); }; }; then
 
7229
  ac_compiler_gnu=yes
 
7230
else
 
7231
  echo "$as_me: failed program was:" >&5
 
7232
sed 's/^/| /' conftest.$ac_ext >&5
 
7233
 
 
7234
ac_compiler_gnu=no
 
7235
fi
 
7236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7237
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
7238
 
 
7239
fi
 
7240
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
7241
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
7242
ac_ext=$ac_save_ext
 
7243
ac_test_FFLAGS=${FFLAGS+set}
 
7244
ac_save_FFLAGS=$FFLAGS
 
7245
FFLAGS=
 
7246
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
7247
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
7248
if test "${ac_cv_prog_f77_g+set}" = set; then
 
7249
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7250
else
 
7251
  FFLAGS=-g
 
7252
cat >conftest.$ac_ext <<_ACEOF
 
7253
      program main
 
7254
 
 
7255
      end
 
7256
_ACEOF
 
7257
rm -f conftest.$ac_objext
 
7258
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
7259
  (eval $ac_compile) 2>conftest.er1
 
7260
  ac_status=$?
 
7261
  grep -v '^ *+' conftest.er1 >conftest.err
 
7262
  rm -f conftest.er1
 
7263
  cat conftest.err >&5
 
7264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7265
  (exit $ac_status); } &&
 
7266
         { ac_try='test -z "$ac_f77_werror_flag"
 
7267
                         || test ! -s conftest.err'
 
7268
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7269
  (eval $ac_try) 2>&5
 
7270
  ac_status=$?
 
7271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7272
  (exit $ac_status); }; } &&
 
7273
         { ac_try='test -s conftest.$ac_objext'
 
7274
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7275
  (eval $ac_try) 2>&5
 
7276
  ac_status=$?
 
7277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7278
  (exit $ac_status); }; }; then
 
7279
  ac_cv_prog_f77_g=yes
 
7280
else
 
7281
  echo "$as_me: failed program was:" >&5
 
7282
sed 's/^/| /' conftest.$ac_ext >&5
 
7283
 
 
7284
ac_cv_prog_f77_g=no
 
7285
fi
 
7286
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
7287
 
 
7288
fi
 
7289
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
7290
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
7291
if test "$ac_test_FFLAGS" = set; then
 
7292
  FFLAGS=$ac_save_FFLAGS
 
7293
elif test $ac_cv_prog_f77_g = yes; then
 
7294
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7295
    FFLAGS="-g -O2"
 
7296
  else
 
7297
    FFLAGS="-g"
 
7298
  fi
 
7299
else
 
7300
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
7301
    FFLAGS="-O2"
 
7302
  else
 
7303
    FFLAGS=
 
7304
  fi
 
7305
fi
 
7306
 
 
7307
G77=`test $ac_compiler_gnu = yes && echo yes`
 
7308
ac_ext=c
 
7309
ac_cpp='$CPP $CPPFLAGS'
 
7310
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7311
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7312
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7313
 
 
7314
 
 
7315
 
 
7316
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
7317
 
 
7318
# find the maximum length of command line arguments
 
7319
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
7320
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
7321
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
7322
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7323
else
 
7324
    i=0
 
7325
  teststring="ABCD"
 
7326
 
 
7327
  case $build_os in
 
7328
  msdosdjgpp*)
 
7329
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
7330
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
7331
    # during glob expansion).  Even if it were fixed, the result of this
 
7332
    # check would be larger than it should be.
 
7333
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
7334
    ;;
 
7335
 
 
7336
  gnu*)
 
7337
    # Under GNU Hurd, this test is not required because there is
 
7338
    # no limit to the length of command line arguments.
 
7339
    # Libtool will interpret -1 as no limit whatsoever
 
7340
    lt_cv_sys_max_cmd_len=-1;
 
7341
    ;;
 
7342
 
 
7343
  cygwin* | mingw*)
 
7344
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
7345
    # about 5 minutes as the teststring grows exponentially.
 
7346
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
7347
    # you end up with a "frozen" computer, even though with patience
 
7348
    # the test eventually succeeds (with a max line length of 256k).
 
7349
    # Instead, let's just punt: use the minimum linelength reported by
 
7350
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
7351
    lt_cv_sys_max_cmd_len=8192;
 
7352
    ;;
 
7353
 
 
7354
  amigaos*)
 
7355
    # On AmigaOS with pdksh, this test takes hours, literally.
 
7356
    # So we just punt and use a minimum line length of 8192.
 
7357
    lt_cv_sys_max_cmd_len=8192;
 
7358
    ;;
 
7359
 
 
7360
  netbsd* | freebsd* | openbsd* | darwin* )
 
7361
    # This has been around since 386BSD, at least.  Likely further.
 
7362
    if test -x /sbin/sysctl; then
 
7363
      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
 
7364
    elif test -x /usr/sbin/sysctl; then
 
7365
      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
 
7366
    else
 
7367
      lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
 
7368
    fi
 
7369
    # And add a safety zone
 
7370
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
 
7371
    ;;
 
7372
 
 
7373
 *)
 
7374
    # If test is not a shell built-in, we'll probably end up computing a
 
7375
    # maximum length that is only half of the actual maximum length, but
 
7376
    # we can't tell.
 
7377
    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
 
7378
    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 
7379
               = "XX$teststring") >/dev/null 2>&1 &&
 
7380
            new_result=`expr "X$teststring" : ".*" 2>&1` &&
 
7381
            lt_cv_sys_max_cmd_len=$new_result &&
 
7382
            test $i != 17 # 1/2 MB should be enough
 
7383
    do
 
7384
      i=`expr $i + 1`
 
7385
      teststring=$teststring$teststring
 
7386
    done
 
7387
    teststring=
 
7388
    # Add a significant safety factor because C++ compilers can tack on massive
 
7389
    # amounts of additional arguments before passing them to the linker.
 
7390
    # It appears as though 1/2 is a usable value.
 
7391
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
7392
    ;;
 
7393
  esac
 
7394
 
 
7395
fi
 
7396
 
 
7397
if test -n $lt_cv_sys_max_cmd_len ; then
 
7398
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
7399
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
7400
else
 
7401
  echo "$as_me:$LINENO: result: none" >&5
 
7402
echo "${ECHO_T}none" >&6
 
7403
fi
 
7404
 
 
7405
 
 
7406
 
3598
7407
 
3599
7408
# Check for command to grab the raw symbol name followed by C symbol from nm.
3600
 
echo "$as_me:3600: checking command to parse $NM output" >&5
3601
 
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
 
7409
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
7410
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
3602
7411
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3603
7412
  echo $ECHO_N "(cached) $ECHO_C" >&6
3604
7413
else
3616
7425
symxfrm='\1 \2\3 \3'
3617
7426
 
3618
7427
# Transform an extracted symbol line into a proper C declaration
3619
 
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 
7428
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
7429
 
 
7430
# Transform an extracted symbol line into symbol name and symbol address
 
7431
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3620
7432
 
3621
7433
# Define system-specific variables.
3622
7434
case $host_os in
3627
7439
  symcode='[ABCDGISTW]'
3628
7440
  ;;
3629
7441
hpux*) # Its linker distinguishes data from code symbols
3630
 
  lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3631
 
  ;;
3632
 
irix*)
 
7442
  if test "$host_cpu" = ia64; then
 
7443
    symcode='[ABCDEGRST]'
 
7444
  fi
 
7445
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7446
  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7447
  ;;
 
7448
linux*)
 
7449
  if test "$host_cpu" = ia64; then
 
7450
    symcode='[ABCDGIRSTW]'
 
7451
    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
7452
    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 
7453
  fi
 
7454
  ;;
 
7455
irix* | nonstopux*)
3633
7456
  symcode='[BCDEGRST]'
3634
7457
  ;;
 
7458
osf*)
 
7459
  symcode='[BCDEGQRST]'
 
7460
  ;;
3635
7461
solaris* | sysv5*)
3636
 
  symcode='[BDT]'
 
7462
  symcode='[BDRT]'
3637
7463
  ;;
3638
7464
sysv4)
3639
7465
  symcode='[DFNSTU]'
3642
7468
 
3643
7469
# Handle CRLF in mingw tool chain
3644
7470
opt_cr=
3645
 
case $host_os in
 
7471
case $build_os in
3646
7472
mingw*)
3647
7473
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3648
7474
  ;;
3649
7475
esac
3650
7476
 
3651
7477
# If we're using GNU nm, then use its standard symbol codes.
3652
 
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3653
 
  symcode='[ABCDGISTW]'
3654
 
fi
 
7478
case `$NM -V 2>&1` in
 
7479
*GNU* | *'with BFD'*)
 
7480
  symcode='[ABCDGIRSTW]' ;;
 
7481
esac
3655
7482
 
3656
7483
# Try without a prefix undercore, then with it.
3657
7484
for ac_symprfx in "" "_"; do
3658
7485
 
3659
7486
  # Write the raw and C identifiers.
3660
 
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
7487
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3661
7488
 
3662
7489
  # Check to see that the pipe works correctly.
3663
7490
  pipe_works=no
 
7491
 
3664
7492
  rm -f conftest*
3665
7493
  cat > conftest.$ac_ext <<EOF
3666
7494
#ifdef __cplusplus
3674
7502
int main(){nm_test_var='a';nm_test_func();return(0);}
3675
7503
EOF
3676
7504
 
3677
 
  if { (eval echo "$as_me:3677: \"$ac_compile\"") >&5
 
7505
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3678
7506
  (eval $ac_compile) 2>&5
3679
7507
  ac_status=$?
3680
 
  echo "$as_me:3680: \$? = $ac_status" >&5
 
7508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681
7509
  (exit $ac_status); }; then
3682
7510
    # Now try to grab the symbols.
3683
7511
    nlist=conftest.nm
3684
 
    if { (eval echo "$as_me:3684: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
7512
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3685
7513
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3686
7514
  ac_status=$?
3687
 
  echo "$as_me:3687: \$? = $ac_status" >&5
 
7515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688
7516
  (exit $ac_status); } && test -s "$nlist"; then
3689
7517
      # Try sorting and uniquifying the output.
3690
7518
      if sort "$nlist" | uniq > "$nlist"T; then
3694
7522
      fi
3695
7523
 
3696
7524
      # Make sure that we snagged all the symbols we need.
3697
 
      if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3698
 
        if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 
7525
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
7526
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
3699
7527
          cat <<EOF > conftest.$ac_ext
3700
7528
#ifdef __cplusplus
3701
7529
extern "C" {
3703
7531
 
3704
7532
EOF
3705
7533
          # Now generate the symbol file.
3706
 
          eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 
7534
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
3707
7535
 
3708
7536
          cat <<EOF >> conftest.$ac_ext
3709
7537
#if defined (__STDC__) && __STDC__
3721
7549
lt_preloaded_symbols[] =
3722
7550
{
3723
7551
EOF
3724
 
          sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
 
7552
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
3725
7553
          cat <<\EOF >> conftest.$ac_ext
3726
7554
  {0, (lt_ptr_t) 0}
3727
7555
};
3732
7560
EOF
3733
7561
          # Now try linking the two files.
3734
7562
          mv conftest.$ac_objext conftstm.$ac_objext
3735
 
          save_LIBS="$LIBS"
3736
 
          save_CFLAGS="$CFLAGS"
 
7563
          lt_save_LIBS="$LIBS"
 
7564
          lt_save_CFLAGS="$CFLAGS"
3737
7565
          LIBS="conftstm.$ac_objext"
3738
 
          CFLAGS="$CFLAGS$no_builtin_flag"
3739
 
          if { (eval echo "$as_me:3739: \"$ac_link\"") >&5
 
7566
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
7567
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3740
7568
  (eval $ac_link) 2>&5
3741
7569
  ac_status=$?
3742
 
  echo "$as_me:3742: \$? = $ac_status" >&5
3743
 
  (exit $ac_status); } && test -s conftest; then
 
7570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7571
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
3744
7572
            pipe_works=yes
3745
7573
          fi
3746
 
          LIBS="$save_LIBS"
3747
 
          CFLAGS="$save_CFLAGS"
 
7574
          LIBS="$lt_save_LIBS"
 
7575
          CFLAGS="$lt_save_CFLAGS"
3748
7576
        else
3749
7577
          echo "cannot find nm_test_func in $nlist" >&5
3750
7578
        fi
3770
7598
 
3771
7599
fi
3772
7600
 
3773
 
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3774
7601
if test -z "$lt_cv_sys_global_symbol_pipe"; then
3775
 
  global_symbol_to_cdecl=
3776
 
else
3777
 
  global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 
7602
  lt_cv_sys_global_symbol_to_cdecl=
3778
7603
fi
3779
 
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3780
 
  echo "$as_me:3780: result: failed" >&5
 
7604
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
7605
  echo "$as_me:$LINENO: result: failed" >&5
3781
7606
echo "${ECHO_T}failed" >&6
3782
7607
else
3783
 
  echo "$as_me:3783: result: ok" >&5
 
7608
  echo "$as_me:$LINENO: result: ok" >&5
3784
7609
echo "${ECHO_T}ok" >&6
3785
7610
fi
3786
7611
 
3787
 
for ac_header in dlfcn.h
3788
 
do
3789
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3790
 
echo "$as_me:3790: checking for $ac_header" >&5
3791
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3792
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3793
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3794
 
else
3795
 
  cat >conftest.$ac_ext <<_ACEOF
3796
 
#line 3796 "configure"
3797
 
#include "confdefs.h"
3798
 
#include <$ac_header>
3799
 
_ACEOF
3800
 
if { (eval echo "$as_me:3800: \"$ac_cpp conftest.$ac_ext\"") >&5
3801
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3802
 
  ac_status=$?
3803
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
3804
 
  rm -f conftest.er1
3805
 
  cat conftest.err >&5
3806
 
  echo "$as_me:3806: \$? = $ac_status" >&5
3807
 
  (exit $ac_status); } >/dev/null; then
3808
 
  if test -s conftest.err; then
3809
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3810
 
  else
3811
 
    ac_cpp_err=
3812
 
  fi
3813
 
else
3814
 
  ac_cpp_err=yes
3815
 
fi
3816
 
if test -z "$ac_cpp_err"; then
3817
 
  eval "$as_ac_Header=yes"
3818
 
else
3819
 
  echo "$as_me: failed program was:" >&5
3820
 
  cat conftest.$ac_ext >&5
3821
 
  eval "$as_ac_Header=no"
3822
 
fi
3823
 
rm -f conftest.err conftest.$ac_ext
3824
 
fi
3825
 
echo "$as_me:3825: result: `eval echo '${'$as_ac_Header'}'`" >&5
3826
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3827
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3828
 
  cat >>confdefs.h <<EOF
3829
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3830
 
EOF
3831
 
 
3832
 
fi
3833
 
done
3834
 
 
3835
 
# Only perform the check for file, if the check method requires it
3836
 
case $deplibs_check_method in
3837
 
file_magic*)
3838
 
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3839
 
    echo "$as_me:3839: checking for ${ac_tool_prefix}file" >&5
3840
 
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3841
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3842
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3843
 
else
3844
 
  case $MAGIC_CMD in
3845
 
  /*)
3846
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3847
 
  ;;
3848
 
  ?:/*)
3849
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3850
 
  ;;
3851
 
  *)
3852
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3853
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3854
 
  ac_dummy="/usr/bin:$PATH"
3855
 
  for ac_dir in $ac_dummy; do
3856
 
    test -z "$ac_dir" && ac_dir=.
3857
 
    if test -f $ac_dir/${ac_tool_prefix}file; then
3858
 
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3859
 
      if test -n "$file_magic_test_file"; then
3860
 
        case $deplibs_check_method in
3861
 
        "file_magic "*)
3862
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3863
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3864
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3865
 
            egrep "$file_magic_regex" > /dev/null; then
3866
 
            :
3867
 
          else
3868
 
            cat <<EOF 1>&2
3869
 
 
3870
 
*** Warning: the command libtool uses to detect shared libraries,
3871
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3872
 
*** The result is that libtool may fail to recognize shared libraries
3873
 
*** as such.  This will affect the creation of libtool libraries that
3874
 
*** depend on shared libraries, but programs linked with such libtool
3875
 
*** libraries will work regardless of this problem.  Nevertheless, you
3876
 
*** may want to report the problem to your system manager and/or to
3877
 
*** bug-libtool@gnu.org
3878
 
 
3879
 
EOF
3880
 
          fi ;;
3881
 
        esac
3882
 
      fi
3883
 
      break
3884
 
    fi
3885
 
  done
3886
 
  IFS="$ac_save_ifs"
3887
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3888
 
  ;;
3889
 
esac
3890
 
fi
3891
 
 
3892
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3893
 
if test -n "$MAGIC_CMD"; then
3894
 
  echo "$as_me:3894: result: $MAGIC_CMD" >&5
3895
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3896
 
else
3897
 
  echo "$as_me:3897: result: no" >&5
3898
 
echo "${ECHO_T}no" >&6
3899
 
fi
3900
 
 
3901
 
if test -z "$lt_cv_path_MAGIC_CMD"; then
3902
 
  if test -n "$ac_tool_prefix"; then
3903
 
    echo "$as_me:3903: checking for file" >&5
3904
 
echo $ECHO_N "checking for file... $ECHO_C" >&6
3905
 
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3906
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3907
 
else
3908
 
  case $MAGIC_CMD in
3909
 
  /*)
3910
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3911
 
  ;;
3912
 
  ?:/*)
3913
 
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3914
 
  ;;
3915
 
  *)
3916
 
  ac_save_MAGIC_CMD="$MAGIC_CMD"
3917
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
3918
 
  ac_dummy="/usr/bin:$PATH"
3919
 
  for ac_dir in $ac_dummy; do
3920
 
    test -z "$ac_dir" && ac_dir=.
3921
 
    if test -f $ac_dir/file; then
3922
 
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
3923
 
      if test -n "$file_magic_test_file"; then
3924
 
        case $deplibs_check_method in
3925
 
        "file_magic "*)
3926
 
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3927
 
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3928
 
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3929
 
            egrep "$file_magic_regex" > /dev/null; then
3930
 
            :
3931
 
          else
3932
 
            cat <<EOF 1>&2
3933
 
 
3934
 
*** Warning: the command libtool uses to detect shared libraries,
3935
 
*** $file_magic_cmd, produces output that libtool cannot recognize.
3936
 
*** The result is that libtool may fail to recognize shared libraries
3937
 
*** as such.  This will affect the creation of libtool libraries that
3938
 
*** depend on shared libraries, but programs linked with such libtool
3939
 
*** libraries will work regardless of this problem.  Nevertheless, you
3940
 
*** may want to report the problem to your system manager and/or to
3941
 
*** bug-libtool@gnu.org
3942
 
 
3943
 
EOF
3944
 
          fi ;;
3945
 
        esac
3946
 
      fi
3947
 
      break
3948
 
    fi
3949
 
  done
3950
 
  IFS="$ac_save_ifs"
3951
 
  MAGIC_CMD="$ac_save_MAGIC_CMD"
3952
 
  ;;
3953
 
esac
3954
 
fi
3955
 
 
3956
 
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3957
 
if test -n "$MAGIC_CMD"; then
3958
 
  echo "$as_me:3958: result: $MAGIC_CMD" >&5
3959
 
echo "${ECHO_T}$MAGIC_CMD" >&6
3960
 
else
3961
 
  echo "$as_me:3961: result: no" >&5
3962
 
echo "${ECHO_T}no" >&6
3963
 
fi
3964
 
 
3965
 
  else
3966
 
    MAGIC_CMD=:
3967
 
  fi
3968
 
fi
3969
 
 
3970
 
  fi
3971
 
  ;;
3972
 
esac
3973
 
 
3974
 
if test -n "$ac_tool_prefix"; then
3975
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3976
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3977
 
echo "$as_me:3977: checking for $ac_word" >&5
3978
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3979
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
3980
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3981
 
else
3982
 
  if test -n "$RANLIB"; then
3983
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3984
 
else
3985
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
3986
 
ac_dummy="$PATH"
3987
 
for ac_dir in $ac_dummy; do
3988
 
  IFS=$ac_save_IFS
3989
 
  test -z "$ac_dir" && ac_dir=.
3990
 
  $as_executable_p "$ac_dir/$ac_word" || continue
3991
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3992
 
echo "$as_me:3992: found $ac_dir/$ac_word" >&5
3993
 
break
3994
 
done
3995
 
 
3996
 
fi
3997
 
fi
3998
 
RANLIB=$ac_cv_prog_RANLIB
3999
 
if test -n "$RANLIB"; then
4000
 
  echo "$as_me:4000: result: $RANLIB" >&5
4001
 
echo "${ECHO_T}$RANLIB" >&6
4002
 
else
4003
 
  echo "$as_me:4003: result: no" >&5
4004
 
echo "${ECHO_T}no" >&6
4005
 
fi
4006
 
 
4007
 
fi
4008
 
if test -z "$ac_cv_prog_RANLIB"; then
4009
 
  ac_ct_RANLIB=$RANLIB
4010
 
  # Extract the first word of "ranlib", so it can be a program name with args.
4011
 
set dummy ranlib; ac_word=$2
4012
 
echo "$as_me:4012: checking for $ac_word" >&5
4013
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4015
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4016
 
else
4017
 
  if test -n "$ac_ct_RANLIB"; then
4018
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4019
 
else
4020
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4021
 
ac_dummy="$PATH"
4022
 
for ac_dir in $ac_dummy; do
4023
 
  IFS=$ac_save_IFS
4024
 
  test -z "$ac_dir" && ac_dir=.
4025
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4026
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
4027
 
echo "$as_me:4027: found $ac_dir/$ac_word" >&5
4028
 
break
4029
 
done
4030
 
 
4031
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4032
 
fi
4033
 
fi
4034
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4035
 
if test -n "$ac_ct_RANLIB"; then
4036
 
  echo "$as_me:4036: result: $ac_ct_RANLIB" >&5
4037
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
4038
 
else
4039
 
  echo "$as_me:4039: result: no" >&5
4040
 
echo "${ECHO_T}no" >&6
4041
 
fi
4042
 
 
4043
 
  RANLIB=$ac_ct_RANLIB
4044
 
else
4045
 
  RANLIB="$ac_cv_prog_RANLIB"
4046
 
fi
4047
 
 
4048
 
if test -n "$ac_tool_prefix"; then
4049
 
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4050
 
set dummy ${ac_tool_prefix}strip; ac_word=$2
4051
 
echo "$as_me:4051: checking for $ac_word" >&5
4052
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4053
 
if test "${ac_cv_prog_STRIP+set}" = set; then
4054
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4055
 
else
4056
 
  if test -n "$STRIP"; then
4057
 
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4058
 
else
4059
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4060
 
ac_dummy="$PATH"
4061
 
for ac_dir in $ac_dummy; do
4062
 
  IFS=$ac_save_IFS
4063
 
  test -z "$ac_dir" && ac_dir=.
4064
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4065
 
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4066
 
echo "$as_me:4066: found $ac_dir/$ac_word" >&5
4067
 
break
4068
 
done
4069
 
 
4070
 
fi
4071
 
fi
4072
 
STRIP=$ac_cv_prog_STRIP
4073
 
if test -n "$STRIP"; then
4074
 
  echo "$as_me:4074: result: $STRIP" >&5
4075
 
echo "${ECHO_T}$STRIP" >&6
4076
 
else
4077
 
  echo "$as_me:4077: result: no" >&5
4078
 
echo "${ECHO_T}no" >&6
4079
 
fi
4080
 
 
4081
 
fi
4082
 
if test -z "$ac_cv_prog_STRIP"; then
4083
 
  ac_ct_STRIP=$STRIP
4084
 
  # Extract the first word of "strip", so it can be a program name with args.
4085
 
set dummy strip; ac_word=$2
4086
 
echo "$as_me:4086: checking for $ac_word" >&5
4087
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4088
 
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4089
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4090
 
else
4091
 
  if test -n "$ac_ct_STRIP"; then
4092
 
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4093
 
else
4094
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
4095
 
ac_dummy="$PATH"
4096
 
for ac_dir in $ac_dummy; do
4097
 
  IFS=$ac_save_IFS
4098
 
  test -z "$ac_dir" && ac_dir=.
4099
 
  $as_executable_p "$ac_dir/$ac_word" || continue
4100
 
ac_cv_prog_ac_ct_STRIP="strip"
4101
 
echo "$as_me:4101: found $ac_dir/$ac_word" >&5
4102
 
break
4103
 
done
4104
 
 
4105
 
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4106
 
fi
4107
 
fi
4108
 
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4109
 
if test -n "$ac_ct_STRIP"; then
4110
 
  echo "$as_me:4110: result: $ac_ct_STRIP" >&5
4111
 
echo "${ECHO_T}$ac_ct_STRIP" >&6
4112
 
else
4113
 
  echo "$as_me:4113: result: no" >&5
4114
 
echo "${ECHO_T}no" >&6
4115
 
fi
4116
 
 
4117
 
  STRIP=$ac_ct_STRIP
4118
 
else
4119
 
  STRIP="$ac_cv_prog_STRIP"
4120
 
fi
4121
 
 
4122
 
enable_dlopen=no
4123
 
enable_win32_dll=no
4124
 
 
4125
 
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4126
 
if test "${enable_libtool_lock+set}" = set; then
4127
 
  enableval="$enable_libtool_lock"
4128
 
 
4129
 
fi;
4130
 
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4131
 
 
4132
 
# Some flags need to be propagated to the compiler or linker for good
4133
 
# libtool support.
4134
 
case $host in
4135
 
*-*-irix6*)
4136
 
  # Find out which ABI we are using.
4137
 
  echo '#line 4137 "configure"' > conftest.$ac_ext
4138
 
  if { (eval echo "$as_me:4138: \"$ac_compile\"") >&5
4139
 
  (eval $ac_compile) 2>&5
4140
 
  ac_status=$?
4141
 
  echo "$as_me:4141: \$? = $ac_status" >&5
4142
 
  (exit $ac_status); }; then
4143
 
    case `/usr/bin/file conftest.$ac_objext` in
4144
 
    *32-bit*)
4145
 
      LD="${LD-ld} -32"
4146
 
      ;;
4147
 
    *N32*)
4148
 
      LD="${LD-ld} -n32"
4149
 
      ;;
4150
 
    *64-bit*)
4151
 
      LD="${LD-ld} -64"
4152
 
      ;;
4153
 
    esac
4154
 
  fi
4155
 
  rm -rf conftest*
4156
 
  ;;
4157
 
 
4158
 
*-*-sco3.2v5*)
4159
 
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4160
 
  SAVE_CFLAGS="$CFLAGS"
4161
 
  CFLAGS="$CFLAGS -belf"
4162
 
  echo "$as_me:4162: checking whether the C compiler needs -belf" >&5
4163
 
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4164
 
if test "${lt_cv_cc_needs_belf+set}" = set; then
4165
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4166
 
else
4167
 
 
4168
 
     ac_ext=c
4169
 
ac_cpp='$CPP $CPPFLAGS'
4170
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4173
 
 
4174
 
     cat >conftest.$ac_ext <<_ACEOF
4175
 
#line 4175 "configure"
4176
 
#include "confdefs.h"
4177
 
 
4178
 
int
4179
 
main ()
4180
 
{
4181
 
 
4182
 
  ;
4183
 
  return 0;
4184
 
}
4185
 
_ACEOF
4186
 
rm -f conftest.$ac_objext conftest$ac_exeext
4187
 
if { (eval echo "$as_me:4187: \"$ac_link\"") >&5
4188
 
  (eval $ac_link) 2>&5
4189
 
  ac_status=$?
4190
 
  echo "$as_me:4190: \$? = $ac_status" >&5
4191
 
  (exit $ac_status); } &&
4192
 
         { ac_try='test -s conftest$ac_exeext'
4193
 
  { (eval echo "$as_me:4193: \"$ac_try\"") >&5
4194
 
  (eval $ac_try) 2>&5
4195
 
  ac_status=$?
4196
 
  echo "$as_me:4196: \$? = $ac_status" >&5
4197
 
  (exit $ac_status); }; }; then
4198
 
  lt_cv_cc_needs_belf=yes
4199
 
else
4200
 
  echo "$as_me: failed program was:" >&5
4201
 
cat conftest.$ac_ext >&5
4202
 
lt_cv_cc_needs_belf=no
4203
 
fi
4204
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4205
 
     ac_ext=c
4206
 
ac_cpp='$CPP $CPPFLAGS'
4207
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
 
 
4211
 
fi
4212
 
echo "$as_me:4212: result: $lt_cv_cc_needs_belf" >&5
4213
 
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4214
 
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4215
 
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4216
 
    CFLAGS="$SAVE_CFLAGS"
4217
 
  fi
4218
 
  ;;
4219
 
 
 
7612
echo "$as_me:$LINENO: checking for objdir" >&5
 
7613
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
7614
if test "${lt_cv_objdir+set}" = set; then
 
7615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7616
else
 
7617
  rm -f .libs 2>/dev/null
 
7618
mkdir .libs 2>/dev/null
 
7619
if test -d .libs; then
 
7620
  lt_cv_objdir=.libs
 
7621
else
 
7622
  # MS-DOS does not allow filenames that begin with a dot.
 
7623
  lt_cv_objdir=_libs
 
7624
fi
 
7625
rmdir .libs 2>/dev/null
 
7626
fi
 
7627
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
7628
echo "${ECHO_T}$lt_cv_objdir" >&6
 
7629
objdir=$lt_cv_objdir
 
7630
 
 
7631
 
 
7632
 
 
7633
 
 
7634
 
 
7635
case $host_os in
 
7636
aix3*)
 
7637
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
7638
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
7639
  # vanish in a puff of smoke.
 
7640
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
7641
    COLLECT_NAMES=
 
7642
    export COLLECT_NAMES
 
7643
  fi
 
7644
  ;;
4220
7645
esac
4221
7646
 
4222
7647
# Sed substitution that helps us do robust quoting.  It backslashifies
4231
7656
# double_quote_subst'ed string.
4232
7657
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4233
7658
 
 
7659
# Sed substitution to avoid accidental globbing in evaled expressions
 
7660
no_glob_subst='s/\*/\\\*/g'
 
7661
 
4234
7662
# Constants:
4235
7663
rm="rm -f"
4236
7664
 
4244
7672
ltmain="$ac_aux_dir/ltmain.sh"
4245
7673
ofile="$default_ofile"
4246
7674
with_gnu_ld="$lt_cv_prog_gnu_ld"
4247
 
need_locks="$enable_libtool_lock"
 
7675
 
 
7676
if test -n "$ac_tool_prefix"; then
 
7677
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
7678
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
7679
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7681
if test "${ac_cv_prog_AR+set}" = set; then
 
7682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7683
else
 
7684
  if test -n "$AR"; then
 
7685
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
7686
else
 
7687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7688
for as_dir in $PATH
 
7689
do
 
7690
  IFS=$as_save_IFS
 
7691
  test -z "$as_dir" && as_dir=.
 
7692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7693
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7694
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
7695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7696
    break 2
 
7697
  fi
 
7698
done
 
7699
done
 
7700
 
 
7701
fi
 
7702
fi
 
7703
AR=$ac_cv_prog_AR
 
7704
if test -n "$AR"; then
 
7705
  echo "$as_me:$LINENO: result: $AR" >&5
 
7706
echo "${ECHO_T}$AR" >&6
 
7707
else
 
7708
  echo "$as_me:$LINENO: result: no" >&5
 
7709
echo "${ECHO_T}no" >&6
 
7710
fi
 
7711
 
 
7712
fi
 
7713
if test -z "$ac_cv_prog_AR"; then
 
7714
  ac_ct_AR=$AR
 
7715
  # Extract the first word of "ar", so it can be a program name with args.
 
7716
set dummy ar; ac_word=$2
 
7717
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7719
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
7720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7721
else
 
7722
  if test -n "$ac_ct_AR"; then
 
7723
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
7724
else
 
7725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7726
for as_dir in $PATH
 
7727
do
 
7728
  IFS=$as_save_IFS
 
7729
  test -z "$as_dir" && as_dir=.
 
7730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7732
    ac_cv_prog_ac_ct_AR="ar"
 
7733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7734
    break 2
 
7735
  fi
 
7736
done
 
7737
done
 
7738
 
 
7739
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
7740
fi
 
7741
fi
 
7742
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
7743
if test -n "$ac_ct_AR"; then
 
7744
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
7745
echo "${ECHO_T}$ac_ct_AR" >&6
 
7746
else
 
7747
  echo "$as_me:$LINENO: result: no" >&5
 
7748
echo "${ECHO_T}no" >&6
 
7749
fi
 
7750
 
 
7751
  AR=$ac_ct_AR
 
7752
else
 
7753
  AR="$ac_cv_prog_AR"
 
7754
fi
 
7755
 
 
7756
if test -n "$ac_tool_prefix"; then
 
7757
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
7758
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
7759
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7761
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
7762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7763
else
 
7764
  if test -n "$RANLIB"; then
 
7765
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
7766
else
 
7767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7768
for as_dir in $PATH
 
7769
do
 
7770
  IFS=$as_save_IFS
 
7771
  test -z "$as_dir" && as_dir=.
 
7772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7774
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
7775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7776
    break 2
 
7777
  fi
 
7778
done
 
7779
done
 
7780
 
 
7781
fi
 
7782
fi
 
7783
RANLIB=$ac_cv_prog_RANLIB
 
7784
if test -n "$RANLIB"; then
 
7785
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
7786
echo "${ECHO_T}$RANLIB" >&6
 
7787
else
 
7788
  echo "$as_me:$LINENO: result: no" >&5
 
7789
echo "${ECHO_T}no" >&6
 
7790
fi
 
7791
 
 
7792
fi
 
7793
if test -z "$ac_cv_prog_RANLIB"; then
 
7794
  ac_ct_RANLIB=$RANLIB
 
7795
  # Extract the first word of "ranlib", so it can be a program name with args.
 
7796
set dummy ranlib; ac_word=$2
 
7797
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7799
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
7800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7801
else
 
7802
  if test -n "$ac_ct_RANLIB"; then
 
7803
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
7804
else
 
7805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7806
for as_dir in $PATH
 
7807
do
 
7808
  IFS=$as_save_IFS
 
7809
  test -z "$as_dir" && as_dir=.
 
7810
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7811
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7812
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
7813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7814
    break 2
 
7815
  fi
 
7816
done
 
7817
done
 
7818
 
 
7819
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
7820
fi
 
7821
fi
 
7822
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
7823
if test -n "$ac_ct_RANLIB"; then
 
7824
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
7825
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
7826
else
 
7827
  echo "$as_me:$LINENO: result: no" >&5
 
7828
echo "${ECHO_T}no" >&6
 
7829
fi
 
7830
 
 
7831
  RANLIB=$ac_ct_RANLIB
 
7832
else
 
7833
  RANLIB="$ac_cv_prog_RANLIB"
 
7834
fi
 
7835
 
 
7836
if test -n "$ac_tool_prefix"; then
 
7837
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
7838
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
7839
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7841
if test "${ac_cv_prog_STRIP+set}" = set; then
 
7842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7843
else
 
7844
  if test -n "$STRIP"; then
 
7845
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
7846
else
 
7847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7848
for as_dir in $PATH
 
7849
do
 
7850
  IFS=$as_save_IFS
 
7851
  test -z "$as_dir" && as_dir=.
 
7852
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7853
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7854
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
7855
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7856
    break 2
 
7857
  fi
 
7858
done
 
7859
done
 
7860
 
 
7861
fi
 
7862
fi
 
7863
STRIP=$ac_cv_prog_STRIP
 
7864
if test -n "$STRIP"; then
 
7865
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
7866
echo "${ECHO_T}$STRIP" >&6
 
7867
else
 
7868
  echo "$as_me:$LINENO: result: no" >&5
 
7869
echo "${ECHO_T}no" >&6
 
7870
fi
 
7871
 
 
7872
fi
 
7873
if test -z "$ac_cv_prog_STRIP"; then
 
7874
  ac_ct_STRIP=$STRIP
 
7875
  # Extract the first word of "strip", so it can be a program name with args.
 
7876
set dummy strip; ac_word=$2
 
7877
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
7879
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
7880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7881
else
 
7882
  if test -n "$ac_ct_STRIP"; then
 
7883
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
7884
else
 
7885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7886
for as_dir in $PATH
 
7887
do
 
7888
  IFS=$as_save_IFS
 
7889
  test -z "$as_dir" && as_dir=.
 
7890
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
7892
    ac_cv_prog_ac_ct_STRIP="strip"
 
7893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7894
    break 2
 
7895
  fi
 
7896
done
 
7897
done
 
7898
 
 
7899
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
7900
fi
 
7901
fi
 
7902
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
7903
if test -n "$ac_ct_STRIP"; then
 
7904
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
7905
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
7906
else
 
7907
  echo "$as_me:$LINENO: result: no" >&5
 
7908
echo "${ECHO_T}no" >&6
 
7909
fi
 
7910
 
 
7911
  STRIP=$ac_ct_STRIP
 
7912
else
 
7913
  STRIP="$ac_cv_prog_STRIP"
 
7914
fi
 
7915
 
4248
7916
 
4249
7917
old_CC="$CC"
4250
7918
old_CFLAGS="$CFLAGS"
4254
7922
test -z "$AR_FLAGS" && AR_FLAGS=cru
4255
7923
test -z "$AS" && AS=as
4256
7924
test -z "$CC" && CC=cc
 
7925
test -z "$LTCC" && LTCC=$CC
4257
7926
test -z "$DLLTOOL" && DLLTOOL=dlltool
4258
7927
test -z "$LD" && LD=ld
4259
7928
test -z "$LN_S" && LN_S="ln -s"
4260
7929
test -z "$MAGIC_CMD" && MAGIC_CMD=file
4261
7930
test -z "$NM" && NM=nm
 
7931
test -z "$SED" && SED=sed
4262
7932
test -z "$OBJDUMP" && OBJDUMP=objdump
4263
7933
test -z "$RANLIB" && RANLIB=:
4264
7934
test -z "$STRIP" && STRIP=:
4265
7935
test -z "$ac_objext" && ac_objext=o
4266
7936
 
4267
 
if test x"$host" != x"$build"; then
4268
 
  ac_tool_prefix=${host_alias}-
4269
 
else
4270
 
  ac_tool_prefix=
4271
 
fi
4272
 
 
4273
 
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4274
 
case $host_os in
4275
 
linux-gnu*) ;;
4276
 
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4277
 
esac
4278
 
 
4279
 
case $host_os in
4280
 
aix3*)
4281
 
  # AIX sometimes has problems with the GCC collect2 program.  For some
4282
 
  # reason, if we set the COLLECT_NAMES environment variable, the problems
4283
 
  # vanish in a puff of smoke.
4284
 
  if test "X${COLLECT_NAMES+set}" != Xset; then
4285
 
    COLLECT_NAMES=
4286
 
    export COLLECT_NAMES
4287
 
  fi
4288
 
  ;;
4289
 
esac
4290
 
 
4291
7937
# Determine commands to create old-style static archives.
4292
7938
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4293
7939
old_postinstall_cmds='chmod 644 $oldlib'
4294
7940
old_postuninstall_cmds=
4295
7941
 
4296
7942
if test -n "$RANLIB"; then
 
7943
  case $host_os in
 
7944
  openbsd*)
 
7945
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
7946
    ;;
 
7947
  *)
 
7948
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
7949
    ;;
 
7950
  esac
4297
7951
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4298
 
  old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4299
 
fi
4300
 
 
4301
 
# Allow CC to be a program name with arguments.
4302
 
set dummy $CC
4303
 
compiler="$2"
4304
 
 
4305
 
echo "$as_me:4305: checking for objdir" >&5
4306
 
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4307
 
rm -f .libs 2>/dev/null
4308
 
mkdir .libs 2>/dev/null
4309
 
if test -d .libs; then
4310
 
  objdir=.libs
4311
 
else
4312
 
  # MS-DOS does not allow filenames that begin with a dot.
4313
 
  objdir=_libs
4314
 
fi
4315
 
rmdir .libs 2>/dev/null
4316
 
echo "$as_me:4316: result: $objdir" >&5
4317
 
echo "${ECHO_T}$objdir" >&6
 
7952
fi
 
7953
 
 
7954
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
7955
 
 
7956
# Only perform the check for file, if the check method requires it
 
7957
case $deplibs_check_method in
 
7958
file_magic*)
 
7959
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
7960
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
7961
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
7962
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7963
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7964
else
 
7965
  case $MAGIC_CMD in
 
7966
[\\/*] |  ?:[\\/]*)
 
7967
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7968
  ;;
 
7969
*)
 
7970
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7971
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7972
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7973
  for ac_dir in $ac_dummy; do
 
7974
    IFS="$lt_save_ifs"
 
7975
    test -z "$ac_dir" && ac_dir=.
 
7976
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
7977
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
7978
      if test -n "$file_magic_test_file"; then
 
7979
        case $deplibs_check_method in
 
7980
        "file_magic "*)
 
7981
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7982
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7983
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7984
            $EGREP "$file_magic_regex" > /dev/null; then
 
7985
            :
 
7986
          else
 
7987
            cat <<EOF 1>&2
 
7988
 
 
7989
*** Warning: the command libtool uses to detect shared libraries,
 
7990
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7991
*** The result is that libtool may fail to recognize shared libraries
 
7992
*** as such.  This will affect the creation of libtool libraries that
 
7993
*** depend on shared libraries, but programs linked with such libtool
 
7994
*** libraries will work regardless of this problem.  Nevertheless, you
 
7995
*** may want to report the problem to your system manager and/or to
 
7996
*** bug-libtool@gnu.org
 
7997
 
 
7998
EOF
 
7999
          fi ;;
 
8000
        esac
 
8001
      fi
 
8002
      break
 
8003
    fi
 
8004
  done
 
8005
  IFS="$lt_save_ifs"
 
8006
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8007
  ;;
 
8008
esac
 
8009
fi
 
8010
 
 
8011
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8012
if test -n "$MAGIC_CMD"; then
 
8013
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8014
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8015
else
 
8016
  echo "$as_me:$LINENO: result: no" >&5
 
8017
echo "${ECHO_T}no" >&6
 
8018
fi
 
8019
 
 
8020
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
8021
  if test -n "$ac_tool_prefix"; then
 
8022
    echo "$as_me:$LINENO: checking for file" >&5
 
8023
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
8024
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
8025
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8026
else
 
8027
  case $MAGIC_CMD in
 
8028
[\\/*] |  ?:[\\/]*)
 
8029
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
8030
  ;;
 
8031
*)
 
8032
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
8033
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
8034
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
8035
  for ac_dir in $ac_dummy; do
 
8036
    IFS="$lt_save_ifs"
 
8037
    test -z "$ac_dir" && ac_dir=.
 
8038
    if test -f $ac_dir/file; then
 
8039
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
8040
      if test -n "$file_magic_test_file"; then
 
8041
        case $deplibs_check_method in
 
8042
        "file_magic "*)
 
8043
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
8044
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8045
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
8046
            $EGREP "$file_magic_regex" > /dev/null; then
 
8047
            :
 
8048
          else
 
8049
            cat <<EOF 1>&2
 
8050
 
 
8051
*** Warning: the command libtool uses to detect shared libraries,
 
8052
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
8053
*** The result is that libtool may fail to recognize shared libraries
 
8054
*** as such.  This will affect the creation of libtool libraries that
 
8055
*** depend on shared libraries, but programs linked with such libtool
 
8056
*** libraries will work regardless of this problem.  Nevertheless, you
 
8057
*** may want to report the problem to your system manager and/or to
 
8058
*** bug-libtool@gnu.org
 
8059
 
 
8060
EOF
 
8061
          fi ;;
 
8062
        esac
 
8063
      fi
 
8064
      break
 
8065
    fi
 
8066
  done
 
8067
  IFS="$lt_save_ifs"
 
8068
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
8069
  ;;
 
8070
esac
 
8071
fi
 
8072
 
 
8073
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
8074
if test -n "$MAGIC_CMD"; then
 
8075
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
8076
echo "${ECHO_T}$MAGIC_CMD" >&6
 
8077
else
 
8078
  echo "$as_me:$LINENO: result: no" >&5
 
8079
echo "${ECHO_T}no" >&6
 
8080
fi
 
8081
 
 
8082
  else
 
8083
    MAGIC_CMD=:
 
8084
  fi
 
8085
fi
 
8086
 
 
8087
  fi
 
8088
  ;;
 
8089
esac
 
8090
 
 
8091
enable_dlopen=no
 
8092
enable_win32_dll=yes
 
8093
 
 
8094
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
8095
if test "${enable_libtool_lock+set}" = set; then
 
8096
  enableval="$enable_libtool_lock"
 
8097
 
 
8098
fi;
 
8099
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
8100
 
4318
8101
 
4319
8102
# Check whether --with-pic or --without-pic was given.
4320
8103
if test "${with_pic+set}" = set; then
4325
8108
fi;
4326
8109
test -z "$pic_mode" && pic_mode=default
4327
8110
 
4328
 
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
4329
 
# in isolation, and that seeing it set (from the cache) indicates that
4330
 
# the associated values are set (in the cache) correctly too.
4331
 
echo "$as_me:4331: checking for $compiler option to produce PIC" >&5
4332
 
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4333
 
if test "${lt_cv_prog_cc_pic+set}" = set; then
4334
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4335
 
else
4336
 
   lt_cv_prog_cc_pic=
4337
 
  lt_cv_prog_cc_shlib=
4338
 
  lt_cv_prog_cc_wl=
4339
 
  lt_cv_prog_cc_static=
4340
 
  lt_cv_prog_cc_no_builtin=
4341
 
  lt_cv_prog_cc_can_build_shared=$can_build_shared
4342
 
 
4343
 
  if test "$GCC" = yes; then
4344
 
    lt_cv_prog_cc_wl='-Wl,'
4345
 
    lt_cv_prog_cc_static='-static'
4346
 
 
4347
 
    case $host_os in
4348
 
    aix*)
4349
 
      # Below there is a dirty hack to force normal static linking with -ldl
4350
 
      # The problem is because libdl dynamically linked with both libc and
4351
 
      # libC (AIX C++ library), which obviously doesn't included in libraries
4352
 
      # list by gcc. This cause undefined symbols with -static flags.
4353
 
      # This hack allows C programs to be linked with "-static -ldl", but
4354
 
      # we not sure about C++ programs.
4355
 
      lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4356
 
      ;;
4357
 
    amigaos*)
4358
 
      # FIXME: we need at least 68020 code to build shared libraries, but
4359
 
      # adding the `-m68020' flag to GCC prevents building anything better,
4360
 
      # like `-m68040'.
4361
 
      lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4362
 
      ;;
4363
 
    beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4364
 
      # PIC is the default for these OSes.
4365
 
      ;;
4366
 
    darwin* | rhapsody*)
4367
 
      # PIC is the default on this platform
4368
 
      # Common symbols not allowed in MH_DYLIB files
4369
 
      lt_cv_prog_cc_pic='-fno-common'
4370
 
      ;;
4371
 
    cygwin* | mingw* | pw32* | os2*)
4372
 
      # This hack is so that the source file can tell whether it is being
4373
 
      # built for inclusion in a dll (and should export symbols for example).
4374
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4375
 
      ;;
4376
 
    sysv4*MP*)
4377
 
      if test -d /usr/nec; then
4378
 
         lt_cv_prog_cc_pic=-Kconform_pic
4379
 
      fi
4380
 
      ;;
4381
 
    *)
4382
 
      lt_cv_prog_cc_pic='-fPIC'
4383
 
      ;;
4384
 
    esac
4385
 
  else
4386
 
    # PORTME Check for PIC flags for the system compiler.
4387
 
    case $host_os in
4388
 
    aix3* | aix4* | aix5*)
4389
 
      # All AIX code is PIC.
4390
 
      if test "$host_cpu" = ia64; then
4391
 
        # AIX 5 now supports IA64 processor
4392
 
        lt_cv_prog_cc_static='-Bstatic'
4393
 
        lt_cv_prog_cc_wl='-Wl,'
4394
 
      else
4395
 
        lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4396
 
      fi
4397
 
      ;;
4398
 
 
4399
 
    hpux9* | hpux10* | hpux11*)
4400
 
      # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4401
 
      lt_cv_prog_cc_wl='-Wl,'
4402
 
      lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4403
 
      lt_cv_prog_cc_pic='+Z'
4404
 
      ;;
4405
 
 
4406
 
    irix5* | irix6*)
4407
 
      lt_cv_prog_cc_wl='-Wl,'
4408
 
      lt_cv_prog_cc_static='-non_shared'
4409
 
      # PIC (with -KPIC) is the default.
4410
 
      ;;
4411
 
 
4412
 
    cygwin* | mingw* | pw32* | os2*)
4413
 
      # This hack is so that the source file can tell whether it is being
4414
 
      # built for inclusion in a dll (and should export symbols for example).
4415
 
      lt_cv_prog_cc_pic='-DDLL_EXPORT'
4416
 
      ;;
4417
 
 
4418
 
    newsos6)
4419
 
      lt_cv_prog_cc_pic='-KPIC'
4420
 
      lt_cv_prog_cc_static='-Bstatic'
4421
 
      ;;
4422
 
 
4423
 
    osf3* | osf4* | osf5*)
4424
 
      # All OSF/1 code is PIC.
4425
 
      lt_cv_prog_cc_wl='-Wl,'
4426
 
      lt_cv_prog_cc_static='-non_shared'
4427
 
      ;;
4428
 
 
4429
 
    sco3.2v5*)
4430
 
      lt_cv_prog_cc_pic='-Kpic'
4431
 
      lt_cv_prog_cc_static='-dn'
4432
 
      lt_cv_prog_cc_shlib='-belf'
4433
 
      ;;
4434
 
 
4435
 
    solaris*)
4436
 
      lt_cv_prog_cc_pic='-KPIC'
4437
 
      lt_cv_prog_cc_static='-Bstatic'
4438
 
      lt_cv_prog_cc_wl='-Wl,'
4439
 
      ;;
4440
 
 
4441
 
    sunos4*)
4442
 
      lt_cv_prog_cc_pic='-PIC'
4443
 
      lt_cv_prog_cc_static='-Bstatic'
4444
 
      lt_cv_prog_cc_wl='-Qoption ld '
4445
 
      ;;
4446
 
 
4447
 
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4448
 
      lt_cv_prog_cc_pic='-KPIC'
4449
 
      lt_cv_prog_cc_static='-Bstatic'
4450
 
      if test "x$host_vendor" = xsni; then
4451
 
        lt_cv_prog_cc_wl='-LD'
4452
 
      else
4453
 
        lt_cv_prog_cc_wl='-Wl,'
4454
 
      fi
4455
 
      ;;
4456
 
 
4457
 
    uts4*)
4458
 
      lt_cv_prog_cc_pic='-pic'
4459
 
      lt_cv_prog_cc_static='-Bstatic'
4460
 
      ;;
4461
 
 
4462
 
    sysv4*MP*)
4463
 
      if test -d /usr/nec ;then
4464
 
        lt_cv_prog_cc_pic='-Kconform_pic'
4465
 
        lt_cv_prog_cc_static='-Bstatic'
4466
 
      fi
4467
 
      ;;
4468
 
 
4469
 
    *)
4470
 
      lt_cv_prog_cc_can_build_shared=no
4471
 
      ;;
4472
 
    esac
4473
 
  fi
4474
 
 
4475
 
fi
4476
 
 
4477
 
if test -z "$lt_cv_prog_cc_pic"; then
4478
 
  echo "$as_me:4478: result: none" >&5
4479
 
echo "${ECHO_T}none" >&6
4480
 
else
4481
 
  echo "$as_me:4481: result: $lt_cv_prog_cc_pic" >&5
4482
 
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4483
 
 
4484
 
  # Check to make sure the pic_flag actually works.
4485
 
  echo "$as_me:4485: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4486
 
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4487
 
  if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4488
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4489
 
else
4490
 
      save_CFLAGS="$CFLAGS"
4491
 
    CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4492
 
    cat >conftest.$ac_ext <<_ACEOF
4493
 
#line 4493 "configure"
4494
 
#include "confdefs.h"
4495
 
 
4496
 
int
4497
 
main ()
4498
 
{
4499
 
 
4500
 
  ;
4501
 
  return 0;
4502
 
}
4503
 
_ACEOF
4504
 
rm -f conftest.$ac_objext
4505
 
if { (eval echo "$as_me:4505: \"$ac_compile\"") >&5
4506
 
  (eval $ac_compile) 2>&5
4507
 
  ac_status=$?
4508
 
  echo "$as_me:4508: \$? = $ac_status" >&5
4509
 
  (exit $ac_status); } &&
4510
 
         { ac_try='test -s conftest.$ac_objext'
4511
 
  { (eval echo "$as_me:4511: \"$ac_try\"") >&5
4512
 
  (eval $ac_try) 2>&5
4513
 
  ac_status=$?
4514
 
  echo "$as_me:4514: \$? = $ac_status" >&5
4515
 
  (exit $ac_status); }; }; then
4516
 
        case $host_os in
4517
 
      hpux9* | hpux10* | hpux11*)
4518
 
        # On HP-UX, both CC and GCC only warn that PIC is supported... then
4519
 
        # they create non-PIC objects.  So, if there were any warnings, we
4520
 
        # assume that PIC is not supported.
4521
 
        if test -s conftest.err; then
4522
 
          lt_cv_prog_cc_pic_works=no
4523
 
        else
4524
 
          lt_cv_prog_cc_pic_works=yes
4525
 
        fi
4526
 
        ;;
4527
 
      *)
4528
 
        lt_cv_prog_cc_pic_works=yes
4529
 
        ;;
4530
 
      esac
4531
 
 
4532
 
else
4533
 
  echo "$as_me: failed program was:" >&5
4534
 
cat conftest.$ac_ext >&5
4535
 
      lt_cv_prog_cc_pic_works=no
4536
 
 
4537
 
fi
4538
 
rm -f conftest.$ac_objext conftest.$ac_ext
4539
 
    CFLAGS="$save_CFLAGS"
4540
 
 
4541
 
fi
4542
 
 
4543
 
  if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4544
 
    lt_cv_prog_cc_pic=
4545
 
    lt_cv_prog_cc_can_build_shared=no
4546
 
  else
4547
 
    lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4548
 
  fi
4549
 
 
4550
 
  echo "$as_me:4550: result: $lt_cv_prog_cc_pic_works" >&5
4551
 
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4552
 
fi
4553
 
 
 
8111
# Use C for the default configuration in the libtool script
 
8112
tagname=
 
8113
lt_save_CC="$CC"
 
8114
ac_ext=c
 
8115
ac_cpp='$CPP $CPPFLAGS'
 
8116
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
8117
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
8118
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
8119
 
 
8120
 
 
8121
# Source file extension for C test sources.
 
8122
ac_ext=c
 
8123
 
 
8124
# Object file extension for compiled C test sources.
 
8125
objext=o
 
8126
objext=$objext
 
8127
 
 
8128
# Code to be used in simple compile tests
 
8129
lt_simple_compile_test_code="int some_variable = 0;\n"
 
8130
 
 
8131
# Code to be used in simple link tests
 
8132
lt_simple_link_test_code='int main(){return(0);}\n'
 
8133
 
 
8134
 
 
8135
# If no C compiler was specified, use CC.
 
8136
LTCC=${LTCC-"$CC"}
 
8137
 
 
8138
# Allow CC to be a program name with arguments.
 
8139
compiler=$CC
 
8140
 
 
8141
 
 
8142
#
4554
8143
# Check for any special shared library compilation flags.
4555
 
if test -n "$lt_cv_prog_cc_shlib"; then
4556
 
  { echo "$as_me:4556: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4557
 
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4558
 
  if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
4559
 
  else
4560
 
   { echo "$as_me:4560: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4561
 
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4562
 
    lt_cv_prog_cc_can_build_shared=no
4563
 
  fi
4564
 
fi
4565
 
 
4566
 
echo "$as_me:4566: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4567
 
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4568
 
if test "${lt_cv_prog_cc_static_works+set}" = set; then
4569
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4570
 
else
4571
 
    lt_cv_prog_cc_static_works=no
4572
 
  save_LDFLAGS="$LDFLAGS"
4573
 
  LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4574
 
  cat >conftest.$ac_ext <<_ACEOF
4575
 
#line 4575 "configure"
4576
 
#include "confdefs.h"
4577
 
 
4578
 
int
4579
 
main ()
4580
 
{
4581
 
 
4582
 
  ;
4583
 
  return 0;
4584
 
}
4585
 
_ACEOF
4586
 
rm -f conftest.$ac_objext conftest$ac_exeext
4587
 
if { (eval echo "$as_me:4587: \"$ac_link\"") >&5
4588
 
  (eval $ac_link) 2>&5
4589
 
  ac_status=$?
4590
 
  echo "$as_me:4590: \$? = $ac_status" >&5
4591
 
  (exit $ac_status); } &&
4592
 
         { ac_try='test -s conftest$ac_exeext'
4593
 
  { (eval echo "$as_me:4593: \"$ac_try\"") >&5
4594
 
  (eval $ac_try) 2>&5
4595
 
  ac_status=$?
4596
 
  echo "$as_me:4596: \$? = $ac_status" >&5
4597
 
  (exit $ac_status); }; }; then
4598
 
  lt_cv_prog_cc_static_works=yes
4599
 
else
4600
 
  echo "$as_me: failed program was:" >&5
4601
 
cat conftest.$ac_ext >&5
4602
 
fi
4603
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4604
 
  LDFLAGS="$save_LDFLAGS"
4605
 
 
4606
 
fi
4607
 
 
4608
 
# Belt *and* braces to stop my trousers falling down:
4609
 
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4610
 
echo "$as_me:4610: result: $lt_cv_prog_cc_static_works" >&5
4611
 
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4612
 
 
4613
 
pic_flag="$lt_cv_prog_cc_pic"
4614
 
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4615
 
wl="$lt_cv_prog_cc_wl"
4616
 
link_static_flag="$lt_cv_prog_cc_static"
4617
 
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4618
 
can_build_shared="$lt_cv_prog_cc_can_build_shared"
4619
 
 
4620
 
# Check to see if options -o and -c are simultaneously supported by compiler
4621
 
echo "$as_me:4621: checking if $compiler supports -c -o file.$ac_objext" >&5
4622
 
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4623
 
if test "${lt_cv_compiler_c_o+set}" = set; then
4624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4625
 
else
4626
 
 
4627
 
$rm -r conftest 2>/dev/null
4628
 
mkdir conftest
4629
 
cd conftest
4630
 
echo "int some_variable = 0;" > conftest.$ac_ext
4631
 
mkdir out
4632
 
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4633
 
# that will create temporary files in the current directory regardless of
4634
 
# the output directory.  Thus, making CWD read-only will cause this test
4635
 
# to fail, enabling locking or at least warning the user not to do parallel
4636
 
# builds.
4637
 
chmod -w .
4638
 
save_CFLAGS="$CFLAGS"
4639
 
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4640
 
compiler_c_o=no
4641
 
if { (eval echo configure:4641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4642
 
  # The compiler can only warn and ignore the option if not recognized
4643
 
  # So say no if there are warnings
4644
 
  if test -s out/conftest.err; then
4645
 
    lt_cv_compiler_c_o=no
4646
 
  else
4647
 
    lt_cv_compiler_c_o=yes
4648
 
  fi
4649
 
else
4650
 
  # Append any errors to the config.log.
4651
 
  cat out/conftest.err 1>&5
4652
 
  lt_cv_compiler_c_o=no
4653
 
fi
4654
 
CFLAGS="$save_CFLAGS"
4655
 
chmod u+w .
4656
 
$rm conftest* out/*
4657
 
rmdir out
4658
 
cd ..
4659
 
rmdir conftest
4660
 
$rm -r conftest 2>/dev/null
4661
 
 
4662
 
fi
4663
 
 
4664
 
compiler_c_o=$lt_cv_compiler_c_o
4665
 
echo "$as_me:4665: result: $compiler_c_o" >&5
4666
 
echo "${ECHO_T}$compiler_c_o" >&6
4667
 
 
4668
 
if test x"$compiler_c_o" = x"yes"; then
4669
 
  # Check to see if we can write to a .lo
4670
 
  echo "$as_me:4670: checking if $compiler supports -c -o file.lo" >&5
4671
 
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4672
 
  if test "${lt_cv_compiler_o_lo+set}" = set; then
4673
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
4674
 
else
4675
 
 
4676
 
  lt_cv_compiler_o_lo=no
4677
 
  save_CFLAGS="$CFLAGS"
4678
 
  CFLAGS="$CFLAGS -c -o conftest.lo"
4679
 
  cat >conftest.$ac_ext <<_ACEOF
4680
 
#line 4680 "configure"
4681
 
#include "confdefs.h"
4682
 
 
4683
 
int
4684
 
main ()
4685
 
{
4686
 
int some_variable = 0;
4687
 
  ;
4688
 
  return 0;
4689
 
}
4690
 
_ACEOF
4691
 
rm -f conftest.$ac_objext
4692
 
if { (eval echo "$as_me:4692: \"$ac_compile\"") >&5
4693
 
  (eval $ac_compile) 2>&5
4694
 
  ac_status=$?
4695
 
  echo "$as_me:4695: \$? = $ac_status" >&5
4696
 
  (exit $ac_status); } &&
4697
 
         { ac_try='test -s conftest.$ac_objext'
4698
 
  { (eval echo "$as_me:4698: \"$ac_try\"") >&5
4699
 
  (eval $ac_try) 2>&5
4700
 
  ac_status=$?
4701
 
  echo "$as_me:4701: \$? = $ac_status" >&5
4702
 
  (exit $ac_status); }; }; then
4703
 
      # The compiler can only warn and ignore the option if not recognized
4704
 
    # So say no if there are warnings
4705
 
    if test -s conftest.err; then
4706
 
      lt_cv_compiler_o_lo=no
4707
 
    else
4708
 
      lt_cv_compiler_o_lo=yes
4709
 
    fi
4710
 
 
4711
 
else
4712
 
  echo "$as_me: failed program was:" >&5
4713
 
cat conftest.$ac_ext >&5
4714
 
fi
4715
 
rm -f conftest.$ac_objext conftest.$ac_ext
4716
 
  CFLAGS="$save_CFLAGS"
4717
 
 
4718
 
fi
4719
 
 
4720
 
  compiler_o_lo=$lt_cv_compiler_o_lo
4721
 
  echo "$as_me:4721: result: $compiler_c_lo" >&5
4722
 
echo "${ECHO_T}$compiler_c_lo" >&6
4723
 
else
4724
 
  compiler_o_lo=no
4725
 
fi
4726
 
 
4727
 
# Check to see if we can do hard links to lock some files if needed
4728
 
hard_links="nottested"
4729
 
if test "$compiler_c_o" = no && test "$need_locks" != no; then
4730
 
  # do not overwrite the value of need_locks provided by the user
4731
 
  echo "$as_me:4731: checking if we can lock with hard links" >&5
4732
 
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4733
 
  hard_links=yes
4734
 
  $rm conftest*
4735
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4736
 
  touch conftest.a
4737
 
  ln conftest.a conftest.b 2>&5 || hard_links=no
4738
 
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
4739
 
  echo "$as_me:4739: result: $hard_links" >&5
4740
 
echo "${ECHO_T}$hard_links" >&6
4741
 
  if test "$hard_links" = no; then
4742
 
    { echo "$as_me:4742: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4743
 
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4744
 
    need_locks=warn
4745
 
  fi
4746
 
else
4747
 
  need_locks=no
4748
 
fi
4749
 
 
4750
 
if test "$GCC" = yes; then
4751
 
  # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4752
 
  echo "$as_me:4752: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4753
 
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4754
 
  echo "int some_variable = 0;" > conftest.$ac_ext
4755
 
  save_CFLAGS="$CFLAGS"
4756
 
  CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4757
 
  compiler_rtti_exceptions=no
4758
 
  cat >conftest.$ac_ext <<_ACEOF
4759
 
#line 4759 "configure"
4760
 
#include "confdefs.h"
4761
 
 
4762
 
int
4763
 
main ()
4764
 
{
4765
 
int some_variable = 0;
4766
 
  ;
4767
 
  return 0;
4768
 
}
4769
 
_ACEOF
4770
 
rm -f conftest.$ac_objext
4771
 
if { (eval echo "$as_me:4771: \"$ac_compile\"") >&5
4772
 
  (eval $ac_compile) 2>&5
4773
 
  ac_status=$?
4774
 
  echo "$as_me:4774: \$? = $ac_status" >&5
4775
 
  (exit $ac_status); } &&
4776
 
         { ac_try='test -s conftest.$ac_objext'
4777
 
  { (eval echo "$as_me:4777: \"$ac_try\"") >&5
4778
 
  (eval $ac_try) 2>&5
4779
 
  ac_status=$?
4780
 
  echo "$as_me:4780: \$? = $ac_status" >&5
4781
 
  (exit $ac_status); }; }; then
4782
 
      # The compiler can only warn and ignore the option if not recognized
4783
 
    # So say no if there are warnings
4784
 
    if test -s conftest.err; then
4785
 
      compiler_rtti_exceptions=no
4786
 
    else
4787
 
      compiler_rtti_exceptions=yes
4788
 
    fi
4789
 
 
4790
 
else
4791
 
  echo "$as_me: failed program was:" >&5
4792
 
cat conftest.$ac_ext >&5
4793
 
fi
4794
 
rm -f conftest.$ac_objext conftest.$ac_ext
4795
 
  CFLAGS="$save_CFLAGS"
4796
 
  echo "$as_me:4796: result: $compiler_rtti_exceptions" >&5
4797
 
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4798
 
 
4799
 
  if test "$compiler_rtti_exceptions" = "yes"; then
4800
 
    no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4801
 
  else
4802
 
    no_builtin_flag=' -fno-builtin'
4803
 
  fi
4804
 
fi
4805
 
 
4806
 
# See if the linker supports building shared libraries.
4807
 
echo "$as_me:4807: checking whether the linker ($LD) supports shared libraries" >&5
4808
 
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4809
 
 
4810
 
allow_undefined_flag=
4811
 
no_undefined_flag=
4812
 
need_lib_prefix=unknown
4813
 
need_version=unknown
4814
 
# when you set need_version to no, make sure it does not cause -set_version
4815
 
# flags to be left without arguments
4816
 
archive_cmds=
4817
 
archive_expsym_cmds=
4818
 
old_archive_from_new_cmds=
4819
 
old_archive_from_expsyms_cmds=
4820
 
export_dynamic_flag_spec=
4821
 
whole_archive_flag_spec=
4822
 
thread_safe_flag_spec=
4823
 
hardcode_into_libs=no
4824
 
hardcode_libdir_flag_spec=
4825
 
hardcode_libdir_separator=
4826
 
hardcode_direct=no
4827
 
hardcode_minus_L=no
4828
 
hardcode_shlibpath_var=unsupported
4829
 
runpath_var=
4830
 
link_all_deplibs=unknown
4831
 
always_export_symbols=no
4832
 
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4833
 
# include_expsyms should be a list of space-separated symbols to be *always*
4834
 
# included in the symbol list
4835
 
include_expsyms=
4836
 
# exclude_expsyms can be an egrep regular expression of symbols to exclude
4837
 
# it will be wrapped by ` (' and `)$', so one must not match beginning or
4838
 
# end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4839
 
# as well as any symbol that contains `d'.
4840
 
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4841
 
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4842
 
# platforms (ab)use it in PIC code, but their linkers get confused if
4843
 
# the symbol is explicitly referenced.  Since portable code cannot
4844
 
# rely on this symbol name, it's probably fine to never include it in
4845
 
# preloaded symbol tables.
4846
 
extract_expsyms_cmds=
4847
 
 
4848
 
case $host_os in
4849
 
cygwin* | mingw* | pw32* )
4850
 
  # FIXME: the MSVC++ port hasn't been tested in a loooong time
4851
 
  # When not using gcc, we currently assume that we are using
4852
 
  # Microsoft Visual C++.
4853
 
  if test "$GCC" != yes; then
4854
 
    with_gnu_ld=no
4855
 
  fi
4856
 
  ;;
4857
 
 
4858
 
esac
4859
 
 
4860
 
ld_shlibs=yes
4861
 
if test "$with_gnu_ld" = yes; then
4862
 
  # If archive_cmds runs LD, not CC, wlarc should be empty
4863
 
  wlarc='${wl}'
4864
 
 
4865
 
  # See if GNU ld supports shared libraries.
4866
 
  case $host_os in
4867
 
  aix3* | aix4* | aix5*)
4868
 
    # On AIX, the GNU linker is very broken
4869
 
    # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4870
 
    ld_shlibs=no
4871
 
    cat <<EOF 1>&2
4872
 
 
4873
 
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
4874
 
*** to be unable to reliably create shared libraries on AIX.
4875
 
*** Therefore, libtool is disabling shared libraries support.  If you
4876
 
*** really care for shared libraries, you may want to modify your PATH
4877
 
*** so that a non-GNU linker is found, and then restart.
4878
 
 
4879
 
EOF
4880
 
    ;;
4881
 
 
4882
 
  amigaos*)
4883
 
    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)'
4884
 
    hardcode_libdir_flag_spec='-L$libdir'
4885
 
    hardcode_minus_L=yes
4886
 
 
4887
 
    # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4888
 
    # that the semantics of dynamic libraries on AmigaOS, at least up
4889
 
    # to version 4, is to share data among multiple programs linked
4890
 
    # with the same dynamic library.  Since this doesn't match the
4891
 
    # behavior of shared libraries on other platforms, we can use
4892
 
    # them.
4893
 
    ld_shlibs=no
4894
 
    ;;
4895
 
 
4896
 
  beos*)
4897
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4898
 
      allow_undefined_flag=unsupported
4899
 
      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4900
 
      # support --undefined.  This deserves some investigation.  FIXME
4901
 
      archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4902
 
    else
4903
 
      ld_shlibs=no
4904
 
    fi
4905
 
    ;;
4906
 
 
4907
 
  cygwin* | mingw* | pw32*)
4908
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
4909
 
    # no search path for DLLs.
4910
 
    hardcode_libdir_flag_spec='-L$libdir'
4911
 
    allow_undefined_flag=unsupported
4912
 
    always_export_symbols=yes
4913
 
 
4914
 
    extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4915
 
      sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4916
 
      test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4917
 
      if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4918
 
      else $CC -o impgen impgen.c ; fi)~
4919
 
      $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4920
 
 
4921
 
    old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4922
 
 
4923
 
    # cygwin and mingw dlls have different entry points and sets of symbols
4924
 
    # to exclude.
4925
 
    # FIXME: what about values for MSVC?
4926
 
    dll_entry=__cygwin_dll_entry@12
4927
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4928
 
    case $host_os in
4929
 
    mingw*)
4930
 
      # mingw values
4931
 
      dll_entry=_DllMainCRTStartup@12
4932
 
      dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4933
 
      ;;
4934
 
    esac
4935
 
 
4936
 
    # mingw and cygwin differ, and it's simplest to just exclude the union
4937
 
    # of the two symbol sets.
4938
 
    dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4939
 
 
4940
 
    # recent cygwin and mingw systems supply a stub DllMain which the user
4941
 
    # can override, but on older systems we have to supply one (in ltdll.c)
4942
 
    if test "x$lt_cv_need_dllmain" = "xyes"; then
4943
 
      ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4944
 
      ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4945
 
        test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4946
 
    else
4947
 
      ltdll_obj=
4948
 
      ltdll_cmds=
4949
 
    fi
4950
 
 
4951
 
    # Extract the symbol export list from an `--export-all' def file,
4952
 
    # then regenerate the def file from the symbol export list, so that
4953
 
    # the compiled dll only exports the symbol export list.
4954
 
    # Be careful not to strip the DATA tag left be newer dlltools.
4955
 
    export_symbols_cmds="$ltdll_cmds"'
4956
 
      $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4957
 
      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4958
 
 
4959
 
    # If the export-symbols file already is a .def file (1st line
4960
 
    # is EXPORTS), use it as is.
4961
 
    # If DATA tags from a recent dlltool are present, honour them!
4962
 
    archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4963
 
        cp $export_symbols $output_objdir/$soname-def;
4964
 
      else
4965
 
        echo EXPORTS > $output_objdir/$soname-def;
4966
 
        _lt_hint=1;
4967
 
        cat $export_symbols | while read symbol; do
4968
 
         set dummy \$symbol;
4969
 
         case \$# in
4970
 
           2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4971
 
           *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4972
 
         esac;
4973
 
         _lt_hint=`expr 1 + \$_lt_hint`;
4974
 
        done;
4975
 
      fi~
4976
 
      '"$ltdll_cmds"'
4977
 
      $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4978
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4979
 
      $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4980
 
      $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4981
 
      $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4982
 
    ;;
4983
 
 
4984
 
  netbsd*)
4985
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4986
 
      archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4987
 
      wlarc=
4988
 
    else
4989
 
      archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4990
 
      archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4991
 
    fi
4992
 
    ;;
4993
 
 
4994
 
  solaris* | sysv5*)
4995
 
    if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4996
 
      ld_shlibs=no
4997
 
      cat <<EOF 1>&2
4998
 
 
4999
 
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
5000
 
*** create shared libraries on Solaris systems.  Therefore, libtool
5001
 
*** is disabling shared libraries support.  We urge you to upgrade GNU
5002
 
*** binutils to release 2.9.1 or newer.  Another option is to modify
5003
 
*** your PATH or compiler configuration so that the native linker is
5004
 
*** used, and then restart.
5005
 
 
5006
 
EOF
5007
 
    elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5008
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5009
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5010
 
    else
5011
 
      ld_shlibs=no
5012
 
    fi
5013
 
    ;;
5014
 
 
5015
 
  sunos4*)
5016
 
    archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5017
 
    wlarc=
5018
 
    hardcode_direct=yes
5019
 
    hardcode_shlibpath_var=no
5020
 
    ;;
5021
 
 
5022
 
  *)
5023
 
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5024
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5025
 
      archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5026
 
    else
5027
 
      ld_shlibs=no
5028
 
    fi
5029
 
    ;;
5030
 
  esac
5031
 
 
5032
 
  if test "$ld_shlibs" = yes; then
5033
 
    runpath_var=LD_RUN_PATH
5034
 
    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5035
 
    export_dynamic_flag_spec='${wl}--export-dynamic'
5036
 
    case $host_os in
5037
 
    cygwin* | mingw* | pw32*)
5038
 
      # dlltool doesn't understand --whole-archive et. al.
5039
 
      whole_archive_flag_spec=
5040
 
      ;;
5041
 
    *)
5042
 
      # ancient GNU ld didn't support --whole-archive et. al.
5043
 
      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5044
 
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5045
 
      else
5046
 
        whole_archive_flag_spec=
5047
 
      fi
5048
 
      ;;
5049
 
    esac
5050
 
  fi
5051
 
else
5052
 
  # PORTME fill in a description of your system's linker (not GNU ld)
5053
 
  case $host_os in
5054
 
  aix3*)
5055
 
    allow_undefined_flag=unsupported
5056
 
    always_export_symbols=yes
5057
 
    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'
5058
 
    # Note: this linker hardcodes the directories in LIBPATH if there
5059
 
    # are no directories specified by -L.
5060
 
    hardcode_minus_L=yes
5061
 
    if test "$GCC" = yes && test -z "$link_static_flag"; then
5062
 
      # Neither direct hardcoding nor static linking is supported with a
5063
 
      # broken collect2.
5064
 
      hardcode_direct=unsupported
5065
 
    fi
5066
 
    ;;
5067
 
 
5068
 
  aix4* | aix5*)
5069
 
    # When large executables or shared objects are built, AIX ld can
5070
 
    # have problems creating the table of contents.  If linking a library
5071
 
    # or program results in "error TOC overflow" add -mminimal-toc to
5072
 
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
5073
 
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5074
 
 
5075
 
    archive_cmds=''
5076
 
    hardcode_libdir_separator=':'
5077
 
    if test "$GCC" = yes; then
5078
 
      collect2name=`${CC} -print-prog-name=collect2`
5079
 
      if test -f "$collect2name" && \
5080
 
         strings "$collect2name" | grep resolve_lib_name >/dev/null
5081
 
      then
5082
 
        # We have reworked collect2
5083
 
        hardcode_direct=yes
5084
 
      else
5085
 
        # We have old collect2
5086
 
        hardcode_direct=unsupported
5087
 
        # It fails to find uninstalled libraries when the uninstalled
5088
 
        # path is not listed in the libpath.  Setting hardcode_minus_L
5089
 
        # to unsupported forces relinking
5090
 
        hardcode_minus_L=yes
5091
 
        hardcode_libdir_flag_spec='-L$libdir'
5092
 
        hardcode_libdir_separator=
5093
 
      fi
5094
 
      shared_flag='-shared'
5095
 
    else
5096
 
      if test "$host_cpu" = ia64; then
5097
 
        shared_flag='-G'
5098
 
      else
5099
 
        shared_flag='${wl}-bM:SRE'
5100
 
      fi
5101
 
      hardcode_direct=yes
5102
 
    fi
5103
 
 
5104
 
    if test "$host_cpu" = ia64; then
5105
 
      # On IA64, the linker does run time linking by default, so we don't
5106
 
      # have to do anything special.
5107
 
      aix_use_runtimelinking=no
5108
 
      exp_sym_flag='-Bexport'
5109
 
      no_entry_flag=""
5110
 
    else
5111
 
      # Test if we are trying to use run time linking, or normal AIX style linking.
5112
 
      # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
5113
 
      aix_use_runtimelinking=no
5114
 
      for ld_flag in $LDFLAGS; do
5115
 
        if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
5116
 
          aix_use_runtimelinking=yes
5117
 
          break
5118
 
        fi
5119
 
      done
5120
 
      exp_sym_flag='-bexport'
5121
 
      no_entry_flag='-bnoentry'
5122
 
    fi
5123
 
    # It seems that -bexpall can do strange things, so it is better to
5124
 
    # generate a list of symbols to export.
5125
 
    always_export_symbols=yes
5126
 
    if test "$aix_use_runtimelinking" = yes; then
5127
 
      hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5128
 
      allow_undefined_flag=' -Wl,-G'
5129
 
      archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5130
 
    else
5131
 
      if test "$host_cpu" = ia64; then
5132
 
        hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5133
 
       allow_undefined_flag="-znodefs"
5134
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
5135
 
      else
5136
 
        hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5137
 
        # Warning - without using the other run time loading flags, -berok will
5138
 
        #           link without error, but may produce a broken library.
5139
 
        allow_undefined_flag='${wl}-berok"
5140
 
        # This is a bit strange, but is similar to how AIX traditionally builds
5141
 
        # it's shared libraries.
5142
 
        archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
5143
 
      fi
5144
 
    fi
5145
 
    ;;
5146
 
 
5147
 
  amigaos*)
5148
 
    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)'
5149
 
    hardcode_libdir_flag_spec='-L$libdir'
5150
 
    hardcode_minus_L=yes
5151
 
    # see comment about different semantics on the GNU ld section
5152
 
    ld_shlibs=no
5153
 
    ;;
5154
 
 
5155
 
  cygwin* | mingw* | pw32*)
5156
 
    # When not using gcc, we currently assume that we are using
5157
 
    # Microsoft Visual C++.
5158
 
    # hardcode_libdir_flag_spec is actually meaningless, as there is
5159
 
    # no search path for DLLs.
5160
 
    hardcode_libdir_flag_spec=' '
5161
 
    allow_undefined_flag=unsupported
5162
 
    # Tell ltmain to make .lib files, not .a files.
5163
 
    libext=lib
5164
 
    # FIXME: Setting linknames here is a bad hack.
5165
 
    archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5166
 
    # The linker will automatically build a .lib file if we build a DLL.
5167
 
    old_archive_from_new_cmds='true'
5168
 
    # FIXME: Should let the user specify the lib program.
5169
 
    old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5170
 
    fix_srcfile_path='`cygpath -w "$srcfile"`'
5171
 
    ;;
5172
 
 
5173
 
  darwin* | rhapsody*)
5174
 
    allow_undefined_flag='-undefined suppress'
5175
 
    # FIXME: Relying on posixy $() will cause problems for
5176
 
    #        cross-compilation, but unfortunately the echo tests do not
5177
 
    #        yet detect zsh echo's removal of \ escapes.
5178
 
    archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
5179
 
    # We need to add '_' to the symbols in $export_symbols first
5180
 
    #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5181
 
    hardcode_direct=yes
5182
 
    hardcode_shlibpath_var=no
5183
 
    whole_archive_flag_spec='-all_load $convenience'
5184
 
    ;;
5185
 
 
5186
 
  freebsd1*)
5187
 
    ld_shlibs=no
5188
 
    ;;
5189
 
 
5190
 
  # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5191
 
  # support.  Future versions do this automatically, but an explicit c++rt0.o
5192
 
  # does not break anything, and helps significantly (at the cost of a little
5193
 
  # extra space).
5194
 
  freebsd2.2*)
5195
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5196
 
    hardcode_libdir_flag_spec='-R$libdir'
5197
 
    hardcode_direct=yes
5198
 
    hardcode_shlibpath_var=no
5199
 
    ;;
5200
 
 
5201
 
  # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5202
 
  freebsd2*)
5203
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5204
 
    hardcode_direct=yes
5205
 
    hardcode_minus_L=yes
5206
 
    hardcode_shlibpath_var=no
5207
 
    ;;
5208
 
 
5209
 
  # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5210
 
  freebsd*)
5211
 
    archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5212
 
    hardcode_libdir_flag_spec='-R$libdir'
5213
 
    hardcode_direct=yes
5214
 
    hardcode_shlibpath_var=no
5215
 
    ;;
5216
 
 
5217
 
  hpux9* | hpux10* | hpux11*)
5218
 
    case $host_os in
5219
 
    hpux9*) 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' ;;
5220
 
    *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5221
 
    esac
5222
 
    hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5223
 
    hardcode_libdir_separator=:
5224
 
    hardcode_direct=yes
5225
 
    hardcode_minus_L=yes # Not in the search PATH, but as the default
5226
 
                         # location of the library.
5227
 
    export_dynamic_flag_spec='${wl}-E'
5228
 
    ;;
5229
 
 
5230
 
  irix5* | irix6*)
5231
 
    if test "$GCC" = yes; then
5232
 
      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5233
 
    else
5234
 
      archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5235
 
    fi
5236
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5237
 
    hardcode_libdir_separator=:
5238
 
    link_all_deplibs=yes
5239
 
    ;;
5240
 
 
5241
 
  netbsd*)
5242
 
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5243
 
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
5244
 
    else
5245
 
      archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
5246
 
    fi
5247
 
    hardcode_libdir_flag_spec='-R$libdir'
5248
 
    hardcode_direct=yes
5249
 
    hardcode_shlibpath_var=no
5250
 
    ;;
5251
 
 
5252
 
  newsos6)
5253
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
5254
 
    hardcode_direct=yes
5255
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5256
 
    hardcode_libdir_separator=:
5257
 
    hardcode_shlibpath_var=no
5258
 
    ;;
5259
 
 
5260
 
  openbsd*)
5261
 
    archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5262
 
    hardcode_libdir_flag_spec='-R$libdir'
5263
 
    hardcode_direct=yes
5264
 
    hardcode_shlibpath_var=no
5265
 
    ;;
5266
 
 
5267
 
  os2*)
5268
 
    hardcode_libdir_flag_spec='-L$libdir'
5269
 
    hardcode_minus_L=yes
5270
 
    allow_undefined_flag=unsupported
5271
 
    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'
5272
 
    old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5273
 
    ;;
5274
 
 
5275
 
  osf3*)
5276
 
    if test "$GCC" = yes; then
5277
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5278
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5279
 
    else
5280
 
      allow_undefined_flag=' -expect_unresolved \*'
5281
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5282
 
    fi
5283
 
    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5284
 
    hardcode_libdir_separator=:
5285
 
    ;;
5286
 
 
5287
 
  osf4* | osf5*)        # as osf3* with the addition of -msym flag
5288
 
    if test "$GCC" = yes; then
5289
 
      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5290
 
      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5291
 
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5292
 
    else
5293
 
      allow_undefined_flag=' -expect_unresolved \*'
5294
 
      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5295
 
      archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5296
 
      $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
5297
 
 
5298
 
      #Both c and cxx compiler support -rpath directly
5299
 
      hardcode_libdir_flag_spec='-rpath $libdir'
5300
 
    fi
5301
 
    hardcode_libdir_separator=:
5302
 
    ;;
5303
 
 
 
8144
#
 
8145
lt_prog_cc_shlib=
 
8146
if test "$GCC" = no; then
 
8147
  case $host_os in
5304
8148
  sco3.2v5*)
5305
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5306
 
    hardcode_shlibpath_var=no
5307
 
    runpath_var=LD_RUN_PATH
5308
 
    hardcode_runpath_var=yes
5309
 
    ;;
5310
 
 
5311
 
  solaris*)
5312
 
    no_undefined_flag=' -z defs'
5313
 
    # $CC -shared without GNU ld will not create a library from C++
5314
 
    # object files and a static libstdc++, better avoid it by now
5315
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5316
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5317
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5318
 
    hardcode_libdir_flag_spec='-R$libdir'
5319
 
    hardcode_shlibpath_var=no
5320
 
    case $host_os in
5321
 
    solaris2.[0-5] | solaris2.[0-5].*) ;;
5322
 
    *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5323
 
      whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5324
 
    esac
5325
 
    link_all_deplibs=yes
5326
 
    ;;
5327
 
 
5328
 
  sunos4*)
5329
 
    if test "x$host_vendor" = xsequent; then
5330
 
      # Use $CC to link under sequent, because it throws in some extra .o
5331
 
      # files that make .init and .fini sections work.
5332
 
      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5333
 
    else
5334
 
      archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5335
 
    fi
5336
 
    hardcode_libdir_flag_spec='-L$libdir'
5337
 
    hardcode_direct=yes
5338
 
    hardcode_minus_L=yes
5339
 
    hardcode_shlibpath_var=no
5340
 
    ;;
5341
 
 
5342
 
  sysv4)
5343
 
    if test "x$host_vendor" = xsno; then
5344
 
      archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
5345
 
      hardcode_direct=yes # is this really true???
5346
 
    else
5347
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5348
 
      hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5349
 
    fi
5350
 
    runpath_var='LD_RUN_PATH'
5351
 
    hardcode_shlibpath_var=no
5352
 
    ;;
5353
 
 
5354
 
  sysv4.3*)
5355
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5356
 
    hardcode_shlibpath_var=no
5357
 
    export_dynamic_flag_spec='-Bexport'
5358
 
    ;;
5359
 
 
5360
 
  sysv5*)
5361
 
    no_undefined_flag=' -z text'
5362
 
    # $CC -shared without GNU ld will not create a library from C++
5363
 
    # object files and a static libstdc++, better avoid it by now
5364
 
    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5365
 
    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5366
 
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5367
 
    hardcode_libdir_flag_spec=
5368
 
    hardcode_shlibpath_var=no
5369
 
    runpath_var='LD_RUN_PATH'
5370
 
    ;;
5371
 
 
5372
 
  uts4*)
5373
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5374
 
    hardcode_libdir_flag_spec='-L$libdir'
5375
 
    hardcode_shlibpath_var=no
5376
 
    ;;
5377
 
 
5378
 
  dgux*)
5379
 
    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5380
 
    hardcode_libdir_flag_spec='-L$libdir'
5381
 
    hardcode_shlibpath_var=no
5382
 
    ;;
5383
 
 
5384
 
  sysv4*MP*)
5385
 
    if test -d /usr/nec; then
5386
 
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5387
 
      hardcode_shlibpath_var=no
5388
 
      runpath_var=LD_RUN_PATH
5389
 
      hardcode_runpath_var=yes
5390
 
      ld_shlibs=yes
5391
 
    fi
5392
 
    ;;
5393
 
 
5394
 
  sysv4.2uw2*)
5395
 
    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5396
 
    hardcode_direct=yes
5397
 
    hardcode_minus_L=no
5398
 
    hardcode_shlibpath_var=no
5399
 
    hardcode_runpath_var=yes
5400
 
    runpath_var=LD_RUN_PATH
5401
 
    ;;
5402
 
 
5403
 
  sysv5uw7* | unixware7*)
5404
 
    no_undefined_flag='${wl}-z ${wl}text'
5405
 
    if test "$GCC" = yes; then
5406
 
      archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5407
 
    else
5408
 
      archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5409
 
    fi
5410
 
    runpath_var='LD_RUN_PATH'
5411
 
    hardcode_shlibpath_var=no
5412
 
    ;;
5413
 
 
 
8149
    lt_prog_cc_shlib='-belf'
 
8150
    ;;
 
8151
  esac
 
8152
fi
 
8153
if test -n "$lt_prog_cc_shlib"; then
 
8154
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
8155
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
8156
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
8157
  else
 
8158
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
8159
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
8160
    lt_cv_prog_cc_can_build_shared=no
 
8161
  fi
 
8162
fi
 
8163
 
 
8164
 
 
8165
#
 
8166
# Check to make sure the static flag actually works.
 
8167
#
 
8168
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
8169
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
8170
if test "${lt_prog_compiler_static_works+set}" = set; then
 
8171
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8172
else
 
8173
  lt_prog_compiler_static_works=no
 
8174
   save_LDFLAGS="$LDFLAGS"
 
8175
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
8176
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
8177
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
8178
     # The compiler can only warn and ignore the option if not recognized
 
8179
     # So say no if there are warnings
 
8180
     if test -s conftest.err; then
 
8181
       # Append any errors to the config.log.
 
8182
       cat conftest.err 1>&5
 
8183
     else
 
8184
       lt_prog_compiler_static_works=yes
 
8185
     fi
 
8186
   fi
 
8187
   $rm conftest*
 
8188
   LDFLAGS="$save_LDFLAGS"
 
8189
 
 
8190
fi
 
8191
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
8192
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
8193
 
 
8194
if test x"$lt_prog_compiler_static_works" = xyes; then
 
8195
    :
 
8196
else
 
8197
    lt_prog_compiler_static=
 
8198
fi
 
8199
 
 
8200
 
 
8201
 
 
8202
 
 
8203
lt_prog_compiler_no_builtin_flag=
 
8204
 
 
8205
if test "$GCC" = yes; then
 
8206
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
8207
 
 
8208
 
 
8209
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
8210
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
8211
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
8212
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8213
else
 
8214
  lt_cv_prog_compiler_rtti_exceptions=no
 
8215
  ac_outfile=conftest.$ac_objext
 
8216
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8217
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
8218
   # Insert the option either (1) after the last *FLAGS variable, or
 
8219
   # (2) before a word containing "conftest.", or (3) at the end.
 
8220
   # Note that $ac_compile itself does not contain backslashes and begins
 
8221
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8222
   # The option is referenced via a variable to avoid confusing sed.
 
8223
   lt_compile=`echo "$ac_compile" | $SED \
 
8224
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8225
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8226
   -e 's:$: $lt_compiler_flag:'`
 
8227
   (eval echo "\"\$as_me:8227: $lt_compile\"" >&5)
 
8228
   (eval "$lt_compile" 2>conftest.err)
 
8229
   ac_status=$?
 
8230
   cat conftest.err >&5
 
8231
   echo "$as_me:8231: \$? = $ac_status" >&5
 
8232
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8233
     # The compiler can only warn and ignore the option if not recognized
 
8234
     # So say no if there are warnings
 
8235
     if test ! -s conftest.err; then
 
8236
       lt_cv_prog_compiler_rtti_exceptions=yes
 
8237
     fi
 
8238
   fi
 
8239
   $rm conftest*
 
8240
 
 
8241
fi
 
8242
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
8243
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
8244
 
 
8245
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
8246
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
8247
else
 
8248
    :
 
8249
fi
 
8250
 
 
8251
fi
 
8252
 
 
8253
lt_prog_compiler_wl=
 
8254
lt_prog_compiler_pic=
 
8255
lt_prog_compiler_static=
 
8256
 
 
8257
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
8258
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
8259
 
 
8260
  if test "$GCC" = yes; then
 
8261
    lt_prog_compiler_wl='-Wl,'
 
8262
    lt_prog_compiler_static='-static'
 
8263
 
 
8264
    case $host_os in
 
8265
      aix*)
 
8266
      # All AIX code is PIC.
 
8267
      if test "$host_cpu" = ia64; then
 
8268
        # AIX 5 now supports IA64 processor
 
8269
        lt_prog_compiler_static='-Bstatic'
 
8270
      fi
 
8271
      ;;
 
8272
 
 
8273
    amigaos*)
 
8274
      # FIXME: we need at least 68020 code to build shared libraries, but
 
8275
      # adding the `-m68020' flag to GCC prevents building anything better,
 
8276
      # like `-m68040'.
 
8277
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
8278
      ;;
 
8279
 
 
8280
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
8281
      # PIC is the default for these OSes.
 
8282
      ;;
 
8283
 
 
8284
    mingw* | pw32* | os2*)
 
8285
      # This hack is so that the source file can tell whether it is being
 
8286
      # built for inclusion in a dll (and should export symbols for example).
 
8287
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8288
      ;;
 
8289
 
 
8290
    darwin* | rhapsody*)
 
8291
      # PIC is the default on this platform
 
8292
      # Common symbols not allowed in MH_DYLIB files
 
8293
      lt_prog_compiler_pic='-fno-common'
 
8294
      ;;
 
8295
 
 
8296
    msdosdjgpp*)
 
8297
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
8298
      # on systems that don't support them.
 
8299
      lt_prog_compiler_can_build_shared=no
 
8300
      enable_shared=no
 
8301
      ;;
 
8302
 
 
8303
    sysv4*MP*)
 
8304
      if test -d /usr/nec; then
 
8305
        lt_prog_compiler_pic=-Kconform_pic
 
8306
      fi
 
8307
      ;;
 
8308
 
 
8309
    hpux*)
 
8310
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8311
      # not for PA HP-UX.
 
8312
      case "$host_cpu" in
 
8313
      hppa*64*|ia64*)
 
8314
        # +Z the default
 
8315
        ;;
 
8316
      *)
 
8317
        lt_prog_compiler_pic='-fPIC'
 
8318
        ;;
 
8319
      esac
 
8320
      ;;
 
8321
 
 
8322
    *)
 
8323
      lt_prog_compiler_pic='-fPIC'
 
8324
      ;;
 
8325
    esac
 
8326
  else
 
8327
    # PORTME Check for flag to pass linker flags through the system compiler.
 
8328
    case $host_os in
 
8329
    aix*)
 
8330
      lt_prog_compiler_wl='-Wl,'
 
8331
      if test "$host_cpu" = ia64; then
 
8332
        # AIX 5 now supports IA64 processor
 
8333
        lt_prog_compiler_static='-Bstatic'
 
8334
      else
 
8335
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
8336
      fi
 
8337
      ;;
 
8338
      darwin*)
 
8339
        # PIC is the default on this platform
 
8340
        # Common symbols not allowed in MH_DYLIB files
 
8341
       case "$cc_basename" in
 
8342
         xlc*)
 
8343
         lt_prog_compiler_pic='-qnocommon'
 
8344
         lt_prog_compiler_wl='-Wl,'
 
8345
         ;;
 
8346
       esac
 
8347
       ;;
 
8348
 
 
8349
    mingw* | pw32* | os2*)
 
8350
      # This hack is so that the source file can tell whether it is being
 
8351
      # built for inclusion in a dll (and should export symbols for example).
 
8352
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
8353
      ;;
 
8354
 
 
8355
    hpux9* | hpux10* | hpux11*)
 
8356
      lt_prog_compiler_wl='-Wl,'
 
8357
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
8358
      # not for PA HP-UX.
 
8359
      case "$host_cpu" in
 
8360
      hppa*64*|ia64*)
 
8361
        # +Z the default
 
8362
        ;;
 
8363
      *)
 
8364
        lt_prog_compiler_pic='+Z'
 
8365
        ;;
 
8366
      esac
 
8367
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
8368
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
8369
      ;;
 
8370
 
 
8371
    irix5* | irix6* | nonstopux*)
 
8372
      lt_prog_compiler_wl='-Wl,'
 
8373
      # PIC (with -KPIC) is the default.
 
8374
      lt_prog_compiler_static='-non_shared'
 
8375
      ;;
 
8376
 
 
8377
    newsos6)
 
8378
      lt_prog_compiler_pic='-KPIC'
 
8379
      lt_prog_compiler_static='-Bstatic'
 
8380
      ;;
 
8381
 
 
8382
    linux*)
 
8383
      case $CC in
 
8384
      icc* | ecc*)
 
8385
        lt_prog_compiler_wl='-Wl,'
 
8386
        lt_prog_compiler_pic='-KPIC'
 
8387
        lt_prog_compiler_static='-static'
 
8388
        ;;
 
8389
      ccc*)
 
8390
        lt_prog_compiler_wl='-Wl,'
 
8391
        # All Alpha code is PIC.
 
8392
        lt_prog_compiler_static='-non_shared'
 
8393
        ;;
 
8394
      esac
 
8395
      ;;
 
8396
 
 
8397
    osf3* | osf4* | osf5*)
 
8398
      lt_prog_compiler_wl='-Wl,'
 
8399
      # All OSF/1 code is PIC.
 
8400
      lt_prog_compiler_static='-non_shared'
 
8401
      ;;
 
8402
 
 
8403
    sco3.2v5*)
 
8404
      lt_prog_compiler_pic='-Kpic'
 
8405
      lt_prog_compiler_static='-dn'
 
8406
      ;;
 
8407
 
 
8408
    solaris*)
 
8409
      lt_prog_compiler_wl='-Wl,'
 
8410
      lt_prog_compiler_pic='-KPIC'
 
8411
      lt_prog_compiler_static='-Bstatic'
 
8412
      ;;
 
8413
 
 
8414
    sunos4*)
 
8415
      lt_prog_compiler_wl='-Qoption ld '
 
8416
      lt_prog_compiler_pic='-PIC'
 
8417
      lt_prog_compiler_static='-Bstatic'
 
8418
      ;;
 
8419
 
 
8420
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8421
      lt_prog_compiler_wl='-Wl,'
 
8422
      lt_prog_compiler_pic='-KPIC'
 
8423
      lt_prog_compiler_static='-Bstatic'
 
8424
      ;;
 
8425
 
 
8426
    sysv4*MP*)
 
8427
      if test -d /usr/nec ;then
 
8428
        lt_prog_compiler_pic='-Kconform_pic'
 
8429
        lt_prog_compiler_static='-Bstatic'
 
8430
      fi
 
8431
      ;;
 
8432
 
 
8433
    uts4*)
 
8434
      lt_prog_compiler_pic='-pic'
 
8435
      lt_prog_compiler_static='-Bstatic'
 
8436
      ;;
 
8437
 
 
8438
    *)
 
8439
      lt_prog_compiler_can_build_shared=no
 
8440
      ;;
 
8441
    esac
 
8442
  fi
 
8443
 
 
8444
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
8445
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
8446
 
 
8447
#
 
8448
# Check to make sure the PIC flag actually works.
 
8449
#
 
8450
if test -n "$lt_prog_compiler_pic"; then
 
8451
 
 
8452
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
8453
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
8454
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
8455
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8456
else
 
8457
  lt_prog_compiler_pic_works=no
 
8458
  ac_outfile=conftest.$ac_objext
 
8459
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8460
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
8461
   # Insert the option either (1) after the last *FLAGS variable, or
 
8462
   # (2) before a word containing "conftest.", or (3) at the end.
 
8463
   # Note that $ac_compile itself does not contain backslashes and begins
 
8464
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8465
   # The option is referenced via a variable to avoid confusing sed.
 
8466
   lt_compile=`echo "$ac_compile" | $SED \
 
8467
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8468
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8469
   -e 's:$: $lt_compiler_flag:'`
 
8470
   (eval echo "\"\$as_me:8470: $lt_compile\"" >&5)
 
8471
   (eval "$lt_compile" 2>conftest.err)
 
8472
   ac_status=$?
 
8473
   cat conftest.err >&5
 
8474
   echo "$as_me:8474: \$? = $ac_status" >&5
 
8475
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
8476
     # The compiler can only warn and ignore the option if not recognized
 
8477
     # So say no if there are warnings
 
8478
     if test ! -s conftest.err; then
 
8479
       lt_prog_compiler_pic_works=yes
 
8480
     fi
 
8481
   fi
 
8482
   $rm conftest*
 
8483
 
 
8484
fi
 
8485
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
8486
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
8487
 
 
8488
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
8489
    case $lt_prog_compiler_pic in
 
8490
     "" | " "*) ;;
 
8491
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
8492
     esac
 
8493
else
 
8494
    lt_prog_compiler_pic=
 
8495
     lt_prog_compiler_can_build_shared=no
 
8496
fi
 
8497
 
 
8498
fi
 
8499
case "$host_os" in
 
8500
  # For platforms which do not support PIC, -DPIC is meaningless:
 
8501
  *djgpp*)
 
8502
    lt_prog_compiler_pic=
 
8503
    ;;
5414
8504
  *)
5415
 
    ld_shlibs=no
 
8505
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
8506
    ;;
 
8507
esac
 
8508
 
 
8509
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
8510
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
8511
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
8512
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8513
else
 
8514
  lt_cv_prog_compiler_c_o=no
 
8515
   $rm -r conftest 2>/dev/null
 
8516
   mkdir conftest
 
8517
   cd conftest
 
8518
   mkdir out
 
8519
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8520
 
 
8521
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
8522
   # Insert the option either (1) after the last *FLAGS variable, or
 
8523
   # (2) before a word containing "conftest.", or (3) at the end.
 
8524
   # Note that $ac_compile itself does not contain backslashes and begins
 
8525
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
8526
   lt_compile=`echo "$ac_compile" | $SED \
 
8527
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
8528
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
8529
   -e 's:$: $lt_compiler_flag:'`
 
8530
   (eval echo "\"\$as_me:8530: $lt_compile\"" >&5)
 
8531
   (eval "$lt_compile" 2>out/conftest.err)
 
8532
   ac_status=$?
 
8533
   cat out/conftest.err >&5
 
8534
   echo "$as_me:8534: \$? = $ac_status" >&5
 
8535
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
8536
   then
 
8537
     # The compiler can only warn and ignore the option if not recognized
 
8538
     # So say no if there are warnings
 
8539
     if test ! -s out/conftest.err; then
 
8540
       lt_cv_prog_compiler_c_o=yes
 
8541
     fi
 
8542
   fi
 
8543
   chmod u+w .
 
8544
   $rm conftest*
 
8545
   # SGI C++ compiler will create directory out/ii_files/ for
 
8546
   # template instantiation
 
8547
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
8548
   $rm out/* && rmdir out
 
8549
   cd ..
 
8550
   rmdir conftest
 
8551
   $rm conftest*
 
8552
 
 
8553
fi
 
8554
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
8555
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
8556
 
 
8557
 
 
8558
hard_links="nottested"
 
8559
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
8560
  # do not overwrite the value of need_locks provided by the user
 
8561
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
8562
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
8563
  hard_links=yes
 
8564
  $rm conftest*
 
8565
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8566
  touch conftest.a
 
8567
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
8568
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
8569
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
8570
echo "${ECHO_T}$hard_links" >&6
 
8571
  if test "$hard_links" = no; then
 
8572
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
8573
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
8574
    need_locks=warn
 
8575
  fi
 
8576
else
 
8577
  need_locks=no
 
8578
fi
 
8579
 
 
8580
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
8581
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
8582
 
 
8583
  runpath_var=
 
8584
  allow_undefined_flag=
 
8585
  enable_shared_with_static_runtimes=no
 
8586
  archive_cmds=
 
8587
  archive_expsym_cmds=
 
8588
  old_archive_From_new_cmds=
 
8589
  old_archive_from_expsyms_cmds=
 
8590
  export_dynamic_flag_spec=
 
8591
  whole_archive_flag_spec=
 
8592
  thread_safe_flag_spec=
 
8593
  hardcode_libdir_flag_spec=
 
8594
  hardcode_libdir_flag_spec_ld=
 
8595
  hardcode_libdir_separator=
 
8596
  hardcode_direct=no
 
8597
  hardcode_minus_L=no
 
8598
  hardcode_shlibpath_var=unsupported
 
8599
  link_all_deplibs=unknown
 
8600
  hardcode_automatic=no
 
8601
  module_cmds=
 
8602
  module_expsym_cmds=
 
8603
  always_export_symbols=no
 
8604
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
8605
  # include_expsyms should be a list of space-separated symbols to be *always*
 
8606
  # included in the symbol list
 
8607
  include_expsyms=
 
8608
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
8609
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
8610
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
8611
  # as well as any symbol that contains `d'.
 
8612
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
8613
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
8614
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
8615
  # the symbol is explicitly referenced.  Since portable code cannot
 
8616
  # rely on this symbol name, it's probably fine to never include it in
 
8617
  # preloaded symbol tables.
 
8618
  extract_expsyms_cmds=
 
8619
 
 
8620
  case $host_os in
 
8621
  cygwin* | mingw* | pw32*)
 
8622
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
8623
    # When not using gcc, we currently assume that we are using
 
8624
    # Microsoft Visual C++.
 
8625
    if test "$GCC" != yes; then
 
8626
      with_gnu_ld=no
 
8627
    fi
 
8628
    ;;
 
8629
  openbsd*)
 
8630
    with_gnu_ld=no
5416
8631
    ;;
5417
8632
  esac
5418
 
fi
5419
 
echo "$as_me:5419: result: $ld_shlibs" >&5
 
8633
 
 
8634
  ld_shlibs=yes
 
8635
  if test "$with_gnu_ld" = yes; then
 
8636
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
8637
    wlarc='${wl}'
 
8638
 
 
8639
    # See if GNU ld supports shared libraries.
 
8640
    case $host_os in
 
8641
    aix3* | aix4* | aix5*)
 
8642
      # On AIX/PPC, the GNU linker is very broken
 
8643
      if test "$host_cpu" != ia64; then
 
8644
        ld_shlibs=no
 
8645
        cat <<EOF 1>&2
 
8646
 
 
8647
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
8648
*** to be unable to reliably create shared libraries on AIX.
 
8649
*** Therefore, libtool is disabling shared libraries support.  If you
 
8650
*** really care for shared libraries, you may want to modify your PATH
 
8651
*** so that a non-GNU linker is found, and then restart.
 
8652
 
 
8653
EOF
 
8654
      fi
 
8655
      ;;
 
8656
 
 
8657
    amigaos*)
 
8658
      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)'
 
8659
      hardcode_libdir_flag_spec='-L$libdir'
 
8660
      hardcode_minus_L=yes
 
8661
 
 
8662
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
8663
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
8664
      # to version 4, is to share data among multiple programs linked
 
8665
      # with the same dynamic library.  Since this doesn't match the
 
8666
      # behavior of shared libraries on other platforms, we can't use
 
8667
      # them.
 
8668
      ld_shlibs=no
 
8669
      ;;
 
8670
 
 
8671
    beos*)
 
8672
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8673
        allow_undefined_flag=unsupported
 
8674
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
8675
        # support --undefined.  This deserves some investigation.  FIXME
 
8676
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8677
      else
 
8678
        ld_shlibs=no
 
8679
      fi
 
8680
      ;;
 
8681
 
 
8682
    cygwin* | mingw* | pw32*)
 
8683
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
8684
      # as there is no search path for DLLs.
 
8685
      hardcode_libdir_flag_spec='-L$libdir'
 
8686
      allow_undefined_flag=unsupported
 
8687
      always_export_symbols=no
 
8688
      enable_shared_with_static_runtimes=yes
 
8689
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
8690
 
 
8691
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
8692
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
8693
        # If the export-symbols file already is a .def file (1st line
 
8694
        # is EXPORTS), use it as is; otherwise, prepend...
 
8695
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
8696
          cp $export_symbols $output_objdir/$soname.def;
 
8697
        else
 
8698
          echo EXPORTS > $output_objdir/$soname.def;
 
8699
          cat $export_symbols >> $output_objdir/$soname.def;
 
8700
        fi~
 
8701
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
8702
      else
 
8703
        ld_shlibs=no
 
8704
      fi
 
8705
      ;;
 
8706
 
 
8707
    netbsd*)
 
8708
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8709
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
8710
        wlarc=
 
8711
      else
 
8712
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8713
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8714
      fi
 
8715
      ;;
 
8716
 
 
8717
    solaris* | sysv5*)
 
8718
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
8719
        ld_shlibs=no
 
8720
        cat <<EOF 1>&2
 
8721
 
 
8722
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
8723
*** create shared libraries on Solaris systems.  Therefore, libtool
 
8724
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
8725
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
8726
*** your PATH or compiler configuration so that the native linker is
 
8727
*** used, and then restart.
 
8728
 
 
8729
EOF
 
8730
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8731
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8732
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8733
      else
 
8734
        ld_shlibs=no
 
8735
      fi
 
8736
      ;;
 
8737
 
 
8738
    sunos4*)
 
8739
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8740
      wlarc=
 
8741
      hardcode_direct=yes
 
8742
      hardcode_shlibpath_var=no
 
8743
      ;;
 
8744
 
 
8745
  linux*)
 
8746
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8747
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8748
        archive_cmds="$tmp_archive_cmds"
 
8749
      supports_anon_versioning=no
 
8750
      case `$LD -v 2>/dev/null` in
 
8751
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
8752
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
8753
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
8754
        *\ 2.11.*) ;; # other 2.11 versions
 
8755
        *) supports_anon_versioning=yes ;;
 
8756
      esac
 
8757
      if test $supports_anon_versioning = yes; then
 
8758
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
8759
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
8760
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
8761
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
8762
      else
 
8763
        archive_expsym_cmds="$tmp_archive_cmds"
 
8764
      fi
 
8765
    else
 
8766
      ld_shlibs=no
 
8767
    fi
 
8768
    ;;
 
8769
 
 
8770
    *)
 
8771
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
8772
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
8773
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
8774
      else
 
8775
        ld_shlibs=no
 
8776
      fi
 
8777
      ;;
 
8778
    esac
 
8779
 
 
8780
    if test "$ld_shlibs" = yes; then
 
8781
      runpath_var=LD_RUN_PATH
 
8782
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
8783
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
8784
      # ancient GNU ld didn't support --whole-archive et. al.
 
8785
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
8786
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
8787
      else
 
8788
        whole_archive_flag_spec=
 
8789
      fi
 
8790
    fi
 
8791
  else
 
8792
    # PORTME fill in a description of your system's linker (not GNU ld)
 
8793
    case $host_os in
 
8794
    aix3*)
 
8795
      allow_undefined_flag=unsupported
 
8796
      always_export_symbols=yes
 
8797
      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'
 
8798
      # Note: this linker hardcodes the directories in LIBPATH if there
 
8799
      # are no directories specified by -L.
 
8800
      hardcode_minus_L=yes
 
8801
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
8802
        # Neither direct hardcoding nor static linking is supported with a
 
8803
        # broken collect2.
 
8804
        hardcode_direct=unsupported
 
8805
      fi
 
8806
      ;;
 
8807
 
 
8808
    aix4* | aix5*)
 
8809
      if test "$host_cpu" = ia64; then
 
8810
        # On IA64, the linker does run time linking by default, so we don't
 
8811
        # have to do anything special.
 
8812
        aix_use_runtimelinking=no
 
8813
        exp_sym_flag='-Bexport'
 
8814
        no_entry_flag=""
 
8815
      else
 
8816
        # If we're using GNU nm, then we don't want the "-C" option.
 
8817
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
8818
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
8819
          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
8820
        else
 
8821
          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'
 
8822
        fi
 
8823
        aix_use_runtimelinking=no
 
8824
 
 
8825
        # Test if we are trying to use run time linking or normal
 
8826
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
8827
        # need to do runtime linking.
 
8828
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
8829
          for ld_flag in $LDFLAGS; do
 
8830
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
8831
            aix_use_runtimelinking=yes
 
8832
            break
 
8833
          fi
 
8834
          done
 
8835
        esac
 
8836
 
 
8837
        exp_sym_flag='-bexport'
 
8838
        no_entry_flag='-bnoentry'
 
8839
      fi
 
8840
 
 
8841
      # When large executables or shared objects are built, AIX ld can
 
8842
      # have problems creating the table of contents.  If linking a library
 
8843
      # or program results in "error TOC overflow" add -mminimal-toc to
 
8844
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
8845
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
8846
 
 
8847
      archive_cmds=''
 
8848
      hardcode_direct=yes
 
8849
      hardcode_libdir_separator=':'
 
8850
      link_all_deplibs=yes
 
8851
 
 
8852
      if test "$GCC" = yes; then
 
8853
        case $host_os in aix4.012|aix4.012.*)
 
8854
        # We only want to do this on AIX 4.2 and lower, the check
 
8855
        # below for broken collect2 doesn't work under 4.3+
 
8856
          collect2name=`${CC} -print-prog-name=collect2`
 
8857
          if test -f "$collect2name" && \
 
8858
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
8859
          then
 
8860
          # We have reworked collect2
 
8861
          hardcode_direct=yes
 
8862
          else
 
8863
          # We have old collect2
 
8864
          hardcode_direct=unsupported
 
8865
          # It fails to find uninstalled libraries when the uninstalled
 
8866
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
8867
          # to unsupported forces relinking
 
8868
          hardcode_minus_L=yes
 
8869
          hardcode_libdir_flag_spec='-L$libdir'
 
8870
          hardcode_libdir_separator=
 
8871
          fi
 
8872
        esac
 
8873
        shared_flag='-shared'
 
8874
      else
 
8875
        # not using gcc
 
8876
        if test "$host_cpu" = ia64; then
 
8877
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
8878
        # chokes on -Wl,-G. The following line is correct:
 
8879
          shared_flag='-G'
 
8880
        else
 
8881
        if test "$aix_use_runtimelinking" = yes; then
 
8882
            shared_flag='${wl}-G'
 
8883
          else
 
8884
            shared_flag='${wl}-bM:SRE'
 
8885
        fi
 
8886
        fi
 
8887
      fi
 
8888
 
 
8889
      # It seems that -bexpall does not export symbols beginning with
 
8890
      # underscore (_), so it is better to generate a list of symbols to export.
 
8891
      always_export_symbols=yes
 
8892
      if test "$aix_use_runtimelinking" = yes; then
 
8893
        # Warning - without using the other runtime loading flags (-brtl),
 
8894
        # -berok will link without error, but may produce a broken library.
 
8895
        allow_undefined_flag='-berok'
 
8896
       # Determine the default libpath from the value encoded in an empty executable.
 
8897
       cat >conftest.$ac_ext <<_ACEOF
 
8898
/* confdefs.h.  */
 
8899
_ACEOF
 
8900
cat confdefs.h >>conftest.$ac_ext
 
8901
cat >>conftest.$ac_ext <<_ACEOF
 
8902
/* end confdefs.h.  */
 
8903
 
 
8904
int
 
8905
main ()
 
8906
{
 
8907
 
 
8908
  ;
 
8909
  return 0;
 
8910
}
 
8911
_ACEOF
 
8912
rm -f conftest.$ac_objext conftest$ac_exeext
 
8913
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8914
  (eval $ac_link) 2>conftest.er1
 
8915
  ac_status=$?
 
8916
  grep -v '^ *+' conftest.er1 >conftest.err
 
8917
  rm -f conftest.er1
 
8918
  cat conftest.err >&5
 
8919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8920
  (exit $ac_status); } &&
 
8921
         { ac_try='test -z "$ac_c_werror_flag"
 
8922
                         || test ! -s conftest.err'
 
8923
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8924
  (eval $ac_try) 2>&5
 
8925
  ac_status=$?
 
8926
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8927
  (exit $ac_status); }; } &&
 
8928
         { ac_try='test -s conftest$ac_exeext'
 
8929
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8930
  (eval $ac_try) 2>&5
 
8931
  ac_status=$?
 
8932
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8933
  (exit $ac_status); }; }; then
 
8934
 
 
8935
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8936
}'`
 
8937
# Check for a 64-bit object if we didn't find anything.
 
8938
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8939
}'`; fi
 
8940
else
 
8941
  echo "$as_me: failed program was:" >&5
 
8942
sed 's/^/| /' conftest.$ac_ext >&5
 
8943
 
 
8944
fi
 
8945
rm -f conftest.err conftest.$ac_objext \
 
8946
      conftest$ac_exeext conftest.$ac_ext
 
8947
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
8948
 
 
8949
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
8950
        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
8951
       else
 
8952
        if test "$host_cpu" = ia64; then
 
8953
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
8954
          allow_undefined_flag="-z nodefs"
 
8955
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
8956
        else
 
8957
         # Determine the default libpath from the value encoded in an empty executable.
 
8958
         cat >conftest.$ac_ext <<_ACEOF
 
8959
/* confdefs.h.  */
 
8960
_ACEOF
 
8961
cat confdefs.h >>conftest.$ac_ext
 
8962
cat >>conftest.$ac_ext <<_ACEOF
 
8963
/* end confdefs.h.  */
 
8964
 
 
8965
int
 
8966
main ()
 
8967
{
 
8968
 
 
8969
  ;
 
8970
  return 0;
 
8971
}
 
8972
_ACEOF
 
8973
rm -f conftest.$ac_objext conftest$ac_exeext
 
8974
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
8975
  (eval $ac_link) 2>conftest.er1
 
8976
  ac_status=$?
 
8977
  grep -v '^ *+' conftest.er1 >conftest.err
 
8978
  rm -f conftest.er1
 
8979
  cat conftest.err >&5
 
8980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8981
  (exit $ac_status); } &&
 
8982
         { ac_try='test -z "$ac_c_werror_flag"
 
8983
                         || test ! -s conftest.err'
 
8984
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8985
  (eval $ac_try) 2>&5
 
8986
  ac_status=$?
 
8987
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8988
  (exit $ac_status); }; } &&
 
8989
         { ac_try='test -s conftest$ac_exeext'
 
8990
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
8991
  (eval $ac_try) 2>&5
 
8992
  ac_status=$?
 
8993
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8994
  (exit $ac_status); }; }; then
 
8995
 
 
8996
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
8997
}'`
 
8998
# Check for a 64-bit object if we didn't find anything.
 
8999
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
9000
}'`; fi
 
9001
else
 
9002
  echo "$as_me: failed program was:" >&5
 
9003
sed 's/^/| /' conftest.$ac_ext >&5
 
9004
 
 
9005
fi
 
9006
rm -f conftest.err conftest.$ac_objext \
 
9007
      conftest$ac_exeext conftest.$ac_ext
 
9008
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
9009
 
 
9010
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
9011
          # Warning - without using the other run time loading flags,
 
9012
          # -berok will link without error, but may produce a broken library.
 
9013
          no_undefined_flag=' ${wl}-bernotok'
 
9014
          allow_undefined_flag=' ${wl}-berok'
 
9015
          # -bexpall does not export symbols beginning with underscore (_)
 
9016
          always_export_symbols=yes
 
9017
          # Exported symbols can be pulled into shared objects from archives
 
9018
          whole_archive_flag_spec=' '
 
9019
          archive_cmds_need_lc=yes
 
9020
          # This is similar to how AIX traditionally builds it's shared libraries.
 
9021
          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
9022
        fi
 
9023
      fi
 
9024
      ;;
 
9025
 
 
9026
    amigaos*)
 
9027
      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)'
 
9028
      hardcode_libdir_flag_spec='-L$libdir'
 
9029
      hardcode_minus_L=yes
 
9030
      # see comment about different semantics on the GNU ld section
 
9031
      ld_shlibs=no
 
9032
      ;;
 
9033
 
 
9034
    bsdi[45]*)
 
9035
      export_dynamic_flag_spec=-rdynamic
 
9036
      ;;
 
9037
 
 
9038
    cygwin* | mingw* | pw32*)
 
9039
      # When not using gcc, we currently assume that we are using
 
9040
      # Microsoft Visual C++.
 
9041
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
9042
      # no search path for DLLs.
 
9043
      hardcode_libdir_flag_spec=' '
 
9044
      allow_undefined_flag=unsupported
 
9045
      # Tell ltmain to make .lib files, not .a files.
 
9046
      libext=lib
 
9047
      # Tell ltmain to make .dll files, not .so files.
 
9048
      shrext_cmds=".dll"
 
9049
      # FIXME: Setting linknames here is a bad hack.
 
9050
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
9051
      # The linker will automatically build a .lib file if we build a DLL.
 
9052
      old_archive_From_new_cmds='true'
 
9053
      # FIXME: Should let the user specify the lib program.
 
9054
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
9055
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
9056
      enable_shared_with_static_runtimes=yes
 
9057
      ;;
 
9058
 
 
9059
    darwin* | rhapsody*)
 
9060
      case "$host_os" in
 
9061
        rhapsody* | darwin1.[012])
 
9062
         allow_undefined_flag='${wl}-undefined ${wl}suppress'
 
9063
         ;;
 
9064
       *) # Darwin 1.3 on
 
9065
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9066
           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9067
         else
 
9068
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
9069
             10.[012])
 
9070
               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
9071
               ;;
 
9072
             10.*)
 
9073
               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
 
9074
               ;;
 
9075
           esac
 
9076
         fi
 
9077
         ;;
 
9078
      esac
 
9079
      archive_cmds_need_lc=no
 
9080
      hardcode_direct=no
 
9081
      hardcode_automatic=yes
 
9082
      hardcode_shlibpath_var=unsupported
 
9083
      whole_archive_flag_spec=''
 
9084
      link_all_deplibs=yes
 
9085
    if test "$GCC" = yes ; then
 
9086
        output_verbose_link_cmd='echo'
 
9087
        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
9088
      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9089
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9090
      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9091
      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9092
    else
 
9093
      case "$cc_basename" in
 
9094
        xlc*)
 
9095
         output_verbose_link_cmd='echo'
 
9096
         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
9097
         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9098
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9099
         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9100
          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
9101
          ;;
 
9102
       *)
 
9103
         ld_shlibs=no
 
9104
          ;;
 
9105
      esac
 
9106
    fi
 
9107
      ;;
 
9108
 
 
9109
    dgux*)
 
9110
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9111
      hardcode_libdir_flag_spec='-L$libdir'
 
9112
      hardcode_shlibpath_var=no
 
9113
      ;;
 
9114
 
 
9115
    freebsd1*)
 
9116
      ld_shlibs=no
 
9117
      ;;
 
9118
 
 
9119
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
9120
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
9121
    # does not break anything, and helps significantly (at the cost of a little
 
9122
    # extra space).
 
9123
    freebsd2.2*)
 
9124
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
9125
      hardcode_libdir_flag_spec='-R$libdir'
 
9126
      hardcode_direct=yes
 
9127
      hardcode_shlibpath_var=no
 
9128
      ;;
 
9129
 
 
9130
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
9131
    freebsd2*)
 
9132
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9133
      hardcode_direct=yes
 
9134
      hardcode_minus_L=yes
 
9135
      hardcode_shlibpath_var=no
 
9136
      ;;
 
9137
 
 
9138
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
9139
    freebsd* | kfreebsd*-gnu)
 
9140
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
9141
      hardcode_libdir_flag_spec='-R$libdir'
 
9142
      hardcode_direct=yes
 
9143
      hardcode_shlibpath_var=no
 
9144
      ;;
 
9145
 
 
9146
    hpux9*)
 
9147
      if test "$GCC" = yes; then
 
9148
        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
9149
      else
 
9150
        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'
 
9151
      fi
 
9152
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9153
      hardcode_libdir_separator=:
 
9154
      hardcode_direct=yes
 
9155
 
 
9156
      # hardcode_minus_L: Not really in the search PATH,
 
9157
      # but as the default location of the library.
 
9158
      hardcode_minus_L=yes
 
9159
      export_dynamic_flag_spec='${wl}-E'
 
9160
      ;;
 
9161
 
 
9162
    hpux10* | hpux11*)
 
9163
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
9164
        case "$host_cpu" in
 
9165
        hppa*64*|ia64*)
 
9166
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9167
          ;;
 
9168
        *)
 
9169
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
9170
          ;;
 
9171
        esac
 
9172
      else
 
9173
        case "$host_cpu" in
 
9174
        hppa*64*|ia64*)
 
9175
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9176
          ;;
 
9177
        *)
 
9178
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
9179
          ;;
 
9180
        esac
 
9181
      fi
 
9182
      if test "$with_gnu_ld" = no; then
 
9183
        case "$host_cpu" in
 
9184
        hppa*64*)
 
9185
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9186
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
9187
          hardcode_libdir_separator=:
 
9188
          hardcode_direct=no
 
9189
          hardcode_shlibpath_var=no
 
9190
          ;;
 
9191
        ia64*)
 
9192
          hardcode_libdir_flag_spec='-L$libdir'
 
9193
          hardcode_direct=no
 
9194
          hardcode_shlibpath_var=no
 
9195
 
 
9196
          # hardcode_minus_L: Not really in the search PATH,
 
9197
          # but as the default location of the library.
 
9198
          hardcode_minus_L=yes
 
9199
          ;;
 
9200
        *)
 
9201
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
9202
          hardcode_libdir_separator=:
 
9203
          hardcode_direct=yes
 
9204
          export_dynamic_flag_spec='${wl}-E'
 
9205
 
 
9206
          # hardcode_minus_L: Not really in the search PATH,
 
9207
          # but as the default location of the library.
 
9208
          hardcode_minus_L=yes
 
9209
          ;;
 
9210
        esac
 
9211
      fi
 
9212
      ;;
 
9213
 
 
9214
    irix5* | irix6* | nonstopux*)
 
9215
      if test "$GCC" = yes; then
 
9216
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9217
      else
 
9218
        archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9219
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
9220
      fi
 
9221
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9222
      hardcode_libdir_separator=:
 
9223
      link_all_deplibs=yes
 
9224
      ;;
 
9225
 
 
9226
    netbsd*)
 
9227
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9228
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
9229
      else
 
9230
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
9231
      fi
 
9232
      hardcode_libdir_flag_spec='-R$libdir'
 
9233
      hardcode_direct=yes
 
9234
      hardcode_shlibpath_var=no
 
9235
      ;;
 
9236
 
 
9237
    newsos6)
 
9238
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9239
      hardcode_direct=yes
 
9240
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9241
      hardcode_libdir_separator=:
 
9242
      hardcode_shlibpath_var=no
 
9243
      ;;
 
9244
 
 
9245
    openbsd*)
 
9246
      hardcode_direct=yes
 
9247
      hardcode_shlibpath_var=no
 
9248
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9249
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9250
        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
9251
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9252
        export_dynamic_flag_spec='${wl}-E'
 
9253
      else
 
9254
       case $host_os in
 
9255
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
9256
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
9257
           hardcode_libdir_flag_spec='-R$libdir'
 
9258
           ;;
 
9259
         *)
 
9260
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
9261
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
9262
           ;;
 
9263
       esac
 
9264
      fi
 
9265
      ;;
 
9266
 
 
9267
    os2*)
 
9268
      hardcode_libdir_flag_spec='-L$libdir'
 
9269
      hardcode_minus_L=yes
 
9270
      allow_undefined_flag=unsupported
 
9271
      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'
 
9272
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
9273
      ;;
 
9274
 
 
9275
    osf3*)
 
9276
      if test "$GCC" = yes; then
 
9277
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9278
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9279
      else
 
9280
        allow_undefined_flag=' -expect_unresolved \*'
 
9281
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9282
      fi
 
9283
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9284
      hardcode_libdir_separator=:
 
9285
      ;;
 
9286
 
 
9287
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
9288
      if test "$GCC" = yes; then
 
9289
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
9290
        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
9291
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
9292
      else
 
9293
        allow_undefined_flag=' -expect_unresolved \*'
 
9294
        archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
9295
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
9296
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
9297
 
 
9298
        # Both c and cxx compiler support -rpath directly
 
9299
        hardcode_libdir_flag_spec='-rpath $libdir'
 
9300
      fi
 
9301
      hardcode_libdir_separator=:
 
9302
      ;;
 
9303
 
 
9304
    sco3.2v5*)
 
9305
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9306
      hardcode_shlibpath_var=no
 
9307
      export_dynamic_flag_spec='${wl}-Bexport'
 
9308
      runpath_var=LD_RUN_PATH
 
9309
      hardcode_runpath_var=yes
 
9310
      ;;
 
9311
 
 
9312
    solaris*)
 
9313
      no_undefined_flag=' -z text'
 
9314
      if test "$GCC" = yes; then
 
9315
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9316
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9317
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
9318
      else
 
9319
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9320
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9321
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9322
      fi
 
9323
      hardcode_libdir_flag_spec='-R$libdir'
 
9324
      hardcode_shlibpath_var=no
 
9325
      case $host_os in
 
9326
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
9327
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
9328
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
9329
      esac
 
9330
      link_all_deplibs=yes
 
9331
      ;;
 
9332
 
 
9333
    sunos4*)
 
9334
      if test "x$host_vendor" = xsequent; then
 
9335
        # Use $CC to link under sequent, because it throws in some extra .o
 
9336
        # files that make .init and .fini sections work.
 
9337
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
9338
      else
 
9339
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
9340
      fi
 
9341
      hardcode_libdir_flag_spec='-L$libdir'
 
9342
      hardcode_direct=yes
 
9343
      hardcode_minus_L=yes
 
9344
      hardcode_shlibpath_var=no
 
9345
      ;;
 
9346
 
 
9347
    sysv4)
 
9348
      case $host_vendor in
 
9349
        sni)
 
9350
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9351
          hardcode_direct=yes # is this really true???
 
9352
        ;;
 
9353
        siemens)
 
9354
          ## LD is ld it makes a PLAMLIB
 
9355
          ## CC just makes a GrossModule.
 
9356
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9357
          reload_cmds='$CC -r -o $output$reload_objs'
 
9358
          hardcode_direct=no
 
9359
        ;;
 
9360
        motorola)
 
9361
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9362
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
9363
        ;;
 
9364
      esac
 
9365
      runpath_var='LD_RUN_PATH'
 
9366
      hardcode_shlibpath_var=no
 
9367
      ;;
 
9368
 
 
9369
    sysv4.3*)
 
9370
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9371
      hardcode_shlibpath_var=no
 
9372
      export_dynamic_flag_spec='-Bexport'
 
9373
      ;;
 
9374
 
 
9375
    sysv4*MP*)
 
9376
      if test -d /usr/nec; then
 
9377
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9378
        hardcode_shlibpath_var=no
 
9379
        runpath_var=LD_RUN_PATH
 
9380
        hardcode_runpath_var=yes
 
9381
        ld_shlibs=yes
 
9382
      fi
 
9383
      ;;
 
9384
 
 
9385
    sysv4.2uw2*)
 
9386
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
9387
      hardcode_direct=yes
 
9388
      hardcode_minus_L=no
 
9389
      hardcode_shlibpath_var=no
 
9390
      hardcode_runpath_var=yes
 
9391
      runpath_var=LD_RUN_PATH
 
9392
      ;;
 
9393
 
 
9394
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
9395
      no_undefined_flag='${wl}-z ${wl}text'
 
9396
      if test "$GCC" = yes; then
 
9397
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9398
      else
 
9399
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
9400
      fi
 
9401
      runpath_var='LD_RUN_PATH'
 
9402
      hardcode_shlibpath_var=no
 
9403
      ;;
 
9404
 
 
9405
    sysv5*)
 
9406
      no_undefined_flag=' -z text'
 
9407
      # $CC -shared without GNU ld will not create a library from C++
 
9408
      # object files and a static libstdc++, better avoid it by now
 
9409
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9410
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
9411
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
9412
      hardcode_libdir_flag_spec=
 
9413
      hardcode_shlibpath_var=no
 
9414
      runpath_var='LD_RUN_PATH'
 
9415
      ;;
 
9416
 
 
9417
    uts4*)
 
9418
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
9419
      hardcode_libdir_flag_spec='-L$libdir'
 
9420
      hardcode_shlibpath_var=no
 
9421
      ;;
 
9422
 
 
9423
    *)
 
9424
      ld_shlibs=no
 
9425
      ;;
 
9426
    esac
 
9427
  fi
 
9428
 
 
9429
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5420
9430
echo "${ECHO_T}$ld_shlibs" >&6
5421
9431
test "$ld_shlibs" = no && can_build_shared=no
5422
9432
 
5423
 
# Check hardcoding attributes.
5424
 
echo "$as_me:5424: checking how to hardcode library paths into programs" >&5
 
9433
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
9434
if test "$GCC" = yes; then
 
9435
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
9436
fi
 
9437
 
 
9438
#
 
9439
# Do we need to explicitly link libc?
 
9440
#
 
9441
case "x$archive_cmds_need_lc" in
 
9442
x|xyes)
 
9443
  # Assume -lc should be added
 
9444
  archive_cmds_need_lc=yes
 
9445
 
 
9446
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
9447
    case $archive_cmds in
 
9448
    *'~'*)
 
9449
      # FIXME: we may have to deal with multi-command sequences.
 
9450
      ;;
 
9451
    '$CC '*)
 
9452
      # Test whether the compiler implicitly links with -lc since on some
 
9453
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
9454
      # to ld, don't add -lc before -lgcc.
 
9455
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
9456
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
9457
      $rm conftest*
 
9458
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
9459
 
 
9460
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9461
  (eval $ac_compile) 2>&5
 
9462
  ac_status=$?
 
9463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9464
  (exit $ac_status); } 2>conftest.err; then
 
9465
        soname=conftest
 
9466
        lib=conftest
 
9467
        libobjs=conftest.$ac_objext
 
9468
        deplibs=
 
9469
        wl=$lt_prog_compiler_wl
 
9470
        compiler_flags=-v
 
9471
        linker_flags=-v
 
9472
        verstring=
 
9473
        output_objdir=.
 
9474
        libname=conftest
 
9475
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
9476
        allow_undefined_flag=
 
9477
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
9478
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
9479
  ac_status=$?
 
9480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9481
  (exit $ac_status); }
 
9482
        then
 
9483
          archive_cmds_need_lc=no
 
9484
        else
 
9485
          archive_cmds_need_lc=yes
 
9486
        fi
 
9487
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
9488
      else
 
9489
        cat conftest.err 1>&5
 
9490
      fi
 
9491
      $rm conftest*
 
9492
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
9493
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
9494
      ;;
 
9495
    esac
 
9496
  fi
 
9497
  ;;
 
9498
esac
 
9499
 
 
9500
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
9501
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
9502
library_names_spec=
 
9503
libname_spec='lib$name'
 
9504
soname_spec=
 
9505
shrext_cmds=".so"
 
9506
postinstall_cmds=
 
9507
postuninstall_cmds=
 
9508
finish_cmds=
 
9509
finish_eval=
 
9510
shlibpath_var=
 
9511
shlibpath_overrides_runpath=unknown
 
9512
version_type=none
 
9513
dynamic_linker="$host_os ld.so"
 
9514
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
9515
if test "$GCC" = yes; then
 
9516
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9517
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
9518
    # if the path contains ";" then we assume it to be the separator
 
9519
    # otherwise default to the standard path separator (i.e. ":") - it is
 
9520
    # assumed that no part of a normal pathname contains ";" but that should
 
9521
    # okay in the real world where ";" in dirpaths is itself problematic.
 
9522
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9523
  else
 
9524
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9525
  fi
 
9526
else
 
9527
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
9528
fi
 
9529
need_lib_prefix=unknown
 
9530
hardcode_into_libs=no
 
9531
 
 
9532
# when you set need_version to no, make sure it does not cause -set_version
 
9533
# flags to be left without arguments
 
9534
need_version=unknown
 
9535
 
 
9536
case $host_os in
 
9537
aix3*)
 
9538
  version_type=linux
 
9539
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
9540
  shlibpath_var=LIBPATH
 
9541
 
 
9542
  # AIX 3 has no versioning support, so we append a major version to the name.
 
9543
  soname_spec='${libname}${release}${shared_ext}$major'
 
9544
  ;;
 
9545
 
 
9546
aix4* | aix5*)
 
9547
  version_type=linux
 
9548
  need_lib_prefix=no
 
9549
  need_version=no
 
9550
  hardcode_into_libs=yes
 
9551
  if test "$host_cpu" = ia64; then
 
9552
    # AIX 5 supports IA64
 
9553
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
9554
    shlibpath_var=LD_LIBRARY_PATH
 
9555
  else
 
9556
    # With GCC up to 2.95.x, collect2 would create an import file
 
9557
    # for dependence libraries.  The import file would start with
 
9558
    # the line `#! .'.  This would cause the generated library to
 
9559
    # depend on `.', always an invalid library.  This was fixed in
 
9560
    # development snapshots of GCC prior to 3.0.
 
9561
    case $host_os in
 
9562
      aix4 | aix4.[01] | aix4.[01].*)
 
9563
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
9564
           echo ' yes '
 
9565
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
9566
        :
 
9567
      else
 
9568
        can_build_shared=no
 
9569
      fi
 
9570
      ;;
 
9571
    esac
 
9572
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
9573
    # soname into executable. Probably we can add versioning support to
 
9574
    # collect2, so additional links can be useful in future.
 
9575
    if test "$aix_use_runtimelinking" = yes; then
 
9576
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
9577
      # instead of lib<name>.a to let people know that these are not
 
9578
      # typical AIX shared libraries.
 
9579
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9580
    else
 
9581
      # We preserve .a as extension for shared libraries through AIX4.2
 
9582
      # and later when we are not doing run time linking.
 
9583
      library_names_spec='${libname}${release}.a $libname.a'
 
9584
      soname_spec='${libname}${release}${shared_ext}$major'
 
9585
    fi
 
9586
    shlibpath_var=LIBPATH
 
9587
  fi
 
9588
  ;;
 
9589
 
 
9590
amigaos*)
 
9591
  library_names_spec='$libname.ixlibrary $libname.a'
 
9592
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
9593
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
9594
  ;;
 
9595
 
 
9596
beos*)
 
9597
  library_names_spec='${libname}${shared_ext}'
 
9598
  dynamic_linker="$host_os ld.so"
 
9599
  shlibpath_var=LIBRARY_PATH
 
9600
  ;;
 
9601
 
 
9602
bsdi[45]*)
 
9603
  version_type=linux
 
9604
  need_version=no
 
9605
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9606
  soname_spec='${libname}${release}${shared_ext}$major'
 
9607
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
9608
  shlibpath_var=LD_LIBRARY_PATH
 
9609
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
9610
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
9611
  # the default ld.so.conf also contains /usr/contrib/lib and
 
9612
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
9613
  # libtool to hard-code these into programs
 
9614
  ;;
 
9615
 
 
9616
cygwin* | mingw* | pw32*)
 
9617
  version_type=windows
 
9618
  shrext_cmds=".dll"
 
9619
  need_version=no
 
9620
  need_lib_prefix=no
 
9621
 
 
9622
  case $GCC,$host_os in
 
9623
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
9624
    library_names_spec='$libname.dll.a'
 
9625
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
9626
    postinstall_cmds='base_file=`basename \${file}`~
 
9627
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
9628
      dldir=$destdir/`dirname \$dlpath`~
 
9629
      test -d \$dldir || mkdir -p \$dldir~
 
9630
      $install_prog $dir/$dlname \$dldir/$dlname'
 
9631
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
9632
      dlpath=$dir/\$dldll~
 
9633
       $rm \$dlpath'
 
9634
    shlibpath_overrides_runpath=yes
 
9635
 
 
9636
    case $host_os in
 
9637
    cygwin*)
 
9638
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
9639
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9640
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
9641
      ;;
 
9642
    mingw*)
 
9643
      # MinGW DLLs use traditional 'lib' prefix
 
9644
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
9645
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
9646
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
9647
        # It is most probably a Windows format PATH printed by
 
9648
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
9649
        # path with ; separators, and with drive letters. We can handle the
 
9650
        # drive letters (cygwin fileutils understands them), so leave them,
 
9651
        # especially as we might pass files found there to a mingw objdump,
 
9652
        # which wouldn't understand a cygwinified path. Ahh.
 
9653
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
9654
      else
 
9655
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
9656
      fi
 
9657
      ;;
 
9658
    pw32*)
 
9659
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
9660
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
9661
      ;;
 
9662
    esac
 
9663
    ;;
 
9664
 
 
9665
  *)
 
9666
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
9667
    ;;
 
9668
  esac
 
9669
  dynamic_linker='Win32 ld.exe'
 
9670
  # FIXME: first we should search . and the directory the executable is in
 
9671
  shlibpath_var=PATH
 
9672
  ;;
 
9673
 
 
9674
darwin* | rhapsody*)
 
9675
  dynamic_linker="$host_os dyld"
 
9676
  version_type=darwin
 
9677
  need_lib_prefix=no
 
9678
  need_version=no
 
9679
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
9680
  soname_spec='${libname}${release}${major}$shared_ext'
 
9681
  shlibpath_overrides_runpath=yes
 
9682
  shlibpath_var=DYLD_LIBRARY_PATH
 
9683
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
9684
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
9685
  if test "$GCC" = yes; then
 
9686
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
9687
  else
 
9688
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
9689
  fi
 
9690
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
9691
  ;;
 
9692
 
 
9693
dgux*)
 
9694
  version_type=linux
 
9695
  need_lib_prefix=no
 
9696
  need_version=no
 
9697
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
9698
  soname_spec='${libname}${release}${shared_ext}$major'
 
9699
  shlibpath_var=LD_LIBRARY_PATH
 
9700
  ;;
 
9701
 
 
9702
freebsd1*)
 
9703
  dynamic_linker=no
 
9704
  ;;
 
9705
 
 
9706
kfreebsd*-gnu)
 
9707
  version_type=linux
 
9708
  need_lib_prefix=no
 
9709
  need_version=no
 
9710
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9711
  soname_spec='${libname}${release}${shared_ext}$major'
 
9712
  shlibpath_var=LD_LIBRARY_PATH
 
9713
  shlibpath_overrides_runpath=no
 
9714
  hardcode_into_libs=yes
 
9715
  dynamic_linker='GNU ld.so'
 
9716
  ;;
 
9717
 
 
9718
freebsd*)
 
9719
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
9720
  version_type=freebsd-$objformat
 
9721
  case $version_type in
 
9722
    freebsd-elf*)
 
9723
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9724
      need_version=no
 
9725
      need_lib_prefix=no
 
9726
      ;;
 
9727
    freebsd-*)
 
9728
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
9729
      need_version=yes
 
9730
      ;;
 
9731
  esac
 
9732
  shlibpath_var=LD_LIBRARY_PATH
 
9733
  case $host_os in
 
9734
  freebsd2*)
 
9735
    shlibpath_overrides_runpath=yes
 
9736
    ;;
 
9737
  freebsd3.01* | freebsdelf3.01*)
 
9738
    shlibpath_overrides_runpath=yes
 
9739
    hardcode_into_libs=yes
 
9740
    ;;
 
9741
  *) # from 3.2 on
 
9742
    shlibpath_overrides_runpath=no
 
9743
    hardcode_into_libs=yes
 
9744
    ;;
 
9745
  esac
 
9746
  ;;
 
9747
 
 
9748
gnu*)
 
9749
  version_type=linux
 
9750
  need_lib_prefix=no
 
9751
  need_version=no
 
9752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
9753
  soname_spec='${libname}${release}${shared_ext}$major'
 
9754
  shlibpath_var=LD_LIBRARY_PATH
 
9755
  hardcode_into_libs=yes
 
9756
  ;;
 
9757
 
 
9758
hpux9* | hpux10* | hpux11*)
 
9759
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
9760
  # link against other versions.
 
9761
  version_type=sunos
 
9762
  need_lib_prefix=no
 
9763
  need_version=no
 
9764
  case "$host_cpu" in
 
9765
  ia64*)
 
9766
    shrext_cmds='.so'
 
9767
    hardcode_into_libs=yes
 
9768
    dynamic_linker="$host_os dld.so"
 
9769
    shlibpath_var=LD_LIBRARY_PATH
 
9770
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9771
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9772
    soname_spec='${libname}${release}${shared_ext}$major'
 
9773
    if test "X$HPUX_IA64_MODE" = X32; then
 
9774
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
9775
    else
 
9776
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
9777
    fi
 
9778
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9779
    ;;
 
9780
   hppa*64*)
 
9781
     shrext_cmds='.sl'
 
9782
     hardcode_into_libs=yes
 
9783
     dynamic_linker="$host_os dld.sl"
 
9784
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
9785
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
9786
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9787
     soname_spec='${libname}${release}${shared_ext}$major'
 
9788
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
9789
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
9790
     ;;
 
9791
   *)
 
9792
    shrext_cmds='.sl'
 
9793
    dynamic_linker="$host_os dld.sl"
 
9794
    shlibpath_var=SHLIB_PATH
 
9795
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
9796
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9797
    soname_spec='${libname}${release}${shared_ext}$major'
 
9798
    ;;
 
9799
  esac
 
9800
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
9801
  postinstall_cmds='chmod 555 $lib'
 
9802
  ;;
 
9803
 
 
9804
irix5* | irix6* | nonstopux*)
 
9805
  case $host_os in
 
9806
    nonstopux*) version_type=nonstopux ;;
 
9807
    *)
 
9808
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
9809
                version_type=linux
 
9810
        else
 
9811
                version_type=irix
 
9812
        fi ;;
 
9813
  esac
 
9814
  need_lib_prefix=no
 
9815
  need_version=no
 
9816
  soname_spec='${libname}${release}${shared_ext}$major'
 
9817
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
9818
  case $host_os in
 
9819
  irix5* | nonstopux*)
 
9820
    libsuff= shlibsuff=
 
9821
    ;;
 
9822
  *)
 
9823
    case $LD in # libtool.m4 will add one of these switches to LD
 
9824
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
9825
      libsuff= shlibsuff= libmagic=32-bit;;
 
9826
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
9827
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
9828
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
9829
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
9830
    *) libsuff= shlibsuff= libmagic=never-match;;
 
9831
    esac
 
9832
    ;;
 
9833
  esac
 
9834
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
9835
  shlibpath_overrides_runpath=no
 
9836
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
9837
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
9838
  hardcode_into_libs=yes
 
9839
  ;;
 
9840
 
 
9841
# No shared lib support for Linux oldld, aout, or coff.
 
9842
linux*oldld* | linux*aout* | linux*coff*)
 
9843
  dynamic_linker=no
 
9844
  ;;
 
9845
 
 
9846
# This must be Linux ELF.
 
9847
linux*)
 
9848
  version_type=linux
 
9849
  need_lib_prefix=no
 
9850
  need_version=no
 
9851
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9852
  soname_spec='${libname}${release}${shared_ext}$major'
 
9853
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
9854
  shlibpath_var=LD_LIBRARY_PATH
 
9855
  shlibpath_overrides_runpath=no
 
9856
  # This implies no fast_install, which is unacceptable.
 
9857
  # Some rework will be needed to allow for fast_install
 
9858
  # before this can be enabled.
 
9859
  hardcode_into_libs=yes
 
9860
 
 
9861
  # find out which ABI we are using
 
9862
  libsuff=
 
9863
  case "$host_cpu" in
 
9864
  x86_64*|s390x*|powerpc64*)
 
9865
    echo '#line 9865 "configure"' > conftest.$ac_ext
 
9866
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
9867
  (eval $ac_compile) 2>&5
 
9868
  ac_status=$?
 
9869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9870
  (exit $ac_status); }; then
 
9871
      case `/usr/bin/file conftest.$ac_objext` in
 
9872
      *64-bit*)
 
9873
        libsuff=64
 
9874
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
9875
        ;;
 
9876
      esac
 
9877
    fi
 
9878
    rm -rf conftest*
 
9879
    ;;
 
9880
  esac
 
9881
 
 
9882
  # Append ld.so.conf contents to the search path
 
9883
  if test -f /etc/ld.so.conf; then
 
9884
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
9885
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
9886
  fi
 
9887
 
 
9888
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
9889
  # powerpc, because MkLinux only supported shared libraries with the
 
9890
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
9891
  # most powerpc-linux boxes support dynamic linking these days and
 
9892
  # people can always --disable-shared, the test was removed, and we
 
9893
  # assume the GNU/Linux dynamic linker is in use.
 
9894
  dynamic_linker='GNU/Linux ld.so'
 
9895
  ;;
 
9896
 
 
9897
knetbsd*-gnu)
 
9898
  version_type=linux
 
9899
  need_lib_prefix=no
 
9900
  need_version=no
 
9901
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9902
  soname_spec='${libname}${release}${shared_ext}$major'
 
9903
  shlibpath_var=LD_LIBRARY_PATH
 
9904
  shlibpath_overrides_runpath=no
 
9905
  hardcode_into_libs=yes
 
9906
  dynamic_linker='GNU ld.so'
 
9907
  ;;
 
9908
 
 
9909
netbsd*)
 
9910
  version_type=sunos
 
9911
  need_lib_prefix=no
 
9912
  need_version=no
 
9913
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
9914
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9915
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9916
    dynamic_linker='NetBSD (a.out) ld.so'
 
9917
  else
 
9918
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
9919
    soname_spec='${libname}${release}${shared_ext}$major'
 
9920
    dynamic_linker='NetBSD ld.elf_so'
 
9921
  fi
 
9922
  shlibpath_var=LD_LIBRARY_PATH
 
9923
  shlibpath_overrides_runpath=yes
 
9924
  hardcode_into_libs=yes
 
9925
  ;;
 
9926
 
 
9927
newsos6)
 
9928
  version_type=linux
 
9929
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9930
  shlibpath_var=LD_LIBRARY_PATH
 
9931
  shlibpath_overrides_runpath=yes
 
9932
  ;;
 
9933
 
 
9934
nto-qnx*)
 
9935
  version_type=linux
 
9936
  need_lib_prefix=no
 
9937
  need_version=no
 
9938
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9939
  soname_spec='${libname}${release}${shared_ext}$major'
 
9940
  shlibpath_var=LD_LIBRARY_PATH
 
9941
  shlibpath_overrides_runpath=yes
 
9942
  ;;
 
9943
 
 
9944
openbsd*)
 
9945
  version_type=sunos
 
9946
  need_lib_prefix=no
 
9947
  need_version=no
 
9948
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
9949
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
9950
  shlibpath_var=LD_LIBRARY_PATH
 
9951
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
9952
    case $host_os in
 
9953
      openbsd2.[89] | openbsd2.[89].*)
 
9954
        shlibpath_overrides_runpath=no
 
9955
        ;;
 
9956
      *)
 
9957
        shlibpath_overrides_runpath=yes
 
9958
        ;;
 
9959
      esac
 
9960
  else
 
9961
    shlibpath_overrides_runpath=yes
 
9962
  fi
 
9963
  ;;
 
9964
 
 
9965
os2*)
 
9966
  libname_spec='$name'
 
9967
  shrext_cmds=".dll"
 
9968
  need_lib_prefix=no
 
9969
  library_names_spec='$libname${shared_ext} $libname.a'
 
9970
  dynamic_linker='OS/2 ld.exe'
 
9971
  shlibpath_var=LIBPATH
 
9972
  ;;
 
9973
 
 
9974
osf3* | osf4* | osf5*)
 
9975
  version_type=osf
 
9976
  need_lib_prefix=no
 
9977
  need_version=no
 
9978
  soname_spec='${libname}${release}${shared_ext}$major'
 
9979
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9980
  shlibpath_var=LD_LIBRARY_PATH
 
9981
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
9982
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
9983
  ;;
 
9984
 
 
9985
sco3.2v5*)
 
9986
  version_type=osf
 
9987
  soname_spec='${libname}${release}${shared_ext}$major'
 
9988
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9989
  shlibpath_var=LD_LIBRARY_PATH
 
9990
  ;;
 
9991
 
 
9992
solaris*)
 
9993
  version_type=linux
 
9994
  need_lib_prefix=no
 
9995
  need_version=no
 
9996
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9997
  soname_spec='${libname}${release}${shared_ext}$major'
 
9998
  shlibpath_var=LD_LIBRARY_PATH
 
9999
  shlibpath_overrides_runpath=yes
 
10000
  hardcode_into_libs=yes
 
10001
  # ldd complains unless libraries are executable
 
10002
  postinstall_cmds='chmod +x $lib'
 
10003
  ;;
 
10004
 
 
10005
sunos4*)
 
10006
  version_type=sunos
 
10007
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
10008
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
10009
  shlibpath_var=LD_LIBRARY_PATH
 
10010
  shlibpath_overrides_runpath=yes
 
10011
  if test "$with_gnu_ld" = yes; then
 
10012
    need_lib_prefix=no
 
10013
  fi
 
10014
  need_version=yes
 
10015
  ;;
 
10016
 
 
10017
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
10018
  version_type=linux
 
10019
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10020
  soname_spec='${libname}${release}${shared_ext}$major'
 
10021
  shlibpath_var=LD_LIBRARY_PATH
 
10022
  case $host_vendor in
 
10023
    sni)
 
10024
      shlibpath_overrides_runpath=no
 
10025
      need_lib_prefix=no
 
10026
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
10027
      runpath_var=LD_RUN_PATH
 
10028
      ;;
 
10029
    siemens)
 
10030
      need_lib_prefix=no
 
10031
      ;;
 
10032
    motorola)
 
10033
      need_lib_prefix=no
 
10034
      need_version=no
 
10035
      shlibpath_overrides_runpath=no
 
10036
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
10037
      ;;
 
10038
  esac
 
10039
  ;;
 
10040
 
 
10041
sysv4*MP*)
 
10042
  if test -d /usr/nec ;then
 
10043
    version_type=linux
 
10044
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
10045
    soname_spec='$libname${shared_ext}.$major'
 
10046
    shlibpath_var=LD_LIBRARY_PATH
 
10047
  fi
 
10048
  ;;
 
10049
 
 
10050
uts4*)
 
10051
  version_type=linux
 
10052
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
10053
  soname_spec='${libname}${release}${shared_ext}$major'
 
10054
  shlibpath_var=LD_LIBRARY_PATH
 
10055
  ;;
 
10056
 
 
10057
*)
 
10058
  dynamic_linker=no
 
10059
  ;;
 
10060
esac
 
10061
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
10062
echo "${ECHO_T}$dynamic_linker" >&6
 
10063
test "$dynamic_linker" = no && can_build_shared=no
 
10064
 
 
10065
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5425
10066
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5426
10067
hardcode_action=
5427
10068
if test -n "$hardcode_libdir_flag_spec" || \
5428
 
   test -n "$runpath_var"; then
 
10069
   test -n "$runpath_var" || \
 
10070
   test "X$hardcode_automatic" = "Xyes" ; then
5429
10071
 
5430
10072
  # We can hardcode non-existant directories.
5431
10073
  if test "$hardcode_direct" != no &&
5432
10074
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
5433
10075
     # have to relink, otherwise we might link with an installed library
5434
10076
     # when we should be linking with a yet-to-be-installed one
5435
 
     ## test "$hardcode_shlibpath_var" != no &&
 
10077
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
5436
10078
     test "$hardcode_minus_L" != no; then
5437
10079
    # Linking always hardcodes the temporary library directory.
5438
10080
    hardcode_action=relink
5445
10087
  # directories.
5446
10088
  hardcode_action=unsupported
5447
10089
fi
5448
 
echo "$as_me:5448: result: $hardcode_action" >&5
 
10090
echo "$as_me:$LINENO: result: $hardcode_action" >&5
5449
10091
echo "${ECHO_T}$hardcode_action" >&6
5450
10092
 
5451
 
striplib=
5452
 
old_striplib=
5453
 
echo "$as_me:5453: checking whether stripping libraries is possible" >&5
5454
 
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5455
 
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5456
 
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5457
 
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5458
 
  echo "$as_me:5458: result: yes" >&5
5459
 
echo "${ECHO_T}yes" >&6
5460
 
else
5461
 
  echo "$as_me:5461: result: no" >&5
5462
 
echo "${ECHO_T}no" >&6
5463
 
fi
5464
 
 
5465
 
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5466
 
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5467
 
 
5468
 
# PORTME Fill in your ld.so characteristics
5469
 
echo "$as_me:5469: checking dynamic linker characteristics" >&5
5470
 
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5471
 
library_names_spec=
5472
 
libname_spec='lib$name'
5473
 
soname_spec=
5474
 
postinstall_cmds=
5475
 
postuninstall_cmds=
5476
 
finish_cmds=
5477
 
finish_eval=
5478
 
shlibpath_var=
5479
 
shlibpath_overrides_runpath=unknown
5480
 
version_type=none
5481
 
dynamic_linker="$host_os ld.so"
5482
 
sys_lib_dlsearch_path_spec="/lib /usr/lib"
5483
 
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5484
 
 
5485
 
case $host_os in
5486
 
aix3*)
5487
 
  version_type=linux
5488
 
  library_names_spec='${libname}${release}.so$versuffix $libname.a'
5489
 
  shlibpath_var=LIBPATH
5490
 
 
5491
 
  # AIX has no versioning support, so we append a major version to the name.
5492
 
  soname_spec='${libname}${release}.so$major'
5493
 
  ;;
5494
 
 
5495
 
aix4* | aix5*)
5496
 
  version_type=linux
5497
 
  if test "$host_cpu" = ia64; then
5498
 
    # AIX 5 supports IA64
5499
 
    library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5500
 
    shlibpath_var=LD_LIBRARY_PATH
5501
 
  else
5502
 
    # With GCC up to 2.95.x, collect2 would create an import file
5503
 
    # for dependence libraries.  The import file would start with
5504
 
    # the line `#! .'.  This would cause the generated library to
5505
 
    # depend on `.', always an invalid library.  This was fixed in
5506
 
    # development snapshots of GCC prior to 3.0.
5507
 
    case $host_os in
5508
 
       aix4 | aix4.[01] | aix4.[01].*)
5509
 
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5510
 
           echo ' yes '
5511
 
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5512
 
        :
5513
 
      else
5514
 
        can_build_shared=no
5515
 
      fi
5516
 
      ;;
5517
 
    esac
5518
 
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5519
 
    # soname into executable. Probably we can add versioning support to
5520
 
    # collect2, so additional links can be useful in future.
5521
 
    if test "$aix_use_runtimelinking" = yes; then
5522
 
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
5523
 
      # lib<name>.a to let people know that these are not typical AIX shared libraries.
5524
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5525
 
    else
5526
 
      # We preserve .a as extension for shared libraries through AIX4.2
5527
 
      # and later when we are not doing run time linking.
5528
 
      library_names_spec='${libname}${release}.a $libname.a'
5529
 
      soname_spec='${libname}${release}.so$major'
5530
 
    fi
5531
 
    shlibpath_var=LIBPATH
5532
 
    deplibs_check_method=pass_all
5533
 
  fi
5534
 
  ;;
5535
 
 
5536
 
amigaos*)
5537
 
  library_names_spec='$libname.ixlibrary $libname.a'
5538
 
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
5539
 
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5540
 
  ;;
5541
 
 
5542
 
beos*)
5543
 
  library_names_spec='${libname}.so'
5544
 
  dynamic_linker="$host_os ld.so"
5545
 
  shlibpath_var=LIBRARY_PATH
5546
 
  ;;
5547
 
 
5548
 
bsdi4*)
5549
 
  version_type=linux
5550
 
  need_version=no
5551
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5552
 
  soname_spec='${libname}${release}.so$major'
5553
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5554
 
  shlibpath_var=LD_LIBRARY_PATH
5555
 
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5556
 
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5557
 
  export_dynamic_flag_spec=-rdynamic
5558
 
  # the default ld.so.conf also contains /usr/contrib/lib and
5559
 
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5560
 
  # libtool to hard-code these into programs
5561
 
  ;;
5562
 
 
5563
 
cygwin* | mingw* | pw32*)
5564
 
  version_type=windows
5565
 
  need_version=no
5566
 
  need_lib_prefix=no
5567
 
  case $GCC,$host_os in
5568
 
  yes,cygwin*)
5569
 
    library_names_spec='$libname.dll.a'
5570
 
    soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5571
 
    postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5572
 
      dldir=$destdir/`dirname \$dlpath`~
5573
 
      test -d \$dldir || mkdir -p \$dldir~
5574
 
      $install_prog .libs/$dlname \$dldir/$dlname'
5575
 
    postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5576
 
      dlpath=$dir/\$dldll~
5577
 
       $rm \$dlpath'
5578
 
    ;;
5579
 
  yes,mingw*)
5580
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5581
 
    sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5582
 
    ;;
5583
 
  yes,pw32*)
5584
 
    library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5585
 
    ;;
5586
 
  *)
5587
 
    library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5588
 
    ;;
5589
 
  esac
5590
 
  dynamic_linker='Win32 ld.exe'
5591
 
  # FIXME: first we should search . and the directory the executable is in
5592
 
  shlibpath_var=PATH
5593
 
  ;;
5594
 
 
5595
 
darwin* | rhapsody*)
5596
 
  dynamic_linker="$host_os dyld"
5597
 
  version_type=darwin
5598
 
  need_lib_prefix=no
5599
 
  need_version=no
5600
 
  # FIXME: Relying on posixy $() will cause problems for
5601
 
  #        cross-compilation, but unfortunately the echo tests do not
5602
 
  #        yet detect zsh echo's removal of \ escapes.
5603
 
  library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5604
 
  soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5605
 
  shlibpath_overrides_runpath=yes
5606
 
  shlibpath_var=DYLD_LIBRARY_PATH
5607
 
  ;;
5608
 
 
5609
 
freebsd1*)
5610
 
  dynamic_linker=no
5611
 
  ;;
5612
 
 
5613
 
freebsd*)
5614
 
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5615
 
  version_type=freebsd-$objformat
5616
 
  case $version_type in
5617
 
    freebsd-elf*)
5618
 
      library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5619
 
      need_version=no
5620
 
      need_lib_prefix=no
5621
 
      ;;
5622
 
    freebsd-*)
5623
 
      library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5624
 
      need_version=yes
5625
 
      ;;
5626
 
  esac
5627
 
  shlibpath_var=LD_LIBRARY_PATH
5628
 
  case $host_os in
5629
 
  freebsd2*)
5630
 
    shlibpath_overrides_runpath=yes
5631
 
    ;;
5632
 
  *)
5633
 
    shlibpath_overrides_runpath=no
5634
 
    hardcode_into_libs=yes
5635
 
    ;;
5636
 
  esac
5637
 
  ;;
5638
 
 
5639
 
gnu*)
5640
 
  version_type=linux
5641
 
  need_lib_prefix=no
5642
 
  need_version=no
5643
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5644
 
  soname_spec='${libname}${release}.so$major'
5645
 
  shlibpath_var=LD_LIBRARY_PATH
5646
 
  hardcode_into_libs=yes
5647
 
  ;;
5648
 
 
5649
 
hpux9* | hpux10* | hpux11*)
5650
 
  # Give a soname corresponding to the major version so that dld.sl refuses to
5651
 
  # link against other versions.
5652
 
  dynamic_linker="$host_os dld.sl"
5653
 
  version_type=sunos
5654
 
  need_lib_prefix=no
5655
 
  need_version=no
5656
 
  shlibpath_var=SHLIB_PATH
5657
 
  shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5658
 
  library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5659
 
  soname_spec='${libname}${release}.sl$major'
5660
 
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
5661
 
  postinstall_cmds='chmod 555 $lib'
5662
 
  ;;
5663
 
 
5664
 
irix5* | irix6*)
5665
 
  version_type=irix
5666
 
  need_lib_prefix=no
5667
 
  need_version=no
5668
 
  soname_spec='${libname}${release}.so$major'
5669
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5670
 
  case $host_os in
5671
 
  irix5*)
5672
 
    libsuff= shlibsuff=
5673
 
    ;;
5674
 
  *)
5675
 
    case $LD in # libtool.m4 will add one of these switches to LD
5676
 
    *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5677
 
    *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5678
 
    *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5679
 
    *) libsuff= shlibsuff= libmagic=never-match;;
5680
 
    esac
5681
 
    ;;
5682
 
  esac
5683
 
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5684
 
  shlibpath_overrides_runpath=no
5685
 
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5686
 
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5687
 
  ;;
5688
 
 
5689
 
# No shared lib support for Linux oldld, aout, or coff.
5690
 
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5691
 
  dynamic_linker=no
5692
 
  ;;
5693
 
 
5694
 
# This must be Linux ELF.
5695
 
linux-gnu*)
5696
 
  version_type=linux
5697
 
  need_lib_prefix=no
5698
 
  need_version=no
5699
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5700
 
  soname_spec='${libname}${release}.so$major'
5701
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5702
 
  shlibpath_var=LD_LIBRARY_PATH
5703
 
  shlibpath_overrides_runpath=no
5704
 
  # This implies no fast_install, which is unacceptable.
5705
 
  # Some rework will be needed to allow for fast_install
5706
 
  # before this can be enabled.
5707
 
  hardcode_into_libs=yes
5708
 
 
5709
 
  # We used to test for /lib/ld.so.1 and disable shared libraries on
5710
 
  # powerpc, because MkLinux only supported shared libraries with the
5711
 
  # GNU dynamic linker.  Since this was broken with cross compilers,
5712
 
  # most powerpc-linux boxes support dynamic linking these days and
5713
 
  # people can always --disable-shared, the test was removed, and we
5714
 
  # assume the GNU/Linux dynamic linker is in use.
5715
 
  dynamic_linker='GNU/Linux ld.so'
5716
 
  ;;
5717
 
 
5718
 
netbsd*)
5719
 
  version_type=sunos
5720
 
  need_lib_prefix=no
5721
 
  need_version=no
5722
 
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5723
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5724
 
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5725
 
    dynamic_linker='NetBSD (a.out) ld.so'
5726
 
  else
5727
 
    library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5728
 
    soname_spec='${libname}${release}.so$major'
5729
 
    dynamic_linker='NetBSD ld.elf_so'
5730
 
  fi
5731
 
  shlibpath_var=LD_LIBRARY_PATH
5732
 
  shlibpath_overrides_runpath=yes
5733
 
  hardcode_into_libs=yes
5734
 
  ;;
5735
 
 
5736
 
newsos6)
5737
 
  version_type=linux
5738
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5739
 
  shlibpath_var=LD_LIBRARY_PATH
5740
 
  shlibpath_overrides_runpath=yes
5741
 
  ;;
5742
 
 
5743
 
openbsd*)
5744
 
  version_type=sunos
5745
 
  if test "$with_gnu_ld" = yes; then
5746
 
    need_lib_prefix=no
5747
 
    need_version=no
5748
 
  fi
5749
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5750
 
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5751
 
  shlibpath_var=LD_LIBRARY_PATH
5752
 
  ;;
5753
 
 
5754
 
os2*)
5755
 
  libname_spec='$name'
5756
 
  need_lib_prefix=no
5757
 
  library_names_spec='$libname.dll $libname.a'
5758
 
  dynamic_linker='OS/2 ld.exe'
5759
 
  shlibpath_var=LIBPATH
5760
 
  ;;
5761
 
 
5762
 
osf3* | osf4* | osf5*)
5763
 
  version_type=osf
5764
 
  need_version=no
5765
 
  soname_spec='${libname}${release}.so'
5766
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5767
 
  shlibpath_var=LD_LIBRARY_PATH
5768
 
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5769
 
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5770
 
  ;;
5771
 
 
5772
 
sco3.2v5*)
5773
 
  version_type=osf
5774
 
  soname_spec='${libname}${release}.so$major'
5775
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5776
 
  shlibpath_var=LD_LIBRARY_PATH
5777
 
  ;;
5778
 
 
5779
 
solaris*)
5780
 
  version_type=linux
5781
 
  need_lib_prefix=no
5782
 
  need_version=no
5783
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5784
 
  soname_spec='${libname}${release}.so$major'
5785
 
  shlibpath_var=LD_LIBRARY_PATH
5786
 
  shlibpath_overrides_runpath=yes
5787
 
  hardcode_into_libs=yes
5788
 
  # ldd complains unless libraries are executable
5789
 
  postinstall_cmds='chmod +x $lib'
5790
 
  ;;
5791
 
 
5792
 
sunos4*)
5793
 
  version_type=sunos
5794
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5795
 
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5796
 
  shlibpath_var=LD_LIBRARY_PATH
5797
 
  shlibpath_overrides_runpath=yes
5798
 
  if test "$with_gnu_ld" = yes; then
5799
 
    need_lib_prefix=no
5800
 
  fi
5801
 
  need_version=yes
5802
 
  ;;
5803
 
 
5804
 
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5805
 
  version_type=linux
5806
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5807
 
  soname_spec='${libname}${release}.so$major'
5808
 
  shlibpath_var=LD_LIBRARY_PATH
5809
 
  case $host_vendor in
5810
 
    sni)
5811
 
      shlibpath_overrides_runpath=no
5812
 
      ;;
5813
 
    motorola)
5814
 
      need_lib_prefix=no
5815
 
      need_version=no
5816
 
      shlibpath_overrides_runpath=no
5817
 
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5818
 
      ;;
5819
 
  esac
5820
 
  ;;
5821
 
 
5822
 
uts4*)
5823
 
  version_type=linux
5824
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5825
 
  soname_spec='${libname}${release}.so$major'
5826
 
  shlibpath_var=LD_LIBRARY_PATH
5827
 
  ;;
5828
 
 
5829
 
dgux*)
5830
 
  version_type=linux
5831
 
  need_lib_prefix=no
5832
 
  need_version=no
5833
 
  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5834
 
  soname_spec='${libname}${release}.so$major'
5835
 
  shlibpath_var=LD_LIBRARY_PATH
5836
 
  ;;
5837
 
 
5838
 
sysv4*MP*)
5839
 
  if test -d /usr/nec ;then
5840
 
    version_type=linux
5841
 
    library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5842
 
    soname_spec='$libname.so.$major'
5843
 
    shlibpath_var=LD_LIBRARY_PATH
5844
 
  fi
5845
 
  ;;
5846
 
 
5847
 
*)
5848
 
  dynamic_linker=no
5849
 
  ;;
5850
 
esac
5851
 
echo "$as_me:5851: result: $dynamic_linker" >&5
5852
 
echo "${ECHO_T}$dynamic_linker" >&6
5853
 
test "$dynamic_linker" = no && can_build_shared=no
5854
 
 
5855
 
# Report the final consequences.
5856
 
echo "$as_me:5856: checking if libtool supports shared libraries" >&5
5857
 
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5858
 
echo "$as_me:5858: result: $can_build_shared" >&5
5859
 
echo "${ECHO_T}$can_build_shared" >&6
5860
 
 
5861
10093
if test "$hardcode_action" = relink; then
5862
10094
  # Fast installation is not supported
5863
10095
  enable_fast_install=no
5867
10099
  enable_fast_install=needless
5868
10100
fi
5869
10101
 
5870
 
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5871
 
if test "$GCC" = yes; then
5872
 
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
10102
striplib=
 
10103
old_striplib=
 
10104
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
10105
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
10106
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
10107
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
10108
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
10109
  echo "$as_me:$LINENO: result: yes" >&5
 
10110
echo "${ECHO_T}yes" >&6
 
10111
else
 
10112
# FIXME - insert some real tests, host_os isn't really good enough
 
10113
  case $host_os in
 
10114
   darwin*)
 
10115
       if test -n "$STRIP" ; then
 
10116
         striplib="$STRIP -x"
 
10117
         echo "$as_me:$LINENO: result: yes" >&5
 
10118
echo "${ECHO_T}yes" >&6
 
10119
       else
 
10120
  echo "$as_me:$LINENO: result: no" >&5
 
10121
echo "${ECHO_T}no" >&6
 
10122
fi
 
10123
       ;;
 
10124
   *)
 
10125
  echo "$as_me:$LINENO: result: no" >&5
 
10126
echo "${ECHO_T}no" >&6
 
10127
    ;;
 
10128
  esac
5873
10129
fi
5874
10130
 
5875
10131
if test "x$enable_dlopen" != xyes; then
5887
10143
    lt_cv_dlopen_self=yes
5888
10144
    ;;
5889
10145
 
5890
 
  cygwin* | mingw* | pw32*)
 
10146
  mingw* | pw32*)
5891
10147
    lt_cv_dlopen="LoadLibrary"
5892
10148
    lt_cv_dlopen_libs=
5893
10149
   ;;
5894
10150
 
 
10151
  cygwin*)
 
10152
    lt_cv_dlopen="dlopen"
 
10153
    lt_cv_dlopen_libs=
 
10154
   ;;
 
10155
 
 
10156
  darwin*)
 
10157
  # if libdl is installed we need to link against it
 
10158
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10159
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10160
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10162
else
 
10163
  ac_check_lib_save_LIBS=$LIBS
 
10164
LIBS="-ldl  $LIBS"
 
10165
cat >conftest.$ac_ext <<_ACEOF
 
10166
/* confdefs.h.  */
 
10167
_ACEOF
 
10168
cat confdefs.h >>conftest.$ac_ext
 
10169
cat >>conftest.$ac_ext <<_ACEOF
 
10170
/* end confdefs.h.  */
 
10171
 
 
10172
/* Override any gcc2 internal prototype to avoid an error.  */
 
10173
#ifdef __cplusplus
 
10174
extern "C"
 
10175
#endif
 
10176
/* We use char because int might match the return type of a gcc2
 
10177
   builtin and then its argument prototype would still apply.  */
 
10178
char dlopen ();
 
10179
int
 
10180
main ()
 
10181
{
 
10182
dlopen ();
 
10183
  ;
 
10184
  return 0;
 
10185
}
 
10186
_ACEOF
 
10187
rm -f conftest.$ac_objext conftest$ac_exeext
 
10188
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10189
  (eval $ac_link) 2>conftest.er1
 
10190
  ac_status=$?
 
10191
  grep -v '^ *+' conftest.er1 >conftest.err
 
10192
  rm -f conftest.er1
 
10193
  cat conftest.err >&5
 
10194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10195
  (exit $ac_status); } &&
 
10196
         { ac_try='test -z "$ac_c_werror_flag"
 
10197
                         || test ! -s conftest.err'
 
10198
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10199
  (eval $ac_try) 2>&5
 
10200
  ac_status=$?
 
10201
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10202
  (exit $ac_status); }; } &&
 
10203
         { ac_try='test -s conftest$ac_exeext'
 
10204
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10205
  (eval $ac_try) 2>&5
 
10206
  ac_status=$?
 
10207
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10208
  (exit $ac_status); }; }; then
 
10209
  ac_cv_lib_dl_dlopen=yes
 
10210
else
 
10211
  echo "$as_me: failed program was:" >&5
 
10212
sed 's/^/| /' conftest.$ac_ext >&5
 
10213
 
 
10214
ac_cv_lib_dl_dlopen=no
 
10215
fi
 
10216
rm -f conftest.err conftest.$ac_objext \
 
10217
      conftest$ac_exeext conftest.$ac_ext
 
10218
LIBS=$ac_check_lib_save_LIBS
 
10219
fi
 
10220
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10221
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10222
if test $ac_cv_lib_dl_dlopen = yes; then
 
10223
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10224
else
 
10225
 
 
10226
    lt_cv_dlopen="dyld"
 
10227
    lt_cv_dlopen_libs=
 
10228
    lt_cv_dlopen_self=yes
 
10229
 
 
10230
fi
 
10231
 
 
10232
   ;;
 
10233
 
5895
10234
  *)
5896
 
    echo "$as_me:5896: checking for dlopen in -ldl" >&5
5897
 
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5898
 
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
10235
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
10236
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
10237
if test "${ac_cv_func_shl_load+set}" = set; then
 
10238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10239
else
 
10240
  cat >conftest.$ac_ext <<_ACEOF
 
10241
/* confdefs.h.  */
 
10242
_ACEOF
 
10243
cat confdefs.h >>conftest.$ac_ext
 
10244
cat >>conftest.$ac_ext <<_ACEOF
 
10245
/* end confdefs.h.  */
 
10246
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
10247
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10248
#define shl_load innocuous_shl_load
 
10249
 
 
10250
/* System header to define __stub macros and hopefully few prototypes,
 
10251
    which can conflict with char shl_load (); below.
 
10252
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10253
    <limits.h> exists even on freestanding compilers.  */
 
10254
 
 
10255
#ifdef __STDC__
 
10256
# include <limits.h>
 
10257
#else
 
10258
# include <assert.h>
 
10259
#endif
 
10260
 
 
10261
#undef shl_load
 
10262
 
 
10263
/* Override any gcc2 internal prototype to avoid an error.  */
 
10264
#ifdef __cplusplus
 
10265
extern "C"
 
10266
{
 
10267
#endif
 
10268
/* We use char because int might match the return type of a gcc2
 
10269
   builtin and then its argument prototype would still apply.  */
 
10270
char shl_load ();
 
10271
/* The GNU C library defines this for functions which it implements
 
10272
    to always fail with ENOSYS.  Some functions are actually named
 
10273
    something starting with __ and the normal name is an alias.  */
 
10274
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
10275
choke me
 
10276
#else
 
10277
char (*f) () = shl_load;
 
10278
#endif
 
10279
#ifdef __cplusplus
 
10280
}
 
10281
#endif
 
10282
 
 
10283
int
 
10284
main ()
 
10285
{
 
10286
return f != shl_load;
 
10287
  ;
 
10288
  return 0;
 
10289
}
 
10290
_ACEOF
 
10291
rm -f conftest.$ac_objext conftest$ac_exeext
 
10292
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10293
  (eval $ac_link) 2>conftest.er1
 
10294
  ac_status=$?
 
10295
  grep -v '^ *+' conftest.er1 >conftest.err
 
10296
  rm -f conftest.er1
 
10297
  cat conftest.err >&5
 
10298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10299
  (exit $ac_status); } &&
 
10300
         { ac_try='test -z "$ac_c_werror_flag"
 
10301
                         || test ! -s conftest.err'
 
10302
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10303
  (eval $ac_try) 2>&5
 
10304
  ac_status=$?
 
10305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10306
  (exit $ac_status); }; } &&
 
10307
         { ac_try='test -s conftest$ac_exeext'
 
10308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10309
  (eval $ac_try) 2>&5
 
10310
  ac_status=$?
 
10311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10312
  (exit $ac_status); }; }; then
 
10313
  ac_cv_func_shl_load=yes
 
10314
else
 
10315
  echo "$as_me: failed program was:" >&5
 
10316
sed 's/^/| /' conftest.$ac_ext >&5
 
10317
 
 
10318
ac_cv_func_shl_load=no
 
10319
fi
 
10320
rm -f conftest.err conftest.$ac_objext \
 
10321
      conftest$ac_exeext conftest.$ac_ext
 
10322
fi
 
10323
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
10324
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
10325
if test $ac_cv_func_shl_load = yes; then
 
10326
  lt_cv_dlopen="shl_load"
 
10327
else
 
10328
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
10329
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
10330
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5899
10331
  echo $ECHO_N "(cached) $ECHO_C" >&6
5900
10332
else
5901
10333
  ac_check_lib_save_LIBS=$LIBS
5902
 
LIBS="-ldl  $LIBS"
 
10334
LIBS="-ldld  $LIBS"
5903
10335
cat >conftest.$ac_ext <<_ACEOF
5904
 
#line 5904 "configure"
5905
 
#include "confdefs.h"
 
10336
/* confdefs.h.  */
 
10337
_ACEOF
 
10338
cat confdefs.h >>conftest.$ac_ext
 
10339
cat >>conftest.$ac_ext <<_ACEOF
 
10340
/* end confdefs.h.  */
5906
10341
 
5907
10342
/* Override any gcc2 internal prototype to avoid an error.  */
5908
10343
#ifdef __cplusplus
5910
10345
#endif
5911
10346
/* We use char because int might match the return type of a gcc2
5912
10347
   builtin and then its argument prototype would still apply.  */
5913
 
char dlopen ();
 
10348
char shl_load ();
5914
10349
int
5915
10350
main ()
5916
10351
{
5917
 
dlopen ();
 
10352
shl_load ();
5918
10353
  ;
5919
10354
  return 0;
5920
10355
}
5921
10356
_ACEOF
5922
10357
rm -f conftest.$ac_objext conftest$ac_exeext
5923
 
if { (eval echo "$as_me:5923: \"$ac_link\"") >&5
5924
 
  (eval $ac_link) 2>&5
 
10358
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10359
  (eval $ac_link) 2>conftest.er1
5925
10360
  ac_status=$?
5926
 
  echo "$as_me:5926: \$? = $ac_status" >&5
 
10361
  grep -v '^ *+' conftest.er1 >conftest.err
 
10362
  rm -f conftest.er1
 
10363
  cat conftest.err >&5
 
10364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927
10365
  (exit $ac_status); } &&
5928
 
         { ac_try='test -s conftest$ac_exeext'
5929
 
  { (eval echo "$as_me:5929: \"$ac_try\"") >&5
5930
 
  (eval $ac_try) 2>&5
5931
 
  ac_status=$?
5932
 
  echo "$as_me:5932: \$? = $ac_status" >&5
 
10366
         { ac_try='test -z "$ac_c_werror_flag"
 
10367
                         || test ! -s conftest.err'
 
10368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10369
  (eval $ac_try) 2>&5
 
10370
  ac_status=$?
 
10371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10372
  (exit $ac_status); }; } &&
 
10373
         { ac_try='test -s conftest$ac_exeext'
 
10374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10375
  (eval $ac_try) 2>&5
 
10376
  ac_status=$?
 
10377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5933
10378
  (exit $ac_status); }; }; then
5934
 
  ac_cv_lib_dl_dlopen=yes
 
10379
  ac_cv_lib_dld_shl_load=yes
5935
10380
else
5936
10381
  echo "$as_me: failed program was:" >&5
5937
 
cat conftest.$ac_ext >&5
5938
 
ac_cv_lib_dl_dlopen=no
 
10382
sed 's/^/| /' conftest.$ac_ext >&5
 
10383
 
 
10384
ac_cv_lib_dld_shl_load=no
5939
10385
fi
5940
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10386
rm -f conftest.err conftest.$ac_objext \
 
10387
      conftest$ac_exeext conftest.$ac_ext
5941
10388
LIBS=$ac_check_lib_save_LIBS
5942
10389
fi
5943
 
echo "$as_me:5943: result: $ac_cv_lib_dl_dlopen" >&5
5944
 
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5945
 
if test $ac_cv_lib_dl_dlopen = yes; then
5946
 
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
10390
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
10391
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
10392
if test $ac_cv_lib_dld_shl_load = yes; then
 
10393
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
5947
10394
else
5948
 
  echo "$as_me:5948: checking for dlopen" >&5
 
10395
  echo "$as_me:$LINENO: checking for dlopen" >&5
5949
10396
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5950
10397
if test "${ac_cv_func_dlopen+set}" = set; then
5951
10398
  echo $ECHO_N "(cached) $ECHO_C" >&6
5952
10399
else
5953
10400
  cat >conftest.$ac_ext <<_ACEOF
5954
 
#line 5954 "configure"
5955
 
#include "confdefs.h"
 
10401
/* confdefs.h.  */
 
10402
_ACEOF
 
10403
cat confdefs.h >>conftest.$ac_ext
 
10404
cat >>conftest.$ac_ext <<_ACEOF
 
10405
/* end confdefs.h.  */
 
10406
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
10407
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
10408
#define dlopen innocuous_dlopen
 
10409
 
5956
10410
/* System header to define __stub macros and hopefully few prototypes,
5957
 
    which can conflict with char dlopen (); below.  */
5958
 
#include <assert.h>
 
10411
    which can conflict with char dlopen (); below.
 
10412
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
10413
    <limits.h> exists even on freestanding compilers.  */
 
10414
 
 
10415
#ifdef __STDC__
 
10416
# include <limits.h>
 
10417
#else
 
10418
# include <assert.h>
 
10419
#endif
 
10420
 
 
10421
#undef dlopen
 
10422
 
5959
10423
/* Override any gcc2 internal prototype to avoid an error.  */
5960
10424
#ifdef __cplusplus
5961
10425
extern "C"
 
10426
{
5962
10427
#endif
5963
10428
/* We use char because int might match the return type of a gcc2
5964
10429
   builtin and then its argument prototype would still apply.  */
5965
10430
char dlopen ();
5966
 
char (*f) ();
5967
 
 
5968
 
int
5969
 
main ()
5970
 
{
5971
10431
/* The GNU C library defines this for functions which it implements
5972
10432
    to always fail with ENOSYS.  Some functions are actually named
5973
10433
    something starting with __ and the normal name is an alias.  */
5974
10434
#if defined (__stub_dlopen) || defined (__stub___dlopen)
5975
10435
choke me
5976
10436
#else
5977
 
f = dlopen;
 
10437
char (*f) () = dlopen;
 
10438
#endif
 
10439
#ifdef __cplusplus
 
10440
}
5978
10441
#endif
5979
10442
 
 
10443
int
 
10444
main ()
 
10445
{
 
10446
return f != dlopen;
5980
10447
  ;
5981
10448
  return 0;
5982
10449
}
5983
10450
_ACEOF
5984
10451
rm -f conftest.$ac_objext conftest$ac_exeext
5985
 
if { (eval echo "$as_me:5985: \"$ac_link\"") >&5
5986
 
  (eval $ac_link) 2>&5
 
10452
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10453
  (eval $ac_link) 2>conftest.er1
5987
10454
  ac_status=$?
5988
 
  echo "$as_me:5988: \$? = $ac_status" >&5
 
10455
  grep -v '^ *+' conftest.er1 >conftest.err
 
10456
  rm -f conftest.er1
 
10457
  cat conftest.err >&5
 
10458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989
10459
  (exit $ac_status); } &&
5990
 
         { ac_try='test -s conftest$ac_exeext'
5991
 
  { (eval echo "$as_me:5991: \"$ac_try\"") >&5
5992
 
  (eval $ac_try) 2>&5
5993
 
  ac_status=$?
5994
 
  echo "$as_me:5994: \$? = $ac_status" >&5
 
10460
         { ac_try='test -z "$ac_c_werror_flag"
 
10461
                         || test ! -s conftest.err'
 
10462
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10463
  (eval $ac_try) 2>&5
 
10464
  ac_status=$?
 
10465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10466
  (exit $ac_status); }; } &&
 
10467
         { ac_try='test -s conftest$ac_exeext'
 
10468
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10469
  (eval $ac_try) 2>&5
 
10470
  ac_status=$?
 
10471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995
10472
  (exit $ac_status); }; }; then
5996
10473
  ac_cv_func_dlopen=yes
5997
10474
else
5998
10475
  echo "$as_me: failed program was:" >&5
5999
 
cat conftest.$ac_ext >&5
 
10476
sed 's/^/| /' conftest.$ac_ext >&5
 
10477
 
6000
10478
ac_cv_func_dlopen=no
6001
10479
fi
6002
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10480
rm -f conftest.err conftest.$ac_objext \
 
10481
      conftest$ac_exeext conftest.$ac_ext
6003
10482
fi
6004
 
echo "$as_me:6004: result: $ac_cv_func_dlopen" >&5
 
10483
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6005
10484
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6006
10485
if test $ac_cv_func_dlopen = yes; then
6007
10486
  lt_cv_dlopen="dlopen"
6008
10487
else
6009
 
  echo "$as_me:6009: checking for shl_load" >&5
6010
 
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6011
 
if test "${ac_cv_func_shl_load+set}" = set; then
 
10488
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
10489
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
10490
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6012
10491
  echo $ECHO_N "(cached) $ECHO_C" >&6
6013
10492
else
6014
 
  cat >conftest.$ac_ext <<_ACEOF
6015
 
#line 6015 "configure"
6016
 
#include "confdefs.h"
6017
 
/* System header to define __stub macros and hopefully few prototypes,
6018
 
    which can conflict with char shl_load (); below.  */
6019
 
#include <assert.h>
 
10493
  ac_check_lib_save_LIBS=$LIBS
 
10494
LIBS="-ldl  $LIBS"
 
10495
cat >conftest.$ac_ext <<_ACEOF
 
10496
/* confdefs.h.  */
 
10497
_ACEOF
 
10498
cat confdefs.h >>conftest.$ac_ext
 
10499
cat >>conftest.$ac_ext <<_ACEOF
 
10500
/* end confdefs.h.  */
 
10501
 
6020
10502
/* Override any gcc2 internal prototype to avoid an error.  */
6021
10503
#ifdef __cplusplus
6022
10504
extern "C"
6023
10505
#endif
6024
10506
/* We use char because int might match the return type of a gcc2
6025
10507
   builtin and then its argument prototype would still apply.  */
6026
 
char shl_load ();
6027
 
char (*f) ();
6028
 
 
 
10508
char dlopen ();
6029
10509
int
6030
10510
main ()
6031
10511
{
6032
 
/* The GNU C library defines this for functions which it implements
6033
 
    to always fail with ENOSYS.  Some functions are actually named
6034
 
    something starting with __ and the normal name is an alias.  */
6035
 
#if defined (__stub_shl_load) || defined (__stub___shl_load)
6036
 
choke me
6037
 
#else
6038
 
f = shl_load;
6039
 
#endif
6040
 
 
 
10512
dlopen ();
6041
10513
  ;
6042
10514
  return 0;
6043
10515
}
6044
10516
_ACEOF
6045
10517
rm -f conftest.$ac_objext conftest$ac_exeext
6046
 
if { (eval echo "$as_me:6046: \"$ac_link\"") >&5
6047
 
  (eval $ac_link) 2>&5
 
10518
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10519
  (eval $ac_link) 2>conftest.er1
6048
10520
  ac_status=$?
6049
 
  echo "$as_me:6049: \$? = $ac_status" >&5
 
10521
  grep -v '^ *+' conftest.er1 >conftest.err
 
10522
  rm -f conftest.er1
 
10523
  cat conftest.err >&5
 
10524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050
10525
  (exit $ac_status); } &&
6051
 
         { ac_try='test -s conftest$ac_exeext'
6052
 
  { (eval echo "$as_me:6052: \"$ac_try\"") >&5
6053
 
  (eval $ac_try) 2>&5
6054
 
  ac_status=$?
6055
 
  echo "$as_me:6055: \$? = $ac_status" >&5
 
10526
         { ac_try='test -z "$ac_c_werror_flag"
 
10527
                         || test ! -s conftest.err'
 
10528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10529
  (eval $ac_try) 2>&5
 
10530
  ac_status=$?
 
10531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10532
  (exit $ac_status); }; } &&
 
10533
         { ac_try='test -s conftest$ac_exeext'
 
10534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10535
  (eval $ac_try) 2>&5
 
10536
  ac_status=$?
 
10537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056
10538
  (exit $ac_status); }; }; then
6057
 
  ac_cv_func_shl_load=yes
 
10539
  ac_cv_lib_dl_dlopen=yes
6058
10540
else
6059
10541
  echo "$as_me: failed program was:" >&5
6060
 
cat conftest.$ac_ext >&5
6061
 
ac_cv_func_shl_load=no
6062
 
fi
6063
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6064
 
fi
6065
 
echo "$as_me:6065: result: $ac_cv_func_shl_load" >&5
6066
 
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6067
 
if test $ac_cv_func_shl_load = yes; then
6068
 
  lt_cv_dlopen="shl_load"
 
10542
sed 's/^/| /' conftest.$ac_ext >&5
 
10543
 
 
10544
ac_cv_lib_dl_dlopen=no
 
10545
fi
 
10546
rm -f conftest.err conftest.$ac_objext \
 
10547
      conftest$ac_exeext conftest.$ac_ext
 
10548
LIBS=$ac_check_lib_save_LIBS
 
10549
fi
 
10550
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
10551
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
10552
if test $ac_cv_lib_dl_dlopen = yes; then
 
10553
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6069
10554
else
6070
 
  echo "$as_me:6070: checking for dlopen in -lsvld" >&5
 
10555
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6071
10556
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6072
10557
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6073
10558
  echo $ECHO_N "(cached) $ECHO_C" >&6
6075
10560
  ac_check_lib_save_LIBS=$LIBS
6076
10561
LIBS="-lsvld  $LIBS"
6077
10562
cat >conftest.$ac_ext <<_ACEOF
6078
 
#line 6078 "configure"
6079
 
#include "confdefs.h"
 
10563
/* confdefs.h.  */
 
10564
_ACEOF
 
10565
cat confdefs.h >>conftest.$ac_ext
 
10566
cat >>conftest.$ac_ext <<_ACEOF
 
10567
/* end confdefs.h.  */
6080
10568
 
6081
10569
/* Override any gcc2 internal prototype to avoid an error.  */
6082
10570
#ifdef __cplusplus
6094
10582
}
6095
10583
_ACEOF
6096
10584
rm -f conftest.$ac_objext conftest$ac_exeext
6097
 
if { (eval echo "$as_me:6097: \"$ac_link\"") >&5
6098
 
  (eval $ac_link) 2>&5
 
10585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10586
  (eval $ac_link) 2>conftest.er1
6099
10587
  ac_status=$?
6100
 
  echo "$as_me:6100: \$? = $ac_status" >&5
 
10588
  grep -v '^ *+' conftest.er1 >conftest.err
 
10589
  rm -f conftest.er1
 
10590
  cat conftest.err >&5
 
10591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101
10592
  (exit $ac_status); } &&
6102
 
         { ac_try='test -s conftest$ac_exeext'
6103
 
  { (eval echo "$as_me:6103: \"$ac_try\"") >&5
6104
 
  (eval $ac_try) 2>&5
6105
 
  ac_status=$?
6106
 
  echo "$as_me:6106: \$? = $ac_status" >&5
 
10593
         { ac_try='test -z "$ac_c_werror_flag"
 
10594
                         || test ! -s conftest.err'
 
10595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10596
  (eval $ac_try) 2>&5
 
10597
  ac_status=$?
 
10598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10599
  (exit $ac_status); }; } &&
 
10600
         { ac_try='test -s conftest$ac_exeext'
 
10601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10602
  (eval $ac_try) 2>&5
 
10603
  ac_status=$?
 
10604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107
10605
  (exit $ac_status); }; }; then
6108
10606
  ac_cv_lib_svld_dlopen=yes
6109
10607
else
6110
10608
  echo "$as_me: failed program was:" >&5
6111
 
cat conftest.$ac_ext >&5
 
10609
sed 's/^/| /' conftest.$ac_ext >&5
 
10610
 
6112
10611
ac_cv_lib_svld_dlopen=no
6113
10612
fi
6114
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10613
rm -f conftest.err conftest.$ac_objext \
 
10614
      conftest$ac_exeext conftest.$ac_ext
6115
10615
LIBS=$ac_check_lib_save_LIBS
6116
10616
fi
6117
 
echo "$as_me:6117: result: $ac_cv_lib_svld_dlopen" >&5
 
10617
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6118
10618
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6119
10619
if test $ac_cv_lib_svld_dlopen = yes; then
6120
10620
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6121
10621
else
6122
 
  echo "$as_me:6122: checking for shl_load in -ldld" >&5
6123
 
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6124
 
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
10622
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
10623
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
10624
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6125
10625
  echo $ECHO_N "(cached) $ECHO_C" >&6
6126
10626
else
6127
10627
  ac_check_lib_save_LIBS=$LIBS
6128
10628
LIBS="-ldld  $LIBS"
6129
10629
cat >conftest.$ac_ext <<_ACEOF
6130
 
#line 6130 "configure"
6131
 
#include "confdefs.h"
 
10630
/* confdefs.h.  */
 
10631
_ACEOF
 
10632
cat confdefs.h >>conftest.$ac_ext
 
10633
cat >>conftest.$ac_ext <<_ACEOF
 
10634
/* end confdefs.h.  */
6132
10635
 
6133
10636
/* Override any gcc2 internal prototype to avoid an error.  */
6134
10637
#ifdef __cplusplus
6136
10639
#endif
6137
10640
/* We use char because int might match the return type of a gcc2
6138
10641
   builtin and then its argument prototype would still apply.  */
6139
 
char shl_load ();
 
10642
char dld_link ();
6140
10643
int
6141
10644
main ()
6142
10645
{
6143
 
shl_load ();
 
10646
dld_link ();
6144
10647
  ;
6145
10648
  return 0;
6146
10649
}
6147
10650
_ACEOF
6148
10651
rm -f conftest.$ac_objext conftest$ac_exeext
6149
 
if { (eval echo "$as_me:6149: \"$ac_link\"") >&5
6150
 
  (eval $ac_link) 2>&5
 
10652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10653
  (eval $ac_link) 2>conftest.er1
6151
10654
  ac_status=$?
6152
 
  echo "$as_me:6152: \$? = $ac_status" >&5
 
10655
  grep -v '^ *+' conftest.er1 >conftest.err
 
10656
  rm -f conftest.er1
 
10657
  cat conftest.err >&5
 
10658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153
10659
  (exit $ac_status); } &&
6154
 
         { ac_try='test -s conftest$ac_exeext'
6155
 
  { (eval echo "$as_me:6155: \"$ac_try\"") >&5
6156
 
  (eval $ac_try) 2>&5
6157
 
  ac_status=$?
6158
 
  echo "$as_me:6158: \$? = $ac_status" >&5
 
10660
         { ac_try='test -z "$ac_c_werror_flag"
 
10661
                         || test ! -s conftest.err'
 
10662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10663
  (eval $ac_try) 2>&5
 
10664
  ac_status=$?
 
10665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10666
  (exit $ac_status); }; } &&
 
10667
         { ac_try='test -s conftest$ac_exeext'
 
10668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10669
  (eval $ac_try) 2>&5
 
10670
  ac_status=$?
 
10671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159
10672
  (exit $ac_status); }; }; then
6160
 
  ac_cv_lib_dld_shl_load=yes
 
10673
  ac_cv_lib_dld_dld_link=yes
6161
10674
else
6162
10675
  echo "$as_me: failed program was:" >&5
6163
 
cat conftest.$ac_ext >&5
6164
 
ac_cv_lib_dld_shl_load=no
 
10676
sed 's/^/| /' conftest.$ac_ext >&5
 
10677
 
 
10678
ac_cv_lib_dld_dld_link=no
6165
10679
fi
6166
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
10680
rm -f conftest.err conftest.$ac_objext \
 
10681
      conftest$ac_exeext conftest.$ac_ext
6167
10682
LIBS=$ac_check_lib_save_LIBS
6168
10683
fi
6169
 
echo "$as_me:6169: result: $ac_cv_lib_dld_shl_load" >&5
6170
 
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6171
 
if test $ac_cv_lib_dld_shl_load = yes; then
 
10684
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
10685
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
10686
if test $ac_cv_lib_dld_dld_link = yes; then
6172
10687
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6173
10688
fi
6174
10689
 
6175
 
fi
6176
 
 
6177
 
fi
6178
 
 
6179
 
fi
 
10690
 
 
10691
fi
 
10692
 
 
10693
 
 
10694
fi
 
10695
 
 
10696
 
 
10697
fi
 
10698
 
 
10699
 
 
10700
fi
 
10701
 
6180
10702
 
6181
10703
fi
6182
10704
 
6192
10714
  case $lt_cv_dlopen in
6193
10715
  dlopen)
6194
10716
    save_CPPFLAGS="$CPPFLAGS"
6195
 
        test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
10717
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6196
10718
 
6197
10719
    save_LDFLAGS="$LDFLAGS"
6198
10720
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6200
10722
    save_LIBS="$LIBS"
6201
10723
    LIBS="$lt_cv_dlopen_libs $LIBS"
6202
10724
 
6203
 
    echo "$as_me:6203: checking whether a program can dlopen itself" >&5
 
10725
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6204
10726
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6205
10727
if test "${lt_cv_dlopen_self+set}" = set; then
6206
10728
  echo $ECHO_N "(cached) $ECHO_C" >&6
6208
10730
          if test "$cross_compiling" = yes; then :
6209
10731
  lt_cv_dlopen_self=cross
6210
10732
else
6211
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10733
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6212
10734
  lt_status=$lt_dlunknown
6213
10735
  cat > conftest.$ac_ext <<EOF
6214
 
#line 6214 "configure"
 
10736
#line 10736 "configure"
6215
10737
#include "confdefs.h"
6216
10738
 
6217
10739
#if HAVE_DLFCN_H
6272
10794
    exit (status);
6273
10795
}
6274
10796
EOF
6275
 
  if { (eval echo "$as_me:6275: \"$ac_link\"") >&5
 
10797
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6276
10798
  (eval $ac_link) 2>&5
6277
10799
  ac_status=$?
6278
 
  echo "$as_me:6278: \$? = $ac_status" >&5
 
10800
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279
10801
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6280
10802
    (./conftest; exit; ) 2>/dev/null
6281
10803
    lt_status=$?
6291
10813
fi
6292
10814
rm -fr conftest*
6293
10815
 
 
10816
 
6294
10817
fi
6295
 
echo "$as_me:6295: result: $lt_cv_dlopen_self" >&5
 
10818
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6296
10819
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6297
10820
 
6298
10821
    if test "x$lt_cv_dlopen_self" = xyes; then
6299
10822
      LDFLAGS="$LDFLAGS $link_static_flag"
6300
 
      echo "$as_me:6300: checking whether a statically linked program can dlopen itself" >&5
 
10823
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6301
10824
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6302
10825
if test "${lt_cv_dlopen_self_static+set}" = set; then
6303
10826
  echo $ECHO_N "(cached) $ECHO_C" >&6
6305
10828
          if test "$cross_compiling" = yes; then :
6306
10829
  lt_cv_dlopen_self_static=cross
6307
10830
else
6308
 
    lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
10831
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6309
10832
  lt_status=$lt_dlunknown
6310
10833
  cat > conftest.$ac_ext <<EOF
6311
 
#line 6311 "configure"
 
10834
#line 10834 "configure"
6312
10835
#include "confdefs.h"
6313
10836
 
6314
10837
#if HAVE_DLFCN_H
6369
10892
    exit (status);
6370
10893
}
6371
10894
EOF
6372
 
  if { (eval echo "$as_me:6372: \"$ac_link\"") >&5
 
10895
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6373
10896
  (eval $ac_link) 2>&5
6374
10897
  ac_status=$?
6375
 
  echo "$as_me:6375: \$? = $ac_status" >&5
 
10898
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6376
10899
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6377
10900
    (./conftest; exit; ) 2>/dev/null
6378
10901
    lt_status=$?
6388
10911
fi
6389
10912
rm -fr conftest*
6390
10913
 
 
10914
 
6391
10915
fi
6392
 
echo "$as_me:6392: result: $lt_cv_dlopen_self_static" >&5
 
10916
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6393
10917
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6394
10918
    fi
6395
10919
 
6410
10934
  esac
6411
10935
fi
6412
10936
 
6413
 
if test "$enable_shared" = yes && test "$GCC" = yes; then
6414
 
  case $archive_cmds in
6415
 
  *'~'*)
6416
 
    # FIXME: we may have to deal with multi-command sequences.
6417
 
    ;;
6418
 
  '$CC '*)
6419
 
    # Test whether the compiler implicitly links with -lc since on some
6420
 
    # systems, -lgcc has to come before -lc. If gcc already passes -lc
6421
 
    # to ld, don't add -lc before -lgcc.
6422
 
    echo "$as_me:6422: checking whether -lc should be explicitly linked in" >&5
6423
 
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6424
 
    if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6425
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
6426
 
else
6427
 
  $rm conftest*
6428
 
    echo 'static int dummy;' > conftest.$ac_ext
6429
 
 
6430
 
    if { (eval echo "$as_me:6430: \"$ac_compile\"") >&5
6431
 
  (eval $ac_compile) 2>&5
6432
 
  ac_status=$?
6433
 
  echo "$as_me:6433: \$? = $ac_status" >&5
6434
 
  (exit $ac_status); }; then
6435
 
      soname=conftest
6436
 
      lib=conftest
6437
 
      libobjs=conftest.$ac_objext
6438
 
      deplibs=
6439
 
      wl=$lt_cv_prog_cc_wl
6440
 
      compiler_flags=-v
6441
 
      linker_flags=-v
6442
 
      verstring=
6443
 
      output_objdir=.
6444
 
      libname=conftest
6445
 
      save_allow_undefined_flag=$allow_undefined_flag
6446
 
      allow_undefined_flag=
6447
 
      if { (eval echo "$as_me:6447: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6448
 
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6449
 
  ac_status=$?
6450
 
  echo "$as_me:6450: \$? = $ac_status" >&5
6451
 
  (exit $ac_status); }
6452
 
      then
6453
 
        lt_cv_archive_cmds_need_lc=no
6454
 
      else
6455
 
        lt_cv_archive_cmds_need_lc=yes
6456
 
      fi
6457
 
      allow_undefined_flag=$save_allow_undefined_flag
6458
 
    else
6459
 
      cat conftest.err 1>&5
6460
 
    fi
6461
 
fi
6462
 
 
6463
 
    echo "$as_me:6463: result: $lt_cv_archive_cmds_need_lc" >&5
6464
 
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6465
 
    ;;
6466
 
  esac
6467
 
fi
6468
 
need_lc=${lt_cv_archive_cmds_need_lc-yes}
6469
 
 
6470
 
# The second clause should only fire when bootstrapping the
 
10937
 
 
10938
# Report which librarie types wil actually be built
 
10939
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
10940
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
10941
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
10942
echo "${ECHO_T}$can_build_shared" >&6
 
10943
 
 
10944
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
10945
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
10946
test "$can_build_shared" = "no" && enable_shared=no
 
10947
 
 
10948
# On AIX, shared libraries and static libraries use the same namespace, and
 
10949
# are all built from PIC.
 
10950
case "$host_os" in
 
10951
aix3*)
 
10952
  test "$enable_shared" = yes && enable_static=no
 
10953
  if test -n "$RANLIB"; then
 
10954
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
10955
    postinstall_cmds='$RANLIB $lib'
 
10956
  fi
 
10957
  ;;
 
10958
 
 
10959
aix4* | aix5*)
 
10960
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
10961
    test "$enable_shared" = yes && enable_static=no
 
10962
  fi
 
10963
    ;;
 
10964
esac
 
10965
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
10966
echo "${ECHO_T}$enable_shared" >&6
 
10967
 
 
10968
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
10969
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
10970
# Make sure either enable_shared or enable_static is yes.
 
10971
test "$enable_shared" = yes || enable_static=yes
 
10972
echo "$as_me:$LINENO: result: $enable_static" >&5
 
10973
echo "${ECHO_T}$enable_static" >&6
 
10974
 
 
10975
# The else clause should only fire when bootstrapping the
6471
10976
# libtool distribution, otherwise you forgot to ship ltmain.sh
6472
10977
# with your package, and you will get complaints that there are
6473
10978
# no rules to generate ltmain.sh.
6474
10979
if test -f "$ltmain"; then
6475
 
  :
6476
 
else
6477
 
  # If there is no Makefile yet, we rely on a make rule to execute
6478
 
  # `config.status --recheck' to rerun these tests and create the
6479
 
  # libtool script then.
6480
 
  test -f Makefile && make "$ltmain"
6481
 
fi
6482
 
 
6483
 
if test -f "$ltmain"; then
6484
 
  trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6485
 
  $rm -f "${ofile}T"
6486
 
 
6487
 
  echo creating $ofile
6488
 
 
 
10980
  # See if we are running on zsh, and set the options which allow our commands through
 
10981
  # without removal of \ escapes.
 
10982
  if test -n "${ZSH_VERSION+set}" ; then
 
10983
    setopt NO_GLOB_SUBST
 
10984
  fi
6489
10985
  # Now quote all the things that may contain metacharacters while being
6490
10986
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
6491
10987
  # variables and quote the copies for generation of the libtool script.
6492
 
  for var in echo old_CC old_CFLAGS \
6493
 
    AR AR_FLAGS CC LD LN_S NM SHELL \
6494
 
    reload_flag reload_cmds wl \
6495
 
    pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6496
 
    thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6497
 
    library_names_spec soname_spec \
6498
 
    RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6499
 
    old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6500
 
    postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6501
 
    old_striplib striplib file_magic_cmd export_symbols_cmds \
6502
 
    deplibs_check_method allow_undefined_flag no_undefined_flag \
6503
 
    finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6504
 
    hardcode_libdir_flag_spec hardcode_libdir_separator  \
 
10988
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
10989
    SED SHELL STRIP \
 
10990
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
10991
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
10992
    deplibs_check_method reload_flag reload_cmds need_locks \
 
10993
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
10994
    lt_cv_sys_global_symbol_to_c_name_address \
6505
10995
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6506
 
    compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
 
10996
    old_postinstall_cmds old_postuninstall_cmds \
 
10997
    compiler \
 
10998
    CC \
 
10999
    LD \
 
11000
    lt_prog_compiler_wl \
 
11001
    lt_prog_compiler_pic \
 
11002
    lt_prog_compiler_static \
 
11003
    lt_prog_compiler_no_builtin_flag \
 
11004
    export_dynamic_flag_spec \
 
11005
    thread_safe_flag_spec \
 
11006
    whole_archive_flag_spec \
 
11007
    enable_shared_with_static_runtimes \
 
11008
    old_archive_cmds \
 
11009
    old_archive_from_new_cmds \
 
11010
    predep_objects \
 
11011
    postdep_objects \
 
11012
    predeps \
 
11013
    postdeps \
 
11014
    compiler_lib_search_path \
 
11015
    archive_cmds \
 
11016
    archive_expsym_cmds \
 
11017
    postinstall_cmds \
 
11018
    postuninstall_cmds \
 
11019
    old_archive_from_expsyms_cmds \
 
11020
    allow_undefined_flag \
 
11021
    no_undefined_flag \
 
11022
    export_symbols_cmds \
 
11023
    hardcode_libdir_flag_spec \
 
11024
    hardcode_libdir_flag_spec_ld \
 
11025
    hardcode_libdir_separator \
 
11026
    hardcode_automatic \
 
11027
    module_cmds \
 
11028
    module_expsym_cmds \
 
11029
    lt_cv_prog_compiler_c_o \
 
11030
    exclude_expsyms \
 
11031
    include_expsyms; do
6507
11032
 
6508
11033
    case $var in
6509
 
    reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
 
11034
    old_archive_cmds | \
 
11035
    old_archive_from_new_cmds | \
 
11036
    archive_cmds | \
 
11037
    archive_expsym_cmds | \
 
11038
    module_cmds | \
 
11039
    module_expsym_cmds | \
 
11040
    old_archive_from_expsyms_cmds | \
 
11041
    export_symbols_cmds | \
 
11042
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
11043
    postinstall_cmds | postuninstall_cmds | \
6510
11044
    old_postinstall_cmds | old_postuninstall_cmds | \
6511
 
    export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6512
 
    extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6513
 
    postinstall_cmds | postuninstall_cmds | \
6514
 
    finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
11045
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6515
11046
      # Double-quote double-evaled strings.
6516
11047
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6517
11048
      ;;
6521
11052
    esac
6522
11053
  done
6523
11054
 
6524
 
  cat <<__EOF__ > "${ofile}T"
 
11055
  case $lt_echo in
 
11056
  *'\$0 --fallback-echo"')
 
11057
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
11058
    ;;
 
11059
  esac
 
11060
 
 
11061
cfgfile="${ofile}T"
 
11062
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
11063
  $rm -f "$cfgfile"
 
11064
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
11065
echo "$as_me: creating $ofile" >&6;}
 
11066
 
 
11067
  cat <<__EOF__ >> "$cfgfile"
6525
11068
#! $SHELL
6526
11069
 
6527
 
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
11070
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6528
11071
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6529
11072
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
6530
11073
#
6531
 
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
 
11074
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
11075
# Free Software Foundation, Inc.
 
11076
#
 
11077
# This file is part of GNU Libtool:
6532
11078
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6533
11079
#
6534
11080
# This program is free software; you can redistribute it and/or modify
6550
11096
# configuration script generated by Autoconf, you may include it under
6551
11097
# the same distribution terms that you use for the rest of that program.
6552
11098
 
 
11099
# A sed program that does not truncate output.
 
11100
SED=$lt_SED
 
11101
 
6553
11102
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
6554
 
Xsed="sed -e s/^X//"
 
11103
Xsed="$SED -e s/^X//"
6555
11104
 
6556
11105
# The HP-UX ksh and POSIX shell print the target directory to stdout
6557
11106
# if CDPATH is set.
6558
 
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
11107
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 
11108
 
 
11109
# The names of the tagged configurations supported by this script.
 
11110
available_tags=
6559
11111
 
6560
11112
# ### BEGIN LIBTOOL CONFIG
6561
11113
 
6567
11119
# Whether or not to build shared libraries.
6568
11120
build_libtool_libs=$enable_shared
6569
11121
 
6570
 
# Whether or not to add -lc for building shared libraries.
6571
 
build_libtool_need_lc=$need_lc
6572
 
 
6573
11122
# Whether or not to build static libraries.
6574
11123
build_old_libs=$enable_static
6575
11124
 
 
11125
# Whether or not to add -lc for building shared libraries.
 
11126
build_libtool_need_lc=$archive_cmds_need_lc
 
11127
 
 
11128
# Whether or not to disallow shared libs when runtime libs are static
 
11129
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
11130
 
6576
11131
# Whether or not to optimize for fast installation.
6577
11132
fast_install=$enable_fast_install
6578
11133
 
6587
11142
AR=$lt_AR
6588
11143
AR_FLAGS=$lt_AR_FLAGS
6589
11144
 
6590
 
# The default C compiler.
6591
 
CC=$lt_CC
 
11145
# A C compiler.
 
11146
LTCC=$lt_LTCC
 
11147
 
 
11148
# A language-specific compiler.
 
11149
CC=$lt_compiler
6592
11150
 
6593
11151
# Is the compiler the GNU C compiler?
6594
11152
with_gcc=$GCC
6595
11153
 
 
11154
# An ERE matcher.
 
11155
EGREP=$lt_EGREP
 
11156
 
6596
11157
# The linker used to build libraries.
6597
11158
LD=$lt_LD
6598
11159
 
6603
11164
NM=$lt_NM
6604
11165
 
6605
11166
# A symbol stripping program
6606
 
STRIP=$STRIP
 
11167
STRIP=$lt_STRIP
6607
11168
 
6608
11169
# Used to examine libraries when file_magic_cmd begins "file"
6609
11170
MAGIC_CMD=$MAGIC_CMD
6625
11186
reload_cmds=$lt_reload_cmds
6626
11187
 
6627
11188
# How to pass a linker flag through the compiler.
6628
 
wl=$lt_wl
 
11189
wl=$lt_lt_prog_compiler_wl
6629
11190
 
6630
11191
# Object file suffix (normally "o").
6631
11192
objext="$ac_objext"
6633
11194
# Old archive suffix (normally "a").
6634
11195
libext="$libext"
6635
11196
 
 
11197
# Shared library suffix (normally ".so").
 
11198
shrext_cmds='$shrext_cmds'
 
11199
 
6636
11200
# Executable file suffix (normally "").
6637
11201
exeext="$exeext"
6638
11202
 
6639
11203
# Additional compiler flags for building library objects.
6640
 
pic_flag=$lt_pic_flag
 
11204
pic_flag=$lt_lt_prog_compiler_pic
6641
11205
pic_mode=$pic_mode
6642
11206
 
 
11207
# What is the maximum length of a command?
 
11208
max_cmd_len=$lt_cv_sys_max_cmd_len
 
11209
 
6643
11210
# Does compiler simultaneously support -c and -o options?
6644
 
compiler_c_o=$lt_compiler_c_o
6645
 
 
6646
 
# Can we write directly to a .lo ?
6647
 
compiler_o_lo=$lt_compiler_o_lo
 
11211
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
6648
11212
 
6649
11213
# Must we lock files when doing compilation ?
6650
11214
need_locks=$lt_need_locks
6665
11229
dlopen_self_static=$enable_dlopen_self_static
6666
11230
 
6667
11231
# Compiler flag to prevent dynamic linking.
6668
 
link_static_flag=$lt_link_static_flag
 
11232
link_static_flag=$lt_lt_prog_compiler_static
6669
11233
 
6670
11234
# Compiler flag to turn off builtin functions.
6671
 
no_builtin_flag=$lt_no_builtin_flag
 
11235
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
6672
11236
 
6673
11237
# Compiler flag to allow reflexive dlopens.
6674
11238
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6710
11274
postinstall_cmds=$lt_postinstall_cmds
6711
11275
postuninstall_cmds=$lt_postuninstall_cmds
6712
11276
 
 
11277
# Commands used to build a loadable module (assumed same as above if empty)
 
11278
module_cmds=$lt_module_cmds
 
11279
module_expsym_cmds=$lt_module_expsym_cmds
 
11280
 
6713
11281
# Commands to strip libraries.
6714
11282
old_striplib=$lt_old_striplib
6715
11283
striplib=$lt_striplib
6716
11284
 
 
11285
# Dependencies to place before the objects being linked to create a
 
11286
# shared library.
 
11287
predep_objects=$lt_predep_objects
 
11288
 
 
11289
# Dependencies to place after the objects being linked to create a
 
11290
# shared library.
 
11291
postdep_objects=$lt_postdep_objects
 
11292
 
 
11293
# Dependencies to place before the objects being linked to create a
 
11294
# shared library.
 
11295
predeps=$lt_predeps
 
11296
 
 
11297
# Dependencies to place after the objects being linked to create a
 
11298
# shared library.
 
11299
postdeps=$lt_postdeps
 
11300
 
 
11301
# The library search path used internally by the compiler when linking
 
11302
# a shared library.
 
11303
compiler_lib_search_path=$lt_compiler_lib_search_path
 
11304
 
6717
11305
# Method to check whether dependent libraries are shared objects.
6718
11306
deplibs_check_method=$lt_deplibs_check_method
6719
11307
 
6733
11321
finish_eval=$lt_finish_eval
6734
11322
 
6735
11323
# Take the output of nm and produce a listing of raw symbols and C names.
6736
 
global_symbol_pipe=$lt_global_symbol_pipe
 
11324
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
6737
11325
 
6738
11326
# Transform the output of nm in a proper C declaration
6739
 
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
 
11327
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
11328
 
 
11329
# Transform the output of nm in a C name address pair
 
11330
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
6740
11331
 
6741
11332
# This is the shared library runtime path variable.
6742
11333
runpath_var=$runpath_var
6757
11348
# This must work even if \$libdir does not exist.
6758
11349
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6759
11350
 
 
11351
# If ld is used when linking, flag to hardcode \$libdir into
 
11352
# a binary during linking. This must work even if \$libdir does
 
11353
# not exist.
 
11354
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
11355
 
6760
11356
# Whether we need a single -rpath flag with a separated argument.
6761
11357
hardcode_libdir_separator=$lt_hardcode_libdir_separator
6762
11358
 
6763
 
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
 
11359
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
6764
11360
# resulting binary.
6765
11361
hardcode_direct=$hardcode_direct
6766
11362
 
6772
11368
# the resulting binary.
6773
11369
hardcode_shlibpath_var=$hardcode_shlibpath_var
6774
11370
 
 
11371
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
11372
# and all subsequent libraries and executables linked against it.
 
11373
hardcode_automatic=$hardcode_automatic
 
11374
 
6775
11375
# Variables whose values should be saved in libtool wrapper scripts and
6776
11376
# restored at relink time.
6777
11377
variables_saved_for_relink="$variables_saved_for_relink"
6807
11407
 
6808
11408
__EOF__
6809
11409
 
 
11410
 
6810
11411
  case $host_os in
6811
11412
  aix3*)
6812
 
    cat <<\EOF >> "${ofile}T"
 
11413
    cat <<\EOF >> "$cfgfile"
6813
11414
 
6814
11415
# AIX sometimes has problems with the GCC collect2 program.  For some
6815
11416
# reason, if we set the COLLECT_NAMES environment variable, the problems
6822
11423
    ;;
6823
11424
  esac
6824
11425
 
6825
 
  case $host_os in
6826
 
  cygwin* | mingw* | pw32* | os2*)
6827
 
    cat <<'EOF' >> "${ofile}T"
6828
 
      # This is a source program that is used to create dlls on Windows
6829
 
      # Don't remove nor modify the starting and closing comments
6830
 
# /* ltdll.c starts here */
6831
 
# #define WIN32_LEAN_AND_MEAN
6832
 
# #include <windows.h>
6833
 
# #undef WIN32_LEAN_AND_MEAN
6834
 
# #include <stdio.h>
6835
 
#
6836
 
# #ifndef __CYGWIN__
6837
 
# #  ifdef __CYGWIN32__
6838
 
# #    define __CYGWIN__ __CYGWIN32__
6839
 
# #  endif
6840
 
# #endif
6841
 
#
6842
 
# #ifdef __cplusplus
6843
 
# extern "C" {
6844
 
# #endif
6845
 
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6846
 
# #ifdef __cplusplus
6847
 
# }
6848
 
# #endif
6849
 
#
6850
 
# #ifdef __CYGWIN__
6851
 
# #include <cygwin/cygwin_dll.h>
6852
 
# DECLARE_CYGWIN_DLL( DllMain );
6853
 
# #endif
6854
 
# HINSTANCE __hDllInstance_base;
6855
 
#
6856
 
# BOOL APIENTRY
6857
 
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6858
 
# {
6859
 
#   __hDllInstance_base = hInst;
6860
 
#   return TRUE;
6861
 
# }
6862
 
# /* ltdll.c ends here */
6863
 
        # This is a source program that is used to create import libraries
6864
 
        # on Windows for dlls which lack them. Don't remove nor modify the
6865
 
        # starting and closing comments
6866
 
# /* impgen.c starts here */
6867
 
# /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
6868
 
#
6869
 
#  This file is part of GNU libtool.
6870
 
#
6871
 
#  This program is free software; you can redistribute it and/or modify
6872
 
#  it under the terms of the GNU General Public License as published by
6873
 
#  the Free Software Foundation; either version 2 of the License, or
6874
 
#  (at your option) any later version.
6875
 
#
6876
 
#  This program is distributed in the hope that it will be useful,
6877
 
#  but WITHOUT ANY WARRANTY; without even the implied warranty of
6878
 
#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
6879
 
#  GNU General Public License for more details.
6880
 
#
6881
 
#  You should have received a copy of the GNU General Public License
6882
 
#  along with this program; if not, write to the Free Software
6883
 
#  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6884
 
#  */
6885
 
#
6886
 
# #include <stdio.h>            /* for printf() */
6887
 
# #include <unistd.h>           /* for open(), lseek(), read() */
6888
 
# #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
6889
 
# #include <string.h>           /* for strdup() */
6890
 
#
6891
 
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
6892
 
# #ifndef O_BINARY
6893
 
# #define O_BINARY 0
6894
 
# #endif
6895
 
#
6896
 
# static unsigned int
6897
 
# pe_get16 (fd, offset)
6898
 
#      int fd;
6899
 
#      int offset;
6900
 
# {
6901
 
#   unsigned char b[2];
6902
 
#   lseek (fd, offset, SEEK_SET);
6903
 
#   read (fd, b, 2);
6904
 
#   return b[0] + (b[1]<<8);
6905
 
# }
6906
 
#
6907
 
# static unsigned int
6908
 
# pe_get32 (fd, offset)
6909
 
#     int fd;
6910
 
#     int offset;
6911
 
# {
6912
 
#   unsigned char b[4];
6913
 
#   lseek (fd, offset, SEEK_SET);
6914
 
#   read (fd, b, 4);
6915
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6916
 
# }
6917
 
#
6918
 
# static unsigned int
6919
 
# pe_as32 (ptr)
6920
 
#      void *ptr;
6921
 
# {
6922
 
#   unsigned char *b = ptr;
6923
 
#   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6924
 
# }
6925
 
#
6926
 
# int
6927
 
# main (argc, argv)
6928
 
#     int argc;
6929
 
#     char *argv[];
6930
 
# {
6931
 
#     int dll;
6932
 
#     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6933
 
#     unsigned long export_rva, export_size, nsections, secptr, expptr;
6934
 
#     unsigned long name_rvas, nexp;
6935
 
#     unsigned char *expdata, *erva;
6936
 
#     char *filename, *dll_name;
6937
 
#
6938
 
#     filename = argv[1];
6939
 
#
6940
 
#     dll = open(filename, O_RDONLY|O_BINARY);
6941
 
#     if (dll < 1)
6942
 
#       return 1;
6943
 
#
6944
 
#     dll_name = filename;
6945
 
#
6946
 
#     for (i=0; filename[i]; i++)
6947
 
#       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
6948
 
#           dll_name = filename + i +1;
6949
 
#
6950
 
#     pe_header_offset = pe_get32 (dll, 0x3c);
6951
 
#     opthdr_ofs = pe_header_offset + 4 + 20;
6952
 
#     num_entries = pe_get32 (dll, opthdr_ofs + 92);
6953
 
#
6954
 
#     if (num_entries < 1) /* no exports */
6955
 
#       return 1;
6956
 
#
6957
 
#     export_rva = pe_get32 (dll, opthdr_ofs + 96);
6958
 
#     export_size = pe_get32 (dll, opthdr_ofs + 100);
6959
 
#     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6960
 
#     secptr = (pe_header_offset + 4 + 20 +
6961
 
#             pe_get16 (dll, pe_header_offset + 4 + 16));
6962
 
#
6963
 
#     expptr = 0;
6964
 
#     for (i = 0; i < nsections; i++)
6965
 
#     {
6966
 
#       char sname[8];
6967
 
#       unsigned long secptr1 = secptr + 40 * i;
6968
 
#       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6969
 
#       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6970
 
#       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6971
 
#       lseek(dll, secptr1, SEEK_SET);
6972
 
#       read(dll, sname, 8);
6973
 
#       if (vaddr <= export_rva && vaddr+vsize > export_rva)
6974
 
#       {
6975
 
#           expptr = fptr + (export_rva - vaddr);
6976
 
#           if (export_rva + export_size > vaddr + vsize)
6977
 
#               export_size = vsize - (export_rva - vaddr);
6978
 
#           break;
6979
 
#       }
6980
 
#     }
6981
 
#
6982
 
#     expdata = (unsigned char*)malloc(export_size);
6983
 
#     lseek (dll, expptr, SEEK_SET);
6984
 
#     read (dll, expdata, export_size);
6985
 
#     erva = expdata - export_rva;
6986
 
#
6987
 
#     nexp = pe_as32 (expdata+24);
6988
 
#     name_rvas = pe_as32 (expdata+32);
6989
 
#
6990
 
#     printf ("EXPORTS\n");
6991
 
#     for (i = 0; i<nexp; i++)
6992
 
#     {
6993
 
#       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
6994
 
#       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
6995
 
#     }
6996
 
#
6997
 
#     return 0;
6998
 
# }
6999
 
# /* impgen.c ends here */
7000
 
 
7001
 
EOF
7002
 
    ;;
7003
 
  esac
7004
 
 
7005
11426
  # We use sed instead of cat because bash on DJGPP gets confused if
7006
11427
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
7007
11428
  # text mode, it properly converts lines to CR/LF.  This bash problem
7008
11429
  # is reportedly fixed, but why not run on old versions too?
7009
 
  sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
 
11430
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
7010
11431
 
7011
 
  mv -f "${ofile}T" "$ofile" || \
7012
 
    (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
 
11432
  mv -f "$cfgfile" "$ofile" || \
 
11433
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
7013
11434
  chmod +x "$ofile"
7014
 
fi
 
11435
 
 
11436
else
 
11437
  # If there is no Makefile yet, we rely on a make rule to execute
 
11438
  # `config.status --recheck' to rerun these tests and create the
 
11439
  # libtool script then.
 
11440
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
11441
  if test -f "$ltmain_in"; then
 
11442
    test -f Makefile && make "$ltmain"
 
11443
  fi
 
11444
fi
 
11445
 
 
11446
 
 
11447
ac_ext=c
 
11448
ac_cpp='$CPP $CPPFLAGS'
 
11449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11452
 
 
11453
CC="$lt_save_CC"
 
11454
 
 
11455
 
 
11456
# Check whether --with-tags or --without-tags was given.
 
11457
if test "${with_tags+set}" = set; then
 
11458
  withval="$with_tags"
 
11459
  tagnames="$withval"
 
11460
fi;
 
11461
 
 
11462
if test -f "$ltmain" && test -n "$tagnames"; then
 
11463
  if test ! -f "${ofile}"; then
 
11464
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
11465
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
11466
  fi
 
11467
 
 
11468
  if test -z "$LTCC"; then
 
11469
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
11470
    if test -z "$LTCC"; then
 
11471
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
11472
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
11473
    else
 
11474
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
11475
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
11476
    fi
 
11477
  fi
 
11478
 
 
11479
  # Extract list of available tagged configurations in $ofile.
 
11480
  # Note that this assumes the entire list is on one line.
 
11481
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
11482
 
 
11483
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
11484
  for tagname in $tagnames; do
 
11485
    IFS="$lt_save_ifs"
 
11486
    # Check whether tagname contains only valid characters
 
11487
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
11488
    "") ;;
 
11489
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
11490
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
11491
   { (exit 1); exit 1; }; }
 
11492
        ;;
 
11493
    esac
 
11494
 
 
11495
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
11496
    then
 
11497
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
11498
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
11499
   { (exit 1); exit 1; }; }
 
11500
    fi
 
11501
 
 
11502
    # Update the list of available tags.
 
11503
    if test -n "$tagname"; then
 
11504
      echo appending configuration tag \"$tagname\" to $ofile
 
11505
 
 
11506
      case $tagname in
 
11507
      CXX)
 
11508
        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
 
11509
            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
 
11510
            (test "X$CXX" != "Xg++"))) ; then
 
11511
          ac_ext=cc
 
11512
ac_cpp='$CXXCPP $CPPFLAGS'
 
11513
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11514
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11515
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11516
 
 
11517
 
 
11518
 
 
11519
 
 
11520
archive_cmds_need_lc_CXX=no
 
11521
allow_undefined_flag_CXX=
 
11522
always_export_symbols_CXX=no
 
11523
archive_expsym_cmds_CXX=
 
11524
export_dynamic_flag_spec_CXX=
 
11525
hardcode_direct_CXX=no
 
11526
hardcode_libdir_flag_spec_CXX=
 
11527
hardcode_libdir_flag_spec_ld_CXX=
 
11528
hardcode_libdir_separator_CXX=
 
11529
hardcode_minus_L_CXX=no
 
11530
hardcode_automatic_CXX=no
 
11531
module_cmds_CXX=
 
11532
module_expsym_cmds_CXX=
 
11533
link_all_deplibs_CXX=unknown
 
11534
old_archive_cmds_CXX=$old_archive_cmds
 
11535
no_undefined_flag_CXX=
 
11536
whole_archive_flag_spec_CXX=
 
11537
enable_shared_with_static_runtimes_CXX=no
 
11538
 
 
11539
# Dependencies to place before and after the object being linked:
 
11540
predep_objects_CXX=
 
11541
postdep_objects_CXX=
 
11542
predeps_CXX=
 
11543
postdeps_CXX=
 
11544
compiler_lib_search_path_CXX=
 
11545
 
 
11546
# Source file extension for C++ test sources.
 
11547
ac_ext=cc
 
11548
 
 
11549
# Object file extension for compiled C++ test sources.
 
11550
objext=o
 
11551
objext_CXX=$objext
 
11552
 
 
11553
# Code to be used in simple compile tests
 
11554
lt_simple_compile_test_code="int some_variable = 0;\n"
 
11555
 
 
11556
# Code to be used in simple link tests
 
11557
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
11558
 
 
11559
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
11560
 
 
11561
# If no C compiler was specified, use CC.
 
11562
LTCC=${LTCC-"$CC"}
 
11563
 
 
11564
# Allow CC to be a program name with arguments.
 
11565
compiler=$CC
 
11566
 
 
11567
 
 
11568
# Allow CC to be a program name with arguments.
 
11569
lt_save_CC=$CC
 
11570
lt_save_LD=$LD
 
11571
lt_save_GCC=$GCC
 
11572
GCC=$GXX
 
11573
lt_save_with_gnu_ld=$with_gnu_ld
 
11574
lt_save_path_LD=$lt_cv_path_LD
 
11575
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
11576
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
11577
else
 
11578
  unset lt_cv_prog_gnu_ld
 
11579
fi
 
11580
if test -n "${lt_cv_path_LDCXX+set}"; then
 
11581
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
11582
else
 
11583
  unset lt_cv_path_LD
 
11584
fi
 
11585
test -z "${LDCXX+set}" || LD=$LDCXX
 
11586
CC=${CXX-"c++"}
 
11587
compiler=$CC
 
11588
compiler_CXX=$CC
 
11589
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
11590
 
 
11591
# We don't want -fno-exception wen compiling C++ code, so set the
 
11592
# no_builtin_flag separately
 
11593
if test "$GXX" = yes; then
 
11594
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
11595
else
 
11596
  lt_prog_compiler_no_builtin_flag_CXX=
 
11597
fi
 
11598
 
 
11599
if test "$GXX" = yes; then
 
11600
  # Set up default GNU C++ configuration
 
11601
 
 
11602
 
 
11603
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
11604
if test "${with_gnu_ld+set}" = set; then
 
11605
  withval="$with_gnu_ld"
 
11606
  test "$withval" = no || with_gnu_ld=yes
 
11607
else
 
11608
  with_gnu_ld=no
 
11609
fi;
 
11610
ac_prog=ld
 
11611
if test "$GCC" = yes; then
 
11612
  # Check if gcc -print-prog-name=ld gives a path.
 
11613
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
11614
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
11615
  case $host in
 
11616
  *-*-mingw*)
 
11617
    # gcc leaves a trailing carriage return which upsets mingw
 
11618
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
11619
  *)
 
11620
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
11621
  esac
 
11622
  case $ac_prog in
 
11623
    # Accept absolute paths.
 
11624
    [\\/]* | ?:[\\/]*)
 
11625
      re_direlt='/[^/][^/]*/\.\./'
 
11626
      # Canonicalize the pathname of ld
 
11627
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
11628
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
11629
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
11630
      done
 
11631
      test -z "$LD" && LD="$ac_prog"
 
11632
      ;;
 
11633
  "")
 
11634
    # If it fails, then pretend we aren't using GCC.
 
11635
    ac_prog=ld
 
11636
    ;;
 
11637
  *)
 
11638
    # If it is relative, then search for the first ld in PATH.
 
11639
    with_gnu_ld=unknown
 
11640
    ;;
 
11641
  esac
 
11642
elif test "$with_gnu_ld" = yes; then
 
11643
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
11644
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
11645
else
 
11646
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
11647
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
11648
fi
 
11649
if test "${lt_cv_path_LD+set}" = set; then
 
11650
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11651
else
 
11652
  if test -z "$LD"; then
 
11653
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
11654
  for ac_dir in $PATH; do
 
11655
    IFS="$lt_save_ifs"
 
11656
    test -z "$ac_dir" && ac_dir=.
 
11657
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
11658
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
11659
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
11660
      # but apparently some GNU ld's only accept -v.
 
11661
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
11662
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
11663
      *GNU* | *'with BFD'*)
 
11664
        test "$with_gnu_ld" != no && break
 
11665
        ;;
 
11666
      *)
 
11667
        test "$with_gnu_ld" != yes && break
 
11668
        ;;
 
11669
      esac
 
11670
    fi
 
11671
  done
 
11672
  IFS="$lt_save_ifs"
 
11673
else
 
11674
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
11675
fi
 
11676
fi
 
11677
 
 
11678
LD="$lt_cv_path_LD"
 
11679
if test -n "$LD"; then
 
11680
  echo "$as_me:$LINENO: result: $LD" >&5
 
11681
echo "${ECHO_T}$LD" >&6
 
11682
else
 
11683
  echo "$as_me:$LINENO: result: no" >&5
 
11684
echo "${ECHO_T}no" >&6
 
11685
fi
 
11686
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
11687
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
11688
   { (exit 1); exit 1; }; }
 
11689
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
11690
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
11691
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
11692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11693
else
 
11694
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
11695
case `$LD -v 2>&1 </dev/null` in
 
11696
*GNU* | *'with BFD'*)
 
11697
  lt_cv_prog_gnu_ld=yes
 
11698
  ;;
 
11699
*)
 
11700
  lt_cv_prog_gnu_ld=no
 
11701
  ;;
 
11702
esac
 
11703
fi
 
11704
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
11705
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
11706
with_gnu_ld=$lt_cv_prog_gnu_ld
 
11707
 
 
11708
 
 
11709
 
 
11710
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
11711
  # archiving commands below assume that GNU ld is being used.
 
11712
  if test "$with_gnu_ld" = yes; then
 
11713
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11714
    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
11715
 
 
11716
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
11717
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11718
 
 
11719
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
11720
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
11721
    #     investigate it a little bit more. (MM)
 
11722
    wlarc='${wl}'
 
11723
 
 
11724
    # ancient GNU ld didn't support --whole-archive et. al.
 
11725
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
11726
        grep 'no-whole-archive' > /dev/null; then
 
11727
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
11728
    else
 
11729
      whole_archive_flag_spec_CXX=
 
11730
    fi
 
11731
  else
 
11732
    with_gnu_ld=no
 
11733
    wlarc=
 
11734
 
 
11735
    # A generic and very simple default shared library creation
 
11736
    # command for GNU C++ for the case where it uses the native
 
11737
    # linker, instead of GNU ld.  If possible, this setting should
 
11738
    # overridden to take advantage of the native linker features on
 
11739
    # the platform it is being used on.
 
11740
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
11741
  fi
 
11742
 
 
11743
  # Commands to make compiler produce verbose output that lists
 
11744
  # what "hidden" libraries, object files and flags are used when
 
11745
  # linking a shared library.
 
11746
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11747
 
 
11748
else
 
11749
  GXX=no
 
11750
  with_gnu_ld=no
 
11751
  wlarc=
 
11752
fi
 
11753
 
 
11754
# PORTME: fill in a description of your system's C++ link characteristics
 
11755
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
11756
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
11757
ld_shlibs_CXX=yes
 
11758
case $host_os in
 
11759
  aix3*)
 
11760
    # FIXME: insert proper C++ library support
 
11761
    ld_shlibs_CXX=no
 
11762
    ;;
 
11763
  aix4* | aix5*)
 
11764
    if test "$host_cpu" = ia64; then
 
11765
      # On IA64, the linker does run time linking by default, so we don't
 
11766
      # have to do anything special.
 
11767
      aix_use_runtimelinking=no
 
11768
      exp_sym_flag='-Bexport'
 
11769
      no_entry_flag=""
 
11770
    else
 
11771
      aix_use_runtimelinking=no
 
11772
 
 
11773
      # Test if we are trying to use run time linking or normal
 
11774
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
11775
      # need to do runtime linking.
 
11776
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
11777
        for ld_flag in $LDFLAGS; do
 
11778
          case $ld_flag in
 
11779
          *-brtl*)
 
11780
            aix_use_runtimelinking=yes
 
11781
            break
 
11782
            ;;
 
11783
          esac
 
11784
        done
 
11785
      esac
 
11786
 
 
11787
      exp_sym_flag='-bexport'
 
11788
      no_entry_flag='-bnoentry'
 
11789
    fi
 
11790
 
 
11791
    # When large executables or shared objects are built, AIX ld can
 
11792
    # have problems creating the table of contents.  If linking a library
 
11793
    # or program results in "error TOC overflow" add -mminimal-toc to
 
11794
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
11795
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
11796
 
 
11797
    archive_cmds_CXX=''
 
11798
    hardcode_direct_CXX=yes
 
11799
    hardcode_libdir_separator_CXX=':'
 
11800
    link_all_deplibs_CXX=yes
 
11801
 
 
11802
    if test "$GXX" = yes; then
 
11803
      case $host_os in aix4.012|aix4.012.*)
 
11804
      # We only want to do this on AIX 4.2 and lower, the check
 
11805
      # below for broken collect2 doesn't work under 4.3+
 
11806
        collect2name=`${CC} -print-prog-name=collect2`
 
11807
        if test -f "$collect2name" && \
 
11808
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
11809
        then
 
11810
          # We have reworked collect2
 
11811
          hardcode_direct_CXX=yes
 
11812
        else
 
11813
          # We have old collect2
 
11814
          hardcode_direct_CXX=unsupported
 
11815
          # It fails to find uninstalled libraries when the uninstalled
 
11816
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
11817
          # to unsupported forces relinking
 
11818
          hardcode_minus_L_CXX=yes
 
11819
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11820
          hardcode_libdir_separator_CXX=
 
11821
        fi
 
11822
      esac
 
11823
      shared_flag='-shared'
 
11824
    else
 
11825
      # not using gcc
 
11826
      if test "$host_cpu" = ia64; then
 
11827
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
11828
        # chokes on -Wl,-G. The following line is correct:
 
11829
        shared_flag='-G'
 
11830
      else
 
11831
        if test "$aix_use_runtimelinking" = yes; then
 
11832
          shared_flag='${wl}-G'
 
11833
        else
 
11834
          shared_flag='${wl}-bM:SRE'
 
11835
        fi
 
11836
      fi
 
11837
    fi
 
11838
 
 
11839
    # It seems that -bexpall does not export symbols beginning with
 
11840
    # underscore (_), so it is better to generate a list of symbols to export.
 
11841
    always_export_symbols_CXX=yes
 
11842
    if test "$aix_use_runtimelinking" = yes; then
 
11843
      # Warning - without using the other runtime loading flags (-brtl),
 
11844
      # -berok will link without error, but may produce a broken library.
 
11845
      allow_undefined_flag_CXX='-berok'
 
11846
      # Determine the default libpath from the value encoded in an empty executable.
 
11847
      cat >conftest.$ac_ext <<_ACEOF
 
11848
/* confdefs.h.  */
 
11849
_ACEOF
 
11850
cat confdefs.h >>conftest.$ac_ext
 
11851
cat >>conftest.$ac_ext <<_ACEOF
 
11852
/* end confdefs.h.  */
 
11853
 
 
11854
int
 
11855
main ()
 
11856
{
 
11857
 
 
11858
  ;
 
11859
  return 0;
 
11860
}
 
11861
_ACEOF
 
11862
rm -f conftest.$ac_objext conftest$ac_exeext
 
11863
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11864
  (eval $ac_link) 2>conftest.er1
 
11865
  ac_status=$?
 
11866
  grep -v '^ *+' conftest.er1 >conftest.err
 
11867
  rm -f conftest.er1
 
11868
  cat conftest.err >&5
 
11869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11870
  (exit $ac_status); } &&
 
11871
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11872
                         || test ! -s conftest.err'
 
11873
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11874
  (eval $ac_try) 2>&5
 
11875
  ac_status=$?
 
11876
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11877
  (exit $ac_status); }; } &&
 
11878
         { ac_try='test -s conftest$ac_exeext'
 
11879
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11880
  (eval $ac_try) 2>&5
 
11881
  ac_status=$?
 
11882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11883
  (exit $ac_status); }; }; then
 
11884
 
 
11885
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11886
}'`
 
11887
# Check for a 64-bit object if we didn't find anything.
 
11888
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11889
}'`; fi
 
11890
else
 
11891
  echo "$as_me: failed program was:" >&5
 
11892
sed 's/^/| /' conftest.$ac_ext >&5
 
11893
 
 
11894
fi
 
11895
rm -f conftest.err conftest.$ac_objext \
 
11896
      conftest$ac_exeext conftest.$ac_ext
 
11897
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11898
 
 
11899
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11900
 
 
11901
      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
11902
     else
 
11903
      if test "$host_cpu" = ia64; then
 
11904
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
11905
        allow_undefined_flag_CXX="-z nodefs"
 
11906
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
11907
      else
 
11908
        # Determine the default libpath from the value encoded in an empty executable.
 
11909
        cat >conftest.$ac_ext <<_ACEOF
 
11910
/* confdefs.h.  */
 
11911
_ACEOF
 
11912
cat confdefs.h >>conftest.$ac_ext
 
11913
cat >>conftest.$ac_ext <<_ACEOF
 
11914
/* end confdefs.h.  */
 
11915
 
 
11916
int
 
11917
main ()
 
11918
{
 
11919
 
 
11920
  ;
 
11921
  return 0;
 
11922
}
 
11923
_ACEOF
 
11924
rm -f conftest.$ac_objext conftest$ac_exeext
 
11925
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
11926
  (eval $ac_link) 2>conftest.er1
 
11927
  ac_status=$?
 
11928
  grep -v '^ *+' conftest.er1 >conftest.err
 
11929
  rm -f conftest.er1
 
11930
  cat conftest.err >&5
 
11931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11932
  (exit $ac_status); } &&
 
11933
         { ac_try='test -z "$ac_cxx_werror_flag"
 
11934
                         || test ! -s conftest.err'
 
11935
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11936
  (eval $ac_try) 2>&5
 
11937
  ac_status=$?
 
11938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11939
  (exit $ac_status); }; } &&
 
11940
         { ac_try='test -s conftest$ac_exeext'
 
11941
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
11942
  (eval $ac_try) 2>&5
 
11943
  ac_status=$?
 
11944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11945
  (exit $ac_status); }; }; then
 
11946
 
 
11947
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11948
}'`
 
11949
# Check for a 64-bit object if we didn't find anything.
 
11950
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
11951
}'`; fi
 
11952
else
 
11953
  echo "$as_me: failed program was:" >&5
 
11954
sed 's/^/| /' conftest.$ac_ext >&5
 
11955
 
 
11956
fi
 
11957
rm -f conftest.err conftest.$ac_objext \
 
11958
      conftest$ac_exeext conftest.$ac_ext
 
11959
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
11960
 
 
11961
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
11962
        # Warning - without using the other run time loading flags,
 
11963
        # -berok will link without error, but may produce a broken library.
 
11964
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
11965
        allow_undefined_flag_CXX=' ${wl}-berok'
 
11966
        # -bexpall does not export symbols beginning with underscore (_)
 
11967
        always_export_symbols_CXX=yes
 
11968
        # Exported symbols can be pulled into shared objects from archives
 
11969
        whole_archive_flag_spec_CXX=' '
 
11970
        archive_cmds_need_lc_CXX=yes
 
11971
        # This is similar to how AIX traditionally builds it's shared libraries.
 
11972
        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
11973
      fi
 
11974
    fi
 
11975
    ;;
 
11976
  chorus*)
 
11977
    case $cc_basename in
 
11978
      *)
 
11979
        # FIXME: insert proper C++ library support
 
11980
        ld_shlibs_CXX=no
 
11981
        ;;
 
11982
    esac
 
11983
    ;;
 
11984
 
 
11985
 
 
11986
  cygwin* | mingw* | pw32*)
 
11987
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
11988
    # as there is no search path for DLLs.
 
11989
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11990
    allow_undefined_flag_CXX=unsupported
 
11991
    always_export_symbols_CXX=no
 
11992
    enable_shared_with_static_runtimes_CXX=yes
 
11993
 
 
11994
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
11995
      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
11996
      # If the export-symbols file already is a .def file (1st line
 
11997
      # is EXPORTS), use it as is; otherwise, prepend...
 
11998
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
11999
        cp $export_symbols $output_objdir/$soname.def;
 
12000
      else
 
12001
        echo EXPORTS > $output_objdir/$soname.def;
 
12002
        cat $export_symbols >> $output_objdir/$soname.def;
 
12003
      fi~
 
12004
      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
12005
    else
 
12006
      ld_shlibs_CXX=no
 
12007
    fi
 
12008
  ;;
 
12009
      darwin* | rhapsody*)
 
12010
        case "$host_os" in
 
12011
        rhapsody* | darwin1.[012])
 
12012
         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
 
12013
         ;;
 
12014
       *) # Darwin 1.3 on
 
12015
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
12016
           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12017
         else
 
12018
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
12019
             10.[012])
 
12020
               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
12021
               ;;
 
12022
             10.*)
 
12023
               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
 
12024
               ;;
 
12025
           esac
 
12026
         fi
 
12027
         ;;
 
12028
        esac
 
12029
      archive_cmds_need_lc_CXX=no
 
12030
      hardcode_direct_CXX=no
 
12031
      hardcode_automatic_CXX=yes
 
12032
      hardcode_shlibpath_var_CXX=unsupported
 
12033
      whole_archive_flag_spec_CXX=''
 
12034
      link_all_deplibs_CXX=yes
 
12035
 
 
12036
    if test "$GXX" = yes ; then
 
12037
      lt_int_apple_cc_single_mod=no
 
12038
      output_verbose_link_cmd='echo'
 
12039
      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
 
12040
       lt_int_apple_cc_single_mod=yes
 
12041
      fi
 
12042
      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12043
       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
12044
      else
 
12045
          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'
 
12046
        fi
 
12047
        module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12048
        # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12049
          if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
12050
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12051
          else
 
12052
            archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12053
          fi
 
12054
            module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12055
      else
 
12056
      case "$cc_basename" in
 
12057
        xlc*)
 
12058
         output_verbose_link_cmd='echo'
 
12059
          archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
12060
          module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
12061
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
12062
          archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12063
          module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
12064
          ;;
 
12065
       *)
 
12066
         ld_shlibs_CXX=no
 
12067
          ;;
 
12068
      esac
 
12069
      fi
 
12070
        ;;
 
12071
 
 
12072
  dgux*)
 
12073
    case $cc_basename in
 
12074
      ec++)
 
12075
        # FIXME: insert proper C++ library support
 
12076
        ld_shlibs_CXX=no
 
12077
        ;;
 
12078
      ghcx)
 
12079
        # Green Hills C++ Compiler
 
12080
        # FIXME: insert proper C++ library support
 
12081
        ld_shlibs_CXX=no
 
12082
        ;;
 
12083
      *)
 
12084
        # FIXME: insert proper C++ library support
 
12085
        ld_shlibs_CXX=no
 
12086
        ;;
 
12087
    esac
 
12088
    ;;
 
12089
  freebsd12*)
 
12090
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
12091
    ld_shlibs_CXX=no
 
12092
    ;;
 
12093
  freebsd-elf*)
 
12094
    archive_cmds_need_lc_CXX=no
 
12095
    ;;
 
12096
  freebsd* | kfreebsd*-gnu)
 
12097
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
12098
    # conventions
 
12099
    ld_shlibs_CXX=yes
 
12100
    ;;
 
12101
  gnu*)
 
12102
    ;;
 
12103
  hpux9*)
 
12104
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12105
    hardcode_libdir_separator_CXX=:
 
12106
    export_dynamic_flag_spec_CXX='${wl}-E'
 
12107
    hardcode_direct_CXX=yes
 
12108
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12109
                                # but as the default
 
12110
                                # location of the library.
 
12111
 
 
12112
    case $cc_basename in
 
12113
    CC)
 
12114
      # FIXME: insert proper C++ library support
 
12115
      ld_shlibs_CXX=no
 
12116
      ;;
 
12117
    aCC)
 
12118
      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'
 
12119
      # Commands to make compiler produce verbose output that lists
 
12120
      # what "hidden" libraries, object files and flags are used when
 
12121
      # linking a shared library.
 
12122
      #
 
12123
      # There doesn't appear to be a way to prevent this compiler from
 
12124
      # explicitly linking system object files so we need to strip them
 
12125
      # from the output so that they don't get included in the library
 
12126
      # dependencies.
 
12127
      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; echo $list'
 
12128
      ;;
 
12129
    *)
 
12130
      if test "$GXX" = yes; then
 
12131
        archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
 
12132
      else
 
12133
        # FIXME: insert proper C++ library support
 
12134
        ld_shlibs_CXX=no
 
12135
      fi
 
12136
      ;;
 
12137
    esac
 
12138
    ;;
 
12139
  hpux10*|hpux11*)
 
12140
    if test $with_gnu_ld = no; then
 
12141
      case "$host_cpu" in
 
12142
      hppa*64*)
 
12143
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12144
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
12145
        hardcode_libdir_separator_CXX=:
 
12146
        ;;
 
12147
      ia64*)
 
12148
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
12149
        ;;
 
12150
      *)
 
12151
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
12152
        hardcode_libdir_separator_CXX=:
 
12153
        export_dynamic_flag_spec_CXX='${wl}-E'
 
12154
        ;;
 
12155
      esac
 
12156
    fi
 
12157
    case "$host_cpu" in
 
12158
    hppa*64*)
 
12159
      hardcode_direct_CXX=no
 
12160
      hardcode_shlibpath_var_CXX=no
 
12161
      ;;
 
12162
    ia64*)
 
12163
      hardcode_direct_CXX=no
 
12164
      hardcode_shlibpath_var_CXX=no
 
12165
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12166
                                              # but as the default
 
12167
                                              # location of the library.
 
12168
      ;;
 
12169
    *)
 
12170
      hardcode_direct_CXX=yes
 
12171
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
12172
                                              # but as the default
 
12173
                                              # location of the library.
 
12174
      ;;
 
12175
    esac
 
12176
 
 
12177
    case $cc_basename in
 
12178
      CC)
 
12179
        # FIXME: insert proper C++ library support
 
12180
        ld_shlibs_CXX=no
 
12181
        ;;
 
12182
      aCC)
 
12183
        case "$host_cpu" in
 
12184
        hppa*64*|ia64*)
 
12185
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12186
          ;;
 
12187
        *)
 
12188
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12189
          ;;
 
12190
        esac
 
12191
        # Commands to make compiler produce verbose output that lists
 
12192
        # what "hidden" libraries, object files and flags are used when
 
12193
        # linking a shared library.
 
12194
        #
 
12195
        # There doesn't appear to be a way to prevent this compiler from
 
12196
        # explicitly linking system object files so we need to strip them
 
12197
        # from the output so that they don't get included in the library
 
12198
        # dependencies.
 
12199
        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; echo $list'
 
12200
        ;;
 
12201
      *)
 
12202
        if test "$GXX" = yes; then
 
12203
          if test $with_gnu_ld = no; then
 
12204
            case "$host_cpu" in
 
12205
            ia64*|hppa*64*)
 
12206
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
12207
              ;;
 
12208
            *)
 
12209
              archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12210
              ;;
 
12211
            esac
 
12212
          fi
 
12213
        else
 
12214
          # FIXME: insert proper C++ library support
 
12215
          ld_shlibs_CXX=no
 
12216
        fi
 
12217
        ;;
 
12218
    esac
 
12219
    ;;
 
12220
  irix5* | irix6*)
 
12221
    case $cc_basename in
 
12222
      CC)
 
12223
        # SGI C++
 
12224
        archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12225
 
 
12226
        # Archives containing C++ object files must be created using
 
12227
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
12228
        # necessary to make sure instantiated templates are included
 
12229
        # in the archive.
 
12230
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
12231
        ;;
 
12232
      *)
 
12233
        if test "$GXX" = yes; then
 
12234
          if test "$with_gnu_ld" = no; then
 
12235
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12236
          else
 
12237
            archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
 
12238
          fi
 
12239
        fi
 
12240
        link_all_deplibs_CXX=yes
 
12241
        ;;
 
12242
    esac
 
12243
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12244
    hardcode_libdir_separator_CXX=:
 
12245
    ;;
 
12246
  linux*)
 
12247
    case $cc_basename in
 
12248
      KCC)
 
12249
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12250
 
 
12251
        # KCC will only create a shared library if the output file
 
12252
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12253
        # to its proper name (with version) after linking.
 
12254
        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'
 
12255
        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'
 
12256
        # Commands to make compiler produce verbose output that lists
 
12257
        # what "hidden" libraries, object files and flags are used when
 
12258
        # linking a shared library.
 
12259
        #
 
12260
        # There doesn't appear to be a way to prevent this compiler from
 
12261
        # explicitly linking system object files so we need to strip them
 
12262
        # from the output so that they don't get included in the library
 
12263
        # dependencies.
 
12264
        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; echo $list'
 
12265
 
 
12266
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
12267
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12268
 
 
12269
        # Archives containing C++ object files must be created using
 
12270
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12271
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12272
        ;;
 
12273
      icpc)
 
12274
        # Intel C++
 
12275
        with_gnu_ld=yes
 
12276
        # version 8.0 and above of icpc choke on multiply defined symbols
 
12277
        # if we add $predep_objects and $postdep_objects, however 7.1 and
 
12278
        # earlier do not add the objects themselves.
 
12279
        case `$CC -V 2>&1` in
 
12280
        *"Version 7."*)
 
12281
          archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12282
          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'
 
12283
          ;;
 
12284
        *)  # Version 8.0 or newer
 
12285
          archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12286
        archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
12287
          ;;
 
12288
        esac
 
12289
        archive_cmds_need_lc_CXX=no
 
12290
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12291
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
12292
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
12293
        ;;
 
12294
      cxx)
 
12295
        # Compaq C++
 
12296
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
12297
        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'
 
12298
 
 
12299
        runpath_var=LD_RUN_PATH
 
12300
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12301
        hardcode_libdir_separator_CXX=:
 
12302
 
 
12303
        # Commands to make compiler produce verbose output that lists
 
12304
        # what "hidden" libraries, object files and flags are used when
 
12305
        # linking a shared library.
 
12306
        #
 
12307
        # There doesn't appear to be a way to prevent this compiler from
 
12308
        # explicitly linking system object files so we need to strip them
 
12309
        # from the output so that they don't get included in the library
 
12310
        # dependencies.
 
12311
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
 
12312
        ;;
 
12313
    esac
 
12314
    ;;
 
12315
  lynxos*)
 
12316
    # FIXME: insert proper C++ library support
 
12317
    ld_shlibs_CXX=no
 
12318
    ;;
 
12319
  m88k*)
 
12320
    # FIXME: insert proper C++ library support
 
12321
    ld_shlibs_CXX=no
 
12322
    ;;
 
12323
  mvs*)
 
12324
    case $cc_basename in
 
12325
      cxx)
 
12326
        # FIXME: insert proper C++ library support
 
12327
        ld_shlibs_CXX=no
 
12328
        ;;
 
12329
      *)
 
12330
        # FIXME: insert proper C++ library support
 
12331
        ld_shlibs_CXX=no
 
12332
        ;;
 
12333
    esac
 
12334
    ;;
 
12335
  netbsd*)
 
12336
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12337
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
12338
      wlarc=
 
12339
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12340
      hardcode_direct_CXX=yes
 
12341
      hardcode_shlibpath_var_CXX=no
 
12342
    fi
 
12343
    # Workaround some broken pre-1.5 toolchains
 
12344
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
12345
    ;;
 
12346
  openbsd2*)
 
12347
    # C++ shared libraries are fairly broken
 
12348
    ld_shlibs_CXX=no
 
12349
    ;;
 
12350
  openbsd*)
 
12351
    hardcode_direct_CXX=yes
 
12352
    hardcode_shlibpath_var_CXX=no
 
12353
    archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
12354
    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12355
    if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12356
      archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
 
12357
      export_dynamic_flag_spec_CXX='${wl}-E'
 
12358
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
12359
    fi
 
12360
    output_verbose_link_cmd='echo'
 
12361
    ;;
 
12362
  osf3*)
 
12363
    case $cc_basename in
 
12364
      KCC)
 
12365
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12366
 
 
12367
        # KCC will only create a shared library if the output file
 
12368
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12369
        # to its proper name (with version) after linking.
 
12370
        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'
 
12371
 
 
12372
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12373
        hardcode_libdir_separator_CXX=:
 
12374
 
 
12375
        # Archives containing C++ object files must be created using
 
12376
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
12377
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
12378
 
 
12379
        ;;
 
12380
      RCC)
 
12381
        # Rational C++ 2.4.1
 
12382
        # FIXME: insert proper C++ library support
 
12383
        ld_shlibs_CXX=no
 
12384
        ;;
 
12385
      cxx)
 
12386
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12387
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12388
 
 
12389
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12390
        hardcode_libdir_separator_CXX=:
 
12391
 
 
12392
        # Commands to make compiler produce verbose output that lists
 
12393
        # what "hidden" libraries, object files and flags are used when
 
12394
        # linking a shared library.
 
12395
        #
 
12396
        # There doesn't appear to be a way to prevent this compiler from
 
12397
        # explicitly linking system object files so we need to strip them
 
12398
        # from the output so that they don't get included in the library
 
12399
        # dependencies.
 
12400
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
12401
        ;;
 
12402
      *)
 
12403
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12404
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12405
          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12406
 
 
12407
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12408
          hardcode_libdir_separator_CXX=:
 
12409
 
 
12410
          # Commands to make compiler produce verbose output that lists
 
12411
          # what "hidden" libraries, object files and flags are used when
 
12412
          # linking a shared library.
 
12413
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12414
 
 
12415
        else
 
12416
          # FIXME: insert proper C++ library support
 
12417
          ld_shlibs_CXX=no
 
12418
        fi
 
12419
        ;;
 
12420
    esac
 
12421
    ;;
 
12422
  osf4* | osf5*)
 
12423
    case $cc_basename in
 
12424
      KCC)
 
12425
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
12426
 
 
12427
        # KCC will only create a shared library if the output file
 
12428
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
12429
        # to its proper name (with version) after linking.
 
12430
        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'
 
12431
 
 
12432
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
12433
        hardcode_libdir_separator_CXX=:
 
12434
 
 
12435
        # Archives containing C++ object files must be created using
 
12436
        # the KAI C++ compiler.
 
12437
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
12438
        ;;
 
12439
      RCC)
 
12440
        # Rational C++ 2.4.1
 
12441
        # FIXME: insert proper C++ library support
 
12442
        ld_shlibs_CXX=no
 
12443
        ;;
 
12444
      cxx)
 
12445
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
12446
        archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
 
12447
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
12448
          echo "-hidden">> $lib.exp~
 
12449
          $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 $objdir/so_locations -o $lib~
 
12450
          $rm $lib.exp'
 
12451
 
 
12452
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
12453
        hardcode_libdir_separator_CXX=:
 
12454
 
 
12455
        # Commands to make compiler produce verbose output that lists
 
12456
        # what "hidden" libraries, object files and flags are used when
 
12457
        # linking a shared library.
 
12458
        #
 
12459
        # There doesn't appear to be a way to prevent this compiler from
 
12460
        # explicitly linking system object files so we need to strip them
 
12461
        # from the output so that they don't get included in the library
 
12462
        # dependencies.
 
12463
        output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
 
12464
        ;;
 
12465
      *)
 
12466
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12467
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
12468
         archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
 
12469
 
 
12470
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
12471
          hardcode_libdir_separator_CXX=:
 
12472
 
 
12473
          # Commands to make compiler produce verbose output that lists
 
12474
          # what "hidden" libraries, object files and flags are used when
 
12475
          # linking a shared library.
 
12476
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
12477
 
 
12478
        else
 
12479
          # FIXME: insert proper C++ library support
 
12480
          ld_shlibs_CXX=no
 
12481
        fi
 
12482
        ;;
 
12483
    esac
 
12484
    ;;
 
12485
  psos*)
 
12486
    # FIXME: insert proper C++ library support
 
12487
    ld_shlibs_CXX=no
 
12488
    ;;
 
12489
  sco*)
 
12490
    archive_cmds_need_lc_CXX=no
 
12491
    case $cc_basename in
 
12492
      CC)
 
12493
        # FIXME: insert proper C++ library support
 
12494
        ld_shlibs_CXX=no
 
12495
        ;;
 
12496
      *)
 
12497
        # FIXME: insert proper C++ library support
 
12498
        ld_shlibs_CXX=no
 
12499
        ;;
 
12500
    esac
 
12501
    ;;
 
12502
  sunos4*)
 
12503
    case $cc_basename in
 
12504
      CC)
 
12505
        # Sun C++ 4.x
 
12506
        # FIXME: insert proper C++ library support
 
12507
        ld_shlibs_CXX=no
 
12508
        ;;
 
12509
      lcc)
 
12510
        # Lucid
 
12511
        # FIXME: insert proper C++ library support
 
12512
        ld_shlibs_CXX=no
 
12513
        ;;
 
12514
      *)
 
12515
        # FIXME: insert proper C++ library support
 
12516
        ld_shlibs_CXX=no
 
12517
        ;;
 
12518
    esac
 
12519
    ;;
 
12520
  solaris*)
 
12521
    case $cc_basename in
 
12522
      CC)
 
12523
        # Sun C++ 4.2, 5.x and Centerline C++
 
12524
        no_undefined_flag_CXX=' -zdefs'
 
12525
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
12526
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12527
        $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12528
 
 
12529
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
12530
        hardcode_shlibpath_var_CXX=no
 
12531
        case $host_os in
 
12532
          solaris2.0-5 | solaris2.0-5.*) ;;
 
12533
          *)
 
12534
            # The C++ compiler is used as linker so we must use $wl
 
12535
            # flag to pass the commands to the underlying system
 
12536
            # linker.
 
12537
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
12538
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
12539
            ;;
 
12540
        esac
 
12541
        link_all_deplibs_CXX=yes
 
12542
 
 
12543
        # Commands to make compiler produce verbose output that lists
 
12544
        # what "hidden" libraries, object files and flags are used when
 
12545
        # linking a shared library.
 
12546
        #
 
12547
        # There doesn't appear to be a way to prevent this compiler from
 
12548
        # explicitly linking system object files so we need to strip them
 
12549
        # from the output so that they don't get included in the library
 
12550
        # dependencies.
 
12551
        output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
12552
 
 
12553
        # Archives containing C++ object files must be created using
 
12554
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
12555
        # necessary to make sure instantiated templates are included
 
12556
        # in the archive.
 
12557
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
12558
        ;;
 
12559
      gcx)
 
12560
        # Green Hills C++ Compiler
 
12561
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12562
 
 
12563
        # The C++ compiler must be used to create the archive.
 
12564
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
12565
        ;;
 
12566
      *)
 
12567
        # GNU C++ compiler with Solaris linker
 
12568
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
12569
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
12570
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
12571
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12572
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12573
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12574
 
 
12575
            # Commands to make compiler produce verbose output that lists
 
12576
            # what "hidden" libraries, object files and flags are used when
 
12577
            # linking a shared library.
 
12578
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12579
          else
 
12580
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
12581
            # platform.
 
12582
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
12583
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
12584
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
12585
 
 
12586
            # Commands to make compiler produce verbose output that lists
 
12587
            # what "hidden" libraries, object files and flags are used when
 
12588
            # linking a shared library.
 
12589
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
12590
          fi
 
12591
 
 
12592
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
12593
        fi
 
12594
        ;;
 
12595
    esac
 
12596
    ;;
 
12597
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
12598
    archive_cmds_need_lc_CXX=no
 
12599
    ;;
 
12600
  tandem*)
 
12601
    case $cc_basename in
 
12602
      NCC)
 
12603
        # NonStop-UX NCC 3.20
 
12604
        # FIXME: insert proper C++ library support
 
12605
        ld_shlibs_CXX=no
 
12606
        ;;
 
12607
      *)
 
12608
        # FIXME: insert proper C++ library support
 
12609
        ld_shlibs_CXX=no
 
12610
        ;;
 
12611
    esac
 
12612
    ;;
 
12613
  vxworks*)
 
12614
    # FIXME: insert proper C++ library support
 
12615
    ld_shlibs_CXX=no
 
12616
    ;;
 
12617
  *)
 
12618
    # FIXME: insert proper C++ library support
 
12619
    ld_shlibs_CXX=no
 
12620
    ;;
 
12621
esac
 
12622
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12623
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12624
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12625
 
 
12626
GCC_CXX="$GXX"
 
12627
LD_CXX="$LD"
 
12628
 
 
12629
 
 
12630
cat > conftest.$ac_ext <<EOF
 
12631
class Foo
 
12632
{
 
12633
public:
 
12634
  Foo (void) { a = 0; }
 
12635
private:
 
12636
  int a;
 
12637
};
 
12638
EOF
 
12639
 
 
12640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12641
  (eval $ac_compile) 2>&5
 
12642
  ac_status=$?
 
12643
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12644
  (exit $ac_status); }; then
 
12645
  # Parse the compiler output and extract the necessary
 
12646
  # objects, libraries and library flags.
 
12647
 
 
12648
  # Sentinel used to keep track of whether or not we are before
 
12649
  # the conftest object file.
 
12650
  pre_test_object_deps_done=no
 
12651
 
 
12652
  # The `*' in the case matches for architectures that use `case' in
 
12653
  # $output_verbose_cmd can trigger glob expansion during the loop
 
12654
  # eval without this substitution.
 
12655
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
12656
 
 
12657
  for p in `eval $output_verbose_link_cmd`; do
 
12658
    case $p in
 
12659
 
 
12660
    -L* | -R* | -l*)
 
12661
       # Some compilers place space between "-{L,R}" and the path.
 
12662
       # Remove the space.
 
12663
       if test $p = "-L" \
 
12664
          || test $p = "-R"; then
 
12665
         prev=$p
 
12666
         continue
 
12667
       else
 
12668
         prev=
 
12669
       fi
 
12670
 
 
12671
       if test "$pre_test_object_deps_done" = no; then
 
12672
         case $p in
 
12673
         -L* | -R*)
 
12674
           # Internal compiler library paths should come after those
 
12675
           # provided the user.  The postdeps already come after the
 
12676
           # user supplied libs so there is no need to process them.
 
12677
           if test -z "$compiler_lib_search_path_CXX"; then
 
12678
             compiler_lib_search_path_CXX="${prev}${p}"
 
12679
           else
 
12680
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
12681
           fi
 
12682
           ;;
 
12683
         # The "-l" case would never come before the object being
 
12684
         # linked, so don't bother handling this case.
 
12685
         esac
 
12686
       else
 
12687
         if test -z "$postdeps_CXX"; then
 
12688
           postdeps_CXX="${prev}${p}"
 
12689
         else
 
12690
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
12691
         fi
 
12692
       fi
 
12693
       ;;
 
12694
 
 
12695
    *.$objext)
 
12696
       # This assumes that the test object file only shows up
 
12697
       # once in the compiler output.
 
12698
       if test "$p" = "conftest.$objext"; then
 
12699
         pre_test_object_deps_done=yes
 
12700
         continue
 
12701
       fi
 
12702
 
 
12703
       if test "$pre_test_object_deps_done" = no; then
 
12704
         if test -z "$predep_objects_CXX"; then
 
12705
           predep_objects_CXX="$p"
 
12706
         else
 
12707
           predep_objects_CXX="$predep_objects_CXX $p"
 
12708
         fi
 
12709
       else
 
12710
         if test -z "$postdep_objects_CXX"; then
 
12711
           postdep_objects_CXX="$p"
 
12712
         else
 
12713
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
12714
         fi
 
12715
       fi
 
12716
       ;;
 
12717
 
 
12718
    *) ;; # Ignore the rest.
 
12719
 
 
12720
    esac
 
12721
  done
 
12722
 
 
12723
  # Clean up.
 
12724
  rm -f a.out a.exe
 
12725
else
 
12726
  echo "libtool.m4: error: problem compiling CXX test program"
 
12727
fi
 
12728
 
 
12729
$rm -f confest.$objext
 
12730
 
 
12731
case " $postdeps_CXX " in
 
12732
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
12733
esac
 
12734
 
 
12735
lt_prog_compiler_wl_CXX=
 
12736
lt_prog_compiler_pic_CXX=
 
12737
lt_prog_compiler_static_CXX=
 
12738
 
 
12739
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
12740
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
12741
 
 
12742
  # C++ specific cases for pic, static, wl, etc.
 
12743
  if test "$GXX" = yes; then
 
12744
    lt_prog_compiler_wl_CXX='-Wl,'
 
12745
    lt_prog_compiler_static_CXX='-static'
 
12746
 
 
12747
    case $host_os in
 
12748
    aix*)
 
12749
      # All AIX code is PIC.
 
12750
      if test "$host_cpu" = ia64; then
 
12751
        # AIX 5 now supports IA64 processor
 
12752
        lt_prog_compiler_static_CXX='-Bstatic'
 
12753
      fi
 
12754
      ;;
 
12755
    amigaos*)
 
12756
      # FIXME: we need at least 68020 code to build shared libraries, but
 
12757
      # adding the `-m68020' flag to GCC prevents building anything better,
 
12758
      # like `-m68040'.
 
12759
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
12760
      ;;
 
12761
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
12762
      # PIC is the default for these OSes.
 
12763
      ;;
 
12764
    mingw* | os2* | pw32*)
 
12765
      # This hack is so that the source file can tell whether it is being
 
12766
      # built for inclusion in a dll (and should export symbols for example).
 
12767
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
12768
      ;;
 
12769
    darwin* | rhapsody*)
 
12770
      # PIC is the default on this platform
 
12771
      # Common symbols not allowed in MH_DYLIB files
 
12772
      lt_prog_compiler_pic_CXX='-fno-common'
 
12773
      ;;
 
12774
    *djgpp*)
 
12775
      # DJGPP does not support shared libraries at all
 
12776
      lt_prog_compiler_pic_CXX=
 
12777
      ;;
 
12778
    sysv4*MP*)
 
12779
      if test -d /usr/nec; then
 
12780
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
12781
      fi
 
12782
      ;;
 
12783
    hpux*)
 
12784
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
12785
      # not for PA HP-UX.
 
12786
      case "$host_cpu" in
 
12787
      hppa*64*|ia64*)
 
12788
        ;;
 
12789
      *)
 
12790
        lt_prog_compiler_pic_CXX='-fPIC'
 
12791
        ;;
 
12792
      esac
 
12793
      ;;
 
12794
    *)
 
12795
      lt_prog_compiler_pic_CXX='-fPIC'
 
12796
      ;;
 
12797
    esac
 
12798
  else
 
12799
    case $host_os in
 
12800
      aix4* | aix5*)
 
12801
        # All AIX code is PIC.
 
12802
        if test "$host_cpu" = ia64; then
 
12803
          # AIX 5 now supports IA64 processor
 
12804
          lt_prog_compiler_static_CXX='-Bstatic'
 
12805
        else
 
12806
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
12807
        fi
 
12808
        ;;
 
12809
      chorus*)
 
12810
        case $cc_basename in
 
12811
        cxch68)
 
12812
          # Green Hills C++ Compiler
 
12813
          # _LT_AC_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"
 
12814
          ;;
 
12815
        esac
 
12816
        ;;
 
12817
       darwin*)
 
12818
         # PIC is the default on this platform
 
12819
         # Common symbols not allowed in MH_DYLIB files
 
12820
         case "$cc_basename" in
 
12821
           xlc*)
 
12822
           lt_prog_compiler_pic_CXX='-qnocommon'
 
12823
           lt_prog_compiler_wl_CXX='-Wl,'
 
12824
           ;;
 
12825
         esac
 
12826
       ;;
 
12827
      dgux*)
 
12828
        case $cc_basename in
 
12829
          ec++)
 
12830
            lt_prog_compiler_pic_CXX='-KPIC'
 
12831
            ;;
 
12832
          ghcx)
 
12833
            # Green Hills C++ Compiler
 
12834
            lt_prog_compiler_pic_CXX='-pic'
 
12835
            ;;
 
12836
          *)
 
12837
            ;;
 
12838
        esac
 
12839
        ;;
 
12840
      freebsd* | kfreebsd*-gnu)
 
12841
        # FreeBSD uses GNU C++
 
12842
        ;;
 
12843
      hpux9* | hpux10* | hpux11*)
 
12844
        case $cc_basename in
 
12845
          CC)
 
12846
            lt_prog_compiler_wl_CXX='-Wl,'
 
12847
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12848
            if test "$host_cpu" != ia64; then
 
12849
              lt_prog_compiler_pic_CXX='+Z'
 
12850
            fi
 
12851
            ;;
 
12852
          aCC)
 
12853
            lt_prog_compiler_wl_CXX='-Wl,'
 
12854
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
12855
            case "$host_cpu" in
 
12856
            hppa*64*|ia64*)
 
12857
              # +Z the default
 
12858
              ;;
 
12859
            *)
 
12860
              lt_prog_compiler_pic_CXX='+Z'
 
12861
              ;;
 
12862
            esac
 
12863
            ;;
 
12864
          *)
 
12865
            ;;
 
12866
        esac
 
12867
        ;;
 
12868
      irix5* | irix6* | nonstopux*)
 
12869
        case $cc_basename in
 
12870
          CC)
 
12871
            lt_prog_compiler_wl_CXX='-Wl,'
 
12872
            lt_prog_compiler_static_CXX='-non_shared'
 
12873
            # CC pic flag -KPIC is the default.
 
12874
            ;;
 
12875
          *)
 
12876
            ;;
 
12877
        esac
 
12878
        ;;
 
12879
      linux*)
 
12880
        case $cc_basename in
 
12881
          KCC)
 
12882
            # KAI C++ Compiler
 
12883
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12884
            lt_prog_compiler_pic_CXX='-fPIC'
 
12885
            ;;
 
12886
          icpc)
 
12887
            # Intel C++
 
12888
            lt_prog_compiler_wl_CXX='-Wl,'
 
12889
            lt_prog_compiler_pic_CXX='-KPIC'
 
12890
            lt_prog_compiler_static_CXX='-static'
 
12891
            ;;
 
12892
          cxx)
 
12893
            # Compaq C++
 
12894
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12895
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12896
            lt_prog_compiler_pic_CXX=
 
12897
            lt_prog_compiler_static_CXX='-non_shared'
 
12898
            ;;
 
12899
          *)
 
12900
            ;;
 
12901
        esac
 
12902
        ;;
 
12903
      lynxos*)
 
12904
        ;;
 
12905
      m88k*)
 
12906
        ;;
 
12907
      mvs*)
 
12908
        case $cc_basename in
 
12909
          cxx)
 
12910
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
12911
            ;;
 
12912
          *)
 
12913
            ;;
 
12914
        esac
 
12915
        ;;
 
12916
      netbsd*)
 
12917
        ;;
 
12918
      osf3* | osf4* | osf5*)
 
12919
        case $cc_basename in
 
12920
          KCC)
 
12921
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
12922
            ;;
 
12923
          RCC)
 
12924
            # Rational C++ 2.4.1
 
12925
            lt_prog_compiler_pic_CXX='-pic'
 
12926
            ;;
 
12927
          cxx)
 
12928
            # Digital/Compaq C++
 
12929
            lt_prog_compiler_wl_CXX='-Wl,'
 
12930
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
12931
            # Linux and Compaq Tru64 Unix objects are PIC.
 
12932
            lt_prog_compiler_pic_CXX=
 
12933
            lt_prog_compiler_static_CXX='-non_shared'
 
12934
            ;;
 
12935
          *)
 
12936
            ;;
 
12937
        esac
 
12938
        ;;
 
12939
      psos*)
 
12940
        ;;
 
12941
      sco*)
 
12942
        case $cc_basename in
 
12943
          CC)
 
12944
            lt_prog_compiler_pic_CXX='-fPIC'
 
12945
            ;;
 
12946
          *)
 
12947
            ;;
 
12948
        esac
 
12949
        ;;
 
12950
      solaris*)
 
12951
        case $cc_basename in
 
12952
          CC)
 
12953
            # Sun C++ 4.2, 5.x and Centerline C++
 
12954
            lt_prog_compiler_pic_CXX='-KPIC'
 
12955
            lt_prog_compiler_static_CXX='-Bstatic'
 
12956
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
12957
            ;;
 
12958
          gcx)
 
12959
            # Green Hills C++ Compiler
 
12960
            lt_prog_compiler_pic_CXX='-PIC'
 
12961
            ;;
 
12962
          *)
 
12963
            ;;
 
12964
        esac
 
12965
        ;;
 
12966
      sunos4*)
 
12967
        case $cc_basename in
 
12968
          CC)
 
12969
            # Sun C++ 4.x
 
12970
            lt_prog_compiler_pic_CXX='-pic'
 
12971
            lt_prog_compiler_static_CXX='-Bstatic'
 
12972
            ;;
 
12973
          lcc)
 
12974
            # Lucid
 
12975
            lt_prog_compiler_pic_CXX='-pic'
 
12976
            ;;
 
12977
          *)
 
12978
            ;;
 
12979
        esac
 
12980
        ;;
 
12981
      tandem*)
 
12982
        case $cc_basename in
 
12983
          NCC)
 
12984
            # NonStop-UX NCC 3.20
 
12985
            lt_prog_compiler_pic_CXX='-KPIC'
 
12986
            ;;
 
12987
          *)
 
12988
            ;;
 
12989
        esac
 
12990
        ;;
 
12991
      unixware*)
 
12992
        ;;
 
12993
      vxworks*)
 
12994
        ;;
 
12995
      *)
 
12996
        lt_prog_compiler_can_build_shared_CXX=no
 
12997
        ;;
 
12998
    esac
 
12999
  fi
 
13000
 
 
13001
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
13002
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
13003
 
 
13004
#
 
13005
# Check to make sure the PIC flag actually works.
 
13006
#
 
13007
if test -n "$lt_prog_compiler_pic_CXX"; then
 
13008
 
 
13009
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
13010
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
13011
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
13012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13013
else
 
13014
  lt_prog_compiler_pic_works_CXX=no
 
13015
  ac_outfile=conftest.$ac_objext
 
13016
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13017
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
13018
   # Insert the option either (1) after the last *FLAGS variable, or
 
13019
   # (2) before a word containing "conftest.", or (3) at the end.
 
13020
   # Note that $ac_compile itself does not contain backslashes and begins
 
13021
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13022
   # The option is referenced via a variable to avoid confusing sed.
 
13023
   lt_compile=`echo "$ac_compile" | $SED \
 
13024
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13025
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13026
   -e 's:$: $lt_compiler_flag:'`
 
13027
   (eval echo "\"\$as_me:13027: $lt_compile\"" >&5)
 
13028
   (eval "$lt_compile" 2>conftest.err)
 
13029
   ac_status=$?
 
13030
   cat conftest.err >&5
 
13031
   echo "$as_me:13031: \$? = $ac_status" >&5
 
13032
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
13033
     # The compiler can only warn and ignore the option if not recognized
 
13034
     # So say no if there are warnings
 
13035
     if test ! -s conftest.err; then
 
13036
       lt_prog_compiler_pic_works_CXX=yes
 
13037
     fi
 
13038
   fi
 
13039
   $rm conftest*
 
13040
 
 
13041
fi
 
13042
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
13043
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
13044
 
 
13045
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
13046
    case $lt_prog_compiler_pic_CXX in
 
13047
     "" | " "*) ;;
 
13048
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
13049
     esac
 
13050
else
 
13051
    lt_prog_compiler_pic_CXX=
 
13052
     lt_prog_compiler_can_build_shared_CXX=no
 
13053
fi
 
13054
 
 
13055
fi
 
13056
case "$host_os" in
 
13057
  # For platforms which do not support PIC, -DPIC is meaningless:
 
13058
  *djgpp*)
 
13059
    lt_prog_compiler_pic_CXX=
 
13060
    ;;
 
13061
  *)
 
13062
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
13063
    ;;
 
13064
esac
 
13065
 
 
13066
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
13067
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
13068
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
13069
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13070
else
 
13071
  lt_cv_prog_compiler_c_o_CXX=no
 
13072
   $rm -r conftest 2>/dev/null
 
13073
   mkdir conftest
 
13074
   cd conftest
 
13075
   mkdir out
 
13076
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13077
 
 
13078
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
13079
   # Insert the option either (1) after the last *FLAGS variable, or
 
13080
   # (2) before a word containing "conftest.", or (3) at the end.
 
13081
   # Note that $ac_compile itself does not contain backslashes and begins
 
13082
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
13083
   lt_compile=`echo "$ac_compile" | $SED \
 
13084
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
13085
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
13086
   -e 's:$: $lt_compiler_flag:'`
 
13087
   (eval echo "\"\$as_me:13087: $lt_compile\"" >&5)
 
13088
   (eval "$lt_compile" 2>out/conftest.err)
 
13089
   ac_status=$?
 
13090
   cat out/conftest.err >&5
 
13091
   echo "$as_me:13091: \$? = $ac_status" >&5
 
13092
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
13093
   then
 
13094
     # The compiler can only warn and ignore the option if not recognized
 
13095
     # So say no if there are warnings
 
13096
     if test ! -s out/conftest.err; then
 
13097
       lt_cv_prog_compiler_c_o_CXX=yes
 
13098
     fi
 
13099
   fi
 
13100
   chmod u+w .
 
13101
   $rm conftest*
 
13102
   # SGI C++ compiler will create directory out/ii_files/ for
 
13103
   # template instantiation
 
13104
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
13105
   $rm out/* && rmdir out
 
13106
   cd ..
 
13107
   rmdir conftest
 
13108
   $rm conftest*
 
13109
 
 
13110
fi
 
13111
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
13112
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
13113
 
 
13114
 
 
13115
hard_links="nottested"
 
13116
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
13117
  # do not overwrite the value of need_locks provided by the user
 
13118
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
13119
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
13120
  hard_links=yes
 
13121
  $rm conftest*
 
13122
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13123
  touch conftest.a
 
13124
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
13125
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
13126
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
13127
echo "${ECHO_T}$hard_links" >&6
 
13128
  if test "$hard_links" = no; then
 
13129
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
13130
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
13131
    need_locks=warn
 
13132
  fi
 
13133
else
 
13134
  need_locks=no
 
13135
fi
 
13136
 
 
13137
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
13138
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
13139
 
 
13140
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13141
  case $host_os in
 
13142
  aix4* | aix5*)
 
13143
    # If we're using GNU nm, then we don't want the "-C" option.
 
13144
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
13145
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
13146
      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
13147
    else
 
13148
      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'
 
13149
    fi
 
13150
    ;;
 
13151
  pw32*)
 
13152
    export_symbols_cmds_CXX="$ltdll_cmds"
 
13153
  ;;
 
13154
  cygwin* | mingw*)
 
13155
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
13156
  ;;
 
13157
  *)
 
13158
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
13159
  ;;
 
13160
  esac
 
13161
 
 
13162
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
13163
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
13164
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
13165
 
 
13166
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
13167
if test "$GCC" = yes; then
 
13168
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
13169
fi
 
13170
 
 
13171
#
 
13172
# Do we need to explicitly link libc?
 
13173
#
 
13174
case "x$archive_cmds_need_lc_CXX" in
 
13175
x|xyes)
 
13176
  # Assume -lc should be added
 
13177
  archive_cmds_need_lc_CXX=yes
 
13178
 
 
13179
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
13180
    case $archive_cmds_CXX in
 
13181
    *'~'*)
 
13182
      # FIXME: we may have to deal with multi-command sequences.
 
13183
      ;;
 
13184
    '$CC '*)
 
13185
      # Test whether the compiler implicitly links with -lc since on some
 
13186
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
13187
      # to ld, don't add -lc before -lgcc.
 
13188
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
13189
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
13190
      $rm conftest*
 
13191
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
13192
 
 
13193
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13194
  (eval $ac_compile) 2>&5
 
13195
  ac_status=$?
 
13196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13197
  (exit $ac_status); } 2>conftest.err; then
 
13198
        soname=conftest
 
13199
        lib=conftest
 
13200
        libobjs=conftest.$ac_objext
 
13201
        deplibs=
 
13202
        wl=$lt_prog_compiler_wl_CXX
 
13203
        compiler_flags=-v
 
13204
        linker_flags=-v
 
13205
        verstring=
 
13206
        output_objdir=.
 
13207
        libname=conftest
 
13208
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
13209
        allow_undefined_flag_CXX=
 
13210
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
13211
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
13212
  ac_status=$?
 
13213
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13214
  (exit $ac_status); }
 
13215
        then
 
13216
          archive_cmds_need_lc_CXX=no
 
13217
        else
 
13218
          archive_cmds_need_lc_CXX=yes
 
13219
        fi
 
13220
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
13221
      else
 
13222
        cat conftest.err 1>&5
 
13223
      fi
 
13224
      $rm conftest*
 
13225
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
13226
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
13227
      ;;
 
13228
    esac
 
13229
  fi
 
13230
  ;;
 
13231
esac
 
13232
 
 
13233
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
13234
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
13235
library_names_spec=
 
13236
libname_spec='lib$name'
 
13237
soname_spec=
 
13238
shrext_cmds=".so"
 
13239
postinstall_cmds=
 
13240
postuninstall_cmds=
 
13241
finish_cmds=
 
13242
finish_eval=
 
13243
shlibpath_var=
 
13244
shlibpath_overrides_runpath=unknown
 
13245
version_type=none
 
13246
dynamic_linker="$host_os ld.so"
 
13247
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
13248
if test "$GCC" = yes; then
 
13249
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13250
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
13251
    # if the path contains ";" then we assume it to be the separator
 
13252
    # otherwise default to the standard path separator (i.e. ":") - it is
 
13253
    # assumed that no part of a normal pathname contains ";" but that should
 
13254
    # okay in the real world where ";" in dirpaths is itself problematic.
 
13255
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13256
  else
 
13257
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13258
  fi
 
13259
else
 
13260
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
13261
fi
 
13262
need_lib_prefix=unknown
 
13263
hardcode_into_libs=no
 
13264
 
 
13265
# when you set need_version to no, make sure it does not cause -set_version
 
13266
# flags to be left without arguments
 
13267
need_version=unknown
 
13268
 
 
13269
case $host_os in
 
13270
aix3*)
 
13271
  version_type=linux
 
13272
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
13273
  shlibpath_var=LIBPATH
 
13274
 
 
13275
  # AIX 3 has no versioning support, so we append a major version to the name.
 
13276
  soname_spec='${libname}${release}${shared_ext}$major'
 
13277
  ;;
 
13278
 
 
13279
aix4* | aix5*)
 
13280
  version_type=linux
 
13281
  need_lib_prefix=no
 
13282
  need_version=no
 
13283
  hardcode_into_libs=yes
 
13284
  if test "$host_cpu" = ia64; then
 
13285
    # AIX 5 supports IA64
 
13286
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
13287
    shlibpath_var=LD_LIBRARY_PATH
 
13288
  else
 
13289
    # With GCC up to 2.95.x, collect2 would create an import file
 
13290
    # for dependence libraries.  The import file would start with
 
13291
    # the line `#! .'.  This would cause the generated library to
 
13292
    # depend on `.', always an invalid library.  This was fixed in
 
13293
    # development snapshots of GCC prior to 3.0.
 
13294
    case $host_os in
 
13295
      aix4 | aix4.[01] | aix4.[01].*)
 
13296
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
13297
           echo ' yes '
 
13298
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
13299
        :
 
13300
      else
 
13301
        can_build_shared=no
 
13302
      fi
 
13303
      ;;
 
13304
    esac
 
13305
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
13306
    # soname into executable. Probably we can add versioning support to
 
13307
    # collect2, so additional links can be useful in future.
 
13308
    if test "$aix_use_runtimelinking" = yes; then
 
13309
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
13310
      # instead of lib<name>.a to let people know that these are not
 
13311
      # typical AIX shared libraries.
 
13312
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13313
    else
 
13314
      # We preserve .a as extension for shared libraries through AIX4.2
 
13315
      # and later when we are not doing run time linking.
 
13316
      library_names_spec='${libname}${release}.a $libname.a'
 
13317
      soname_spec='${libname}${release}${shared_ext}$major'
 
13318
    fi
 
13319
    shlibpath_var=LIBPATH
 
13320
  fi
 
13321
  ;;
 
13322
 
 
13323
amigaos*)
 
13324
  library_names_spec='$libname.ixlibrary $libname.a'
 
13325
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
13326
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
13327
  ;;
 
13328
 
 
13329
beos*)
 
13330
  library_names_spec='${libname}${shared_ext}'
 
13331
  dynamic_linker="$host_os ld.so"
 
13332
  shlibpath_var=LIBRARY_PATH
 
13333
  ;;
 
13334
 
 
13335
bsdi[45]*)
 
13336
  version_type=linux
 
13337
  need_version=no
 
13338
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13339
  soname_spec='${libname}${release}${shared_ext}$major'
 
13340
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
13341
  shlibpath_var=LD_LIBRARY_PATH
 
13342
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
13343
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
13344
  # the default ld.so.conf also contains /usr/contrib/lib and
 
13345
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
13346
  # libtool to hard-code these into programs
 
13347
  ;;
 
13348
 
 
13349
cygwin* | mingw* | pw32*)
 
13350
  version_type=windows
 
13351
  shrext_cmds=".dll"
 
13352
  need_version=no
 
13353
  need_lib_prefix=no
 
13354
 
 
13355
  case $GCC,$host_os in
 
13356
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
13357
    library_names_spec='$libname.dll.a'
 
13358
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
13359
    postinstall_cmds='base_file=`basename \${file}`~
 
13360
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
13361
      dldir=$destdir/`dirname \$dlpath`~
 
13362
      test -d \$dldir || mkdir -p \$dldir~
 
13363
      $install_prog $dir/$dlname \$dldir/$dlname'
 
13364
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
13365
      dlpath=$dir/\$dldll~
 
13366
       $rm \$dlpath'
 
13367
    shlibpath_overrides_runpath=yes
 
13368
 
 
13369
    case $host_os in
 
13370
    cygwin*)
 
13371
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
13372
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13373
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
13374
      ;;
 
13375
    mingw*)
 
13376
      # MinGW DLLs use traditional 'lib' prefix
 
13377
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
13378
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
13379
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
13380
        # It is most probably a Windows format PATH printed by
 
13381
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
13382
        # path with ; separators, and with drive letters. We can handle the
 
13383
        # drive letters (cygwin fileutils understands them), so leave them,
 
13384
        # especially as we might pass files found there to a mingw objdump,
 
13385
        # which wouldn't understand a cygwinified path. Ahh.
 
13386
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
13387
      else
 
13388
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
13389
      fi
 
13390
      ;;
 
13391
    pw32*)
 
13392
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
13393
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
13394
      ;;
 
13395
    esac
 
13396
    ;;
 
13397
 
 
13398
  *)
 
13399
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
13400
    ;;
 
13401
  esac
 
13402
  dynamic_linker='Win32 ld.exe'
 
13403
  # FIXME: first we should search . and the directory the executable is in
 
13404
  shlibpath_var=PATH
 
13405
  ;;
 
13406
 
 
13407
darwin* | rhapsody*)
 
13408
  dynamic_linker="$host_os dyld"
 
13409
  version_type=darwin
 
13410
  need_lib_prefix=no
 
13411
  need_version=no
 
13412
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
13413
  soname_spec='${libname}${release}${major}$shared_ext'
 
13414
  shlibpath_overrides_runpath=yes
 
13415
  shlibpath_var=DYLD_LIBRARY_PATH
 
13416
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
13417
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
13418
  if test "$GCC" = yes; then
 
13419
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
13420
  else
 
13421
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
13422
  fi
 
13423
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
13424
  ;;
 
13425
 
 
13426
dgux*)
 
13427
  version_type=linux
 
13428
  need_lib_prefix=no
 
13429
  need_version=no
 
13430
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
13431
  soname_spec='${libname}${release}${shared_ext}$major'
 
13432
  shlibpath_var=LD_LIBRARY_PATH
 
13433
  ;;
 
13434
 
 
13435
freebsd1*)
 
13436
  dynamic_linker=no
 
13437
  ;;
 
13438
 
 
13439
kfreebsd*-gnu)
 
13440
  version_type=linux
 
13441
  need_lib_prefix=no
 
13442
  need_version=no
 
13443
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13444
  soname_spec='${libname}${release}${shared_ext}$major'
 
13445
  shlibpath_var=LD_LIBRARY_PATH
 
13446
  shlibpath_overrides_runpath=no
 
13447
  hardcode_into_libs=yes
 
13448
  dynamic_linker='GNU ld.so'
 
13449
  ;;
 
13450
 
 
13451
freebsd*)
 
13452
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
13453
  version_type=freebsd-$objformat
 
13454
  case $version_type in
 
13455
    freebsd-elf*)
 
13456
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13457
      need_version=no
 
13458
      need_lib_prefix=no
 
13459
      ;;
 
13460
    freebsd-*)
 
13461
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
13462
      need_version=yes
 
13463
      ;;
 
13464
  esac
 
13465
  shlibpath_var=LD_LIBRARY_PATH
 
13466
  case $host_os in
 
13467
  freebsd2*)
 
13468
    shlibpath_overrides_runpath=yes
 
13469
    ;;
 
13470
  freebsd3.01* | freebsdelf3.01*)
 
13471
    shlibpath_overrides_runpath=yes
 
13472
    hardcode_into_libs=yes
 
13473
    ;;
 
13474
  *) # from 3.2 on
 
13475
    shlibpath_overrides_runpath=no
 
13476
    hardcode_into_libs=yes
 
13477
    ;;
 
13478
  esac
 
13479
  ;;
 
13480
 
 
13481
gnu*)
 
13482
  version_type=linux
 
13483
  need_lib_prefix=no
 
13484
  need_version=no
 
13485
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
13486
  soname_spec='${libname}${release}${shared_ext}$major'
 
13487
  shlibpath_var=LD_LIBRARY_PATH
 
13488
  hardcode_into_libs=yes
 
13489
  ;;
 
13490
 
 
13491
hpux9* | hpux10* | hpux11*)
 
13492
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
13493
  # link against other versions.
 
13494
  version_type=sunos
 
13495
  need_lib_prefix=no
 
13496
  need_version=no
 
13497
  case "$host_cpu" in
 
13498
  ia64*)
 
13499
    shrext_cmds='.so'
 
13500
    hardcode_into_libs=yes
 
13501
    dynamic_linker="$host_os dld.so"
 
13502
    shlibpath_var=LD_LIBRARY_PATH
 
13503
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13504
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13505
    soname_spec='${libname}${release}${shared_ext}$major'
 
13506
    if test "X$HPUX_IA64_MODE" = X32; then
 
13507
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
13508
    else
 
13509
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
13510
    fi
 
13511
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13512
    ;;
 
13513
   hppa*64*)
 
13514
     shrext_cmds='.sl'
 
13515
     hardcode_into_libs=yes
 
13516
     dynamic_linker="$host_os dld.sl"
 
13517
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
13518
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
13519
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13520
     soname_spec='${libname}${release}${shared_ext}$major'
 
13521
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
13522
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
13523
     ;;
 
13524
   *)
 
13525
    shrext_cmds='.sl'
 
13526
    dynamic_linker="$host_os dld.sl"
 
13527
    shlibpath_var=SHLIB_PATH
 
13528
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
13529
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13530
    soname_spec='${libname}${release}${shared_ext}$major'
 
13531
    ;;
 
13532
  esac
 
13533
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
13534
  postinstall_cmds='chmod 555 $lib'
 
13535
  ;;
 
13536
 
 
13537
irix5* | irix6* | nonstopux*)
 
13538
  case $host_os in
 
13539
    nonstopux*) version_type=nonstopux ;;
 
13540
    *)
 
13541
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
13542
                version_type=linux
 
13543
        else
 
13544
                version_type=irix
 
13545
        fi ;;
 
13546
  esac
 
13547
  need_lib_prefix=no
 
13548
  need_version=no
 
13549
  soname_spec='${libname}${release}${shared_ext}$major'
 
13550
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
13551
  case $host_os in
 
13552
  irix5* | nonstopux*)
 
13553
    libsuff= shlibsuff=
 
13554
    ;;
 
13555
  *)
 
13556
    case $LD in # libtool.m4 will add one of these switches to LD
 
13557
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
13558
      libsuff= shlibsuff= libmagic=32-bit;;
 
13559
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
13560
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
13561
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
13562
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
13563
    *) libsuff= shlibsuff= libmagic=never-match;;
 
13564
    esac
 
13565
    ;;
 
13566
  esac
 
13567
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
13568
  shlibpath_overrides_runpath=no
 
13569
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
13570
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
13571
  hardcode_into_libs=yes
 
13572
  ;;
 
13573
 
 
13574
# No shared lib support for Linux oldld, aout, or coff.
 
13575
linux*oldld* | linux*aout* | linux*coff*)
 
13576
  dynamic_linker=no
 
13577
  ;;
 
13578
 
 
13579
# This must be Linux ELF.
 
13580
linux*)
 
13581
  version_type=linux
 
13582
  need_lib_prefix=no
 
13583
  need_version=no
 
13584
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13585
  soname_spec='${libname}${release}${shared_ext}$major'
 
13586
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
13587
  shlibpath_var=LD_LIBRARY_PATH
 
13588
  shlibpath_overrides_runpath=no
 
13589
  # This implies no fast_install, which is unacceptable.
 
13590
  # Some rework will be needed to allow for fast_install
 
13591
  # before this can be enabled.
 
13592
  hardcode_into_libs=yes
 
13593
 
 
13594
  # find out which ABI we are using
 
13595
  libsuff=
 
13596
  case "$host_cpu" in
 
13597
  x86_64*|s390x*|powerpc64*)
 
13598
    echo '#line 13598 "configure"' > conftest.$ac_ext
 
13599
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
13600
  (eval $ac_compile) 2>&5
 
13601
  ac_status=$?
 
13602
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13603
  (exit $ac_status); }; then
 
13604
      case `/usr/bin/file conftest.$ac_objext` in
 
13605
      *64-bit*)
 
13606
        libsuff=64
 
13607
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
13608
        ;;
 
13609
      esac
 
13610
    fi
 
13611
    rm -rf conftest*
 
13612
    ;;
 
13613
  esac
 
13614
 
 
13615
  # Append ld.so.conf contents to the search path
 
13616
  if test -f /etc/ld.so.conf; then
 
13617
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
13618
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
13619
  fi
 
13620
 
 
13621
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
13622
  # powerpc, because MkLinux only supported shared libraries with the
 
13623
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
13624
  # most powerpc-linux boxes support dynamic linking these days and
 
13625
  # people can always --disable-shared, the test was removed, and we
 
13626
  # assume the GNU/Linux dynamic linker is in use.
 
13627
  dynamic_linker='GNU/Linux ld.so'
 
13628
  ;;
 
13629
 
 
13630
knetbsd*-gnu)
 
13631
  version_type=linux
 
13632
  need_lib_prefix=no
 
13633
  need_version=no
 
13634
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13635
  soname_spec='${libname}${release}${shared_ext}$major'
 
13636
  shlibpath_var=LD_LIBRARY_PATH
 
13637
  shlibpath_overrides_runpath=no
 
13638
  hardcode_into_libs=yes
 
13639
  dynamic_linker='GNU ld.so'
 
13640
  ;;
 
13641
 
 
13642
netbsd*)
 
13643
  version_type=sunos
 
13644
  need_lib_prefix=no
 
13645
  need_version=no
 
13646
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
13647
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13648
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13649
    dynamic_linker='NetBSD (a.out) ld.so'
 
13650
  else
 
13651
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
13652
    soname_spec='${libname}${release}${shared_ext}$major'
 
13653
    dynamic_linker='NetBSD ld.elf_so'
 
13654
  fi
 
13655
  shlibpath_var=LD_LIBRARY_PATH
 
13656
  shlibpath_overrides_runpath=yes
 
13657
  hardcode_into_libs=yes
 
13658
  ;;
 
13659
 
 
13660
newsos6)
 
13661
  version_type=linux
 
13662
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13663
  shlibpath_var=LD_LIBRARY_PATH
 
13664
  shlibpath_overrides_runpath=yes
 
13665
  ;;
 
13666
 
 
13667
nto-qnx*)
 
13668
  version_type=linux
 
13669
  need_lib_prefix=no
 
13670
  need_version=no
 
13671
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13672
  soname_spec='${libname}${release}${shared_ext}$major'
 
13673
  shlibpath_var=LD_LIBRARY_PATH
 
13674
  shlibpath_overrides_runpath=yes
 
13675
  ;;
 
13676
 
 
13677
openbsd*)
 
13678
  version_type=sunos
 
13679
  need_lib_prefix=no
 
13680
  need_version=no
 
13681
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13682
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
13683
  shlibpath_var=LD_LIBRARY_PATH
 
13684
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
13685
    case $host_os in
 
13686
      openbsd2.[89] | openbsd2.[89].*)
 
13687
        shlibpath_overrides_runpath=no
 
13688
        ;;
 
13689
      *)
 
13690
        shlibpath_overrides_runpath=yes
 
13691
        ;;
 
13692
      esac
 
13693
  else
 
13694
    shlibpath_overrides_runpath=yes
 
13695
  fi
 
13696
  ;;
 
13697
 
 
13698
os2*)
 
13699
  libname_spec='$name'
 
13700
  shrext_cmds=".dll"
 
13701
  need_lib_prefix=no
 
13702
  library_names_spec='$libname${shared_ext} $libname.a'
 
13703
  dynamic_linker='OS/2 ld.exe'
 
13704
  shlibpath_var=LIBPATH
 
13705
  ;;
 
13706
 
 
13707
osf3* | osf4* | osf5*)
 
13708
  version_type=osf
 
13709
  need_lib_prefix=no
 
13710
  need_version=no
 
13711
  soname_spec='${libname}${release}${shared_ext}$major'
 
13712
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13713
  shlibpath_var=LD_LIBRARY_PATH
 
13714
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
13715
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
13716
  ;;
 
13717
 
 
13718
sco3.2v5*)
 
13719
  version_type=osf
 
13720
  soname_spec='${libname}${release}${shared_ext}$major'
 
13721
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13722
  shlibpath_var=LD_LIBRARY_PATH
 
13723
  ;;
 
13724
 
 
13725
solaris*)
 
13726
  version_type=linux
 
13727
  need_lib_prefix=no
 
13728
  need_version=no
 
13729
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13730
  soname_spec='${libname}${release}${shared_ext}$major'
 
13731
  shlibpath_var=LD_LIBRARY_PATH
 
13732
  shlibpath_overrides_runpath=yes
 
13733
  hardcode_into_libs=yes
 
13734
  # ldd complains unless libraries are executable
 
13735
  postinstall_cmds='chmod +x $lib'
 
13736
  ;;
 
13737
 
 
13738
sunos4*)
 
13739
  version_type=sunos
 
13740
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
13741
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
13742
  shlibpath_var=LD_LIBRARY_PATH
 
13743
  shlibpath_overrides_runpath=yes
 
13744
  if test "$with_gnu_ld" = yes; then
 
13745
    need_lib_prefix=no
 
13746
  fi
 
13747
  need_version=yes
 
13748
  ;;
 
13749
 
 
13750
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
13751
  version_type=linux
 
13752
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13753
  soname_spec='${libname}${release}${shared_ext}$major'
 
13754
  shlibpath_var=LD_LIBRARY_PATH
 
13755
  case $host_vendor in
 
13756
    sni)
 
13757
      shlibpath_overrides_runpath=no
 
13758
      need_lib_prefix=no
 
13759
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
13760
      runpath_var=LD_RUN_PATH
 
13761
      ;;
 
13762
    siemens)
 
13763
      need_lib_prefix=no
 
13764
      ;;
 
13765
    motorola)
 
13766
      need_lib_prefix=no
 
13767
      need_version=no
 
13768
      shlibpath_overrides_runpath=no
 
13769
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
13770
      ;;
 
13771
  esac
 
13772
  ;;
 
13773
 
 
13774
sysv4*MP*)
 
13775
  if test -d /usr/nec ;then
 
13776
    version_type=linux
 
13777
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
13778
    soname_spec='$libname${shared_ext}.$major'
 
13779
    shlibpath_var=LD_LIBRARY_PATH
 
13780
  fi
 
13781
  ;;
 
13782
 
 
13783
uts4*)
 
13784
  version_type=linux
 
13785
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
13786
  soname_spec='${libname}${release}${shared_ext}$major'
 
13787
  shlibpath_var=LD_LIBRARY_PATH
 
13788
  ;;
 
13789
 
 
13790
*)
 
13791
  dynamic_linker=no
 
13792
  ;;
 
13793
esac
 
13794
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
13795
echo "${ECHO_T}$dynamic_linker" >&6
 
13796
test "$dynamic_linker" = no && can_build_shared=no
 
13797
 
 
13798
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
13799
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
13800
hardcode_action_CXX=
 
13801
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
13802
   test -n "$runpath_var_CXX" || \
 
13803
   test "X$hardcode_automatic_CXX" = "Xyes" ; then
 
13804
 
 
13805
  # We can hardcode non-existant directories.
 
13806
  if test "$hardcode_direct_CXX" != no &&
 
13807
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
13808
     # have to relink, otherwise we might link with an installed library
 
13809
     # when we should be linking with a yet-to-be-installed one
 
13810
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
13811
     test "$hardcode_minus_L_CXX" != no; then
 
13812
    # Linking always hardcodes the temporary library directory.
 
13813
    hardcode_action_CXX=relink
 
13814
  else
 
13815
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
13816
    hardcode_action_CXX=immediate
 
13817
  fi
 
13818
else
 
13819
  # We cannot hardcode anything, or else we can only hardcode existing
 
13820
  # directories.
 
13821
  hardcode_action_CXX=unsupported
 
13822
fi
 
13823
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
13824
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
13825
 
 
13826
if test "$hardcode_action_CXX" = relink; then
 
13827
  # Fast installation is not supported
 
13828
  enable_fast_install=no
 
13829
elif test "$shlibpath_overrides_runpath" = yes ||
 
13830
     test "$enable_shared" = no; then
 
13831
  # Fast installation is not necessary
 
13832
  enable_fast_install=needless
 
13833
fi
 
13834
 
 
13835
striplib=
 
13836
old_striplib=
 
13837
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
13838
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
13839
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
13840
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
13841
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
13842
  echo "$as_me:$LINENO: result: yes" >&5
 
13843
echo "${ECHO_T}yes" >&6
 
13844
else
 
13845
# FIXME - insert some real tests, host_os isn't really good enough
 
13846
  case $host_os in
 
13847
   darwin*)
 
13848
       if test -n "$STRIP" ; then
 
13849
         striplib="$STRIP -x"
 
13850
         echo "$as_me:$LINENO: result: yes" >&5
 
13851
echo "${ECHO_T}yes" >&6
 
13852
       else
 
13853
  echo "$as_me:$LINENO: result: no" >&5
 
13854
echo "${ECHO_T}no" >&6
 
13855
fi
 
13856
       ;;
 
13857
   *)
 
13858
  echo "$as_me:$LINENO: result: no" >&5
 
13859
echo "${ECHO_T}no" >&6
 
13860
    ;;
 
13861
  esac
 
13862
fi
 
13863
 
 
13864
if test "x$enable_dlopen" != xyes; then
 
13865
  enable_dlopen=unknown
 
13866
  enable_dlopen_self=unknown
 
13867
  enable_dlopen_self_static=unknown
 
13868
else
 
13869
  lt_cv_dlopen=no
 
13870
  lt_cv_dlopen_libs=
 
13871
 
 
13872
  case $host_os in
 
13873
  beos*)
 
13874
    lt_cv_dlopen="load_add_on"
 
13875
    lt_cv_dlopen_libs=
 
13876
    lt_cv_dlopen_self=yes
 
13877
    ;;
 
13878
 
 
13879
  mingw* | pw32*)
 
13880
    lt_cv_dlopen="LoadLibrary"
 
13881
    lt_cv_dlopen_libs=
 
13882
   ;;
 
13883
 
 
13884
  cygwin*)
 
13885
    lt_cv_dlopen="dlopen"
 
13886
    lt_cv_dlopen_libs=
 
13887
   ;;
 
13888
 
 
13889
  darwin*)
 
13890
  # if libdl is installed we need to link against it
 
13891
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13892
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13893
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13894
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13895
else
 
13896
  ac_check_lib_save_LIBS=$LIBS
 
13897
LIBS="-ldl  $LIBS"
 
13898
cat >conftest.$ac_ext <<_ACEOF
 
13899
/* confdefs.h.  */
 
13900
_ACEOF
 
13901
cat confdefs.h >>conftest.$ac_ext
 
13902
cat >>conftest.$ac_ext <<_ACEOF
 
13903
/* end confdefs.h.  */
 
13904
 
 
13905
/* Override any gcc2 internal prototype to avoid an error.  */
 
13906
#ifdef __cplusplus
 
13907
extern "C"
 
13908
#endif
 
13909
/* We use char because int might match the return type of a gcc2
 
13910
   builtin and then its argument prototype would still apply.  */
 
13911
char dlopen ();
 
13912
int
 
13913
main ()
 
13914
{
 
13915
dlopen ();
 
13916
  ;
 
13917
  return 0;
 
13918
}
 
13919
_ACEOF
 
13920
rm -f conftest.$ac_objext conftest$ac_exeext
 
13921
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13922
  (eval $ac_link) 2>conftest.er1
 
13923
  ac_status=$?
 
13924
  grep -v '^ *+' conftest.er1 >conftest.err
 
13925
  rm -f conftest.er1
 
13926
  cat conftest.err >&5
 
13927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13928
  (exit $ac_status); } &&
 
13929
         { ac_try='test -z "$ac_cxx_werror_flag"
 
13930
                         || test ! -s conftest.err'
 
13931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13932
  (eval $ac_try) 2>&5
 
13933
  ac_status=$?
 
13934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13935
  (exit $ac_status); }; } &&
 
13936
         { ac_try='test -s conftest$ac_exeext'
 
13937
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13938
  (eval $ac_try) 2>&5
 
13939
  ac_status=$?
 
13940
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13941
  (exit $ac_status); }; }; then
 
13942
  ac_cv_lib_dl_dlopen=yes
 
13943
else
 
13944
  echo "$as_me: failed program was:" >&5
 
13945
sed 's/^/| /' conftest.$ac_ext >&5
 
13946
 
 
13947
ac_cv_lib_dl_dlopen=no
 
13948
fi
 
13949
rm -f conftest.err conftest.$ac_objext \
 
13950
      conftest$ac_exeext conftest.$ac_ext
 
13951
LIBS=$ac_check_lib_save_LIBS
 
13952
fi
 
13953
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13954
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13955
if test $ac_cv_lib_dl_dlopen = yes; then
 
13956
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13957
else
 
13958
 
 
13959
    lt_cv_dlopen="dyld"
 
13960
    lt_cv_dlopen_libs=
 
13961
    lt_cv_dlopen_self=yes
 
13962
 
 
13963
fi
 
13964
 
 
13965
   ;;
 
13966
 
 
13967
  *)
 
13968
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
13969
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
13970
if test "${ac_cv_func_shl_load+set}" = set; then
 
13971
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13972
else
 
13973
  cat >conftest.$ac_ext <<_ACEOF
 
13974
/* confdefs.h.  */
 
13975
_ACEOF
 
13976
cat confdefs.h >>conftest.$ac_ext
 
13977
cat >>conftest.$ac_ext <<_ACEOF
 
13978
/* end confdefs.h.  */
 
13979
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
13980
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13981
#define shl_load innocuous_shl_load
 
13982
 
 
13983
/* System header to define __stub macros and hopefully few prototypes,
 
13984
    which can conflict with char shl_load (); below.
 
13985
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13986
    <limits.h> exists even on freestanding compilers.  */
 
13987
 
 
13988
#ifdef __STDC__
 
13989
# include <limits.h>
 
13990
#else
 
13991
# include <assert.h>
 
13992
#endif
 
13993
 
 
13994
#undef shl_load
 
13995
 
 
13996
/* Override any gcc2 internal prototype to avoid an error.  */
 
13997
#ifdef __cplusplus
 
13998
extern "C"
 
13999
{
 
14000
#endif
 
14001
/* We use char because int might match the return type of a gcc2
 
14002
   builtin and then its argument prototype would still apply.  */
 
14003
char shl_load ();
 
14004
/* The GNU C library defines this for functions which it implements
 
14005
    to always fail with ENOSYS.  Some functions are actually named
 
14006
    something starting with __ and the normal name is an alias.  */
 
14007
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
14008
choke me
 
14009
#else
 
14010
char (*f) () = shl_load;
 
14011
#endif
 
14012
#ifdef __cplusplus
 
14013
}
 
14014
#endif
 
14015
 
 
14016
int
 
14017
main ()
 
14018
{
 
14019
return f != shl_load;
 
14020
  ;
 
14021
  return 0;
 
14022
}
 
14023
_ACEOF
 
14024
rm -f conftest.$ac_objext conftest$ac_exeext
 
14025
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14026
  (eval $ac_link) 2>conftest.er1
 
14027
  ac_status=$?
 
14028
  grep -v '^ *+' conftest.er1 >conftest.err
 
14029
  rm -f conftest.er1
 
14030
  cat conftest.err >&5
 
14031
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14032
  (exit $ac_status); } &&
 
14033
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14034
                         || test ! -s conftest.err'
 
14035
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14036
  (eval $ac_try) 2>&5
 
14037
  ac_status=$?
 
14038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14039
  (exit $ac_status); }; } &&
 
14040
         { ac_try='test -s conftest$ac_exeext'
 
14041
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14042
  (eval $ac_try) 2>&5
 
14043
  ac_status=$?
 
14044
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14045
  (exit $ac_status); }; }; then
 
14046
  ac_cv_func_shl_load=yes
 
14047
else
 
14048
  echo "$as_me: failed program was:" >&5
 
14049
sed 's/^/| /' conftest.$ac_ext >&5
 
14050
 
 
14051
ac_cv_func_shl_load=no
 
14052
fi
 
14053
rm -f conftest.err conftest.$ac_objext \
 
14054
      conftest$ac_exeext conftest.$ac_ext
 
14055
fi
 
14056
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
14057
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
14058
if test $ac_cv_func_shl_load = yes; then
 
14059
  lt_cv_dlopen="shl_load"
 
14060
else
 
14061
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
14062
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
14063
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
14064
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14065
else
 
14066
  ac_check_lib_save_LIBS=$LIBS
 
14067
LIBS="-ldld  $LIBS"
 
14068
cat >conftest.$ac_ext <<_ACEOF
 
14069
/* confdefs.h.  */
 
14070
_ACEOF
 
14071
cat confdefs.h >>conftest.$ac_ext
 
14072
cat >>conftest.$ac_ext <<_ACEOF
 
14073
/* end confdefs.h.  */
 
14074
 
 
14075
/* Override any gcc2 internal prototype to avoid an error.  */
 
14076
#ifdef __cplusplus
 
14077
extern "C"
 
14078
#endif
 
14079
/* We use char because int might match the return type of a gcc2
 
14080
   builtin and then its argument prototype would still apply.  */
 
14081
char shl_load ();
 
14082
int
 
14083
main ()
 
14084
{
 
14085
shl_load ();
 
14086
  ;
 
14087
  return 0;
 
14088
}
 
14089
_ACEOF
 
14090
rm -f conftest.$ac_objext conftest$ac_exeext
 
14091
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14092
  (eval $ac_link) 2>conftest.er1
 
14093
  ac_status=$?
 
14094
  grep -v '^ *+' conftest.er1 >conftest.err
 
14095
  rm -f conftest.er1
 
14096
  cat conftest.err >&5
 
14097
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14098
  (exit $ac_status); } &&
 
14099
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14100
                         || test ! -s conftest.err'
 
14101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14102
  (eval $ac_try) 2>&5
 
14103
  ac_status=$?
 
14104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14105
  (exit $ac_status); }; } &&
 
14106
         { ac_try='test -s conftest$ac_exeext'
 
14107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14108
  (eval $ac_try) 2>&5
 
14109
  ac_status=$?
 
14110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14111
  (exit $ac_status); }; }; then
 
14112
  ac_cv_lib_dld_shl_load=yes
 
14113
else
 
14114
  echo "$as_me: failed program was:" >&5
 
14115
sed 's/^/| /' conftest.$ac_ext >&5
 
14116
 
 
14117
ac_cv_lib_dld_shl_load=no
 
14118
fi
 
14119
rm -f conftest.err conftest.$ac_objext \
 
14120
      conftest$ac_exeext conftest.$ac_ext
 
14121
LIBS=$ac_check_lib_save_LIBS
 
14122
fi
 
14123
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
14124
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
14125
if test $ac_cv_lib_dld_shl_load = yes; then
 
14126
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
14127
else
 
14128
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
14129
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
14130
if test "${ac_cv_func_dlopen+set}" = set; then
 
14131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14132
else
 
14133
  cat >conftest.$ac_ext <<_ACEOF
 
14134
/* confdefs.h.  */
 
14135
_ACEOF
 
14136
cat confdefs.h >>conftest.$ac_ext
 
14137
cat >>conftest.$ac_ext <<_ACEOF
 
14138
/* end confdefs.h.  */
 
14139
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
14140
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
14141
#define dlopen innocuous_dlopen
 
14142
 
 
14143
/* System header to define __stub macros and hopefully few prototypes,
 
14144
    which can conflict with char dlopen (); below.
 
14145
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
14146
    <limits.h> exists even on freestanding compilers.  */
 
14147
 
 
14148
#ifdef __STDC__
 
14149
# include <limits.h>
 
14150
#else
 
14151
# include <assert.h>
 
14152
#endif
 
14153
 
 
14154
#undef dlopen
 
14155
 
 
14156
/* Override any gcc2 internal prototype to avoid an error.  */
 
14157
#ifdef __cplusplus
 
14158
extern "C"
 
14159
{
 
14160
#endif
 
14161
/* We use char because int might match the return type of a gcc2
 
14162
   builtin and then its argument prototype would still apply.  */
 
14163
char dlopen ();
 
14164
/* The GNU C library defines this for functions which it implements
 
14165
    to always fail with ENOSYS.  Some functions are actually named
 
14166
    something starting with __ and the normal name is an alias.  */
 
14167
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
14168
choke me
 
14169
#else
 
14170
char (*f) () = dlopen;
 
14171
#endif
 
14172
#ifdef __cplusplus
 
14173
}
 
14174
#endif
 
14175
 
 
14176
int
 
14177
main ()
 
14178
{
 
14179
return f != dlopen;
 
14180
  ;
 
14181
  return 0;
 
14182
}
 
14183
_ACEOF
 
14184
rm -f conftest.$ac_objext conftest$ac_exeext
 
14185
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14186
  (eval $ac_link) 2>conftest.er1
 
14187
  ac_status=$?
 
14188
  grep -v '^ *+' conftest.er1 >conftest.err
 
14189
  rm -f conftest.er1
 
14190
  cat conftest.err >&5
 
14191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14192
  (exit $ac_status); } &&
 
14193
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14194
                         || test ! -s conftest.err'
 
14195
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14196
  (eval $ac_try) 2>&5
 
14197
  ac_status=$?
 
14198
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14199
  (exit $ac_status); }; } &&
 
14200
         { ac_try='test -s conftest$ac_exeext'
 
14201
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14202
  (eval $ac_try) 2>&5
 
14203
  ac_status=$?
 
14204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14205
  (exit $ac_status); }; }; then
 
14206
  ac_cv_func_dlopen=yes
 
14207
else
 
14208
  echo "$as_me: failed program was:" >&5
 
14209
sed 's/^/| /' conftest.$ac_ext >&5
 
14210
 
 
14211
ac_cv_func_dlopen=no
 
14212
fi
 
14213
rm -f conftest.err conftest.$ac_objext \
 
14214
      conftest$ac_exeext conftest.$ac_ext
 
14215
fi
 
14216
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
14217
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
14218
if test $ac_cv_func_dlopen = yes; then
 
14219
  lt_cv_dlopen="dlopen"
 
14220
else
 
14221
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
14222
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
14223
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
14224
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14225
else
 
14226
  ac_check_lib_save_LIBS=$LIBS
 
14227
LIBS="-ldl  $LIBS"
 
14228
cat >conftest.$ac_ext <<_ACEOF
 
14229
/* confdefs.h.  */
 
14230
_ACEOF
 
14231
cat confdefs.h >>conftest.$ac_ext
 
14232
cat >>conftest.$ac_ext <<_ACEOF
 
14233
/* end confdefs.h.  */
 
14234
 
 
14235
/* Override any gcc2 internal prototype to avoid an error.  */
 
14236
#ifdef __cplusplus
 
14237
extern "C"
 
14238
#endif
 
14239
/* We use char because int might match the return type of a gcc2
 
14240
   builtin and then its argument prototype would still apply.  */
 
14241
char dlopen ();
 
14242
int
 
14243
main ()
 
14244
{
 
14245
dlopen ();
 
14246
  ;
 
14247
  return 0;
 
14248
}
 
14249
_ACEOF
 
14250
rm -f conftest.$ac_objext conftest$ac_exeext
 
14251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14252
  (eval $ac_link) 2>conftest.er1
 
14253
  ac_status=$?
 
14254
  grep -v '^ *+' conftest.er1 >conftest.err
 
14255
  rm -f conftest.er1
 
14256
  cat conftest.err >&5
 
14257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14258
  (exit $ac_status); } &&
 
14259
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14260
                         || test ! -s conftest.err'
 
14261
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14262
  (eval $ac_try) 2>&5
 
14263
  ac_status=$?
 
14264
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14265
  (exit $ac_status); }; } &&
 
14266
         { ac_try='test -s conftest$ac_exeext'
 
14267
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14268
  (eval $ac_try) 2>&5
 
14269
  ac_status=$?
 
14270
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14271
  (exit $ac_status); }; }; then
 
14272
  ac_cv_lib_dl_dlopen=yes
 
14273
else
 
14274
  echo "$as_me: failed program was:" >&5
 
14275
sed 's/^/| /' conftest.$ac_ext >&5
 
14276
 
 
14277
ac_cv_lib_dl_dlopen=no
 
14278
fi
 
14279
rm -f conftest.err conftest.$ac_objext \
 
14280
      conftest$ac_exeext conftest.$ac_ext
 
14281
LIBS=$ac_check_lib_save_LIBS
 
14282
fi
 
14283
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
14284
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
14285
if test $ac_cv_lib_dl_dlopen = yes; then
 
14286
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
14287
else
 
14288
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
14289
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
14290
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
14291
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14292
else
 
14293
  ac_check_lib_save_LIBS=$LIBS
 
14294
LIBS="-lsvld  $LIBS"
 
14295
cat >conftest.$ac_ext <<_ACEOF
 
14296
/* confdefs.h.  */
 
14297
_ACEOF
 
14298
cat confdefs.h >>conftest.$ac_ext
 
14299
cat >>conftest.$ac_ext <<_ACEOF
 
14300
/* end confdefs.h.  */
 
14301
 
 
14302
/* Override any gcc2 internal prototype to avoid an error.  */
 
14303
#ifdef __cplusplus
 
14304
extern "C"
 
14305
#endif
 
14306
/* We use char because int might match the return type of a gcc2
 
14307
   builtin and then its argument prototype would still apply.  */
 
14308
char dlopen ();
 
14309
int
 
14310
main ()
 
14311
{
 
14312
dlopen ();
 
14313
  ;
 
14314
  return 0;
 
14315
}
 
14316
_ACEOF
 
14317
rm -f conftest.$ac_objext conftest$ac_exeext
 
14318
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14319
  (eval $ac_link) 2>conftest.er1
 
14320
  ac_status=$?
 
14321
  grep -v '^ *+' conftest.er1 >conftest.err
 
14322
  rm -f conftest.er1
 
14323
  cat conftest.err >&5
 
14324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14325
  (exit $ac_status); } &&
 
14326
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14327
                         || test ! -s conftest.err'
 
14328
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14329
  (eval $ac_try) 2>&5
 
14330
  ac_status=$?
 
14331
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14332
  (exit $ac_status); }; } &&
 
14333
         { ac_try='test -s conftest$ac_exeext'
 
14334
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14335
  (eval $ac_try) 2>&5
 
14336
  ac_status=$?
 
14337
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14338
  (exit $ac_status); }; }; then
 
14339
  ac_cv_lib_svld_dlopen=yes
 
14340
else
 
14341
  echo "$as_me: failed program was:" >&5
 
14342
sed 's/^/| /' conftest.$ac_ext >&5
 
14343
 
 
14344
ac_cv_lib_svld_dlopen=no
 
14345
fi
 
14346
rm -f conftest.err conftest.$ac_objext \
 
14347
      conftest$ac_exeext conftest.$ac_ext
 
14348
LIBS=$ac_check_lib_save_LIBS
 
14349
fi
 
14350
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
14351
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
14352
if test $ac_cv_lib_svld_dlopen = yes; then
 
14353
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
14354
else
 
14355
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
14356
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
14357
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
14358
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14359
else
 
14360
  ac_check_lib_save_LIBS=$LIBS
 
14361
LIBS="-ldld  $LIBS"
 
14362
cat >conftest.$ac_ext <<_ACEOF
 
14363
/* confdefs.h.  */
 
14364
_ACEOF
 
14365
cat confdefs.h >>conftest.$ac_ext
 
14366
cat >>conftest.$ac_ext <<_ACEOF
 
14367
/* end confdefs.h.  */
 
14368
 
 
14369
/* Override any gcc2 internal prototype to avoid an error.  */
 
14370
#ifdef __cplusplus
 
14371
extern "C"
 
14372
#endif
 
14373
/* We use char because int might match the return type of a gcc2
 
14374
   builtin and then its argument prototype would still apply.  */
 
14375
char dld_link ();
 
14376
int
 
14377
main ()
 
14378
{
 
14379
dld_link ();
 
14380
  ;
 
14381
  return 0;
 
14382
}
 
14383
_ACEOF
 
14384
rm -f conftest.$ac_objext conftest$ac_exeext
 
14385
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14386
  (eval $ac_link) 2>conftest.er1
 
14387
  ac_status=$?
 
14388
  grep -v '^ *+' conftest.er1 >conftest.err
 
14389
  rm -f conftest.er1
 
14390
  cat conftest.err >&5
 
14391
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14392
  (exit $ac_status); } &&
 
14393
         { ac_try='test -z "$ac_cxx_werror_flag"
 
14394
                         || test ! -s conftest.err'
 
14395
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14396
  (eval $ac_try) 2>&5
 
14397
  ac_status=$?
 
14398
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14399
  (exit $ac_status); }; } &&
 
14400
         { ac_try='test -s conftest$ac_exeext'
 
14401
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14402
  (eval $ac_try) 2>&5
 
14403
  ac_status=$?
 
14404
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14405
  (exit $ac_status); }; }; then
 
14406
  ac_cv_lib_dld_dld_link=yes
 
14407
else
 
14408
  echo "$as_me: failed program was:" >&5
 
14409
sed 's/^/| /' conftest.$ac_ext >&5
 
14410
 
 
14411
ac_cv_lib_dld_dld_link=no
 
14412
fi
 
14413
rm -f conftest.err conftest.$ac_objext \
 
14414
      conftest$ac_exeext conftest.$ac_ext
 
14415
LIBS=$ac_check_lib_save_LIBS
 
14416
fi
 
14417
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
14418
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
14419
if test $ac_cv_lib_dld_dld_link = yes; then
 
14420
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
14421
fi
 
14422
 
 
14423
 
 
14424
fi
 
14425
 
 
14426
 
 
14427
fi
 
14428
 
 
14429
 
 
14430
fi
 
14431
 
 
14432
 
 
14433
fi
 
14434
 
 
14435
 
 
14436
fi
 
14437
 
 
14438
    ;;
 
14439
  esac
 
14440
 
 
14441
  if test "x$lt_cv_dlopen" != xno; then
 
14442
    enable_dlopen=yes
 
14443
  else
 
14444
    enable_dlopen=no
 
14445
  fi
 
14446
 
 
14447
  case $lt_cv_dlopen in
 
14448
  dlopen)
 
14449
    save_CPPFLAGS="$CPPFLAGS"
 
14450
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
14451
 
 
14452
    save_LDFLAGS="$LDFLAGS"
 
14453
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
14454
 
 
14455
    save_LIBS="$LIBS"
 
14456
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
14457
 
 
14458
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
14459
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
14460
if test "${lt_cv_dlopen_self+set}" = set; then
 
14461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14462
else
 
14463
          if test "$cross_compiling" = yes; then :
 
14464
  lt_cv_dlopen_self=cross
 
14465
else
 
14466
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14467
  lt_status=$lt_dlunknown
 
14468
  cat > conftest.$ac_ext <<EOF
 
14469
#line 14469 "configure"
 
14470
#include "confdefs.h"
 
14471
 
 
14472
#if HAVE_DLFCN_H
 
14473
#include <dlfcn.h>
 
14474
#endif
 
14475
 
 
14476
#include <stdio.h>
 
14477
 
 
14478
#ifdef RTLD_GLOBAL
 
14479
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14480
#else
 
14481
#  ifdef DL_GLOBAL
 
14482
#    define LT_DLGLOBAL         DL_GLOBAL
 
14483
#  else
 
14484
#    define LT_DLGLOBAL         0
 
14485
#  endif
 
14486
#endif
 
14487
 
 
14488
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14489
   find out it does not work in some platform. */
 
14490
#ifndef LT_DLLAZY_OR_NOW
 
14491
#  ifdef RTLD_LAZY
 
14492
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14493
#  else
 
14494
#    ifdef DL_LAZY
 
14495
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14496
#    else
 
14497
#      ifdef RTLD_NOW
 
14498
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14499
#      else
 
14500
#        ifdef DL_NOW
 
14501
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14502
#        else
 
14503
#          define LT_DLLAZY_OR_NOW      0
 
14504
#        endif
 
14505
#      endif
 
14506
#    endif
 
14507
#  endif
 
14508
#endif
 
14509
 
 
14510
#ifdef __cplusplus
 
14511
extern "C" void exit (int);
 
14512
#endif
 
14513
 
 
14514
void fnord() { int i=42;}
 
14515
int main ()
 
14516
{
 
14517
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14518
  int status = $lt_dlunknown;
 
14519
 
 
14520
  if (self)
 
14521
    {
 
14522
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14523
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14524
      /* dlclose (self); */
 
14525
    }
 
14526
 
 
14527
    exit (status);
 
14528
}
 
14529
EOF
 
14530
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14531
  (eval $ac_link) 2>&5
 
14532
  ac_status=$?
 
14533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14534
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14535
    (./conftest; exit; ) 2>/dev/null
 
14536
    lt_status=$?
 
14537
    case x$lt_status in
 
14538
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
14539
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
14540
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
14541
    esac
 
14542
  else :
 
14543
    # compilation failed
 
14544
    lt_cv_dlopen_self=no
 
14545
  fi
 
14546
fi
 
14547
rm -fr conftest*
 
14548
 
 
14549
 
 
14550
fi
 
14551
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
14552
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
14553
 
 
14554
    if test "x$lt_cv_dlopen_self" = xyes; then
 
14555
      LDFLAGS="$LDFLAGS $link_static_flag"
 
14556
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
14557
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
14558
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
14559
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14560
else
 
14561
          if test "$cross_compiling" = yes; then :
 
14562
  lt_cv_dlopen_self_static=cross
 
14563
else
 
14564
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
14565
  lt_status=$lt_dlunknown
 
14566
  cat > conftest.$ac_ext <<EOF
 
14567
#line 14567 "configure"
 
14568
#include "confdefs.h"
 
14569
 
 
14570
#if HAVE_DLFCN_H
 
14571
#include <dlfcn.h>
 
14572
#endif
 
14573
 
 
14574
#include <stdio.h>
 
14575
 
 
14576
#ifdef RTLD_GLOBAL
 
14577
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
14578
#else
 
14579
#  ifdef DL_GLOBAL
 
14580
#    define LT_DLGLOBAL         DL_GLOBAL
 
14581
#  else
 
14582
#    define LT_DLGLOBAL         0
 
14583
#  endif
 
14584
#endif
 
14585
 
 
14586
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
14587
   find out it does not work in some platform. */
 
14588
#ifndef LT_DLLAZY_OR_NOW
 
14589
#  ifdef RTLD_LAZY
 
14590
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
14591
#  else
 
14592
#    ifdef DL_LAZY
 
14593
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
14594
#    else
 
14595
#      ifdef RTLD_NOW
 
14596
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
14597
#      else
 
14598
#        ifdef DL_NOW
 
14599
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
14600
#        else
 
14601
#          define LT_DLLAZY_OR_NOW      0
 
14602
#        endif
 
14603
#      endif
 
14604
#    endif
 
14605
#  endif
 
14606
#endif
 
14607
 
 
14608
#ifdef __cplusplus
 
14609
extern "C" void exit (int);
 
14610
#endif
 
14611
 
 
14612
void fnord() { int i=42;}
 
14613
int main ()
 
14614
{
 
14615
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
14616
  int status = $lt_dlunknown;
 
14617
 
 
14618
  if (self)
 
14619
    {
 
14620
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
14621
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
14622
      /* dlclose (self); */
 
14623
    }
 
14624
 
 
14625
    exit (status);
 
14626
}
 
14627
EOF
 
14628
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14629
  (eval $ac_link) 2>&5
 
14630
  ac_status=$?
 
14631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14632
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
14633
    (./conftest; exit; ) 2>/dev/null
 
14634
    lt_status=$?
 
14635
    case x$lt_status in
 
14636
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
14637
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
14638
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
14639
    esac
 
14640
  else :
 
14641
    # compilation failed
 
14642
    lt_cv_dlopen_self_static=no
 
14643
  fi
 
14644
fi
 
14645
rm -fr conftest*
 
14646
 
 
14647
 
 
14648
fi
 
14649
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
14650
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
14651
    fi
 
14652
 
 
14653
    CPPFLAGS="$save_CPPFLAGS"
 
14654
    LDFLAGS="$save_LDFLAGS"
 
14655
    LIBS="$save_LIBS"
 
14656
    ;;
 
14657
  esac
 
14658
 
 
14659
  case $lt_cv_dlopen_self in
 
14660
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
14661
  *) enable_dlopen_self=unknown ;;
 
14662
  esac
 
14663
 
 
14664
  case $lt_cv_dlopen_self_static in
 
14665
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
14666
  *) enable_dlopen_self_static=unknown ;;
 
14667
  esac
 
14668
fi
 
14669
 
 
14670
 
 
14671
# The else clause should only fire when bootstrapping the
 
14672
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
14673
# with your package, and you will get complaints that there are
 
14674
# no rules to generate ltmain.sh.
 
14675
if test -f "$ltmain"; then
 
14676
  # See if we are running on zsh, and set the options which allow our commands through
 
14677
  # without removal of \ escapes.
 
14678
  if test -n "${ZSH_VERSION+set}" ; then
 
14679
    setopt NO_GLOB_SUBST
 
14680
  fi
 
14681
  # Now quote all the things that may contain metacharacters while being
 
14682
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
14683
  # variables and quote the copies for generation of the libtool script.
 
14684
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
14685
    SED SHELL STRIP \
 
14686
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
14687
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
14688
    deplibs_check_method reload_flag reload_cmds need_locks \
 
14689
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
14690
    lt_cv_sys_global_symbol_to_c_name_address \
 
14691
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
14692
    old_postinstall_cmds old_postuninstall_cmds \
 
14693
    compiler_CXX \
 
14694
    CC_CXX \
 
14695
    LD_CXX \
 
14696
    lt_prog_compiler_wl_CXX \
 
14697
    lt_prog_compiler_pic_CXX \
 
14698
    lt_prog_compiler_static_CXX \
 
14699
    lt_prog_compiler_no_builtin_flag_CXX \
 
14700
    export_dynamic_flag_spec_CXX \
 
14701
    thread_safe_flag_spec_CXX \
 
14702
    whole_archive_flag_spec_CXX \
 
14703
    enable_shared_with_static_runtimes_CXX \
 
14704
    old_archive_cmds_CXX \
 
14705
    old_archive_from_new_cmds_CXX \
 
14706
    predep_objects_CXX \
 
14707
    postdep_objects_CXX \
 
14708
    predeps_CXX \
 
14709
    postdeps_CXX \
 
14710
    compiler_lib_search_path_CXX \
 
14711
    archive_cmds_CXX \
 
14712
    archive_expsym_cmds_CXX \
 
14713
    postinstall_cmds_CXX \
 
14714
    postuninstall_cmds_CXX \
 
14715
    old_archive_from_expsyms_cmds_CXX \
 
14716
    allow_undefined_flag_CXX \
 
14717
    no_undefined_flag_CXX \
 
14718
    export_symbols_cmds_CXX \
 
14719
    hardcode_libdir_flag_spec_CXX \
 
14720
    hardcode_libdir_flag_spec_ld_CXX \
 
14721
    hardcode_libdir_separator_CXX \
 
14722
    hardcode_automatic_CXX \
 
14723
    module_cmds_CXX \
 
14724
    module_expsym_cmds_CXX \
 
14725
    lt_cv_prog_compiler_c_o_CXX \
 
14726
    exclude_expsyms_CXX \
 
14727
    include_expsyms_CXX; do
 
14728
 
 
14729
    case $var in
 
14730
    old_archive_cmds_CXX | \
 
14731
    old_archive_from_new_cmds_CXX | \
 
14732
    archive_cmds_CXX | \
 
14733
    archive_expsym_cmds_CXX | \
 
14734
    module_cmds_CXX | \
 
14735
    module_expsym_cmds_CXX | \
 
14736
    old_archive_from_expsyms_cmds_CXX | \
 
14737
    export_symbols_cmds_CXX | \
 
14738
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
14739
    postinstall_cmds | postuninstall_cmds | \
 
14740
    old_postinstall_cmds | old_postuninstall_cmds | \
 
14741
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
14742
      # Double-quote double-evaled strings.
 
14743
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
14744
      ;;
 
14745
    *)
 
14746
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
14747
      ;;
 
14748
    esac
 
14749
  done
 
14750
 
 
14751
  case $lt_echo in
 
14752
  *'\$0 --fallback-echo"')
 
14753
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
14754
    ;;
 
14755
  esac
 
14756
 
 
14757
cfgfile="$ofile"
 
14758
 
 
14759
  cat <<__EOF__ >> "$cfgfile"
 
14760
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
14761
 
 
14762
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
14763
 
 
14764
# Shell to use when invoking shell scripts.
 
14765
SHELL=$lt_SHELL
 
14766
 
 
14767
# Whether or not to build shared libraries.
 
14768
build_libtool_libs=$enable_shared
 
14769
 
 
14770
# Whether or not to build static libraries.
 
14771
build_old_libs=$enable_static
 
14772
 
 
14773
# Whether or not to add -lc for building shared libraries.
 
14774
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
14775
 
 
14776
# Whether or not to disallow shared libs when runtime libs are static
 
14777
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
14778
 
 
14779
# Whether or not to optimize for fast installation.
 
14780
fast_install=$enable_fast_install
 
14781
 
 
14782
# The host system.
 
14783
host_alias=$host_alias
 
14784
host=$host
 
14785
 
 
14786
# An echo program that does not interpret backslashes.
 
14787
echo=$lt_echo
 
14788
 
 
14789
# The archiver.
 
14790
AR=$lt_AR
 
14791
AR_FLAGS=$lt_AR_FLAGS
 
14792
 
 
14793
# A C compiler.
 
14794
LTCC=$lt_LTCC
 
14795
 
 
14796
# A language-specific compiler.
 
14797
CC=$lt_compiler_CXX
 
14798
 
 
14799
# Is the compiler the GNU C compiler?
 
14800
with_gcc=$GCC_CXX
 
14801
 
 
14802
# An ERE matcher.
 
14803
EGREP=$lt_EGREP
 
14804
 
 
14805
# The linker used to build libraries.
 
14806
LD=$lt_LD_CXX
 
14807
 
 
14808
# Whether we need hard or soft links.
 
14809
LN_S=$lt_LN_S
 
14810
 
 
14811
# A BSD-compatible nm program.
 
14812
NM=$lt_NM
 
14813
 
 
14814
# A symbol stripping program
 
14815
STRIP=$lt_STRIP
 
14816
 
 
14817
# Used to examine libraries when file_magic_cmd begins "file"
 
14818
MAGIC_CMD=$MAGIC_CMD
 
14819
 
 
14820
# Used on cygwin: DLL creation program.
 
14821
DLLTOOL="$DLLTOOL"
 
14822
 
 
14823
# Used on cygwin: object dumper.
 
14824
OBJDUMP="$OBJDUMP"
 
14825
 
 
14826
# Used on cygwin: assembler.
 
14827
AS="$AS"
 
14828
 
 
14829
# The name of the directory that contains temporary libtool files.
 
14830
objdir=$objdir
 
14831
 
 
14832
# How to create reloadable object files.
 
14833
reload_flag=$lt_reload_flag
 
14834
reload_cmds=$lt_reload_cmds
 
14835
 
 
14836
# How to pass a linker flag through the compiler.
 
14837
wl=$lt_lt_prog_compiler_wl_CXX
 
14838
 
 
14839
# Object file suffix (normally "o").
 
14840
objext="$ac_objext"
 
14841
 
 
14842
# Old archive suffix (normally "a").
 
14843
libext="$libext"
 
14844
 
 
14845
# Shared library suffix (normally ".so").
 
14846
shrext_cmds='$shrext_cmds'
 
14847
 
 
14848
# Executable file suffix (normally "").
 
14849
exeext="$exeext"
 
14850
 
 
14851
# Additional compiler flags for building library objects.
 
14852
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
14853
pic_mode=$pic_mode
 
14854
 
 
14855
# What is the maximum length of a command?
 
14856
max_cmd_len=$lt_cv_sys_max_cmd_len
 
14857
 
 
14858
# Does compiler simultaneously support -c and -o options?
 
14859
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
14860
 
 
14861
# Must we lock files when doing compilation ?
 
14862
need_locks=$lt_need_locks
 
14863
 
 
14864
# Do we need the lib prefix for modules?
 
14865
need_lib_prefix=$need_lib_prefix
 
14866
 
 
14867
# Do we need a version for libraries?
 
14868
need_version=$need_version
 
14869
 
 
14870
# Whether dlopen is supported.
 
14871
dlopen_support=$enable_dlopen
 
14872
 
 
14873
# Whether dlopen of programs is supported.
 
14874
dlopen_self=$enable_dlopen_self
 
14875
 
 
14876
# Whether dlopen of statically linked programs is supported.
 
14877
dlopen_self_static=$enable_dlopen_self_static
 
14878
 
 
14879
# Compiler flag to prevent dynamic linking.
 
14880
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
14881
 
 
14882
# Compiler flag to turn off builtin functions.
 
14883
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
14884
 
 
14885
# Compiler flag to allow reflexive dlopens.
 
14886
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
14887
 
 
14888
# Compiler flag to generate shared objects directly from archives.
 
14889
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
14890
 
 
14891
# Compiler flag to generate thread-safe objects.
 
14892
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
14893
 
 
14894
# Library versioning type.
 
14895
version_type=$version_type
 
14896
 
 
14897
# Format of library name prefix.
 
14898
libname_spec=$lt_libname_spec
 
14899
 
 
14900
# List of archive names.  First name is the real one, the rest are links.
 
14901
# The last name is the one that the linker finds with -lNAME.
 
14902
library_names_spec=$lt_library_names_spec
 
14903
 
 
14904
# The coded name of the library, if different from the real name.
 
14905
soname_spec=$lt_soname_spec
 
14906
 
 
14907
# Commands used to build and install an old-style archive.
 
14908
RANLIB=$lt_RANLIB
 
14909
old_archive_cmds=$lt_old_archive_cmds_CXX
 
14910
old_postinstall_cmds=$lt_old_postinstall_cmds
 
14911
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
14912
 
 
14913
# Create an old-style archive from a shared archive.
 
14914
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
14915
 
 
14916
# Create a temporary old-style archive to link instead of a shared archive.
 
14917
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
14918
 
 
14919
# Commands used to build and install a shared archive.
 
14920
archive_cmds=$lt_archive_cmds_CXX
 
14921
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
14922
postinstall_cmds=$lt_postinstall_cmds
 
14923
postuninstall_cmds=$lt_postuninstall_cmds
 
14924
 
 
14925
# Commands used to build a loadable module (assumed same as above if empty)
 
14926
module_cmds=$lt_module_cmds_CXX
 
14927
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
14928
 
 
14929
# Commands to strip libraries.
 
14930
old_striplib=$lt_old_striplib
 
14931
striplib=$lt_striplib
 
14932
 
 
14933
# Dependencies to place before the objects being linked to create a
 
14934
# shared library.
 
14935
predep_objects=$lt_predep_objects_CXX
 
14936
 
 
14937
# Dependencies to place after the objects being linked to create a
 
14938
# shared library.
 
14939
postdep_objects=$lt_postdep_objects_CXX
 
14940
 
 
14941
# Dependencies to place before the objects being linked to create a
 
14942
# shared library.
 
14943
predeps=$lt_predeps_CXX
 
14944
 
 
14945
# Dependencies to place after the objects being linked to create a
 
14946
# shared library.
 
14947
postdeps=$lt_postdeps_CXX
 
14948
 
 
14949
# The library search path used internally by the compiler when linking
 
14950
# a shared library.
 
14951
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
14952
 
 
14953
# Method to check whether dependent libraries are shared objects.
 
14954
deplibs_check_method=$lt_deplibs_check_method
 
14955
 
 
14956
# Command to use when deplibs_check_method == file_magic.
 
14957
file_magic_cmd=$lt_file_magic_cmd
 
14958
 
 
14959
# Flag that allows shared libraries with undefined symbols to be built.
 
14960
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
14961
 
 
14962
# Flag that forces no undefined symbols.
 
14963
no_undefined_flag=$lt_no_undefined_flag_CXX
 
14964
 
 
14965
# Commands used to finish a libtool library installation in a directory.
 
14966
finish_cmds=$lt_finish_cmds
 
14967
 
 
14968
# Same as above, but a single script fragment to be evaled but not shown.
 
14969
finish_eval=$lt_finish_eval
 
14970
 
 
14971
# Take the output of nm and produce a listing of raw symbols and C names.
 
14972
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
14973
 
 
14974
# Transform the output of nm in a proper C declaration
 
14975
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
14976
 
 
14977
# Transform the output of nm in a C name address pair
 
14978
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
14979
 
 
14980
# This is the shared library runtime path variable.
 
14981
runpath_var=$runpath_var
 
14982
 
 
14983
# This is the shared library path variable.
 
14984
shlibpath_var=$shlibpath_var
 
14985
 
 
14986
# Is shlibpath searched before the hard-coded library search path?
 
14987
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
14988
 
 
14989
# How to hardcode a shared library path into an executable.
 
14990
hardcode_action=$hardcode_action_CXX
 
14991
 
 
14992
# Whether we should hardcode library paths into libraries.
 
14993
hardcode_into_libs=$hardcode_into_libs
 
14994
 
 
14995
# Flag to hardcode \$libdir into a binary during linking.
 
14996
# This must work even if \$libdir does not exist.
 
14997
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
14998
 
 
14999
# If ld is used when linking, flag to hardcode \$libdir into
 
15000
# a binary during linking. This must work even if \$libdir does
 
15001
# not exist.
 
15002
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
15003
 
 
15004
# Whether we need a single -rpath flag with a separated argument.
 
15005
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
15006
 
 
15007
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
15008
# resulting binary.
 
15009
hardcode_direct=$hardcode_direct_CXX
 
15010
 
 
15011
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
15012
# resulting binary.
 
15013
hardcode_minus_L=$hardcode_minus_L_CXX
 
15014
 
 
15015
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
15016
# the resulting binary.
 
15017
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
15018
 
 
15019
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
15020
# and all subsequent libraries and executables linked against it.
 
15021
hardcode_automatic=$hardcode_automatic_CXX
 
15022
 
 
15023
# Variables whose values should be saved in libtool wrapper scripts and
 
15024
# restored at relink time.
 
15025
variables_saved_for_relink="$variables_saved_for_relink"
 
15026
 
 
15027
# Whether libtool must link a program against all its dependency libraries.
 
15028
link_all_deplibs=$link_all_deplibs_CXX
 
15029
 
 
15030
# Compile-time system search path for libraries
 
15031
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
15032
 
 
15033
# Run-time system search path for libraries
 
15034
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
15035
 
 
15036
# Fix the shell variable \$srcfile for the compiler.
 
15037
fix_srcfile_path="$fix_srcfile_path_CXX"
 
15038
 
 
15039
# Set to yes if exported symbols are required.
 
15040
always_export_symbols=$always_export_symbols_CXX
 
15041
 
 
15042
# The commands to list exported symbols.
 
15043
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
15044
 
 
15045
# The commands to extract the exported symbol list from a shared archive.
 
15046
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
15047
 
 
15048
# Symbols that should not be listed in the preloaded symbols.
 
15049
exclude_expsyms=$lt_exclude_expsyms_CXX
 
15050
 
 
15051
# Symbols that must always be exported.
 
15052
include_expsyms=$lt_include_expsyms_CXX
 
15053
 
 
15054
# ### END LIBTOOL TAG CONFIG: $tagname
 
15055
 
 
15056
__EOF__
 
15057
 
 
15058
 
 
15059
else
 
15060
  # If there is no Makefile yet, we rely on a make rule to execute
 
15061
  # `config.status --recheck' to rerun these tests and create the
 
15062
  # libtool script then.
 
15063
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
15064
  if test -f "$ltmain_in"; then
 
15065
    test -f Makefile && make "$ltmain"
 
15066
  fi
 
15067
fi
 
15068
 
 
15069
 
 
15070
ac_ext=c
 
15071
ac_cpp='$CPP $CPPFLAGS'
 
15072
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
15073
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15074
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
15075
 
 
15076
CC=$lt_save_CC
 
15077
LDCXX=$LD
 
15078
LD=$lt_save_LD
 
15079
GCC=$lt_save_GCC
 
15080
with_gnu_ldcxx=$with_gnu_ld
 
15081
with_gnu_ld=$lt_save_with_gnu_ld
 
15082
lt_cv_path_LDCXX=$lt_cv_path_LD
 
15083
lt_cv_path_LD=$lt_save_path_LD
 
15084
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
15085
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
15086
 
 
15087
        else
 
15088
          tagname=""
 
15089
        fi
 
15090
        ;;
 
15091
 
 
15092
      F77)
 
15093
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
15094
 
 
15095
ac_ext=f
 
15096
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
15097
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
15098
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
15099
 
 
15100
 
 
15101
archive_cmds_need_lc_F77=no
 
15102
allow_undefined_flag_F77=
 
15103
always_export_symbols_F77=no
 
15104
archive_expsym_cmds_F77=
 
15105
export_dynamic_flag_spec_F77=
 
15106
hardcode_direct_F77=no
 
15107
hardcode_libdir_flag_spec_F77=
 
15108
hardcode_libdir_flag_spec_ld_F77=
 
15109
hardcode_libdir_separator_F77=
 
15110
hardcode_minus_L_F77=no
 
15111
hardcode_automatic_F77=no
 
15112
module_cmds_F77=
 
15113
module_expsym_cmds_F77=
 
15114
link_all_deplibs_F77=unknown
 
15115
old_archive_cmds_F77=$old_archive_cmds
 
15116
no_undefined_flag_F77=
 
15117
whole_archive_flag_spec_F77=
 
15118
enable_shared_with_static_runtimes_F77=no
 
15119
 
 
15120
# Source file extension for f77 test sources.
 
15121
ac_ext=f
 
15122
 
 
15123
# Object file extension for compiled f77 test sources.
 
15124
objext=o
 
15125
objext_F77=$objext
 
15126
 
 
15127
# Code to be used in simple compile tests
 
15128
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
15129
 
 
15130
# Code to be used in simple link tests
 
15131
lt_simple_link_test_code="      program t\n      end\n"
 
15132
 
 
15133
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
15134
 
 
15135
# If no C compiler was specified, use CC.
 
15136
LTCC=${LTCC-"$CC"}
 
15137
 
 
15138
# Allow CC to be a program name with arguments.
 
15139
compiler=$CC
 
15140
 
 
15141
 
 
15142
# Allow CC to be a program name with arguments.
 
15143
lt_save_CC="$CC"
 
15144
CC=${F77-"f77"}
 
15145
compiler=$CC
 
15146
compiler_F77=$CC
 
15147
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
15148
 
 
15149
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
15150
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
15151
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
15152
echo "${ECHO_T}$can_build_shared" >&6
 
15153
 
 
15154
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
15155
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
15156
test "$can_build_shared" = "no" && enable_shared=no
 
15157
 
 
15158
# On AIX, shared libraries and static libraries use the same namespace, and
 
15159
# are all built from PIC.
 
15160
case "$host_os" in
 
15161
aix3*)
 
15162
  test "$enable_shared" = yes && enable_static=no
 
15163
  if test -n "$RANLIB"; then
 
15164
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
15165
    postinstall_cmds='$RANLIB $lib'
 
15166
  fi
 
15167
  ;;
 
15168
aix4* | aix5*)
 
15169
  test "$enable_shared" = yes && enable_static=no
 
15170
  ;;
 
15171
esac
 
15172
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
15173
echo "${ECHO_T}$enable_shared" >&6
 
15174
 
 
15175
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
15176
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
15177
# Make sure either enable_shared or enable_static is yes.
 
15178
test "$enable_shared" = yes || enable_static=yes
 
15179
echo "$as_me:$LINENO: result: $enable_static" >&5
 
15180
echo "${ECHO_T}$enable_static" >&6
 
15181
 
 
15182
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15183
 
 
15184
GCC_F77="$G77"
 
15185
LD_F77="$LD"
 
15186
 
 
15187
lt_prog_compiler_wl_F77=
 
15188
lt_prog_compiler_pic_F77=
 
15189
lt_prog_compiler_static_F77=
 
15190
 
 
15191
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
15192
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
15193
 
 
15194
  if test "$GCC" = yes; then
 
15195
    lt_prog_compiler_wl_F77='-Wl,'
 
15196
    lt_prog_compiler_static_F77='-static'
 
15197
 
 
15198
    case $host_os in
 
15199
      aix*)
 
15200
      # All AIX code is PIC.
 
15201
      if test "$host_cpu" = ia64; then
 
15202
        # AIX 5 now supports IA64 processor
 
15203
        lt_prog_compiler_static_F77='-Bstatic'
 
15204
      fi
 
15205
      ;;
 
15206
 
 
15207
    amigaos*)
 
15208
      # FIXME: we need at least 68020 code to build shared libraries, but
 
15209
      # adding the `-m68020' flag to GCC prevents building anything better,
 
15210
      # like `-m68040'.
 
15211
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
15212
      ;;
 
15213
 
 
15214
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
15215
      # PIC is the default for these OSes.
 
15216
      ;;
 
15217
 
 
15218
    mingw* | pw32* | os2*)
 
15219
      # This hack is so that the source file can tell whether it is being
 
15220
      # built for inclusion in a dll (and should export symbols for example).
 
15221
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15222
      ;;
 
15223
 
 
15224
    darwin* | rhapsody*)
 
15225
      # PIC is the default on this platform
 
15226
      # Common symbols not allowed in MH_DYLIB files
 
15227
      lt_prog_compiler_pic_F77='-fno-common'
 
15228
      ;;
 
15229
 
 
15230
    msdosdjgpp*)
 
15231
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
15232
      # on systems that don't support them.
 
15233
      lt_prog_compiler_can_build_shared_F77=no
 
15234
      enable_shared=no
 
15235
      ;;
 
15236
 
 
15237
    sysv4*MP*)
 
15238
      if test -d /usr/nec; then
 
15239
        lt_prog_compiler_pic_F77=-Kconform_pic
 
15240
      fi
 
15241
      ;;
 
15242
 
 
15243
    hpux*)
 
15244
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15245
      # not for PA HP-UX.
 
15246
      case "$host_cpu" in
 
15247
      hppa*64*|ia64*)
 
15248
        # +Z the default
 
15249
        ;;
 
15250
      *)
 
15251
        lt_prog_compiler_pic_F77='-fPIC'
 
15252
        ;;
 
15253
      esac
 
15254
      ;;
 
15255
 
 
15256
    *)
 
15257
      lt_prog_compiler_pic_F77='-fPIC'
 
15258
      ;;
 
15259
    esac
 
15260
  else
 
15261
    # PORTME Check for flag to pass linker flags through the system compiler.
 
15262
    case $host_os in
 
15263
    aix*)
 
15264
      lt_prog_compiler_wl_F77='-Wl,'
 
15265
      if test "$host_cpu" = ia64; then
 
15266
        # AIX 5 now supports IA64 processor
 
15267
        lt_prog_compiler_static_F77='-Bstatic'
 
15268
      else
 
15269
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
15270
      fi
 
15271
      ;;
 
15272
      darwin*)
 
15273
        # PIC is the default on this platform
 
15274
        # Common symbols not allowed in MH_DYLIB files
 
15275
       case "$cc_basename" in
 
15276
         xlc*)
 
15277
         lt_prog_compiler_pic_F77='-qnocommon'
 
15278
         lt_prog_compiler_wl_F77='-Wl,'
 
15279
         ;;
 
15280
       esac
 
15281
       ;;
 
15282
 
 
15283
    mingw* | pw32* | os2*)
 
15284
      # This hack is so that the source file can tell whether it is being
 
15285
      # built for inclusion in a dll (and should export symbols for example).
 
15286
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
15287
      ;;
 
15288
 
 
15289
    hpux9* | hpux10* | hpux11*)
 
15290
      lt_prog_compiler_wl_F77='-Wl,'
 
15291
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
15292
      # not for PA HP-UX.
 
15293
      case "$host_cpu" in
 
15294
      hppa*64*|ia64*)
 
15295
        # +Z the default
 
15296
        ;;
 
15297
      *)
 
15298
        lt_prog_compiler_pic_F77='+Z'
 
15299
        ;;
 
15300
      esac
 
15301
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
15302
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
15303
      ;;
 
15304
 
 
15305
    irix5* | irix6* | nonstopux*)
 
15306
      lt_prog_compiler_wl_F77='-Wl,'
 
15307
      # PIC (with -KPIC) is the default.
 
15308
      lt_prog_compiler_static_F77='-non_shared'
 
15309
      ;;
 
15310
 
 
15311
    newsos6)
 
15312
      lt_prog_compiler_pic_F77='-KPIC'
 
15313
      lt_prog_compiler_static_F77='-Bstatic'
 
15314
      ;;
 
15315
 
 
15316
    linux*)
 
15317
      case $CC in
 
15318
      icc* | ecc*)
 
15319
        lt_prog_compiler_wl_F77='-Wl,'
 
15320
        lt_prog_compiler_pic_F77='-KPIC'
 
15321
        lt_prog_compiler_static_F77='-static'
 
15322
        ;;
 
15323
      ccc*)
 
15324
        lt_prog_compiler_wl_F77='-Wl,'
 
15325
        # All Alpha code is PIC.
 
15326
        lt_prog_compiler_static_F77='-non_shared'
 
15327
        ;;
 
15328
      esac
 
15329
      ;;
 
15330
 
 
15331
    osf3* | osf4* | osf5*)
 
15332
      lt_prog_compiler_wl_F77='-Wl,'
 
15333
      # All OSF/1 code is PIC.
 
15334
      lt_prog_compiler_static_F77='-non_shared'
 
15335
      ;;
 
15336
 
 
15337
    sco3.2v5*)
 
15338
      lt_prog_compiler_pic_F77='-Kpic'
 
15339
      lt_prog_compiler_static_F77='-dn'
 
15340
      ;;
 
15341
 
 
15342
    solaris*)
 
15343
      lt_prog_compiler_wl_F77='-Wl,'
 
15344
      lt_prog_compiler_pic_F77='-KPIC'
 
15345
      lt_prog_compiler_static_F77='-Bstatic'
 
15346
      ;;
 
15347
 
 
15348
    sunos4*)
 
15349
      lt_prog_compiler_wl_F77='-Qoption ld '
 
15350
      lt_prog_compiler_pic_F77='-PIC'
 
15351
      lt_prog_compiler_static_F77='-Bstatic'
 
15352
      ;;
 
15353
 
 
15354
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15355
      lt_prog_compiler_wl_F77='-Wl,'
 
15356
      lt_prog_compiler_pic_F77='-KPIC'
 
15357
      lt_prog_compiler_static_F77='-Bstatic'
 
15358
      ;;
 
15359
 
 
15360
    sysv4*MP*)
 
15361
      if test -d /usr/nec ;then
 
15362
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
15363
        lt_prog_compiler_static_F77='-Bstatic'
 
15364
      fi
 
15365
      ;;
 
15366
 
 
15367
    uts4*)
 
15368
      lt_prog_compiler_pic_F77='-pic'
 
15369
      lt_prog_compiler_static_F77='-Bstatic'
 
15370
      ;;
 
15371
 
 
15372
    *)
 
15373
      lt_prog_compiler_can_build_shared_F77=no
 
15374
      ;;
 
15375
    esac
 
15376
  fi
 
15377
 
 
15378
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
15379
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
15380
 
 
15381
#
 
15382
# Check to make sure the PIC flag actually works.
 
15383
#
 
15384
if test -n "$lt_prog_compiler_pic_F77"; then
 
15385
 
 
15386
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
15387
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
15388
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
15389
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15390
else
 
15391
  lt_prog_compiler_pic_works_F77=no
 
15392
  ac_outfile=conftest.$ac_objext
 
15393
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15394
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
15395
   # Insert the option either (1) after the last *FLAGS variable, or
 
15396
   # (2) before a word containing "conftest.", or (3) at the end.
 
15397
   # Note that $ac_compile itself does not contain backslashes and begins
 
15398
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15399
   # The option is referenced via a variable to avoid confusing sed.
 
15400
   lt_compile=`echo "$ac_compile" | $SED \
 
15401
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15402
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15403
   -e 's:$: $lt_compiler_flag:'`
 
15404
   (eval echo "\"\$as_me:15404: $lt_compile\"" >&5)
 
15405
   (eval "$lt_compile" 2>conftest.err)
 
15406
   ac_status=$?
 
15407
   cat conftest.err >&5
 
15408
   echo "$as_me:15408: \$? = $ac_status" >&5
 
15409
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
15410
     # The compiler can only warn and ignore the option if not recognized
 
15411
     # So say no if there are warnings
 
15412
     if test ! -s conftest.err; then
 
15413
       lt_prog_compiler_pic_works_F77=yes
 
15414
     fi
 
15415
   fi
 
15416
   $rm conftest*
 
15417
 
 
15418
fi
 
15419
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
15420
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
15421
 
 
15422
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
15423
    case $lt_prog_compiler_pic_F77 in
 
15424
     "" | " "*) ;;
 
15425
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
15426
     esac
 
15427
else
 
15428
    lt_prog_compiler_pic_F77=
 
15429
     lt_prog_compiler_can_build_shared_F77=no
 
15430
fi
 
15431
 
 
15432
fi
 
15433
case "$host_os" in
 
15434
  # For platforms which do not support PIC, -DPIC is meaningless:
 
15435
  *djgpp*)
 
15436
    lt_prog_compiler_pic_F77=
 
15437
    ;;
 
15438
  *)
 
15439
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
15440
    ;;
 
15441
esac
 
15442
 
 
15443
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
15444
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
15445
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
15446
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
15447
else
 
15448
  lt_cv_prog_compiler_c_o_F77=no
 
15449
   $rm -r conftest 2>/dev/null
 
15450
   mkdir conftest
 
15451
   cd conftest
 
15452
   mkdir out
 
15453
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15454
 
 
15455
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
15456
   # Insert the option either (1) after the last *FLAGS variable, or
 
15457
   # (2) before a word containing "conftest.", or (3) at the end.
 
15458
   # Note that $ac_compile itself does not contain backslashes and begins
 
15459
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
15460
   lt_compile=`echo "$ac_compile" | $SED \
 
15461
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
15462
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
15463
   -e 's:$: $lt_compiler_flag:'`
 
15464
   (eval echo "\"\$as_me:15464: $lt_compile\"" >&5)
 
15465
   (eval "$lt_compile" 2>out/conftest.err)
 
15466
   ac_status=$?
 
15467
   cat out/conftest.err >&5
 
15468
   echo "$as_me:15468: \$? = $ac_status" >&5
 
15469
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
15470
   then
 
15471
     # The compiler can only warn and ignore the option if not recognized
 
15472
     # So say no if there are warnings
 
15473
     if test ! -s out/conftest.err; then
 
15474
       lt_cv_prog_compiler_c_o_F77=yes
 
15475
     fi
 
15476
   fi
 
15477
   chmod u+w .
 
15478
   $rm conftest*
 
15479
   # SGI C++ compiler will create directory out/ii_files/ for
 
15480
   # template instantiation
 
15481
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
15482
   $rm out/* && rmdir out
 
15483
   cd ..
 
15484
   rmdir conftest
 
15485
   $rm conftest*
 
15486
 
 
15487
fi
 
15488
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
15489
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
15490
 
 
15491
 
 
15492
hard_links="nottested"
 
15493
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
15494
  # do not overwrite the value of need_locks provided by the user
 
15495
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
15496
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
15497
  hard_links=yes
 
15498
  $rm conftest*
 
15499
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15500
  touch conftest.a
 
15501
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
15502
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
15503
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
15504
echo "${ECHO_T}$hard_links" >&6
 
15505
  if test "$hard_links" = no; then
 
15506
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
15507
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
15508
    need_locks=warn
 
15509
  fi
 
15510
else
 
15511
  need_locks=no
 
15512
fi
 
15513
 
 
15514
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
15515
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
15516
 
 
15517
  runpath_var=
 
15518
  allow_undefined_flag_F77=
 
15519
  enable_shared_with_static_runtimes_F77=no
 
15520
  archive_cmds_F77=
 
15521
  archive_expsym_cmds_F77=
 
15522
  old_archive_From_new_cmds_F77=
 
15523
  old_archive_from_expsyms_cmds_F77=
 
15524
  export_dynamic_flag_spec_F77=
 
15525
  whole_archive_flag_spec_F77=
 
15526
  thread_safe_flag_spec_F77=
 
15527
  hardcode_libdir_flag_spec_F77=
 
15528
  hardcode_libdir_flag_spec_ld_F77=
 
15529
  hardcode_libdir_separator_F77=
 
15530
  hardcode_direct_F77=no
 
15531
  hardcode_minus_L_F77=no
 
15532
  hardcode_shlibpath_var_F77=unsupported
 
15533
  link_all_deplibs_F77=unknown
 
15534
  hardcode_automatic_F77=no
 
15535
  module_cmds_F77=
 
15536
  module_expsym_cmds_F77=
 
15537
  always_export_symbols_F77=no
 
15538
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
15539
  # include_expsyms should be a list of space-separated symbols to be *always*
 
15540
  # included in the symbol list
 
15541
  include_expsyms_F77=
 
15542
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
15543
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
15544
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
15545
  # as well as any symbol that contains `d'.
 
15546
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
15547
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
15548
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
15549
  # the symbol is explicitly referenced.  Since portable code cannot
 
15550
  # rely on this symbol name, it's probably fine to never include it in
 
15551
  # preloaded symbol tables.
 
15552
  extract_expsyms_cmds=
 
15553
 
 
15554
  case $host_os in
 
15555
  cygwin* | mingw* | pw32*)
 
15556
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
15557
    # When not using gcc, we currently assume that we are using
 
15558
    # Microsoft Visual C++.
 
15559
    if test "$GCC" != yes; then
 
15560
      with_gnu_ld=no
 
15561
    fi
 
15562
    ;;
 
15563
  openbsd*)
 
15564
    with_gnu_ld=no
 
15565
    ;;
 
15566
  esac
 
15567
 
 
15568
  ld_shlibs_F77=yes
 
15569
  if test "$with_gnu_ld" = yes; then
 
15570
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
15571
    wlarc='${wl}'
 
15572
 
 
15573
    # See if GNU ld supports shared libraries.
 
15574
    case $host_os in
 
15575
    aix3* | aix4* | aix5*)
 
15576
      # On AIX/PPC, the GNU linker is very broken
 
15577
      if test "$host_cpu" != ia64; then
 
15578
        ld_shlibs_F77=no
 
15579
        cat <<EOF 1>&2
 
15580
 
 
15581
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
15582
*** to be unable to reliably create shared libraries on AIX.
 
15583
*** Therefore, libtool is disabling shared libraries support.  If you
 
15584
*** really care for shared libraries, you may want to modify your PATH
 
15585
*** so that a non-GNU linker is found, and then restart.
 
15586
 
 
15587
EOF
 
15588
      fi
 
15589
      ;;
 
15590
 
 
15591
    amigaos*)
 
15592
      archive_cmds_F77='$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)'
 
15593
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15594
      hardcode_minus_L_F77=yes
 
15595
 
 
15596
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
15597
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
15598
      # to version 4, is to share data among multiple programs linked
 
15599
      # with the same dynamic library.  Since this doesn't match the
 
15600
      # behavior of shared libraries on other platforms, we can't use
 
15601
      # them.
 
15602
      ld_shlibs_F77=no
 
15603
      ;;
 
15604
 
 
15605
    beos*)
 
15606
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15607
        allow_undefined_flag_F77=unsupported
 
15608
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
15609
        # support --undefined.  This deserves some investigation.  FIXME
 
15610
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15611
      else
 
15612
        ld_shlibs_F77=no
 
15613
      fi
 
15614
      ;;
 
15615
 
 
15616
    cygwin* | mingw* | pw32*)
 
15617
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
15618
      # as there is no search path for DLLs.
 
15619
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15620
      allow_undefined_flag_F77=unsupported
 
15621
      always_export_symbols_F77=no
 
15622
      enable_shared_with_static_runtimes_F77=yes
 
15623
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
15624
 
 
15625
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
15626
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
15627
        # If the export-symbols file already is a .def file (1st line
 
15628
        # is EXPORTS), use it as is; otherwise, prepend...
 
15629
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
15630
          cp $export_symbols $output_objdir/$soname.def;
 
15631
        else
 
15632
          echo EXPORTS > $output_objdir/$soname.def;
 
15633
          cat $export_symbols >> $output_objdir/$soname.def;
 
15634
        fi~
 
15635
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
15636
      else
 
15637
        ld_shlibs=no
 
15638
      fi
 
15639
      ;;
 
15640
 
 
15641
    netbsd*)
 
15642
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15643
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
15644
        wlarc=
 
15645
      else
 
15646
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15647
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15648
      fi
 
15649
      ;;
 
15650
 
 
15651
    solaris* | sysv5*)
 
15652
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
15653
        ld_shlibs_F77=no
 
15654
        cat <<EOF 1>&2
 
15655
 
 
15656
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
15657
*** create shared libraries on Solaris systems.  Therefore, libtool
 
15658
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
15659
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
15660
*** your PATH or compiler configuration so that the native linker is
 
15661
*** used, and then restart.
 
15662
 
 
15663
EOF
 
15664
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15665
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15666
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15667
      else
 
15668
        ld_shlibs_F77=no
 
15669
      fi
 
15670
      ;;
 
15671
 
 
15672
    sunos4*)
 
15673
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15674
      wlarc=
 
15675
      hardcode_direct_F77=yes
 
15676
      hardcode_shlibpath_var_F77=no
 
15677
      ;;
 
15678
 
 
15679
  linux*)
 
15680
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15681
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15682
        archive_cmds_F77="$tmp_archive_cmds"
 
15683
      supports_anon_versioning=no
 
15684
      case `$LD -v 2>/dev/null` in
 
15685
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
15686
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
15687
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
15688
        *\ 2.11.*) ;; # other 2.11 versions
 
15689
        *) supports_anon_versioning=yes ;;
 
15690
      esac
 
15691
      if test $supports_anon_versioning = yes; then
 
15692
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
15693
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
15694
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
15695
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
15696
      else
 
15697
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
15698
      fi
 
15699
    else
 
15700
      ld_shlibs_F77=no
 
15701
    fi
 
15702
    ;;
 
15703
 
 
15704
    *)
 
15705
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
15706
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
15707
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
15708
      else
 
15709
        ld_shlibs_F77=no
 
15710
      fi
 
15711
      ;;
 
15712
    esac
 
15713
 
 
15714
    if test "$ld_shlibs_F77" = yes; then
 
15715
      runpath_var=LD_RUN_PATH
 
15716
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
15717
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
15718
      # ancient GNU ld didn't support --whole-archive et. al.
 
15719
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
15720
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
15721
      else
 
15722
        whole_archive_flag_spec_F77=
 
15723
      fi
 
15724
    fi
 
15725
  else
 
15726
    # PORTME fill in a description of your system's linker (not GNU ld)
 
15727
    case $host_os in
 
15728
    aix3*)
 
15729
      allow_undefined_flag_F77=unsupported
 
15730
      always_export_symbols_F77=yes
 
15731
      archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
15732
      # Note: this linker hardcodes the directories in LIBPATH if there
 
15733
      # are no directories specified by -L.
 
15734
      hardcode_minus_L_F77=yes
 
15735
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
15736
        # Neither direct hardcoding nor static linking is supported with a
 
15737
        # broken collect2.
 
15738
        hardcode_direct_F77=unsupported
 
15739
      fi
 
15740
      ;;
 
15741
 
 
15742
    aix4* | aix5*)
 
15743
      if test "$host_cpu" = ia64; then
 
15744
        # On IA64, the linker does run time linking by default, so we don't
 
15745
        # have to do anything special.
 
15746
        aix_use_runtimelinking=no
 
15747
        exp_sym_flag='-Bexport'
 
15748
        no_entry_flag=""
 
15749
      else
 
15750
        # If we're using GNU nm, then we don't want the "-C" option.
 
15751
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
15752
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
15753
          export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15754
        else
 
15755
          export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
15756
        fi
 
15757
        aix_use_runtimelinking=no
 
15758
 
 
15759
        # Test if we are trying to use run time linking or normal
 
15760
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
15761
        # need to do runtime linking.
 
15762
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
15763
          for ld_flag in $LDFLAGS; do
 
15764
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
15765
            aix_use_runtimelinking=yes
 
15766
            break
 
15767
          fi
 
15768
          done
 
15769
        esac
 
15770
 
 
15771
        exp_sym_flag='-bexport'
 
15772
        no_entry_flag='-bnoentry'
 
15773
      fi
 
15774
 
 
15775
      # When large executables or shared objects are built, AIX ld can
 
15776
      # have problems creating the table of contents.  If linking a library
 
15777
      # or program results in "error TOC overflow" add -mminimal-toc to
 
15778
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
15779
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
15780
 
 
15781
      archive_cmds_F77=''
 
15782
      hardcode_direct_F77=yes
 
15783
      hardcode_libdir_separator_F77=':'
 
15784
      link_all_deplibs_F77=yes
 
15785
 
 
15786
      if test "$GCC" = yes; then
 
15787
        case $host_os in aix4.012|aix4.012.*)
 
15788
        # We only want to do this on AIX 4.2 and lower, the check
 
15789
        # below for broken collect2 doesn't work under 4.3+
 
15790
          collect2name=`${CC} -print-prog-name=collect2`
 
15791
          if test -f "$collect2name" && \
 
15792
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
15793
          then
 
15794
          # We have reworked collect2
 
15795
          hardcode_direct_F77=yes
 
15796
          else
 
15797
          # We have old collect2
 
15798
          hardcode_direct_F77=unsupported
 
15799
          # It fails to find uninstalled libraries when the uninstalled
 
15800
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
15801
          # to unsupported forces relinking
 
15802
          hardcode_minus_L_F77=yes
 
15803
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15804
          hardcode_libdir_separator_F77=
 
15805
          fi
 
15806
        esac
 
15807
        shared_flag='-shared'
 
15808
      else
 
15809
        # not using gcc
 
15810
        if test "$host_cpu" = ia64; then
 
15811
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
15812
        # chokes on -Wl,-G. The following line is correct:
 
15813
          shared_flag='-G'
 
15814
        else
 
15815
        if test "$aix_use_runtimelinking" = yes; then
 
15816
            shared_flag='${wl}-G'
 
15817
          else
 
15818
            shared_flag='${wl}-bM:SRE'
 
15819
        fi
 
15820
        fi
 
15821
      fi
 
15822
 
 
15823
      # It seems that -bexpall does not export symbols beginning with
 
15824
      # underscore (_), so it is better to generate a list of symbols to export.
 
15825
      always_export_symbols_F77=yes
 
15826
      if test "$aix_use_runtimelinking" = yes; then
 
15827
        # Warning - without using the other runtime loading flags (-brtl),
 
15828
        # -berok will link without error, but may produce a broken library.
 
15829
        allow_undefined_flag_F77='-berok'
 
15830
       # Determine the default libpath from the value encoded in an empty executable.
 
15831
       cat >conftest.$ac_ext <<_ACEOF
 
15832
      program main
 
15833
 
 
15834
      end
 
15835
_ACEOF
 
15836
rm -f conftest.$ac_objext conftest$ac_exeext
 
15837
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15838
  (eval $ac_link) 2>conftest.er1
 
15839
  ac_status=$?
 
15840
  grep -v '^ *+' conftest.er1 >conftest.err
 
15841
  rm -f conftest.er1
 
15842
  cat conftest.err >&5
 
15843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15844
  (exit $ac_status); } &&
 
15845
         { ac_try='test -z "$ac_f77_werror_flag"
 
15846
                         || test ! -s conftest.err'
 
15847
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15848
  (eval $ac_try) 2>&5
 
15849
  ac_status=$?
 
15850
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15851
  (exit $ac_status); }; } &&
 
15852
         { ac_try='test -s conftest$ac_exeext'
 
15853
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15854
  (eval $ac_try) 2>&5
 
15855
  ac_status=$?
 
15856
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15857
  (exit $ac_status); }; }; then
 
15858
 
 
15859
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15860
}'`
 
15861
# Check for a 64-bit object if we didn't find anything.
 
15862
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15863
}'`; fi
 
15864
else
 
15865
  echo "$as_me: failed program was:" >&5
 
15866
sed 's/^/| /' conftest.$ac_ext >&5
 
15867
 
 
15868
fi
 
15869
rm -f conftest.err conftest.$ac_objext \
 
15870
      conftest$ac_exeext conftest.$ac_ext
 
15871
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15872
 
 
15873
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15874
        archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
15875
       else
 
15876
        if test "$host_cpu" = ia64; then
 
15877
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
15878
          allow_undefined_flag_F77="-z nodefs"
 
15879
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
15880
        else
 
15881
         # Determine the default libpath from the value encoded in an empty executable.
 
15882
         cat >conftest.$ac_ext <<_ACEOF
 
15883
      program main
 
15884
 
 
15885
      end
 
15886
_ACEOF
 
15887
rm -f conftest.$ac_objext conftest$ac_exeext
 
15888
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
15889
  (eval $ac_link) 2>conftest.er1
 
15890
  ac_status=$?
 
15891
  grep -v '^ *+' conftest.er1 >conftest.err
 
15892
  rm -f conftest.er1
 
15893
  cat conftest.err >&5
 
15894
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15895
  (exit $ac_status); } &&
 
15896
         { ac_try='test -z "$ac_f77_werror_flag"
 
15897
                         || test ! -s conftest.err'
 
15898
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15899
  (eval $ac_try) 2>&5
 
15900
  ac_status=$?
 
15901
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15902
  (exit $ac_status); }; } &&
 
15903
         { ac_try='test -s conftest$ac_exeext'
 
15904
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
15905
  (eval $ac_try) 2>&5
 
15906
  ac_status=$?
 
15907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15908
  (exit $ac_status); }; }; then
 
15909
 
 
15910
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15911
}'`
 
15912
# Check for a 64-bit object if we didn't find anything.
 
15913
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
15914
}'`; fi
 
15915
else
 
15916
  echo "$as_me: failed program was:" >&5
 
15917
sed 's/^/| /' conftest.$ac_ext >&5
 
15918
 
 
15919
fi
 
15920
rm -f conftest.err conftest.$ac_objext \
 
15921
      conftest$ac_exeext conftest.$ac_ext
 
15922
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
15923
 
 
15924
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
15925
          # Warning - without using the other run time loading flags,
 
15926
          # -berok will link without error, but may produce a broken library.
 
15927
          no_undefined_flag_F77=' ${wl}-bernotok'
 
15928
          allow_undefined_flag_F77=' ${wl}-berok'
 
15929
          # -bexpall does not export symbols beginning with underscore (_)
 
15930
          always_export_symbols_F77=yes
 
15931
          # Exported symbols can be pulled into shared objects from archives
 
15932
          whole_archive_flag_spec_F77=' '
 
15933
          archive_cmds_need_lc_F77=yes
 
15934
          # This is similar to how AIX traditionally builds it's shared libraries.
 
15935
          archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
15936
        fi
 
15937
      fi
 
15938
      ;;
 
15939
 
 
15940
    amigaos*)
 
15941
      archive_cmds_F77='$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)'
 
15942
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15943
      hardcode_minus_L_F77=yes
 
15944
      # see comment about different semantics on the GNU ld section
 
15945
      ld_shlibs_F77=no
 
15946
      ;;
 
15947
 
 
15948
    bsdi[45]*)
 
15949
      export_dynamic_flag_spec_F77=-rdynamic
 
15950
      ;;
 
15951
 
 
15952
    cygwin* | mingw* | pw32*)
 
15953
      # When not using gcc, we currently assume that we are using
 
15954
      # Microsoft Visual C++.
 
15955
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
15956
      # no search path for DLLs.
 
15957
      hardcode_libdir_flag_spec_F77=' '
 
15958
      allow_undefined_flag_F77=unsupported
 
15959
      # Tell ltmain to make .lib files, not .a files.
 
15960
      libext=lib
 
15961
      # Tell ltmain to make .dll files, not .so files.
 
15962
      shrext_cmds=".dll"
 
15963
      # FIXME: Setting linknames here is a bad hack.
 
15964
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
15965
      # The linker will automatically build a .lib file if we build a DLL.
 
15966
      old_archive_From_new_cmds_F77='true'
 
15967
      # FIXME: Should let the user specify the lib program.
 
15968
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
15969
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
15970
      enable_shared_with_static_runtimes_F77=yes
 
15971
      ;;
 
15972
 
 
15973
    darwin* | rhapsody*)
 
15974
      case "$host_os" in
 
15975
        rhapsody* | darwin1.[012])
 
15976
         allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
 
15977
         ;;
 
15978
       *) # Darwin 1.3 on
 
15979
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
15980
           allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15981
         else
 
15982
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
15983
             10.[012])
 
15984
               allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
15985
               ;;
 
15986
             10.*)
 
15987
               allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
 
15988
               ;;
 
15989
           esac
 
15990
         fi
 
15991
         ;;
 
15992
      esac
 
15993
      archive_cmds_need_lc_F77=no
 
15994
      hardcode_direct_F77=no
 
15995
      hardcode_automatic_F77=yes
 
15996
      hardcode_shlibpath_var_F77=unsupported
 
15997
      whole_archive_flag_spec_F77=''
 
15998
      link_all_deplibs_F77=yes
 
15999
    if test "$GCC" = yes ; then
 
16000
        output_verbose_link_cmd='echo'
 
16001
        archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
16002
      module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16003
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16004
      archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16005
      module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16006
    else
 
16007
      case "$cc_basename" in
 
16008
        xlc*)
 
16009
         output_verbose_link_cmd='echo'
 
16010
         archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
16011
         module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
16012
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
16013
         archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16014
          module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
16015
          ;;
 
16016
       *)
 
16017
         ld_shlibs_F77=no
 
16018
          ;;
 
16019
      esac
 
16020
    fi
 
16021
      ;;
 
16022
 
 
16023
    dgux*)
 
16024
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16025
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16026
      hardcode_shlibpath_var_F77=no
 
16027
      ;;
 
16028
 
 
16029
    freebsd1*)
 
16030
      ld_shlibs_F77=no
 
16031
      ;;
 
16032
 
 
16033
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
16034
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
16035
    # does not break anything, and helps significantly (at the cost of a little
 
16036
    # extra space).
 
16037
    freebsd2.2*)
 
16038
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
16039
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16040
      hardcode_direct_F77=yes
 
16041
      hardcode_shlibpath_var_F77=no
 
16042
      ;;
 
16043
 
 
16044
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
16045
    freebsd2*)
 
16046
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16047
      hardcode_direct_F77=yes
 
16048
      hardcode_minus_L_F77=yes
 
16049
      hardcode_shlibpath_var_F77=no
 
16050
      ;;
 
16051
 
 
16052
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
16053
    freebsd* | kfreebsd*-gnu)
 
16054
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
16055
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16056
      hardcode_direct_F77=yes
 
16057
      hardcode_shlibpath_var_F77=no
 
16058
      ;;
 
16059
 
 
16060
    hpux9*)
 
16061
      if test "$GCC" = yes; then
 
16062
        archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
16063
      else
 
16064
        archive_cmds_F77='$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'
 
16065
      fi
 
16066
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16067
      hardcode_libdir_separator_F77=:
 
16068
      hardcode_direct_F77=yes
 
16069
 
 
16070
      # hardcode_minus_L: Not really in the search PATH,
 
16071
      # but as the default location of the library.
 
16072
      hardcode_minus_L_F77=yes
 
16073
      export_dynamic_flag_spec_F77='${wl}-E'
 
16074
      ;;
 
16075
 
 
16076
    hpux10* | hpux11*)
 
16077
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
16078
        case "$host_cpu" in
 
16079
        hppa*64*|ia64*)
 
16080
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16081
          ;;
 
16082
        *)
 
16083
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
16084
          ;;
 
16085
        esac
 
16086
      else
 
16087
        case "$host_cpu" in
 
16088
        hppa*64*|ia64*)
 
16089
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16090
          ;;
 
16091
        *)
 
16092
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
16093
          ;;
 
16094
        esac
 
16095
      fi
 
16096
      if test "$with_gnu_ld" = no; then
 
16097
        case "$host_cpu" in
 
16098
        hppa*64*)
 
16099
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16100
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
16101
          hardcode_libdir_separator_F77=:
 
16102
          hardcode_direct_F77=no
 
16103
          hardcode_shlibpath_var_F77=no
 
16104
          ;;
 
16105
        ia64*)
 
16106
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
16107
          hardcode_direct_F77=no
 
16108
          hardcode_shlibpath_var_F77=no
 
16109
 
 
16110
          # hardcode_minus_L: Not really in the search PATH,
 
16111
          # but as the default location of the library.
 
16112
          hardcode_minus_L_F77=yes
 
16113
          ;;
 
16114
        *)
 
16115
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
16116
          hardcode_libdir_separator_F77=:
 
16117
          hardcode_direct_F77=yes
 
16118
          export_dynamic_flag_spec_F77='${wl}-E'
 
16119
 
 
16120
          # hardcode_minus_L: Not really in the search PATH,
 
16121
          # but as the default location of the library.
 
16122
          hardcode_minus_L_F77=yes
 
16123
          ;;
 
16124
        esac
 
16125
      fi
 
16126
      ;;
 
16127
 
 
16128
    irix5* | irix6* | nonstopux*)
 
16129
      if test "$GCC" = yes; then
 
16130
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16131
      else
 
16132
        archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16133
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
16134
      fi
 
16135
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16136
      hardcode_libdir_separator_F77=:
 
16137
      link_all_deplibs_F77=yes
 
16138
      ;;
 
16139
 
 
16140
    netbsd*)
 
16141
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16142
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
16143
      else
 
16144
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
16145
      fi
 
16146
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16147
      hardcode_direct_F77=yes
 
16148
      hardcode_shlibpath_var_F77=no
 
16149
      ;;
 
16150
 
 
16151
    newsos6)
 
16152
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16153
      hardcode_direct_F77=yes
 
16154
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16155
      hardcode_libdir_separator_F77=:
 
16156
      hardcode_shlibpath_var_F77=no
 
16157
      ;;
 
16158
 
 
16159
    openbsd*)
 
16160
      hardcode_direct_F77=yes
 
16161
      hardcode_shlibpath_var_F77=no
 
16162
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16163
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16164
        archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
16165
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16166
        export_dynamic_flag_spec_F77='${wl}-E'
 
16167
      else
 
16168
       case $host_os in
 
16169
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
16170
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16171
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
16172
           ;;
 
16173
         *)
 
16174
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
16175
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
16176
           ;;
 
16177
       esac
 
16178
      fi
 
16179
      ;;
 
16180
 
 
16181
    os2*)
 
16182
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16183
      hardcode_minus_L_F77=yes
 
16184
      allow_undefined_flag_F77=unsupported
 
16185
      archive_cmds_F77='$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'
 
16186
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
16187
      ;;
 
16188
 
 
16189
    osf3*)
 
16190
      if test "$GCC" = yes; then
 
16191
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16192
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16193
      else
 
16194
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16195
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16196
      fi
 
16197
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16198
      hardcode_libdir_separator_F77=:
 
16199
      ;;
 
16200
 
 
16201
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
16202
      if test "$GCC" = yes; then
 
16203
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
16204
        archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
16205
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
16206
      else
 
16207
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
16208
        archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
16209
        archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
16210
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
16211
 
 
16212
        # Both c and cxx compiler support -rpath directly
 
16213
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
16214
      fi
 
16215
      hardcode_libdir_separator_F77=:
 
16216
      ;;
 
16217
 
 
16218
    sco3.2v5*)
 
16219
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16220
      hardcode_shlibpath_var_F77=no
 
16221
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
16222
      runpath_var=LD_RUN_PATH
 
16223
      hardcode_runpath_var=yes
 
16224
      ;;
 
16225
 
 
16226
    solaris*)
 
16227
      no_undefined_flag_F77=' -z text'
 
16228
      if test "$GCC" = yes; then
 
16229
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16230
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16231
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
16232
      else
 
16233
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16234
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16235
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16236
      fi
 
16237
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
16238
      hardcode_shlibpath_var_F77=no
 
16239
      case $host_os in
 
16240
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
16241
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
16242
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
16243
      esac
 
16244
      link_all_deplibs_F77=yes
 
16245
      ;;
 
16246
 
 
16247
    sunos4*)
 
16248
      if test "x$host_vendor" = xsequent; then
 
16249
        # Use $CC to link under sequent, because it throws in some extra .o
 
16250
        # files that make .init and .fini sections work.
 
16251
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
16252
      else
 
16253
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
16254
      fi
 
16255
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16256
      hardcode_direct_F77=yes
 
16257
      hardcode_minus_L_F77=yes
 
16258
      hardcode_shlibpath_var_F77=no
 
16259
      ;;
 
16260
 
 
16261
    sysv4)
 
16262
      case $host_vendor in
 
16263
        sni)
 
16264
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16265
          hardcode_direct_F77=yes # is this really true???
 
16266
        ;;
 
16267
        siemens)
 
16268
          ## LD is ld it makes a PLAMLIB
 
16269
          ## CC just makes a GrossModule.
 
16270
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16271
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
16272
          hardcode_direct_F77=no
 
16273
        ;;
 
16274
        motorola)
 
16275
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16276
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
16277
        ;;
 
16278
      esac
 
16279
      runpath_var='LD_RUN_PATH'
 
16280
      hardcode_shlibpath_var_F77=no
 
16281
      ;;
 
16282
 
 
16283
    sysv4.3*)
 
16284
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16285
      hardcode_shlibpath_var_F77=no
 
16286
      export_dynamic_flag_spec_F77='-Bexport'
 
16287
      ;;
 
16288
 
 
16289
    sysv4*MP*)
 
16290
      if test -d /usr/nec; then
 
16291
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16292
        hardcode_shlibpath_var_F77=no
 
16293
        runpath_var=LD_RUN_PATH
 
16294
        hardcode_runpath_var=yes
 
16295
        ld_shlibs_F77=yes
 
16296
      fi
 
16297
      ;;
 
16298
 
 
16299
    sysv4.2uw2*)
 
16300
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
16301
      hardcode_direct_F77=yes
 
16302
      hardcode_minus_L_F77=no
 
16303
      hardcode_shlibpath_var_F77=no
 
16304
      hardcode_runpath_var=yes
 
16305
      runpath_var=LD_RUN_PATH
 
16306
      ;;
 
16307
 
 
16308
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
16309
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
16310
      if test "$GCC" = yes; then
 
16311
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16312
      else
 
16313
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
16314
      fi
 
16315
      runpath_var='LD_RUN_PATH'
 
16316
      hardcode_shlibpath_var_F77=no
 
16317
      ;;
 
16318
 
 
16319
    sysv5*)
 
16320
      no_undefined_flag_F77=' -z text'
 
16321
      # $CC -shared without GNU ld will not create a library from C++
 
16322
      # object files and a static libstdc++, better avoid it by now
 
16323
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16324
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
16325
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
16326
      hardcode_libdir_flag_spec_F77=
 
16327
      hardcode_shlibpath_var_F77=no
 
16328
      runpath_var='LD_RUN_PATH'
 
16329
      ;;
 
16330
 
 
16331
    uts4*)
 
16332
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
16333
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
16334
      hardcode_shlibpath_var_F77=no
 
16335
      ;;
 
16336
 
 
16337
    *)
 
16338
      ld_shlibs_F77=no
 
16339
      ;;
 
16340
    esac
 
16341
  fi
 
16342
 
 
16343
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
16344
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
16345
test "$ld_shlibs_F77" = no && can_build_shared=no
 
16346
 
 
16347
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
16348
if test "$GCC" = yes; then
 
16349
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
16350
fi
 
16351
 
 
16352
#
 
16353
# Do we need to explicitly link libc?
 
16354
#
 
16355
case "x$archive_cmds_need_lc_F77" in
 
16356
x|xyes)
 
16357
  # Assume -lc should be added
 
16358
  archive_cmds_need_lc_F77=yes
 
16359
 
 
16360
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
16361
    case $archive_cmds_F77 in
 
16362
    *'~'*)
 
16363
      # FIXME: we may have to deal with multi-command sequences.
 
16364
      ;;
 
16365
    '$CC '*)
 
16366
      # Test whether the compiler implicitly links with -lc since on some
 
16367
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
16368
      # to ld, don't add -lc before -lgcc.
 
16369
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
16370
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
16371
      $rm conftest*
 
16372
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16373
 
 
16374
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16375
  (eval $ac_compile) 2>&5
 
16376
  ac_status=$?
 
16377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16378
  (exit $ac_status); } 2>conftest.err; then
 
16379
        soname=conftest
 
16380
        lib=conftest
 
16381
        libobjs=conftest.$ac_objext
 
16382
        deplibs=
 
16383
        wl=$lt_prog_compiler_wl_F77
 
16384
        compiler_flags=-v
 
16385
        linker_flags=-v
 
16386
        verstring=
 
16387
        output_objdir=.
 
16388
        libname=conftest
 
16389
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
16390
        allow_undefined_flag_F77=
 
16391
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
16392
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
16393
  ac_status=$?
 
16394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16395
  (exit $ac_status); }
 
16396
        then
 
16397
          archive_cmds_need_lc_F77=no
 
16398
        else
 
16399
          archive_cmds_need_lc_F77=yes
 
16400
        fi
 
16401
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
16402
      else
 
16403
        cat conftest.err 1>&5
 
16404
      fi
 
16405
      $rm conftest*
 
16406
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
16407
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
16408
      ;;
 
16409
    esac
 
16410
  fi
 
16411
  ;;
 
16412
esac
 
16413
 
 
16414
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
16415
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
16416
library_names_spec=
 
16417
libname_spec='lib$name'
 
16418
soname_spec=
 
16419
shrext_cmds=".so"
 
16420
postinstall_cmds=
 
16421
postuninstall_cmds=
 
16422
finish_cmds=
 
16423
finish_eval=
 
16424
shlibpath_var=
 
16425
shlibpath_overrides_runpath=unknown
 
16426
version_type=none
 
16427
dynamic_linker="$host_os ld.so"
 
16428
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
16429
if test "$GCC" = yes; then
 
16430
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16431
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
16432
    # if the path contains ";" then we assume it to be the separator
 
16433
    # otherwise default to the standard path separator (i.e. ":") - it is
 
16434
    # assumed that no part of a normal pathname contains ";" but that should
 
16435
    # okay in the real world where ";" in dirpaths is itself problematic.
 
16436
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16437
  else
 
16438
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16439
  fi
 
16440
else
 
16441
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
16442
fi
 
16443
need_lib_prefix=unknown
 
16444
hardcode_into_libs=no
 
16445
 
 
16446
# when you set need_version to no, make sure it does not cause -set_version
 
16447
# flags to be left without arguments
 
16448
need_version=unknown
 
16449
 
 
16450
case $host_os in
 
16451
aix3*)
 
16452
  version_type=linux
 
16453
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
16454
  shlibpath_var=LIBPATH
 
16455
 
 
16456
  # AIX 3 has no versioning support, so we append a major version to the name.
 
16457
  soname_spec='${libname}${release}${shared_ext}$major'
 
16458
  ;;
 
16459
 
 
16460
aix4* | aix5*)
 
16461
  version_type=linux
 
16462
  need_lib_prefix=no
 
16463
  need_version=no
 
16464
  hardcode_into_libs=yes
 
16465
  if test "$host_cpu" = ia64; then
 
16466
    # AIX 5 supports IA64
 
16467
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
16468
    shlibpath_var=LD_LIBRARY_PATH
 
16469
  else
 
16470
    # With GCC up to 2.95.x, collect2 would create an import file
 
16471
    # for dependence libraries.  The import file would start with
 
16472
    # the line `#! .'.  This would cause the generated library to
 
16473
    # depend on `.', always an invalid library.  This was fixed in
 
16474
    # development snapshots of GCC prior to 3.0.
 
16475
    case $host_os in
 
16476
      aix4 | aix4.[01] | aix4.[01].*)
 
16477
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
16478
           echo ' yes '
 
16479
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
16480
        :
 
16481
      else
 
16482
        can_build_shared=no
 
16483
      fi
 
16484
      ;;
 
16485
    esac
 
16486
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
16487
    # soname into executable. Probably we can add versioning support to
 
16488
    # collect2, so additional links can be useful in future.
 
16489
    if test "$aix_use_runtimelinking" = yes; then
 
16490
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
16491
      # instead of lib<name>.a to let people know that these are not
 
16492
      # typical AIX shared libraries.
 
16493
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16494
    else
 
16495
      # We preserve .a as extension for shared libraries through AIX4.2
 
16496
      # and later when we are not doing run time linking.
 
16497
      library_names_spec='${libname}${release}.a $libname.a'
 
16498
      soname_spec='${libname}${release}${shared_ext}$major'
 
16499
    fi
 
16500
    shlibpath_var=LIBPATH
 
16501
  fi
 
16502
  ;;
 
16503
 
 
16504
amigaos*)
 
16505
  library_names_spec='$libname.ixlibrary $libname.a'
 
16506
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
16507
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
16508
  ;;
 
16509
 
 
16510
beos*)
 
16511
  library_names_spec='${libname}${shared_ext}'
 
16512
  dynamic_linker="$host_os ld.so"
 
16513
  shlibpath_var=LIBRARY_PATH
 
16514
  ;;
 
16515
 
 
16516
bsdi[45]*)
 
16517
  version_type=linux
 
16518
  need_version=no
 
16519
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16520
  soname_spec='${libname}${release}${shared_ext}$major'
 
16521
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
16522
  shlibpath_var=LD_LIBRARY_PATH
 
16523
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
16524
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
16525
  # the default ld.so.conf also contains /usr/contrib/lib and
 
16526
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
16527
  # libtool to hard-code these into programs
 
16528
  ;;
 
16529
 
 
16530
cygwin* | mingw* | pw32*)
 
16531
  version_type=windows
 
16532
  shrext_cmds=".dll"
 
16533
  need_version=no
 
16534
  need_lib_prefix=no
 
16535
 
 
16536
  case $GCC,$host_os in
 
16537
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
16538
    library_names_spec='$libname.dll.a'
 
16539
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
16540
    postinstall_cmds='base_file=`basename \${file}`~
 
16541
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
16542
      dldir=$destdir/`dirname \$dlpath`~
 
16543
      test -d \$dldir || mkdir -p \$dldir~
 
16544
      $install_prog $dir/$dlname \$dldir/$dlname'
 
16545
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
16546
      dlpath=$dir/\$dldll~
 
16547
       $rm \$dlpath'
 
16548
    shlibpath_overrides_runpath=yes
 
16549
 
 
16550
    case $host_os in
 
16551
    cygwin*)
 
16552
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
16553
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16554
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
16555
      ;;
 
16556
    mingw*)
 
16557
      # MinGW DLLs use traditional 'lib' prefix
 
16558
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
16559
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
16560
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
16561
        # It is most probably a Windows format PATH printed by
 
16562
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
16563
        # path with ; separators, and with drive letters. We can handle the
 
16564
        # drive letters (cygwin fileutils understands them), so leave them,
 
16565
        # especially as we might pass files found there to a mingw objdump,
 
16566
        # which wouldn't understand a cygwinified path. Ahh.
 
16567
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
16568
      else
 
16569
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
16570
      fi
 
16571
      ;;
 
16572
    pw32*)
 
16573
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
16574
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
16575
      ;;
 
16576
    esac
 
16577
    ;;
 
16578
 
 
16579
  *)
 
16580
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
16581
    ;;
 
16582
  esac
 
16583
  dynamic_linker='Win32 ld.exe'
 
16584
  # FIXME: first we should search . and the directory the executable is in
 
16585
  shlibpath_var=PATH
 
16586
  ;;
 
16587
 
 
16588
darwin* | rhapsody*)
 
16589
  dynamic_linker="$host_os dyld"
 
16590
  version_type=darwin
 
16591
  need_lib_prefix=no
 
16592
  need_version=no
 
16593
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
16594
  soname_spec='${libname}${release}${major}$shared_ext'
 
16595
  shlibpath_overrides_runpath=yes
 
16596
  shlibpath_var=DYLD_LIBRARY_PATH
 
16597
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
16598
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
16599
  if test "$GCC" = yes; then
 
16600
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
16601
  else
 
16602
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
16603
  fi
 
16604
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
16605
  ;;
 
16606
 
 
16607
dgux*)
 
16608
  version_type=linux
 
16609
  need_lib_prefix=no
 
16610
  need_version=no
 
16611
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
16612
  soname_spec='${libname}${release}${shared_ext}$major'
 
16613
  shlibpath_var=LD_LIBRARY_PATH
 
16614
  ;;
 
16615
 
 
16616
freebsd1*)
 
16617
  dynamic_linker=no
 
16618
  ;;
 
16619
 
 
16620
kfreebsd*-gnu)
 
16621
  version_type=linux
 
16622
  need_lib_prefix=no
 
16623
  need_version=no
 
16624
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16625
  soname_spec='${libname}${release}${shared_ext}$major'
 
16626
  shlibpath_var=LD_LIBRARY_PATH
 
16627
  shlibpath_overrides_runpath=no
 
16628
  hardcode_into_libs=yes
 
16629
  dynamic_linker='GNU ld.so'
 
16630
  ;;
 
16631
 
 
16632
freebsd*)
 
16633
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
16634
  version_type=freebsd-$objformat
 
16635
  case $version_type in
 
16636
    freebsd-elf*)
 
16637
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16638
      need_version=no
 
16639
      need_lib_prefix=no
 
16640
      ;;
 
16641
    freebsd-*)
 
16642
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
16643
      need_version=yes
 
16644
      ;;
 
16645
  esac
 
16646
  shlibpath_var=LD_LIBRARY_PATH
 
16647
  case $host_os in
 
16648
  freebsd2*)
 
16649
    shlibpath_overrides_runpath=yes
 
16650
    ;;
 
16651
  freebsd3.01* | freebsdelf3.01*)
 
16652
    shlibpath_overrides_runpath=yes
 
16653
    hardcode_into_libs=yes
 
16654
    ;;
 
16655
  *) # from 3.2 on
 
16656
    shlibpath_overrides_runpath=no
 
16657
    hardcode_into_libs=yes
 
16658
    ;;
 
16659
  esac
 
16660
  ;;
 
16661
 
 
16662
gnu*)
 
16663
  version_type=linux
 
16664
  need_lib_prefix=no
 
16665
  need_version=no
 
16666
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
16667
  soname_spec='${libname}${release}${shared_ext}$major'
 
16668
  shlibpath_var=LD_LIBRARY_PATH
 
16669
  hardcode_into_libs=yes
 
16670
  ;;
 
16671
 
 
16672
hpux9* | hpux10* | hpux11*)
 
16673
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
16674
  # link against other versions.
 
16675
  version_type=sunos
 
16676
  need_lib_prefix=no
 
16677
  need_version=no
 
16678
  case "$host_cpu" in
 
16679
  ia64*)
 
16680
    shrext_cmds='.so'
 
16681
    hardcode_into_libs=yes
 
16682
    dynamic_linker="$host_os dld.so"
 
16683
    shlibpath_var=LD_LIBRARY_PATH
 
16684
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16685
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16686
    soname_spec='${libname}${release}${shared_ext}$major'
 
16687
    if test "X$HPUX_IA64_MODE" = X32; then
 
16688
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
16689
    else
 
16690
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
16691
    fi
 
16692
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16693
    ;;
 
16694
   hppa*64*)
 
16695
     shrext_cmds='.sl'
 
16696
     hardcode_into_libs=yes
 
16697
     dynamic_linker="$host_os dld.sl"
 
16698
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
16699
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
16700
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16701
     soname_spec='${libname}${release}${shared_ext}$major'
 
16702
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
16703
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
16704
     ;;
 
16705
   *)
 
16706
    shrext_cmds='.sl'
 
16707
    dynamic_linker="$host_os dld.sl"
 
16708
    shlibpath_var=SHLIB_PATH
 
16709
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
16710
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16711
    soname_spec='${libname}${release}${shared_ext}$major'
 
16712
    ;;
 
16713
  esac
 
16714
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
16715
  postinstall_cmds='chmod 555 $lib'
 
16716
  ;;
 
16717
 
 
16718
irix5* | irix6* | nonstopux*)
 
16719
  case $host_os in
 
16720
    nonstopux*) version_type=nonstopux ;;
 
16721
    *)
 
16722
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
16723
                version_type=linux
 
16724
        else
 
16725
                version_type=irix
 
16726
        fi ;;
 
16727
  esac
 
16728
  need_lib_prefix=no
 
16729
  need_version=no
 
16730
  soname_spec='${libname}${release}${shared_ext}$major'
 
16731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
16732
  case $host_os in
 
16733
  irix5* | nonstopux*)
 
16734
    libsuff= shlibsuff=
 
16735
    ;;
 
16736
  *)
 
16737
    case $LD in # libtool.m4 will add one of these switches to LD
 
16738
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
16739
      libsuff= shlibsuff= libmagic=32-bit;;
 
16740
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
16741
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
16742
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
16743
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
16744
    *) libsuff= shlibsuff= libmagic=never-match;;
 
16745
    esac
 
16746
    ;;
 
16747
  esac
 
16748
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
16749
  shlibpath_overrides_runpath=no
 
16750
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
16751
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
16752
  hardcode_into_libs=yes
 
16753
  ;;
 
16754
 
 
16755
# No shared lib support for Linux oldld, aout, or coff.
 
16756
linux*oldld* | linux*aout* | linux*coff*)
 
16757
  dynamic_linker=no
 
16758
  ;;
 
16759
 
 
16760
# This must be Linux ELF.
 
16761
linux*)
 
16762
  version_type=linux
 
16763
  need_lib_prefix=no
 
16764
  need_version=no
 
16765
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16766
  soname_spec='${libname}${release}${shared_ext}$major'
 
16767
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
16768
  shlibpath_var=LD_LIBRARY_PATH
 
16769
  shlibpath_overrides_runpath=no
 
16770
  # This implies no fast_install, which is unacceptable.
 
16771
  # Some rework will be needed to allow for fast_install
 
16772
  # before this can be enabled.
 
16773
  hardcode_into_libs=yes
 
16774
 
 
16775
  # find out which ABI we are using
 
16776
  libsuff=
 
16777
  case "$host_cpu" in
 
16778
  x86_64*|s390x*|powerpc64*)
 
16779
    echo '#line 16779 "configure"' > conftest.$ac_ext
 
16780
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
16781
  (eval $ac_compile) 2>&5
 
16782
  ac_status=$?
 
16783
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
16784
  (exit $ac_status); }; then
 
16785
      case `/usr/bin/file conftest.$ac_objext` in
 
16786
      *64-bit*)
 
16787
        libsuff=64
 
16788
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
16789
        ;;
 
16790
      esac
 
16791
    fi
 
16792
    rm -rf conftest*
 
16793
    ;;
 
16794
  esac
 
16795
 
 
16796
  # Append ld.so.conf contents to the search path
 
16797
  if test -f /etc/ld.so.conf; then
 
16798
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
16799
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
16800
  fi
 
16801
 
 
16802
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
16803
  # powerpc, because MkLinux only supported shared libraries with the
 
16804
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
16805
  # most powerpc-linux boxes support dynamic linking these days and
 
16806
  # people can always --disable-shared, the test was removed, and we
 
16807
  # assume the GNU/Linux dynamic linker is in use.
 
16808
  dynamic_linker='GNU/Linux ld.so'
 
16809
  ;;
 
16810
 
 
16811
knetbsd*-gnu)
 
16812
  version_type=linux
 
16813
  need_lib_prefix=no
 
16814
  need_version=no
 
16815
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16816
  soname_spec='${libname}${release}${shared_ext}$major'
 
16817
  shlibpath_var=LD_LIBRARY_PATH
 
16818
  shlibpath_overrides_runpath=no
 
16819
  hardcode_into_libs=yes
 
16820
  dynamic_linker='GNU ld.so'
 
16821
  ;;
 
16822
 
 
16823
netbsd*)
 
16824
  version_type=sunos
 
16825
  need_lib_prefix=no
 
16826
  need_version=no
 
16827
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16828
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16829
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16830
    dynamic_linker='NetBSD (a.out) ld.so'
 
16831
  else
 
16832
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
16833
    soname_spec='${libname}${release}${shared_ext}$major'
 
16834
    dynamic_linker='NetBSD ld.elf_so'
 
16835
  fi
 
16836
  shlibpath_var=LD_LIBRARY_PATH
 
16837
  shlibpath_overrides_runpath=yes
 
16838
  hardcode_into_libs=yes
 
16839
  ;;
 
16840
 
 
16841
newsos6)
 
16842
  version_type=linux
 
16843
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16844
  shlibpath_var=LD_LIBRARY_PATH
 
16845
  shlibpath_overrides_runpath=yes
 
16846
  ;;
 
16847
 
 
16848
nto-qnx*)
 
16849
  version_type=linux
 
16850
  need_lib_prefix=no
 
16851
  need_version=no
 
16852
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16853
  soname_spec='${libname}${release}${shared_ext}$major'
 
16854
  shlibpath_var=LD_LIBRARY_PATH
 
16855
  shlibpath_overrides_runpath=yes
 
16856
  ;;
 
16857
 
 
16858
openbsd*)
 
16859
  version_type=sunos
 
16860
  need_lib_prefix=no
 
16861
  need_version=no
 
16862
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16863
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
16864
  shlibpath_var=LD_LIBRARY_PATH
 
16865
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
16866
    case $host_os in
 
16867
      openbsd2.[89] | openbsd2.[89].*)
 
16868
        shlibpath_overrides_runpath=no
 
16869
        ;;
 
16870
      *)
 
16871
        shlibpath_overrides_runpath=yes
 
16872
        ;;
 
16873
      esac
 
16874
  else
 
16875
    shlibpath_overrides_runpath=yes
 
16876
  fi
 
16877
  ;;
 
16878
 
 
16879
os2*)
 
16880
  libname_spec='$name'
 
16881
  shrext_cmds=".dll"
 
16882
  need_lib_prefix=no
 
16883
  library_names_spec='$libname${shared_ext} $libname.a'
 
16884
  dynamic_linker='OS/2 ld.exe'
 
16885
  shlibpath_var=LIBPATH
 
16886
  ;;
 
16887
 
 
16888
osf3* | osf4* | osf5*)
 
16889
  version_type=osf
 
16890
  need_lib_prefix=no
 
16891
  need_version=no
 
16892
  soname_spec='${libname}${release}${shared_ext}$major'
 
16893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16894
  shlibpath_var=LD_LIBRARY_PATH
 
16895
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
16896
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
16897
  ;;
 
16898
 
 
16899
sco3.2v5*)
 
16900
  version_type=osf
 
16901
  soname_spec='${libname}${release}${shared_ext}$major'
 
16902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16903
  shlibpath_var=LD_LIBRARY_PATH
 
16904
  ;;
 
16905
 
 
16906
solaris*)
 
16907
  version_type=linux
 
16908
  need_lib_prefix=no
 
16909
  need_version=no
 
16910
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16911
  soname_spec='${libname}${release}${shared_ext}$major'
 
16912
  shlibpath_var=LD_LIBRARY_PATH
 
16913
  shlibpath_overrides_runpath=yes
 
16914
  hardcode_into_libs=yes
 
16915
  # ldd complains unless libraries are executable
 
16916
  postinstall_cmds='chmod +x $lib'
 
16917
  ;;
 
16918
 
 
16919
sunos4*)
 
16920
  version_type=sunos
 
16921
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
16922
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
16923
  shlibpath_var=LD_LIBRARY_PATH
 
16924
  shlibpath_overrides_runpath=yes
 
16925
  if test "$with_gnu_ld" = yes; then
 
16926
    need_lib_prefix=no
 
16927
  fi
 
16928
  need_version=yes
 
16929
  ;;
 
16930
 
 
16931
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16932
  version_type=linux
 
16933
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16934
  soname_spec='${libname}${release}${shared_ext}$major'
 
16935
  shlibpath_var=LD_LIBRARY_PATH
 
16936
  case $host_vendor in
 
16937
    sni)
 
16938
      shlibpath_overrides_runpath=no
 
16939
      need_lib_prefix=no
 
16940
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
16941
      runpath_var=LD_RUN_PATH
 
16942
      ;;
 
16943
    siemens)
 
16944
      need_lib_prefix=no
 
16945
      ;;
 
16946
    motorola)
 
16947
      need_lib_prefix=no
 
16948
      need_version=no
 
16949
      shlibpath_overrides_runpath=no
 
16950
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
16951
      ;;
 
16952
  esac
 
16953
  ;;
 
16954
 
 
16955
sysv4*MP*)
 
16956
  if test -d /usr/nec ;then
 
16957
    version_type=linux
 
16958
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
16959
    soname_spec='$libname${shared_ext}.$major'
 
16960
    shlibpath_var=LD_LIBRARY_PATH
 
16961
  fi
 
16962
  ;;
 
16963
 
 
16964
uts4*)
 
16965
  version_type=linux
 
16966
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
16967
  soname_spec='${libname}${release}${shared_ext}$major'
 
16968
  shlibpath_var=LD_LIBRARY_PATH
 
16969
  ;;
 
16970
 
 
16971
*)
 
16972
  dynamic_linker=no
 
16973
  ;;
 
16974
esac
 
16975
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
16976
echo "${ECHO_T}$dynamic_linker" >&6
 
16977
test "$dynamic_linker" = no && can_build_shared=no
 
16978
 
 
16979
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
16980
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
16981
hardcode_action_F77=
 
16982
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
16983
   test -n "$runpath_var_F77" || \
 
16984
   test "X$hardcode_automatic_F77" = "Xyes" ; then
 
16985
 
 
16986
  # We can hardcode non-existant directories.
 
16987
  if test "$hardcode_direct_F77" != no &&
 
16988
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
16989
     # have to relink, otherwise we might link with an installed library
 
16990
     # when we should be linking with a yet-to-be-installed one
 
16991
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
16992
     test "$hardcode_minus_L_F77" != no; then
 
16993
    # Linking always hardcodes the temporary library directory.
 
16994
    hardcode_action_F77=relink
 
16995
  else
 
16996
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
16997
    hardcode_action_F77=immediate
 
16998
  fi
 
16999
else
 
17000
  # We cannot hardcode anything, or else we can only hardcode existing
 
17001
  # directories.
 
17002
  hardcode_action_F77=unsupported
 
17003
fi
 
17004
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
17005
echo "${ECHO_T}$hardcode_action_F77" >&6
 
17006
 
 
17007
if test "$hardcode_action_F77" = relink; then
 
17008
  # Fast installation is not supported
 
17009
  enable_fast_install=no
 
17010
elif test "$shlibpath_overrides_runpath" = yes ||
 
17011
     test "$enable_shared" = no; then
 
17012
  # Fast installation is not necessary
 
17013
  enable_fast_install=needless
 
17014
fi
 
17015
 
 
17016
striplib=
 
17017
old_striplib=
 
17018
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
17019
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
17020
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
17021
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
17022
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
17023
  echo "$as_me:$LINENO: result: yes" >&5
 
17024
echo "${ECHO_T}yes" >&6
 
17025
else
 
17026
# FIXME - insert some real tests, host_os isn't really good enough
 
17027
  case $host_os in
 
17028
   darwin*)
 
17029
       if test -n "$STRIP" ; then
 
17030
         striplib="$STRIP -x"
 
17031
         echo "$as_me:$LINENO: result: yes" >&5
 
17032
echo "${ECHO_T}yes" >&6
 
17033
       else
 
17034
  echo "$as_me:$LINENO: result: no" >&5
 
17035
echo "${ECHO_T}no" >&6
 
17036
fi
 
17037
       ;;
 
17038
   *)
 
17039
  echo "$as_me:$LINENO: result: no" >&5
 
17040
echo "${ECHO_T}no" >&6
 
17041
    ;;
 
17042
  esac
 
17043
fi
 
17044
 
 
17045
 
 
17046
 
 
17047
# The else clause should only fire when bootstrapping the
 
17048
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
17049
# with your package, and you will get complaints that there are
 
17050
# no rules to generate ltmain.sh.
 
17051
if test -f "$ltmain"; then
 
17052
  # See if we are running on zsh, and set the options which allow our commands through
 
17053
  # without removal of \ escapes.
 
17054
  if test -n "${ZSH_VERSION+set}" ; then
 
17055
    setopt NO_GLOB_SUBST
 
17056
  fi
 
17057
  # Now quote all the things that may contain metacharacters while being
 
17058
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
17059
  # variables and quote the copies for generation of the libtool script.
 
17060
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
17061
    SED SHELL STRIP \
 
17062
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
17063
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
17064
    deplibs_check_method reload_flag reload_cmds need_locks \
 
17065
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
17066
    lt_cv_sys_global_symbol_to_c_name_address \
 
17067
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
17068
    old_postinstall_cmds old_postuninstall_cmds \
 
17069
    compiler_F77 \
 
17070
    CC_F77 \
 
17071
    LD_F77 \
 
17072
    lt_prog_compiler_wl_F77 \
 
17073
    lt_prog_compiler_pic_F77 \
 
17074
    lt_prog_compiler_static_F77 \
 
17075
    lt_prog_compiler_no_builtin_flag_F77 \
 
17076
    export_dynamic_flag_spec_F77 \
 
17077
    thread_safe_flag_spec_F77 \
 
17078
    whole_archive_flag_spec_F77 \
 
17079
    enable_shared_with_static_runtimes_F77 \
 
17080
    old_archive_cmds_F77 \
 
17081
    old_archive_from_new_cmds_F77 \
 
17082
    predep_objects_F77 \
 
17083
    postdep_objects_F77 \
 
17084
    predeps_F77 \
 
17085
    postdeps_F77 \
 
17086
    compiler_lib_search_path_F77 \
 
17087
    archive_cmds_F77 \
 
17088
    archive_expsym_cmds_F77 \
 
17089
    postinstall_cmds_F77 \
 
17090
    postuninstall_cmds_F77 \
 
17091
    old_archive_from_expsyms_cmds_F77 \
 
17092
    allow_undefined_flag_F77 \
 
17093
    no_undefined_flag_F77 \
 
17094
    export_symbols_cmds_F77 \
 
17095
    hardcode_libdir_flag_spec_F77 \
 
17096
    hardcode_libdir_flag_spec_ld_F77 \
 
17097
    hardcode_libdir_separator_F77 \
 
17098
    hardcode_automatic_F77 \
 
17099
    module_cmds_F77 \
 
17100
    module_expsym_cmds_F77 \
 
17101
    lt_cv_prog_compiler_c_o_F77 \
 
17102
    exclude_expsyms_F77 \
 
17103
    include_expsyms_F77; do
 
17104
 
 
17105
    case $var in
 
17106
    old_archive_cmds_F77 | \
 
17107
    old_archive_from_new_cmds_F77 | \
 
17108
    archive_cmds_F77 | \
 
17109
    archive_expsym_cmds_F77 | \
 
17110
    module_cmds_F77 | \
 
17111
    module_expsym_cmds_F77 | \
 
17112
    old_archive_from_expsyms_cmds_F77 | \
 
17113
    export_symbols_cmds_F77 | \
 
17114
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
17115
    postinstall_cmds | postuninstall_cmds | \
 
17116
    old_postinstall_cmds | old_postuninstall_cmds | \
 
17117
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
17118
      # Double-quote double-evaled strings.
 
17119
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
17120
      ;;
 
17121
    *)
 
17122
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
17123
      ;;
 
17124
    esac
 
17125
  done
 
17126
 
 
17127
  case $lt_echo in
 
17128
  *'\$0 --fallback-echo"')
 
17129
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
17130
    ;;
 
17131
  esac
 
17132
 
 
17133
cfgfile="$ofile"
 
17134
 
 
17135
  cat <<__EOF__ >> "$cfgfile"
 
17136
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
17137
 
 
17138
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
17139
 
 
17140
# Shell to use when invoking shell scripts.
 
17141
SHELL=$lt_SHELL
 
17142
 
 
17143
# Whether or not to build shared libraries.
 
17144
build_libtool_libs=$enable_shared
 
17145
 
 
17146
# Whether or not to build static libraries.
 
17147
build_old_libs=$enable_static
 
17148
 
 
17149
# Whether or not to add -lc for building shared libraries.
 
17150
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
17151
 
 
17152
# Whether or not to disallow shared libs when runtime libs are static
 
17153
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
17154
 
 
17155
# Whether or not to optimize for fast installation.
 
17156
fast_install=$enable_fast_install
 
17157
 
 
17158
# The host system.
 
17159
host_alias=$host_alias
 
17160
host=$host
 
17161
 
 
17162
# An echo program that does not interpret backslashes.
 
17163
echo=$lt_echo
 
17164
 
 
17165
# The archiver.
 
17166
AR=$lt_AR
 
17167
AR_FLAGS=$lt_AR_FLAGS
 
17168
 
 
17169
# A C compiler.
 
17170
LTCC=$lt_LTCC
 
17171
 
 
17172
# A language-specific compiler.
 
17173
CC=$lt_compiler_F77
 
17174
 
 
17175
# Is the compiler the GNU C compiler?
 
17176
with_gcc=$GCC_F77
 
17177
 
 
17178
# An ERE matcher.
 
17179
EGREP=$lt_EGREP
 
17180
 
 
17181
# The linker used to build libraries.
 
17182
LD=$lt_LD_F77
 
17183
 
 
17184
# Whether we need hard or soft links.
 
17185
LN_S=$lt_LN_S
 
17186
 
 
17187
# A BSD-compatible nm program.
 
17188
NM=$lt_NM
 
17189
 
 
17190
# A symbol stripping program
 
17191
STRIP=$lt_STRIP
 
17192
 
 
17193
# Used to examine libraries when file_magic_cmd begins "file"
 
17194
MAGIC_CMD=$MAGIC_CMD
 
17195
 
 
17196
# Used on cygwin: DLL creation program.
 
17197
DLLTOOL="$DLLTOOL"
 
17198
 
 
17199
# Used on cygwin: object dumper.
 
17200
OBJDUMP="$OBJDUMP"
 
17201
 
 
17202
# Used on cygwin: assembler.
 
17203
AS="$AS"
 
17204
 
 
17205
# The name of the directory that contains temporary libtool files.
 
17206
objdir=$objdir
 
17207
 
 
17208
# How to create reloadable object files.
 
17209
reload_flag=$lt_reload_flag
 
17210
reload_cmds=$lt_reload_cmds
 
17211
 
 
17212
# How to pass a linker flag through the compiler.
 
17213
wl=$lt_lt_prog_compiler_wl_F77
 
17214
 
 
17215
# Object file suffix (normally "o").
 
17216
objext="$ac_objext"
 
17217
 
 
17218
# Old archive suffix (normally "a").
 
17219
libext="$libext"
 
17220
 
 
17221
# Shared library suffix (normally ".so").
 
17222
shrext_cmds='$shrext_cmds'
 
17223
 
 
17224
# Executable file suffix (normally "").
 
17225
exeext="$exeext"
 
17226
 
 
17227
# Additional compiler flags for building library objects.
 
17228
pic_flag=$lt_lt_prog_compiler_pic_F77
 
17229
pic_mode=$pic_mode
 
17230
 
 
17231
# What is the maximum length of a command?
 
17232
max_cmd_len=$lt_cv_sys_max_cmd_len
 
17233
 
 
17234
# Does compiler simultaneously support -c and -o options?
 
17235
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
17236
 
 
17237
# Must we lock files when doing compilation ?
 
17238
need_locks=$lt_need_locks
 
17239
 
 
17240
# Do we need the lib prefix for modules?
 
17241
need_lib_prefix=$need_lib_prefix
 
17242
 
 
17243
# Do we need a version for libraries?
 
17244
need_version=$need_version
 
17245
 
 
17246
# Whether dlopen is supported.
 
17247
dlopen_support=$enable_dlopen
 
17248
 
 
17249
# Whether dlopen of programs is supported.
 
17250
dlopen_self=$enable_dlopen_self
 
17251
 
 
17252
# Whether dlopen of statically linked programs is supported.
 
17253
dlopen_self_static=$enable_dlopen_self_static
 
17254
 
 
17255
# Compiler flag to prevent dynamic linking.
 
17256
link_static_flag=$lt_lt_prog_compiler_static_F77
 
17257
 
 
17258
# Compiler flag to turn off builtin functions.
 
17259
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
17260
 
 
17261
# Compiler flag to allow reflexive dlopens.
 
17262
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
17263
 
 
17264
# Compiler flag to generate shared objects directly from archives.
 
17265
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
17266
 
 
17267
# Compiler flag to generate thread-safe objects.
 
17268
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
17269
 
 
17270
# Library versioning type.
 
17271
version_type=$version_type
 
17272
 
 
17273
# Format of library name prefix.
 
17274
libname_spec=$lt_libname_spec
 
17275
 
 
17276
# List of archive names.  First name is the real one, the rest are links.
 
17277
# The last name is the one that the linker finds with -lNAME.
 
17278
library_names_spec=$lt_library_names_spec
 
17279
 
 
17280
# The coded name of the library, if different from the real name.
 
17281
soname_spec=$lt_soname_spec
 
17282
 
 
17283
# Commands used to build and install an old-style archive.
 
17284
RANLIB=$lt_RANLIB
 
17285
old_archive_cmds=$lt_old_archive_cmds_F77
 
17286
old_postinstall_cmds=$lt_old_postinstall_cmds
 
17287
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
17288
 
 
17289
# Create an old-style archive from a shared archive.
 
17290
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
17291
 
 
17292
# Create a temporary old-style archive to link instead of a shared archive.
 
17293
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
17294
 
 
17295
# Commands used to build and install a shared archive.
 
17296
archive_cmds=$lt_archive_cmds_F77
 
17297
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
17298
postinstall_cmds=$lt_postinstall_cmds
 
17299
postuninstall_cmds=$lt_postuninstall_cmds
 
17300
 
 
17301
# Commands used to build a loadable module (assumed same as above if empty)
 
17302
module_cmds=$lt_module_cmds_F77
 
17303
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
17304
 
 
17305
# Commands to strip libraries.
 
17306
old_striplib=$lt_old_striplib
 
17307
striplib=$lt_striplib
 
17308
 
 
17309
# Dependencies to place before the objects being linked to create a
 
17310
# shared library.
 
17311
predep_objects=$lt_predep_objects_F77
 
17312
 
 
17313
# Dependencies to place after the objects being linked to create a
 
17314
# shared library.
 
17315
postdep_objects=$lt_postdep_objects_F77
 
17316
 
 
17317
# Dependencies to place before the objects being linked to create a
 
17318
# shared library.
 
17319
predeps=$lt_predeps_F77
 
17320
 
 
17321
# Dependencies to place after the objects being linked to create a
 
17322
# shared library.
 
17323
postdeps=$lt_postdeps_F77
 
17324
 
 
17325
# The library search path used internally by the compiler when linking
 
17326
# a shared library.
 
17327
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
17328
 
 
17329
# Method to check whether dependent libraries are shared objects.
 
17330
deplibs_check_method=$lt_deplibs_check_method
 
17331
 
 
17332
# Command to use when deplibs_check_method == file_magic.
 
17333
file_magic_cmd=$lt_file_magic_cmd
 
17334
 
 
17335
# Flag that allows shared libraries with undefined symbols to be built.
 
17336
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
17337
 
 
17338
# Flag that forces no undefined symbols.
 
17339
no_undefined_flag=$lt_no_undefined_flag_F77
 
17340
 
 
17341
# Commands used to finish a libtool library installation in a directory.
 
17342
finish_cmds=$lt_finish_cmds
 
17343
 
 
17344
# Same as above, but a single script fragment to be evaled but not shown.
 
17345
finish_eval=$lt_finish_eval
 
17346
 
 
17347
# Take the output of nm and produce a listing of raw symbols and C names.
 
17348
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
17349
 
 
17350
# Transform the output of nm in a proper C declaration
 
17351
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
17352
 
 
17353
# Transform the output of nm in a C name address pair
 
17354
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
17355
 
 
17356
# This is the shared library runtime path variable.
 
17357
runpath_var=$runpath_var
 
17358
 
 
17359
# This is the shared library path variable.
 
17360
shlibpath_var=$shlibpath_var
 
17361
 
 
17362
# Is shlibpath searched before the hard-coded library search path?
 
17363
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
17364
 
 
17365
# How to hardcode a shared library path into an executable.
 
17366
hardcode_action=$hardcode_action_F77
 
17367
 
 
17368
# Whether we should hardcode library paths into libraries.
 
17369
hardcode_into_libs=$hardcode_into_libs
 
17370
 
 
17371
# Flag to hardcode \$libdir into a binary during linking.
 
17372
# This must work even if \$libdir does not exist.
 
17373
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
17374
 
 
17375
# If ld is used when linking, flag to hardcode \$libdir into
 
17376
# a binary during linking. This must work even if \$libdir does
 
17377
# not exist.
 
17378
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
17379
 
 
17380
# Whether we need a single -rpath flag with a separated argument.
 
17381
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
17382
 
 
17383
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
17384
# resulting binary.
 
17385
hardcode_direct=$hardcode_direct_F77
 
17386
 
 
17387
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
17388
# resulting binary.
 
17389
hardcode_minus_L=$hardcode_minus_L_F77
 
17390
 
 
17391
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
17392
# the resulting binary.
 
17393
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
17394
 
 
17395
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
17396
# and all subsequent libraries and executables linked against it.
 
17397
hardcode_automatic=$hardcode_automatic_F77
 
17398
 
 
17399
# Variables whose values should be saved in libtool wrapper scripts and
 
17400
# restored at relink time.
 
17401
variables_saved_for_relink="$variables_saved_for_relink"
 
17402
 
 
17403
# Whether libtool must link a program against all its dependency libraries.
 
17404
link_all_deplibs=$link_all_deplibs_F77
 
17405
 
 
17406
# Compile-time system search path for libraries
 
17407
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
17408
 
 
17409
# Run-time system search path for libraries
 
17410
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
17411
 
 
17412
# Fix the shell variable \$srcfile for the compiler.
 
17413
fix_srcfile_path="$fix_srcfile_path_F77"
 
17414
 
 
17415
# Set to yes if exported symbols are required.
 
17416
always_export_symbols=$always_export_symbols_F77
 
17417
 
 
17418
# The commands to list exported symbols.
 
17419
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
17420
 
 
17421
# The commands to extract the exported symbol list from a shared archive.
 
17422
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
17423
 
 
17424
# Symbols that should not be listed in the preloaded symbols.
 
17425
exclude_expsyms=$lt_exclude_expsyms_F77
 
17426
 
 
17427
# Symbols that must always be exported.
 
17428
include_expsyms=$lt_include_expsyms_F77
 
17429
 
 
17430
# ### END LIBTOOL TAG CONFIG: $tagname
 
17431
 
 
17432
__EOF__
 
17433
 
 
17434
 
 
17435
else
 
17436
  # If there is no Makefile yet, we rely on a make rule to execute
 
17437
  # `config.status --recheck' to rerun these tests and create the
 
17438
  # libtool script then.
 
17439
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
17440
  if test -f "$ltmain_in"; then
 
17441
    test -f Makefile && make "$ltmain"
 
17442
  fi
 
17443
fi
 
17444
 
 
17445
 
 
17446
ac_ext=c
 
17447
ac_cpp='$CPP $CPPFLAGS'
 
17448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
17449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
17450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
17451
 
 
17452
CC="$lt_save_CC"
 
17453
 
 
17454
        else
 
17455
          tagname=""
 
17456
        fi
 
17457
        ;;
 
17458
 
 
17459
      GCJ)
 
17460
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
17461
 
 
17462
 
 
17463
 
 
17464
# Source file extension for Java test sources.
 
17465
ac_ext=java
 
17466
 
 
17467
# Object file extension for compiled Java test sources.
 
17468
objext=o
 
17469
objext_GCJ=$objext
 
17470
 
 
17471
# Code to be used in simple compile tests
 
17472
lt_simple_compile_test_code="class foo {}\n"
 
17473
 
 
17474
# Code to be used in simple link tests
 
17475
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
17476
 
 
17477
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
17478
 
 
17479
# If no C compiler was specified, use CC.
 
17480
LTCC=${LTCC-"$CC"}
 
17481
 
 
17482
# Allow CC to be a program name with arguments.
 
17483
compiler=$CC
 
17484
 
 
17485
 
 
17486
# Allow CC to be a program name with arguments.
 
17487
lt_save_CC="$CC"
 
17488
CC=${GCJ-"gcj"}
 
17489
compiler=$CC
 
17490
compiler_GCJ=$CC
 
17491
 
 
17492
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
17493
archive_cmds_need_lc_GCJ=no
 
17494
 
 
17495
 
 
17496
lt_prog_compiler_no_builtin_flag_GCJ=
 
17497
 
 
17498
if test "$GCC" = yes; then
 
17499
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
17500
 
 
17501
 
 
17502
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
17503
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
17504
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
17505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17506
else
 
17507
  lt_cv_prog_compiler_rtti_exceptions=no
 
17508
  ac_outfile=conftest.$ac_objext
 
17509
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17510
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
17511
   # Insert the option either (1) after the last *FLAGS variable, or
 
17512
   # (2) before a word containing "conftest.", or (3) at the end.
 
17513
   # Note that $ac_compile itself does not contain backslashes and begins
 
17514
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17515
   # The option is referenced via a variable to avoid confusing sed.
 
17516
   lt_compile=`echo "$ac_compile" | $SED \
 
17517
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17518
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17519
   -e 's:$: $lt_compiler_flag:'`
 
17520
   (eval echo "\"\$as_me:17520: $lt_compile\"" >&5)
 
17521
   (eval "$lt_compile" 2>conftest.err)
 
17522
   ac_status=$?
 
17523
   cat conftest.err >&5
 
17524
   echo "$as_me:17524: \$? = $ac_status" >&5
 
17525
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17526
     # The compiler can only warn and ignore the option if not recognized
 
17527
     # So say no if there are warnings
 
17528
     if test ! -s conftest.err; then
 
17529
       lt_cv_prog_compiler_rtti_exceptions=yes
 
17530
     fi
 
17531
   fi
 
17532
   $rm conftest*
 
17533
 
 
17534
fi
 
17535
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
17536
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
17537
 
 
17538
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
17539
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
17540
else
 
17541
    :
 
17542
fi
 
17543
 
 
17544
fi
 
17545
 
 
17546
lt_prog_compiler_wl_GCJ=
 
17547
lt_prog_compiler_pic_GCJ=
 
17548
lt_prog_compiler_static_GCJ=
 
17549
 
 
17550
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
17551
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
17552
 
 
17553
  if test "$GCC" = yes; then
 
17554
    lt_prog_compiler_wl_GCJ='-Wl,'
 
17555
    lt_prog_compiler_static_GCJ='-static'
 
17556
 
 
17557
    case $host_os in
 
17558
      aix*)
 
17559
      # All AIX code is PIC.
 
17560
      if test "$host_cpu" = ia64; then
 
17561
        # AIX 5 now supports IA64 processor
 
17562
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17563
      fi
 
17564
      ;;
 
17565
 
 
17566
    amigaos*)
 
17567
      # FIXME: we need at least 68020 code to build shared libraries, but
 
17568
      # adding the `-m68020' flag to GCC prevents building anything better,
 
17569
      # like `-m68040'.
 
17570
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
17571
      ;;
 
17572
 
 
17573
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
17574
      # PIC is the default for these OSes.
 
17575
      ;;
 
17576
 
 
17577
    mingw* | pw32* | os2*)
 
17578
      # This hack is so that the source file can tell whether it is being
 
17579
      # built for inclusion in a dll (and should export symbols for example).
 
17580
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17581
      ;;
 
17582
 
 
17583
    darwin* | rhapsody*)
 
17584
      # PIC is the default on this platform
 
17585
      # Common symbols not allowed in MH_DYLIB files
 
17586
      lt_prog_compiler_pic_GCJ='-fno-common'
 
17587
      ;;
 
17588
 
 
17589
    msdosdjgpp*)
 
17590
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
17591
      # on systems that don't support them.
 
17592
      lt_prog_compiler_can_build_shared_GCJ=no
 
17593
      enable_shared=no
 
17594
      ;;
 
17595
 
 
17596
    sysv4*MP*)
 
17597
      if test -d /usr/nec; then
 
17598
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
17599
      fi
 
17600
      ;;
 
17601
 
 
17602
    hpux*)
 
17603
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17604
      # not for PA HP-UX.
 
17605
      case "$host_cpu" in
 
17606
      hppa*64*|ia64*)
 
17607
        # +Z the default
 
17608
        ;;
 
17609
      *)
 
17610
        lt_prog_compiler_pic_GCJ='-fPIC'
 
17611
        ;;
 
17612
      esac
 
17613
      ;;
 
17614
 
 
17615
    *)
 
17616
      lt_prog_compiler_pic_GCJ='-fPIC'
 
17617
      ;;
 
17618
    esac
 
17619
  else
 
17620
    # PORTME Check for flag to pass linker flags through the system compiler.
 
17621
    case $host_os in
 
17622
    aix*)
 
17623
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17624
      if test "$host_cpu" = ia64; then
 
17625
        # AIX 5 now supports IA64 processor
 
17626
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17627
      else
 
17628
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
17629
      fi
 
17630
      ;;
 
17631
      darwin*)
 
17632
        # PIC is the default on this platform
 
17633
        # Common symbols not allowed in MH_DYLIB files
 
17634
       case "$cc_basename" in
 
17635
         xlc*)
 
17636
         lt_prog_compiler_pic_GCJ='-qnocommon'
 
17637
         lt_prog_compiler_wl_GCJ='-Wl,'
 
17638
         ;;
 
17639
       esac
 
17640
       ;;
 
17641
 
 
17642
    mingw* | pw32* | os2*)
 
17643
      # This hack is so that the source file can tell whether it is being
 
17644
      # built for inclusion in a dll (and should export symbols for example).
 
17645
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
17646
      ;;
 
17647
 
 
17648
    hpux9* | hpux10* | hpux11*)
 
17649
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17650
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
17651
      # not for PA HP-UX.
 
17652
      case "$host_cpu" in
 
17653
      hppa*64*|ia64*)
 
17654
        # +Z the default
 
17655
        ;;
 
17656
      *)
 
17657
        lt_prog_compiler_pic_GCJ='+Z'
 
17658
        ;;
 
17659
      esac
 
17660
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
17661
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
17662
      ;;
 
17663
 
 
17664
    irix5* | irix6* | nonstopux*)
 
17665
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17666
      # PIC (with -KPIC) is the default.
 
17667
      lt_prog_compiler_static_GCJ='-non_shared'
 
17668
      ;;
 
17669
 
 
17670
    newsos6)
 
17671
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17672
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17673
      ;;
 
17674
 
 
17675
    linux*)
 
17676
      case $CC in
 
17677
      icc* | ecc*)
 
17678
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17679
        lt_prog_compiler_pic_GCJ='-KPIC'
 
17680
        lt_prog_compiler_static_GCJ='-static'
 
17681
        ;;
 
17682
      ccc*)
 
17683
        lt_prog_compiler_wl_GCJ='-Wl,'
 
17684
        # All Alpha code is PIC.
 
17685
        lt_prog_compiler_static_GCJ='-non_shared'
 
17686
        ;;
 
17687
      esac
 
17688
      ;;
 
17689
 
 
17690
    osf3* | osf4* | osf5*)
 
17691
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17692
      # All OSF/1 code is PIC.
 
17693
      lt_prog_compiler_static_GCJ='-non_shared'
 
17694
      ;;
 
17695
 
 
17696
    sco3.2v5*)
 
17697
      lt_prog_compiler_pic_GCJ='-Kpic'
 
17698
      lt_prog_compiler_static_GCJ='-dn'
 
17699
      ;;
 
17700
 
 
17701
    solaris*)
 
17702
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17703
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17704
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17705
      ;;
 
17706
 
 
17707
    sunos4*)
 
17708
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
17709
      lt_prog_compiler_pic_GCJ='-PIC'
 
17710
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17711
      ;;
 
17712
 
 
17713
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
17714
      lt_prog_compiler_wl_GCJ='-Wl,'
 
17715
      lt_prog_compiler_pic_GCJ='-KPIC'
 
17716
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17717
      ;;
 
17718
 
 
17719
    sysv4*MP*)
 
17720
      if test -d /usr/nec ;then
 
17721
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
17722
        lt_prog_compiler_static_GCJ='-Bstatic'
 
17723
      fi
 
17724
      ;;
 
17725
 
 
17726
    uts4*)
 
17727
      lt_prog_compiler_pic_GCJ='-pic'
 
17728
      lt_prog_compiler_static_GCJ='-Bstatic'
 
17729
      ;;
 
17730
 
 
17731
    *)
 
17732
      lt_prog_compiler_can_build_shared_GCJ=no
 
17733
      ;;
 
17734
    esac
 
17735
  fi
 
17736
 
 
17737
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
17738
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
17739
 
 
17740
#
 
17741
# Check to make sure the PIC flag actually works.
 
17742
#
 
17743
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
17744
 
 
17745
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
17746
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
17747
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
17748
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17749
else
 
17750
  lt_prog_compiler_pic_works_GCJ=no
 
17751
  ac_outfile=conftest.$ac_objext
 
17752
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17753
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
17754
   # Insert the option either (1) after the last *FLAGS variable, or
 
17755
   # (2) before a word containing "conftest.", or (3) at the end.
 
17756
   # Note that $ac_compile itself does not contain backslashes and begins
 
17757
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17758
   # The option is referenced via a variable to avoid confusing sed.
 
17759
   lt_compile=`echo "$ac_compile" | $SED \
 
17760
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17761
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17762
   -e 's:$: $lt_compiler_flag:'`
 
17763
   (eval echo "\"\$as_me:17763: $lt_compile\"" >&5)
 
17764
   (eval "$lt_compile" 2>conftest.err)
 
17765
   ac_status=$?
 
17766
   cat conftest.err >&5
 
17767
   echo "$as_me:17767: \$? = $ac_status" >&5
 
17768
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
17769
     # The compiler can only warn and ignore the option if not recognized
 
17770
     # So say no if there are warnings
 
17771
     if test ! -s conftest.err; then
 
17772
       lt_prog_compiler_pic_works_GCJ=yes
 
17773
     fi
 
17774
   fi
 
17775
   $rm conftest*
 
17776
 
 
17777
fi
 
17778
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
17779
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
17780
 
 
17781
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
17782
    case $lt_prog_compiler_pic_GCJ in
 
17783
     "" | " "*) ;;
 
17784
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
17785
     esac
 
17786
else
 
17787
    lt_prog_compiler_pic_GCJ=
 
17788
     lt_prog_compiler_can_build_shared_GCJ=no
 
17789
fi
 
17790
 
 
17791
fi
 
17792
case "$host_os" in
 
17793
  # For platforms which do not support PIC, -DPIC is meaningless:
 
17794
  *djgpp*)
 
17795
    lt_prog_compiler_pic_GCJ=
 
17796
    ;;
 
17797
  *)
 
17798
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
17799
    ;;
 
17800
esac
 
17801
 
 
17802
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
17803
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
17804
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
17805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
17806
else
 
17807
  lt_cv_prog_compiler_c_o_GCJ=no
 
17808
   $rm -r conftest 2>/dev/null
 
17809
   mkdir conftest
 
17810
   cd conftest
 
17811
   mkdir out
 
17812
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17813
 
 
17814
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
17815
   # Insert the option either (1) after the last *FLAGS variable, or
 
17816
   # (2) before a word containing "conftest.", or (3) at the end.
 
17817
   # Note that $ac_compile itself does not contain backslashes and begins
 
17818
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
17819
   lt_compile=`echo "$ac_compile" | $SED \
 
17820
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
17821
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
17822
   -e 's:$: $lt_compiler_flag:'`
 
17823
   (eval echo "\"\$as_me:17823: $lt_compile\"" >&5)
 
17824
   (eval "$lt_compile" 2>out/conftest.err)
 
17825
   ac_status=$?
 
17826
   cat out/conftest.err >&5
 
17827
   echo "$as_me:17827: \$? = $ac_status" >&5
 
17828
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
17829
   then
 
17830
     # The compiler can only warn and ignore the option if not recognized
 
17831
     # So say no if there are warnings
 
17832
     if test ! -s out/conftest.err; then
 
17833
       lt_cv_prog_compiler_c_o_GCJ=yes
 
17834
     fi
 
17835
   fi
 
17836
   chmod u+w .
 
17837
   $rm conftest*
 
17838
   # SGI C++ compiler will create directory out/ii_files/ for
 
17839
   # template instantiation
 
17840
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
17841
   $rm out/* && rmdir out
 
17842
   cd ..
 
17843
   rmdir conftest
 
17844
   $rm conftest*
 
17845
 
 
17846
fi
 
17847
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
17848
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
17849
 
 
17850
 
 
17851
hard_links="nottested"
 
17852
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
17853
  # do not overwrite the value of need_locks provided by the user
 
17854
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
17855
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
17856
  hard_links=yes
 
17857
  $rm conftest*
 
17858
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17859
  touch conftest.a
 
17860
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
17861
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
17862
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
17863
echo "${ECHO_T}$hard_links" >&6
 
17864
  if test "$hard_links" = no; then
 
17865
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
17866
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
17867
    need_locks=warn
 
17868
  fi
 
17869
else
 
17870
  need_locks=no
 
17871
fi
 
17872
 
 
17873
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
17874
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
17875
 
 
17876
  runpath_var=
 
17877
  allow_undefined_flag_GCJ=
 
17878
  enable_shared_with_static_runtimes_GCJ=no
 
17879
  archive_cmds_GCJ=
 
17880
  archive_expsym_cmds_GCJ=
 
17881
  old_archive_From_new_cmds_GCJ=
 
17882
  old_archive_from_expsyms_cmds_GCJ=
 
17883
  export_dynamic_flag_spec_GCJ=
 
17884
  whole_archive_flag_spec_GCJ=
 
17885
  thread_safe_flag_spec_GCJ=
 
17886
  hardcode_libdir_flag_spec_GCJ=
 
17887
  hardcode_libdir_flag_spec_ld_GCJ=
 
17888
  hardcode_libdir_separator_GCJ=
 
17889
  hardcode_direct_GCJ=no
 
17890
  hardcode_minus_L_GCJ=no
 
17891
  hardcode_shlibpath_var_GCJ=unsupported
 
17892
  link_all_deplibs_GCJ=unknown
 
17893
  hardcode_automatic_GCJ=no
 
17894
  module_cmds_GCJ=
 
17895
  module_expsym_cmds_GCJ=
 
17896
  always_export_symbols_GCJ=no
 
17897
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
17898
  # include_expsyms should be a list of space-separated symbols to be *always*
 
17899
  # included in the symbol list
 
17900
  include_expsyms_GCJ=
 
17901
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
17902
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
17903
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
17904
  # as well as any symbol that contains `d'.
 
17905
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
17906
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
17907
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
17908
  # the symbol is explicitly referenced.  Since portable code cannot
 
17909
  # rely on this symbol name, it's probably fine to never include it in
 
17910
  # preloaded symbol tables.
 
17911
  extract_expsyms_cmds=
 
17912
 
 
17913
  case $host_os in
 
17914
  cygwin* | mingw* | pw32*)
 
17915
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
17916
    # When not using gcc, we currently assume that we are using
 
17917
    # Microsoft Visual C++.
 
17918
    if test "$GCC" != yes; then
 
17919
      with_gnu_ld=no
 
17920
    fi
 
17921
    ;;
 
17922
  openbsd*)
 
17923
    with_gnu_ld=no
 
17924
    ;;
 
17925
  esac
 
17926
 
 
17927
  ld_shlibs_GCJ=yes
 
17928
  if test "$with_gnu_ld" = yes; then
 
17929
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
17930
    wlarc='${wl}'
 
17931
 
 
17932
    # See if GNU ld supports shared libraries.
 
17933
    case $host_os in
 
17934
    aix3* | aix4* | aix5*)
 
17935
      # On AIX/PPC, the GNU linker is very broken
 
17936
      if test "$host_cpu" != ia64; then
 
17937
        ld_shlibs_GCJ=no
 
17938
        cat <<EOF 1>&2
 
17939
 
 
17940
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
17941
*** to be unable to reliably create shared libraries on AIX.
 
17942
*** Therefore, libtool is disabling shared libraries support.  If you
 
17943
*** really care for shared libraries, you may want to modify your PATH
 
17944
*** so that a non-GNU linker is found, and then restart.
 
17945
 
 
17946
EOF
 
17947
      fi
 
17948
      ;;
 
17949
 
 
17950
    amigaos*)
 
17951
      archive_cmds_GCJ='$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)'
 
17952
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17953
      hardcode_minus_L_GCJ=yes
 
17954
 
 
17955
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
17956
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
17957
      # to version 4, is to share data among multiple programs linked
 
17958
      # with the same dynamic library.  Since this doesn't match the
 
17959
      # behavior of shared libraries on other platforms, we can't use
 
17960
      # them.
 
17961
      ld_shlibs_GCJ=no
 
17962
      ;;
 
17963
 
 
17964
    beos*)
 
17965
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
17966
        allow_undefined_flag_GCJ=unsupported
 
17967
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
17968
        # support --undefined.  This deserves some investigation.  FIXME
 
17969
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
17970
      else
 
17971
        ld_shlibs_GCJ=no
 
17972
      fi
 
17973
      ;;
 
17974
 
 
17975
    cygwin* | mingw* | pw32*)
 
17976
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
17977
      # as there is no search path for DLLs.
 
17978
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17979
      allow_undefined_flag_GCJ=unsupported
 
17980
      always_export_symbols_GCJ=no
 
17981
      enable_shared_with_static_runtimes_GCJ=yes
 
17982
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
17983
 
 
17984
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
17985
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
17986
        # If the export-symbols file already is a .def file (1st line
 
17987
        # is EXPORTS), use it as is; otherwise, prepend...
 
17988
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
17989
          cp $export_symbols $output_objdir/$soname.def;
 
17990
        else
 
17991
          echo EXPORTS > $output_objdir/$soname.def;
 
17992
          cat $export_symbols >> $output_objdir/$soname.def;
 
17993
        fi~
 
17994
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
17995
      else
 
17996
        ld_shlibs=no
 
17997
      fi
 
17998
      ;;
 
17999
 
 
18000
    netbsd*)
 
18001
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18002
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
18003
        wlarc=
 
18004
      else
 
18005
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18006
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18007
      fi
 
18008
      ;;
 
18009
 
 
18010
    solaris* | sysv5*)
 
18011
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
18012
        ld_shlibs_GCJ=no
 
18013
        cat <<EOF 1>&2
 
18014
 
 
18015
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
18016
*** create shared libraries on Solaris systems.  Therefore, libtool
 
18017
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
18018
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
18019
*** your PATH or compiler configuration so that the native linker is
 
18020
*** used, and then restart.
 
18021
 
 
18022
EOF
 
18023
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18024
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18025
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18026
      else
 
18027
        ld_shlibs_GCJ=no
 
18028
      fi
 
18029
      ;;
 
18030
 
 
18031
    sunos4*)
 
18032
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18033
      wlarc=
 
18034
      hardcode_direct_GCJ=yes
 
18035
      hardcode_shlibpath_var_GCJ=no
 
18036
      ;;
 
18037
 
 
18038
  linux*)
 
18039
    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18040
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18041
        archive_cmds_GCJ="$tmp_archive_cmds"
 
18042
      supports_anon_versioning=no
 
18043
      case `$LD -v 2>/dev/null` in
 
18044
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
18045
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
18046
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
18047
        *\ 2.11.*) ;; # other 2.11 versions
 
18048
        *) supports_anon_versioning=yes ;;
 
18049
      esac
 
18050
      if test $supports_anon_versioning = yes; then
 
18051
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
18052
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
18053
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
18054
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
18055
      else
 
18056
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
18057
      fi
 
18058
    else
 
18059
      ld_shlibs_GCJ=no
 
18060
    fi
 
18061
    ;;
 
18062
 
 
18063
    *)
 
18064
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
18065
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
18066
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
18067
      else
 
18068
        ld_shlibs_GCJ=no
 
18069
      fi
 
18070
      ;;
 
18071
    esac
 
18072
 
 
18073
    if test "$ld_shlibs_GCJ" = yes; then
 
18074
      runpath_var=LD_RUN_PATH
 
18075
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
18076
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
18077
      # ancient GNU ld didn't support --whole-archive et. al.
 
18078
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
18079
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
18080
      else
 
18081
        whole_archive_flag_spec_GCJ=
 
18082
      fi
 
18083
    fi
 
18084
  else
 
18085
    # PORTME fill in a description of your system's linker (not GNU ld)
 
18086
    case $host_os in
 
18087
    aix3*)
 
18088
      allow_undefined_flag_GCJ=unsupported
 
18089
      always_export_symbols_GCJ=yes
 
18090
      archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
 
18091
      # Note: this linker hardcodes the directories in LIBPATH if there
 
18092
      # are no directories specified by -L.
 
18093
      hardcode_minus_L_GCJ=yes
 
18094
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
18095
        # Neither direct hardcoding nor static linking is supported with a
 
18096
        # broken collect2.
 
18097
        hardcode_direct_GCJ=unsupported
 
18098
      fi
 
18099
      ;;
 
18100
 
 
18101
    aix4* | aix5*)
 
18102
      if test "$host_cpu" = ia64; then
 
18103
        # On IA64, the linker does run time linking by default, so we don't
 
18104
        # have to do anything special.
 
18105
        aix_use_runtimelinking=no
 
18106
        exp_sym_flag='-Bexport'
 
18107
        no_entry_flag=""
 
18108
      else
 
18109
        # If we're using GNU nm, then we don't want the "-C" option.
 
18110
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
18111
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
18112
          export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18113
        else
 
18114
          export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
 
18115
        fi
 
18116
        aix_use_runtimelinking=no
 
18117
 
 
18118
        # Test if we are trying to use run time linking or normal
 
18119
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
18120
        # need to do runtime linking.
 
18121
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
18122
          for ld_flag in $LDFLAGS; do
 
18123
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
18124
            aix_use_runtimelinking=yes
 
18125
            break
 
18126
          fi
 
18127
          done
 
18128
        esac
 
18129
 
 
18130
        exp_sym_flag='-bexport'
 
18131
        no_entry_flag='-bnoentry'
 
18132
      fi
 
18133
 
 
18134
      # When large executables or shared objects are built, AIX ld can
 
18135
      # have problems creating the table of contents.  If linking a library
 
18136
      # or program results in "error TOC overflow" add -mminimal-toc to
 
18137
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
18138
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
18139
 
 
18140
      archive_cmds_GCJ=''
 
18141
      hardcode_direct_GCJ=yes
 
18142
      hardcode_libdir_separator_GCJ=':'
 
18143
      link_all_deplibs_GCJ=yes
 
18144
 
 
18145
      if test "$GCC" = yes; then
 
18146
        case $host_os in aix4.012|aix4.012.*)
 
18147
        # We only want to do this on AIX 4.2 and lower, the check
 
18148
        # below for broken collect2 doesn't work under 4.3+
 
18149
          collect2name=`${CC} -print-prog-name=collect2`
 
18150
          if test -f "$collect2name" && \
 
18151
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
18152
          then
 
18153
          # We have reworked collect2
 
18154
          hardcode_direct_GCJ=yes
 
18155
          else
 
18156
          # We have old collect2
 
18157
          hardcode_direct_GCJ=unsupported
 
18158
          # It fails to find uninstalled libraries when the uninstalled
 
18159
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
18160
          # to unsupported forces relinking
 
18161
          hardcode_minus_L_GCJ=yes
 
18162
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18163
          hardcode_libdir_separator_GCJ=
 
18164
          fi
 
18165
        esac
 
18166
        shared_flag='-shared'
 
18167
      else
 
18168
        # not using gcc
 
18169
        if test "$host_cpu" = ia64; then
 
18170
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
18171
        # chokes on -Wl,-G. The following line is correct:
 
18172
          shared_flag='-G'
 
18173
        else
 
18174
        if test "$aix_use_runtimelinking" = yes; then
 
18175
            shared_flag='${wl}-G'
 
18176
          else
 
18177
            shared_flag='${wl}-bM:SRE'
 
18178
        fi
 
18179
        fi
 
18180
      fi
 
18181
 
 
18182
      # It seems that -bexpall does not export symbols beginning with
 
18183
      # underscore (_), so it is better to generate a list of symbols to export.
 
18184
      always_export_symbols_GCJ=yes
 
18185
      if test "$aix_use_runtimelinking" = yes; then
 
18186
        # Warning - without using the other runtime loading flags (-brtl),
 
18187
        # -berok will link without error, but may produce a broken library.
 
18188
        allow_undefined_flag_GCJ='-berok'
 
18189
       # Determine the default libpath from the value encoded in an empty executable.
 
18190
       cat >conftest.$ac_ext <<_ACEOF
 
18191
/* confdefs.h.  */
 
18192
_ACEOF
 
18193
cat confdefs.h >>conftest.$ac_ext
 
18194
cat >>conftest.$ac_ext <<_ACEOF
 
18195
/* end confdefs.h.  */
 
18196
 
 
18197
int
 
18198
main ()
 
18199
{
 
18200
 
 
18201
  ;
 
18202
  return 0;
 
18203
}
 
18204
_ACEOF
 
18205
rm -f conftest.$ac_objext conftest$ac_exeext
 
18206
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18207
  (eval $ac_link) 2>conftest.er1
 
18208
  ac_status=$?
 
18209
  grep -v '^ *+' conftest.er1 >conftest.err
 
18210
  rm -f conftest.er1
 
18211
  cat conftest.err >&5
 
18212
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18213
  (exit $ac_status); } &&
 
18214
         { ac_try='test -z "$ac_c_werror_flag"
 
18215
                         || test ! -s conftest.err'
 
18216
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18217
  (eval $ac_try) 2>&5
 
18218
  ac_status=$?
 
18219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18220
  (exit $ac_status); }; } &&
 
18221
         { ac_try='test -s conftest$ac_exeext'
 
18222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18223
  (eval $ac_try) 2>&5
 
18224
  ac_status=$?
 
18225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18226
  (exit $ac_status); }; }; then
 
18227
 
 
18228
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18229
}'`
 
18230
# Check for a 64-bit object if we didn't find anything.
 
18231
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18232
}'`; fi
 
18233
else
 
18234
  echo "$as_me: failed program was:" >&5
 
18235
sed 's/^/| /' conftest.$ac_ext >&5
 
18236
 
 
18237
fi
 
18238
rm -f conftest.err conftest.$ac_objext \
 
18239
      conftest$ac_exeext conftest.$ac_ext
 
18240
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18241
 
 
18242
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18243
        archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
 
18244
       else
 
18245
        if test "$host_cpu" = ia64; then
 
18246
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
18247
          allow_undefined_flag_GCJ="-z nodefs"
 
18248
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 
18249
        else
 
18250
         # Determine the default libpath from the value encoded in an empty executable.
 
18251
         cat >conftest.$ac_ext <<_ACEOF
 
18252
/* confdefs.h.  */
 
18253
_ACEOF
 
18254
cat confdefs.h >>conftest.$ac_ext
 
18255
cat >>conftest.$ac_ext <<_ACEOF
 
18256
/* end confdefs.h.  */
 
18257
 
 
18258
int
 
18259
main ()
 
18260
{
 
18261
 
 
18262
  ;
 
18263
  return 0;
 
18264
}
 
18265
_ACEOF
 
18266
rm -f conftest.$ac_objext conftest$ac_exeext
 
18267
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18268
  (eval $ac_link) 2>conftest.er1
 
18269
  ac_status=$?
 
18270
  grep -v '^ *+' conftest.er1 >conftest.err
 
18271
  rm -f conftest.er1
 
18272
  cat conftest.err >&5
 
18273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18274
  (exit $ac_status); } &&
 
18275
         { ac_try='test -z "$ac_c_werror_flag"
 
18276
                         || test ! -s conftest.err'
 
18277
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18278
  (eval $ac_try) 2>&5
 
18279
  ac_status=$?
 
18280
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18281
  (exit $ac_status); }; } &&
 
18282
         { ac_try='test -s conftest$ac_exeext'
 
18283
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18284
  (eval $ac_try) 2>&5
 
18285
  ac_status=$?
 
18286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18287
  (exit $ac_status); }; }; then
 
18288
 
 
18289
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18290
}'`
 
18291
# Check for a 64-bit object if we didn't find anything.
 
18292
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
18293
}'`; fi
 
18294
else
 
18295
  echo "$as_me: failed program was:" >&5
 
18296
sed 's/^/| /' conftest.$ac_ext >&5
 
18297
 
 
18298
fi
 
18299
rm -f conftest.err conftest.$ac_objext \
 
18300
      conftest$ac_exeext conftest.$ac_ext
 
18301
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
18302
 
 
18303
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
18304
          # Warning - without using the other run time loading flags,
 
18305
          # -berok will link without error, but may produce a broken library.
 
18306
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
18307
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
18308
          # -bexpall does not export symbols beginning with underscore (_)
 
18309
          always_export_symbols_GCJ=yes
 
18310
          # Exported symbols can be pulled into shared objects from archives
 
18311
          whole_archive_flag_spec_GCJ=' '
 
18312
          archive_cmds_need_lc_GCJ=yes
 
18313
          # This is similar to how AIX traditionally builds it's shared libraries.
 
18314
          archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
 
18315
        fi
 
18316
      fi
 
18317
      ;;
 
18318
 
 
18319
    amigaos*)
 
18320
      archive_cmds_GCJ='$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)'
 
18321
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18322
      hardcode_minus_L_GCJ=yes
 
18323
      # see comment about different semantics on the GNU ld section
 
18324
      ld_shlibs_GCJ=no
 
18325
      ;;
 
18326
 
 
18327
    bsdi[45]*)
 
18328
      export_dynamic_flag_spec_GCJ=-rdynamic
 
18329
      ;;
 
18330
 
 
18331
    cygwin* | mingw* | pw32*)
 
18332
      # When not using gcc, we currently assume that we are using
 
18333
      # Microsoft Visual C++.
 
18334
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
18335
      # no search path for DLLs.
 
18336
      hardcode_libdir_flag_spec_GCJ=' '
 
18337
      allow_undefined_flag_GCJ=unsupported
 
18338
      # Tell ltmain to make .lib files, not .a files.
 
18339
      libext=lib
 
18340
      # Tell ltmain to make .dll files, not .so files.
 
18341
      shrext_cmds=".dll"
 
18342
      # FIXME: Setting linknames here is a bad hack.
 
18343
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
18344
      # The linker will automatically build a .lib file if we build a DLL.
 
18345
      old_archive_From_new_cmds_GCJ='true'
 
18346
      # FIXME: Should let the user specify the lib program.
 
18347
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
18348
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
18349
      enable_shared_with_static_runtimes_GCJ=yes
 
18350
      ;;
 
18351
 
 
18352
    darwin* | rhapsody*)
 
18353
      case "$host_os" in
 
18354
        rhapsody* | darwin1.[012])
 
18355
         allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
 
18356
         ;;
 
18357
       *) # Darwin 1.3 on
 
18358
         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
18359
           allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18360
         else
 
18361
           case ${MACOSX_DEPLOYMENT_TARGET} in
 
18362
             10.[012])
 
18363
               allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
 
18364
               ;;
 
18365
             10.*)
 
18366
               allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
 
18367
               ;;
 
18368
           esac
 
18369
         fi
 
18370
         ;;
 
18371
      esac
 
18372
      archive_cmds_need_lc_GCJ=no
 
18373
      hardcode_direct_GCJ=no
 
18374
      hardcode_automatic_GCJ=yes
 
18375
      hardcode_shlibpath_var_GCJ=unsupported
 
18376
      whole_archive_flag_spec_GCJ=''
 
18377
      link_all_deplibs_GCJ=yes
 
18378
    if test "$GCC" = yes ; then
 
18379
        output_verbose_link_cmd='echo'
 
18380
        archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
18381
      module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18382
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18383
      archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18384
      module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18385
    else
 
18386
      case "$cc_basename" in
 
18387
        xlc*)
 
18388
         output_verbose_link_cmd='echo'
 
18389
         archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
 
18390
         module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
18391
          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
18392
         archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18393
          module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
 
18394
          ;;
 
18395
       *)
 
18396
         ld_shlibs_GCJ=no
 
18397
          ;;
 
18398
      esac
 
18399
    fi
 
18400
      ;;
 
18401
 
 
18402
    dgux*)
 
18403
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18404
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18405
      hardcode_shlibpath_var_GCJ=no
 
18406
      ;;
 
18407
 
 
18408
    freebsd1*)
 
18409
      ld_shlibs_GCJ=no
 
18410
      ;;
 
18411
 
 
18412
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
18413
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
18414
    # does not break anything, and helps significantly (at the cost of a little
 
18415
    # extra space).
 
18416
    freebsd2.2*)
 
18417
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
18418
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18419
      hardcode_direct_GCJ=yes
 
18420
      hardcode_shlibpath_var_GCJ=no
 
18421
      ;;
 
18422
 
 
18423
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
18424
    freebsd2*)
 
18425
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18426
      hardcode_direct_GCJ=yes
 
18427
      hardcode_minus_L_GCJ=yes
 
18428
      hardcode_shlibpath_var_GCJ=no
 
18429
      ;;
 
18430
 
 
18431
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
18432
    freebsd* | kfreebsd*-gnu)
 
18433
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
18434
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18435
      hardcode_direct_GCJ=yes
 
18436
      hardcode_shlibpath_var_GCJ=no
 
18437
      ;;
 
18438
 
 
18439
    hpux9*)
 
18440
      if test "$GCC" = yes; then
 
18441
        archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
 
18442
      else
 
18443
        archive_cmds_GCJ='$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'
 
18444
      fi
 
18445
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18446
      hardcode_libdir_separator_GCJ=:
 
18447
      hardcode_direct_GCJ=yes
 
18448
 
 
18449
      # hardcode_minus_L: Not really in the search PATH,
 
18450
      # but as the default location of the library.
 
18451
      hardcode_minus_L_GCJ=yes
 
18452
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
18453
      ;;
 
18454
 
 
18455
    hpux10* | hpux11*)
 
18456
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
18457
        case "$host_cpu" in
 
18458
        hppa*64*|ia64*)
 
18459
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18460
          ;;
 
18461
        *)
 
18462
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
18463
          ;;
 
18464
        esac
 
18465
      else
 
18466
        case "$host_cpu" in
 
18467
        hppa*64*|ia64*)
 
18468
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18469
          ;;
 
18470
        *)
 
18471
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
18472
          ;;
 
18473
        esac
 
18474
      fi
 
18475
      if test "$with_gnu_ld" = no; then
 
18476
        case "$host_cpu" in
 
18477
        hppa*64*)
 
18478
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18479
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
18480
          hardcode_libdir_separator_GCJ=:
 
18481
          hardcode_direct_GCJ=no
 
18482
          hardcode_shlibpath_var_GCJ=no
 
18483
          ;;
 
18484
        ia64*)
 
18485
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18486
          hardcode_direct_GCJ=no
 
18487
          hardcode_shlibpath_var_GCJ=no
 
18488
 
 
18489
          # hardcode_minus_L: Not really in the search PATH,
 
18490
          # but as the default location of the library.
 
18491
          hardcode_minus_L_GCJ=yes
 
18492
          ;;
 
18493
        *)
 
18494
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
18495
          hardcode_libdir_separator_GCJ=:
 
18496
          hardcode_direct_GCJ=yes
 
18497
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
18498
 
 
18499
          # hardcode_minus_L: Not really in the search PATH,
 
18500
          # but as the default location of the library.
 
18501
          hardcode_minus_L_GCJ=yes
 
18502
          ;;
 
18503
        esac
 
18504
      fi
 
18505
      ;;
 
18506
 
 
18507
    irix5* | irix6* | nonstopux*)
 
18508
      if test "$GCC" = yes; then
 
18509
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18510
      else
 
18511
        archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18512
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
18513
      fi
 
18514
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18515
      hardcode_libdir_separator_GCJ=:
 
18516
      link_all_deplibs_GCJ=yes
 
18517
      ;;
 
18518
 
 
18519
    netbsd*)
 
18520
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18521
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
18522
      else
 
18523
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
18524
      fi
 
18525
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18526
      hardcode_direct_GCJ=yes
 
18527
      hardcode_shlibpath_var_GCJ=no
 
18528
      ;;
 
18529
 
 
18530
    newsos6)
 
18531
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18532
      hardcode_direct_GCJ=yes
 
18533
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18534
      hardcode_libdir_separator_GCJ=:
 
18535
      hardcode_shlibpath_var_GCJ=no
 
18536
      ;;
 
18537
 
 
18538
    openbsd*)
 
18539
      hardcode_direct_GCJ=yes
 
18540
      hardcode_shlibpath_var_GCJ=no
 
18541
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18542
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18543
        archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
 
18544
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18545
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
18546
      else
 
18547
       case $host_os in
 
18548
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
18549
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
18550
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18551
           ;;
 
18552
         *)
 
18553
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
18554
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
18555
           ;;
 
18556
       esac
 
18557
      fi
 
18558
      ;;
 
18559
 
 
18560
    os2*)
 
18561
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18562
      hardcode_minus_L_GCJ=yes
 
18563
      allow_undefined_flag_GCJ=unsupported
 
18564
      archive_cmds_GCJ='$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'
 
18565
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
18566
      ;;
 
18567
 
 
18568
    osf3*)
 
18569
      if test "$GCC" = yes; then
 
18570
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18571
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18572
      else
 
18573
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18574
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18575
      fi
 
18576
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18577
      hardcode_libdir_separator_GCJ=:
 
18578
      ;;
 
18579
 
 
18580
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
18581
      if test "$GCC" = yes; then
 
18582
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
18583
        archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
 
18584
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
18585
      else
 
18586
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
18587
        archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
 
18588
        archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
18589
        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
 
18590
 
 
18591
        # Both c and cxx compiler support -rpath directly
 
18592
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
18593
      fi
 
18594
      hardcode_libdir_separator_GCJ=:
 
18595
      ;;
 
18596
 
 
18597
    sco3.2v5*)
 
18598
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18599
      hardcode_shlibpath_var_GCJ=no
 
18600
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
18601
      runpath_var=LD_RUN_PATH
 
18602
      hardcode_runpath_var=yes
 
18603
      ;;
 
18604
 
 
18605
    solaris*)
 
18606
      no_undefined_flag_GCJ=' -z text'
 
18607
      if test "$GCC" = yes; then
 
18608
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18609
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18610
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
18611
      else
 
18612
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18613
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18614
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18615
      fi
 
18616
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
18617
      hardcode_shlibpath_var_GCJ=no
 
18618
      case $host_os in
 
18619
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
18620
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
18621
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
18622
      esac
 
18623
      link_all_deplibs_GCJ=yes
 
18624
      ;;
 
18625
 
 
18626
    sunos4*)
 
18627
      if test "x$host_vendor" = xsequent; then
 
18628
        # Use $CC to link under sequent, because it throws in some extra .o
 
18629
        # files that make .init and .fini sections work.
 
18630
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
18631
      else
 
18632
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
18633
      fi
 
18634
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18635
      hardcode_direct_GCJ=yes
 
18636
      hardcode_minus_L_GCJ=yes
 
18637
      hardcode_shlibpath_var_GCJ=no
 
18638
      ;;
 
18639
 
 
18640
    sysv4)
 
18641
      case $host_vendor in
 
18642
        sni)
 
18643
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18644
          hardcode_direct_GCJ=yes # is this really true???
 
18645
        ;;
 
18646
        siemens)
 
18647
          ## LD is ld it makes a PLAMLIB
 
18648
          ## CC just makes a GrossModule.
 
18649
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18650
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
18651
          hardcode_direct_GCJ=no
 
18652
        ;;
 
18653
        motorola)
 
18654
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18655
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
18656
        ;;
 
18657
      esac
 
18658
      runpath_var='LD_RUN_PATH'
 
18659
      hardcode_shlibpath_var_GCJ=no
 
18660
      ;;
 
18661
 
 
18662
    sysv4.3*)
 
18663
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18664
      hardcode_shlibpath_var_GCJ=no
 
18665
      export_dynamic_flag_spec_GCJ='-Bexport'
 
18666
      ;;
 
18667
 
 
18668
    sysv4*MP*)
 
18669
      if test -d /usr/nec; then
 
18670
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18671
        hardcode_shlibpath_var_GCJ=no
 
18672
        runpath_var=LD_RUN_PATH
 
18673
        hardcode_runpath_var=yes
 
18674
        ld_shlibs_GCJ=yes
 
18675
      fi
 
18676
      ;;
 
18677
 
 
18678
    sysv4.2uw2*)
 
18679
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
18680
      hardcode_direct_GCJ=yes
 
18681
      hardcode_minus_L_GCJ=no
 
18682
      hardcode_shlibpath_var_GCJ=no
 
18683
      hardcode_runpath_var=yes
 
18684
      runpath_var=LD_RUN_PATH
 
18685
      ;;
 
18686
 
 
18687
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
18688
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
18689
      if test "$GCC" = yes; then
 
18690
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18691
      else
 
18692
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
18693
      fi
 
18694
      runpath_var='LD_RUN_PATH'
 
18695
      hardcode_shlibpath_var_GCJ=no
 
18696
      ;;
 
18697
 
 
18698
    sysv5*)
 
18699
      no_undefined_flag_GCJ=' -z text'
 
18700
      # $CC -shared without GNU ld will not create a library from C++
 
18701
      # object files and a static libstdc++, better avoid it by now
 
18702
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18703
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
18704
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
18705
      hardcode_libdir_flag_spec_GCJ=
 
18706
      hardcode_shlibpath_var_GCJ=no
 
18707
      runpath_var='LD_RUN_PATH'
 
18708
      ;;
 
18709
 
 
18710
    uts4*)
 
18711
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
18712
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
18713
      hardcode_shlibpath_var_GCJ=no
 
18714
      ;;
 
18715
 
 
18716
    *)
 
18717
      ld_shlibs_GCJ=no
 
18718
      ;;
 
18719
    esac
 
18720
  fi
 
18721
 
 
18722
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
18723
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
18724
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
18725
 
 
18726
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
18727
if test "$GCC" = yes; then
 
18728
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
18729
fi
 
18730
 
 
18731
#
 
18732
# Do we need to explicitly link libc?
 
18733
#
 
18734
case "x$archive_cmds_need_lc_GCJ" in
 
18735
x|xyes)
 
18736
  # Assume -lc should be added
 
18737
  archive_cmds_need_lc_GCJ=yes
 
18738
 
 
18739
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
18740
    case $archive_cmds_GCJ in
 
18741
    *'~'*)
 
18742
      # FIXME: we may have to deal with multi-command sequences.
 
18743
      ;;
 
18744
    '$CC '*)
 
18745
      # Test whether the compiler implicitly links with -lc since on some
 
18746
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
18747
      # to ld, don't add -lc before -lgcc.
 
18748
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
18749
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
18750
      $rm conftest*
 
18751
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
18752
 
 
18753
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
18754
  (eval $ac_compile) 2>&5
 
18755
  ac_status=$?
 
18756
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18757
  (exit $ac_status); } 2>conftest.err; then
 
18758
        soname=conftest
 
18759
        lib=conftest
 
18760
        libobjs=conftest.$ac_objext
 
18761
        deplibs=
 
18762
        wl=$lt_prog_compiler_wl_GCJ
 
18763
        compiler_flags=-v
 
18764
        linker_flags=-v
 
18765
        verstring=
 
18766
        output_objdir=.
 
18767
        libname=conftest
 
18768
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
18769
        allow_undefined_flag_GCJ=
 
18770
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
18771
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
18772
  ac_status=$?
 
18773
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18774
  (exit $ac_status); }
 
18775
        then
 
18776
          archive_cmds_need_lc_GCJ=no
 
18777
        else
 
18778
          archive_cmds_need_lc_GCJ=yes
 
18779
        fi
 
18780
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
18781
      else
 
18782
        cat conftest.err 1>&5
 
18783
      fi
 
18784
      $rm conftest*
 
18785
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
18786
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
18787
      ;;
 
18788
    esac
 
18789
  fi
 
18790
  ;;
 
18791
esac
 
18792
 
 
18793
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
18794
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
18795
library_names_spec=
 
18796
libname_spec='lib$name'
 
18797
soname_spec=
 
18798
shrext_cmds=".so"
 
18799
postinstall_cmds=
 
18800
postuninstall_cmds=
 
18801
finish_cmds=
 
18802
finish_eval=
 
18803
shlibpath_var=
 
18804
shlibpath_overrides_runpath=unknown
 
18805
version_type=none
 
18806
dynamic_linker="$host_os ld.so"
 
18807
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
18808
if test "$GCC" = yes; then
 
18809
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18810
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
18811
    # if the path contains ";" then we assume it to be the separator
 
18812
    # otherwise default to the standard path separator (i.e. ":") - it is
 
18813
    # assumed that no part of a normal pathname contains ";" but that should
 
18814
    # okay in the real world where ";" in dirpaths is itself problematic.
 
18815
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18816
  else
 
18817
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18818
  fi
 
18819
else
 
18820
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
18821
fi
 
18822
need_lib_prefix=unknown
 
18823
hardcode_into_libs=no
 
18824
 
 
18825
# when you set need_version to no, make sure it does not cause -set_version
 
18826
# flags to be left without arguments
 
18827
need_version=unknown
 
18828
 
 
18829
case $host_os in
 
18830
aix3*)
 
18831
  version_type=linux
 
18832
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
18833
  shlibpath_var=LIBPATH
 
18834
 
 
18835
  # AIX 3 has no versioning support, so we append a major version to the name.
 
18836
  soname_spec='${libname}${release}${shared_ext}$major'
 
18837
  ;;
 
18838
 
 
18839
aix4* | aix5*)
 
18840
  version_type=linux
 
18841
  need_lib_prefix=no
 
18842
  need_version=no
 
18843
  hardcode_into_libs=yes
 
18844
  if test "$host_cpu" = ia64; then
 
18845
    # AIX 5 supports IA64
 
18846
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
18847
    shlibpath_var=LD_LIBRARY_PATH
 
18848
  else
 
18849
    # With GCC up to 2.95.x, collect2 would create an import file
 
18850
    # for dependence libraries.  The import file would start with
 
18851
    # the line `#! .'.  This would cause the generated library to
 
18852
    # depend on `.', always an invalid library.  This was fixed in
 
18853
    # development snapshots of GCC prior to 3.0.
 
18854
    case $host_os in
 
18855
      aix4 | aix4.[01] | aix4.[01].*)
 
18856
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
18857
           echo ' yes '
 
18858
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
18859
        :
 
18860
      else
 
18861
        can_build_shared=no
 
18862
      fi
 
18863
      ;;
 
18864
    esac
 
18865
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
18866
    # soname into executable. Probably we can add versioning support to
 
18867
    # collect2, so additional links can be useful in future.
 
18868
    if test "$aix_use_runtimelinking" = yes; then
 
18869
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
18870
      # instead of lib<name>.a to let people know that these are not
 
18871
      # typical AIX shared libraries.
 
18872
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18873
    else
 
18874
      # We preserve .a as extension for shared libraries through AIX4.2
 
18875
      # and later when we are not doing run time linking.
 
18876
      library_names_spec='${libname}${release}.a $libname.a'
 
18877
      soname_spec='${libname}${release}${shared_ext}$major'
 
18878
    fi
 
18879
    shlibpath_var=LIBPATH
 
18880
  fi
 
18881
  ;;
 
18882
 
 
18883
amigaos*)
 
18884
  library_names_spec='$libname.ixlibrary $libname.a'
 
18885
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
18886
  finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
 
18887
  ;;
 
18888
 
 
18889
beos*)
 
18890
  library_names_spec='${libname}${shared_ext}'
 
18891
  dynamic_linker="$host_os ld.so"
 
18892
  shlibpath_var=LIBRARY_PATH
 
18893
  ;;
 
18894
 
 
18895
bsdi[45]*)
 
18896
  version_type=linux
 
18897
  need_version=no
 
18898
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18899
  soname_spec='${libname}${release}${shared_ext}$major'
 
18900
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
18901
  shlibpath_var=LD_LIBRARY_PATH
 
18902
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
18903
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
18904
  # the default ld.so.conf also contains /usr/contrib/lib and
 
18905
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
18906
  # libtool to hard-code these into programs
 
18907
  ;;
 
18908
 
 
18909
cygwin* | mingw* | pw32*)
 
18910
  version_type=windows
 
18911
  shrext_cmds=".dll"
 
18912
  need_version=no
 
18913
  need_lib_prefix=no
 
18914
 
 
18915
  case $GCC,$host_os in
 
18916
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
18917
    library_names_spec='$libname.dll.a'
 
18918
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
18919
    postinstall_cmds='base_file=`basename \${file}`~
 
18920
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
18921
      dldir=$destdir/`dirname \$dlpath`~
 
18922
      test -d \$dldir || mkdir -p \$dldir~
 
18923
      $install_prog $dir/$dlname \$dldir/$dlname'
 
18924
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
18925
      dlpath=$dir/\$dldll~
 
18926
       $rm \$dlpath'
 
18927
    shlibpath_overrides_runpath=yes
 
18928
 
 
18929
    case $host_os in
 
18930
    cygwin*)
 
18931
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
18932
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18933
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
18934
      ;;
 
18935
    mingw*)
 
18936
      # MinGW DLLs use traditional 'lib' prefix
 
18937
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
18938
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
18939
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
18940
        # It is most probably a Windows format PATH printed by
 
18941
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
18942
        # path with ; separators, and with drive letters. We can handle the
 
18943
        # drive letters (cygwin fileutils understands them), so leave them,
 
18944
        # especially as we might pass files found there to a mingw objdump,
 
18945
        # which wouldn't understand a cygwinified path. Ahh.
 
18946
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
18947
      else
 
18948
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
18949
      fi
 
18950
      ;;
 
18951
    pw32*)
 
18952
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
18953
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
18954
      ;;
 
18955
    esac
 
18956
    ;;
 
18957
 
 
18958
  *)
 
18959
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
18960
    ;;
 
18961
  esac
 
18962
  dynamic_linker='Win32 ld.exe'
 
18963
  # FIXME: first we should search . and the directory the executable is in
 
18964
  shlibpath_var=PATH
 
18965
  ;;
 
18966
 
 
18967
darwin* | rhapsody*)
 
18968
  dynamic_linker="$host_os dyld"
 
18969
  version_type=darwin
 
18970
  need_lib_prefix=no
 
18971
  need_version=no
 
18972
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
18973
  soname_spec='${libname}${release}${major}$shared_ext'
 
18974
  shlibpath_overrides_runpath=yes
 
18975
  shlibpath_var=DYLD_LIBRARY_PATH
 
18976
  shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 
18977
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
18978
  if test "$GCC" = yes; then
 
18979
    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
 
18980
  else
 
18981
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
18982
  fi
 
18983
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
18984
  ;;
 
18985
 
 
18986
dgux*)
 
18987
  version_type=linux
 
18988
  need_lib_prefix=no
 
18989
  need_version=no
 
18990
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
18991
  soname_spec='${libname}${release}${shared_ext}$major'
 
18992
  shlibpath_var=LD_LIBRARY_PATH
 
18993
  ;;
 
18994
 
 
18995
freebsd1*)
 
18996
  dynamic_linker=no
 
18997
  ;;
 
18998
 
 
18999
kfreebsd*-gnu)
 
19000
  version_type=linux
 
19001
  need_lib_prefix=no
 
19002
  need_version=no
 
19003
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19004
  soname_spec='${libname}${release}${shared_ext}$major'
 
19005
  shlibpath_var=LD_LIBRARY_PATH
 
19006
  shlibpath_overrides_runpath=no
 
19007
  hardcode_into_libs=yes
 
19008
  dynamic_linker='GNU ld.so'
 
19009
  ;;
 
19010
 
 
19011
freebsd*)
 
19012
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
19013
  version_type=freebsd-$objformat
 
19014
  case $version_type in
 
19015
    freebsd-elf*)
 
19016
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19017
      need_version=no
 
19018
      need_lib_prefix=no
 
19019
      ;;
 
19020
    freebsd-*)
 
19021
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
19022
      need_version=yes
 
19023
      ;;
 
19024
  esac
 
19025
  shlibpath_var=LD_LIBRARY_PATH
 
19026
  case $host_os in
 
19027
  freebsd2*)
 
19028
    shlibpath_overrides_runpath=yes
 
19029
    ;;
 
19030
  freebsd3.01* | freebsdelf3.01*)
 
19031
    shlibpath_overrides_runpath=yes
 
19032
    hardcode_into_libs=yes
 
19033
    ;;
 
19034
  *) # from 3.2 on
 
19035
    shlibpath_overrides_runpath=no
 
19036
    hardcode_into_libs=yes
 
19037
    ;;
 
19038
  esac
 
19039
  ;;
 
19040
 
 
19041
gnu*)
 
19042
  version_type=linux
 
19043
  need_lib_prefix=no
 
19044
  need_version=no
 
19045
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
19046
  soname_spec='${libname}${release}${shared_ext}$major'
 
19047
  shlibpath_var=LD_LIBRARY_PATH
 
19048
  hardcode_into_libs=yes
 
19049
  ;;
 
19050
 
 
19051
hpux9* | hpux10* | hpux11*)
 
19052
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
19053
  # link against other versions.
 
19054
  version_type=sunos
 
19055
  need_lib_prefix=no
 
19056
  need_version=no
 
19057
  case "$host_cpu" in
 
19058
  ia64*)
 
19059
    shrext_cmds='.so'
 
19060
    hardcode_into_libs=yes
 
19061
    dynamic_linker="$host_os dld.so"
 
19062
    shlibpath_var=LD_LIBRARY_PATH
 
19063
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19064
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19065
    soname_spec='${libname}${release}${shared_ext}$major'
 
19066
    if test "X$HPUX_IA64_MODE" = X32; then
 
19067
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
19068
    else
 
19069
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
19070
    fi
 
19071
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19072
    ;;
 
19073
   hppa*64*)
 
19074
     shrext_cmds='.sl'
 
19075
     hardcode_into_libs=yes
 
19076
     dynamic_linker="$host_os dld.sl"
 
19077
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
19078
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
19079
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19080
     soname_spec='${libname}${release}${shared_ext}$major'
 
19081
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
19082
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
19083
     ;;
 
19084
   *)
 
19085
    shrext_cmds='.sl'
 
19086
    dynamic_linker="$host_os dld.sl"
 
19087
    shlibpath_var=SHLIB_PATH
 
19088
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
19089
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19090
    soname_spec='${libname}${release}${shared_ext}$major'
 
19091
    ;;
 
19092
  esac
 
19093
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
19094
  postinstall_cmds='chmod 555 $lib'
 
19095
  ;;
 
19096
 
 
19097
irix5* | irix6* | nonstopux*)
 
19098
  case $host_os in
 
19099
    nonstopux*) version_type=nonstopux ;;
 
19100
    *)
 
19101
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
19102
                version_type=linux
 
19103
        else
 
19104
                version_type=irix
 
19105
        fi ;;
 
19106
  esac
 
19107
  need_lib_prefix=no
 
19108
  need_version=no
 
19109
  soname_spec='${libname}${release}${shared_ext}$major'
 
19110
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
19111
  case $host_os in
 
19112
  irix5* | nonstopux*)
 
19113
    libsuff= shlibsuff=
 
19114
    ;;
 
19115
  *)
 
19116
    case $LD in # libtool.m4 will add one of these switches to LD
 
19117
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
19118
      libsuff= shlibsuff= libmagic=32-bit;;
 
19119
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
19120
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
19121
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
19122
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
19123
    *) libsuff= shlibsuff= libmagic=never-match;;
 
19124
    esac
 
19125
    ;;
 
19126
  esac
 
19127
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
19128
  shlibpath_overrides_runpath=no
 
19129
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
19130
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
19131
  hardcode_into_libs=yes
 
19132
  ;;
 
19133
 
 
19134
# No shared lib support for Linux oldld, aout, or coff.
 
19135
linux*oldld* | linux*aout* | linux*coff*)
 
19136
  dynamic_linker=no
 
19137
  ;;
 
19138
 
 
19139
# This must be Linux ELF.
 
19140
linux*)
 
19141
  version_type=linux
 
19142
  need_lib_prefix=no
 
19143
  need_version=no
 
19144
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19145
  soname_spec='${libname}${release}${shared_ext}$major'
 
19146
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
19147
  shlibpath_var=LD_LIBRARY_PATH
 
19148
  shlibpath_overrides_runpath=no
 
19149
  # This implies no fast_install, which is unacceptable.
 
19150
  # Some rework will be needed to allow for fast_install
 
19151
  # before this can be enabled.
 
19152
  hardcode_into_libs=yes
 
19153
 
 
19154
  # find out which ABI we are using
 
19155
  libsuff=
 
19156
  case "$host_cpu" in
 
19157
  x86_64*|s390x*|powerpc64*)
 
19158
    echo '#line 19158 "configure"' > conftest.$ac_ext
 
19159
    if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
19160
  (eval $ac_compile) 2>&5
 
19161
  ac_status=$?
 
19162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19163
  (exit $ac_status); }; then
 
19164
      case `/usr/bin/file conftest.$ac_objext` in
 
19165
      *64-bit*)
 
19166
        libsuff=64
 
19167
        sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
 
19168
        ;;
 
19169
      esac
 
19170
    fi
 
19171
    rm -rf conftest*
 
19172
    ;;
 
19173
  esac
 
19174
 
 
19175
  # Append ld.so.conf contents to the search path
 
19176
  if test -f /etc/ld.so.conf; then
 
19177
    lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 
19178
    sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
 
19179
  fi
 
19180
 
 
19181
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
19182
  # powerpc, because MkLinux only supported shared libraries with the
 
19183
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
19184
  # most powerpc-linux boxes support dynamic linking these days and
 
19185
  # people can always --disable-shared, the test was removed, and we
 
19186
  # assume the GNU/Linux dynamic linker is in use.
 
19187
  dynamic_linker='GNU/Linux ld.so'
 
19188
  ;;
 
19189
 
 
19190
knetbsd*-gnu)
 
19191
  version_type=linux
 
19192
  need_lib_prefix=no
 
19193
  need_version=no
 
19194
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19195
  soname_spec='${libname}${release}${shared_ext}$major'
 
19196
  shlibpath_var=LD_LIBRARY_PATH
 
19197
  shlibpath_overrides_runpath=no
 
19198
  hardcode_into_libs=yes
 
19199
  dynamic_linker='GNU ld.so'
 
19200
  ;;
 
19201
 
 
19202
netbsd*)
 
19203
  version_type=sunos
 
19204
  need_lib_prefix=no
 
19205
  need_version=no
 
19206
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
19207
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19208
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19209
    dynamic_linker='NetBSD (a.out) ld.so'
 
19210
  else
 
19211
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
19212
    soname_spec='${libname}${release}${shared_ext}$major'
 
19213
    dynamic_linker='NetBSD ld.elf_so'
 
19214
  fi
 
19215
  shlibpath_var=LD_LIBRARY_PATH
 
19216
  shlibpath_overrides_runpath=yes
 
19217
  hardcode_into_libs=yes
 
19218
  ;;
 
19219
 
 
19220
newsos6)
 
19221
  version_type=linux
 
19222
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19223
  shlibpath_var=LD_LIBRARY_PATH
 
19224
  shlibpath_overrides_runpath=yes
 
19225
  ;;
 
19226
 
 
19227
nto-qnx*)
 
19228
  version_type=linux
 
19229
  need_lib_prefix=no
 
19230
  need_version=no
 
19231
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19232
  soname_spec='${libname}${release}${shared_ext}$major'
 
19233
  shlibpath_var=LD_LIBRARY_PATH
 
19234
  shlibpath_overrides_runpath=yes
 
19235
  ;;
 
19236
 
 
19237
openbsd*)
 
19238
  version_type=sunos
 
19239
  need_lib_prefix=no
 
19240
  need_version=no
 
19241
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19242
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
19243
  shlibpath_var=LD_LIBRARY_PATH
 
19244
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
19245
    case $host_os in
 
19246
      openbsd2.[89] | openbsd2.[89].*)
 
19247
        shlibpath_overrides_runpath=no
 
19248
        ;;
 
19249
      *)
 
19250
        shlibpath_overrides_runpath=yes
 
19251
        ;;
 
19252
      esac
 
19253
  else
 
19254
    shlibpath_overrides_runpath=yes
 
19255
  fi
 
19256
  ;;
 
19257
 
 
19258
os2*)
 
19259
  libname_spec='$name'
 
19260
  shrext_cmds=".dll"
 
19261
  need_lib_prefix=no
 
19262
  library_names_spec='$libname${shared_ext} $libname.a'
 
19263
  dynamic_linker='OS/2 ld.exe'
 
19264
  shlibpath_var=LIBPATH
 
19265
  ;;
 
19266
 
 
19267
osf3* | osf4* | osf5*)
 
19268
  version_type=osf
 
19269
  need_lib_prefix=no
 
19270
  need_version=no
 
19271
  soname_spec='${libname}${release}${shared_ext}$major'
 
19272
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19273
  shlibpath_var=LD_LIBRARY_PATH
 
19274
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
19275
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
19276
  ;;
 
19277
 
 
19278
sco3.2v5*)
 
19279
  version_type=osf
 
19280
  soname_spec='${libname}${release}${shared_ext}$major'
 
19281
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19282
  shlibpath_var=LD_LIBRARY_PATH
 
19283
  ;;
 
19284
 
 
19285
solaris*)
 
19286
  version_type=linux
 
19287
  need_lib_prefix=no
 
19288
  need_version=no
 
19289
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19290
  soname_spec='${libname}${release}${shared_ext}$major'
 
19291
  shlibpath_var=LD_LIBRARY_PATH
 
19292
  shlibpath_overrides_runpath=yes
 
19293
  hardcode_into_libs=yes
 
19294
  # ldd complains unless libraries are executable
 
19295
  postinstall_cmds='chmod +x $lib'
 
19296
  ;;
 
19297
 
 
19298
sunos4*)
 
19299
  version_type=sunos
 
19300
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
19301
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
19302
  shlibpath_var=LD_LIBRARY_PATH
 
19303
  shlibpath_overrides_runpath=yes
 
19304
  if test "$with_gnu_ld" = yes; then
 
19305
    need_lib_prefix=no
 
19306
  fi
 
19307
  need_version=yes
 
19308
  ;;
 
19309
 
 
19310
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
19311
  version_type=linux
 
19312
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19313
  soname_spec='${libname}${release}${shared_ext}$major'
 
19314
  shlibpath_var=LD_LIBRARY_PATH
 
19315
  case $host_vendor in
 
19316
    sni)
 
19317
      shlibpath_overrides_runpath=no
 
19318
      need_lib_prefix=no
 
19319
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
19320
      runpath_var=LD_RUN_PATH
 
19321
      ;;
 
19322
    siemens)
 
19323
      need_lib_prefix=no
 
19324
      ;;
 
19325
    motorola)
 
19326
      need_lib_prefix=no
 
19327
      need_version=no
 
19328
      shlibpath_overrides_runpath=no
 
19329
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
19330
      ;;
 
19331
  esac
 
19332
  ;;
 
19333
 
 
19334
sysv4*MP*)
 
19335
  if test -d /usr/nec ;then
 
19336
    version_type=linux
 
19337
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
19338
    soname_spec='$libname${shared_ext}.$major'
 
19339
    shlibpath_var=LD_LIBRARY_PATH
 
19340
  fi
 
19341
  ;;
 
19342
 
 
19343
uts4*)
 
19344
  version_type=linux
 
19345
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
19346
  soname_spec='${libname}${release}${shared_ext}$major'
 
19347
  shlibpath_var=LD_LIBRARY_PATH
 
19348
  ;;
 
19349
 
 
19350
*)
 
19351
  dynamic_linker=no
 
19352
  ;;
 
19353
esac
 
19354
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
19355
echo "${ECHO_T}$dynamic_linker" >&6
 
19356
test "$dynamic_linker" = no && can_build_shared=no
 
19357
 
 
19358
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
19359
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
19360
hardcode_action_GCJ=
 
19361
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
19362
   test -n "$runpath_var_GCJ" || \
 
19363
   test "X$hardcode_automatic_GCJ" = "Xyes" ; then
 
19364
 
 
19365
  # We can hardcode non-existant directories.
 
19366
  if test "$hardcode_direct_GCJ" != no &&
 
19367
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
19368
     # have to relink, otherwise we might link with an installed library
 
19369
     # when we should be linking with a yet-to-be-installed one
 
19370
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
19371
     test "$hardcode_minus_L_GCJ" != no; then
 
19372
    # Linking always hardcodes the temporary library directory.
 
19373
    hardcode_action_GCJ=relink
 
19374
  else
 
19375
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
19376
    hardcode_action_GCJ=immediate
 
19377
  fi
 
19378
else
 
19379
  # We cannot hardcode anything, or else we can only hardcode existing
 
19380
  # directories.
 
19381
  hardcode_action_GCJ=unsupported
 
19382
fi
 
19383
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
19384
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
19385
 
 
19386
if test "$hardcode_action_GCJ" = relink; then
 
19387
  # Fast installation is not supported
 
19388
  enable_fast_install=no
 
19389
elif test "$shlibpath_overrides_runpath" = yes ||
 
19390
     test "$enable_shared" = no; then
 
19391
  # Fast installation is not necessary
 
19392
  enable_fast_install=needless
 
19393
fi
 
19394
 
 
19395
striplib=
 
19396
old_striplib=
 
19397
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
19398
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
19399
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
19400
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
19401
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
19402
  echo "$as_me:$LINENO: result: yes" >&5
 
19403
echo "${ECHO_T}yes" >&6
 
19404
else
 
19405
# FIXME - insert some real tests, host_os isn't really good enough
 
19406
  case $host_os in
 
19407
   darwin*)
 
19408
       if test -n "$STRIP" ; then
 
19409
         striplib="$STRIP -x"
 
19410
         echo "$as_me:$LINENO: result: yes" >&5
 
19411
echo "${ECHO_T}yes" >&6
 
19412
       else
 
19413
  echo "$as_me:$LINENO: result: no" >&5
 
19414
echo "${ECHO_T}no" >&6
 
19415
fi
 
19416
       ;;
 
19417
   *)
 
19418
  echo "$as_me:$LINENO: result: no" >&5
 
19419
echo "${ECHO_T}no" >&6
 
19420
    ;;
 
19421
  esac
 
19422
fi
 
19423
 
 
19424
if test "x$enable_dlopen" != xyes; then
 
19425
  enable_dlopen=unknown
 
19426
  enable_dlopen_self=unknown
 
19427
  enable_dlopen_self_static=unknown
 
19428
else
 
19429
  lt_cv_dlopen=no
 
19430
  lt_cv_dlopen_libs=
 
19431
 
 
19432
  case $host_os in
 
19433
  beos*)
 
19434
    lt_cv_dlopen="load_add_on"
 
19435
    lt_cv_dlopen_libs=
 
19436
    lt_cv_dlopen_self=yes
 
19437
    ;;
 
19438
 
 
19439
  mingw* | pw32*)
 
19440
    lt_cv_dlopen="LoadLibrary"
 
19441
    lt_cv_dlopen_libs=
 
19442
   ;;
 
19443
 
 
19444
  cygwin*)
 
19445
    lt_cv_dlopen="dlopen"
 
19446
    lt_cv_dlopen_libs=
 
19447
   ;;
 
19448
 
 
19449
  darwin*)
 
19450
  # if libdl is installed we need to link against it
 
19451
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19452
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19453
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19455
else
 
19456
  ac_check_lib_save_LIBS=$LIBS
 
19457
LIBS="-ldl  $LIBS"
 
19458
cat >conftest.$ac_ext <<_ACEOF
 
19459
/* confdefs.h.  */
 
19460
_ACEOF
 
19461
cat confdefs.h >>conftest.$ac_ext
 
19462
cat >>conftest.$ac_ext <<_ACEOF
 
19463
/* end confdefs.h.  */
 
19464
 
 
19465
/* Override any gcc2 internal prototype to avoid an error.  */
 
19466
#ifdef __cplusplus
 
19467
extern "C"
 
19468
#endif
 
19469
/* We use char because int might match the return type of a gcc2
 
19470
   builtin and then its argument prototype would still apply.  */
 
19471
char dlopen ();
 
19472
int
 
19473
main ()
 
19474
{
 
19475
dlopen ();
 
19476
  ;
 
19477
  return 0;
 
19478
}
 
19479
_ACEOF
 
19480
rm -f conftest.$ac_objext conftest$ac_exeext
 
19481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19482
  (eval $ac_link) 2>conftest.er1
 
19483
  ac_status=$?
 
19484
  grep -v '^ *+' conftest.er1 >conftest.err
 
19485
  rm -f conftest.er1
 
19486
  cat conftest.err >&5
 
19487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19488
  (exit $ac_status); } &&
 
19489
         { ac_try='test -z "$ac_c_werror_flag"
 
19490
                         || test ! -s conftest.err'
 
19491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19492
  (eval $ac_try) 2>&5
 
19493
  ac_status=$?
 
19494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19495
  (exit $ac_status); }; } &&
 
19496
         { ac_try='test -s conftest$ac_exeext'
 
19497
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19498
  (eval $ac_try) 2>&5
 
19499
  ac_status=$?
 
19500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19501
  (exit $ac_status); }; }; then
 
19502
  ac_cv_lib_dl_dlopen=yes
 
19503
else
 
19504
  echo "$as_me: failed program was:" >&5
 
19505
sed 's/^/| /' conftest.$ac_ext >&5
 
19506
 
 
19507
ac_cv_lib_dl_dlopen=no
 
19508
fi
 
19509
rm -f conftest.err conftest.$ac_objext \
 
19510
      conftest$ac_exeext conftest.$ac_ext
 
19511
LIBS=$ac_check_lib_save_LIBS
 
19512
fi
 
19513
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19514
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19515
if test $ac_cv_lib_dl_dlopen = yes; then
 
19516
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19517
else
 
19518
 
 
19519
    lt_cv_dlopen="dyld"
 
19520
    lt_cv_dlopen_libs=
 
19521
    lt_cv_dlopen_self=yes
 
19522
 
 
19523
fi
 
19524
 
 
19525
   ;;
 
19526
 
 
19527
  *)
 
19528
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
19529
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
19530
if test "${ac_cv_func_shl_load+set}" = set; then
 
19531
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19532
else
 
19533
  cat >conftest.$ac_ext <<_ACEOF
 
19534
/* confdefs.h.  */
 
19535
_ACEOF
 
19536
cat confdefs.h >>conftest.$ac_ext
 
19537
cat >>conftest.$ac_ext <<_ACEOF
 
19538
/* end confdefs.h.  */
 
19539
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
19540
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19541
#define shl_load innocuous_shl_load
 
19542
 
 
19543
/* System header to define __stub macros and hopefully few prototypes,
 
19544
    which can conflict with char shl_load (); below.
 
19545
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19546
    <limits.h> exists even on freestanding compilers.  */
 
19547
 
 
19548
#ifdef __STDC__
 
19549
# include <limits.h>
 
19550
#else
 
19551
# include <assert.h>
 
19552
#endif
 
19553
 
 
19554
#undef shl_load
 
19555
 
 
19556
/* Override any gcc2 internal prototype to avoid an error.  */
 
19557
#ifdef __cplusplus
 
19558
extern "C"
 
19559
{
 
19560
#endif
 
19561
/* We use char because int might match the return type of a gcc2
 
19562
   builtin and then its argument prototype would still apply.  */
 
19563
char shl_load ();
 
19564
/* The GNU C library defines this for functions which it implements
 
19565
    to always fail with ENOSYS.  Some functions are actually named
 
19566
    something starting with __ and the normal name is an alias.  */
 
19567
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
19568
choke me
 
19569
#else
 
19570
char (*f) () = shl_load;
 
19571
#endif
 
19572
#ifdef __cplusplus
 
19573
}
 
19574
#endif
 
19575
 
 
19576
int
 
19577
main ()
 
19578
{
 
19579
return f != shl_load;
 
19580
  ;
 
19581
  return 0;
 
19582
}
 
19583
_ACEOF
 
19584
rm -f conftest.$ac_objext conftest$ac_exeext
 
19585
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19586
  (eval $ac_link) 2>conftest.er1
 
19587
  ac_status=$?
 
19588
  grep -v '^ *+' conftest.er1 >conftest.err
 
19589
  rm -f conftest.er1
 
19590
  cat conftest.err >&5
 
19591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19592
  (exit $ac_status); } &&
 
19593
         { ac_try='test -z "$ac_c_werror_flag"
 
19594
                         || test ! -s conftest.err'
 
19595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19596
  (eval $ac_try) 2>&5
 
19597
  ac_status=$?
 
19598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19599
  (exit $ac_status); }; } &&
 
19600
         { ac_try='test -s conftest$ac_exeext'
 
19601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19602
  (eval $ac_try) 2>&5
 
19603
  ac_status=$?
 
19604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19605
  (exit $ac_status); }; }; then
 
19606
  ac_cv_func_shl_load=yes
 
19607
else
 
19608
  echo "$as_me: failed program was:" >&5
 
19609
sed 's/^/| /' conftest.$ac_ext >&5
 
19610
 
 
19611
ac_cv_func_shl_load=no
 
19612
fi
 
19613
rm -f conftest.err conftest.$ac_objext \
 
19614
      conftest$ac_exeext conftest.$ac_ext
 
19615
fi
 
19616
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
19617
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
19618
if test $ac_cv_func_shl_load = yes; then
 
19619
  lt_cv_dlopen="shl_load"
 
19620
else
 
19621
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
19622
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
19623
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
19624
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19625
else
 
19626
  ac_check_lib_save_LIBS=$LIBS
 
19627
LIBS="-ldld  $LIBS"
 
19628
cat >conftest.$ac_ext <<_ACEOF
 
19629
/* confdefs.h.  */
 
19630
_ACEOF
 
19631
cat confdefs.h >>conftest.$ac_ext
 
19632
cat >>conftest.$ac_ext <<_ACEOF
 
19633
/* end confdefs.h.  */
 
19634
 
 
19635
/* Override any gcc2 internal prototype to avoid an error.  */
 
19636
#ifdef __cplusplus
 
19637
extern "C"
 
19638
#endif
 
19639
/* We use char because int might match the return type of a gcc2
 
19640
   builtin and then its argument prototype would still apply.  */
 
19641
char shl_load ();
 
19642
int
 
19643
main ()
 
19644
{
 
19645
shl_load ();
 
19646
  ;
 
19647
  return 0;
 
19648
}
 
19649
_ACEOF
 
19650
rm -f conftest.$ac_objext conftest$ac_exeext
 
19651
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19652
  (eval $ac_link) 2>conftest.er1
 
19653
  ac_status=$?
 
19654
  grep -v '^ *+' conftest.er1 >conftest.err
 
19655
  rm -f conftest.er1
 
19656
  cat conftest.err >&5
 
19657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19658
  (exit $ac_status); } &&
 
19659
         { ac_try='test -z "$ac_c_werror_flag"
 
19660
                         || test ! -s conftest.err'
 
19661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19662
  (eval $ac_try) 2>&5
 
19663
  ac_status=$?
 
19664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19665
  (exit $ac_status); }; } &&
 
19666
         { ac_try='test -s conftest$ac_exeext'
 
19667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19668
  (eval $ac_try) 2>&5
 
19669
  ac_status=$?
 
19670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19671
  (exit $ac_status); }; }; then
 
19672
  ac_cv_lib_dld_shl_load=yes
 
19673
else
 
19674
  echo "$as_me: failed program was:" >&5
 
19675
sed 's/^/| /' conftest.$ac_ext >&5
 
19676
 
 
19677
ac_cv_lib_dld_shl_load=no
 
19678
fi
 
19679
rm -f conftest.err conftest.$ac_objext \
 
19680
      conftest$ac_exeext conftest.$ac_ext
 
19681
LIBS=$ac_check_lib_save_LIBS
 
19682
fi
 
19683
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
19684
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
19685
if test $ac_cv_lib_dld_shl_load = yes; then
 
19686
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
19687
else
 
19688
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
19689
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
19690
if test "${ac_cv_func_dlopen+set}" = set; then
 
19691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19692
else
 
19693
  cat >conftest.$ac_ext <<_ACEOF
 
19694
/* confdefs.h.  */
 
19695
_ACEOF
 
19696
cat confdefs.h >>conftest.$ac_ext
 
19697
cat >>conftest.$ac_ext <<_ACEOF
 
19698
/* end confdefs.h.  */
 
19699
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
19700
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
19701
#define dlopen innocuous_dlopen
 
19702
 
 
19703
/* System header to define __stub macros and hopefully few prototypes,
 
19704
    which can conflict with char dlopen (); below.
 
19705
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
19706
    <limits.h> exists even on freestanding compilers.  */
 
19707
 
 
19708
#ifdef __STDC__
 
19709
# include <limits.h>
 
19710
#else
 
19711
# include <assert.h>
 
19712
#endif
 
19713
 
 
19714
#undef dlopen
 
19715
 
 
19716
/* Override any gcc2 internal prototype to avoid an error.  */
 
19717
#ifdef __cplusplus
 
19718
extern "C"
 
19719
{
 
19720
#endif
 
19721
/* We use char because int might match the return type of a gcc2
 
19722
   builtin and then its argument prototype would still apply.  */
 
19723
char dlopen ();
 
19724
/* The GNU C library defines this for functions which it implements
 
19725
    to always fail with ENOSYS.  Some functions are actually named
 
19726
    something starting with __ and the normal name is an alias.  */
 
19727
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
19728
choke me
 
19729
#else
 
19730
char (*f) () = dlopen;
 
19731
#endif
 
19732
#ifdef __cplusplus
 
19733
}
 
19734
#endif
 
19735
 
 
19736
int
 
19737
main ()
 
19738
{
 
19739
return f != dlopen;
 
19740
  ;
 
19741
  return 0;
 
19742
}
 
19743
_ACEOF
 
19744
rm -f conftest.$ac_objext conftest$ac_exeext
 
19745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19746
  (eval $ac_link) 2>conftest.er1
 
19747
  ac_status=$?
 
19748
  grep -v '^ *+' conftest.er1 >conftest.err
 
19749
  rm -f conftest.er1
 
19750
  cat conftest.err >&5
 
19751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19752
  (exit $ac_status); } &&
 
19753
         { ac_try='test -z "$ac_c_werror_flag"
 
19754
                         || test ! -s conftest.err'
 
19755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19756
  (eval $ac_try) 2>&5
 
19757
  ac_status=$?
 
19758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19759
  (exit $ac_status); }; } &&
 
19760
         { ac_try='test -s conftest$ac_exeext'
 
19761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19762
  (eval $ac_try) 2>&5
 
19763
  ac_status=$?
 
19764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19765
  (exit $ac_status); }; }; then
 
19766
  ac_cv_func_dlopen=yes
 
19767
else
 
19768
  echo "$as_me: failed program was:" >&5
 
19769
sed 's/^/| /' conftest.$ac_ext >&5
 
19770
 
 
19771
ac_cv_func_dlopen=no
 
19772
fi
 
19773
rm -f conftest.err conftest.$ac_objext \
 
19774
      conftest$ac_exeext conftest.$ac_ext
 
19775
fi
 
19776
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
19777
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
19778
if test $ac_cv_func_dlopen = yes; then
 
19779
  lt_cv_dlopen="dlopen"
 
19780
else
 
19781
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
19782
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
19783
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
19784
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19785
else
 
19786
  ac_check_lib_save_LIBS=$LIBS
 
19787
LIBS="-ldl  $LIBS"
 
19788
cat >conftest.$ac_ext <<_ACEOF
 
19789
/* confdefs.h.  */
 
19790
_ACEOF
 
19791
cat confdefs.h >>conftest.$ac_ext
 
19792
cat >>conftest.$ac_ext <<_ACEOF
 
19793
/* end confdefs.h.  */
 
19794
 
 
19795
/* Override any gcc2 internal prototype to avoid an error.  */
 
19796
#ifdef __cplusplus
 
19797
extern "C"
 
19798
#endif
 
19799
/* We use char because int might match the return type of a gcc2
 
19800
   builtin and then its argument prototype would still apply.  */
 
19801
char dlopen ();
 
19802
int
 
19803
main ()
 
19804
{
 
19805
dlopen ();
 
19806
  ;
 
19807
  return 0;
 
19808
}
 
19809
_ACEOF
 
19810
rm -f conftest.$ac_objext conftest$ac_exeext
 
19811
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19812
  (eval $ac_link) 2>conftest.er1
 
19813
  ac_status=$?
 
19814
  grep -v '^ *+' conftest.er1 >conftest.err
 
19815
  rm -f conftest.er1
 
19816
  cat conftest.err >&5
 
19817
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19818
  (exit $ac_status); } &&
 
19819
         { ac_try='test -z "$ac_c_werror_flag"
 
19820
                         || test ! -s conftest.err'
 
19821
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19822
  (eval $ac_try) 2>&5
 
19823
  ac_status=$?
 
19824
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19825
  (exit $ac_status); }; } &&
 
19826
         { ac_try='test -s conftest$ac_exeext'
 
19827
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19828
  (eval $ac_try) 2>&5
 
19829
  ac_status=$?
 
19830
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19831
  (exit $ac_status); }; }; then
 
19832
  ac_cv_lib_dl_dlopen=yes
 
19833
else
 
19834
  echo "$as_me: failed program was:" >&5
 
19835
sed 's/^/| /' conftest.$ac_ext >&5
 
19836
 
 
19837
ac_cv_lib_dl_dlopen=no
 
19838
fi
 
19839
rm -f conftest.err conftest.$ac_objext \
 
19840
      conftest$ac_exeext conftest.$ac_ext
 
19841
LIBS=$ac_check_lib_save_LIBS
 
19842
fi
 
19843
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
19844
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
19845
if test $ac_cv_lib_dl_dlopen = yes; then
 
19846
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
19847
else
 
19848
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
19849
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
19850
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
19851
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19852
else
 
19853
  ac_check_lib_save_LIBS=$LIBS
 
19854
LIBS="-lsvld  $LIBS"
 
19855
cat >conftest.$ac_ext <<_ACEOF
 
19856
/* confdefs.h.  */
 
19857
_ACEOF
 
19858
cat confdefs.h >>conftest.$ac_ext
 
19859
cat >>conftest.$ac_ext <<_ACEOF
 
19860
/* end confdefs.h.  */
 
19861
 
 
19862
/* Override any gcc2 internal prototype to avoid an error.  */
 
19863
#ifdef __cplusplus
 
19864
extern "C"
 
19865
#endif
 
19866
/* We use char because int might match the return type of a gcc2
 
19867
   builtin and then its argument prototype would still apply.  */
 
19868
char dlopen ();
 
19869
int
 
19870
main ()
 
19871
{
 
19872
dlopen ();
 
19873
  ;
 
19874
  return 0;
 
19875
}
 
19876
_ACEOF
 
19877
rm -f conftest.$ac_objext conftest$ac_exeext
 
19878
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19879
  (eval $ac_link) 2>conftest.er1
 
19880
  ac_status=$?
 
19881
  grep -v '^ *+' conftest.er1 >conftest.err
 
19882
  rm -f conftest.er1
 
19883
  cat conftest.err >&5
 
19884
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19885
  (exit $ac_status); } &&
 
19886
         { ac_try='test -z "$ac_c_werror_flag"
 
19887
                         || test ! -s conftest.err'
 
19888
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19889
  (eval $ac_try) 2>&5
 
19890
  ac_status=$?
 
19891
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19892
  (exit $ac_status); }; } &&
 
19893
         { ac_try='test -s conftest$ac_exeext'
 
19894
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19895
  (eval $ac_try) 2>&5
 
19896
  ac_status=$?
 
19897
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19898
  (exit $ac_status); }; }; then
 
19899
  ac_cv_lib_svld_dlopen=yes
 
19900
else
 
19901
  echo "$as_me: failed program was:" >&5
 
19902
sed 's/^/| /' conftest.$ac_ext >&5
 
19903
 
 
19904
ac_cv_lib_svld_dlopen=no
 
19905
fi
 
19906
rm -f conftest.err conftest.$ac_objext \
 
19907
      conftest$ac_exeext conftest.$ac_ext
 
19908
LIBS=$ac_check_lib_save_LIBS
 
19909
fi
 
19910
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
19911
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
19912
if test $ac_cv_lib_svld_dlopen = yes; then
 
19913
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
19914
else
 
19915
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
19916
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
19917
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
19918
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
19919
else
 
19920
  ac_check_lib_save_LIBS=$LIBS
 
19921
LIBS="-ldld  $LIBS"
 
19922
cat >conftest.$ac_ext <<_ACEOF
 
19923
/* confdefs.h.  */
 
19924
_ACEOF
 
19925
cat confdefs.h >>conftest.$ac_ext
 
19926
cat >>conftest.$ac_ext <<_ACEOF
 
19927
/* end confdefs.h.  */
 
19928
 
 
19929
/* Override any gcc2 internal prototype to avoid an error.  */
 
19930
#ifdef __cplusplus
 
19931
extern "C"
 
19932
#endif
 
19933
/* We use char because int might match the return type of a gcc2
 
19934
   builtin and then its argument prototype would still apply.  */
 
19935
char dld_link ();
 
19936
int
 
19937
main ()
 
19938
{
 
19939
dld_link ();
 
19940
  ;
 
19941
  return 0;
 
19942
}
 
19943
_ACEOF
 
19944
rm -f conftest.$ac_objext conftest$ac_exeext
 
19945
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19946
  (eval $ac_link) 2>conftest.er1
 
19947
  ac_status=$?
 
19948
  grep -v '^ *+' conftest.er1 >conftest.err
 
19949
  rm -f conftest.er1
 
19950
  cat conftest.err >&5
 
19951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19952
  (exit $ac_status); } &&
 
19953
         { ac_try='test -z "$ac_c_werror_flag"
 
19954
                         || test ! -s conftest.err'
 
19955
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19956
  (eval $ac_try) 2>&5
 
19957
  ac_status=$?
 
19958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19959
  (exit $ac_status); }; } &&
 
19960
         { ac_try='test -s conftest$ac_exeext'
 
19961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
19962
  (eval $ac_try) 2>&5
 
19963
  ac_status=$?
 
19964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19965
  (exit $ac_status); }; }; then
 
19966
  ac_cv_lib_dld_dld_link=yes
 
19967
else
 
19968
  echo "$as_me: failed program was:" >&5
 
19969
sed 's/^/| /' conftest.$ac_ext >&5
 
19970
 
 
19971
ac_cv_lib_dld_dld_link=no
 
19972
fi
 
19973
rm -f conftest.err conftest.$ac_objext \
 
19974
      conftest$ac_exeext conftest.$ac_ext
 
19975
LIBS=$ac_check_lib_save_LIBS
 
19976
fi
 
19977
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
19978
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
19979
if test $ac_cv_lib_dld_dld_link = yes; then
 
19980
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
19981
fi
 
19982
 
 
19983
 
 
19984
fi
 
19985
 
 
19986
 
 
19987
fi
 
19988
 
 
19989
 
 
19990
fi
 
19991
 
 
19992
 
 
19993
fi
 
19994
 
 
19995
 
 
19996
fi
 
19997
 
 
19998
    ;;
 
19999
  esac
 
20000
 
 
20001
  if test "x$lt_cv_dlopen" != xno; then
 
20002
    enable_dlopen=yes
 
20003
  else
 
20004
    enable_dlopen=no
 
20005
  fi
 
20006
 
 
20007
  case $lt_cv_dlopen in
 
20008
  dlopen)
 
20009
    save_CPPFLAGS="$CPPFLAGS"
 
20010
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
20011
 
 
20012
    save_LDFLAGS="$LDFLAGS"
 
20013
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
20014
 
 
20015
    save_LIBS="$LIBS"
 
20016
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
20017
 
 
20018
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
20019
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
20020
if test "${lt_cv_dlopen_self+set}" = set; then
 
20021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20022
else
 
20023
          if test "$cross_compiling" = yes; then :
 
20024
  lt_cv_dlopen_self=cross
 
20025
else
 
20026
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20027
  lt_status=$lt_dlunknown
 
20028
  cat > conftest.$ac_ext <<EOF
 
20029
#line 20029 "configure"
 
20030
#include "confdefs.h"
 
20031
 
 
20032
#if HAVE_DLFCN_H
 
20033
#include <dlfcn.h>
 
20034
#endif
 
20035
 
 
20036
#include <stdio.h>
 
20037
 
 
20038
#ifdef RTLD_GLOBAL
 
20039
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20040
#else
 
20041
#  ifdef DL_GLOBAL
 
20042
#    define LT_DLGLOBAL         DL_GLOBAL
 
20043
#  else
 
20044
#    define LT_DLGLOBAL         0
 
20045
#  endif
 
20046
#endif
 
20047
 
 
20048
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20049
   find out it does not work in some platform. */
 
20050
#ifndef LT_DLLAZY_OR_NOW
 
20051
#  ifdef RTLD_LAZY
 
20052
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20053
#  else
 
20054
#    ifdef DL_LAZY
 
20055
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20056
#    else
 
20057
#      ifdef RTLD_NOW
 
20058
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20059
#      else
 
20060
#        ifdef DL_NOW
 
20061
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20062
#        else
 
20063
#          define LT_DLLAZY_OR_NOW      0
 
20064
#        endif
 
20065
#      endif
 
20066
#    endif
 
20067
#  endif
 
20068
#endif
 
20069
 
 
20070
#ifdef __cplusplus
 
20071
extern "C" void exit (int);
 
20072
#endif
 
20073
 
 
20074
void fnord() { int i=42;}
 
20075
int main ()
 
20076
{
 
20077
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20078
  int status = $lt_dlunknown;
 
20079
 
 
20080
  if (self)
 
20081
    {
 
20082
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20083
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20084
      /* dlclose (self); */
 
20085
    }
 
20086
 
 
20087
    exit (status);
 
20088
}
 
20089
EOF
 
20090
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20091
  (eval $ac_link) 2>&5
 
20092
  ac_status=$?
 
20093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20094
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20095
    (./conftest; exit; ) 2>/dev/null
 
20096
    lt_status=$?
 
20097
    case x$lt_status in
 
20098
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
20099
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
20100
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
20101
    esac
 
20102
  else :
 
20103
    # compilation failed
 
20104
    lt_cv_dlopen_self=no
 
20105
  fi
 
20106
fi
 
20107
rm -fr conftest*
 
20108
 
 
20109
 
 
20110
fi
 
20111
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
20112
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
20113
 
 
20114
    if test "x$lt_cv_dlopen_self" = xyes; then
 
20115
      LDFLAGS="$LDFLAGS $link_static_flag"
 
20116
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
20117
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
20118
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
20119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20120
else
 
20121
          if test "$cross_compiling" = yes; then :
 
20122
  lt_cv_dlopen_self_static=cross
 
20123
else
 
20124
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
20125
  lt_status=$lt_dlunknown
 
20126
  cat > conftest.$ac_ext <<EOF
 
20127
#line 20127 "configure"
 
20128
#include "confdefs.h"
 
20129
 
 
20130
#if HAVE_DLFCN_H
 
20131
#include <dlfcn.h>
 
20132
#endif
 
20133
 
 
20134
#include <stdio.h>
 
20135
 
 
20136
#ifdef RTLD_GLOBAL
 
20137
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
20138
#else
 
20139
#  ifdef DL_GLOBAL
 
20140
#    define LT_DLGLOBAL         DL_GLOBAL
 
20141
#  else
 
20142
#    define LT_DLGLOBAL         0
 
20143
#  endif
 
20144
#endif
 
20145
 
 
20146
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
20147
   find out it does not work in some platform. */
 
20148
#ifndef LT_DLLAZY_OR_NOW
 
20149
#  ifdef RTLD_LAZY
 
20150
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
20151
#  else
 
20152
#    ifdef DL_LAZY
 
20153
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
20154
#    else
 
20155
#      ifdef RTLD_NOW
 
20156
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
20157
#      else
 
20158
#        ifdef DL_NOW
 
20159
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
20160
#        else
 
20161
#          define LT_DLLAZY_OR_NOW      0
 
20162
#        endif
 
20163
#      endif
 
20164
#    endif
 
20165
#  endif
 
20166
#endif
 
20167
 
 
20168
#ifdef __cplusplus
 
20169
extern "C" void exit (int);
 
20170
#endif
 
20171
 
 
20172
void fnord() { int i=42;}
 
20173
int main ()
 
20174
{
 
20175
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
20176
  int status = $lt_dlunknown;
 
20177
 
 
20178
  if (self)
 
20179
    {
 
20180
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
20181
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
20182
      /* dlclose (self); */
 
20183
    }
 
20184
 
 
20185
    exit (status);
 
20186
}
 
20187
EOF
 
20188
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20189
  (eval $ac_link) 2>&5
 
20190
  ac_status=$?
 
20191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20192
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
20193
    (./conftest; exit; ) 2>/dev/null
 
20194
    lt_status=$?
 
20195
    case x$lt_status in
 
20196
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
20197
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
20198
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
20199
    esac
 
20200
  else :
 
20201
    # compilation failed
 
20202
    lt_cv_dlopen_self_static=no
 
20203
  fi
 
20204
fi
 
20205
rm -fr conftest*
 
20206
 
 
20207
 
 
20208
fi
 
20209
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
20210
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
20211
    fi
 
20212
 
 
20213
    CPPFLAGS="$save_CPPFLAGS"
 
20214
    LDFLAGS="$save_LDFLAGS"
 
20215
    LIBS="$save_LIBS"
 
20216
    ;;
 
20217
  esac
 
20218
 
 
20219
  case $lt_cv_dlopen_self in
 
20220
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
20221
  *) enable_dlopen_self=unknown ;;
 
20222
  esac
 
20223
 
 
20224
  case $lt_cv_dlopen_self_static in
 
20225
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
20226
  *) enable_dlopen_self_static=unknown ;;
 
20227
  esac
 
20228
fi
 
20229
 
 
20230
 
 
20231
# The else clause should only fire when bootstrapping the
 
20232
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20233
# with your package, and you will get complaints that there are
 
20234
# no rules to generate ltmain.sh.
 
20235
if test -f "$ltmain"; then
 
20236
  # See if we are running on zsh, and set the options which allow our commands through
 
20237
  # without removal of \ escapes.
 
20238
  if test -n "${ZSH_VERSION+set}" ; then
 
20239
    setopt NO_GLOB_SUBST
 
20240
  fi
 
20241
  # Now quote all the things that may contain metacharacters while being
 
20242
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20243
  # variables and quote the copies for generation of the libtool script.
 
20244
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20245
    SED SHELL STRIP \
 
20246
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20247
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20248
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20249
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20250
    lt_cv_sys_global_symbol_to_c_name_address \
 
20251
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20252
    old_postinstall_cmds old_postuninstall_cmds \
 
20253
    compiler_GCJ \
 
20254
    CC_GCJ \
 
20255
    LD_GCJ \
 
20256
    lt_prog_compiler_wl_GCJ \
 
20257
    lt_prog_compiler_pic_GCJ \
 
20258
    lt_prog_compiler_static_GCJ \
 
20259
    lt_prog_compiler_no_builtin_flag_GCJ \
 
20260
    export_dynamic_flag_spec_GCJ \
 
20261
    thread_safe_flag_spec_GCJ \
 
20262
    whole_archive_flag_spec_GCJ \
 
20263
    enable_shared_with_static_runtimes_GCJ \
 
20264
    old_archive_cmds_GCJ \
 
20265
    old_archive_from_new_cmds_GCJ \
 
20266
    predep_objects_GCJ \
 
20267
    postdep_objects_GCJ \
 
20268
    predeps_GCJ \
 
20269
    postdeps_GCJ \
 
20270
    compiler_lib_search_path_GCJ \
 
20271
    archive_cmds_GCJ \
 
20272
    archive_expsym_cmds_GCJ \
 
20273
    postinstall_cmds_GCJ \
 
20274
    postuninstall_cmds_GCJ \
 
20275
    old_archive_from_expsyms_cmds_GCJ \
 
20276
    allow_undefined_flag_GCJ \
 
20277
    no_undefined_flag_GCJ \
 
20278
    export_symbols_cmds_GCJ \
 
20279
    hardcode_libdir_flag_spec_GCJ \
 
20280
    hardcode_libdir_flag_spec_ld_GCJ \
 
20281
    hardcode_libdir_separator_GCJ \
 
20282
    hardcode_automatic_GCJ \
 
20283
    module_cmds_GCJ \
 
20284
    module_expsym_cmds_GCJ \
 
20285
    lt_cv_prog_compiler_c_o_GCJ \
 
20286
    exclude_expsyms_GCJ \
 
20287
    include_expsyms_GCJ; do
 
20288
 
 
20289
    case $var in
 
20290
    old_archive_cmds_GCJ | \
 
20291
    old_archive_from_new_cmds_GCJ | \
 
20292
    archive_cmds_GCJ | \
 
20293
    archive_expsym_cmds_GCJ | \
 
20294
    module_cmds_GCJ | \
 
20295
    module_expsym_cmds_GCJ | \
 
20296
    old_archive_from_expsyms_cmds_GCJ | \
 
20297
    export_symbols_cmds_GCJ | \
 
20298
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20299
    postinstall_cmds | postuninstall_cmds | \
 
20300
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20301
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20302
      # Double-quote double-evaled strings.
 
20303
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20304
      ;;
 
20305
    *)
 
20306
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20307
      ;;
 
20308
    esac
 
20309
  done
 
20310
 
 
20311
  case $lt_echo in
 
20312
  *'\$0 --fallback-echo"')
 
20313
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20314
    ;;
 
20315
  esac
 
20316
 
 
20317
cfgfile="$ofile"
 
20318
 
 
20319
  cat <<__EOF__ >> "$cfgfile"
 
20320
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20321
 
 
20322
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20323
 
 
20324
# Shell to use when invoking shell scripts.
 
20325
SHELL=$lt_SHELL
 
20326
 
 
20327
# Whether or not to build shared libraries.
 
20328
build_libtool_libs=$enable_shared
 
20329
 
 
20330
# Whether or not to build static libraries.
 
20331
build_old_libs=$enable_static
 
20332
 
 
20333
# Whether or not to add -lc for building shared libraries.
 
20334
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
20335
 
 
20336
# Whether or not to disallow shared libs when runtime libs are static
 
20337
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
20338
 
 
20339
# Whether or not to optimize for fast installation.
 
20340
fast_install=$enable_fast_install
 
20341
 
 
20342
# The host system.
 
20343
host_alias=$host_alias
 
20344
host=$host
 
20345
 
 
20346
# An echo program that does not interpret backslashes.
 
20347
echo=$lt_echo
 
20348
 
 
20349
# The archiver.
 
20350
AR=$lt_AR
 
20351
AR_FLAGS=$lt_AR_FLAGS
 
20352
 
 
20353
# A C compiler.
 
20354
LTCC=$lt_LTCC
 
20355
 
 
20356
# A language-specific compiler.
 
20357
CC=$lt_compiler_GCJ
 
20358
 
 
20359
# Is the compiler the GNU C compiler?
 
20360
with_gcc=$GCC_GCJ
 
20361
 
 
20362
# An ERE matcher.
 
20363
EGREP=$lt_EGREP
 
20364
 
 
20365
# The linker used to build libraries.
 
20366
LD=$lt_LD_GCJ
 
20367
 
 
20368
# Whether we need hard or soft links.
 
20369
LN_S=$lt_LN_S
 
20370
 
 
20371
# A BSD-compatible nm program.
 
20372
NM=$lt_NM
 
20373
 
 
20374
# A symbol stripping program
 
20375
STRIP=$lt_STRIP
 
20376
 
 
20377
# Used to examine libraries when file_magic_cmd begins "file"
 
20378
MAGIC_CMD=$MAGIC_CMD
 
20379
 
 
20380
# Used on cygwin: DLL creation program.
 
20381
DLLTOOL="$DLLTOOL"
 
20382
 
 
20383
# Used on cygwin: object dumper.
 
20384
OBJDUMP="$OBJDUMP"
 
20385
 
 
20386
# Used on cygwin: assembler.
 
20387
AS="$AS"
 
20388
 
 
20389
# The name of the directory that contains temporary libtool files.
 
20390
objdir=$objdir
 
20391
 
 
20392
# How to create reloadable object files.
 
20393
reload_flag=$lt_reload_flag
 
20394
reload_cmds=$lt_reload_cmds
 
20395
 
 
20396
# How to pass a linker flag through the compiler.
 
20397
wl=$lt_lt_prog_compiler_wl_GCJ
 
20398
 
 
20399
# Object file suffix (normally "o").
 
20400
objext="$ac_objext"
 
20401
 
 
20402
# Old archive suffix (normally "a").
 
20403
libext="$libext"
 
20404
 
 
20405
# Shared library suffix (normally ".so").
 
20406
shrext_cmds='$shrext_cmds'
 
20407
 
 
20408
# Executable file suffix (normally "").
 
20409
exeext="$exeext"
 
20410
 
 
20411
# Additional compiler flags for building library objects.
 
20412
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
20413
pic_mode=$pic_mode
 
20414
 
 
20415
# What is the maximum length of a command?
 
20416
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20417
 
 
20418
# Does compiler simultaneously support -c and -o options?
 
20419
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
20420
 
 
20421
# Must we lock files when doing compilation ?
 
20422
need_locks=$lt_need_locks
 
20423
 
 
20424
# Do we need the lib prefix for modules?
 
20425
need_lib_prefix=$need_lib_prefix
 
20426
 
 
20427
# Do we need a version for libraries?
 
20428
need_version=$need_version
 
20429
 
 
20430
# Whether dlopen is supported.
 
20431
dlopen_support=$enable_dlopen
 
20432
 
 
20433
# Whether dlopen of programs is supported.
 
20434
dlopen_self=$enable_dlopen_self
 
20435
 
 
20436
# Whether dlopen of statically linked programs is supported.
 
20437
dlopen_self_static=$enable_dlopen_self_static
 
20438
 
 
20439
# Compiler flag to prevent dynamic linking.
 
20440
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
20441
 
 
20442
# Compiler flag to turn off builtin functions.
 
20443
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
20444
 
 
20445
# Compiler flag to allow reflexive dlopens.
 
20446
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
20447
 
 
20448
# Compiler flag to generate shared objects directly from archives.
 
20449
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
20450
 
 
20451
# Compiler flag to generate thread-safe objects.
 
20452
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
20453
 
 
20454
# Library versioning type.
 
20455
version_type=$version_type
 
20456
 
 
20457
# Format of library name prefix.
 
20458
libname_spec=$lt_libname_spec
 
20459
 
 
20460
# List of archive names.  First name is the real one, the rest are links.
 
20461
# The last name is the one that the linker finds with -lNAME.
 
20462
library_names_spec=$lt_library_names_spec
 
20463
 
 
20464
# The coded name of the library, if different from the real name.
 
20465
soname_spec=$lt_soname_spec
 
20466
 
 
20467
# Commands used to build and install an old-style archive.
 
20468
RANLIB=$lt_RANLIB
 
20469
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
20470
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20471
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20472
 
 
20473
# Create an old-style archive from a shared archive.
 
20474
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
20475
 
 
20476
# Create a temporary old-style archive to link instead of a shared archive.
 
20477
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
20478
 
 
20479
# Commands used to build and install a shared archive.
 
20480
archive_cmds=$lt_archive_cmds_GCJ
 
20481
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
20482
postinstall_cmds=$lt_postinstall_cmds
 
20483
postuninstall_cmds=$lt_postuninstall_cmds
 
20484
 
 
20485
# Commands used to build a loadable module (assumed same as above if empty)
 
20486
module_cmds=$lt_module_cmds_GCJ
 
20487
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
20488
 
 
20489
# Commands to strip libraries.
 
20490
old_striplib=$lt_old_striplib
 
20491
striplib=$lt_striplib
 
20492
 
 
20493
# Dependencies to place before the objects being linked to create a
 
20494
# shared library.
 
20495
predep_objects=$lt_predep_objects_GCJ
 
20496
 
 
20497
# Dependencies to place after the objects being linked to create a
 
20498
# shared library.
 
20499
postdep_objects=$lt_postdep_objects_GCJ
 
20500
 
 
20501
# Dependencies to place before the objects being linked to create a
 
20502
# shared library.
 
20503
predeps=$lt_predeps_GCJ
 
20504
 
 
20505
# Dependencies to place after the objects being linked to create a
 
20506
# shared library.
 
20507
postdeps=$lt_postdeps_GCJ
 
20508
 
 
20509
# The library search path used internally by the compiler when linking
 
20510
# a shared library.
 
20511
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
20512
 
 
20513
# Method to check whether dependent libraries are shared objects.
 
20514
deplibs_check_method=$lt_deplibs_check_method
 
20515
 
 
20516
# Command to use when deplibs_check_method == file_magic.
 
20517
file_magic_cmd=$lt_file_magic_cmd
 
20518
 
 
20519
# Flag that allows shared libraries with undefined symbols to be built.
 
20520
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
20521
 
 
20522
# Flag that forces no undefined symbols.
 
20523
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
20524
 
 
20525
# Commands used to finish a libtool library installation in a directory.
 
20526
finish_cmds=$lt_finish_cmds
 
20527
 
 
20528
# Same as above, but a single script fragment to be evaled but not shown.
 
20529
finish_eval=$lt_finish_eval
 
20530
 
 
20531
# Take the output of nm and produce a listing of raw symbols and C names.
 
20532
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20533
 
 
20534
# Transform the output of nm in a proper C declaration
 
20535
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20536
 
 
20537
# Transform the output of nm in a C name address pair
 
20538
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20539
 
 
20540
# This is the shared library runtime path variable.
 
20541
runpath_var=$runpath_var
 
20542
 
 
20543
# This is the shared library path variable.
 
20544
shlibpath_var=$shlibpath_var
 
20545
 
 
20546
# Is shlibpath searched before the hard-coded library search path?
 
20547
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20548
 
 
20549
# How to hardcode a shared library path into an executable.
 
20550
hardcode_action=$hardcode_action_GCJ
 
20551
 
 
20552
# Whether we should hardcode library paths into libraries.
 
20553
hardcode_into_libs=$hardcode_into_libs
 
20554
 
 
20555
# Flag to hardcode \$libdir into a binary during linking.
 
20556
# This must work even if \$libdir does not exist.
 
20557
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
20558
 
 
20559
# If ld is used when linking, flag to hardcode \$libdir into
 
20560
# a binary during linking. This must work even if \$libdir does
 
20561
# not exist.
 
20562
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
20563
 
 
20564
# Whether we need a single -rpath flag with a separated argument.
 
20565
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
20566
 
 
20567
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
20568
# resulting binary.
 
20569
hardcode_direct=$hardcode_direct_GCJ
 
20570
 
 
20571
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
20572
# resulting binary.
 
20573
hardcode_minus_L=$hardcode_minus_L_GCJ
 
20574
 
 
20575
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
20576
# the resulting binary.
 
20577
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
20578
 
 
20579
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
20580
# and all subsequent libraries and executables linked against it.
 
20581
hardcode_automatic=$hardcode_automatic_GCJ
 
20582
 
 
20583
# Variables whose values should be saved in libtool wrapper scripts and
 
20584
# restored at relink time.
 
20585
variables_saved_for_relink="$variables_saved_for_relink"
 
20586
 
 
20587
# Whether libtool must link a program against all its dependency libraries.
 
20588
link_all_deplibs=$link_all_deplibs_GCJ
 
20589
 
 
20590
# Compile-time system search path for libraries
 
20591
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
20592
 
 
20593
# Run-time system search path for libraries
 
20594
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
20595
 
 
20596
# Fix the shell variable \$srcfile for the compiler.
 
20597
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
20598
 
 
20599
# Set to yes if exported symbols are required.
 
20600
always_export_symbols=$always_export_symbols_GCJ
 
20601
 
 
20602
# The commands to list exported symbols.
 
20603
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
20604
 
 
20605
# The commands to extract the exported symbol list from a shared archive.
 
20606
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
20607
 
 
20608
# Symbols that should not be listed in the preloaded symbols.
 
20609
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
20610
 
 
20611
# Symbols that must always be exported.
 
20612
include_expsyms=$lt_include_expsyms_GCJ
 
20613
 
 
20614
# ### END LIBTOOL TAG CONFIG: $tagname
 
20615
 
 
20616
__EOF__
 
20617
 
 
20618
 
 
20619
else
 
20620
  # If there is no Makefile yet, we rely on a make rule to execute
 
20621
  # `config.status --recheck' to rerun these tests and create the
 
20622
  # libtool script then.
 
20623
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
20624
  if test -f "$ltmain_in"; then
 
20625
    test -f Makefile && make "$ltmain"
 
20626
  fi
 
20627
fi
 
20628
 
 
20629
 
 
20630
ac_ext=c
 
20631
ac_cpp='$CPP $CPPFLAGS'
 
20632
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
20633
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
20634
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
20635
 
 
20636
CC="$lt_save_CC"
 
20637
 
 
20638
        else
 
20639
          tagname=""
 
20640
        fi
 
20641
        ;;
 
20642
 
 
20643
      RC)
 
20644
 
 
20645
 
 
20646
 
 
20647
# Source file extension for RC test sources.
 
20648
ac_ext=rc
 
20649
 
 
20650
# Object file extension for compiled RC test sources.
 
20651
objext=o
 
20652
objext_RC=$objext
 
20653
 
 
20654
# Code to be used in simple compile tests
 
20655
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
20656
 
 
20657
# Code to be used in simple link tests
 
20658
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
20659
 
 
20660
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
20661
 
 
20662
# If no C compiler was specified, use CC.
 
20663
LTCC=${LTCC-"$CC"}
 
20664
 
 
20665
# Allow CC to be a program name with arguments.
 
20666
compiler=$CC
 
20667
 
 
20668
 
 
20669
# Allow CC to be a program name with arguments.
 
20670
lt_save_CC="$CC"
 
20671
CC=${RC-"windres"}
 
20672
compiler=$CC
 
20673
compiler_RC=$CC
 
20674
lt_cv_prog_compiler_c_o_RC=yes
 
20675
 
 
20676
# The else clause should only fire when bootstrapping the
 
20677
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
20678
# with your package, and you will get complaints that there are
 
20679
# no rules to generate ltmain.sh.
 
20680
if test -f "$ltmain"; then
 
20681
  # See if we are running on zsh, and set the options which allow our commands through
 
20682
  # without removal of \ escapes.
 
20683
  if test -n "${ZSH_VERSION+set}" ; then
 
20684
    setopt NO_GLOB_SUBST
 
20685
  fi
 
20686
  # Now quote all the things that may contain metacharacters while being
 
20687
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
20688
  # variables and quote the copies for generation of the libtool script.
 
20689
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
20690
    SED SHELL STRIP \
 
20691
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
20692
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
20693
    deplibs_check_method reload_flag reload_cmds need_locks \
 
20694
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
20695
    lt_cv_sys_global_symbol_to_c_name_address \
 
20696
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
20697
    old_postinstall_cmds old_postuninstall_cmds \
 
20698
    compiler_RC \
 
20699
    CC_RC \
 
20700
    LD_RC \
 
20701
    lt_prog_compiler_wl_RC \
 
20702
    lt_prog_compiler_pic_RC \
 
20703
    lt_prog_compiler_static_RC \
 
20704
    lt_prog_compiler_no_builtin_flag_RC \
 
20705
    export_dynamic_flag_spec_RC \
 
20706
    thread_safe_flag_spec_RC \
 
20707
    whole_archive_flag_spec_RC \
 
20708
    enable_shared_with_static_runtimes_RC \
 
20709
    old_archive_cmds_RC \
 
20710
    old_archive_from_new_cmds_RC \
 
20711
    predep_objects_RC \
 
20712
    postdep_objects_RC \
 
20713
    predeps_RC \
 
20714
    postdeps_RC \
 
20715
    compiler_lib_search_path_RC \
 
20716
    archive_cmds_RC \
 
20717
    archive_expsym_cmds_RC \
 
20718
    postinstall_cmds_RC \
 
20719
    postuninstall_cmds_RC \
 
20720
    old_archive_from_expsyms_cmds_RC \
 
20721
    allow_undefined_flag_RC \
 
20722
    no_undefined_flag_RC \
 
20723
    export_symbols_cmds_RC \
 
20724
    hardcode_libdir_flag_spec_RC \
 
20725
    hardcode_libdir_flag_spec_ld_RC \
 
20726
    hardcode_libdir_separator_RC \
 
20727
    hardcode_automatic_RC \
 
20728
    module_cmds_RC \
 
20729
    module_expsym_cmds_RC \
 
20730
    lt_cv_prog_compiler_c_o_RC \
 
20731
    exclude_expsyms_RC \
 
20732
    include_expsyms_RC; do
 
20733
 
 
20734
    case $var in
 
20735
    old_archive_cmds_RC | \
 
20736
    old_archive_from_new_cmds_RC | \
 
20737
    archive_cmds_RC | \
 
20738
    archive_expsym_cmds_RC | \
 
20739
    module_cmds_RC | \
 
20740
    module_expsym_cmds_RC | \
 
20741
    old_archive_from_expsyms_cmds_RC | \
 
20742
    export_symbols_cmds_RC | \
 
20743
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
20744
    postinstall_cmds | postuninstall_cmds | \
 
20745
    old_postinstall_cmds | old_postuninstall_cmds | \
 
20746
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
20747
      # Double-quote double-evaled strings.
 
20748
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
20749
      ;;
 
20750
    *)
 
20751
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
20752
      ;;
 
20753
    esac
 
20754
  done
 
20755
 
 
20756
  case $lt_echo in
 
20757
  *'\$0 --fallback-echo"')
 
20758
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
20759
    ;;
 
20760
  esac
 
20761
 
 
20762
cfgfile="$ofile"
 
20763
 
 
20764
  cat <<__EOF__ >> "$cfgfile"
 
20765
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
20766
 
 
20767
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
20768
 
 
20769
# Shell to use when invoking shell scripts.
 
20770
SHELL=$lt_SHELL
 
20771
 
 
20772
# Whether or not to build shared libraries.
 
20773
build_libtool_libs=$enable_shared
 
20774
 
 
20775
# Whether or not to build static libraries.
 
20776
build_old_libs=$enable_static
 
20777
 
 
20778
# Whether or not to add -lc for building shared libraries.
 
20779
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
20780
 
 
20781
# Whether or not to disallow shared libs when runtime libs are static
 
20782
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
20783
 
 
20784
# Whether or not to optimize for fast installation.
 
20785
fast_install=$enable_fast_install
 
20786
 
 
20787
# The host system.
 
20788
host_alias=$host_alias
 
20789
host=$host
 
20790
 
 
20791
# An echo program that does not interpret backslashes.
 
20792
echo=$lt_echo
 
20793
 
 
20794
# The archiver.
 
20795
AR=$lt_AR
 
20796
AR_FLAGS=$lt_AR_FLAGS
 
20797
 
 
20798
# A C compiler.
 
20799
LTCC=$lt_LTCC
 
20800
 
 
20801
# A language-specific compiler.
 
20802
CC=$lt_compiler_RC
 
20803
 
 
20804
# Is the compiler the GNU C compiler?
 
20805
with_gcc=$GCC_RC
 
20806
 
 
20807
# An ERE matcher.
 
20808
EGREP=$lt_EGREP
 
20809
 
 
20810
# The linker used to build libraries.
 
20811
LD=$lt_LD_RC
 
20812
 
 
20813
# Whether we need hard or soft links.
 
20814
LN_S=$lt_LN_S
 
20815
 
 
20816
# A BSD-compatible nm program.
 
20817
NM=$lt_NM
 
20818
 
 
20819
# A symbol stripping program
 
20820
STRIP=$lt_STRIP
 
20821
 
 
20822
# Used to examine libraries when file_magic_cmd begins "file"
 
20823
MAGIC_CMD=$MAGIC_CMD
 
20824
 
 
20825
# Used on cygwin: DLL creation program.
 
20826
DLLTOOL="$DLLTOOL"
 
20827
 
 
20828
# Used on cygwin: object dumper.
 
20829
OBJDUMP="$OBJDUMP"
 
20830
 
 
20831
# Used on cygwin: assembler.
 
20832
AS="$AS"
 
20833
 
 
20834
# The name of the directory that contains temporary libtool files.
 
20835
objdir=$objdir
 
20836
 
 
20837
# How to create reloadable object files.
 
20838
reload_flag=$lt_reload_flag
 
20839
reload_cmds=$lt_reload_cmds
 
20840
 
 
20841
# How to pass a linker flag through the compiler.
 
20842
wl=$lt_lt_prog_compiler_wl_RC
 
20843
 
 
20844
# Object file suffix (normally "o").
 
20845
objext="$ac_objext"
 
20846
 
 
20847
# Old archive suffix (normally "a").
 
20848
libext="$libext"
 
20849
 
 
20850
# Shared library suffix (normally ".so").
 
20851
shrext_cmds='$shrext_cmds'
 
20852
 
 
20853
# Executable file suffix (normally "").
 
20854
exeext="$exeext"
 
20855
 
 
20856
# Additional compiler flags for building library objects.
 
20857
pic_flag=$lt_lt_prog_compiler_pic_RC
 
20858
pic_mode=$pic_mode
 
20859
 
 
20860
# What is the maximum length of a command?
 
20861
max_cmd_len=$lt_cv_sys_max_cmd_len
 
20862
 
 
20863
# Does compiler simultaneously support -c and -o options?
 
20864
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
20865
 
 
20866
# Must we lock files when doing compilation ?
 
20867
need_locks=$lt_need_locks
 
20868
 
 
20869
# Do we need the lib prefix for modules?
 
20870
need_lib_prefix=$need_lib_prefix
 
20871
 
 
20872
# Do we need a version for libraries?
 
20873
need_version=$need_version
 
20874
 
 
20875
# Whether dlopen is supported.
 
20876
dlopen_support=$enable_dlopen
 
20877
 
 
20878
# Whether dlopen of programs is supported.
 
20879
dlopen_self=$enable_dlopen_self
 
20880
 
 
20881
# Whether dlopen of statically linked programs is supported.
 
20882
dlopen_self_static=$enable_dlopen_self_static
 
20883
 
 
20884
# Compiler flag to prevent dynamic linking.
 
20885
link_static_flag=$lt_lt_prog_compiler_static_RC
 
20886
 
 
20887
# Compiler flag to turn off builtin functions.
 
20888
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
20889
 
 
20890
# Compiler flag to allow reflexive dlopens.
 
20891
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
20892
 
 
20893
# Compiler flag to generate shared objects directly from archives.
 
20894
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
20895
 
 
20896
# Compiler flag to generate thread-safe objects.
 
20897
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
20898
 
 
20899
# Library versioning type.
 
20900
version_type=$version_type
 
20901
 
 
20902
# Format of library name prefix.
 
20903
libname_spec=$lt_libname_spec
 
20904
 
 
20905
# List of archive names.  First name is the real one, the rest are links.
 
20906
# The last name is the one that the linker finds with -lNAME.
 
20907
library_names_spec=$lt_library_names_spec
 
20908
 
 
20909
# The coded name of the library, if different from the real name.
 
20910
soname_spec=$lt_soname_spec
 
20911
 
 
20912
# Commands used to build and install an old-style archive.
 
20913
RANLIB=$lt_RANLIB
 
20914
old_archive_cmds=$lt_old_archive_cmds_RC
 
20915
old_postinstall_cmds=$lt_old_postinstall_cmds
 
20916
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
20917
 
 
20918
# Create an old-style archive from a shared archive.
 
20919
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
20920
 
 
20921
# Create a temporary old-style archive to link instead of a shared archive.
 
20922
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
20923
 
 
20924
# Commands used to build and install a shared archive.
 
20925
archive_cmds=$lt_archive_cmds_RC
 
20926
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
20927
postinstall_cmds=$lt_postinstall_cmds
 
20928
postuninstall_cmds=$lt_postuninstall_cmds
 
20929
 
 
20930
# Commands used to build a loadable module (assumed same as above if empty)
 
20931
module_cmds=$lt_module_cmds_RC
 
20932
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
20933
 
 
20934
# Commands to strip libraries.
 
20935
old_striplib=$lt_old_striplib
 
20936
striplib=$lt_striplib
 
20937
 
 
20938
# Dependencies to place before the objects being linked to create a
 
20939
# shared library.
 
20940
predep_objects=$lt_predep_objects_RC
 
20941
 
 
20942
# Dependencies to place after the objects being linked to create a
 
20943
# shared library.
 
20944
postdep_objects=$lt_postdep_objects_RC
 
20945
 
 
20946
# Dependencies to place before the objects being linked to create a
 
20947
# shared library.
 
20948
predeps=$lt_predeps_RC
 
20949
 
 
20950
# Dependencies to place after the objects being linked to create a
 
20951
# shared library.
 
20952
postdeps=$lt_postdeps_RC
 
20953
 
 
20954
# The library search path used internally by the compiler when linking
 
20955
# a shared library.
 
20956
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
20957
 
 
20958
# Method to check whether dependent libraries are shared objects.
 
20959
deplibs_check_method=$lt_deplibs_check_method
 
20960
 
 
20961
# Command to use when deplibs_check_method == file_magic.
 
20962
file_magic_cmd=$lt_file_magic_cmd
 
20963
 
 
20964
# Flag that allows shared libraries with undefined symbols to be built.
 
20965
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
20966
 
 
20967
# Flag that forces no undefined symbols.
 
20968
no_undefined_flag=$lt_no_undefined_flag_RC
 
20969
 
 
20970
# Commands used to finish a libtool library installation in a directory.
 
20971
finish_cmds=$lt_finish_cmds
 
20972
 
 
20973
# Same as above, but a single script fragment to be evaled but not shown.
 
20974
finish_eval=$lt_finish_eval
 
20975
 
 
20976
# Take the output of nm and produce a listing of raw symbols and C names.
 
20977
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
20978
 
 
20979
# Transform the output of nm in a proper C declaration
 
20980
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
20981
 
 
20982
# Transform the output of nm in a C name address pair
 
20983
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
20984
 
 
20985
# This is the shared library runtime path variable.
 
20986
runpath_var=$runpath_var
 
20987
 
 
20988
# This is the shared library path variable.
 
20989
shlibpath_var=$shlibpath_var
 
20990
 
 
20991
# Is shlibpath searched before the hard-coded library search path?
 
20992
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
20993
 
 
20994
# How to hardcode a shared library path into an executable.
 
20995
hardcode_action=$hardcode_action_RC
 
20996
 
 
20997
# Whether we should hardcode library paths into libraries.
 
20998
hardcode_into_libs=$hardcode_into_libs
 
20999
 
 
21000
# Flag to hardcode \$libdir into a binary during linking.
 
21001
# This must work even if \$libdir does not exist.
 
21002
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
21003
 
 
21004
# If ld is used when linking, flag to hardcode \$libdir into
 
21005
# a binary during linking. This must work even if \$libdir does
 
21006
# not exist.
 
21007
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
21008
 
 
21009
# Whether we need a single -rpath flag with a separated argument.
 
21010
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
21011
 
 
21012
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
21013
# resulting binary.
 
21014
hardcode_direct=$hardcode_direct_RC
 
21015
 
 
21016
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
21017
# resulting binary.
 
21018
hardcode_minus_L=$hardcode_minus_L_RC
 
21019
 
 
21020
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
21021
# the resulting binary.
 
21022
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
21023
 
 
21024
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
21025
# and all subsequent libraries and executables linked against it.
 
21026
hardcode_automatic=$hardcode_automatic_RC
 
21027
 
 
21028
# Variables whose values should be saved in libtool wrapper scripts and
 
21029
# restored at relink time.
 
21030
variables_saved_for_relink="$variables_saved_for_relink"
 
21031
 
 
21032
# Whether libtool must link a program against all its dependency libraries.
 
21033
link_all_deplibs=$link_all_deplibs_RC
 
21034
 
 
21035
# Compile-time system search path for libraries
 
21036
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
21037
 
 
21038
# Run-time system search path for libraries
 
21039
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
21040
 
 
21041
# Fix the shell variable \$srcfile for the compiler.
 
21042
fix_srcfile_path="$fix_srcfile_path_RC"
 
21043
 
 
21044
# Set to yes if exported symbols are required.
 
21045
always_export_symbols=$always_export_symbols_RC
 
21046
 
 
21047
# The commands to list exported symbols.
 
21048
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
21049
 
 
21050
# The commands to extract the exported symbol list from a shared archive.
 
21051
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
21052
 
 
21053
# Symbols that should not be listed in the preloaded symbols.
 
21054
exclude_expsyms=$lt_exclude_expsyms_RC
 
21055
 
 
21056
# Symbols that must always be exported.
 
21057
include_expsyms=$lt_include_expsyms_RC
 
21058
 
 
21059
# ### END LIBTOOL TAG CONFIG: $tagname
 
21060
 
 
21061
__EOF__
 
21062
 
 
21063
 
 
21064
else
 
21065
  # If there is no Makefile yet, we rely on a make rule to execute
 
21066
  # `config.status --recheck' to rerun these tests and create the
 
21067
  # libtool script then.
 
21068
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
21069
  if test -f "$ltmain_in"; then
 
21070
    test -f Makefile && make "$ltmain"
 
21071
  fi
 
21072
fi
 
21073
 
 
21074
 
 
21075
ac_ext=c
 
21076
ac_cpp='$CPP $CPPFLAGS'
 
21077
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
21078
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
21079
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
21080
 
 
21081
CC="$lt_save_CC"
 
21082
 
 
21083
        ;;
 
21084
 
 
21085
      *)
 
21086
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
21087
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
21088
   { (exit 1); exit 1; }; }
 
21089
        ;;
 
21090
      esac
 
21091
 
 
21092
      # Append the new tag name to the list of available tags.
 
21093
      if test -n "$tagname" ; then
 
21094
      available_tags="$available_tags $tagname"
 
21095
    fi
 
21096
    fi
 
21097
  done
 
21098
  IFS="$lt_save_ifs"
 
21099
 
 
21100
  # Now substitute the updated list of available tags.
 
21101
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
21102
    mv "${ofile}T" "$ofile"
 
21103
    chmod +x "$ofile"
 
21104
  else
 
21105
    rm -f "${ofile}T"
 
21106
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
21107
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
21108
   { (exit 1); exit 1; }; }
 
21109
  fi
 
21110
fi
 
21111
 
 
21112
 
7015
21113
 
7016
21114
# This can be used to rebuild libtool when needed
7017
21115
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7021
21119
 
7022
21120
# Prevent multiple expansion
7023
21121
 
 
21122
 
 
21123
 
 
21124
 
 
21125
 
 
21126
 
 
21127
 
 
21128
 
 
21129
 
 
21130
 
 
21131
 
 
21132
 
 
21133
 
 
21134
 
 
21135
 
 
21136
 
 
21137
 
 
21138
 
 
21139
 
 
21140
 
7024
21141
for ac_prog in 'bison -y' byacc
7025
21142
do
7026
21143
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7027
21144
set dummy $ac_prog; ac_word=$2
7028
 
echo "$as_me:7028: checking for $ac_word" >&5
 
21145
echo "$as_me:$LINENO: checking for $ac_word" >&5
7029
21146
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7030
21147
if test "${ac_cv_prog_YACC+set}" = set; then
7031
21148
  echo $ECHO_N "(cached) $ECHO_C" >&6
7033
21150
  if test -n "$YACC"; then
7034
21151
  ac_cv_prog_YACC="$YACC" # Let the user override the test.
7035
21152
else
7036
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7037
 
ac_dummy="$PATH"
7038
 
for ac_dir in $ac_dummy; do
7039
 
  IFS=$ac_save_IFS
7040
 
  test -z "$ac_dir" && ac_dir=.
7041
 
  $as_executable_p "$ac_dir/$ac_word" || continue
7042
 
ac_cv_prog_YACC="$ac_prog"
7043
 
echo "$as_me:7043: found $ac_dir/$ac_word" >&5
7044
 
break
 
21153
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21154
for as_dir in $PATH
 
21155
do
 
21156
  IFS=$as_save_IFS
 
21157
  test -z "$as_dir" && as_dir=.
 
21158
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21159
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21160
    ac_cv_prog_YACC="$ac_prog"
 
21161
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21162
    break 2
 
21163
  fi
 
21164
done
7045
21165
done
7046
21166
 
7047
21167
fi
7048
21168
fi
7049
21169
YACC=$ac_cv_prog_YACC
7050
21170
if test -n "$YACC"; then
7051
 
  echo "$as_me:7051: result: $YACC" >&5
 
21171
  echo "$as_me:$LINENO: result: $YACC" >&5
7052
21172
echo "${ECHO_T}$YACC" >&6
7053
21173
else
7054
 
  echo "$as_me:7054: result: no" >&5
 
21174
  echo "$as_me:$LINENO: result: no" >&5
7055
21175
echo "${ECHO_T}no" >&6
7056
21176
fi
7057
21177
 
7063
21183
do
7064
21184
  # Extract the first word of "$ac_prog", so it can be a program name with args.
7065
21185
set dummy $ac_prog; ac_word=$2
7066
 
echo "$as_me:7066: checking for $ac_word" >&5
 
21186
echo "$as_me:$LINENO: checking for $ac_word" >&5
7067
21187
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7068
21188
if test "${ac_cv_path_PATH_TO_XRDB+set}" = set; then
7069
21189
  echo $ECHO_N "(cached) $ECHO_C" >&6
7073
21193
  ac_cv_path_PATH_TO_XRDB="$PATH_TO_XRDB" # Let the user override the test with a path.
7074
21194
  ;;
7075
21195
  *)
7076
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7077
 
ac_dummy="$PATH"
7078
 
for ac_dir in $ac_dummy; do
7079
 
  IFS=$ac_save_IFS
7080
 
  test -z "$ac_dir" && ac_dir=.
7081
 
  if $as_executable_p "$ac_dir/$ac_word"; then
7082
 
   ac_cv_path_PATH_TO_XRDB="$ac_dir/$ac_word"
7083
 
   echo "$as_me:7083: found $ac_dir/$ac_word" >&5
7084
 
   break
7085
 
fi
 
21196
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21197
for as_dir in $PATH
 
21198
do
 
21199
  IFS=$as_save_IFS
 
21200
  test -z "$as_dir" && as_dir=.
 
21201
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21202
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21203
    ac_cv_path_PATH_TO_XRDB="$as_dir/$ac_word$ac_exec_ext"
 
21204
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21205
    break 2
 
21206
  fi
 
21207
done
7086
21208
done
7087
21209
 
7088
21210
  ;;
7091
21213
PATH_TO_XRDB=$ac_cv_path_PATH_TO_XRDB
7092
21214
 
7093
21215
if test -n "$PATH_TO_XRDB"; then
7094
 
  echo "$as_me:7094: result: $PATH_TO_XRDB" >&5
 
21216
  echo "$as_me:$LINENO: result: $PATH_TO_XRDB" >&5
7095
21217
echo "${ECHO_T}$PATH_TO_XRDB" >&6
7096
21218
else
7097
 
  echo "$as_me:7097: result: no" >&5
 
21219
  echo "$as_me:$LINENO: result: no" >&5
7098
21220
echo "${ECHO_T}no" >&6
7099
21221
fi
7100
21222
 
7101
21223
  test -n "$PATH_TO_XRDB" && break
7102
21224
done
7103
21225
 
 
21226
 
 
21227
for ac_func in bind_textdomain_codeset
 
21228
do
 
21229
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21230
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21231
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21232
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21233
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21234
else
 
21235
  cat >conftest.$ac_ext <<_ACEOF
 
21236
/* confdefs.h.  */
 
21237
_ACEOF
 
21238
cat confdefs.h >>conftest.$ac_ext
 
21239
cat >>conftest.$ac_ext <<_ACEOF
 
21240
/* end confdefs.h.  */
 
21241
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21242
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21243
#define $ac_func innocuous_$ac_func
 
21244
 
 
21245
/* System header to define __stub macros and hopefully few prototypes,
 
21246
    which can conflict with char $ac_func (); below.
 
21247
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21248
    <limits.h> exists even on freestanding compilers.  */
 
21249
 
 
21250
#ifdef __STDC__
 
21251
# include <limits.h>
 
21252
#else
 
21253
# include <assert.h>
 
21254
#endif
 
21255
 
 
21256
#undef $ac_func
 
21257
 
 
21258
/* Override any gcc2 internal prototype to avoid an error.  */
 
21259
#ifdef __cplusplus
 
21260
extern "C"
 
21261
{
 
21262
#endif
 
21263
/* We use char because int might match the return type of a gcc2
 
21264
   builtin and then its argument prototype would still apply.  */
 
21265
char $ac_func ();
 
21266
/* The GNU C library defines this for functions which it implements
 
21267
    to always fail with ENOSYS.  Some functions are actually named
 
21268
    something starting with __ and the normal name is an alias.  */
 
21269
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21270
choke me
 
21271
#else
 
21272
char (*f) () = $ac_func;
 
21273
#endif
 
21274
#ifdef __cplusplus
 
21275
}
 
21276
#endif
 
21277
 
 
21278
int
 
21279
main ()
 
21280
{
 
21281
return f != $ac_func;
 
21282
  ;
 
21283
  return 0;
 
21284
}
 
21285
_ACEOF
 
21286
rm -f conftest.$ac_objext conftest$ac_exeext
 
21287
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21288
  (eval $ac_link) 2>conftest.er1
 
21289
  ac_status=$?
 
21290
  grep -v '^ *+' conftest.er1 >conftest.err
 
21291
  rm -f conftest.er1
 
21292
  cat conftest.err >&5
 
21293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21294
  (exit $ac_status); } &&
 
21295
         { ac_try='test -z "$ac_c_werror_flag"
 
21296
                         || test ! -s conftest.err'
 
21297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21298
  (eval $ac_try) 2>&5
 
21299
  ac_status=$?
 
21300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21301
  (exit $ac_status); }; } &&
 
21302
         { ac_try='test -s conftest$ac_exeext'
 
21303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21304
  (eval $ac_try) 2>&5
 
21305
  ac_status=$?
 
21306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21307
  (exit $ac_status); }; }; then
 
21308
  eval "$as_ac_var=yes"
 
21309
else
 
21310
  echo "$as_me: failed program was:" >&5
 
21311
sed 's/^/| /' conftest.$ac_ext >&5
 
21312
 
 
21313
eval "$as_ac_var=no"
 
21314
fi
 
21315
rm -f conftest.err conftest.$ac_objext \
 
21316
      conftest$ac_exeext conftest.$ac_ext
 
21317
fi
 
21318
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21319
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21320
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21321
  cat >>confdefs.h <<_ACEOF
 
21322
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21323
_ACEOF
 
21324
 
 
21325
fi
 
21326
done
 
21327
 
 
21328
 
7104
21329
GETTEXT_PACKAGE=libbonobo-2.0
7105
21330
 
7106
 
cat >>confdefs.h <<EOF
 
21331
 
 
21332
cat >>confdefs.h <<_ACEOF
7107
21333
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
7108
 
EOF
7109
 
 
7110
 
ALL_LINGUAS="az bg ca es fi fr gl hu it ja ko ms nn no pl pt ru sk sl sv ta tr uk zh_CN zh_TW"
7111
 
if test -n "$ac_tool_prefix"; then
7112
 
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7113
 
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7114
 
echo "$as_me:7114: checking for $ac_word" >&5
7115
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7116
 
if test "${ac_cv_prog_RANLIB+set}" = set; then
7117
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7118
 
else
7119
 
  if test -n "$RANLIB"; then
7120
 
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7121
 
else
7122
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7123
 
ac_dummy="$PATH"
7124
 
for ac_dir in $ac_dummy; do
7125
 
  IFS=$ac_save_IFS
7126
 
  test -z "$ac_dir" && ac_dir=.
7127
 
  $as_executable_p "$ac_dir/$ac_word" || continue
7128
 
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7129
 
echo "$as_me:7129: found $ac_dir/$ac_word" >&5
7130
 
break
7131
 
done
7132
 
 
7133
 
fi
7134
 
fi
7135
 
RANLIB=$ac_cv_prog_RANLIB
7136
 
if test -n "$RANLIB"; then
7137
 
  echo "$as_me:7137: result: $RANLIB" >&5
7138
 
echo "${ECHO_T}$RANLIB" >&6
7139
 
else
7140
 
  echo "$as_me:7140: result: no" >&5
7141
 
echo "${ECHO_T}no" >&6
7142
 
fi
7143
 
 
7144
 
fi
7145
 
if test -z "$ac_cv_prog_RANLIB"; then
7146
 
  ac_ct_RANLIB=$RANLIB
7147
 
  # Extract the first word of "ranlib", so it can be a program name with args.
7148
 
set dummy ranlib; ac_word=$2
7149
 
echo "$as_me:7149: checking for $ac_word" >&5
7150
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7151
 
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7152
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7153
 
else
7154
 
  if test -n "$ac_ct_RANLIB"; then
7155
 
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7156
 
else
7157
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
7158
 
ac_dummy="$PATH"
7159
 
for ac_dir in $ac_dummy; do
7160
 
  IFS=$ac_save_IFS
7161
 
  test -z "$ac_dir" && ac_dir=.
7162
 
  $as_executable_p "$ac_dir/$ac_word" || continue
7163
 
ac_cv_prog_ac_ct_RANLIB="ranlib"
7164
 
echo "$as_me:7164: found $ac_dir/$ac_word" >&5
7165
 
break
7166
 
done
7167
 
 
7168
 
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7169
 
fi
7170
 
fi
7171
 
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7172
 
if test -n "$ac_ct_RANLIB"; then
7173
 
  echo "$as_me:7173: result: $ac_ct_RANLIB" >&5
7174
 
echo "${ECHO_T}$ac_ct_RANLIB" >&6
7175
 
else
7176
 
  echo "$as_me:7176: result: no" >&5
7177
 
echo "${ECHO_T}no" >&6
7178
 
fi
7179
 
 
7180
 
  RANLIB=$ac_ct_RANLIB
7181
 
else
7182
 
  RANLIB="$ac_cv_prog_RANLIB"
7183
 
fi
7184
 
 
7185
 
echo "$as_me:7185: checking for $CC option to accept ANSI C" >&5
7186
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7187
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
7188
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7189
 
else
7190
 
  ac_cv_prog_cc_stdc=no
7191
 
ac_save_CC=$CC
7192
 
cat >conftest.$ac_ext <<_ACEOF
7193
 
#line 7193 "configure"
7194
 
#include "confdefs.h"
7195
 
#include <stdarg.h>
7196
 
#include <stdio.h>
7197
 
#include <sys/types.h>
7198
 
#include <sys/stat.h>
7199
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7200
 
struct buf { int x; };
7201
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
7202
 
static char *e (p, i)
7203
 
     char **p;
7204
 
     int i;
7205
 
{
7206
 
  return p[i];
7207
 
}
7208
 
static char *f (char * (*g) (char **, int), char **p, ...)
7209
 
{
7210
 
  char *s;
7211
 
  va_list v;
7212
 
  va_start (v,p);
7213
 
  s = g (p, va_arg (v,int));
7214
 
  va_end (v);
7215
 
  return s;
7216
 
}
7217
 
int test (int i, double x);
7218
 
struct s1 {int (*f) (int a);};
7219
 
struct s2 {int (*f) (double a);};
7220
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7221
 
int argc;
7222
 
char **argv;
7223
 
int
7224
 
main ()
7225
 
{
7226
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
7227
 
  ;
7228
 
  return 0;
7229
 
}
7230
 
_ACEOF
7231
 
# Don't try gcc -ansi; that turns off useful extensions and
7232
 
# breaks some systems' header files.
7233
 
# AIX                   -qlanglvl=ansi
7234
 
# Ultrix and OSF/1      -std1
7235
 
# HP-UX 10.20 and later -Ae
7236
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
7237
 
# SVR4                  -Xc -D__EXTENSIONS__
7238
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7239
 
do
7240
 
  CC="$ac_save_CC $ac_arg"
7241
 
  rm -f conftest.$ac_objext
7242
 
if { (eval echo "$as_me:7242: \"$ac_compile\"") >&5
7243
 
  (eval $ac_compile) 2>&5
7244
 
  ac_status=$?
7245
 
  echo "$as_me:7245: \$? = $ac_status" >&5
7246
 
  (exit $ac_status); } &&
7247
 
         { ac_try='test -s conftest.$ac_objext'
7248
 
  { (eval echo "$as_me:7248: \"$ac_try\"") >&5
7249
 
  (eval $ac_try) 2>&5
7250
 
  ac_status=$?
7251
 
  echo "$as_me:7251: \$? = $ac_status" >&5
7252
 
  (exit $ac_status); }; }; then
7253
 
  ac_cv_prog_cc_stdc=$ac_arg
7254
 
break
7255
 
else
7256
 
  echo "$as_me: failed program was:" >&5
7257
 
cat conftest.$ac_ext >&5
7258
 
fi
7259
 
rm -f conftest.$ac_objext
7260
 
done
7261
 
rm -f conftest.$ac_ext conftest.$ac_objext
7262
 
CC=$ac_save_CC
7263
 
 
7264
 
fi
7265
 
 
7266
 
case "x$ac_cv_prog_cc_stdc" in
7267
 
  x|xno)
7268
 
    echo "$as_me:7268: result: none needed" >&5
7269
 
echo "${ECHO_T}none needed" >&6 ;;
7270
 
  *)
7271
 
    echo "$as_me:7271: result: $ac_cv_prog_cc_stdc" >&5
7272
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7273
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
7274
 
esac
7275
 
 
7276
 
echo "$as_me:7276: checking for an ANSI C-conforming const" >&5
7277
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7278
 
if test "${ac_cv_c_const+set}" = set; then
7279
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7280
 
else
7281
 
  cat >conftest.$ac_ext <<_ACEOF
7282
 
#line 7282 "configure"
7283
 
#include "confdefs.h"
7284
 
 
7285
 
int
7286
 
main ()
7287
 
{
7288
 
/* FIXME: Include the comments suggested by Paul. */
7289
 
#ifndef __cplusplus
7290
 
  /* Ultrix mips cc rejects this.  */
7291
 
  typedef int charset[2];
7292
 
  const charset x;
7293
 
  /* SunOS 4.1.1 cc rejects this.  */
7294
 
  char const *const *ccp;
7295
 
  char **p;
7296
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
7297
 
  struct point {int x, y;};
7298
 
  static struct point const zero = {0,0};
7299
 
  /* AIX XL C 1.02.0.0 rejects this.
7300
 
     It does not let you subtract one const X* pointer from another in
7301
 
     an arm of an if-expression whose if-part is not a constant
7302
 
     expression */
7303
 
  const char *g = "string";
7304
 
  ccp = &g + (g ? g-g : 0);
7305
 
  /* HPUX 7.0 cc rejects these. */
7306
 
  ++ccp;
7307
 
  p = (char**) ccp;
7308
 
  ccp = (char const *const *) p;
7309
 
  { /* SCO 3.2v4 cc rejects this.  */
7310
 
    char *t;
7311
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
7312
 
 
7313
 
    *t++ = 0;
7314
 
  }
7315
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
7316
 
    int x[] = {25, 17};
7317
 
    const int *foo = &x[0];
7318
 
    ++foo;
7319
 
  }
7320
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7321
 
    typedef const int *iptr;
7322
 
    iptr p = 0;
7323
 
    ++p;
7324
 
  }
7325
 
  { /* AIX XL C 1.02.0.0 rejects this saying
7326
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7327
 
    struct s { int j; const int *ap[3]; };
7328
 
    struct s *b; b->j = 5;
7329
 
  }
7330
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7331
 
    const int foo = 10;
7332
 
  }
7333
 
#endif
7334
 
 
7335
 
  ;
7336
 
  return 0;
7337
 
}
7338
 
_ACEOF
7339
 
rm -f conftest.$ac_objext
7340
 
if { (eval echo "$as_me:7340: \"$ac_compile\"") >&5
7341
 
  (eval $ac_compile) 2>&5
7342
 
  ac_status=$?
7343
 
  echo "$as_me:7343: \$? = $ac_status" >&5
7344
 
  (exit $ac_status); } &&
7345
 
         { ac_try='test -s conftest.$ac_objext'
7346
 
  { (eval echo "$as_me:7346: \"$ac_try\"") >&5
7347
 
  (eval $ac_try) 2>&5
7348
 
  ac_status=$?
7349
 
  echo "$as_me:7349: \$? = $ac_status" >&5
7350
 
  (exit $ac_status); }; }; then
7351
 
  ac_cv_c_const=yes
7352
 
else
7353
 
  echo "$as_me: failed program was:" >&5
7354
 
cat conftest.$ac_ext >&5
7355
 
ac_cv_c_const=no
7356
 
fi
7357
 
rm -f conftest.$ac_objext conftest.$ac_ext
7358
 
fi
7359
 
echo "$as_me:7359: result: $ac_cv_c_const" >&5
7360
 
echo "${ECHO_T}$ac_cv_c_const" >&6
7361
 
if test $ac_cv_c_const = no; then
7362
 
 
7363
 
cat >>confdefs.h <<\EOF
7364
 
#define const
7365
 
EOF
7366
 
 
7367
 
fi
7368
 
 
7369
 
echo "$as_me:7369: checking for inline" >&5
7370
 
echo $ECHO_N "checking for inline... $ECHO_C" >&6
7371
 
if test "${ac_cv_c_inline+set}" = set; then
7372
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7373
 
else
7374
 
  ac_cv_c_inline=no
7375
 
for ac_kw in inline __inline__ __inline; do
7376
 
  cat >conftest.$ac_ext <<_ACEOF
7377
 
#line 7377 "configure"
7378
 
#include "confdefs.h"
7379
 
#ifndef __cplusplus
7380
 
static $ac_kw int static_foo () {return 0; }
7381
 
$ac_kw int foo () {return 0; }
7382
 
#endif
7383
 
 
7384
 
_ACEOF
7385
 
rm -f conftest.$ac_objext
7386
 
if { (eval echo "$as_me:7386: \"$ac_compile\"") >&5
7387
 
  (eval $ac_compile) 2>&5
7388
 
  ac_status=$?
7389
 
  echo "$as_me:7389: \$? = $ac_status" >&5
7390
 
  (exit $ac_status); } &&
7391
 
         { ac_try='test -s conftest.$ac_objext'
7392
 
  { (eval echo "$as_me:7392: \"$ac_try\"") >&5
7393
 
  (eval $ac_try) 2>&5
7394
 
  ac_status=$?
7395
 
  echo "$as_me:7395: \$? = $ac_status" >&5
7396
 
  (exit $ac_status); }; }; then
7397
 
  ac_cv_c_inline=$ac_kw; break
7398
 
else
7399
 
  echo "$as_me: failed program was:" >&5
7400
 
cat conftest.$ac_ext >&5
7401
 
fi
7402
 
rm -f conftest.$ac_objext conftest.$ac_ext
7403
 
done
7404
 
 
7405
 
fi
7406
 
echo "$as_me:7406: result: $ac_cv_c_inline" >&5
7407
 
echo "${ECHO_T}$ac_cv_c_inline" >&6
7408
 
case $ac_cv_c_inline in
7409
 
  inline | yes) ;;
7410
 
  no)
7411
 
cat >>confdefs.h <<\EOF
7412
 
#define inline
7413
 
EOF
7414
 
 ;;
7415
 
  *)  cat >>confdefs.h <<EOF
7416
 
#define inline $ac_cv_c_inline
7417
 
EOF
7418
 
 ;;
7419
 
esac
7420
 
 
7421
 
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7422
 
 
7423
 
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7424
 
                  inttypes.h stdint.h unistd.h
7425
 
do
7426
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7427
 
echo "$as_me:7427: checking for $ac_header" >&5
7428
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7429
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7430
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7431
 
else
7432
 
  cat >conftest.$ac_ext <<_ACEOF
7433
 
#line 7433 "configure"
7434
 
#include "confdefs.h"
7435
 
$ac_includes_default
7436
 
#include <$ac_header>
7437
 
_ACEOF
7438
 
rm -f conftest.$ac_objext
7439
 
if { (eval echo "$as_me:7439: \"$ac_compile\"") >&5
7440
 
  (eval $ac_compile) 2>&5
7441
 
  ac_status=$?
7442
 
  echo "$as_me:7442: \$? = $ac_status" >&5
7443
 
  (exit $ac_status); } &&
7444
 
         { ac_try='test -s conftest.$ac_objext'
7445
 
  { (eval echo "$as_me:7445: \"$ac_try\"") >&5
7446
 
  (eval $ac_try) 2>&5
7447
 
  ac_status=$?
7448
 
  echo "$as_me:7448: \$? = $ac_status" >&5
7449
 
  (exit $ac_status); }; }; then
7450
 
  eval "$as_ac_Header=yes"
7451
 
else
7452
 
  echo "$as_me: failed program was:" >&5
7453
 
cat conftest.$ac_ext >&5
7454
 
eval "$as_ac_Header=no"
7455
 
fi
7456
 
rm -f conftest.$ac_objext conftest.$ac_ext
7457
 
fi
7458
 
echo "$as_me:7458: result: `eval echo '${'$as_ac_Header'}'`" >&5
7459
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7460
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7461
 
  cat >>confdefs.h <<EOF
7462
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7463
 
EOF
7464
 
 
7465
 
fi
7466
 
done
7467
 
 
7468
 
echo "$as_me:7468: checking for off_t" >&5
7469
 
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
7470
 
if test "${ac_cv_type_off_t+set}" = set; then
7471
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7472
 
else
7473
 
  cat >conftest.$ac_ext <<_ACEOF
7474
 
#line 7474 "configure"
7475
 
#include "confdefs.h"
7476
 
$ac_includes_default
7477
 
int
7478
 
main ()
7479
 
{
7480
 
if ((off_t *) 0)
7481
 
  return 0;
7482
 
if (sizeof (off_t))
7483
 
  return 0;
7484
 
  ;
7485
 
  return 0;
7486
 
}
7487
 
_ACEOF
7488
 
rm -f conftest.$ac_objext
7489
 
if { (eval echo "$as_me:7489: \"$ac_compile\"") >&5
7490
 
  (eval $ac_compile) 2>&5
7491
 
  ac_status=$?
7492
 
  echo "$as_me:7492: \$? = $ac_status" >&5
7493
 
  (exit $ac_status); } &&
7494
 
         { ac_try='test -s conftest.$ac_objext'
7495
 
  { (eval echo "$as_me:7495: \"$ac_try\"") >&5
7496
 
  (eval $ac_try) 2>&5
7497
 
  ac_status=$?
7498
 
  echo "$as_me:7498: \$? = $ac_status" >&5
7499
 
  (exit $ac_status); }; }; then
7500
 
  ac_cv_type_off_t=yes
7501
 
else
7502
 
  echo "$as_me: failed program was:" >&5
7503
 
cat conftest.$ac_ext >&5
7504
 
ac_cv_type_off_t=no
7505
 
fi
7506
 
rm -f conftest.$ac_objext conftest.$ac_ext
7507
 
fi
7508
 
echo "$as_me:7508: result: $ac_cv_type_off_t" >&5
7509
 
echo "${ECHO_T}$ac_cv_type_off_t" >&6
7510
 
if test $ac_cv_type_off_t = yes; then
7511
 
  :
7512
 
else
7513
 
 
7514
 
cat >>confdefs.h <<EOF
7515
 
#define off_t long
7516
 
EOF
7517
 
 
7518
 
fi
7519
 
 
7520
 
echo "$as_me:7520: checking for size_t" >&5
7521
 
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
7522
 
if test "${ac_cv_type_size_t+set}" = set; then
7523
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7524
 
else
7525
 
  cat >conftest.$ac_ext <<_ACEOF
7526
 
#line 7526 "configure"
7527
 
#include "confdefs.h"
7528
 
$ac_includes_default
7529
 
int
7530
 
main ()
7531
 
{
7532
 
if ((size_t *) 0)
7533
 
  return 0;
7534
 
if (sizeof (size_t))
7535
 
  return 0;
7536
 
  ;
7537
 
  return 0;
7538
 
}
7539
 
_ACEOF
7540
 
rm -f conftest.$ac_objext
7541
 
if { (eval echo "$as_me:7541: \"$ac_compile\"") >&5
7542
 
  (eval $ac_compile) 2>&5
7543
 
  ac_status=$?
7544
 
  echo "$as_me:7544: \$? = $ac_status" >&5
7545
 
  (exit $ac_status); } &&
7546
 
         { ac_try='test -s conftest.$ac_objext'
7547
 
  { (eval echo "$as_me:7547: \"$ac_try\"") >&5
7548
 
  (eval $ac_try) 2>&5
7549
 
  ac_status=$?
7550
 
  echo "$as_me:7550: \$? = $ac_status" >&5
7551
 
  (exit $ac_status); }; }; then
7552
 
  ac_cv_type_size_t=yes
7553
 
else
7554
 
  echo "$as_me: failed program was:" >&5
7555
 
cat conftest.$ac_ext >&5
7556
 
ac_cv_type_size_t=no
7557
 
fi
7558
 
rm -f conftest.$ac_objext conftest.$ac_ext
7559
 
fi
7560
 
echo "$as_me:7560: result: $ac_cv_type_size_t" >&5
7561
 
echo "${ECHO_T}$ac_cv_type_size_t" >&6
7562
 
if test $ac_cv_type_size_t = yes; then
7563
 
  :
7564
 
else
7565
 
 
7566
 
cat >>confdefs.h <<EOF
7567
 
#define size_t unsigned
7568
 
EOF
7569
 
 
7570
 
fi
7571
 
 
7572
 
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7573
 
# for constant arguments.  Useless!
7574
 
echo "$as_me:7574: checking for working alloca.h" >&5
7575
 
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
7576
 
if test "${ac_cv_working_alloca_h+set}" = set; then
7577
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7578
 
else
7579
 
  cat >conftest.$ac_ext <<_ACEOF
7580
 
#line 7580 "configure"
7581
 
#include "confdefs.h"
7582
 
#include <alloca.h>
7583
 
int
7584
 
main ()
7585
 
{
7586
 
char *p = (char *) alloca (2 * sizeof (int));
7587
 
  ;
7588
 
  return 0;
7589
 
}
7590
 
_ACEOF
7591
 
rm -f conftest.$ac_objext conftest$ac_exeext
7592
 
if { (eval echo "$as_me:7592: \"$ac_link\"") >&5
7593
 
  (eval $ac_link) 2>&5
7594
 
  ac_status=$?
7595
 
  echo "$as_me:7595: \$? = $ac_status" >&5
7596
 
  (exit $ac_status); } &&
7597
 
         { ac_try='test -s conftest$ac_exeext'
7598
 
  { (eval echo "$as_me:7598: \"$ac_try\"") >&5
7599
 
  (eval $ac_try) 2>&5
7600
 
  ac_status=$?
7601
 
  echo "$as_me:7601: \$? = $ac_status" >&5
7602
 
  (exit $ac_status); }; }; then
7603
 
  ac_cv_working_alloca_h=yes
7604
 
else
7605
 
  echo "$as_me: failed program was:" >&5
7606
 
cat conftest.$ac_ext >&5
7607
 
ac_cv_working_alloca_h=no
7608
 
fi
7609
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7610
 
fi
7611
 
echo "$as_me:7611: result: $ac_cv_working_alloca_h" >&5
7612
 
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
7613
 
if test $ac_cv_working_alloca_h = yes; then
7614
 
 
7615
 
cat >>confdefs.h <<\EOF
7616
 
#define HAVE_ALLOCA_H 1
7617
 
EOF
7618
 
 
7619
 
fi
7620
 
 
7621
 
echo "$as_me:7621: checking for alloca" >&5
7622
 
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
7623
 
if test "${ac_cv_func_alloca_works+set}" = set; then
7624
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7625
 
else
7626
 
  cat >conftest.$ac_ext <<_ACEOF
7627
 
#line 7627 "configure"
7628
 
#include "confdefs.h"
7629
 
#ifdef __GNUC__
7630
 
# define alloca __builtin_alloca
7631
 
#else
7632
 
# ifdef _MSC_VER
7633
 
#  include <malloc.h>
7634
 
#  define alloca _alloca
7635
 
# else
7636
 
#  if HAVE_ALLOCA_H
7637
 
#   include <alloca.h>
7638
 
#  else
7639
 
#   ifdef _AIX
7640
 
 #pragma alloca
7641
 
#   else
7642
 
#    ifndef alloca /* predefined by HP cc +Olibcalls */
7643
 
char *alloca ();
7644
 
#    endif
7645
 
#   endif
7646
 
#  endif
7647
 
# endif
7648
 
#endif
7649
 
 
7650
 
int
7651
 
main ()
7652
 
{
7653
 
char *p = (char *) alloca (1);
7654
 
  ;
7655
 
  return 0;
7656
 
}
7657
 
_ACEOF
7658
 
rm -f conftest.$ac_objext conftest$ac_exeext
7659
 
if { (eval echo "$as_me:7659: \"$ac_link\"") >&5
7660
 
  (eval $ac_link) 2>&5
7661
 
  ac_status=$?
7662
 
  echo "$as_me:7662: \$? = $ac_status" >&5
7663
 
  (exit $ac_status); } &&
7664
 
         { ac_try='test -s conftest$ac_exeext'
7665
 
  { (eval echo "$as_me:7665: \"$ac_try\"") >&5
7666
 
  (eval $ac_try) 2>&5
7667
 
  ac_status=$?
7668
 
  echo "$as_me:7668: \$? = $ac_status" >&5
7669
 
  (exit $ac_status); }; }; then
7670
 
  ac_cv_func_alloca_works=yes
7671
 
else
7672
 
  echo "$as_me: failed program was:" >&5
7673
 
cat conftest.$ac_ext >&5
7674
 
ac_cv_func_alloca_works=no
7675
 
fi
7676
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7677
 
fi
7678
 
echo "$as_me:7678: result: $ac_cv_func_alloca_works" >&5
7679
 
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
7680
 
 
7681
 
if test $ac_cv_func_alloca_works = yes; then
7682
 
 
7683
 
cat >>confdefs.h <<\EOF
7684
 
#define HAVE_ALLOCA 1
7685
 
EOF
7686
 
 
7687
 
else
7688
 
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7689
 
# that cause trouble.  Some versions do not even contain alloca or
7690
 
# contain a buggy version.  If you still want to use their alloca,
7691
 
# use ar to extract alloca.o from them instead of compiling alloca.c.
7692
 
 
7693
 
ALLOCA=alloca.$ac_objext
7694
 
 
7695
 
cat >>confdefs.h <<\EOF
7696
 
#define C_ALLOCA 1
7697
 
EOF
7698
 
 
7699
 
echo "$as_me:7699: checking whether \`alloca.c' needs Cray hooks" >&5
7700
 
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
7701
 
if test "${ac_cv_os_cray+set}" = set; then
7702
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7703
 
else
7704
 
  cat >conftest.$ac_ext <<_ACEOF
7705
 
#line 7705 "configure"
7706
 
#include "confdefs.h"
7707
 
#if defined(CRAY) && ! defined(CRAY2)
7708
 
webecray
7709
 
#else
7710
 
wenotbecray
7711
 
#endif
7712
 
 
7713
 
_ACEOF
7714
 
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7715
 
  egrep "webecray" >/dev/null 2>&1; then
7716
 
  ac_cv_os_cray=yes
7717
 
else
7718
 
  ac_cv_os_cray=no
7719
 
fi
7720
 
rm -f conftest*
7721
 
 
7722
 
fi
7723
 
echo "$as_me:7723: result: $ac_cv_os_cray" >&5
7724
 
echo "${ECHO_T}$ac_cv_os_cray" >&6
7725
 
if test $ac_cv_os_cray = yes; then
7726
 
  for ac_func in _getb67 GETB67 getb67; do
7727
 
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7728
 
echo "$as_me:7728: checking for $ac_func" >&5
7729
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7730
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
7731
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7732
 
else
7733
 
  cat >conftest.$ac_ext <<_ACEOF
7734
 
#line 7734 "configure"
7735
 
#include "confdefs.h"
7736
 
/* System header to define __stub macros and hopefully few prototypes,
7737
 
    which can conflict with char $ac_func (); below.  */
7738
 
#include <assert.h>
7739
 
/* Override any gcc2 internal prototype to avoid an error.  */
7740
 
#ifdef __cplusplus
7741
 
extern "C"
7742
 
#endif
7743
 
/* We use char because int might match the return type of a gcc2
7744
 
   builtin and then its argument prototype would still apply.  */
7745
 
char $ac_func ();
7746
 
char (*f) ();
7747
 
 
7748
 
int
7749
 
main ()
7750
 
{
7751
 
/* The GNU C library defines this for functions which it implements
7752
 
    to always fail with ENOSYS.  Some functions are actually named
7753
 
    something starting with __ and the normal name is an alias.  */
7754
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7755
 
choke me
7756
 
#else
7757
 
f = $ac_func;
7758
 
#endif
7759
 
 
7760
 
  ;
7761
 
  return 0;
7762
 
}
7763
 
_ACEOF
7764
 
rm -f conftest.$ac_objext conftest$ac_exeext
7765
 
if { (eval echo "$as_me:7765: \"$ac_link\"") >&5
7766
 
  (eval $ac_link) 2>&5
7767
 
  ac_status=$?
7768
 
  echo "$as_me:7768: \$? = $ac_status" >&5
7769
 
  (exit $ac_status); } &&
7770
 
         { ac_try='test -s conftest$ac_exeext'
7771
 
  { (eval echo "$as_me:7771: \"$ac_try\"") >&5
7772
 
  (eval $ac_try) 2>&5
7773
 
  ac_status=$?
7774
 
  echo "$as_me:7774: \$? = $ac_status" >&5
7775
 
  (exit $ac_status); }; }; then
7776
 
  eval "$as_ac_var=yes"
7777
 
else
7778
 
  echo "$as_me: failed program was:" >&5
7779
 
cat conftest.$ac_ext >&5
7780
 
eval "$as_ac_var=no"
7781
 
fi
7782
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7783
 
fi
7784
 
echo "$as_me:7784: result: `eval echo '${'$as_ac_var'}'`" >&5
7785
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7786
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
7787
 
 
7788
 
cat >>confdefs.h <<EOF
7789
 
#define CRAY_STACKSEG_END $ac_func
7790
 
EOF
7791
 
 
7792
 
    break
7793
 
fi
7794
 
 
7795
 
  done
7796
 
fi
7797
 
 
7798
 
echo "$as_me:7798: checking stack direction for C alloca" >&5
7799
 
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
7800
 
if test "${ac_cv_c_stack_direction+set}" = set; then
7801
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7802
 
else
7803
 
  if test "$cross_compiling" = yes; then
7804
 
  ac_cv_c_stack_direction=0
7805
 
else
7806
 
  cat >conftest.$ac_ext <<_ACEOF
7807
 
#line 7807 "configure"
7808
 
#include "confdefs.h"
7809
 
int
7810
 
find_stack_direction ()
7811
 
{
7812
 
  static char *addr = 0;
7813
 
  auto char dummy;
7814
 
  if (addr == 0)
7815
 
    {
7816
 
      addr = &dummy;
7817
 
      return find_stack_direction ();
7818
 
    }
7819
 
  else
7820
 
    return (&dummy > addr) ? 1 : -1;
7821
 
}
7822
 
 
7823
 
int
7824
 
main ()
7825
 
{
7826
 
  exit (find_stack_direction () < 0);
7827
 
}
7828
 
_ACEOF
7829
 
rm -f conftest$ac_exeext
7830
 
if { (eval echo "$as_me:7830: \"$ac_link\"") >&5
7831
 
  (eval $ac_link) 2>&5
7832
 
  ac_status=$?
7833
 
  echo "$as_me:7833: \$? = $ac_status" >&5
7834
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7835
 
  { (eval echo "$as_me:7835: \"$ac_try\"") >&5
7836
 
  (eval $ac_try) 2>&5
7837
 
  ac_status=$?
7838
 
  echo "$as_me:7838: \$? = $ac_status" >&5
7839
 
  (exit $ac_status); }; }; then
7840
 
  ac_cv_c_stack_direction=1
7841
 
else
7842
 
  echo "$as_me: program exited with status $ac_status" >&5
7843
 
echo "$as_me: failed program was:" >&5
7844
 
cat conftest.$ac_ext >&5
7845
 
ac_cv_c_stack_direction=-1
7846
 
fi
7847
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7848
 
fi
7849
 
fi
7850
 
echo "$as_me:7850: result: $ac_cv_c_stack_direction" >&5
7851
 
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
7852
 
 
7853
 
cat >>confdefs.h <<EOF
7854
 
#define STACK_DIRECTION $ac_cv_c_stack_direction
7855
 
EOF
7856
 
 
7857
 
fi
7858
 
 
7859
 
for ac_header in stdlib.h unistd.h
7860
 
do
7861
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7862
 
echo "$as_me:7862: checking for $ac_header" >&5
7863
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7864
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
7865
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7866
 
else
7867
 
  cat >conftest.$ac_ext <<_ACEOF
7868
 
#line 7868 "configure"
7869
 
#include "confdefs.h"
7870
 
#include <$ac_header>
7871
 
_ACEOF
7872
 
if { (eval echo "$as_me:7872: \"$ac_cpp conftest.$ac_ext\"") >&5
7873
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7874
 
  ac_status=$?
7875
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
7876
 
  rm -f conftest.er1
7877
 
  cat conftest.err >&5
7878
 
  echo "$as_me:7878: \$? = $ac_status" >&5
7879
 
  (exit $ac_status); } >/dev/null; then
7880
 
  if test -s conftest.err; then
7881
 
    ac_cpp_err=$ac_c_preproc_warn_flag
7882
 
  else
7883
 
    ac_cpp_err=
7884
 
  fi
7885
 
else
7886
 
  ac_cpp_err=yes
7887
 
fi
7888
 
if test -z "$ac_cpp_err"; then
7889
 
  eval "$as_ac_Header=yes"
7890
 
else
7891
 
  echo "$as_me: failed program was:" >&5
7892
 
  cat conftest.$ac_ext >&5
7893
 
  eval "$as_ac_Header=no"
7894
 
fi
7895
 
rm -f conftest.err conftest.$ac_ext
7896
 
fi
7897
 
echo "$as_me:7897: result: `eval echo '${'$as_ac_Header'}'`" >&5
7898
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7899
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7900
 
  cat >>confdefs.h <<EOF
7901
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7902
 
EOF
7903
 
 
7904
 
fi
7905
 
done
7906
 
 
7907
 
for ac_func in getpagesize
7908
 
do
7909
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7910
 
echo "$as_me:7910: checking for $ac_func" >&5
7911
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
7912
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
7913
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7914
 
else
7915
 
  cat >conftest.$ac_ext <<_ACEOF
7916
 
#line 7916 "configure"
7917
 
#include "confdefs.h"
7918
 
/* System header to define __stub macros and hopefully few prototypes,
7919
 
    which can conflict with char $ac_func (); below.  */
7920
 
#include <assert.h>
7921
 
/* Override any gcc2 internal prototype to avoid an error.  */
7922
 
#ifdef __cplusplus
7923
 
extern "C"
7924
 
#endif
7925
 
/* We use char because int might match the return type of a gcc2
7926
 
   builtin and then its argument prototype would still apply.  */
7927
 
char $ac_func ();
7928
 
char (*f) ();
7929
 
 
7930
 
int
7931
 
main ()
7932
 
{
7933
 
/* The GNU C library defines this for functions which it implements
7934
 
    to always fail with ENOSYS.  Some functions are actually named
7935
 
    something starting with __ and the normal name is an alias.  */
7936
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
7937
 
choke me
7938
 
#else
7939
 
f = $ac_func;
7940
 
#endif
7941
 
 
7942
 
  ;
7943
 
  return 0;
7944
 
}
7945
 
_ACEOF
7946
 
rm -f conftest.$ac_objext conftest$ac_exeext
7947
 
if { (eval echo "$as_me:7947: \"$ac_link\"") >&5
7948
 
  (eval $ac_link) 2>&5
7949
 
  ac_status=$?
7950
 
  echo "$as_me:7950: \$? = $ac_status" >&5
7951
 
  (exit $ac_status); } &&
7952
 
         { ac_try='test -s conftest$ac_exeext'
7953
 
  { (eval echo "$as_me:7953: \"$ac_try\"") >&5
7954
 
  (eval $ac_try) 2>&5
7955
 
  ac_status=$?
7956
 
  echo "$as_me:7956: \$? = $ac_status" >&5
7957
 
  (exit $ac_status); }; }; then
7958
 
  eval "$as_ac_var=yes"
7959
 
else
7960
 
  echo "$as_me: failed program was:" >&5
7961
 
cat conftest.$ac_ext >&5
7962
 
eval "$as_ac_var=no"
7963
 
fi
7964
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7965
 
fi
7966
 
echo "$as_me:7966: result: `eval echo '${'$as_ac_var'}'`" >&5
7967
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
7968
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
7969
 
  cat >>confdefs.h <<EOF
7970
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7971
 
EOF
7972
 
 
7973
 
fi
7974
 
done
7975
 
 
7976
 
echo "$as_me:7976: checking for working mmap" >&5
7977
 
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
7978
 
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7979
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
7980
 
else
7981
 
  if test "$cross_compiling" = yes; then
7982
 
  ac_cv_func_mmap_fixed_mapped=no
7983
 
else
7984
 
  cat >conftest.$ac_ext <<_ACEOF
7985
 
#line 7985 "configure"
7986
 
#include "confdefs.h"
7987
 
$ac_includes_default
7988
 
/* Thanks to Mike Haertel and Jim Avera for this test.
7989
 
   Here is a matrix of mmap possibilities:
7990
 
        mmap private not fixed
7991
 
        mmap private fixed at somewhere currently unmapped
7992
 
        mmap private fixed at somewhere already mapped
7993
 
        mmap shared not fixed
7994
 
        mmap shared fixed at somewhere currently unmapped
7995
 
        mmap shared fixed at somewhere already mapped
7996
 
   For private mappings, we should verify that changes cannot be read()
7997
 
   back from the file, nor mmap's back from the file at a different
7998
 
   address.  (There have been systems where private was not correctly
7999
 
   implemented like the infamous i386 svr4.0, and systems where the
8000
 
   VM page cache was not coherent with the file system buffer cache
8001
 
   like early versions of FreeBSD and possibly contemporary NetBSD.)
8002
 
   For shared mappings, we should conversely verify that changes get
8003
 
   propogated back to all the places they're supposed to be.
8004
 
 
8005
 
   Grep wants private fixed already mapped.
8006
 
   The main things grep needs to know about mmap are:
8007
 
   * does it exist and is it safe to write into the mmap'd area
8008
 
   * how to use it (BSD variants)  */
8009
 
 
8010
 
#include <fcntl.h>
8011
 
#include <sys/mman.h>
8012
 
 
8013
 
#if !STDC_HEADERS && !HAVE_STDLIB_H
8014
 
char *malloc ();
8015
 
#endif
8016
 
 
8017
 
/* This mess was copied from the GNU getpagesize.h.  */
8018
 
#if !HAVE_GETPAGESIZE
8019
 
/* Assume that all systems that can run configure have sys/param.h.  */
8020
 
# if !HAVE_SYS_PARAM_H
8021
 
#  define HAVE_SYS_PARAM_H 1
8022
 
# endif
8023
 
 
8024
 
# ifdef _SC_PAGESIZE
8025
 
#  define getpagesize() sysconf(_SC_PAGESIZE)
8026
 
# else /* no _SC_PAGESIZE */
8027
 
#  if HAVE_SYS_PARAM_H
8028
 
#   include <sys/param.h>
8029
 
#   ifdef EXEC_PAGESIZE
8030
 
#    define getpagesize() EXEC_PAGESIZE
8031
 
#   else /* no EXEC_PAGESIZE */
8032
 
#    ifdef NBPG
8033
 
#     define getpagesize() NBPG * CLSIZE
8034
 
#     ifndef CLSIZE
8035
 
#      define CLSIZE 1
8036
 
#     endif /* no CLSIZE */
8037
 
#    else /* no NBPG */
8038
 
#     ifdef NBPC
8039
 
#      define getpagesize() NBPC
8040
 
#     else /* no NBPC */
8041
 
#      ifdef PAGESIZE
8042
 
#       define getpagesize() PAGESIZE
8043
 
#      endif /* PAGESIZE */
8044
 
#     endif /* no NBPC */
8045
 
#    endif /* no NBPG */
8046
 
#   endif /* no EXEC_PAGESIZE */
8047
 
#  else /* no HAVE_SYS_PARAM_H */
8048
 
#   define getpagesize() 8192   /* punt totally */
8049
 
#  endif /* no HAVE_SYS_PARAM_H */
8050
 
# endif /* no _SC_PAGESIZE */
8051
 
 
8052
 
#endif /* no HAVE_GETPAGESIZE */
8053
 
 
8054
 
int
8055
 
main ()
8056
 
{
8057
 
  char *data, *data2, *data3;
8058
 
  int i, pagesize;
8059
 
  int fd;
8060
 
 
8061
 
  pagesize = getpagesize ();
8062
 
 
8063
 
  /* First, make a file with some known garbage in it. */
8064
 
  data = (char *) malloc (pagesize);
8065
 
  if (!data)
8066
 
    exit (1);
8067
 
  for (i = 0; i < pagesize; ++i)
8068
 
    *(data + i) = rand ();
8069
 
  umask (0);
8070
 
  fd = creat ("conftest.mmap", 0600);
8071
 
  if (fd < 0)
8072
 
    exit (1);
8073
 
  if (write (fd, data, pagesize) != pagesize)
8074
 
    exit (1);
8075
 
  close (fd);
8076
 
 
8077
 
  /* Next, try to mmap the file at a fixed address which already has
8078
 
     something else allocated at it.  If we can, also make sure that
8079
 
     we see the same garbage.  */
8080
 
  fd = open ("conftest.mmap", O_RDWR);
8081
 
  if (fd < 0)
8082
 
    exit (1);
8083
 
  data2 = (char *) malloc (2 * pagesize);
8084
 
  if (!data2)
8085
 
    exit (1);
8086
 
  data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
8087
 
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8088
 
                     MAP_PRIVATE | MAP_FIXED, fd, 0L))
8089
 
    exit (1);
8090
 
  for (i = 0; i < pagesize; ++i)
8091
 
    if (*(data + i) != *(data2 + i))
8092
 
      exit (1);
8093
 
 
8094
 
  /* Finally, make sure that changes to the mapped area do not
8095
 
     percolate back to the file as seen by read().  (This is a bug on
8096
 
     some variants of i386 svr4.0.)  */
8097
 
  for (i = 0; i < pagesize; ++i)
8098
 
    *(data2 + i) = *(data2 + i) + 1;
8099
 
  data3 = (char *) malloc (pagesize);
8100
 
  if (!data3)
8101
 
    exit (1);
8102
 
  if (read (fd, data3, pagesize) != pagesize)
8103
 
    exit (1);
8104
 
  for (i = 0; i < pagesize; ++i)
8105
 
    if (*(data + i) != *(data3 + i))
8106
 
      exit (1);
8107
 
  close (fd);
8108
 
  exit (0);
8109
 
}
8110
 
_ACEOF
8111
 
rm -f conftest$ac_exeext
8112
 
if { (eval echo "$as_me:8112: \"$ac_link\"") >&5
8113
 
  (eval $ac_link) 2>&5
8114
 
  ac_status=$?
8115
 
  echo "$as_me:8115: \$? = $ac_status" >&5
8116
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8117
 
  { (eval echo "$as_me:8117: \"$ac_try\"") >&5
8118
 
  (eval $ac_try) 2>&5
8119
 
  ac_status=$?
8120
 
  echo "$as_me:8120: \$? = $ac_status" >&5
8121
 
  (exit $ac_status); }; }; then
8122
 
  ac_cv_func_mmap_fixed_mapped=yes
8123
 
else
8124
 
  echo "$as_me: program exited with status $ac_status" >&5
8125
 
echo "$as_me: failed program was:" >&5
8126
 
cat conftest.$ac_ext >&5
8127
 
ac_cv_func_mmap_fixed_mapped=no
8128
 
fi
8129
 
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8130
 
fi
8131
 
fi
8132
 
echo "$as_me:8132: result: $ac_cv_func_mmap_fixed_mapped" >&5
8133
 
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
8134
 
if test $ac_cv_func_mmap_fixed_mapped = yes; then
8135
 
 
8136
 
cat >>confdefs.h <<\EOF
8137
 
#define HAVE_MMAP 1
8138
 
EOF
8139
 
 
8140
 
fi
8141
 
rm -f conftest.mmap
8142
 
 
8143
 
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \
8144
 
unistd.h sys/param.h
8145
 
do
8146
 
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8147
 
echo "$as_me:8147: checking for $ac_header" >&5
8148
 
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8149
 
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8150
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8151
 
else
8152
 
  cat >conftest.$ac_ext <<_ACEOF
8153
 
#line 8153 "configure"
8154
 
#include "confdefs.h"
8155
 
#include <$ac_header>
8156
 
_ACEOF
8157
 
if { (eval echo "$as_me:8157: \"$ac_cpp conftest.$ac_ext\"") >&5
8158
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8159
 
  ac_status=$?
8160
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
8161
 
  rm -f conftest.er1
8162
 
  cat conftest.err >&5
8163
 
  echo "$as_me:8163: \$? = $ac_status" >&5
8164
 
  (exit $ac_status); } >/dev/null; then
8165
 
  if test -s conftest.err; then
8166
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8167
 
  else
8168
 
    ac_cpp_err=
8169
 
  fi
8170
 
else
8171
 
  ac_cpp_err=yes
8172
 
fi
8173
 
if test -z "$ac_cpp_err"; then
8174
 
  eval "$as_ac_Header=yes"
8175
 
else
8176
 
  echo "$as_me: failed program was:" >&5
8177
 
  cat conftest.$ac_ext >&5
8178
 
  eval "$as_ac_Header=no"
8179
 
fi
8180
 
rm -f conftest.err conftest.$ac_ext
8181
 
fi
8182
 
echo "$as_me:8182: result: `eval echo '${'$as_ac_Header'}'`" >&5
8183
 
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8184
 
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8185
 
  cat >>confdefs.h <<EOF
8186
 
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8187
 
EOF
8188
 
 
8189
 
fi
8190
 
done
8191
 
 
8192
 
for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
8193
 
strdup __argz_count __argz_stringify __argz_next
8194
 
do
8195
 
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8196
 
echo "$as_me:8196: checking for $ac_func" >&5
8197
 
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8198
 
if eval "test \"\${$as_ac_var+set}\" = set"; then
8199
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8200
 
else
8201
 
  cat >conftest.$ac_ext <<_ACEOF
8202
 
#line 8202 "configure"
8203
 
#include "confdefs.h"
8204
 
/* System header to define __stub macros and hopefully few prototypes,
8205
 
    which can conflict with char $ac_func (); below.  */
8206
 
#include <assert.h>
8207
 
/* Override any gcc2 internal prototype to avoid an error.  */
8208
 
#ifdef __cplusplus
8209
 
extern "C"
8210
 
#endif
8211
 
/* We use char because int might match the return type of a gcc2
8212
 
   builtin and then its argument prototype would still apply.  */
8213
 
char $ac_func ();
8214
 
char (*f) ();
8215
 
 
8216
 
int
8217
 
main ()
8218
 
{
8219
 
/* The GNU C library defines this for functions which it implements
8220
 
    to always fail with ENOSYS.  Some functions are actually named
8221
 
    something starting with __ and the normal name is an alias.  */
8222
 
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8223
 
choke me
8224
 
#else
8225
 
f = $ac_func;
8226
 
#endif
8227
 
 
8228
 
  ;
8229
 
  return 0;
8230
 
}
8231
 
_ACEOF
8232
 
rm -f conftest.$ac_objext conftest$ac_exeext
8233
 
if { (eval echo "$as_me:8233: \"$ac_link\"") >&5
8234
 
  (eval $ac_link) 2>&5
8235
 
  ac_status=$?
8236
 
  echo "$as_me:8236: \$? = $ac_status" >&5
8237
 
  (exit $ac_status); } &&
8238
 
         { ac_try='test -s conftest$ac_exeext'
8239
 
  { (eval echo "$as_me:8239: \"$ac_try\"") >&5
8240
 
  (eval $ac_try) 2>&5
8241
 
  ac_status=$?
8242
 
  echo "$as_me:8242: \$? = $ac_status" >&5
8243
 
  (exit $ac_status); }; }; then
8244
 
  eval "$as_ac_var=yes"
8245
 
else
8246
 
  echo "$as_me: failed program was:" >&5
8247
 
cat conftest.$ac_ext >&5
8248
 
eval "$as_ac_var=no"
8249
 
fi
8250
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8251
 
fi
8252
 
echo "$as_me:8252: result: `eval echo '${'$as_ac_var'}'`" >&5
8253
 
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8254
 
if test `eval echo '${'$as_ac_var'}'` = yes; then
8255
 
  cat >>confdefs.h <<EOF
8256
 
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8257
 
EOF
8258
 
 
8259
 
fi
8260
 
done
8261
 
 
8262
 
   if test $ac_cv_header_locale_h = yes; then
8263
 
    echo "$as_me:8263: checking for LC_MESSAGES" >&5
 
21334
_ACEOF
 
21335
 
 
21336
gnomelocaledir='${prefix}/${DATADIRNAME}/locale'
 
21337
 
 
21338
 
 
21339
ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB eo es eu fa fi fr ga gl gu he hi hr hu id is it ja ko li lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta tr uk vi wa yi zh_CN zh_TW"
 
21340
 
 
21341
 
 
21342
for ac_header in locale.h
 
21343
do
 
21344
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
21345
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21346
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21348
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21350
fi
 
21351
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21352
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21353
else
 
21354
  # Is the header compilable?
 
21355
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
21356
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
21357
cat >conftest.$ac_ext <<_ACEOF
 
21358
/* confdefs.h.  */
 
21359
_ACEOF
 
21360
cat confdefs.h >>conftest.$ac_ext
 
21361
cat >>conftest.$ac_ext <<_ACEOF
 
21362
/* end confdefs.h.  */
 
21363
$ac_includes_default
 
21364
#include <$ac_header>
 
21365
_ACEOF
 
21366
rm -f conftest.$ac_objext
 
21367
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21368
  (eval $ac_compile) 2>conftest.er1
 
21369
  ac_status=$?
 
21370
  grep -v '^ *+' conftest.er1 >conftest.err
 
21371
  rm -f conftest.er1
 
21372
  cat conftest.err >&5
 
21373
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21374
  (exit $ac_status); } &&
 
21375
         { ac_try='test -z "$ac_c_werror_flag"
 
21376
                         || test ! -s conftest.err'
 
21377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21378
  (eval $ac_try) 2>&5
 
21379
  ac_status=$?
 
21380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21381
  (exit $ac_status); }; } &&
 
21382
         { ac_try='test -s conftest.$ac_objext'
 
21383
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21384
  (eval $ac_try) 2>&5
 
21385
  ac_status=$?
 
21386
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21387
  (exit $ac_status); }; }; then
 
21388
  ac_header_compiler=yes
 
21389
else
 
21390
  echo "$as_me: failed program was:" >&5
 
21391
sed 's/^/| /' conftest.$ac_ext >&5
 
21392
 
 
21393
ac_header_compiler=no
 
21394
fi
 
21395
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21396
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21397
echo "${ECHO_T}$ac_header_compiler" >&6
 
21398
 
 
21399
# Is the header present?
 
21400
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
21401
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
21402
cat >conftest.$ac_ext <<_ACEOF
 
21403
/* confdefs.h.  */
 
21404
_ACEOF
 
21405
cat confdefs.h >>conftest.$ac_ext
 
21406
cat >>conftest.$ac_ext <<_ACEOF
 
21407
/* end confdefs.h.  */
 
21408
#include <$ac_header>
 
21409
_ACEOF
 
21410
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21411
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
21412
  ac_status=$?
 
21413
  grep -v '^ *+' conftest.er1 >conftest.err
 
21414
  rm -f conftest.er1
 
21415
  cat conftest.err >&5
 
21416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21417
  (exit $ac_status); } >/dev/null; then
 
21418
  if test -s conftest.err; then
 
21419
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21420
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
21421
  else
 
21422
    ac_cpp_err=
 
21423
  fi
 
21424
else
 
21425
  ac_cpp_err=yes
 
21426
fi
 
21427
if test -z "$ac_cpp_err"; then
 
21428
  ac_header_preproc=yes
 
21429
else
 
21430
  echo "$as_me: failed program was:" >&5
 
21431
sed 's/^/| /' conftest.$ac_ext >&5
 
21432
 
 
21433
  ac_header_preproc=no
 
21434
fi
 
21435
rm -f conftest.err conftest.$ac_ext
 
21436
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21437
echo "${ECHO_T}$ac_header_preproc" >&6
 
21438
 
 
21439
# So?  What about this header?
 
21440
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21441
  yes:no: )
 
21442
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
21443
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21444
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
21445
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
21446
    ac_header_preproc=yes
 
21447
    ;;
 
21448
  no:yes:* )
 
21449
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
21450
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
21451
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
21452
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
21453
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
21454
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
21455
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
21456
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21457
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
21458
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
21459
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
21460
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
21461
    (
 
21462
      cat <<\_ASBOX
 
21463
## ------------------------------------------ ##
 
21464
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21465
## ------------------------------------------ ##
 
21466
_ASBOX
 
21467
    ) |
 
21468
      sed "s/^/$as_me: WARNING:     /" >&2
 
21469
    ;;
 
21470
esac
 
21471
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
21472
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
21473
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
21474
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21475
else
 
21476
  eval "$as_ac_Header=\$ac_header_preproc"
 
21477
fi
 
21478
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
21479
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
21480
 
 
21481
fi
 
21482
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
21483
  cat >>confdefs.h <<_ACEOF
 
21484
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
21485
_ACEOF
 
21486
 
 
21487
fi
 
21488
 
 
21489
done
 
21490
 
 
21491
    if test $ac_cv_header_locale_h = yes; then
 
21492
    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
8264
21493
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
8265
21494
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
8266
21495
  echo $ECHO_N "(cached) $ECHO_C" >&6
8267
21496
else
8268
21497
  cat >conftest.$ac_ext <<_ACEOF
8269
 
#line 8269 "configure"
8270
 
#include "confdefs.h"
 
21498
/* confdefs.h.  */
 
21499
_ACEOF
 
21500
cat confdefs.h >>conftest.$ac_ext
 
21501
cat >>conftest.$ac_ext <<_ACEOF
 
21502
/* end confdefs.h.  */
8271
21503
#include <locale.h>
8272
21504
int
8273
21505
main ()
8278
21510
}
8279
21511
_ACEOF
8280
21512
rm -f conftest.$ac_objext conftest$ac_exeext
8281
 
if { (eval echo "$as_me:8281: \"$ac_link\"") >&5
8282
 
  (eval $ac_link) 2>&5
 
21513
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21514
  (eval $ac_link) 2>conftest.er1
8283
21515
  ac_status=$?
8284
 
  echo "$as_me:8284: \$? = $ac_status" >&5
 
21516
  grep -v '^ *+' conftest.er1 >conftest.err
 
21517
  rm -f conftest.er1
 
21518
  cat conftest.err >&5
 
21519
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285
21520
  (exit $ac_status); } &&
8286
 
         { ac_try='test -s conftest$ac_exeext'
8287
 
  { (eval echo "$as_me:8287: \"$ac_try\"") >&5
8288
 
  (eval $ac_try) 2>&5
8289
 
  ac_status=$?
8290
 
  echo "$as_me:8290: \$? = $ac_status" >&5
 
21521
         { ac_try='test -z "$ac_c_werror_flag"
 
21522
                         || test ! -s conftest.err'
 
21523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21524
  (eval $ac_try) 2>&5
 
21525
  ac_status=$?
 
21526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21527
  (exit $ac_status); }; } &&
 
21528
         { ac_try='test -s conftest$ac_exeext'
 
21529
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21530
  (eval $ac_try) 2>&5
 
21531
  ac_status=$?
 
21532
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291
21533
  (exit $ac_status); }; }; then
8292
21534
  am_cv_val_LC_MESSAGES=yes
8293
21535
else
8294
21536
  echo "$as_me: failed program was:" >&5
8295
 
cat conftest.$ac_ext >&5
 
21537
sed 's/^/| /' conftest.$ac_ext >&5
 
21538
 
8296
21539
am_cv_val_LC_MESSAGES=no
8297
21540
fi
8298
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21541
rm -f conftest.err conftest.$ac_objext \
 
21542
      conftest$ac_exeext conftest.$ac_ext
8299
21543
fi
8300
 
echo "$as_me:8300: result: $am_cv_val_LC_MESSAGES" >&5
 
21544
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
8301
21545
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
8302
21546
    if test $am_cv_val_LC_MESSAGES = yes; then
8303
21547
 
8304
 
cat >>confdefs.h <<\EOF
 
21548
cat >>confdefs.h <<\_ACEOF
8305
21549
#define HAVE_LC_MESSAGES 1
8306
 
EOF
 
21550
_ACEOF
8307
21551
 
8308
21552
    fi
8309
21553
  fi
8310
21554
     USE_NLS=yes
8311
21555
 
8312
 
        nls_cv_force_use_gnu_gettext="no"
8313
 
 
8314
 
    nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
8315
 
    if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
8316
 
                              nls_cv_header_intl=
8317
 
      nls_cv_header_libgt=
8318
 
      CATOBJEXT=NONE
8319
 
 
8320
 
      echo "$as_me:8320: checking for libintl.h" >&5
 
21556
 
 
21557
    gt_cv_have_gettext=no
 
21558
 
 
21559
    CATOBJEXT=NONE
 
21560
    XGETTEXT=:
 
21561
    INTLLIBS=
 
21562
 
 
21563
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
21564
  echo "$as_me:$LINENO: checking for libintl.h" >&5
8321
21565
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
8322
21566
if test "${ac_cv_header_libintl_h+set}" = set; then
8323
21567
  echo $ECHO_N "(cached) $ECHO_C" >&6
8324
 
else
8325
 
  cat >conftest.$ac_ext <<_ACEOF
8326
 
#line 8326 "configure"
8327
 
#include "confdefs.h"
8328
 
#include <libintl.h>
8329
 
_ACEOF
8330
 
if { (eval echo "$as_me:8330: \"$ac_cpp conftest.$ac_ext\"") >&5
 
21568
fi
 
21569
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
21570
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
21571
else
 
21572
  # Is the header compilable?
 
21573
echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
21574
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
 
21575
cat >conftest.$ac_ext <<_ACEOF
 
21576
/* confdefs.h.  */
 
21577
_ACEOF
 
21578
cat confdefs.h >>conftest.$ac_ext
 
21579
cat >>conftest.$ac_ext <<_ACEOF
 
21580
/* end confdefs.h.  */
 
21581
$ac_includes_default
 
21582
#include <libintl.h>
 
21583
_ACEOF
 
21584
rm -f conftest.$ac_objext
 
21585
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
21586
  (eval $ac_compile) 2>conftest.er1
 
21587
  ac_status=$?
 
21588
  grep -v '^ *+' conftest.er1 >conftest.err
 
21589
  rm -f conftest.er1
 
21590
  cat conftest.err >&5
 
21591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21592
  (exit $ac_status); } &&
 
21593
         { ac_try='test -z "$ac_c_werror_flag"
 
21594
                         || test ! -s conftest.err'
 
21595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21596
  (eval $ac_try) 2>&5
 
21597
  ac_status=$?
 
21598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21599
  (exit $ac_status); }; } &&
 
21600
         { ac_try='test -s conftest.$ac_objext'
 
21601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21602
  (eval $ac_try) 2>&5
 
21603
  ac_status=$?
 
21604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21605
  (exit $ac_status); }; }; then
 
21606
  ac_header_compiler=yes
 
21607
else
 
21608
  echo "$as_me: failed program was:" >&5
 
21609
sed 's/^/| /' conftest.$ac_ext >&5
 
21610
 
 
21611
ac_header_compiler=no
 
21612
fi
 
21613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
21614
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
21615
echo "${ECHO_T}$ac_header_compiler" >&6
 
21616
 
 
21617
# Is the header present?
 
21618
echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
21619
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
 
21620
cat >conftest.$ac_ext <<_ACEOF
 
21621
/* confdefs.h.  */
 
21622
_ACEOF
 
21623
cat confdefs.h >>conftest.$ac_ext
 
21624
cat >>conftest.$ac_ext <<_ACEOF
 
21625
/* end confdefs.h.  */
 
21626
#include <libintl.h>
 
21627
_ACEOF
 
21628
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8331
21629
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8332
21630
  ac_status=$?
8333
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
 
21631
  grep -v '^ *+' conftest.er1 >conftest.err
8334
21632
  rm -f conftest.er1
8335
21633
  cat conftest.err >&5
8336
 
  echo "$as_me:8336: \$? = $ac_status" >&5
 
21634
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8337
21635
  (exit $ac_status); } >/dev/null; then
8338
21636
  if test -s conftest.err; then
8339
21637
    ac_cpp_err=$ac_c_preproc_warn_flag
 
21638
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8340
21639
  else
8341
21640
    ac_cpp_err=
8342
21641
  fi
8344
21643
  ac_cpp_err=yes
8345
21644
fi
8346
21645
if test -z "$ac_cpp_err"; then
8347
 
  ac_cv_header_libintl_h=yes
 
21646
  ac_header_preproc=yes
8348
21647
else
8349
21648
  echo "$as_me: failed program was:" >&5
8350
 
  cat conftest.$ac_ext >&5
8351
 
  ac_cv_header_libintl_h=no
 
21649
sed 's/^/| /' conftest.$ac_ext >&5
 
21650
 
 
21651
  ac_header_preproc=no
8352
21652
fi
8353
21653
rm -f conftest.err conftest.$ac_ext
 
21654
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
21655
echo "${ECHO_T}$ac_header_preproc" >&6
 
21656
 
 
21657
# So?  What about this header?
 
21658
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
21659
  yes:no: )
 
21660
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
21661
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
21662
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
21663
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
21664
    ac_header_preproc=yes
 
21665
    ;;
 
21666
  no:yes:* )
 
21667
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
21668
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
21669
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
21670
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
21671
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
21672
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
21673
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
21674
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
21675
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
21676
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
21677
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
21678
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
21679
    (
 
21680
      cat <<\_ASBOX
 
21681
## ------------------------------------------ ##
 
21682
## Report this to the AC_PACKAGE_NAME lists.  ##
 
21683
## ------------------------------------------ ##
 
21684
_ASBOX
 
21685
    ) |
 
21686
      sed "s/^/$as_me: WARNING:     /" >&2
 
21687
    ;;
 
21688
esac
 
21689
echo "$as_me:$LINENO: checking for libintl.h" >&5
 
21690
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
21691
if test "${ac_cv_header_libintl_h+set}" = set; then
 
21692
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21693
else
 
21694
  ac_cv_header_libintl_h=$ac_header_preproc
8354
21695
fi
8355
 
echo "$as_me:8355: result: $ac_cv_header_libintl_h" >&5
 
21696
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
8356
21697
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
21698
 
 
21699
fi
8357
21700
if test $ac_cv_header_libintl_h = yes; then
8358
 
  echo "$as_me:8358: checking for dgettext in libc" >&5
 
21701
  gt_cv_func_dgettext_libintl="no"
 
21702
      libintl_extra_libs=""
 
21703
 
 
21704
      #
 
21705
      # First check in libc
 
21706
      #
 
21707
      echo "$as_me:$LINENO: checking for ngettext in libc" >&5
 
21708
echo $ECHO_N "checking for ngettext in libc... $ECHO_C" >&6
 
21709
if test "${gt_cv_func_ngettext_libc+set}" = set; then
 
21710
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21711
else
 
21712
  cat >conftest.$ac_ext <<_ACEOF
 
21713
/* confdefs.h.  */
 
21714
_ACEOF
 
21715
cat confdefs.h >>conftest.$ac_ext
 
21716
cat >>conftest.$ac_ext <<_ACEOF
 
21717
/* end confdefs.h.  */
 
21718
 
 
21719
#include <libintl.h>
 
21720
 
 
21721
int
 
21722
main ()
 
21723
{
 
21724
return (int) ngettext ("","", 1)
 
21725
  ;
 
21726
  return 0;
 
21727
}
 
21728
_ACEOF
 
21729
rm -f conftest.$ac_objext conftest$ac_exeext
 
21730
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21731
  (eval $ac_link) 2>conftest.er1
 
21732
  ac_status=$?
 
21733
  grep -v '^ *+' conftest.er1 >conftest.err
 
21734
  rm -f conftest.er1
 
21735
  cat conftest.err >&5
 
21736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21737
  (exit $ac_status); } &&
 
21738
         { ac_try='test -z "$ac_c_werror_flag"
 
21739
                         || test ! -s conftest.err'
 
21740
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21741
  (eval $ac_try) 2>&5
 
21742
  ac_status=$?
 
21743
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21744
  (exit $ac_status); }; } &&
 
21745
         { ac_try='test -s conftest$ac_exeext'
 
21746
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21747
  (eval $ac_try) 2>&5
 
21748
  ac_status=$?
 
21749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21750
  (exit $ac_status); }; }; then
 
21751
  gt_cv_func_ngettext_libc=yes
 
21752
else
 
21753
  echo "$as_me: failed program was:" >&5
 
21754
sed 's/^/| /' conftest.$ac_ext >&5
 
21755
 
 
21756
gt_cv_func_ngettext_libc=no
 
21757
fi
 
21758
rm -f conftest.err conftest.$ac_objext \
 
21759
      conftest$ac_exeext conftest.$ac_ext
 
21760
 
 
21761
fi
 
21762
echo "$as_me:$LINENO: result: $gt_cv_func_ngettext_libc" >&5
 
21763
echo "${ECHO_T}$gt_cv_func_ngettext_libc" >&6
 
21764
 
 
21765
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21766
              echo "$as_me:$LINENO: checking for dgettext in libc" >&5
8359
21767
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
8360
21768
if test "${gt_cv_func_dgettext_libc+set}" = set; then
8361
21769
  echo $ECHO_N "(cached) $ECHO_C" >&6
8362
21770
else
8363
21771
  cat >conftest.$ac_ext <<_ACEOF
8364
 
#line 8364 "configure"
8365
 
#include "confdefs.h"
 
21772
/* confdefs.h.  */
 
21773
_ACEOF
 
21774
cat confdefs.h >>conftest.$ac_ext
 
21775
cat >>conftest.$ac_ext <<_ACEOF
 
21776
/* end confdefs.h.  */
 
21777
 
8366
21778
#include <libintl.h>
 
21779
 
8367
21780
int
8368
21781
main ()
8369
21782
{
8373
21786
}
8374
21787
_ACEOF
8375
21788
rm -f conftest.$ac_objext conftest$ac_exeext
8376
 
if { (eval echo "$as_me:8376: \"$ac_link\"") >&5
8377
 
  (eval $ac_link) 2>&5
 
21789
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21790
  (eval $ac_link) 2>conftest.er1
8378
21791
  ac_status=$?
8379
 
  echo "$as_me:8379: \$? = $ac_status" >&5
 
21792
  grep -v '^ *+' conftest.er1 >conftest.err
 
21793
  rm -f conftest.er1
 
21794
  cat conftest.err >&5
 
21795
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380
21796
  (exit $ac_status); } &&
8381
 
         { ac_try='test -s conftest$ac_exeext'
8382
 
  { (eval echo "$as_me:8382: \"$ac_try\"") >&5
8383
 
  (eval $ac_try) 2>&5
8384
 
  ac_status=$?
8385
 
  echo "$as_me:8385: \$? = $ac_status" >&5
 
21797
         { ac_try='test -z "$ac_c_werror_flag"
 
21798
                         || test ! -s conftest.err'
 
21799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21800
  (eval $ac_try) 2>&5
 
21801
  ac_status=$?
 
21802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21803
  (exit $ac_status); }; } &&
 
21804
         { ac_try='test -s conftest$ac_exeext'
 
21805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21806
  (eval $ac_try) 2>&5
 
21807
  ac_status=$?
 
21808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386
21809
  (exit $ac_status); }; }; then
8387
21810
  gt_cv_func_dgettext_libc=yes
8388
21811
else
8389
21812
  echo "$as_me: failed program was:" >&5
8390
 
cat conftest.$ac_ext >&5
 
21813
sed 's/^/| /' conftest.$ac_ext >&5
 
21814
 
8391
21815
gt_cv_func_dgettext_libc=no
8392
21816
fi
8393
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21817
rm -f conftest.err conftest.$ac_objext \
 
21818
      conftest$ac_exeext conftest.$ac_ext
 
21819
 
8394
21820
fi
8395
 
echo "$as_me:8395: result: $gt_cv_func_dgettext_libc" >&5
 
21821
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
8396
21822
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
8397
 
 
8398
 
          if test "$gt_cv_func_dgettext_libc" != "yes"; then
8399
 
            echo "$as_me:8399: checking for bindtextdomain in -lintl" >&5
 
21823
      fi
 
21824
 
 
21825
      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
 
21826
 
 
21827
for ac_func in bind_textdomain_codeset
 
21828
do
 
21829
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
21830
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
21831
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
21832
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
21833
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21834
else
 
21835
  cat >conftest.$ac_ext <<_ACEOF
 
21836
/* confdefs.h.  */
 
21837
_ACEOF
 
21838
cat confdefs.h >>conftest.$ac_ext
 
21839
cat >>conftest.$ac_ext <<_ACEOF
 
21840
/* end confdefs.h.  */
 
21841
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
21842
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21843
#define $ac_func innocuous_$ac_func
 
21844
 
 
21845
/* System header to define __stub macros and hopefully few prototypes,
 
21846
    which can conflict with char $ac_func (); below.
 
21847
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21848
    <limits.h> exists even on freestanding compilers.  */
 
21849
 
 
21850
#ifdef __STDC__
 
21851
# include <limits.h>
 
21852
#else
 
21853
# include <assert.h>
 
21854
#endif
 
21855
 
 
21856
#undef $ac_func
 
21857
 
 
21858
/* Override any gcc2 internal prototype to avoid an error.  */
 
21859
#ifdef __cplusplus
 
21860
extern "C"
 
21861
{
 
21862
#endif
 
21863
/* We use char because int might match the return type of a gcc2
 
21864
   builtin and then its argument prototype would still apply.  */
 
21865
char $ac_func ();
 
21866
/* The GNU C library defines this for functions which it implements
 
21867
    to always fail with ENOSYS.  Some functions are actually named
 
21868
    something starting with __ and the normal name is an alias.  */
 
21869
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
21870
choke me
 
21871
#else
 
21872
char (*f) () = $ac_func;
 
21873
#endif
 
21874
#ifdef __cplusplus
 
21875
}
 
21876
#endif
 
21877
 
 
21878
int
 
21879
main ()
 
21880
{
 
21881
return f != $ac_func;
 
21882
  ;
 
21883
  return 0;
 
21884
}
 
21885
_ACEOF
 
21886
rm -f conftest.$ac_objext conftest$ac_exeext
 
21887
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21888
  (eval $ac_link) 2>conftest.er1
 
21889
  ac_status=$?
 
21890
  grep -v '^ *+' conftest.er1 >conftest.err
 
21891
  rm -f conftest.er1
 
21892
  cat conftest.err >&5
 
21893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21894
  (exit $ac_status); } &&
 
21895
         { ac_try='test -z "$ac_c_werror_flag"
 
21896
                         || test ! -s conftest.err'
 
21897
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21898
  (eval $ac_try) 2>&5
 
21899
  ac_status=$?
 
21900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21901
  (exit $ac_status); }; } &&
 
21902
         { ac_try='test -s conftest$ac_exeext'
 
21903
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21904
  (eval $ac_try) 2>&5
 
21905
  ac_status=$?
 
21906
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21907
  (exit $ac_status); }; }; then
 
21908
  eval "$as_ac_var=yes"
 
21909
else
 
21910
  echo "$as_me: failed program was:" >&5
 
21911
sed 's/^/| /' conftest.$ac_ext >&5
 
21912
 
 
21913
eval "$as_ac_var=no"
 
21914
fi
 
21915
rm -f conftest.err conftest.$ac_objext \
 
21916
      conftest$ac_exeext conftest.$ac_ext
 
21917
fi
 
21918
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21919
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21920
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21921
  cat >>confdefs.h <<_ACEOF
 
21922
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21923
_ACEOF
 
21924
 
 
21925
fi
 
21926
done
 
21927
 
 
21928
      fi
 
21929
 
 
21930
      #
 
21931
      # If we don't have everything we want, check in libintl
 
21932
      #
 
21933
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
21934
         || test "$gt_cv_func_ngettext_libc" != "yes" \
 
21935
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
21936
 
 
21937
        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
8400
21938
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
8401
21939
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
8402
21940
  echo $ECHO_N "(cached) $ECHO_C" >&6
8404
21942
  ac_check_lib_save_LIBS=$LIBS
8405
21943
LIBS="-lintl  $LIBS"
8406
21944
cat >conftest.$ac_ext <<_ACEOF
8407
 
#line 8407 "configure"
8408
 
#include "confdefs.h"
 
21945
/* confdefs.h.  */
 
21946
_ACEOF
 
21947
cat confdefs.h >>conftest.$ac_ext
 
21948
cat >>conftest.$ac_ext <<_ACEOF
 
21949
/* end confdefs.h.  */
8409
21950
 
8410
21951
/* Override any gcc2 internal prototype to avoid an error.  */
8411
21952
#ifdef __cplusplus
8423
21964
}
8424
21965
_ACEOF
8425
21966
rm -f conftest.$ac_objext conftest$ac_exeext
8426
 
if { (eval echo "$as_me:8426: \"$ac_link\"") >&5
8427
 
  (eval $ac_link) 2>&5
 
21967
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21968
  (eval $ac_link) 2>conftest.er1
8428
21969
  ac_status=$?
8429
 
  echo "$as_me:8429: \$? = $ac_status" >&5
 
21970
  grep -v '^ *+' conftest.er1 >conftest.err
 
21971
  rm -f conftest.er1
 
21972
  cat conftest.err >&5
 
21973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430
21974
  (exit $ac_status); } &&
8431
 
         { ac_try='test -s conftest$ac_exeext'
8432
 
  { (eval echo "$as_me:8432: \"$ac_try\"") >&5
8433
 
  (eval $ac_try) 2>&5
8434
 
  ac_status=$?
8435
 
  echo "$as_me:8435: \$? = $ac_status" >&5
 
21975
         { ac_try='test -z "$ac_c_werror_flag"
 
21976
                         || test ! -s conftest.err'
 
21977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21978
  (eval $ac_try) 2>&5
 
21979
  ac_status=$?
 
21980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21981
  (exit $ac_status); }; } &&
 
21982
         { ac_try='test -s conftest$ac_exeext'
 
21983
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21984
  (eval $ac_try) 2>&5
 
21985
  ac_status=$?
 
21986
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436
21987
  (exit $ac_status); }; }; then
8437
21988
  ac_cv_lib_intl_bindtextdomain=yes
8438
21989
else
8439
21990
  echo "$as_me: failed program was:" >&5
8440
 
cat conftest.$ac_ext >&5
 
21991
sed 's/^/| /' conftest.$ac_ext >&5
 
21992
 
8441
21993
ac_cv_lib_intl_bindtextdomain=no
8442
21994
fi
8443
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
21995
rm -f conftest.err conftest.$ac_objext \
 
21996
      conftest$ac_exeext conftest.$ac_ext
8444
21997
LIBS=$ac_check_lib_save_LIBS
8445
21998
fi
8446
 
echo "$as_me:8446: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
21999
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
8447
22000
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
8448
22001
if test $ac_cv_lib_intl_bindtextdomain = yes; then
8449
 
  echo "$as_me:8449: checking for dgettext in libintl" >&5
8450
 
echo $ECHO_N "checking for dgettext in libintl... $ECHO_C" >&6
8451
 
if test "${gt_cv_func_dgettext_libintl+set}" = set; then
 
22002
  echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
22003
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
22004
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
8452
22005
  echo $ECHO_N "(cached) $ECHO_C" >&6
8453
22006
else
8454
 
  echo "$as_me:8454: checking for dgettext in -lintl" >&5
 
22007
  ac_check_lib_save_LIBS=$LIBS
 
22008
LIBS="-lintl  $LIBS"
 
22009
cat >conftest.$ac_ext <<_ACEOF
 
22010
/* confdefs.h.  */
 
22011
_ACEOF
 
22012
cat confdefs.h >>conftest.$ac_ext
 
22013
cat >>conftest.$ac_ext <<_ACEOF
 
22014
/* end confdefs.h.  */
 
22015
 
 
22016
/* Override any gcc2 internal prototype to avoid an error.  */
 
22017
#ifdef __cplusplus
 
22018
extern "C"
 
22019
#endif
 
22020
/* We use char because int might match the return type of a gcc2
 
22021
   builtin and then its argument prototype would still apply.  */
 
22022
char ngettext ();
 
22023
int
 
22024
main ()
 
22025
{
 
22026
ngettext ();
 
22027
  ;
 
22028
  return 0;
 
22029
}
 
22030
_ACEOF
 
22031
rm -f conftest.$ac_objext conftest$ac_exeext
 
22032
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22033
  (eval $ac_link) 2>conftest.er1
 
22034
  ac_status=$?
 
22035
  grep -v '^ *+' conftest.er1 >conftest.err
 
22036
  rm -f conftest.er1
 
22037
  cat conftest.err >&5
 
22038
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22039
  (exit $ac_status); } &&
 
22040
         { ac_try='test -z "$ac_c_werror_flag"
 
22041
                         || test ! -s conftest.err'
 
22042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22043
  (eval $ac_try) 2>&5
 
22044
  ac_status=$?
 
22045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22046
  (exit $ac_status); }; } &&
 
22047
         { ac_try='test -s conftest$ac_exeext'
 
22048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22049
  (eval $ac_try) 2>&5
 
22050
  ac_status=$?
 
22051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22052
  (exit $ac_status); }; }; then
 
22053
  ac_cv_lib_intl_ngettext=yes
 
22054
else
 
22055
  echo "$as_me: failed program was:" >&5
 
22056
sed 's/^/| /' conftest.$ac_ext >&5
 
22057
 
 
22058
ac_cv_lib_intl_ngettext=no
 
22059
fi
 
22060
rm -f conftest.err conftest.$ac_objext \
 
22061
      conftest$ac_exeext conftest.$ac_ext
 
22062
LIBS=$ac_check_lib_save_LIBS
 
22063
fi
 
22064
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
22065
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
22066
if test $ac_cv_lib_intl_ngettext = yes; then
 
22067
  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
8455
22068
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
8456
22069
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
8457
22070
  echo $ECHO_N "(cached) $ECHO_C" >&6
8459
22072
  ac_check_lib_save_LIBS=$LIBS
8460
22073
LIBS="-lintl  $LIBS"
8461
22074
cat >conftest.$ac_ext <<_ACEOF
8462
 
#line 8462 "configure"
8463
 
#include "confdefs.h"
 
22075
/* confdefs.h.  */
 
22076
_ACEOF
 
22077
cat confdefs.h >>conftest.$ac_ext
 
22078
cat >>conftest.$ac_ext <<_ACEOF
 
22079
/* end confdefs.h.  */
8464
22080
 
8465
22081
/* Override any gcc2 internal prototype to avoid an error.  */
8466
22082
#ifdef __cplusplus
8478
22094
}
8479
22095
_ACEOF
8480
22096
rm -f conftest.$ac_objext conftest$ac_exeext
8481
 
if { (eval echo "$as_me:8481: \"$ac_link\"") >&5
8482
 
  (eval $ac_link) 2>&5
 
22097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22098
  (eval $ac_link) 2>conftest.er1
8483
22099
  ac_status=$?
8484
 
  echo "$as_me:8484: \$? = $ac_status" >&5
 
22100
  grep -v '^ *+' conftest.er1 >conftest.err
 
22101
  rm -f conftest.er1
 
22102
  cat conftest.err >&5
 
22103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485
22104
  (exit $ac_status); } &&
8486
 
         { ac_try='test -s conftest$ac_exeext'
8487
 
  { (eval echo "$as_me:8487: \"$ac_try\"") >&5
8488
 
  (eval $ac_try) 2>&5
8489
 
  ac_status=$?
8490
 
  echo "$as_me:8490: \$? = $ac_status" >&5
 
22105
         { ac_try='test -z "$ac_c_werror_flag"
 
22106
                         || test ! -s conftest.err'
 
22107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22108
  (eval $ac_try) 2>&5
 
22109
  ac_status=$?
 
22110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22111
  (exit $ac_status); }; } &&
 
22112
         { ac_try='test -s conftest$ac_exeext'
 
22113
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22114
  (eval $ac_try) 2>&5
 
22115
  ac_status=$?
 
22116
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491
22117
  (exit $ac_status); }; }; then
8492
22118
  ac_cv_lib_intl_dgettext=yes
8493
22119
else
8494
22120
  echo "$as_me: failed program was:" >&5
8495
 
cat conftest.$ac_ext >&5
 
22121
sed 's/^/| /' conftest.$ac_ext >&5
 
22122
 
8496
22123
ac_cv_lib_intl_dgettext=no
8497
22124
fi
8498
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22125
rm -f conftest.err conftest.$ac_objext \
 
22126
      conftest$ac_exeext conftest.$ac_ext
8499
22127
LIBS=$ac_check_lib_save_LIBS
8500
22128
fi
8501
 
echo "$as_me:8501: result: $ac_cv_lib_intl_dgettext" >&5
 
22129
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
8502
22130
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
8503
22131
if test $ac_cv_lib_intl_dgettext = yes; then
8504
22132
  gt_cv_func_dgettext_libintl=yes
8505
 
else
8506
 
  gt_cv_func_dgettext_libintl=no
8507
 
fi
8508
 
 
8509
 
fi
8510
 
echo "$as_me:8510: result: $gt_cv_func_dgettext_libintl" >&5
8511
 
echo "${ECHO_T}$gt_cv_func_dgettext_libintl" >&6
8512
 
fi
8513
 
 
8514
 
          fi
8515
 
 
8516
 
          if test "$gt_cv_func_dgettext_libintl" = "yes"; then
8517
 
            LIBS="$LIBS -lintl";
 
22133
fi
 
22134
 
 
22135
fi
 
22136
 
 
22137
fi
 
22138
 
 
22139
 
 
22140
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
22141
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
22142
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
 
22143
          echo "$as_me:$LINENO: result: " >&5
 
22144
echo "${ECHO_T}" >&6
 
22145
          echo "$as_me:$LINENO: checking for ngettext in -lintl" >&5
 
22146
echo $ECHO_N "checking for ngettext in -lintl... $ECHO_C" >&6
 
22147
if test "${ac_cv_lib_intl_ngettext+set}" = set; then
 
22148
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22149
else
 
22150
  ac_check_lib_save_LIBS=$LIBS
 
22151
LIBS="-lintl -liconv $LIBS"
 
22152
cat >conftest.$ac_ext <<_ACEOF
 
22153
/* confdefs.h.  */
 
22154
_ACEOF
 
22155
cat confdefs.h >>conftest.$ac_ext
 
22156
cat >>conftest.$ac_ext <<_ACEOF
 
22157
/* end confdefs.h.  */
 
22158
 
 
22159
/* Override any gcc2 internal prototype to avoid an error.  */
 
22160
#ifdef __cplusplus
 
22161
extern "C"
 
22162
#endif
 
22163
/* We use char because int might match the return type of a gcc2
 
22164
   builtin and then its argument prototype would still apply.  */
 
22165
char ngettext ();
 
22166
int
 
22167
main ()
 
22168
{
 
22169
ngettext ();
 
22170
  ;
 
22171
  return 0;
 
22172
}
 
22173
_ACEOF
 
22174
rm -f conftest.$ac_objext conftest$ac_exeext
 
22175
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22176
  (eval $ac_link) 2>conftest.er1
 
22177
  ac_status=$?
 
22178
  grep -v '^ *+' conftest.er1 >conftest.err
 
22179
  rm -f conftest.er1
 
22180
  cat conftest.err >&5
 
22181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22182
  (exit $ac_status); } &&
 
22183
         { ac_try='test -z "$ac_c_werror_flag"
 
22184
                         || test ! -s conftest.err'
 
22185
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22186
  (eval $ac_try) 2>&5
 
22187
  ac_status=$?
 
22188
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22189
  (exit $ac_status); }; } &&
 
22190
         { ac_try='test -s conftest$ac_exeext'
 
22191
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22192
  (eval $ac_try) 2>&5
 
22193
  ac_status=$?
 
22194
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22195
  (exit $ac_status); }; }; then
 
22196
  ac_cv_lib_intl_ngettext=yes
 
22197
else
 
22198
  echo "$as_me: failed program was:" >&5
 
22199
sed 's/^/| /' conftest.$ac_ext >&5
 
22200
 
 
22201
ac_cv_lib_intl_ngettext=no
 
22202
fi
 
22203
rm -f conftest.err conftest.$ac_objext \
 
22204
      conftest$ac_exeext conftest.$ac_ext
 
22205
LIBS=$ac_check_lib_save_LIBS
 
22206
fi
 
22207
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_ngettext" >&5
 
22208
echo "${ECHO_T}$ac_cv_lib_intl_ngettext" >&6
 
22209
if test $ac_cv_lib_intl_ngettext = yes; then
 
22210
  echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
22211
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
 
22212
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
22213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22214
else
 
22215
  ac_check_lib_save_LIBS=$LIBS
 
22216
LIBS="-lintl -liconv $LIBS"
 
22217
cat >conftest.$ac_ext <<_ACEOF
 
22218
/* confdefs.h.  */
 
22219
_ACEOF
 
22220
cat confdefs.h >>conftest.$ac_ext
 
22221
cat >>conftest.$ac_ext <<_ACEOF
 
22222
/* end confdefs.h.  */
 
22223
 
 
22224
/* Override any gcc2 internal prototype to avoid an error.  */
 
22225
#ifdef __cplusplus
 
22226
extern "C"
 
22227
#endif
 
22228
/* We use char because int might match the return type of a gcc2
 
22229
   builtin and then its argument prototype would still apply.  */
 
22230
char dcgettext ();
 
22231
int
 
22232
main ()
 
22233
{
 
22234
dcgettext ();
 
22235
  ;
 
22236
  return 0;
 
22237
}
 
22238
_ACEOF
 
22239
rm -f conftest.$ac_objext conftest$ac_exeext
 
22240
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22241
  (eval $ac_link) 2>conftest.er1
 
22242
  ac_status=$?
 
22243
  grep -v '^ *+' conftest.er1 >conftest.err
 
22244
  rm -f conftest.er1
 
22245
  cat conftest.err >&5
 
22246
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22247
  (exit $ac_status); } &&
 
22248
         { ac_try='test -z "$ac_c_werror_flag"
 
22249
                         || test ! -s conftest.err'
 
22250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22251
  (eval $ac_try) 2>&5
 
22252
  ac_status=$?
 
22253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22254
  (exit $ac_status); }; } &&
 
22255
         { ac_try='test -s conftest$ac_exeext'
 
22256
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22257
  (eval $ac_try) 2>&5
 
22258
  ac_status=$?
 
22259
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22260
  (exit $ac_status); }; }; then
 
22261
  ac_cv_lib_intl_dcgettext=yes
 
22262
else
 
22263
  echo "$as_me: failed program was:" >&5
 
22264
sed 's/^/| /' conftest.$ac_ext >&5
 
22265
 
 
22266
ac_cv_lib_intl_dcgettext=no
 
22267
fi
 
22268
rm -f conftest.err conftest.$ac_objext \
 
22269
      conftest$ac_exeext conftest.$ac_ext
 
22270
LIBS=$ac_check_lib_save_LIBS
 
22271
fi
 
22272
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
22273
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
 
22274
if test $ac_cv_lib_intl_dcgettext = yes; then
 
22275
  gt_cv_func_dgettext_libintl=yes
 
22276
                        libintl_extra_libs=-liconv
 
22277
else
 
22278
  :
 
22279
fi
 
22280
 
 
22281
else
 
22282
  :
 
22283
fi
 
22284
 
 
22285
        fi
 
22286
 
 
22287
        #
 
22288
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
22289
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
22290
        # and both have dgettext and ngettext
 
22291
        #
 
22292
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
22293
          glib_save_LIBS="$LIBS"
 
22294
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
22295
          unset ac_cv_func_bind_textdomain_codeset
 
22296
 
 
22297
for ac_func in bind_textdomain_codeset
 
22298
do
 
22299
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22300
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22301
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22302
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22303
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22304
else
 
22305
  cat >conftest.$ac_ext <<_ACEOF
 
22306
/* confdefs.h.  */
 
22307
_ACEOF
 
22308
cat confdefs.h >>conftest.$ac_ext
 
22309
cat >>conftest.$ac_ext <<_ACEOF
 
22310
/* end confdefs.h.  */
 
22311
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22312
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22313
#define $ac_func innocuous_$ac_func
 
22314
 
 
22315
/* System header to define __stub macros and hopefully few prototypes,
 
22316
    which can conflict with char $ac_func (); below.
 
22317
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22318
    <limits.h> exists even on freestanding compilers.  */
 
22319
 
 
22320
#ifdef __STDC__
 
22321
# include <limits.h>
 
22322
#else
 
22323
# include <assert.h>
 
22324
#endif
 
22325
 
 
22326
#undef $ac_func
 
22327
 
 
22328
/* Override any gcc2 internal prototype to avoid an error.  */
 
22329
#ifdef __cplusplus
 
22330
extern "C"
 
22331
{
 
22332
#endif
 
22333
/* We use char because int might match the return type of a gcc2
 
22334
   builtin and then its argument prototype would still apply.  */
 
22335
char $ac_func ();
 
22336
/* The GNU C library defines this for functions which it implements
 
22337
    to always fail with ENOSYS.  Some functions are actually named
 
22338
    something starting with __ and the normal name is an alias.  */
 
22339
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22340
choke me
 
22341
#else
 
22342
char (*f) () = $ac_func;
 
22343
#endif
 
22344
#ifdef __cplusplus
 
22345
}
 
22346
#endif
 
22347
 
 
22348
int
 
22349
main ()
 
22350
{
 
22351
return f != $ac_func;
 
22352
  ;
 
22353
  return 0;
 
22354
}
 
22355
_ACEOF
 
22356
rm -f conftest.$ac_objext conftest$ac_exeext
 
22357
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22358
  (eval $ac_link) 2>conftest.er1
 
22359
  ac_status=$?
 
22360
  grep -v '^ *+' conftest.er1 >conftest.err
 
22361
  rm -f conftest.er1
 
22362
  cat conftest.err >&5
 
22363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22364
  (exit $ac_status); } &&
 
22365
         { ac_try='test -z "$ac_c_werror_flag"
 
22366
                         || test ! -s conftest.err'
 
22367
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22368
  (eval $ac_try) 2>&5
 
22369
  ac_status=$?
 
22370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22371
  (exit $ac_status); }; } &&
 
22372
         { ac_try='test -s conftest$ac_exeext'
 
22373
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22374
  (eval $ac_try) 2>&5
 
22375
  ac_status=$?
 
22376
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22377
  (exit $ac_status); }; }; then
 
22378
  eval "$as_ac_var=yes"
 
22379
else
 
22380
  echo "$as_me: failed program was:" >&5
 
22381
sed 's/^/| /' conftest.$ac_ext >&5
 
22382
 
 
22383
eval "$as_ac_var=no"
 
22384
fi
 
22385
rm -f conftest.err conftest.$ac_objext \
 
22386
      conftest$ac_exeext conftest.$ac_ext
 
22387
fi
 
22388
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22389
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22390
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22391
  cat >>confdefs.h <<_ACEOF
 
22392
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22393
_ACEOF
 
22394
 
 
22395
fi
 
22396
done
 
22397
 
 
22398
          LIBS="$glib_save_LIBS"
 
22399
 
 
22400
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
22401
            gt_cv_func_dgettext_libc=no
 
22402
          else
 
22403
            if test "$gt_cv_func_dgettext_libc" = "yes" \
 
22404
                && test "$gt_cv_func_ngettext_libc" = "yes"; then
 
22405
              gt_cv_func_dgettext_libintl=no
 
22406
            fi
8518
22407
          fi
8519
 
 
8520
 
          if test "$gt_cv_func_dgettext_libc" = "yes" \
8521
 
            || test "$gt_cv_func_dgettext_libintl" = "yes"; then
8522
 
 
8523
 
cat >>confdefs.h <<\EOF
 
22408
        fi
 
22409
      fi
 
22410
 
 
22411
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
22412
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
22413
        gt_cv_have_gettext=yes
 
22414
      fi
 
22415
 
 
22416
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
22417
        INTLLIBS="-lintl $libintl_extra_libs"
 
22418
      fi
 
22419
 
 
22420
      if test "$gt_cv_have_gettext" = "yes"; then
 
22421
 
 
22422
cat >>confdefs.h <<\_ACEOF
8524
22423
#define HAVE_GETTEXT 1
8525
 
EOF
 
22424
_ACEOF
8526
22425
 
8527
 
            # Extract the first word of "msgfmt", so it can be a program name with args.
 
22426
        # Extract the first word of "msgfmt", so it can be a program name with args.
8528
22427
set dummy msgfmt; ac_word=$2
8529
 
echo "$as_me:8529: checking for $ac_word" >&5
 
22428
echo "$as_me:$LINENO: checking for $ac_word" >&5
8530
22429
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8531
22430
if test "${ac_cv_path_MSGFMT+set}" = set; then
8532
22431
  echo $ECHO_N "(cached) $ECHO_C" >&6
8552
22451
esac
8553
22452
fi
8554
22453
MSGFMT="$ac_cv_path_MSGFMT"
8555
 
if test -n "$MSGFMT"; then
8556
 
  echo "$as_me:8556: result: $MSGFMT" >&5
 
22454
if test "$MSGFMT" != "no"; then
 
22455
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
8557
22456
echo "${ECHO_T}$MSGFMT" >&6
8558
22457
else
8559
 
  echo "$as_me:8559: result: no" >&5
 
22458
  echo "$as_me:$LINENO: result: no" >&5
8560
22459
echo "${ECHO_T}no" >&6
8561
22460
fi
8562
 
            if test "$MSGFMT" != "no"; then
 
22461
        if test "$MSGFMT" != "no"; then
 
22462
          glib_save_LIBS="$LIBS"
 
22463
          LIBS="$LIBS $INTLLIBS"
8563
22464
 
8564
22465
for ac_func in dcgettext
8565
22466
do
8566
22467
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8567
 
echo "$as_me:8567: checking for $ac_func" >&5
 
22468
echo "$as_me:$LINENO: checking for $ac_func" >&5
8568
22469
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8569
22470
if eval "test \"\${$as_ac_var+set}\" = set"; then
8570
22471
  echo $ECHO_N "(cached) $ECHO_C" >&6
8571
22472
else
8572
22473
  cat >conftest.$ac_ext <<_ACEOF
8573
 
#line 8573 "configure"
8574
 
#include "confdefs.h"
 
22474
/* confdefs.h.  */
 
22475
_ACEOF
 
22476
cat confdefs.h >>conftest.$ac_ext
 
22477
cat >>conftest.$ac_ext <<_ACEOF
 
22478
/* end confdefs.h.  */
 
22479
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22480
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22481
#define $ac_func innocuous_$ac_func
 
22482
 
8575
22483
/* System header to define __stub macros and hopefully few prototypes,
8576
 
    which can conflict with char $ac_func (); below.  */
8577
 
#include <assert.h>
 
22484
    which can conflict with char $ac_func (); below.
 
22485
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22486
    <limits.h> exists even on freestanding compilers.  */
 
22487
 
 
22488
#ifdef __STDC__
 
22489
# include <limits.h>
 
22490
#else
 
22491
# include <assert.h>
 
22492
#endif
 
22493
 
 
22494
#undef $ac_func
 
22495
 
8578
22496
/* Override any gcc2 internal prototype to avoid an error.  */
8579
22497
#ifdef __cplusplus
8580
22498
extern "C"
 
22499
{
8581
22500
#endif
8582
22501
/* We use char because int might match the return type of a gcc2
8583
22502
   builtin and then its argument prototype would still apply.  */
8584
22503
char $ac_func ();
8585
 
char (*f) ();
8586
 
 
8587
 
int
8588
 
main ()
8589
 
{
8590
22504
/* The GNU C library defines this for functions which it implements
8591
22505
    to always fail with ENOSYS.  Some functions are actually named
8592
22506
    something starting with __ and the normal name is an alias.  */
8593
22507
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8594
22508
choke me
8595
22509
#else
8596
 
f = $ac_func;
 
22510
char (*f) () = $ac_func;
 
22511
#endif
 
22512
#ifdef __cplusplus
 
22513
}
8597
22514
#endif
8598
22515
 
 
22516
int
 
22517
main ()
 
22518
{
 
22519
return f != $ac_func;
8599
22520
  ;
8600
22521
  return 0;
8601
22522
}
8602
22523
_ACEOF
8603
22524
rm -f conftest.$ac_objext conftest$ac_exeext
8604
 
if { (eval echo "$as_me:8604: \"$ac_link\"") >&5
8605
 
  (eval $ac_link) 2>&5
 
22525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22526
  (eval $ac_link) 2>conftest.er1
8606
22527
  ac_status=$?
8607
 
  echo "$as_me:8607: \$? = $ac_status" >&5
 
22528
  grep -v '^ *+' conftest.er1 >conftest.err
 
22529
  rm -f conftest.er1
 
22530
  cat conftest.err >&5
 
22531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608
22532
  (exit $ac_status); } &&
8609
 
         { ac_try='test -s conftest$ac_exeext'
8610
 
  { (eval echo "$as_me:8610: \"$ac_try\"") >&5
8611
 
  (eval $ac_try) 2>&5
8612
 
  ac_status=$?
8613
 
  echo "$as_me:8613: \$? = $ac_status" >&5
 
22533
         { ac_try='test -z "$ac_c_werror_flag"
 
22534
                         || test ! -s conftest.err'
 
22535
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22536
  (eval $ac_try) 2>&5
 
22537
  ac_status=$?
 
22538
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22539
  (exit $ac_status); }; } &&
 
22540
         { ac_try='test -s conftest$ac_exeext'
 
22541
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22542
  (eval $ac_try) 2>&5
 
22543
  ac_status=$?
 
22544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614
22545
  (exit $ac_status); }; }; then
8615
22546
  eval "$as_ac_var=yes"
8616
22547
else
8617
22548
  echo "$as_me: failed program was:" >&5
8618
 
cat conftest.$ac_ext >&5
 
22549
sed 's/^/| /' conftest.$ac_ext >&5
 
22550
 
8619
22551
eval "$as_ac_var=no"
8620
22552
fi
8621
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
22553
rm -f conftest.err conftest.$ac_objext \
 
22554
      conftest$ac_exeext conftest.$ac_ext
8622
22555
fi
8623
 
echo "$as_me:8623: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22556
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
8624
22557
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8625
22558
if test `eval echo '${'$as_ac_var'}'` = yes; then
8626
 
  cat >>confdefs.h <<EOF
 
22559
  cat >>confdefs.h <<_ACEOF
8627
22560
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8628
 
EOF
 
22561
_ACEOF
8629
22562
 
8630
22563
fi
8631
22564
done
8632
22565
 
8633
 
              # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
22566
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
8634
22567
set dummy gmsgfmt; ac_word=$2
8635
 
echo "$as_me:8635: checking for $ac_word" >&5
 
22568
echo "$as_me:$LINENO: checking for $ac_word" >&5
8636
22569
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8637
22570
if test "${ac_cv_path_GMSGFMT+set}" = set; then
8638
22571
  echo $ECHO_N "(cached) $ECHO_C" >&6
8642
22575
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8643
22576
  ;;
8644
22577
  *)
8645
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
8646
 
ac_dummy="$PATH"
8647
 
for ac_dir in $ac_dummy; do
8648
 
  IFS=$ac_save_IFS
8649
 
  test -z "$ac_dir" && ac_dir=.
8650
 
  if $as_executable_p "$ac_dir/$ac_word"; then
8651
 
   ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
8652
 
   echo "$as_me:8652: found $ac_dir/$ac_word" >&5
8653
 
   break
8654
 
fi
 
22578
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
22579
for as_dir in $PATH
 
22580
do
 
22581
  IFS=$as_save_IFS
 
22582
  test -z "$as_dir" && as_dir=.
 
22583
  for ac_exec_ext in '' $ac_executable_extensions; do
 
22584
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
22585
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
22586
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
22587
    break 2
 
22588
  fi
 
22589
done
8655
22590
done
8656
22591
 
8657
22592
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8661
22596
GMSGFMT=$ac_cv_path_GMSGFMT
8662
22597
 
8663
22598
if test -n "$GMSGFMT"; then
8664
 
  echo "$as_me:8664: result: $GMSGFMT" >&5
 
22599
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
8665
22600
echo "${ECHO_T}$GMSGFMT" >&6
8666
22601
else
8667
 
  echo "$as_me:8667: result: no" >&5
 
22602
  echo "$as_me:$LINENO: result: no" >&5
8668
22603
echo "${ECHO_T}no" >&6
8669
22604
fi
8670
22605
 
8671
 
              # Extract the first word of "xgettext", so it can be a program name with args.
 
22606
          # Extract the first word of "xgettext", so it can be a program name with args.
8672
22607
set dummy xgettext; ac_word=$2
8673
 
echo "$as_me:8673: checking for $ac_word" >&5
 
22608
echo "$as_me:$LINENO: checking for $ac_word" >&5
8674
22609
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8675
22610
if test "${ac_cv_path_XGETTEXT+set}" = set; then
8676
22611
  echo $ECHO_N "(cached) $ECHO_C" >&6
8696
22631
esac
8697
22632
fi
8698
22633
XGETTEXT="$ac_cv_path_XGETTEXT"
8699
 
if test -n "$XGETTEXT"; then
8700
 
  echo "$as_me:8700: result: $XGETTEXT" >&5
 
22634
if test "$XGETTEXT" != ":"; then
 
22635
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
8701
22636
echo "${ECHO_T}$XGETTEXT" >&6
8702
22637
else
8703
 
  echo "$as_me:8703: result: no" >&5
 
22638
  echo "$as_me:$LINENO: result: no" >&5
8704
22639
echo "${ECHO_T}no" >&6
8705
22640
fi
8706
22641
 
8707
 
              cat >conftest.$ac_ext <<_ACEOF
8708
 
#line 8708 "configure"
8709
 
#include "confdefs.h"
 
22642
          cat >conftest.$ac_ext <<_ACEOF
 
22643
/* confdefs.h.  */
 
22644
_ACEOF
 
22645
cat confdefs.h >>conftest.$ac_ext
 
22646
cat >>conftest.$ac_ext <<_ACEOF
 
22647
/* end confdefs.h.  */
8710
22648
 
8711
22649
int
8712
22650
main ()
8713
22651
{
8714
22652
extern int _nl_msg_cat_cntr;
8715
 
                             return _nl_msg_cat_cntr
8716
 
  ;
8717
 
  return 0;
8718
 
}
8719
 
_ACEOF
8720
 
rm -f conftest.$ac_objext conftest$ac_exeext
8721
 
if { (eval echo "$as_me:8721: \"$ac_link\"") >&5
8722
 
  (eval $ac_link) 2>&5
8723
 
  ac_status=$?
8724
 
  echo "$as_me:8724: \$? = $ac_status" >&5
8725
 
  (exit $ac_status); } &&
8726
 
         { ac_try='test -s conftest$ac_exeext'
8727
 
  { (eval echo "$as_me:8727: \"$ac_try\"") >&5
8728
 
  (eval $ac_try) 2>&5
8729
 
  ac_status=$?
8730
 
  echo "$as_me:8730: \$? = $ac_status" >&5
8731
 
  (exit $ac_status); }; }; then
8732
 
  CATOBJEXT=.gmo
8733
 
                 DATADIRNAME=share
8734
 
else
8735
 
  echo "$as_me: failed program was:" >&5
8736
 
cat conftest.$ac_ext >&5
8737
 
CATOBJEXT=.mo
8738
 
                 DATADIRNAME=lib
8739
 
fi
8740
 
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8741
 
              INSTOBJEXT=.mo
8742
 
            fi
8743
 
          fi
8744
 
 
8745
 
          # Added by Martin Baulig 12/15/98 for libc5 systems
8746
 
          if test "$gt_cv_func_dgettext_libc" != "yes" \
8747
 
            && test "$gt_cv_func_dgettext_libintl" = "yes"; then
8748
 
            INTLLIBS=-lintl
8749
 
            LIBS=`echo $LIBS | sed -e 's/-lintl//'`
8750
 
          fi
8751
 
 
8752
 
fi
8753
 
 
8754
 
      if test "$CATOBJEXT" = "NONE"; then
8755
 
                        nls_cv_use_gnu_gettext=yes
 
22653
                         return _nl_msg_cat_cntr
 
22654
  ;
 
22655
  return 0;
 
22656
}
 
22657
_ACEOF
 
22658
rm -f conftest.$ac_objext conftest$ac_exeext
 
22659
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22660
  (eval $ac_link) 2>conftest.er1
 
22661
  ac_status=$?
 
22662
  grep -v '^ *+' conftest.er1 >conftest.err
 
22663
  rm -f conftest.er1
 
22664
  cat conftest.err >&5
 
22665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22666
  (exit $ac_status); } &&
 
22667
         { ac_try='test -z "$ac_c_werror_flag"
 
22668
                         || test ! -s conftest.err'
 
22669
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22670
  (eval $ac_try) 2>&5
 
22671
  ac_status=$?
 
22672
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22673
  (exit $ac_status); }; } &&
 
22674
         { ac_try='test -s conftest$ac_exeext'
 
22675
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22676
  (eval $ac_try) 2>&5
 
22677
  ac_status=$?
 
22678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22679
  (exit $ac_status); }; }; then
 
22680
  CATOBJEXT=.gmo
 
22681
             DATADIRNAME=share
 
22682
else
 
22683
  echo "$as_me: failed program was:" >&5
 
22684
sed 's/^/| /' conftest.$ac_ext >&5
 
22685
 
 
22686
case $host in
 
22687
            *-*-solaris*)
 
22688
                                                                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
22689
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
 
22690
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
22691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22692
else
 
22693
  cat >conftest.$ac_ext <<_ACEOF
 
22694
/* confdefs.h.  */
 
22695
_ACEOF
 
22696
cat confdefs.h >>conftest.$ac_ext
 
22697
cat >>conftest.$ac_ext <<_ACEOF
 
22698
/* end confdefs.h.  */
 
22699
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
22700
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22701
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
22702
 
 
22703
/* System header to define __stub macros and hopefully few prototypes,
 
22704
    which can conflict with char bind_textdomain_codeset (); below.
 
22705
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22706
    <limits.h> exists even on freestanding compilers.  */
 
22707
 
 
22708
#ifdef __STDC__
 
22709
# include <limits.h>
 
22710
#else
 
22711
# include <assert.h>
 
22712
#endif
 
22713
 
 
22714
#undef bind_textdomain_codeset
 
22715
 
 
22716
/* Override any gcc2 internal prototype to avoid an error.  */
 
22717
#ifdef __cplusplus
 
22718
extern "C"
 
22719
{
 
22720
#endif
 
22721
/* We use char because int might match the return type of a gcc2
 
22722
   builtin and then its argument prototype would still apply.  */
 
22723
char bind_textdomain_codeset ();
 
22724
/* The GNU C library defines this for functions which it implements
 
22725
    to always fail with ENOSYS.  Some functions are actually named
 
22726
    something starting with __ and the normal name is an alias.  */
 
22727
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
 
22728
choke me
 
22729
#else
 
22730
char (*f) () = bind_textdomain_codeset;
 
22731
#endif
 
22732
#ifdef __cplusplus
 
22733
}
 
22734
#endif
 
22735
 
 
22736
int
 
22737
main ()
 
22738
{
 
22739
return f != bind_textdomain_codeset;
 
22740
  ;
 
22741
  return 0;
 
22742
}
 
22743
_ACEOF
 
22744
rm -f conftest.$ac_objext conftest$ac_exeext
 
22745
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22746
  (eval $ac_link) 2>conftest.er1
 
22747
  ac_status=$?
 
22748
  grep -v '^ *+' conftest.er1 >conftest.err
 
22749
  rm -f conftest.er1
 
22750
  cat conftest.err >&5
 
22751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22752
  (exit $ac_status); } &&
 
22753
         { ac_try='test -z "$ac_c_werror_flag"
 
22754
                         || test ! -s conftest.err'
 
22755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22756
  (eval $ac_try) 2>&5
 
22757
  ac_status=$?
 
22758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22759
  (exit $ac_status); }; } &&
 
22760
         { ac_try='test -s conftest$ac_exeext'
 
22761
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22762
  (eval $ac_try) 2>&5
 
22763
  ac_status=$?
 
22764
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22765
  (exit $ac_status); }; }; then
 
22766
  ac_cv_func_bind_textdomain_codeset=yes
 
22767
else
 
22768
  echo "$as_me: failed program was:" >&5
 
22769
sed 's/^/| /' conftest.$ac_ext >&5
 
22770
 
 
22771
ac_cv_func_bind_textdomain_codeset=no
 
22772
fi
 
22773
rm -f conftest.err conftest.$ac_objext \
 
22774
      conftest$ac_exeext conftest.$ac_ext
 
22775
fi
 
22776
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
22777
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
 
22778
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
22779
  CATOBJEXT=.gmo
 
22780
               DATADIRNAME=share
 
22781
else
 
22782
  CATOBJEXT=.mo
 
22783
               DATADIRNAME=lib
 
22784
fi
 
22785
 
 
22786
            ;;
 
22787
            *)
 
22788
            CATOBJEXT=.mo
 
22789
            DATADIRNAME=lib
 
22790
            ;;
 
22791
            esac
 
22792
fi
 
22793
rm -f conftest.err conftest.$ac_objext \
 
22794
      conftest$ac_exeext conftest.$ac_ext
 
22795
          LIBS="$glib_save_LIBS"
 
22796
          INSTOBJEXT=.mo
 
22797
        else
 
22798
          gt_cv_have_gettext=no
 
22799
        fi
8756
22800
      fi
8757
 
    fi
8758
 
 
8759
 
    if test "$nls_cv_use_gnu_gettext" != "yes"; then
8760
 
 
8761
 
cat >>confdefs.h <<\EOF
 
22801
 
 
22802
fi
 
22803
 
 
22804
 
 
22805
 
 
22806
    if test "$gt_cv_have_gettext" = "yes" ; then
 
22807
 
 
22808
cat >>confdefs.h <<\_ACEOF
8762
22809
#define ENABLE_NLS 1
8763
 
EOF
 
22810
_ACEOF
8764
22811
 
8765
 
    else
8766
 
            CATOBJEXT=
8767
22812
    fi
8768
22813
 
8769
22814
        if test "$XGETTEXT" != ":"; then
8770
22815
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
8771
22816
        : ;
8772
22817
      else
8773
 
        echo "$as_me:8773: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
22818
        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
8774
22819
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
8775
22820
        XGETTEXT=":"
8776
22821
      fi
8779
22824
    # We need to process the po/ directory.
8780
22825
    POSUB=po
8781
22826
 
8782
 
    ac_config_commands="$ac_config_commands default-3"
 
22827
              ac_config_commands="$ac_config_commands default-1"
 
22828
 
8783
22829
 
8784
22830
                for lang in $ALL_LINGUAS; do
8785
22831
      GMOFILES="$GMOFILES $lang.gmo"
8786
22832
      POFILES="$POFILES $lang.po"
8787
22833
    done
8788
22834
 
8789
 
   if test "x$CATOBJEXT" != "x"; then
 
22835
 
 
22836
 
 
22837
 
 
22838
 
 
22839
 
 
22840
 
 
22841
 
 
22842
 
 
22843
 
 
22844
 
 
22845
 
 
22846
 
 
22847
   if test "$gt_cv_have_gettext" = "yes"; then
8790
22848
     if test "x$ALL_LINGUAS" = "x"; then
8791
22849
       LINGUAS=
8792
22850
     else
8793
 
       echo "$as_me:8793: checking for catalogs to be installed" >&5
 
22851
       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
8794
22852
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
8795
22853
       NEW_LINGUAS=
8796
 
       for lang in ${LINGUAS=$ALL_LINGUAS}; do
8797
 
         case "$ALL_LINGUAS" in
8798
 
          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
8799
 
         esac
 
22854
       for presentlang in $ALL_LINGUAS; do
 
22855
         useit=no
 
22856
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
22857
           desiredlanguages="$LINGUAS"
 
22858
         else
 
22859
           desiredlanguages="$ALL_LINGUAS"
 
22860
         fi
 
22861
         for desiredlang in $desiredlanguages; do
 
22862
           # Use the presentlang catalog if desiredlang is
 
22863
           #   a. equal to presentlang, or
 
22864
           #   b. a variant of presentlang (because in this case,
 
22865
           #      presentlang can be used as a fallback for messages
 
22866
           #      which are not translated in the desiredlang catalog).
 
22867
           case "$desiredlang" in
 
22868
             "$presentlang"*) useit=yes;;
 
22869
           esac
 
22870
         done
 
22871
         if test $useit = yes; then
 
22872
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
22873
         fi
8800
22874
       done
8801
22875
       LINGUAS=$NEW_LINGUAS
8802
 
       echo "$as_me:8802: result: $LINGUAS" >&5
 
22876
       echo "$as_me:$LINENO: result: $LINGUAS" >&5
8803
22877
echo "${ECHO_T}$LINGUAS" >&6
8804
22878
     fi
8805
22879
 
8808
22882
     fi
8809
22883
   fi
8810
22884
 
8811
 
            test -d po || mkdir po
8812
 
   if test "$CATOBJEXT" = ".cat"; then
8813
 
     echo "$as_me:8813: checking for linux/version.h" >&5
8814
 
echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6
8815
 
if test "${ac_cv_header_linux_version_h+set}" = set; then
8816
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
8817
 
else
8818
 
  cat >conftest.$ac_ext <<_ACEOF
8819
 
#line 8819 "configure"
8820
 
#include "confdefs.h"
8821
 
#include <linux/version.h>
8822
 
_ACEOF
8823
 
if { (eval echo "$as_me:8823: \"$ac_cpp conftest.$ac_ext\"") >&5
8824
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8825
 
  ac_status=$?
8826
 
  egrep -v '^ *\+' conftest.er1 >conftest.err
8827
 
  rm -f conftest.er1
8828
 
  cat conftest.err >&5
8829
 
  echo "$as_me:8829: \$? = $ac_status" >&5
8830
 
  (exit $ac_status); } >/dev/null; then
8831
 
  if test -s conftest.err; then
8832
 
    ac_cpp_err=$ac_c_preproc_warn_flag
8833
 
  else
8834
 
    ac_cpp_err=
8835
 
  fi
8836
 
else
8837
 
  ac_cpp_err=yes
8838
 
fi
8839
 
if test -z "$ac_cpp_err"; then
8840
 
  ac_cv_header_linux_version_h=yes
8841
 
else
8842
 
  echo "$as_me: failed program was:" >&5
8843
 
  cat conftest.$ac_ext >&5
8844
 
  ac_cv_header_linux_version_h=no
8845
 
fi
8846
 
rm -f conftest.err conftest.$ac_ext
8847
 
fi
8848
 
echo "$as_me:8848: result: $ac_cv_header_linux_version_h" >&5
8849
 
echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6
8850
 
if test $ac_cv_header_linux_version_h = yes; then
8851
 
  msgformat=linux
8852
 
else
8853
 
  msgformat=xopen
8854
 
fi
8855
 
 
8856
 
               sed -e '/^#/d' $srcdir/po/$msgformat-msg.sed > po/po2msg.sed
8857
 
   fi
8858
 
 
8859
22885
            MKINSTALLDIRS=
8860
22886
   if test -n "$ac_aux_dir"; then
8861
22887
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
8864
22890
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
8865
22891
   fi
8866
22892
 
 
22893
 
8867
22894
         test -d po || mkdir po
8868
22895
   if test "x$srcdir" != "x."; then
8869
22896
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
8878
22905
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
8879
22906
        < $srcdir/po/POTFILES.in > po/POTFILES
8880
22907
 
8881
 
    if test -z "maximum" ; then
8882
 
        default_compile_warnings=no
8883
 
    else
8884
 
        default_compile_warnings="maximum"
8885
 
    fi
 
22908
 
 
22909
 
8886
22910
 
8887
22911
    # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
8888
22912
if test "${enable_compile_warnings+set}" = set; then
8889
22913
  enableval="$enable_compile_warnings"
8890
 
  enable_compile_warnings="$enableval"
 
22914
 
8891
22915
else
8892
 
  enable_compile_warnings="$default_compile_warnings"
 
22916
  enable_compile_warnings="yes"
8893
22917
fi;
8894
22918
 
8895
22919
    warnCFLAGS=
8905
22929
        warning_flags=
8906
22930
        ;;
8907
22931
    minimum)
8908
 
        warning_flags="-Wall -Wunused"
 
22932
        warning_flags="-Wall"
8909
22933
        ;;
8910
22934
    yes)
8911
 
        warning_flags="-Wall -Wunused -Wmissing-prototypes -Wmissing-declarations"
 
22935
        warning_flags="-Wall -Wmissing-prototypes"
8912
22936
        ;;
8913
22937
    maximum|error)
8914
 
        warning_flags="-Wall -Wunused -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
 
22938
        warning_flags="-Wall -Wmissing-prototypes -Wnested-externs -Wpointer-arith"
8915
22939
        CFLAGS="$warning_flags $CFLAGS"
8916
 
        for option in -Wsign-promo -Wno-sign-compare; do
 
22940
        for option in -Wno-sign-compare; do
8917
22941
                SAVE_CFLAGS="$CFLAGS"
8918
22942
                CFLAGS="$CFLAGS $option"
8919
 
                echo "$as_me:8919: checking whether gcc understands $option" >&5
 
22943
                echo "$as_me:$LINENO: checking whether gcc understands $option" >&5
8920
22944
echo $ECHO_N "checking whether gcc understands $option... $ECHO_C" >&6
8921
22945
                cat >conftest.$ac_ext <<_ACEOF
8922
 
#line 8922 "configure"
8923
 
#include "confdefs.h"
 
22946
/* confdefs.h.  */
 
22947
_ACEOF
 
22948
cat confdefs.h >>conftest.$ac_ext
 
22949
cat >>conftest.$ac_ext <<_ACEOF
 
22950
/* end confdefs.h.  */
8924
22951
 
8925
22952
int
8926
22953
main ()
8931
22958
}
8932
22959
_ACEOF
8933
22960
rm -f conftest.$ac_objext
8934
 
if { (eval echo "$as_me:8934: \"$ac_compile\"") >&5
8935
 
  (eval $ac_compile) 2>&5
 
22961
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22962
  (eval $ac_compile) 2>conftest.er1
8936
22963
  ac_status=$?
8937
 
  echo "$as_me:8937: \$? = $ac_status" >&5
 
22964
  grep -v '^ *+' conftest.er1 >conftest.err
 
22965
  rm -f conftest.er1
 
22966
  cat conftest.err >&5
 
22967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8938
22968
  (exit $ac_status); } &&
8939
 
         { ac_try='test -s conftest.$ac_objext'
8940
 
  { (eval echo "$as_me:8940: \"$ac_try\"") >&5
8941
 
  (eval $ac_try) 2>&5
8942
 
  ac_status=$?
8943
 
  echo "$as_me:8943: \$? = $ac_status" >&5
 
22969
         { ac_try='test -z "$ac_c_werror_flag"
 
22970
                         || test ! -s conftest.err'
 
22971
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22972
  (eval $ac_try) 2>&5
 
22973
  ac_status=$?
 
22974
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22975
  (exit $ac_status); }; } &&
 
22976
         { ac_try='test -s conftest.$ac_objext'
 
22977
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22978
  (eval $ac_try) 2>&5
 
22979
  ac_status=$?
 
22980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944
22981
  (exit $ac_status); }; }; then
8945
22982
  has_option=yes
8946
22983
else
8947
22984
  echo "$as_me: failed program was:" >&5
8948
 
cat conftest.$ac_ext >&5
 
22985
sed 's/^/| /' conftest.$ac_ext >&5
 
22986
 
8949
22987
has_option=no
8950
22988
fi
8951
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
22989
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8952
22990
                CFLAGS="$SAVE_CFLAGS"
8953
 
                echo "$as_me:8953: result: $has_option" >&5
 
22991
                echo "$as_me:$LINENO: result: $has_option" >&5
8954
22992
echo "${ECHO_T}$has_option" >&6
8955
22993
                if test $has_option = yes; then
8956
22994
                  warning_flags="$warning_flags $option"
8964
23002
        fi
8965
23003
        ;;
8966
23004
    *)
8967
 
        { { echo "$as_me:8967: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
 
23005
        { { echo "$as_me:$LINENO: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&5
8968
23006
echo "$as_me: error: Unknown argument '$enable_compile_warnings' to --enable-compile-warnings" >&2;}
8969
23007
   { (exit 1); exit 1; }; }
8970
23008
        ;;
8971
23009
    esac
8972
23010
    CFLAGS="$realsave_CFLAGS"
8973
 
    echo "$as_me:8973: checking what warning flags to pass to the C compiler" >&5
 
23011
    echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
8974
23012
echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
8975
 
    echo "$as_me:8975: result: $warning_flags" >&5
 
23013
    echo "$as_me:$LINENO: result: $warning_flags" >&5
8976
23014
echo "${ECHO_T}$warning_flags" >&6
8977
23015
 
8978
23016
    # Check whether --enable-iso-c or --disable-iso-c was given.
8983
23021
  enable_iso_c=no
8984
23022
fi;
8985
23023
 
8986
 
    echo "$as_me:8986: checking what language compliance flags to pass to the C compiler" >&5
 
23024
    echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
8987
23025
echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
8988
23026
    complCFLAGS=
8989
23027
    if test "x$enable_iso_c" != "xno"; then
8998
23036
        esac
8999
23037
        fi
9000
23038
    fi
9001
 
    echo "$as_me:9001: result: $complCFLAGS" >&5
 
23039
    echo "$as_me:$LINENO: result: $complCFLAGS" >&5
9002
23040
echo "${ECHO_T}$complCFLAGS" >&6
9003
23041
 
9004
23042
    WARN_CFLAGS="$warning_flags $complCFLAGS"
9005
23043
 
9006
 
echo "$as_me:9006: checking for dladdr" >&5
 
23044
 
 
23045
 
 
23046
echo "$as_me:$LINENO: checking for dladdr" >&5
9007
23047
echo $ECHO_N "checking for dladdr... $ECHO_C" >&6
9008
23048
have_dladdr=false
9009
23049
cat >conftest.$ac_ext <<_ACEOF
9010
 
#line 9010 "configure"
9011
 
#include "confdefs.h"
 
23050
/* confdefs.h.  */
 
23051
_ACEOF
 
23052
cat confdefs.h >>conftest.$ac_ext
 
23053
cat >>conftest.$ac_ext <<_ACEOF
 
23054
/* end confdefs.h.  */
9012
23055
 
9013
23056
#define _GNU_SOURCE
9014
23057
#include <dlfcn.h>
9026
23069
}
9027
23070
_ACEOF
9028
23071
rm -f conftest.$ac_objext
9029
 
if { (eval echo "$as_me:9029: \"$ac_compile\"") >&5
9030
 
  (eval $ac_compile) 2>&5
 
23072
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23073
  (eval $ac_compile) 2>conftest.er1
9031
23074
  ac_status=$?
9032
 
  echo "$as_me:9032: \$? = $ac_status" >&5
 
23075
  grep -v '^ *+' conftest.er1 >conftest.err
 
23076
  rm -f conftest.er1
 
23077
  cat conftest.err >&5
 
23078
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033
23079
  (exit $ac_status); } &&
9034
 
         { ac_try='test -s conftest.$ac_objext'
9035
 
  { (eval echo "$as_me:9035: \"$ac_try\"") >&5
9036
 
  (eval $ac_try) 2>&5
9037
 
  ac_status=$?
9038
 
  echo "$as_me:9038: \$? = $ac_status" >&5
 
23080
         { ac_try='test -z "$ac_c_werror_flag"
 
23081
                         || test ! -s conftest.err'
 
23082
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23083
  (eval $ac_try) 2>&5
 
23084
  ac_status=$?
 
23085
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23086
  (exit $ac_status); }; } &&
 
23087
         { ac_try='test -s conftest.$ac_objext'
 
23088
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23089
  (eval $ac_try) 2>&5
 
23090
  ac_status=$?
 
23091
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039
23092
  (exit $ac_status); }; }; then
9040
23093
  have_dladdr=true
9041
23094
else
9042
23095
  echo "$as_me: failed program was:" >&5
9043
 
cat conftest.$ac_ext >&5
 
23096
sed 's/^/| /' conftest.$ac_ext >&5
 
23097
 
9044
23098
fi
9045
 
rm -f conftest.$ac_objext conftest.$ac_ext
 
23099
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9046
23100
 
9047
23101
if $have_dladdr; then
9048
 
        echo "$as_me:9048: result: found" >&5
 
23102
        echo "$as_me:$LINENO: result: found" >&5
9049
23103
echo "${ECHO_T}found" >&6
9050
23104
else
9051
 
        echo "$as_me:9051: result: not found - no auto shlib factory unloads" >&5
 
23105
        echo "$as_me:$LINENO: result: not found - no auto shlib factory unloads" >&5
9052
23106
echo "${ECHO_T}not found - no auto shlib factory unloads" >&6
9053
23107
fi
9054
23108
 
9055
 
cat >>confdefs.h <<\EOF
 
23109
 
 
23110
cat >>confdefs.h <<\_ACEOF
9056
23111
#define HAVE_DLADDR $have_dladdr
9057
 
EOF
 
23112
_ACEOF
 
23113
 
 
23114
 
 
23115
 
 
23116
 
 
23117
for ac_func in usleep nanosleep
 
23118
do
 
23119
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
23120
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
23121
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
23122
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
23123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23124
else
 
23125
  cat >conftest.$ac_ext <<_ACEOF
 
23126
/* confdefs.h.  */
 
23127
_ACEOF
 
23128
cat confdefs.h >>conftest.$ac_ext
 
23129
cat >>conftest.$ac_ext <<_ACEOF
 
23130
/* end confdefs.h.  */
 
23131
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
23132
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23133
#define $ac_func innocuous_$ac_func
 
23134
 
 
23135
/* System header to define __stub macros and hopefully few prototypes,
 
23136
    which can conflict with char $ac_func (); below.
 
23137
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23138
    <limits.h> exists even on freestanding compilers.  */
 
23139
 
 
23140
#ifdef __STDC__
 
23141
# include <limits.h>
 
23142
#else
 
23143
# include <assert.h>
 
23144
#endif
 
23145
 
 
23146
#undef $ac_func
 
23147
 
 
23148
/* Override any gcc2 internal prototype to avoid an error.  */
 
23149
#ifdef __cplusplus
 
23150
extern "C"
 
23151
{
 
23152
#endif
 
23153
/* We use char because int might match the return type of a gcc2
 
23154
   builtin and then its argument prototype would still apply.  */
 
23155
char $ac_func ();
 
23156
/* The GNU C library defines this for functions which it implements
 
23157
    to always fail with ENOSYS.  Some functions are actually named
 
23158
    something starting with __ and the normal name is an alias.  */
 
23159
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
23160
choke me
 
23161
#else
 
23162
char (*f) () = $ac_func;
 
23163
#endif
 
23164
#ifdef __cplusplus
 
23165
}
 
23166
#endif
 
23167
 
 
23168
int
 
23169
main ()
 
23170
{
 
23171
return f != $ac_func;
 
23172
  ;
 
23173
  return 0;
 
23174
}
 
23175
_ACEOF
 
23176
rm -f conftest.$ac_objext conftest$ac_exeext
 
23177
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23178
  (eval $ac_link) 2>conftest.er1
 
23179
  ac_status=$?
 
23180
  grep -v '^ *+' conftest.er1 >conftest.err
 
23181
  rm -f conftest.er1
 
23182
  cat conftest.err >&5
 
23183
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23184
  (exit $ac_status); } &&
 
23185
         { ac_try='test -z "$ac_c_werror_flag"
 
23186
                         || test ! -s conftest.err'
 
23187
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23188
  (eval $ac_try) 2>&5
 
23189
  ac_status=$?
 
23190
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23191
  (exit $ac_status); }; } &&
 
23192
         { ac_try='test -s conftest$ac_exeext'
 
23193
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23194
  (eval $ac_try) 2>&5
 
23195
  ac_status=$?
 
23196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23197
  (exit $ac_status); }; }; then
 
23198
  eval "$as_ac_var=yes"
 
23199
else
 
23200
  echo "$as_me: failed program was:" >&5
 
23201
sed 's/^/| /' conftest.$ac_ext >&5
 
23202
 
 
23203
eval "$as_ac_var=no"
 
23204
fi
 
23205
rm -f conftest.err conftest.$ac_objext \
 
23206
      conftest$ac_exeext conftest.$ac_ext
 
23207
fi
 
23208
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
23209
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
23210
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
23211
  cat >>confdefs.h <<_ACEOF
 
23212
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
23213
_ACEOF
 
23214
 
 
23215
fi
 
23216
done
 
23217
 
9058
23218
 
9059
23219
#
9060
23220
# Start of pkg-config checks
9061
23221
#
9062
 
ORBIT_VERSION=2.3.100
9063
 
GLIB_VERSION=1.3.11
 
23222
ORBIT_VERSION=2.9.2
 
23223
GLIB_VERSION=2.3.2
 
23224
 
9064
23225
 
9065
23226
  succeeded=no
9066
23227
 
9067
23228
  if test -z "$PKG_CONFIG"; then
9068
23229
    # Extract the first word of "pkg-config", so it can be a program name with args.
9069
23230
set dummy pkg-config; ac_word=$2
9070
 
echo "$as_me:9070: checking for $ac_word" >&5
 
23231
echo "$as_me:$LINENO: checking for $ac_word" >&5
9071
23232
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9072
23233
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9073
23234
  echo $ECHO_N "(cached) $ECHO_C" >&6
9077
23238
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9078
23239
  ;;
9079
23240
  *)
9080
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
9081
 
ac_dummy="$PATH"
9082
 
for ac_dir in $ac_dummy; do
9083
 
  IFS=$ac_save_IFS
9084
 
  test -z "$ac_dir" && ac_dir=.
9085
 
  if $as_executable_p "$ac_dir/$ac_word"; then
9086
 
   ac_cv_path_PKG_CONFIG="$ac_dir/$ac_word"
9087
 
   echo "$as_me:9087: found $ac_dir/$ac_word" >&5
9088
 
   break
9089
 
fi
 
23241
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23242
for as_dir in $PATH
 
23243
do
 
23244
  IFS=$as_save_IFS
 
23245
  test -z "$as_dir" && as_dir=.
 
23246
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23247
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23248
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23249
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23250
    break 2
 
23251
  fi
 
23252
done
9090
23253
done
9091
23254
 
9092
23255
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9096
23259
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9097
23260
 
9098
23261
if test -n "$PKG_CONFIG"; then
9099
 
  echo "$as_me:9099: result: $PKG_CONFIG" >&5
 
23262
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9100
23263
echo "${ECHO_T}$PKG_CONFIG" >&6
9101
23264
else
9102
 
  echo "$as_me:9102: result: no" >&5
 
23265
  echo "$as_me:$LINENO: result: no" >&5
9103
23266
echo "${ECHO_T}no" >&6
9104
23267
fi
9105
23268
 
9113
23276
  else
9114
23277
     PKG_CONFIG_MIN_VERSION=0.9.0
9115
23278
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9116
 
        echo "$as_me:9116: checking for \
 
23279
        echo "$as_me:$LINENO: checking for \
9117
23280
        ORBit-2.0 >= $ORBIT_VERSION \
9118
23281
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9119
23282
        glib-2.0 >= $GLIB_VERSION \
9120
23283
        gobject-2.0 >= $GLIB_VERSION \
9121
 
        gthread-2.0 >= $GLIB_VERSION \
9122
 
        bonobo-activation-2.0 >= 0.9.3" >&5
 
23284
        gthread-2.0 >= $GLIB_VERSION" >&5
9123
23285
echo $ECHO_N "checking for \
9124
23286
        ORBit-2.0 >= $ORBIT_VERSION \
9125
23287
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9126
23288
        glib-2.0 >= $GLIB_VERSION \
9127
23289
        gobject-2.0 >= $GLIB_VERSION \
9128
 
        gthread-2.0 >= $GLIB_VERSION \
9129
 
        bonobo-activation-2.0 >= 0.9.3... $ECHO_C" >&6
 
23290
        gthread-2.0 >= $GLIB_VERSION... $ECHO_C" >&6
9130
23291
 
9131
23292
        if $PKG_CONFIG --exists "\
9132
23293
        ORBit-2.0 >= $ORBIT_VERSION \
9133
23294
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9134
23295
        glib-2.0 >= $GLIB_VERSION \
9135
23296
        gobject-2.0 >= $GLIB_VERSION \
9136
 
        gthread-2.0 >= $GLIB_VERSION \
9137
 
        bonobo-activation-2.0 >= 0.9.3" ; then
9138
 
            echo "$as_me:9138: result: yes" >&5
 
23297
        gthread-2.0 >= $GLIB_VERSION" ; then
 
23298
            echo "$as_me:$LINENO: result: yes" >&5
9139
23299
echo "${ECHO_T}yes" >&6
9140
23300
            succeeded=yes
9141
23301
 
9142
 
            echo "$as_me:9142: checking LIBBONOBO_CFLAGS" >&5
 
23302
            echo "$as_me:$LINENO: checking LIBBONOBO_CFLAGS" >&5
9143
23303
echo $ECHO_N "checking LIBBONOBO_CFLAGS... $ECHO_C" >&6
9144
23304
            LIBBONOBO_CFLAGS=`$PKG_CONFIG --cflags "\
9145
23305
        ORBit-2.0 >= $ORBIT_VERSION \
9146
23306
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9147
23307
        glib-2.0 >= $GLIB_VERSION \
9148
23308
        gobject-2.0 >= $GLIB_VERSION \
9149
 
        gthread-2.0 >= $GLIB_VERSION \
9150
 
        bonobo-activation-2.0 >= 0.9.3"`
9151
 
            echo "$as_me:9151: result: $LIBBONOBO_CFLAGS" >&5
 
23309
        gthread-2.0 >= $GLIB_VERSION"`
 
23310
            echo "$as_me:$LINENO: result: $LIBBONOBO_CFLAGS" >&5
9152
23311
echo "${ECHO_T}$LIBBONOBO_CFLAGS" >&6
9153
23312
 
9154
 
            echo "$as_me:9154: checking LIBBONOBO_LIBS" >&5
 
23313
            echo "$as_me:$LINENO: checking LIBBONOBO_LIBS" >&5
9155
23314
echo $ECHO_N "checking LIBBONOBO_LIBS... $ECHO_C" >&6
9156
23315
            LIBBONOBO_LIBS=`$PKG_CONFIG --libs "\
9157
23316
        ORBit-2.0 >= $ORBIT_VERSION \
9158
23317
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9159
23318
        glib-2.0 >= $GLIB_VERSION \
9160
23319
        gobject-2.0 >= $GLIB_VERSION \
9161
 
        gthread-2.0 >= $GLIB_VERSION \
9162
 
        bonobo-activation-2.0 >= 0.9.3"`
9163
 
            echo "$as_me:9163: result: $LIBBONOBO_LIBS" >&5
 
23320
        gthread-2.0 >= $GLIB_VERSION"`
 
23321
            echo "$as_me:$LINENO: result: $LIBBONOBO_LIBS" >&5
9164
23322
echo "${ECHO_T}$LIBBONOBO_LIBS" >&6
9165
23323
        else
9166
23324
            LIBBONOBO_CFLAGS=""
9172
23330
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9173
23331
        glib-2.0 >= $GLIB_VERSION \
9174
23332
        gobject-2.0 >= $GLIB_VERSION \
9175
 
        gthread-2.0 >= $GLIB_VERSION \
9176
 
        bonobo-activation-2.0 >= 0.9.3"`
 
23333
        gthread-2.0 >= $GLIB_VERSION"`
9177
23334
            echo $LIBBONOBO_PKG_ERRORS
9178
23335
        fi
9179
23336
 
9180
 
     else
9181
 
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
9182
 
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
9183
 
     fi
9184
 
  fi
9185
 
 
9186
 
  if test $succeeded = yes; then
9187
 
     :
9188
 
  else
9189
 
     { { echo "$as_me:9189: error: Library requirements (\
9190
 
        ORBit-2.0 >= $ORBIT_VERSION \
9191
 
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9192
 
        glib-2.0 >= $GLIB_VERSION \
9193
 
        gobject-2.0 >= $GLIB_VERSION \
9194
 
        gthread-2.0 >= $GLIB_VERSION \
9195
 
        bonobo-activation-2.0 >= 0.9.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
9196
 
echo "$as_me: error: Library requirements (\
9197
 
        ORBit-2.0 >= $ORBIT_VERSION \
9198
 
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
9199
 
        glib-2.0 >= $GLIB_VERSION \
9200
 
        gobject-2.0 >= $GLIB_VERSION \
9201
 
        gthread-2.0 >= $GLIB_VERSION \
9202
 
        bonobo-activation-2.0 >= 0.9.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
9203
 
   { (exit 1); exit 1; }; }
9204
 
  fi
9205
 
 
9206
 
# Always define this for the moment
9207
 
cat >>confdefs.h <<\EOF
9208
 
#define ENABLE_ORBIT2 1
9209
 
EOF
 
23337
 
 
23338
 
 
23339
     else
 
23340
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
23341
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
23342
     fi
 
23343
  fi
 
23344
 
 
23345
  if test $succeeded = yes; then
 
23346
     :
 
23347
  else
 
23348
     { { echo "$as_me:$LINENO: error: Library requirements (\
 
23349
        ORBit-2.0 >= $ORBIT_VERSION \
 
23350
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
 
23351
        glib-2.0 >= $GLIB_VERSION \
 
23352
        gobject-2.0 >= $GLIB_VERSION \
 
23353
        gthread-2.0 >= $GLIB_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
23354
echo "$as_me: error: Library requirements (\
 
23355
        ORBit-2.0 >= $ORBIT_VERSION \
 
23356
        ORBit-CosNaming-2.0 >= $ORBIT_VERSION \
 
23357
        glib-2.0 >= $GLIB_VERSION \
 
23358
        gobject-2.0 >= $GLIB_VERSION \
 
23359
        gthread-2.0 >= $GLIB_VERSION) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
23360
   { (exit 1); exit 1; }; }
 
23361
  fi
 
23362
 
 
23363
 
 
23364
 
 
23365
 
 
23366
 
 
23367
  succeeded=no
 
23368
 
 
23369
  if test -z "$PKG_CONFIG"; then
 
23370
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
23371
set dummy pkg-config; ac_word=$2
 
23372
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23374
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
23375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23376
else
 
23377
  case $PKG_CONFIG in
 
23378
  [\\/]* | ?:[\\/]*)
 
23379
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
23380
  ;;
 
23381
  *)
 
23382
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23383
for as_dir in $PATH
 
23384
do
 
23385
  IFS=$as_save_IFS
 
23386
  test -z "$as_dir" && as_dir=.
 
23387
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23388
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23389
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23390
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23391
    break 2
 
23392
  fi
 
23393
done
 
23394
done
 
23395
 
 
23396
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
23397
  ;;
 
23398
esac
 
23399
fi
 
23400
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
23401
 
 
23402
if test -n "$PKG_CONFIG"; then
 
23403
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
23404
echo "${ECHO_T}$PKG_CONFIG" >&6
 
23405
else
 
23406
  echo "$as_me:$LINENO: result: no" >&5
 
23407
echo "${ECHO_T}no" >&6
 
23408
fi
 
23409
 
 
23410
  fi
 
23411
 
 
23412
  if test "$PKG_CONFIG" = "no" ; then
 
23413
     echo "*** The pkg-config script could not be found. Make sure it is"
 
23414
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
23415
     echo "*** to the full path to pkg-config."
 
23416
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
23417
  else
 
23418
     PKG_CONFIG_MIN_VERSION=0.9.0
 
23419
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
23420
        echo "$as_me:$LINENO: checking for \
 
23421
        gmodule-2.0 >= 2.0.1 \
 
23422
        ORBit-2.0 >= 2.4.0 \
 
23423
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23424
        libxml-2.0 >= 2.4.20" >&5
 
23425
echo $ECHO_N "checking for \
 
23426
        gmodule-2.0 >= 2.0.1 \
 
23427
        ORBit-2.0 >= 2.4.0 \
 
23428
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23429
        libxml-2.0 >= 2.4.20... $ECHO_C" >&6
 
23430
 
 
23431
        if $PKG_CONFIG --exists "\
 
23432
        gmodule-2.0 >= 2.0.1 \
 
23433
        ORBit-2.0 >= 2.4.0 \
 
23434
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23435
        libxml-2.0 >= 2.4.20" ; then
 
23436
            echo "$as_me:$LINENO: result: yes" >&5
 
23437
echo "${ECHO_T}yes" >&6
 
23438
            succeeded=yes
 
23439
 
 
23440
            echo "$as_me:$LINENO: checking SERVER_CFLAGS" >&5
 
23441
echo $ECHO_N "checking SERVER_CFLAGS... $ECHO_C" >&6
 
23442
            SERVER_CFLAGS=`$PKG_CONFIG --cflags "\
 
23443
        gmodule-2.0 >= 2.0.1 \
 
23444
        ORBit-2.0 >= 2.4.0 \
 
23445
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23446
        libxml-2.0 >= 2.4.20"`
 
23447
            echo "$as_me:$LINENO: result: $SERVER_CFLAGS" >&5
 
23448
echo "${ECHO_T}$SERVER_CFLAGS" >&6
 
23449
 
 
23450
            echo "$as_me:$LINENO: checking SERVER_LIBS" >&5
 
23451
echo $ECHO_N "checking SERVER_LIBS... $ECHO_C" >&6
 
23452
            SERVER_LIBS=`$PKG_CONFIG --libs "\
 
23453
        gmodule-2.0 >= 2.0.1 \
 
23454
        ORBit-2.0 >= 2.4.0 \
 
23455
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23456
        libxml-2.0 >= 2.4.20"`
 
23457
            echo "$as_me:$LINENO: result: $SERVER_LIBS" >&5
 
23458
echo "${ECHO_T}$SERVER_LIBS" >&6
 
23459
        else
 
23460
            SERVER_CFLAGS=""
 
23461
            SERVER_LIBS=""
 
23462
            ## If we have a custom action on failure, don't print errors, but
 
23463
            ## do set a variable so people can do so.
 
23464
            SERVER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
 
23465
        gmodule-2.0 >= 2.0.1 \
 
23466
        ORBit-2.0 >= 2.4.0 \
 
23467
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23468
        libxml-2.0 >= 2.4.20"`
 
23469
            echo $SERVER_PKG_ERRORS
 
23470
        fi
 
23471
 
 
23472
 
 
23473
 
 
23474
     else
 
23475
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
23476
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
23477
     fi
 
23478
  fi
 
23479
 
 
23480
  if test $succeeded = yes; then
 
23481
     :
 
23482
  else
 
23483
     { { echo "$as_me:$LINENO: error: Library requirements (\
 
23484
        gmodule-2.0 >= 2.0.1 \
 
23485
        ORBit-2.0 >= 2.4.0 \
 
23486
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23487
        libxml-2.0 >= 2.4.20) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
 
23488
echo "$as_me: error: Library requirements (\
 
23489
        gmodule-2.0 >= 2.0.1 \
 
23490
        ORBit-2.0 >= 2.4.0 \
 
23491
        ORBit-CosNaming-2.0 >= 2.4.0 \
 
23492
        libxml-2.0 >= 2.4.20) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
 
23493
   { (exit 1); exit 1; }; }
 
23494
  fi
 
23495
 
 
23496
 
 
23497
 
9210
23498
 
9211
23499
# orbit-idl
9212
23500
ORBIT_IDL="`$PKG_CONFIG --variable=orbit_idl ORBit-2.0`"
9213
23501
 
 
23502
 
 
23503
# popt
 
23504
echo "$as_me:$LINENO: checking for poptStrippedArgv in -lpopt" >&5
 
23505
echo $ECHO_N "checking for poptStrippedArgv in -lpopt... $ECHO_C" >&6
 
23506
if test "${ac_cv_lib_popt_poptStrippedArgv+set}" = set; then
 
23507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23508
else
 
23509
  ac_check_lib_save_LIBS=$LIBS
 
23510
LIBS="-lpopt  $LIBS"
 
23511
cat >conftest.$ac_ext <<_ACEOF
 
23512
/* confdefs.h.  */
 
23513
_ACEOF
 
23514
cat confdefs.h >>conftest.$ac_ext
 
23515
cat >>conftest.$ac_ext <<_ACEOF
 
23516
/* end confdefs.h.  */
 
23517
 
 
23518
/* Override any gcc2 internal prototype to avoid an error.  */
 
23519
#ifdef __cplusplus
 
23520
extern "C"
 
23521
#endif
 
23522
/* We use char because int might match the return type of a gcc2
 
23523
   builtin and then its argument prototype would still apply.  */
 
23524
char poptStrippedArgv ();
 
23525
int
 
23526
main ()
 
23527
{
 
23528
poptStrippedArgv ();
 
23529
  ;
 
23530
  return 0;
 
23531
}
 
23532
_ACEOF
 
23533
rm -f conftest.$ac_objext conftest$ac_exeext
 
23534
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23535
  (eval $ac_link) 2>conftest.er1
 
23536
  ac_status=$?
 
23537
  grep -v '^ *+' conftest.er1 >conftest.err
 
23538
  rm -f conftest.er1
 
23539
  cat conftest.err >&5
 
23540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23541
  (exit $ac_status); } &&
 
23542
         { ac_try='test -z "$ac_c_werror_flag"
 
23543
                         || test ! -s conftest.err'
 
23544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23545
  (eval $ac_try) 2>&5
 
23546
  ac_status=$?
 
23547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23548
  (exit $ac_status); }; } &&
 
23549
         { ac_try='test -s conftest$ac_exeext'
 
23550
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23551
  (eval $ac_try) 2>&5
 
23552
  ac_status=$?
 
23553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23554
  (exit $ac_status); }; }; then
 
23555
  ac_cv_lib_popt_poptStrippedArgv=yes
 
23556
else
 
23557
  echo "$as_me: failed program was:" >&5
 
23558
sed 's/^/| /' conftest.$ac_ext >&5
 
23559
 
 
23560
ac_cv_lib_popt_poptStrippedArgv=no
 
23561
fi
 
23562
rm -f conftest.err conftest.$ac_objext \
 
23563
      conftest$ac_exeext conftest.$ac_ext
 
23564
LIBS=$ac_check_lib_save_LIBS
 
23565
fi
 
23566
echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptStrippedArgv" >&5
 
23567
echo "${ECHO_T}$ac_cv_lib_popt_poptStrippedArgv" >&6
 
23568
if test $ac_cv_lib_popt_poptStrippedArgv = yes; then
 
23569
  POPT_LIBS=-lpopt
 
23570
else
 
23571
  { { echo "$as_me:$LINENO: error: You must have popt version 1.5 or greater installed." >&5
 
23572
echo "$as_me: error: You must have popt version 1.5 or greater installed." >&2;}
 
23573
   { (exit 1); exit 1; }; }
 
23574
fi
 
23575
 
 
23576
 
 
23577
if test "${ac_cv_header_popt_h+set}" = set; then
 
23578
  echo "$as_me:$LINENO: checking for popt.h" >&5
 
23579
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
 
23580
if test "${ac_cv_header_popt_h+set}" = set; then
 
23581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23582
fi
 
23583
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
 
23584
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
 
23585
else
 
23586
  # Is the header compilable?
 
23587
echo "$as_me:$LINENO: checking popt.h usability" >&5
 
23588
echo $ECHO_N "checking popt.h usability... $ECHO_C" >&6
 
23589
cat >conftest.$ac_ext <<_ACEOF
 
23590
/* confdefs.h.  */
 
23591
_ACEOF
 
23592
cat confdefs.h >>conftest.$ac_ext
 
23593
cat >>conftest.$ac_ext <<_ACEOF
 
23594
/* end confdefs.h.  */
 
23595
$ac_includes_default
 
23596
#include <popt.h>
 
23597
_ACEOF
 
23598
rm -f conftest.$ac_objext
 
23599
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23600
  (eval $ac_compile) 2>conftest.er1
 
23601
  ac_status=$?
 
23602
  grep -v '^ *+' conftest.er1 >conftest.err
 
23603
  rm -f conftest.er1
 
23604
  cat conftest.err >&5
 
23605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23606
  (exit $ac_status); } &&
 
23607
         { ac_try='test -z "$ac_c_werror_flag"
 
23608
                         || test ! -s conftest.err'
 
23609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23610
  (eval $ac_try) 2>&5
 
23611
  ac_status=$?
 
23612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23613
  (exit $ac_status); }; } &&
 
23614
         { ac_try='test -s conftest.$ac_objext'
 
23615
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23616
  (eval $ac_try) 2>&5
 
23617
  ac_status=$?
 
23618
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23619
  (exit $ac_status); }; }; then
 
23620
  ac_header_compiler=yes
 
23621
else
 
23622
  echo "$as_me: failed program was:" >&5
 
23623
sed 's/^/| /' conftest.$ac_ext >&5
 
23624
 
 
23625
ac_header_compiler=no
 
23626
fi
 
23627
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23628
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23629
echo "${ECHO_T}$ac_header_compiler" >&6
 
23630
 
 
23631
# Is the header present?
 
23632
echo "$as_me:$LINENO: checking popt.h presence" >&5
 
23633
echo $ECHO_N "checking popt.h presence... $ECHO_C" >&6
 
23634
cat >conftest.$ac_ext <<_ACEOF
 
23635
/* confdefs.h.  */
 
23636
_ACEOF
 
23637
cat confdefs.h >>conftest.$ac_ext
 
23638
cat >>conftest.$ac_ext <<_ACEOF
 
23639
/* end confdefs.h.  */
 
23640
#include <popt.h>
 
23641
_ACEOF
 
23642
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23643
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23644
  ac_status=$?
 
23645
  grep -v '^ *+' conftest.er1 >conftest.err
 
23646
  rm -f conftest.er1
 
23647
  cat conftest.err >&5
 
23648
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23649
  (exit $ac_status); } >/dev/null; then
 
23650
  if test -s conftest.err; then
 
23651
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23652
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23653
  else
 
23654
    ac_cpp_err=
 
23655
  fi
 
23656
else
 
23657
  ac_cpp_err=yes
 
23658
fi
 
23659
if test -z "$ac_cpp_err"; then
 
23660
  ac_header_preproc=yes
 
23661
else
 
23662
  echo "$as_me: failed program was:" >&5
 
23663
sed 's/^/| /' conftest.$ac_ext >&5
 
23664
 
 
23665
  ac_header_preproc=no
 
23666
fi
 
23667
rm -f conftest.err conftest.$ac_ext
 
23668
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23669
echo "${ECHO_T}$ac_header_preproc" >&6
 
23670
 
 
23671
# So?  What about this header?
 
23672
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23673
  yes:no: )
 
23674
    { echo "$as_me:$LINENO: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
23675
echo "$as_me: WARNING: popt.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23676
    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the compiler's result" >&5
 
23677
echo "$as_me: WARNING: popt.h: proceeding with the compiler's result" >&2;}
 
23678
    ac_header_preproc=yes
 
23679
    ;;
 
23680
  no:yes:* )
 
23681
    { echo "$as_me:$LINENO: WARNING: popt.h: present but cannot be compiled" >&5
 
23682
echo "$as_me: WARNING: popt.h: present but cannot be compiled" >&2;}
 
23683
    { echo "$as_me:$LINENO: WARNING: popt.h:     check for missing prerequisite headers?" >&5
 
23684
echo "$as_me: WARNING: popt.h:     check for missing prerequisite headers?" >&2;}
 
23685
    { echo "$as_me:$LINENO: WARNING: popt.h: see the Autoconf documentation" >&5
 
23686
echo "$as_me: WARNING: popt.h: see the Autoconf documentation" >&2;}
 
23687
    { echo "$as_me:$LINENO: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&5
 
23688
echo "$as_me: WARNING: popt.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23689
    { echo "$as_me:$LINENO: WARNING: popt.h: proceeding with the preprocessor's result" >&5
 
23690
echo "$as_me: WARNING: popt.h: proceeding with the preprocessor's result" >&2;}
 
23691
    { echo "$as_me:$LINENO: WARNING: popt.h: in the future, the compiler will take precedence" >&5
 
23692
echo "$as_me: WARNING: popt.h: in the future, the compiler will take precedence" >&2;}
 
23693
    (
 
23694
      cat <<\_ASBOX
 
23695
## ------------------------------------------ ##
 
23696
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23697
## ------------------------------------------ ##
 
23698
_ASBOX
 
23699
    ) |
 
23700
      sed "s/^/$as_me: WARNING:     /" >&2
 
23701
    ;;
 
23702
esac
 
23703
echo "$as_me:$LINENO: checking for popt.h" >&5
 
23704
echo $ECHO_N "checking for popt.h... $ECHO_C" >&6
 
23705
if test "${ac_cv_header_popt_h+set}" = set; then
 
23706
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23707
else
 
23708
  ac_cv_header_popt_h=$ac_header_preproc
 
23709
fi
 
23710
echo "$as_me:$LINENO: result: $ac_cv_header_popt_h" >&5
 
23711
echo "${ECHO_T}$ac_cv_header_popt_h" >&6
 
23712
 
 
23713
fi
 
23714
if test $ac_cv_header_popt_h = yes; then
 
23715
  :
 
23716
else
 
23717
  { { echo "$as_me:$LINENO: error: Failed to find popt.h - you may have to adjust your environment" >&5
 
23718
echo "$as_me: error: Failed to find popt.h - you may have to adjust your environment" >&2;}
 
23719
   { (exit 1); exit 1; }; }
 
23720
fi
 
23721
 
 
23722
 
 
23723
 
 
23724
# checks for getaddrinfo()
 
23725
 
 
23726
have_getaddrinfo=no
 
23727
echo "$as_me:$LINENO: checking for getaddrinfo" >&5
 
23728
echo $ECHO_N "checking for getaddrinfo... $ECHO_C" >&6
 
23729
if test "${ac_cv_func_getaddrinfo+set}" = set; then
 
23730
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23731
else
 
23732
  cat >conftest.$ac_ext <<_ACEOF
 
23733
/* confdefs.h.  */
 
23734
_ACEOF
 
23735
cat confdefs.h >>conftest.$ac_ext
 
23736
cat >>conftest.$ac_ext <<_ACEOF
 
23737
/* end confdefs.h.  */
 
23738
/* Define getaddrinfo to an innocuous variant, in case <limits.h> declares getaddrinfo.
 
23739
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23740
#define getaddrinfo innocuous_getaddrinfo
 
23741
 
 
23742
/* System header to define __stub macros and hopefully few prototypes,
 
23743
    which can conflict with char getaddrinfo (); below.
 
23744
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23745
    <limits.h> exists even on freestanding compilers.  */
 
23746
 
 
23747
#ifdef __STDC__
 
23748
# include <limits.h>
 
23749
#else
 
23750
# include <assert.h>
 
23751
#endif
 
23752
 
 
23753
#undef getaddrinfo
 
23754
 
 
23755
/* Override any gcc2 internal prototype to avoid an error.  */
 
23756
#ifdef __cplusplus
 
23757
extern "C"
 
23758
{
 
23759
#endif
 
23760
/* We use char because int might match the return type of a gcc2
 
23761
   builtin and then its argument prototype would still apply.  */
 
23762
char getaddrinfo ();
 
23763
/* The GNU C library defines this for functions which it implements
 
23764
    to always fail with ENOSYS.  Some functions are actually named
 
23765
    something starting with __ and the normal name is an alias.  */
 
23766
#if defined (__stub_getaddrinfo) || defined (__stub___getaddrinfo)
 
23767
choke me
 
23768
#else
 
23769
char (*f) () = getaddrinfo;
 
23770
#endif
 
23771
#ifdef __cplusplus
 
23772
}
 
23773
#endif
 
23774
 
 
23775
int
 
23776
main ()
 
23777
{
 
23778
return f != getaddrinfo;
 
23779
  ;
 
23780
  return 0;
 
23781
}
 
23782
_ACEOF
 
23783
rm -f conftest.$ac_objext conftest$ac_exeext
 
23784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23785
  (eval $ac_link) 2>conftest.er1
 
23786
  ac_status=$?
 
23787
  grep -v '^ *+' conftest.er1 >conftest.err
 
23788
  rm -f conftest.er1
 
23789
  cat conftest.err >&5
 
23790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23791
  (exit $ac_status); } &&
 
23792
         { ac_try='test -z "$ac_c_werror_flag"
 
23793
                         || test ! -s conftest.err'
 
23794
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23795
  (eval $ac_try) 2>&5
 
23796
  ac_status=$?
 
23797
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23798
  (exit $ac_status); }; } &&
 
23799
         { ac_try='test -s conftest$ac_exeext'
 
23800
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23801
  (eval $ac_try) 2>&5
 
23802
  ac_status=$?
 
23803
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23804
  (exit $ac_status); }; }; then
 
23805
  ac_cv_func_getaddrinfo=yes
 
23806
else
 
23807
  echo "$as_me: failed program was:" >&5
 
23808
sed 's/^/| /' conftest.$ac_ext >&5
 
23809
 
 
23810
ac_cv_func_getaddrinfo=no
 
23811
fi
 
23812
rm -f conftest.err conftest.$ac_objext \
 
23813
      conftest$ac_exeext conftest.$ac_ext
 
23814
fi
 
23815
echo "$as_me:$LINENO: result: $ac_cv_func_getaddrinfo" >&5
 
23816
echo "${ECHO_T}$ac_cv_func_getaddrinfo" >&6
 
23817
if test $ac_cv_func_getaddrinfo = yes; then
 
23818
  have_getaddrinfo=yes
 
23819
fi
 
23820
 
 
23821
if test $have_getaddrinfo != yes; then
 
23822
# getaddrinfo is not in the default libraries. See if it is in some other.
 
23823
  for lib in bsd socket inet; do
 
23824
    as_ac_Lib=`echo "ac_cv_lib_$lib''_getaddrinfo" | $as_tr_sh`
 
23825
echo "$as_me:$LINENO: checking for getaddrinfo in -l$lib" >&5
 
23826
echo $ECHO_N "checking for getaddrinfo in -l$lib... $ECHO_C" >&6
 
23827
if eval "test \"\${$as_ac_Lib+set}\" = set"; then
 
23828
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23829
else
 
23830
  ac_check_lib_save_LIBS=$LIBS
 
23831
LIBS="-l$lib  $LIBS"
 
23832
cat >conftest.$ac_ext <<_ACEOF
 
23833
/* confdefs.h.  */
 
23834
_ACEOF
 
23835
cat confdefs.h >>conftest.$ac_ext
 
23836
cat >>conftest.$ac_ext <<_ACEOF
 
23837
/* end confdefs.h.  */
 
23838
 
 
23839
/* Override any gcc2 internal prototype to avoid an error.  */
 
23840
#ifdef __cplusplus
 
23841
extern "C"
 
23842
#endif
 
23843
/* We use char because int might match the return type of a gcc2
 
23844
   builtin and then its argument prototype would still apply.  */
 
23845
char getaddrinfo ();
 
23846
int
 
23847
main ()
 
23848
{
 
23849
getaddrinfo ();
 
23850
  ;
 
23851
  return 0;
 
23852
}
 
23853
_ACEOF
 
23854
rm -f conftest.$ac_objext conftest$ac_exeext
 
23855
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23856
  (eval $ac_link) 2>conftest.er1
 
23857
  ac_status=$?
 
23858
  grep -v '^ *+' conftest.er1 >conftest.err
 
23859
  rm -f conftest.er1
 
23860
  cat conftest.err >&5
 
23861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23862
  (exit $ac_status); } &&
 
23863
         { ac_try='test -z "$ac_c_werror_flag"
 
23864
                         || test ! -s conftest.err'
 
23865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23866
  (eval $ac_try) 2>&5
 
23867
  ac_status=$?
 
23868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23869
  (exit $ac_status); }; } &&
 
23870
         { ac_try='test -s conftest$ac_exeext'
 
23871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23872
  (eval $ac_try) 2>&5
 
23873
  ac_status=$?
 
23874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23875
  (exit $ac_status); }; }; then
 
23876
  eval "$as_ac_Lib=yes"
 
23877
else
 
23878
  echo "$as_me: failed program was:" >&5
 
23879
sed 's/^/| /' conftest.$ac_ext >&5
 
23880
 
 
23881
eval "$as_ac_Lib=no"
 
23882
fi
 
23883
rm -f conftest.err conftest.$ac_objext \
 
23884
      conftest$ac_exeext conftest.$ac_ext
 
23885
LIBS=$ac_check_lib_save_LIBS
 
23886
fi
 
23887
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Lib'}'`" >&5
 
23888
echo "${ECHO_T}`eval echo '${'$as_ac_Lib'}'`" >&6
 
23889
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
 
23890
  LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break
 
23891
fi
 
23892
 
 
23893
  done
 
23894
fi
 
23895
if test $have_getaddrinfo = yes; then
 
23896
 
 
23897
cat >>confdefs.h <<\_ACEOF
 
23898
#define HAVE_GETADDRINFO 1
 
23899
_ACEOF
 
23900
 
 
23901
fi
 
23902
 
 
23903
#end checks for getaddrinfo
 
23904
 
 
23905
# Checks for Apple Darwin
 
23906
 
 
23907
echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
 
23908
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6
 
23909
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
 
23910
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23911
else
 
23912
  cat >conftest.$ac_ext <<_ACEOF
 
23913
/* confdefs.h.  */
 
23914
_ACEOF
 
23915
cat confdefs.h >>conftest.$ac_ext
 
23916
cat >>conftest.$ac_ext <<_ACEOF
 
23917
/* end confdefs.h.  */
 
23918
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
 
23919
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
23920
#define _NSGetEnviron innocuous__NSGetEnviron
 
23921
 
 
23922
/* System header to define __stub macros and hopefully few prototypes,
 
23923
    which can conflict with char _NSGetEnviron (); below.
 
23924
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
23925
    <limits.h> exists even on freestanding compilers.  */
 
23926
 
 
23927
#ifdef __STDC__
 
23928
# include <limits.h>
 
23929
#else
 
23930
# include <assert.h>
 
23931
#endif
 
23932
 
 
23933
#undef _NSGetEnviron
 
23934
 
 
23935
/* Override any gcc2 internal prototype to avoid an error.  */
 
23936
#ifdef __cplusplus
 
23937
extern "C"
 
23938
{
 
23939
#endif
 
23940
/* We use char because int might match the return type of a gcc2
 
23941
   builtin and then its argument prototype would still apply.  */
 
23942
char _NSGetEnviron ();
 
23943
/* The GNU C library defines this for functions which it implements
 
23944
    to always fail with ENOSYS.  Some functions are actually named
 
23945
    something starting with __ and the normal name is an alias.  */
 
23946
#if defined (__stub__NSGetEnviron) || defined (__stub____NSGetEnviron)
 
23947
choke me
 
23948
#else
 
23949
char (*f) () = _NSGetEnviron;
 
23950
#endif
 
23951
#ifdef __cplusplus
 
23952
}
 
23953
#endif
 
23954
 
 
23955
int
 
23956
main ()
 
23957
{
 
23958
return f != _NSGetEnviron;
 
23959
  ;
 
23960
  return 0;
 
23961
}
 
23962
_ACEOF
 
23963
rm -f conftest.$ac_objext conftest$ac_exeext
 
23964
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23965
  (eval $ac_link) 2>conftest.er1
 
23966
  ac_status=$?
 
23967
  grep -v '^ *+' conftest.er1 >conftest.err
 
23968
  rm -f conftest.er1
 
23969
  cat conftest.err >&5
 
23970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23971
  (exit $ac_status); } &&
 
23972
         { ac_try='test -z "$ac_c_werror_flag"
 
23973
                         || test ! -s conftest.err'
 
23974
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23975
  (eval $ac_try) 2>&5
 
23976
  ac_status=$?
 
23977
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23978
  (exit $ac_status); }; } &&
 
23979
         { ac_try='test -s conftest$ac_exeext'
 
23980
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23981
  (eval $ac_try) 2>&5
 
23982
  ac_status=$?
 
23983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23984
  (exit $ac_status); }; }; then
 
23985
  ac_cv_func__NSGetEnviron=yes
 
23986
else
 
23987
  echo "$as_me: failed program was:" >&5
 
23988
sed 's/^/| /' conftest.$ac_ext >&5
 
23989
 
 
23990
ac_cv_func__NSGetEnviron=no
 
23991
fi
 
23992
rm -f conftest.err conftest.$ac_objext \
 
23993
      conftest$ac_exeext conftest.$ac_ext
 
23994
fi
 
23995
echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
 
23996
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6
 
23997
if test $ac_cv_func__NSGetEnviron = yes; then
 
23998
  have_ns_getenviron=yes
 
23999
fi
 
24000
 
 
24001
if test x$have_ns_getenviron = xyes; then
 
24002
 
 
24003
cat >>confdefs.h <<\_ACEOF
 
24004
#define HAVE_NSGETENVIRON 1
 
24005
_ACEOF
 
24006
 
 
24007
fi
 
24008
if test "${ac_cv_header_crt_externs_h+set}" = set; then
 
24009
  echo "$as_me:$LINENO: checking for crt_externs.h" >&5
 
24010
echo $ECHO_N "checking for crt_externs.h... $ECHO_C" >&6
 
24011
if test "${ac_cv_header_crt_externs_h+set}" = set; then
 
24012
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24013
fi
 
24014
echo "$as_me:$LINENO: result: $ac_cv_header_crt_externs_h" >&5
 
24015
echo "${ECHO_T}$ac_cv_header_crt_externs_h" >&6
 
24016
else
 
24017
  # Is the header compilable?
 
24018
echo "$as_me:$LINENO: checking crt_externs.h usability" >&5
 
24019
echo $ECHO_N "checking crt_externs.h usability... $ECHO_C" >&6
 
24020
cat >conftest.$ac_ext <<_ACEOF
 
24021
/* confdefs.h.  */
 
24022
_ACEOF
 
24023
cat confdefs.h >>conftest.$ac_ext
 
24024
cat >>conftest.$ac_ext <<_ACEOF
 
24025
/* end confdefs.h.  */
 
24026
$ac_includes_default
 
24027
#include <crt_externs.h>
 
24028
_ACEOF
 
24029
rm -f conftest.$ac_objext
 
24030
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
24031
  (eval $ac_compile) 2>conftest.er1
 
24032
  ac_status=$?
 
24033
  grep -v '^ *+' conftest.er1 >conftest.err
 
24034
  rm -f conftest.er1
 
24035
  cat conftest.err >&5
 
24036
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24037
  (exit $ac_status); } &&
 
24038
         { ac_try='test -z "$ac_c_werror_flag"
 
24039
                         || test ! -s conftest.err'
 
24040
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24041
  (eval $ac_try) 2>&5
 
24042
  ac_status=$?
 
24043
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24044
  (exit $ac_status); }; } &&
 
24045
         { ac_try='test -s conftest.$ac_objext'
 
24046
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
24047
  (eval $ac_try) 2>&5
 
24048
  ac_status=$?
 
24049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24050
  (exit $ac_status); }; }; then
 
24051
  ac_header_compiler=yes
 
24052
else
 
24053
  echo "$as_me: failed program was:" >&5
 
24054
sed 's/^/| /' conftest.$ac_ext >&5
 
24055
 
 
24056
ac_header_compiler=no
 
24057
fi
 
24058
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
24059
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
24060
echo "${ECHO_T}$ac_header_compiler" >&6
 
24061
 
 
24062
# Is the header present?
 
24063
echo "$as_me:$LINENO: checking crt_externs.h presence" >&5
 
24064
echo $ECHO_N "checking crt_externs.h presence... $ECHO_C" >&6
 
24065
cat >conftest.$ac_ext <<_ACEOF
 
24066
/* confdefs.h.  */
 
24067
_ACEOF
 
24068
cat confdefs.h >>conftest.$ac_ext
 
24069
cat >>conftest.$ac_ext <<_ACEOF
 
24070
/* end confdefs.h.  */
 
24071
#include <crt_externs.h>
 
24072
_ACEOF
 
24073
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
24074
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
24075
  ac_status=$?
 
24076
  grep -v '^ *+' conftest.er1 >conftest.err
 
24077
  rm -f conftest.er1
 
24078
  cat conftest.err >&5
 
24079
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
24080
  (exit $ac_status); } >/dev/null; then
 
24081
  if test -s conftest.err; then
 
24082
    ac_cpp_err=$ac_c_preproc_warn_flag
 
24083
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
24084
  else
 
24085
    ac_cpp_err=
 
24086
  fi
 
24087
else
 
24088
  ac_cpp_err=yes
 
24089
fi
 
24090
if test -z "$ac_cpp_err"; then
 
24091
  ac_header_preproc=yes
 
24092
else
 
24093
  echo "$as_me: failed program was:" >&5
 
24094
sed 's/^/| /' conftest.$ac_ext >&5
 
24095
 
 
24096
  ac_header_preproc=no
 
24097
fi
 
24098
rm -f conftest.err conftest.$ac_ext
 
24099
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
24100
echo "${ECHO_T}$ac_header_preproc" >&6
 
24101
 
 
24102
# So?  What about this header?
 
24103
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
24104
  yes:no: )
 
24105
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
24106
echo "$as_me: WARNING: crt_externs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
24107
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: proceeding with the compiler's result" >&5
 
24108
echo "$as_me: WARNING: crt_externs.h: proceeding with the compiler's result" >&2;}
 
24109
    ac_header_preproc=yes
 
24110
    ;;
 
24111
  no:yes:* )
 
24112
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: present but cannot be compiled" >&5
 
24113
echo "$as_me: WARNING: crt_externs.h: present but cannot be compiled" >&2;}
 
24114
    { echo "$as_me:$LINENO: WARNING: crt_externs.h:     check for missing prerequisite headers?" >&5
 
24115
echo "$as_me: WARNING: crt_externs.h:     check for missing prerequisite headers?" >&2;}
 
24116
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: see the Autoconf documentation" >&5
 
24117
echo "$as_me: WARNING: crt_externs.h: see the Autoconf documentation" >&2;}
 
24118
    { echo "$as_me:$LINENO: WARNING: crt_externs.h:     section \"Present But Cannot Be Compiled\"" >&5
 
24119
echo "$as_me: WARNING: crt_externs.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
24120
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: proceeding with the preprocessor's result" >&5
 
24121
echo "$as_me: WARNING: crt_externs.h: proceeding with the preprocessor's result" >&2;}
 
24122
    { echo "$as_me:$LINENO: WARNING: crt_externs.h: in the future, the compiler will take precedence" >&5
 
24123
echo "$as_me: WARNING: crt_externs.h: in the future, the compiler will take precedence" >&2;}
 
24124
    (
 
24125
      cat <<\_ASBOX
 
24126
## ------------------------------------------ ##
 
24127
## Report this to the AC_PACKAGE_NAME lists.  ##
 
24128
## ------------------------------------------ ##
 
24129
_ASBOX
 
24130
    ) |
 
24131
      sed "s/^/$as_me: WARNING:     /" >&2
 
24132
    ;;
 
24133
esac
 
24134
echo "$as_me:$LINENO: checking for crt_externs.h" >&5
 
24135
echo $ECHO_N "checking for crt_externs.h... $ECHO_C" >&6
 
24136
if test "${ac_cv_header_crt_externs_h+set}" = set; then
 
24137
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24138
else
 
24139
  ac_cv_header_crt_externs_h=$ac_header_preproc
 
24140
fi
 
24141
echo "$as_me:$LINENO: result: $ac_cv_header_crt_externs_h" >&5
 
24142
echo "${ECHO_T}$ac_cv_header_crt_externs_h" >&6
 
24143
 
 
24144
fi
 
24145
if test $ac_cv_header_crt_externs_h = yes; then
 
24146
  have_crt_externs=yes
 
24147
fi
 
24148
 
 
24149
 
 
24150
if test x$have_crt_externs = xyes; then
 
24151
 
 
24152
cat >>confdefs.h <<\_ACEOF
 
24153
#define HAVE_CRT_EXTERNS_H 1
 
24154
_ACEOF
 
24155
 
 
24156
fi
 
24157
 
9214
24158
# glib-genmarshal
9215
24159
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
9216
24160
set dummy glib-genmarshal; ac_word=$2
9217
 
echo "$as_me:9217: checking for $ac_word" >&5
 
24161
echo "$as_me:$LINENO: checking for $ac_word" >&5
9218
24162
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9219
24163
if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then
9220
24164
  echo $ECHO_N "(cached) $ECHO_C" >&6
9224
24168
  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
9225
24169
  ;;
9226
24170
  *)
9227
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
9228
 
ac_dummy="$PATH"
9229
 
for ac_dir in $ac_dummy; do
9230
 
  IFS=$ac_save_IFS
9231
 
  test -z "$ac_dir" && ac_dir=.
9232
 
  if $as_executable_p "$ac_dir/$ac_word"; then
9233
 
   ac_cv_path_GLIB_GENMARSHAL="$ac_dir/$ac_word"
9234
 
   echo "$as_me:9234: found $ac_dir/$ac_word" >&5
9235
 
   break
9236
 
fi
 
24171
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24172
for as_dir in $PATH
 
24173
do
 
24174
  IFS=$as_save_IFS
 
24175
  test -z "$as_dir" && as_dir=.
 
24176
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24177
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
24178
    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
 
24179
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24180
    break 2
 
24181
  fi
 
24182
done
9237
24183
done
9238
24184
 
9239
24185
  ;;
9242
24188
GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
9243
24189
 
9244
24190
if test -n "$GLIB_GENMARSHAL"; then
9245
 
  echo "$as_me:9245: result: $GLIB_GENMARSHAL" >&5
 
24191
  echo "$as_me:$LINENO: result: $GLIB_GENMARSHAL" >&5
9246
24192
echo "${ECHO_T}$GLIB_GENMARSHAL" >&6
9247
24193
else
9248
 
  echo "$as_me:9248: result: no" >&5
 
24194
  echo "$as_me:$LINENO: result: no" >&5
9249
24195
echo "${ECHO_T}no" >&6
9250
24196
fi
9251
24197
 
9252
 
# Activation idl files
9253
 
BONOBO_ACTIVATION_IDL_DIR="`$PKG_CONFIG --variable=idldir bonobo-activation-2.0`"
9254
 
 
9255
 
##################################################
9256
 
# Check for gtk-doc.
9257
 
##################################################
 
24198
 
 
24199
 
9258
24200
 
9259
24201
# Check whether --with-html-dir or --without-html-dir was given.
9260
24202
if test "${with_html_dir+set}" = set; then
9261
24203
  withval="$with_html_dir"
9262
24204
 
 
24205
else
 
24206
  with_html_dir='${datadir}/gtk-doc/html'
9263
24207
fi;
9264
 
 
9265
 
if test "x$with_html_dir" = "x" ; then
9266
 
  HTML_DIR='${datadir}/gtk-doc/html'
9267
 
else
9268
 
  HTML_DIR=$with_html_dir
9269
 
fi
9270
 
 
9271
 
# Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
9272
 
set dummy gtkdoc-mkdb; ac_word=$2
9273
 
echo "$as_me:9273: checking for $ac_word" >&5
9274
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9275
 
if test "${ac_cv_prog_GTKDOC+set}" = set; then
9276
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
9277
 
else
9278
 
  if test -n "$GTKDOC"; then
9279
 
  ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
9280
 
else
9281
 
  ac_save_IFS=$IFS; IFS=$ac_path_separator
9282
 
ac_dummy="$PATH"
9283
 
for ac_dir in $ac_dummy; do
9284
 
  IFS=$ac_save_IFS
9285
 
  test -z "$ac_dir" && ac_dir=.
9286
 
  $as_executable_p "$ac_dir/$ac_word" || continue
9287
 
ac_cv_prog_GTKDOC="true"
9288
 
echo "$as_me:9288: found $ac_dir/$ac_word" >&5
9289
 
break
9290
 
done
9291
 
 
9292
 
  test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
9293
 
fi
9294
 
fi
9295
 
GTKDOC=$ac_cv_prog_GTKDOC
9296
 
if test -n "$GTKDOC"; then
9297
 
  echo "$as_me:9297: result: $GTKDOC" >&5
9298
 
echo "${ECHO_T}$GTKDOC" >&6
9299
 
else
9300
 
  echo "$as_me:9300: result: no" >&5
9301
 
echo "${ECHO_T}no" >&6
9302
 
fi
9303
 
 
9304
 
gtk_doc_min_version=0.6
9305
 
if $GTKDOC ; then
9306
 
    gtk_doc_version=`gtkdoc-mkdb --version`
9307
 
    echo "$as_me:9307: checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version" >&5
9308
 
echo $ECHO_N "checking gtk-doc version ($gtk_doc_version) >= $gtk_doc_min_version... $ECHO_C" >&6
9309
 
    if perl <<EOF ; then
9310
 
      exit (("$gtk_doc_version" =~ /^[0-9]+\.[0-9]+$/) &&
9311
 
            ("$gtk_doc_version" >= "$gtk_doc_min_version") ? 0 : 1);
9312
 
EOF
9313
 
      echo "$as_me:9313: result: yes" >&5
9314
 
echo "${ECHO_T}yes" >&6
9315
 
   else
9316
 
      echo "$as_me:9316: result: no" >&5
9317
 
echo "${ECHO_T}no" >&6
9318
 
      GTKDOC=false
9319
 
   fi
9320
 
fi
9321
 
 
9322
 
# Check whether --enable-gtk-doc or --disable-gtk-doc was given.
 
24208
  HTML_DIR="$with_html_dir"
 
24209
 
 
24210
 
 
24211
    # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
9323
24212
if test "${enable_gtk_doc+set}" = set; then
9324
24213
  enableval="$enable_gtk_doc"
9325
 
  enable_gtk_doc="$enableval"
 
24214
 
9326
24215
else
9327
 
  enable_gtk_doc=auto
 
24216
  enable_gtk_doc=no
9328
24217
fi;
9329
24218
 
9330
 
if test x$enable_gtk_doc = xauto ; then
9331
 
  if test x$GTKDOC = xtrue ; then
9332
 
    enable_gtk_doc=yes
9333
 
  else
9334
 
    enable_gtk_doc=no
9335
 
  fi
9336
 
fi
 
24219
  have_gtk_doc=no
 
24220
  if test x$enable_gtk_doc = xyes; then
 
24221
    if test -z "$PKG_CONFIG"; then
 
24222
      # Extract the first word of "pkg-config", so it can be a program name with args.
 
24223
set dummy pkg-config; ac_word=$2
 
24224
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24225
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24226
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
24227
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24228
else
 
24229
  case $PKG_CONFIG in
 
24230
  [\\/]* | ?:[\\/]*)
 
24231
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
24232
  ;;
 
24233
  *)
 
24234
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24235
for as_dir in $PATH
 
24236
do
 
24237
  IFS=$as_save_IFS
 
24238
  test -z "$as_dir" && as_dir=.
 
24239
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24240
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
24241
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
24242
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24243
    break 2
 
24244
  fi
 
24245
done
 
24246
done
 
24247
 
 
24248
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
24249
  ;;
 
24250
esac
 
24251
fi
 
24252
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
24253
 
 
24254
if test -n "$PKG_CONFIG"; then
 
24255
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
24256
echo "${ECHO_T}$PKG_CONFIG" >&6
 
24257
else
 
24258
  echo "$as_me:$LINENO: result: no" >&5
 
24259
echo "${ECHO_T}no" >&6
 
24260
fi
 
24261
 
 
24262
    fi
 
24263
    if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
 
24264
      have_gtk_doc=yes
 
24265
    fi
 
24266
 
 
24267
  gtk_doc_min_version=1.0
 
24268
    if test "$have_gtk_doc" = yes; then
 
24269
      echo "$as_me:$LINENO: checking gtk-doc version >= $gtk_doc_min_version" >&5
 
24270
echo $ECHO_N "checking gtk-doc version >= $gtk_doc_min_version... $ECHO_C" >&6
 
24271
      if $PKG_CONFIG --atleast-version $gtk_doc_min_version gtk-doc; then
 
24272
        echo "$as_me:$LINENO: result: yes" >&5
 
24273
echo "${ECHO_T}yes" >&6
 
24274
      else
 
24275
        echo "$as_me:$LINENO: result: no" >&5
 
24276
echo "${ECHO_T}no" >&6
 
24277
        have_gtk_doc=no
 
24278
      fi
 
24279
    fi
 
24280
 
 
24281
    if test "$have_gtk_doc" != yes; then
 
24282
      enable_gtk_doc=no
 
24283
    fi
 
24284
  fi
 
24285
 
 
24286
 
9337
24287
 
9338
24288
if test x$enable_gtk_doc = xyes; then
9339
24289
  ENABLE_GTK_DOC_TRUE=
9343
24293
  ENABLE_GTK_DOC_FALSE=
9344
24294
fi
9345
24295
 
9346
 
ac_config_files="$ac_config_files Makefile po/Makefile.in idl/Makefile bonobo/Makefile bonobo/libbonobo-2.0.pc monikers/Makefile samples/Makefile samples/echo/Makefile tests/Makefile doc/Makefile doc/api/Makefile"
 
24296
 
 
24297
 
 
24298
if test -n "$LIBTOOL"; then
 
24299
  GTK_DOC_USE_LIBTOOL_TRUE=
 
24300
  GTK_DOC_USE_LIBTOOL_FALSE='#'
 
24301
else
 
24302
  GTK_DOC_USE_LIBTOOL_TRUE='#'
 
24303
  GTK_DOC_USE_LIBTOOL_FALSE=
 
24304
fi
 
24305
 
 
24306
 
 
24307
 
 
24308
# Check whether --enable-debug or --disable-debug was given.
 
24309
if test "${enable_debug+set}" = set; then
 
24310
  enableval="$enable_debug"
 
24311
  enable_debug="$enableval"
 
24312
else
 
24313
  enable_debug=no
 
24314
fi;
 
24315
 
 
24316
if test x$enable_debug = xyes; then
 
24317
 
 
24318
cat >>confdefs.h <<\_ACEOF
 
24319
#define G_ENABLE_DEBUG 1
 
24320
_ACEOF
 
24321
 
 
24322
fi
 
24323
 
 
24324
bonobo_activation_debug_default=no;
 
24325
 
 
24326
# Check whether --enable-bonobo-activation-debug or --disable-bonobo-activation-debug was given.
 
24327
if test "${enable_bonobo_activation_debug+set}" = set; then
 
24328
  enableval="$enable_bonobo_activation_debug"
 
24329
  enable_bonobo_activation_debug=$enableval
 
24330
else
 
24331
  enable_bonobo_activation_debug=$debug_default
 
24332
fi;
 
24333
 
 
24334
if test "x$enable_bonobo_activation_debug" = "xyes"; then
 
24335
 
 
24336
cat >>confdefs.h <<\_ACEOF
 
24337
#define BONOBO_ACTIVATION_DEBUG 1
 
24338
_ACEOF
 
24339
 
 
24340
fi
 
24341
 
 
24342
# Extract the first word of "perl", so it can be a program name with args.
 
24343
set dummy perl; ac_word=$2
 
24344
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24345
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24346
if test "${ac_cv_path_PERL_PATH+set}" = set; then
 
24347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24348
else
 
24349
  case $PERL_PATH in
 
24350
  [\\/]* | ?:[\\/]*)
 
24351
  ac_cv_path_PERL_PATH="$PERL_PATH" # Let the user override the test with a path.
 
24352
  ;;
 
24353
  *)
 
24354
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24355
for as_dir in $PATH
 
24356
do
 
24357
  IFS=$as_save_IFS
 
24358
  test -z "$as_dir" && as_dir=.
 
24359
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24360
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
24361
    ac_cv_path_PERL_PATH="$as_dir/$ac_word$ac_exec_ext"
 
24362
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24363
    break 2
 
24364
  fi
 
24365
done
 
24366
done
 
24367
 
 
24368
  ;;
 
24369
esac
 
24370
fi
 
24371
PERL_PATH=$ac_cv_path_PERL_PATH
 
24372
 
 
24373
if test -n "$PERL_PATH"; then
 
24374
  echo "$as_me:$LINENO: result: $PERL_PATH" >&5
 
24375
echo "${ECHO_T}$PERL_PATH" >&6
 
24376
else
 
24377
  echo "$as_me:$LINENO: result: no" >&5
 
24378
echo "${ECHO_T}no" >&6
 
24379
fi
 
24380
 
 
24381
if test -n "$PERL_PATH"; then
 
24382
        BONOBO_SLAY=bonobo-slay
 
24383
        # Extract the first word of "ps", so it can be a program name with args.
 
24384
set dummy ps; ac_word=$2
 
24385
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
24386
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
24387
if test "${ac_cv_path_PS_PATH+set}" = set; then
 
24388
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24389
else
 
24390
  case $PS_PATH in
 
24391
  [\\/]* | ?:[\\/]*)
 
24392
  ac_cv_path_PS_PATH="$PS_PATH" # Let the user override the test with a path.
 
24393
  ;;
 
24394
  *)
 
24395
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24396
for as_dir in $PATH
 
24397
do
 
24398
  IFS=$as_save_IFS
 
24399
  test -z "$as_dir" && as_dir=.
 
24400
  for ac_exec_ext in '' $ac_executable_extensions; do
 
24401
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
24402
    ac_cv_path_PS_PATH="$as_dir/$ac_word$ac_exec_ext"
 
24403
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
24404
    break 2
 
24405
  fi
 
24406
done
 
24407
done
 
24408
 
 
24409
  ;;
 
24410
esac
 
24411
fi
 
24412
PS_PATH=$ac_cv_path_PS_PATH
 
24413
 
 
24414
if test -n "$PS_PATH"; then
 
24415
  echo "$as_me:$LINENO: result: $PS_PATH" >&5
 
24416
echo "${ECHO_T}$PS_PATH" >&6
 
24417
else
 
24418
  echo "$as_me:$LINENO: result: no" >&5
 
24419
echo "${ECHO_T}no" >&6
 
24420
fi
 
24421
 
 
24422
        echo "$as_me:$LINENO: checking for POSIX ps" >&5
 
24423
echo $ECHO_N "checking for POSIX ps... $ECHO_C" >&6
 
24424
if test "${ac_cv_prog_ps_posix+set}" = set; then
 
24425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
24426
else
 
24427
 
 
24428
                USER=${USER:-${LOGNAME:-`logname`}}
 
24429
                if $PS_PATH -U $USER -opid,args >/dev/null 2>&1; then
 
24430
                        ac_cv_prog_ps_posix=yes
 
24431
                else
 
24432
                        ac_cv_prog_ps_posix=no
 
24433
                fi
 
24434
 
 
24435
fi
 
24436
echo "$as_me:$LINENO: result: $ac_cv_prog_ps_posix" >&5
 
24437
echo "${ECHO_T}$ac_cv_prog_ps_posix" >&6
 
24438
        if test "$ac_cv_prog_ps_posix" = yes; then
 
24439
                IF_BSD_PS=#
 
24440
        else
 
24441
                IF_POSIX_PS=#
 
24442
        fi
 
24443
fi
 
24444
 
 
24445
 
 
24446
 
 
24447
 
 
24448
 
 
24449
 
 
24450
                                                                                                                                                                                                                                                ac_config_files="$ac_config_files Makefile po/Makefile.in idl/Makefile bonobo/Makefile bonobo/libbonobo-2.0.pc bonobo/libbonobo-2.0-uninstalled.pc bonobo-activation/Makefile bonobo-activation/bonobo-activation-2.0.pc bonobo-activation/bonobo-activation-2.0-uninstalled.pc bonobo-activation/bonobo-activation-version.h activation-server/Makefile monikers/Makefile samples/Makefile samples/echo/Makefile utils/Makefile utils/bonobo-slay tests/Makefile tests/test-activation/Makefile tests/models/Makefile doc/Makefile doc/api/Makefile doc/api/figures/Makefile doc/activation/Makefile doc/activation-api/Makefile"
9347
24451
cat >confcache <<\_ACEOF
9348
24452
# This file is a shell script that caches the results of configure
9349
24453
# tests run on this system so they can be shared between configure
9354
24458
# config.status only pays attention to the cache file if you give it
9355
24459
# the --recheck option to rerun configure.
9356
24460
#
9357
 
# `ac_cv_env_foo' variables (set or unset) will be overriden when
 
24461
# `ac_cv_env_foo' variables (set or unset) will be overridden when
9358
24462
# loading this file, other *unset* `ac_cv_foo' will be assigned the
9359
24463
# following values.
9360
24464
 
9372
24476
      # `set' does not quote correctly, so add quotes (double-quote
9373
24477
      # substitution turns \\\\ into \\, and sed turns \\ into \).
9374
24478
      sed -n \
9375
 
        "s/'/'\\\\''/g;
9376
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24479
        "s/'/'\\\\''/g;
 
24480
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9377
24481
      ;;
9378
24482
    *)
9379
24483
      # `set' quotes correctly as required by POSIX, so do not add quotes.
9380
24484
      sed -n \
9381
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
24485
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9382
24486
      ;;
9383
24487
    esac;
9384
24488
} |
9389
24493
     t end
9390
24494
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9391
24495
     : end' >>confcache
9392
 
if cmp -s $cache_file confcache; then :; else
 
24496
if diff $cache_file confcache >/dev/null 2>&1; then :; else
9393
24497
  if test -w $cache_file; then
9394
24498
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9395
24499
    cat confcache >$cache_file
9408
24512
# trailing colons and then remove the whole line if VPATH becomes empty
9409
24513
# (actually we leave an empty line to preserve line numbers).
9410
24514
if test "x$srcdir" = x.; then
9411
 
  ac_vpsub='/^[         ]*VPATH[        ]*=/{
 
24515
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
9412
24516
s/:*\$(srcdir):*/:/;
9413
24517
s/:*\${srcdir}:*/:/;
9414
24518
s/:*@srcdir@:*/:/;
9415
 
s/^\([^=]*=[    ]*\):*/\1/;
 
24519
s/^\([^=]*=[     ]*\):*/\1/;
9416
24520
s/:*$//;
9417
 
s/^[^=]*=[      ]*$//;
 
24521
s/^[^=]*=[       ]*$//;
9418
24522
}'
9419
24523
fi
9420
24524
 
9421
24525
DEFS=-DHAVE_CONFIG_H
9422
24526
 
 
24527
ac_libobjs=
 
24528
ac_ltlibobjs=
 
24529
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24530
  # 1. Remove the extension, and $U if already installed.
 
24531
  ac_i=`echo "$ac_i" |
 
24532
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
24533
  # 2. Add them.
 
24534
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
24535
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
24536
done
 
24537
LIBOBJS=$ac_libobjs
 
24538
 
 
24539
LTLIBOBJS=$ac_ltlibobjs
 
24540
 
 
24541
 
 
24542
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
 
24543
  { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24544
Usually this means the macro was only invoked conditionally." >&5
 
24545
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
 
24546
Usually this means the macro was only invoked conditionally." >&2;}
 
24547
   { (exit 1); exit 1; }; }
 
24548
fi
 
24549
 
 
24550
 
9423
24551
        mv -f po/POTFILES po/POTFILES.tmp
9424
 
        sed -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
24552
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
9425
24553
        rm -f po/POTFILES.tmp
9426
24554
 
 
24555
 
 
24556
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24557
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24558
Usually this means the macro was only invoked conditionally." >&5
 
24559
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24560
Usually this means the macro was only invoked conditionally." >&2;}
 
24561
   { (exit 1); exit 1; }; }
 
24562
fi
 
24563
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24564
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24565
Usually this means the macro was only invoked conditionally." >&5
 
24566
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24567
Usually this means the macro was only invoked conditionally." >&2;}
 
24568
   { (exit 1); exit 1; }; }
 
24569
fi
 
24570
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
24571
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
24572
Usually this means the macro was only invoked conditionally." >&5
 
24573
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
24574
Usually this means the macro was only invoked conditionally." >&2;}
 
24575
   { (exit 1); exit 1; }; }
 
24576
fi
 
24577
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
24578
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
24579
Usually this means the macro was only invoked conditionally." >&5
 
24580
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
24581
Usually this means the macro was only invoked conditionally." >&2;}
 
24582
   { (exit 1); exit 1; }; }
 
24583
fi
 
24584
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
24585
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
24586
Usually this means the macro was only invoked conditionally." >&5
 
24587
echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
24588
Usually this means the macro was only invoked conditionally." >&2;}
 
24589
   { (exit 1); exit 1; }; }
 
24590
fi
 
24591
if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
 
24592
  { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
24593
Usually this means the macro was only invoked conditionally." >&5
 
24594
echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
 
24595
Usually this means the macro was only invoked conditionally." >&2;}
 
24596
   { (exit 1); exit 1; }; }
 
24597
fi
 
24598
 
9427
24599
: ${CONFIG_STATUS=./config.status}
9428
24600
ac_clean_files_save=$ac_clean_files
9429
24601
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9430
 
{ echo "$as_me:9430: creating $CONFIG_STATUS" >&5
 
24602
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9431
24603
echo "$as_me: creating $CONFIG_STATUS" >&6;}
9432
24604
cat >$CONFIG_STATUS <<_ACEOF
9433
24605
#! $SHELL
9434
 
# Generated automatically by configure.
 
24606
# Generated by $as_me.
9435
24607
# Run this file to recreate the current configuration.
9436
24608
# Compiler output produced by configure, useful for debugging
9437
24609
# configure, is in config.log if it exists.
9438
24610
 
9439
24611
debug=false
 
24612
ac_cs_recheck=false
 
24613
ac_cs_silent=false
9440
24614
SHELL=\${CONFIG_SHELL-$SHELL}
9441
 
ac_cs_invocation="\$0 \$@"
9442
 
 
9443
24615
_ACEOF
9444
24616
 
9445
24617
cat >>$CONFIG_STATUS <<\_ACEOF
 
24618
## --------------------- ##
 
24619
## M4sh Initialization.  ##
 
24620
## --------------------- ##
 
24621
 
9446
24622
# Be Bourne compatible
9447
24623
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9448
24624
  emulate sh
9449
24625
  NULLCMD=:
 
24626
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24627
  # is contrary to our usage.  Disable this feature.
 
24628
  alias -g '${1+"$@"}'='"$@"'
9450
24629
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9451
24630
  set -o posix
9452
24631
fi
 
24632
DUALCASE=1; export DUALCASE # for MKS sh
 
24633
 
 
24634
# Support unset when possible.
 
24635
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24636
  as_unset=unset
 
24637
else
 
24638
  as_unset=false
 
24639
fi
 
24640
 
 
24641
 
 
24642
# Work around bugs in pre-3.0 UWIN ksh.
 
24643
$as_unset ENV MAIL MAILPATH
 
24644
PS1='$ '
 
24645
PS2='> '
 
24646
PS4='+ '
 
24647
 
 
24648
# NLS nuisances.
 
24649
for as_var in \
 
24650
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24651
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24652
  LC_TELEPHONE LC_TIME
 
24653
do
 
24654
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24655
    eval $as_var=C; export $as_var
 
24656
  else
 
24657
    $as_unset $as_var
 
24658
  fi
 
24659
done
 
24660
 
 
24661
# Required to use basename.
 
24662
if expr a : '\(a\)' >/dev/null 2>&1; then
 
24663
  as_expr=expr
 
24664
else
 
24665
  as_expr=false
 
24666
fi
 
24667
 
 
24668
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
24669
  as_basename=basename
 
24670
else
 
24671
  as_basename=false
 
24672
fi
 
24673
 
9453
24674
 
9454
24675
# Name of the executable.
9455
 
as_me=`echo "$0" |sed 's,.*[\\/],,'`
 
24676
as_me=`$as_basename "$0" ||
 
24677
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24678
         X"$0" : 'X\(//\)$' \| \
 
24679
         X"$0" : 'X\(/\)$' \| \
 
24680
         .     : '\(.\)' 2>/dev/null ||
 
24681
echo X/"$0" |
 
24682
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
24683
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
24684
          /^X\/\(\/\).*/{ s//\1/; q; }
 
24685
          s/.*/./; q'`
 
24686
 
 
24687
 
 
24688
# PATH needs CR, and LINENO needs CR and PATH.
 
24689
# Avoid depending upon Character Ranges.
 
24690
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24691
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24692
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24693
as_cr_digits='0123456789'
 
24694
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24695
 
 
24696
# The user is always right.
 
24697
if test "${PATH_SEPARATOR+set}" != set; then
 
24698
  echo "#! /bin/sh" >conf$$.sh
 
24699
  echo  "exit 0"   >>conf$$.sh
 
24700
  chmod +x conf$$.sh
 
24701
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24702
    PATH_SEPARATOR=';'
 
24703
  else
 
24704
    PATH_SEPARATOR=:
 
24705
  fi
 
24706
  rm -f conf$$.sh
 
24707
fi
 
24708
 
 
24709
 
 
24710
  as_lineno_1=$LINENO
 
24711
  as_lineno_2=$LINENO
 
24712
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24713
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24714
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
24715
  # Find who we are.  Look in the path if we contain no path at all
 
24716
  # relative or not.
 
24717
  case $0 in
 
24718
    *[\\/]* ) as_myself=$0 ;;
 
24719
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24720
for as_dir in $PATH
 
24721
do
 
24722
  IFS=$as_save_IFS
 
24723
  test -z "$as_dir" && as_dir=.
 
24724
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24725
done
 
24726
 
 
24727
       ;;
 
24728
  esac
 
24729
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
24730
  # in which case we are not to be found in the path.
 
24731
  if test "x$as_myself" = x; then
 
24732
    as_myself=$0
 
24733
  fi
 
24734
  if test ! -f "$as_myself"; then
 
24735
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
24736
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
24737
   { (exit 1); exit 1; }; }
 
24738
  fi
 
24739
  case $CONFIG_SHELL in
 
24740
  '')
 
24741
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24742
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
24743
do
 
24744
  IFS=$as_save_IFS
 
24745
  test -z "$as_dir" && as_dir=.
 
24746
  for as_base in sh bash ksh sh5; do
 
24747
         case $as_dir in
 
24748
         /*)
 
24749
           if ("$as_dir/$as_base" -c '
 
24750
  as_lineno_1=$LINENO
 
24751
  as_lineno_2=$LINENO
 
24752
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24753
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24754
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
24755
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
24756
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
24757
             CONFIG_SHELL=$as_dir/$as_base
 
24758
             export CONFIG_SHELL
 
24759
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
24760
           fi;;
 
24761
         esac
 
24762
       done
 
24763
done
 
24764
;;
 
24765
  esac
 
24766
 
 
24767
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24768
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24769
  # line-number line before each line; the second 'sed' does the real
 
24770
  # work.  The second script uses 'N' to pair each line-number line
 
24771
  # with the numbered line, and appends trailing '-' during
 
24772
  # substitution so that $LINENO is not a special case at line end.
 
24773
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24774
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
24775
  sed '=' <$as_myself |
 
24776
    sed '
 
24777
      N
 
24778
      s,$,-,
 
24779
      : loop
 
24780
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
24781
      t loop
 
24782
      s,-$,,
 
24783
      s,^['$as_cr_digits']*\n,,
 
24784
    ' >$as_me.lineno &&
 
24785
  chmod +x $as_me.lineno ||
 
24786
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
24787
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
24788
   { (exit 1); exit 1; }; }
 
24789
 
 
24790
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24791
  # (the dirname of $[0] is not the place where we might find the
 
24792
  # original and so on.  Autoconf is especially sensible to this).
 
24793
  . ./$as_me.lineno
 
24794
  # Exit status is that of the last command.
 
24795
  exit
 
24796
}
 
24797
 
 
24798
 
 
24799
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
24800
  *c*,-n*) ECHO_N= ECHO_C='
 
24801
' ECHO_T='      ' ;;
 
24802
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
24803
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
24804
esac
9456
24805
 
9457
24806
if expr a : '\(a\)' >/dev/null 2>&1; then
9458
24807
  as_expr=expr
9478
24827
fi
9479
24828
rm -f conf$$ conf$$.exe conf$$.file
9480
24829
 
 
24830
if mkdir -p . 2>/dev/null; then
 
24831
  as_mkdir_p=:
 
24832
else
 
24833
  test -d ./-p && rmdir ./-p
 
24834
  as_mkdir_p=false
 
24835
fi
 
24836
 
9481
24837
as_executable_p="test -f"
9482
24838
 
9483
 
# Support unset when possible.
9484
 
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9485
 
  as_unset=unset
9486
 
else
9487
 
  as_unset=false
9488
 
fi
9489
 
 
9490
 
# NLS nuisances.
9491
 
$as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
9492
 
$as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
9493
 
$as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
9494
 
$as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
9495
 
$as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
9496
 
$as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
9497
 
$as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
9498
 
$as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
 
24839
# Sed expression to map a string onto a valid CPP name.
 
24840
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24841
 
 
24842
# Sed expression to map a string onto a valid variable name.
 
24843
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24844
 
9499
24845
 
9500
24846
# IFS
9501
24847
# We need space, tab and new line, in precisely that order.
9504
24850
IFS="   $as_nl"
9505
24851
 
9506
24852
# CDPATH.
9507
 
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
 
24853
$as_unset CDPATH
9508
24854
 
9509
24855
exec 6>&1
9510
24856
 
 
24857
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
24858
# report actual input values of CONFIG_FILES etc. instead of their
 
24859
# values after options handling.  Logging --version etc. is OK.
 
24860
exec 5>>config.log
 
24861
{
 
24862
  echo
 
24863
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24864
## Running $as_me. ##
 
24865
_ASBOX
 
24866
} >&5
 
24867
cat >&5 <<_CSEOF
 
24868
 
 
24869
This file was extended by $as_me, which was
 
24870
generated by GNU Autoconf 2.59.  Invocation command line was
 
24871
 
 
24872
  CONFIG_FILES    = $CONFIG_FILES
 
24873
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24874
  CONFIG_LINKS    = $CONFIG_LINKS
 
24875
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24876
  $ $0 $@
 
24877
 
 
24878
_CSEOF
 
24879
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
24880
echo >&5
9511
24881
_ACEOF
9512
24882
 
9513
24883
# Files that config.status was made for.
9527
24897
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9528
24898
fi
9529
24899
 
9530
 
cat >>$CONFIG_STATUS <<\EOF
 
24900
cat >>$CONFIG_STATUS <<\_ACEOF
9531
24901
 
9532
24902
ac_cs_usage="\
9533
24903
\`$as_me' instantiates files from templates according to the
9537
24907
 
9538
24908
  -h, --help       print this help, then exit
9539
24909
  -V, --version    print version number, then exit
 
24910
  -q, --quiet      do not print progress messages
9540
24911
  -d, --debug      don't remove temporary files
9541
24912
      --recheck    update $as_me by reconfiguring in the same conditions
9542
24913
  --file=FILE[:TEMPLATE]
9543
 
                   instantiate the configuration file FILE
 
24914
                   instantiate the configuration file FILE
9544
24915
  --header=FILE[:TEMPLATE]
9545
 
                   instantiate the configuration header FILE
 
24916
                   instantiate the configuration header FILE
9546
24917
 
9547
24918
Configuration files:
9548
24919
$config_files
9554
24925
$config_commands
9555
24926
 
9556
24927
Report bugs to <bug-autoconf@gnu.org>."
9557
 
EOF
 
24928
_ACEOF
9558
24929
 
9559
 
cat >>$CONFIG_STATUS <<EOF
 
24930
cat >>$CONFIG_STATUS <<_ACEOF
9560
24931
ac_cs_version="\\
9561
24932
config.status
9562
 
configured by $0, generated by GNU Autoconf 2.52,
 
24933
configured by $0, generated by GNU Autoconf 2.59,
9563
24934
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9564
24935
 
9565
 
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9566
 
Free Software Foundation, Inc.
 
24936
Copyright (C) 2003 Free Software Foundation, Inc.
9567
24937
This config.status script is free software; the Free Software Foundation
9568
24938
gives unlimited permission to copy, distribute and modify it."
9569
24939
srcdir=$srcdir
9570
24940
INSTALL="$INSTALL"
9571
 
EOF
 
24941
_ACEOF
9572
24942
 
9573
 
cat >>$CONFIG_STATUS <<\EOF
 
24943
cat >>$CONFIG_STATUS <<\_ACEOF
9574
24944
# If no file are specified by the user, then we need to provide default
9575
24945
# value.  By we need to know if files were specified by the user.
9576
24946
ac_need_defaults=:
9580
24950
  --*=*)
9581
24951
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
9582
24952
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9583
 
    shift
9584
 
    set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
9585
 
    shift
9586
 
    ;;
9587
 
  -*);;
 
24953
    ac_shift=:
 
24954
    ;;
 
24955
  -*)
 
24956
    ac_option=$1
 
24957
    ac_optarg=$2
 
24958
    ac_shift=shift
 
24959
    ;;
9588
24960
  *) # This is not an option, so the user has probably given explicit
9589
24961
     # arguments.
 
24962
     ac_option=$1
9590
24963
     ac_need_defaults=false;;
9591
24964
  esac
9592
24965
 
9593
 
  case $1 in
 
24966
  case $ac_option in
9594
24967
  # Handling of the options.
9595
 
EOF
9596
 
cat >>$CONFIG_STATUS <<EOF
 
24968
_ACEOF
 
24969
cat >>$CONFIG_STATUS <<\_ACEOF
9597
24970
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9598
 
    echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
9599
 
    exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
9600
 
EOF
9601
 
cat >>$CONFIG_STATUS <<\EOF
 
24971
    ac_cs_recheck=: ;;
9602
24972
  --version | --vers* | -V )
9603
24973
    echo "$ac_cs_version"; exit 0 ;;
9604
24974
  --he | --h)
9605
24975
    # Conflict between --help and --header
9606
 
    { { echo "$as_me:9606: error: ambiguous option: $1
 
24976
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
9607
24977
Try \`$0 --help' for more information." >&5
9608
24978
echo "$as_me: error: ambiguous option: $1
9609
24979
Try \`$0 --help' for more information." >&2;}
9613
24983
  --debug | --d* | -d )
9614
24984
    debug=: ;;
9615
24985
  --file | --fil | --fi | --f )
9616
 
    shift
9617
 
    CONFIG_FILES="$CONFIG_FILES $1"
 
24986
    $ac_shift
 
24987
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9618
24988
    ac_need_defaults=false;;
9619
24989
  --header | --heade | --head | --hea )
9620
 
    shift
9621
 
    CONFIG_HEADERS="$CONFIG_HEADERS $1"
 
24990
    $ac_shift
 
24991
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9622
24992
    ac_need_defaults=false;;
 
24993
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
24994
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
24995
    ac_cs_silent=: ;;
9623
24996
 
9624
24997
  # This is an error.
9625
 
  -*) { { echo "$as_me:9625: error: unrecognized option: $1
 
24998
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9626
24999
Try \`$0 --help' for more information." >&5
9627
25000
echo "$as_me: error: unrecognized option: $1
9628
25001
Try \`$0 --help' for more information." >&2;}
9634
25007
  shift
9635
25008
done
9636
25009
 
9637
 
exec 5>>config.log
9638
 
cat >&5 << _ACEOF
9639
 
 
9640
 
## ----------------------- ##
9641
 
## Running config.status.  ##
9642
 
## ----------------------- ##
9643
 
 
9644
 
This file was extended by $as_me 2.52, executed with
9645
 
  CONFIG_FILES    = $CONFIG_FILES
9646
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
9647
 
  CONFIG_LINKS    = $CONFIG_LINKS
9648
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
9649
 
  > $ac_cs_invocation
9650
 
on `(hostname || uname -n) 2>/dev/null | sed 1q`
9651
 
 
9652
 
_ACEOF
9653
 
EOF
9654
 
 
9655
 
cat >>$CONFIG_STATUS <<EOF
 
25010
ac_configure_extra_args=
 
25011
 
 
25012
if $ac_cs_silent; then
 
25013
  exec 6>/dev/null
 
25014
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
25015
fi
 
25016
 
 
25017
_ACEOF
 
25018
cat >>$CONFIG_STATUS <<_ACEOF
 
25019
if \$ac_cs_recheck; then
 
25020
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
25021
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
25022
fi
 
25023
 
 
25024
_ACEOF
 
25025
 
 
25026
cat >>$CONFIG_STATUS <<_ACEOF
9656
25027
#
9657
25028
# INIT-COMMANDS section.
9658
25029
#
9659
25030
 
9660
 
INTLTOOL_PERL=${INTLTOOL_PERL}
9661
 
 
9662
 
EOF
9663
 
 
9664
 
cat >>$CONFIG_STATUS <<\EOF
 
25031
INTLTOOL_PERL='${INTLTOOL_PERL}' ac_aux_dir=${ac_aux_dir}
 
25032
INTLTOOL_EXTRACT='${INTLTOOL_EXTRACT}' ICONV='${INTLTOOL_ICONV}'
 
25033
MSGFMT='${INTLTOOL_MSGFMT}' MSGMERGE='${INTLTOOL_MSGMERGE}'
 
25034
XGETTEXT='${INTLTOOL_XGETTEXT}'
 
25035
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
25036
 
 
25037
 
 
25038
_ACEOF
 
25039
 
 
25040
 
 
25041
 
 
25042
cat >>$CONFIG_STATUS <<\_ACEOF
9665
25043
for ac_config_target in $ac_config_targets
9666
25044
do
9667
25045
  case "$ac_config_target" in
9671
25049
  "idl/Makefile" ) CONFIG_FILES="$CONFIG_FILES idl/Makefile" ;;
9672
25050
  "bonobo/Makefile" ) CONFIG_FILES="$CONFIG_FILES bonobo/Makefile" ;;
9673
25051
  "bonobo/libbonobo-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES bonobo/libbonobo-2.0.pc" ;;
 
25052
  "bonobo/libbonobo-2.0-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES bonobo/libbonobo-2.0-uninstalled.pc" ;;
 
25053
  "bonobo-activation/Makefile" ) CONFIG_FILES="$CONFIG_FILES bonobo-activation/Makefile" ;;
 
25054
  "bonobo-activation/bonobo-activation-2.0.pc" ) CONFIG_FILES="$CONFIG_FILES bonobo-activation/bonobo-activation-2.0.pc" ;;
 
25055
  "bonobo-activation/bonobo-activation-2.0-uninstalled.pc" ) CONFIG_FILES="$CONFIG_FILES bonobo-activation/bonobo-activation-2.0-uninstalled.pc" ;;
 
25056
  "bonobo-activation/bonobo-activation-version.h" ) CONFIG_FILES="$CONFIG_FILES bonobo-activation/bonobo-activation-version.h" ;;
 
25057
  "activation-server/Makefile" ) CONFIG_FILES="$CONFIG_FILES activation-server/Makefile" ;;
9674
25058
  "monikers/Makefile" ) CONFIG_FILES="$CONFIG_FILES monikers/Makefile" ;;
9675
25059
  "samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
9676
25060
  "samples/echo/Makefile" ) CONFIG_FILES="$CONFIG_FILES samples/echo/Makefile" ;;
 
25061
  "utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;;
 
25062
  "utils/bonobo-slay" ) CONFIG_FILES="$CONFIG_FILES utils/bonobo-slay" ;;
9677
25063
  "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
 
25064
  "tests/test-activation/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/test-activation/Makefile" ;;
 
25065
  "tests/models/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/models/Makefile" ;;
9678
25066
  "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
9679
25067
  "doc/api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
 
25068
  "doc/api/figures/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/api/figures/Makefile" ;;
 
25069
  "doc/activation/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/activation/Makefile" ;;
 
25070
  "doc/activation-api/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/activation-api/Makefile" ;;
 
25071
  "intltool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS intltool" ;;
 
25072
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9680
25073
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
9681
 
  "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
9682
 
  "default-3" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-3" ;;
9683
25074
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9684
 
  *) { { echo "$as_me:9684: error: invalid argument: $ac_config_target" >&5
 
25075
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9685
25076
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9686
25077
   { (exit 1); exit 1; }; };;
9687
25078
  esac
9697
25088
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9698
25089
fi
9699
25090
 
 
25091
# Have a temporary directory for convenience.  Make it in the build tree
 
25092
# simply because there is no reason to put it here, and in addition,
 
25093
# creating and moving files from /tmp can sometimes cause problems.
9700
25094
# Create a temporary directory, and hook for its removal unless debugging.
9701
25095
$debug ||
9702
25096
{
9705
25099
}
9706
25100
 
9707
25101
# Create a (secure) tmp directory for tmp files.
9708
 
: ${TMPDIR=/tmp}
 
25102
 
9709
25103
{
9710
 
  tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
 
25104
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9711
25105
  test -n "$tmp" && test -d "$tmp"
9712
25106
}  ||
9713
25107
{
9714
 
  tmp=$TMPDIR/cs$$-$RANDOM
 
25108
  tmp=./confstat$$-$RANDOM
9715
25109
  (umask 077 && mkdir $tmp)
9716
25110
} ||
9717
25111
{
9718
 
   echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 
25112
   echo "$me: cannot create a temporary directory in ." >&2
9719
25113
   { (exit 1); exit 1; }
9720
25114
}
9721
25115
 
9722
 
EOF
 
25116
_ACEOF
9723
25117
 
9724
 
cat >>$CONFIG_STATUS <<EOF
 
25118
cat >>$CONFIG_STATUS <<_ACEOF
9725
25119
 
9726
25120
#
9727
25121
# CONFIG_FILES section.
9734
25128
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
9735
25129
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
9736
25130
s,@SHELL@,$SHELL,;t t
 
25131
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
25132
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
25133
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
25134
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
25135
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
25136
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9737
25137
s,@exec_prefix@,$exec_prefix,;t t
9738
25138
s,@prefix@,$prefix,;t t
9739
25139
s,@program_transform_name@,$program_transform_name,;t t
9749
25149
s,@oldincludedir@,$oldincludedir,;t t
9750
25150
s,@infodir@,$infodir,;t t
9751
25151
s,@mandir@,$mandir,;t t
9752
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
9753
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
9754
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
9755
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
9756
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
9757
25152
s,@build_alias@,$build_alias,;t t
9758
25153
s,@host_alias@,$host_alias,;t t
9759
25154
s,@target_alias@,$target_alias,;t t
 
25155
s,@DEFS@,$DEFS,;t t
9760
25156
s,@ECHO_C@,$ECHO_C,;t t
9761
25157
s,@ECHO_N@,$ECHO_N,;t t
9762
25158
s,@ECHO_T@,$ECHO_T,;t t
9763
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
9764
 
s,@DEFS@,$DEFS,;t t
9765
25159
s,@LIBS@,$LIBS,;t t
9766
25160
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
9767
25161
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
9768
25162
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
25163
s,@CYGPATH_W@,$CYGPATH_W,;t t
9769
25164
s,@PACKAGE@,$PACKAGE,;t t
9770
25165
s,@VERSION@,$VERSION,;t t
9771
25166
s,@ACLOCAL@,$ACLOCAL,;t t
9773
25168
s,@AUTOMAKE@,$AUTOMAKE,;t t
9774
25169
s,@AUTOHEADER@,$AUTOHEADER,;t t
9775
25170
s,@MAKEINFO@,$MAKEINFO,;t t
 
25171
s,@AMTAR@,$AMTAR,;t t
 
25172
s,@install_sh@,$install_sh,;t t
 
25173
s,@STRIP@,$STRIP,;t t
 
25174
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
25175
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
25176
s,@AWK@,$AWK,;t t
9776
25177
s,@SET_MAKE@,$SET_MAKE,;t t
 
25178
s,@am__leading_dot@,$am__leading_dot,;t t
 
25179
s,@BONOBO_MAJOR_VERSION@,$BONOBO_MAJOR_VERSION,;t t
 
25180
s,@BONOBO_MINOR_VERSION@,$BONOBO_MINOR_VERSION,;t t
 
25181
s,@BONOBO_MICRO_VERSION@,$BONOBO_MICRO_VERSION,;t t
9777
25182
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
9778
25183
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
9779
25184
s,@MAINT@,$MAINT,;t t
9780
25185
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
9781
25186
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
9782
25187
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
 
25188
s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
9783
25189
s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
9784
25190
s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
9785
25191
s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
9786
25192
s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
9787
25193
s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
9788
25194
s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
 
25195
s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
 
25196
s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
9789
25197
s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
 
25198
s,@INTLTOOL_XML_NOMERGE_RULE@,$INTLTOOL_XML_NOMERGE_RULE,;t t
9790
25199
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
 
25200
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
 
25201
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
9791
25202
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
9792
25203
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
9793
25204
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
9794
25205
s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
 
25206
s,@INTLTOOL_ICONV@,$INTLTOOL_ICONV,;t t
 
25207
s,@INTLTOOL_MSGFMT@,$INTLTOOL_MSGFMT,;t t
 
25208
s,@INTLTOOL_MSGMERGE@,$INTLTOOL_MSGMERGE,;t t
 
25209
s,@INTLTOOL_XGETTEXT@,$INTLTOOL_XGETTEXT,;t t
 
25210
s,@mkdir_p@,$mkdir_p,;t t
 
25211
s,@LIBBONOBO_LT_VERSION_INFO@,$LIBBONOBO_LT_VERSION_INFO,;t t
 
25212
s,@BONOBO_ACTIVATION_LT_VERSION_INFO@,$BONOBO_ACTIVATION_LT_VERSION_INFO,;t t
9795
25213
s,@CC@,$CC,;t t
9796
25214
s,@CFLAGS@,$CFLAGS,;t t
9797
25215
s,@LDFLAGS@,$LDFLAGS,;t t
9799
25217
s,@ac_ct_CC@,$ac_ct_CC,;t t
9800
25218
s,@EXEEXT@,$EXEEXT,;t t
9801
25219
s,@OBJEXT@,$OBJEXT,;t t
 
25220
s,@DEPDIR@,$DEPDIR,;t t
 
25221
s,@am__include@,$am__include,;t t
 
25222
s,@am__quote@,$am__quote,;t t
 
25223
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
25224
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
25225
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
25226
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
25227
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
 
25228
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
 
25229
s,@LEX@,$LEX,;t t
 
25230
s,@LEXLIB@,$LEXLIB,;t t
 
25231
s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
 
25232
s,@LFLAGS@,$LFLAGS,;t t
9802
25233
s,@CPP@,$CPP,;t t
 
25234
s,@EGREP@,$EGREP,;t t
 
25235
s,@LN_S@,$LN_S,;t t
9803
25236
s,@build@,$build,;t t
9804
25237
s,@build_cpu@,$build_cpu,;t t
9805
25238
s,@build_vendor@,$build_vendor,;t t
9808
25241
s,@host_cpu@,$host_cpu,;t t
9809
25242
s,@host_vendor@,$host_vendor,;t t
9810
25243
s,@host_os@,$host_os,;t t
9811
 
s,@LN_S@,$LN_S,;t t
9812
25244
s,@ECHO@,$ECHO,;t t
 
25245
s,@AR@,$AR,;t t
 
25246
s,@ac_ct_AR@,$ac_ct_AR,;t t
9813
25247
s,@RANLIB@,$RANLIB,;t t
9814
25248
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
9815
 
s,@STRIP@,$STRIP,;t t
9816
 
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
25249
s,@DLLTOOL@,$DLLTOOL,;t t
 
25250
s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
 
25251
s,@AS@,$AS,;t t
 
25252
s,@ac_ct_AS@,$ac_ct_AS,;t t
 
25253
s,@OBJDUMP@,$OBJDUMP,;t t
 
25254
s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
 
25255
s,@CXX@,$CXX,;t t
 
25256
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
25257
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
25258
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
25259
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
 
25260
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
 
25261
s,@CXXCPP@,$CXXCPP,;t t
 
25262
s,@F77@,$F77,;t t
 
25263
s,@FFLAGS@,$FFLAGS,;t t
 
25264
s,@ac_ct_F77@,$ac_ct_F77,;t t
9817
25265
s,@LIBTOOL@,$LIBTOOL,;t t
9818
25266
s,@YACC@,$YACC,;t t
9819
25267
s,@PATH_TO_XRDB@,$PATH_TO_XRDB,;t t
9820
25268
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
9821
 
s,@ALLOCA@,$ALLOCA,;t t
 
25269
s,@gnomelocaledir@,$gnomelocaledir,;t t
9822
25270
s,@USE_NLS@,$USE_NLS,;t t
9823
25271
s,@MSGFMT@,$MSGFMT,;t t
9824
25272
s,@GMSGFMT@,$GMSGFMT,;t t
9828
25276
s,@DATADIRNAME@,$DATADIRNAME,;t t
9829
25277
s,@GMOFILES@,$GMOFILES,;t t
9830
25278
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
9831
 
s,@INTLDEPS@,$INTLDEPS,;t t
9832
25279
s,@INTLLIBS@,$INTLLIBS,;t t
9833
 
s,@INTLOBJS@,$INTLOBJS,;t t
 
25280
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
 
25281
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
9834
25282
s,@POFILES@,$POFILES,;t t
9835
25283
s,@POSUB@,$POSUB,;t t
9836
25284
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
9838
25286
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
9839
25287
s,@LIBBONOBO_CFLAGS@,$LIBBONOBO_CFLAGS,;t t
9840
25288
s,@LIBBONOBO_LIBS@,$LIBBONOBO_LIBS,;t t
 
25289
s,@SERVER_CFLAGS@,$SERVER_CFLAGS,;t t
 
25290
s,@SERVER_LIBS@,$SERVER_LIBS,;t t
9841
25291
s,@ORBIT_IDL@,$ORBIT_IDL,;t t
 
25292
s,@POPT_LIBS@,$POPT_LIBS,;t t
9842
25293
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
9843
 
s,@BONOBO_ACTIVATION_IDL_DIR@,$BONOBO_ACTIVATION_IDL_DIR,;t t
9844
25294
s,@HTML_DIR@,$HTML_DIR,;t t
9845
 
s,@GTKDOC@,$GTKDOC,;t t
9846
25295
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
9847
25296
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
 
25297
s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
 
25298
s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
 
25299
s,@PERL_PATH@,$PERL_PATH,;t t
 
25300
s,@PS_PATH@,$PS_PATH,;t t
 
25301
s,@BONOBO_SLAY@,$BONOBO_SLAY,;t t
 
25302
s,@IF_BSD_PS@,$IF_BSD_PS,;t t
 
25303
s,@IF_POSIX_PS@,$IF_POSIX_PS,;t t
 
25304
s,@LIBOBJS@,$LIBOBJS,;t t
 
25305
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
9848
25306
CEOF
9849
25307
 
9850
 
EOF
 
25308
_ACEOF
9851
25309
 
9852
 
  cat >>$CONFIG_STATUS <<\EOF
 
25310
  cat >>$CONFIG_STATUS <<\_ACEOF
9853
25311
  # Split the substitutions into bite-sized pieces for seds with
9854
25312
  # small command number limits, like on Digital OSF/1 and HP-UX.
9855
25313
  ac_max_sed_lines=48
9874
25332
      (echo ':t
9875
25333
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
9876
25334
      if test -z "$ac_sed_cmds"; then
9877
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
25335
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
9878
25336
      else
9879
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
25337
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
9880
25338
      fi
9881
25339
      ac_sed_frag=`expr $ac_sed_frag + 1`
9882
25340
      ac_beg=$ac_end
9888
25346
  fi
9889
25347
fi # test -n "$CONFIG_FILES"
9890
25348
 
9891
 
EOF
9892
 
cat >>$CONFIG_STATUS <<\EOF
 
25349
_ACEOF
 
25350
cat >>$CONFIG_STATUS <<\_ACEOF
9893
25351
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
9894
25352
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
9895
25353
  case $ac_file in
9896
25354
  - | *:- | *:-:* ) # input from stdin
9897
 
        cat >$tmp/stdin
9898
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9899
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25355
        cat >$tmp/stdin
 
25356
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25357
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9900
25358
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
9901
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25359
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
9902
25360
  * )   ac_file_in=$ac_file.in ;;
9903
25361
  esac
9904
25362
 
9905
25363
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
9906
 
  ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9907
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
9908
 
         X"$ac_file" : 'X\(//\)$' \| \
9909
 
         X"$ac_file" : 'X\(/\)' \| \
9910
 
         .     : '\(.\)' 2>/dev/null ||
 
25364
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25365
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25366
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25367
         X"$ac_file" : 'X\(//\)$' \| \
 
25368
         X"$ac_file" : 'X\(/\)' \| \
 
25369
         .     : '\(.\)' 2>/dev/null ||
9911
25370
echo X"$ac_file" |
9912
25371
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
9913
25372
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
9914
25373
          /^X\(\/\/\)$/{ s//\1/; q; }
9915
25374
          /^X\(\/\).*/{ s//\1/; q; }
9916
25375
          s/.*/./; q'`
9917
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
9918
 
    { case "$ac_dir" in
9919
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
9920
 
  *)                      as_incr_dir=.;;
9921
 
esac
9922
 
as_dummy="$ac_dir"
9923
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
9924
 
  case $as_mkdir_dir in
9925
 
    # Skip DOS drivespec
9926
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
9927
 
    *)
9928
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
9929
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
9930
 
    ;;
9931
 
  esac
9932
 
done; }
9933
 
 
9934
 
    ac_dir_suffix="/`echo $ac_dir|sed 's,^\./,,'`"
9935
 
    # A "../" for each directory in $ac_dir_suffix.
9936
 
    ac_dots=`echo "$ac_dir_suffix" | sed 's,/[^/]*,../,g'`
 
25376
  { if $as_mkdir_p; then
 
25377
    mkdir -p "$ac_dir"
9937
25378
  else
9938
 
    ac_dir_suffix= ac_dots=
9939
 
  fi
9940
 
 
9941
 
  case $srcdir in
9942
 
  .)  ac_srcdir=.
9943
 
      if test -z "$ac_dots"; then
9944
 
         ac_top_srcdir=.
9945
 
      else
9946
 
         ac_top_srcdir=`echo $ac_dots | sed 's,/$,,'`
9947
 
      fi ;;
9948
 
  [\\/]* | ?:[\\/]* )
9949
 
      ac_srcdir=$srcdir$ac_dir_suffix;
9950
 
      ac_top_srcdir=$srcdir ;;
 
25379
    as_dir="$ac_dir"
 
25380
    as_dirs=
 
25381
    while test ! -d "$as_dir"; do
 
25382
      as_dirs="$as_dir $as_dirs"
 
25383
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25384
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25385
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25386
         X"$as_dir" : 'X\(//\)$' \| \
 
25387
         X"$as_dir" : 'X\(/\)' \| \
 
25388
         .     : '\(.\)' 2>/dev/null ||
 
25389
echo X"$as_dir" |
 
25390
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25391
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25392
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25393
          /^X\(\/\).*/{ s//\1/; q; }
 
25394
          s/.*/./; q'`
 
25395
    done
 
25396
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25397
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25398
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25399
   { (exit 1); exit 1; }; }; }
 
25400
 
 
25401
  ac_builddir=.
 
25402
 
 
25403
if test "$ac_dir" != .; then
 
25404
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25405
  # A "../" for each directory in $ac_dir_suffix.
 
25406
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25407
else
 
25408
  ac_dir_suffix= ac_top_builddir=
 
25409
fi
 
25410
 
 
25411
case $srcdir in
 
25412
  .)  # No --srcdir option.  We are building in place.
 
25413
    ac_srcdir=.
 
25414
    if test -z "$ac_top_builddir"; then
 
25415
       ac_top_srcdir=.
 
25416
    else
 
25417
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25418
    fi ;;
 
25419
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25420
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25421
    ac_top_srcdir=$srcdir ;;
9951
25422
  *) # Relative path.
9952
 
    ac_srcdir=$ac_dots$srcdir$ac_dir_suffix
9953
 
    ac_top_srcdir=$ac_dots$srcdir ;;
9954
 
  esac
 
25423
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25424
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25425
esac
 
25426
 
 
25427
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25428
# the directories may not exist.
 
25429
case `pwd` in
 
25430
.) ac_abs_builddir="$ac_dir";;
 
25431
*)
 
25432
  case "$ac_dir" in
 
25433
  .) ac_abs_builddir=`pwd`;;
 
25434
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25435
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25436
  esac;;
 
25437
esac
 
25438
case $ac_abs_builddir in
 
25439
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25440
*)
 
25441
  case ${ac_top_builddir}. in
 
25442
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25443
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25444
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25445
  esac;;
 
25446
esac
 
25447
case $ac_abs_builddir in
 
25448
.) ac_abs_srcdir=$ac_srcdir;;
 
25449
*)
 
25450
  case $ac_srcdir in
 
25451
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25452
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25453
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25454
  esac;;
 
25455
esac
 
25456
case $ac_abs_builddir in
 
25457
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25458
*)
 
25459
  case $ac_top_srcdir in
 
25460
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25461
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25462
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25463
  esac;;
 
25464
esac
 
25465
 
9955
25466
 
9956
25467
  case $INSTALL in
9957
25468
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9958
 
  *) ac_INSTALL=$ac_dots$INSTALL ;;
 
25469
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
9959
25470
  esac
9960
25471
 
9961
25472
  if test x"$ac_file" != x-; then
9962
 
    { echo "$as_me:9962: creating $ac_file" >&5
 
25473
    { echo "$as_me:$LINENO: creating $ac_file" >&5
9963
25474
echo "$as_me: creating $ac_file" >&6;}
9964
25475
    rm -f "$ac_file"
9965
25476
  fi
9966
25477
  # Let's still pretend it is `configure' which instantiates (i.e., don't
9967
25478
  # use $as_me), people would be surprised to read:
9968
 
  #    /* config.h.  Generated automatically by config.status.  */
9969
 
  configure_input="Generated automatically from `echo $ac_file_in |
9970
 
                                                 sed 's,.*/,,'` by configure."
 
25479
  #    /* config.h.  Generated by config.status.  */
 
25480
  if test x"$ac_file" = x-; then
 
25481
    configure_input=
 
25482
  else
 
25483
    configure_input="$ac_file.  "
 
25484
  fi
 
25485
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25486
                                     sed 's,.*/,,'` by configure."
9971
25487
 
9972
25488
  # First look for the input files in the build tree, otherwise in the
9973
25489
  # src tree.
9976
25492
      case $f in
9977
25493
      -) echo $tmp/stdin ;;
9978
25494
      [\\/$]*)
9979
 
         # Absolute (can't be DOS-style, as IFS=:)
9980
 
         test -f "$f" || { { echo "$as_me:9980: error: cannot find input file: $f" >&5
 
25495
         # Absolute (can't be DOS-style, as IFS=:)
 
25496
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9981
25497
echo "$as_me: error: cannot find input file: $f" >&2;}
9982
25498
   { (exit 1); exit 1; }; }
9983
 
         echo $f;;
 
25499
         echo "$f";;
9984
25500
      *) # Relative
9985
 
         if test -f "$f"; then
9986
 
           # Build tree
9987
 
           echo $f
9988
 
         elif test -f "$srcdir/$f"; then
9989
 
           # Source tree
9990
 
           echo $srcdir/$f
9991
 
         else
9992
 
           # /dev/null tree
9993
 
           { { echo "$as_me:9993: error: cannot find input file: $f" >&5
 
25501
         if test -f "$f"; then
 
25502
           # Build tree
 
25503
           echo "$f"
 
25504
         elif test -f "$srcdir/$f"; then
 
25505
           # Source tree
 
25506
           echo "$srcdir/$f"
 
25507
         else
 
25508
           # /dev/null tree
 
25509
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
9994
25510
echo "$as_me: error: cannot find input file: $f" >&2;}
9995
25511
   { (exit 1); exit 1; }; }
9996
 
         fi;;
 
25512
         fi;;
9997
25513
      esac
9998
25514
    done` || { (exit 1); exit 1; }
9999
 
EOF
10000
 
cat >>$CONFIG_STATUS <<EOF
 
25515
_ACEOF
 
25516
cat >>$CONFIG_STATUS <<_ACEOF
10001
25517
  sed "$ac_vpsub
10002
25518
$extrasub
10003
 
EOF
10004
 
cat >>$CONFIG_STATUS <<\EOF
 
25519
_ACEOF
 
25520
cat >>$CONFIG_STATUS <<\_ACEOF
10005
25521
:t
10006
25522
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10007
25523
s,@configure_input@,$configure_input,;t t
10008
25524
s,@srcdir@,$ac_srcdir,;t t
 
25525
s,@abs_srcdir@,$ac_abs_srcdir,;t t
10009
25526
s,@top_srcdir@,$ac_top_srcdir,;t t
 
25527
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
25528
s,@builddir@,$ac_builddir,;t t
 
25529
s,@abs_builddir@,$ac_abs_builddir,;t t
 
25530
s,@top_builddir@,$ac_top_builddir,;t t
 
25531
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10010
25532
s,@INSTALL@,$ac_INSTALL,;t t
10011
25533
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10012
25534
  rm -f $tmp/stdin
10018
25540
  fi
10019
25541
 
10020
25542
done
10021
 
EOF
10022
 
cat >>$CONFIG_STATUS <<\EOF
 
25543
_ACEOF
 
25544
cat >>$CONFIG_STATUS <<\_ACEOF
10023
25545
 
10024
25546
#
10025
25547
# CONFIG_HEADER section.
10029
25551
# NAME is the cpp macro being defined and VALUE is the value it is being given.
10030
25552
#
10031
25553
# ac_d sets the value in "#define NAME VALUE" lines.
10032
 
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
10033
 
ac_dB='[        ].*$,\1#\2'
 
25554
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
25555
ac_dB='[         ].*$,\1#\2'
10034
25556
ac_dC=' '
10035
25557
ac_dD=',;t'
10036
25558
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10037
 
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25559
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
10038
25560
ac_uB='$,\1#\2define\3'
10039
25561
ac_uC=' '
10040
25562
ac_uD=',;t'
10043
25565
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10044
25566
  case $ac_file in
10045
25567
  - | *:- | *:-:* ) # input from stdin
10046
 
        cat >$tmp/stdin
10047
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10048
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25568
        cat >$tmp/stdin
 
25569
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25570
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10049
25571
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10050
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25572
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10051
25573
  * )   ac_file_in=$ac_file.in ;;
10052
25574
  esac
10053
25575
 
10054
 
  test x"$ac_file" != x- && { echo "$as_me:10054: creating $ac_file" >&5
 
25576
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10055
25577
echo "$as_me: creating $ac_file" >&6;}
10056
25578
 
10057
25579
  # First look for the input files in the build tree, otherwise in the
10061
25583
      case $f in
10062
25584
      -) echo $tmp/stdin ;;
10063
25585
      [\\/$]*)
10064
 
         # Absolute (can't be DOS-style, as IFS=:)
10065
 
         test -f "$f" || { { echo "$as_me:10065: error: cannot find input file: $f" >&5
 
25586
         # Absolute (can't be DOS-style, as IFS=:)
 
25587
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10066
25588
echo "$as_me: error: cannot find input file: $f" >&2;}
10067
25589
   { (exit 1); exit 1; }; }
10068
 
         echo $f;;
 
25590
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
25591
         echo "$f";;
10069
25592
      *) # Relative
10070
 
         if test -f "$f"; then
10071
 
           # Build tree
10072
 
           echo $f
10073
 
         elif test -f "$srcdir/$f"; then
10074
 
           # Source tree
10075
 
           echo $srcdir/$f
10076
 
         else
10077
 
           # /dev/null tree
10078
 
           { { echo "$as_me:10078: error: cannot find input file: $f" >&5
 
25593
         if test -f "$f"; then
 
25594
           # Build tree
 
25595
           echo "$f"
 
25596
         elif test -f "$srcdir/$f"; then
 
25597
           # Source tree
 
25598
           echo "$srcdir/$f"
 
25599
         else
 
25600
           # /dev/null tree
 
25601
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10079
25602
echo "$as_me: error: cannot find input file: $f" >&2;}
10080
25603
   { (exit 1); exit 1; }; }
10081
 
         fi;;
 
25604
         fi;;
10082
25605
      esac
10083
25606
    done` || { (exit 1); exit 1; }
10084
25607
  # Remove the trailing spaces.
10085
 
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
25608
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
10086
25609
 
10087
 
EOF
 
25610
_ACEOF
10088
25611
 
10089
25612
# Transform confdefs.h into two sed scripts, `conftest.defines' and
10090
25613
# `conftest.undefs', that substitutes the proper values into
10100
25623
# `end' is used to avoid that the second main sed command (meant for
10101
25624
# 0-ary CPP macros) applies to n-ary macro definitions.
10102
25625
# See the Autoconf documentation for `clear'.
10103
 
cat >confdef2sed.sed <<\EOF
 
25626
cat >confdef2sed.sed <<\_ACEOF
10104
25627
s/[\\&,]/\\&/g
10105
25628
s,[\\$`],\\&,g
10106
25629
t clear
10107
25630
: clear
10108
 
s,^[    ]*#[    ]*define[       ][      ]*\(\([^        (][^    (]*\)([^)]*)\)[         ]*\(.*\)$,${ac_dA}\2${ac_dB}\1${ac_dC}\3${ac_dD},gp
 
25631
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10109
25632
t end
10110
 
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
25633
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10111
25634
: end
10112
 
EOF
 
25635
_ACEOF
10113
25636
# If some macros were called several times there might be several times
10114
25637
# the same #defines, which is useless.  Nevertheless, we may not want to
10115
25638
# sort them, since we want the *last* AC-DEFINE to be honored.
10120
25643
# This sed command replaces #undef with comments.  This is necessary, for
10121
25644
# example, in the case of _POSIX_SOURCE, which is predefined and required
10122
25645
# on some systems where configure will not decide to define it.
10123
 
cat >>conftest.undefs <<\EOF
10124
 
s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10125
 
EOF
 
25646
cat >>conftest.undefs <<\_ACEOF
 
25647
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
25648
_ACEOF
10126
25649
 
10127
25650
# Break up conftest.defines because some shells have a limit on the size
10128
25651
# of here documents, and old seds have small limits too (100 cmds).
10129
25652
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10130
 
echo '  if egrep "^[    ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
25653
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10131
25654
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10132
25655
echo '  :' >>$CONFIG_STATUS
10133
25656
rm -f conftest.tail
10136
25659
  # Write a limited-size here document to $tmp/defines.sed.
10137
25660
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10138
25661
  # Speed up: don't consider the non `#define' lines.
10139
 
  echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
25662
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
10140
25663
  # Work around the forget-to-reset-the-flag bug.
10141
25664
  echo 't clr' >>$CONFIG_STATUS
10142
25665
  echo ': clr' >>$CONFIG_STATUS
10151
25674
  mv conftest.tail conftest.defines
10152
25675
done
10153
25676
rm -f conftest.defines
10154
 
echo '  fi # egrep' >>$CONFIG_STATUS
 
25677
echo '  fi # grep' >>$CONFIG_STATUS
10155
25678
echo >>$CONFIG_STATUS
10156
25679
 
10157
25680
# Break up conftest.undefs because some shells have a limit on the size
10163
25686
  # Write a limited-size here document to $tmp/undefs.sed.
10164
25687
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10165
25688
  # Speed up: don't consider the non `#undef'
10166
 
  echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
25689
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
10167
25690
  # Work around the forget-to-reset-the-flag bug.
10168
25691
  echo 't clr' >>$CONFIG_STATUS
10169
25692
  echo ': clr' >>$CONFIG_STATUS
10179
25702
done
10180
25703
rm -f conftest.undefs
10181
25704
 
10182
 
cat >>$CONFIG_STATUS <<\EOF
 
25705
cat >>$CONFIG_STATUS <<\_ACEOF
10183
25706
  # Let's still pretend it is `configure' which instantiates (i.e., don't
10184
25707
  # use $as_me), people would be surprised to read:
10185
 
  #    /* config.h.  Generated automatically by config.status.  */
 
25708
  #    /* config.h.  Generated by config.status.  */
10186
25709
  if test x"$ac_file" = x-; then
10187
 
    echo "/* Generated automatically by configure.  */" >$tmp/config.h
 
25710
    echo "/* Generated by configure.  */" >$tmp/config.h
10188
25711
  else
10189
 
    echo "/* $ac_file.  Generated automatically by configure.  */" >$tmp/config.h
 
25712
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
10190
25713
  fi
10191
25714
  cat $tmp/in >>$tmp/config.h
10192
25715
  rm -f $tmp/in
10193
25716
  if test x"$ac_file" != x-; then
10194
 
    if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10195
 
      { echo "$as_me:10195: $ac_file is unchanged" >&5
 
25717
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
25718
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10196
25719
echo "$as_me: $ac_file is unchanged" >&6;}
10197
25720
    else
10198
 
      ac_dir=`$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10199
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
10200
 
         X"$ac_file" : 'X\(//\)$' \| \
10201
 
         X"$ac_file" : 'X\(/\)' \| \
10202
 
         .     : '\(.\)' 2>/dev/null ||
 
25721
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25722
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25723
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25724
         X"$ac_file" : 'X\(//\)$' \| \
 
25725
         X"$ac_file" : 'X\(/\)' \| \
 
25726
         .     : '\(.\)' 2>/dev/null ||
10203
25727
echo X"$ac_file" |
10204
25728
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10205
25729
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10206
25730
          /^X\(\/\/\)$/{ s//\1/; q; }
10207
25731
          /^X\(\/\).*/{ s//\1/; q; }
10208
25732
          s/.*/./; q'`
10209
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
10210
 
        { case "$ac_dir" in
10211
 
  [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10212
 
  *)                      as_incr_dir=.;;
10213
 
esac
10214
 
as_dummy="$ac_dir"
10215
 
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10216
 
  case $as_mkdir_dir in
10217
 
    # Skip DOS drivespec
10218
 
    ?:) as_incr_dir=$as_mkdir_dir ;;
10219
 
    *)
10220
 
      as_incr_dir=$as_incr_dir/$as_mkdir_dir
10221
 
      test -d "$as_incr_dir" || mkdir "$as_incr_dir"
10222
 
    ;;
10223
 
  esac
10224
 
done; }
 
25733
      { if $as_mkdir_p; then
 
25734
    mkdir -p "$ac_dir"
 
25735
  else
 
25736
    as_dir="$ac_dir"
 
25737
    as_dirs=
 
25738
    while test ! -d "$as_dir"; do
 
25739
      as_dirs="$as_dir $as_dirs"
 
25740
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25741
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25742
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25743
         X"$as_dir" : 'X\(//\)$' \| \
 
25744
         X"$as_dir" : 'X\(/\)' \| \
 
25745
         .     : '\(.\)' 2>/dev/null ||
 
25746
echo X"$as_dir" |
 
25747
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25748
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25749
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25750
          /^X\(\/\).*/{ s//\1/; q; }
 
25751
          s/.*/./; q'`
 
25752
    done
 
25753
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25754
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25755
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25756
   { (exit 1); exit 1; }; }; }
10225
25757
 
10226
 
      fi
10227
25758
      rm -f $ac_file
10228
25759
      mv $tmp/config.h $ac_file
10229
25760
    fi
10231
25762
    cat $tmp/config.h
10232
25763
    rm -f $tmp/config.h
10233
25764
  fi
10234
 
done
10235
 
EOF
10236
 
cat >>$CONFIG_STATUS <<\EOF
 
25765
# Compute $ac_file's index in $config_headers.
 
25766
_am_stamp_count=1
 
25767
for _am_header in $config_headers :; do
 
25768
  case $_am_header in
 
25769
    $ac_file | $ac_file:* )
 
25770
      break ;;
 
25771
    * )
 
25772
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
25773
  esac
 
25774
done
 
25775
echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
 
25776
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25777
         X$ac_file : 'X\(//\)[^/]' \| \
 
25778
         X$ac_file : 'X\(//\)$' \| \
 
25779
         X$ac_file : 'X\(/\)' \| \
 
25780
         .     : '\(.\)' 2>/dev/null ||
 
25781
echo X$ac_file |
 
25782
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25783
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25784
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25785
          /^X\(\/\).*/{ s//\1/; q; }
 
25786
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
25787
done
 
25788
_ACEOF
 
25789
cat >>$CONFIG_STATUS <<\_ACEOF
10237
25790
 
10238
25791
#
10239
25792
# CONFIG_COMMANDS section.
10241
25794
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10242
25795
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10243
25796
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10244
 
 
 
25797
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
25798
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25799
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
25800
         X"$ac_dest" : 'X\(//\)$' \| \
 
25801
         X"$ac_dest" : 'X\(/\)' \| \
 
25802
         .     : '\(.\)' 2>/dev/null ||
 
25803
echo X"$ac_dest" |
 
25804
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25805
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25806
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25807
          /^X\(\/\).*/{ s//\1/; q; }
 
25808
          s/.*/./; q'`
 
25809
  { if $as_mkdir_p; then
 
25810
    mkdir -p "$ac_dir"
 
25811
  else
 
25812
    as_dir="$ac_dir"
 
25813
    as_dirs=
 
25814
    while test ! -d "$as_dir"; do
 
25815
      as_dirs="$as_dir $as_dirs"
 
25816
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25817
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25818
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25819
         X"$as_dir" : 'X\(//\)$' \| \
 
25820
         X"$as_dir" : 'X\(/\)' \| \
 
25821
         .     : '\(.\)' 2>/dev/null ||
 
25822
echo X"$as_dir" |
 
25823
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25824
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25825
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25826
          /^X\(\/\).*/{ s//\1/; q; }
 
25827
          s/.*/./; q'`
 
25828
    done
 
25829
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25830
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25831
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25832
   { (exit 1); exit 1; }; }; }
 
25833
 
 
25834
  ac_builddir=.
 
25835
 
 
25836
if test "$ac_dir" != .; then
 
25837
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25838
  # A "../" for each directory in $ac_dir_suffix.
 
25839
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25840
else
 
25841
  ac_dir_suffix= ac_top_builddir=
 
25842
fi
 
25843
 
 
25844
case $srcdir in
 
25845
  .)  # No --srcdir option.  We are building in place.
 
25846
    ac_srcdir=.
 
25847
    if test -z "$ac_top_builddir"; then
 
25848
       ac_top_srcdir=.
 
25849
    else
 
25850
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25851
    fi ;;
 
25852
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25853
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25854
    ac_top_srcdir=$srcdir ;;
 
25855
  *) # Relative path.
 
25856
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25857
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25858
esac
 
25859
 
 
25860
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25861
# the directories may not exist.
 
25862
case `pwd` in
 
25863
.) ac_abs_builddir="$ac_dir";;
 
25864
*)
 
25865
  case "$ac_dir" in
 
25866
  .) ac_abs_builddir=`pwd`;;
 
25867
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25868
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25869
  esac;;
 
25870
esac
 
25871
case $ac_abs_builddir in
 
25872
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25873
*)
 
25874
  case ${ac_top_builddir}. in
 
25875
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25876
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25877
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25878
  esac;;
 
25879
esac
 
25880
case $ac_abs_builddir in
 
25881
.) ac_abs_srcdir=$ac_srcdir;;
 
25882
*)
 
25883
  case $ac_srcdir in
 
25884
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25885
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25886
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25887
  esac;;
 
25888
esac
 
25889
case $ac_abs_builddir in
 
25890
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25891
*)
 
25892
  case $ac_top_srcdir in
 
25893
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25894
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25895
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25896
  esac;;
 
25897
esac
 
25898
 
 
25899
 
 
25900
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
25901
echo "$as_me: executing $ac_dest commands" >&6;}
10245
25902
  case $ac_dest in
10246
 
    default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h ;;
10247
 
    default-2 )
10248
 
 
10249
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-extract.in > intltool-extract.out
 
25903
    intltool )
 
25904
 
 
25905
intltool_edit="-e 's#@INTLTOOL_EXTRACT@#`pwd`/intltool-extract#g' \
 
25906
               -e 's#@INTLTOOL_ICONV@#${INTLTOOL_ICONV}#g' \
 
25907
               -e 's#@INTLTOOL_MSGFMT@#${INTLTOOL_MSGFMT}#g' \
 
25908
               -e 's#@INTLTOOL_MSGMERGE@#${INTLTOOL_MSGMERGE}#g' \
 
25909
               -e 's#@INTLTOOL_XGETTEXT@#${INTLTOOL_XGETTEXT}#g' \
 
25910
               -e 's#@INTLTOOL_PERL@#${INTLTOOL_PERL}#g'"
 
25911
 
 
25912
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-extract.in \
 
25913
  > intltool-extract.out
10250
25914
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
10251
25915
  rm -f intltool-extract.out
10252
25916
else
10255
25919
chmod ugo+x intltool-extract
10256
25920
chmod u+w intltool-extract
10257
25921
 
10258
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-merge.in > intltool-merge.out
 
25922
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-merge.in \
 
25923
  > intltool-merge.out
10259
25924
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
10260
25925
  rm -f intltool-merge.out
10261
25926
else
10264
25929
chmod ugo+x intltool-merge
10265
25930
chmod u+w intltool-merge
10266
25931
 
10267
 
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${srcdir}/intltool-update.in > intltool-update.out
 
25932
eval sed ${intltool_edit} < ${ac_aux_dir}/intltool-update.in \
 
25933
  > intltool-update.out
10268
25934
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
10269
25935
  rm -f intltool-update.out
10270
25936
else
10274
25940
chmod u+w intltool-update
10275
25941
 
10276
25942
 ;;
10277
 
    default-3 ) case "$CONFIG_FILES" in *po/Makefile.in*)
 
25943
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25944
  # Strip MF so we end up with the name of the file.
 
25945
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25946
  # Check whether this is an Automake generated Makefile or not.
 
25947
  # We used to match only the files named `Makefile.in', but
 
25948
  # some people rename them; so instead we look at the file content.
 
25949
  # Grep'ing the first line is not enough: some people post-process
 
25950
  # each Makefile.in and add a new line on top of each file to say so.
 
25951
  # So let's grep whole file.
 
25952
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25953
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
25954
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25955
         X"$mf" : 'X\(//\)[^/]' \| \
 
25956
         X"$mf" : 'X\(//\)$' \| \
 
25957
         X"$mf" : 'X\(/\)' \| \
 
25958
         .     : '\(.\)' 2>/dev/null ||
 
25959
echo X"$mf" |
 
25960
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25961
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25962
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25963
          /^X\(\/\).*/{ s//\1/; q; }
 
25964
          s/.*/./; q'`
 
25965
  else
 
25966
    continue
 
25967
  fi
 
25968
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
25969
  # Extract the definition of DEP_FILES from the Makefile without
 
25970
  # running `make'.
 
25971
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
25972
  test -z "$DEPDIR" && continue
 
25973
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25974
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
25975
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
25976
  # We invoke sed twice because it is the simplest approach to
 
25977
  # changing $(DEPDIR) to its actual value in the expansion.
 
25978
  for file in `sed -n -e '
 
25979
    /^DEP_FILES = .*\\\\$/ {
 
25980
      s/^DEP_FILES = //
 
25981
      :loop
 
25982
        s/\\\\$//
 
25983
        p
 
25984
        n
 
25985
        /\\\\$/ b loop
 
25986
      p
 
25987
    }
 
25988
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
25989
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25990
    # Make sure the directory exists.
 
25991
    test -f "$dirpart/$file" && continue
 
25992
    fdir=`(dirname "$file") 2>/dev/null ||
 
25993
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25994
         X"$file" : 'X\(//\)[^/]' \| \
 
25995
         X"$file" : 'X\(//\)$' \| \
 
25996
         X"$file" : 'X\(/\)' \| \
 
25997
         .     : '\(.\)' 2>/dev/null ||
 
25998
echo X"$file" |
 
25999
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26000
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26001
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26002
          /^X\(\/\).*/{ s//\1/; q; }
 
26003
          s/.*/./; q'`
 
26004
    { if $as_mkdir_p; then
 
26005
    mkdir -p $dirpart/$fdir
 
26006
  else
 
26007
    as_dir=$dirpart/$fdir
 
26008
    as_dirs=
 
26009
    while test ! -d "$as_dir"; do
 
26010
      as_dirs="$as_dir $as_dirs"
 
26011
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
26012
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
26013
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
26014
         X"$as_dir" : 'X\(//\)$' \| \
 
26015
         X"$as_dir" : 'X\(/\)' \| \
 
26016
         .     : '\(.\)' 2>/dev/null ||
 
26017
echo X"$as_dir" |
 
26018
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
26019
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
26020
          /^X\(\/\/\)$/{ s//\1/; q; }
 
26021
          /^X\(\/\).*/{ s//\1/; q; }
 
26022
          s/.*/./; q'`
 
26023
    done
 
26024
    test ! -n "$as_dirs" || mkdir $as_dirs
 
26025
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
26026
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
26027
   { (exit 1); exit 1; }; }; }
 
26028
 
 
26029
    # echo "creating $dirpart/$file"
 
26030
    echo '# dummy' > "$dirpart/$file"
 
26031
  done
 
26032
done
 
26033
 ;;
 
26034
    default-1 ) case "$CONFIG_FILES" in *po/Makefile.in*)
10278
26035
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
10279
26036
      esac ;;
10280
26037
  esac
10281
26038
done
10282
 
EOF
 
26039
_ACEOF
10283
26040
 
10284
 
cat >>$CONFIG_STATUS <<\EOF
 
26041
cat >>$CONFIG_STATUS <<\_ACEOF
10285
26042
 
10286
26043
{ (exit 0); exit 0; }
10287
 
EOF
 
26044
_ACEOF
10288
26045
chmod +x $CONFIG_STATUS
10289
26046
ac_clean_files=$ac_clean_files_save
10290
26047
 
 
26048
 
10291
26049
# configure is writing to config.log, and then calls config.status.
10292
26050
# config.status does its own redirection, appending to config.log.
10293
26051
# Unfortunately, on DOS this fails, as config.log is still kept open
10298
26056
# need to make the FD available again.
10299
26057
if test "$no_create" != yes; then
10300
26058
  ac_cs_success=:
 
26059
  ac_config_status_args=
 
26060
  test "$silent" = yes &&
 
26061
    ac_config_status_args="$ac_config_status_args --quiet"
10301
26062
  exec 5>/dev/null
10302
 
  $SHELL $CONFIG_STATUS || ac_cs_success=false
 
26063
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10303
26064
  exec 5>>config.log
10304
26065
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10305
26066
  # would make configure fail if this is the last instruction.
10306
26067
  $ac_cs_success || { (exit 1); exit 1; }
10307
26068
fi
10308
26069
 
10309
 
cat $srcdir/message-of-doom
 
26070