~ubuntu-branches/ubuntu/quantal/linphone/quantal

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2004-06-30 13:58:16 UTC
  • Revision ID: james.westby@ubuntu.com-20040630135816-wwx75gdlodkqbabb
Tags: upstream-0.12.2
ImportĀ upstreamĀ versionĀ 0.12.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.59.
 
4
#
 
5
# Copyright (C) 2003 Free Software Foundation, Inc.
 
6
# This configure script is free software; the Free Software Foundation
 
7
# gives unlimited permission to copy, distribute and modify it.
 
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
 
 
244
 
 
245
# Check that we are running under the correct shell.
 
246
SHELL=${CONFIG_SHELL-/bin/sh}
 
247
 
 
248
case X$ECHO in
 
249
X*--fallback-echo)
 
250
  # Remove one level of quotation (which was required for Make).
 
251
  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
 
252
  ;;
 
253
esac
 
254
 
 
255
echo=${ECHO-echo}
 
256
if test "X$1" = X--no-reexec; then
 
257
  # Discard the --no-reexec flag, and continue.
 
258
  shift
 
259
elif test "X$1" = X--fallback-echo; then
 
260
  # Avoid inline document here, it may be left over
 
261
  :
 
262
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
 
263
  # Yippee, $echo works!
 
264
  :
 
265
else
 
266
  # Restart under the correct shell.
 
267
  exec $SHELL "$0" --no-reexec ${1+"$@"}
 
268
fi
 
269
 
 
270
if test "X$1" = X--fallback-echo; then
 
271
  # used as fallback echo
 
272
  shift
 
273
  cat <<EOF
 
274
$*
 
275
EOF
 
276
  exit 0
 
277
fi
 
278
 
 
279
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
280
# if CDPATH is set.
 
281
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
282
 
 
283
if test -z "$ECHO"; then
 
284
if test "X${echo_test_string+set}" != Xset; then
 
285
# find a string as large as possible, as long as the shell can cope with it
 
286
  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
 
287
    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
 
288
    if (echo_test_string="`eval $cmd`") 2>/dev/null &&
 
289
       echo_test_string="`eval $cmd`" &&
 
290
       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
 
291
    then
 
292
      break
 
293
    fi
 
294
  done
 
295
fi
 
296
 
 
297
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
298
   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
299
   test "X$echo_testing_string" = "X$echo_test_string"; then
 
300
  :
 
301
else
 
302
  # The Solaris, AIX, and Digital Unix default echo programs unquote
 
303
  # backslashes.  This makes it impossible to quote backslashes using
 
304
  #   echo "$something" | sed 's/\\/\\\\/g'
 
305
  #
 
306
  # So, first we look for a working echo in the user's PATH.
 
307
 
 
308
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
309
  for dir in $PATH /usr/ucb; do
 
310
    IFS="$lt_save_ifs"
 
311
    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
 
312
       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
 
313
       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
 
314
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
315
      echo="$dir/echo"
 
316
      break
 
317
    fi
 
318
  done
 
319
  IFS="$lt_save_ifs"
 
320
 
 
321
  if test "X$echo" = Xecho; then
 
322
    # We didn't find a better echo, so look for alternatives.
 
323
    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
 
324
       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
 
325
       test "X$echo_testing_string" = "X$echo_test_string"; then
 
326
      # This shell has a builtin print -r that does the trick.
 
327
      echo='print -r'
 
328
    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
 
329
         test "X$CONFIG_SHELL" != X/bin/ksh; then
 
330
      # If we have ksh, try running configure again with it.
 
331
      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
 
332
      export ORIGINAL_CONFIG_SHELL
 
333
      CONFIG_SHELL=/bin/ksh
 
334
      export CONFIG_SHELL
 
335
      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
 
336
    else
 
337
      # Try using printf.
 
338
      echo='printf %s\n'
 
339
      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
 
340
         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
 
341
         test "X$echo_testing_string" = "X$echo_test_string"; then
 
342
        # Cool, printf works
 
343
        :
 
344
      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
345
           test "X$echo_testing_string" = 'X\t' &&
 
346
           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
347
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
348
        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
 
349
        export CONFIG_SHELL
 
350
        SHELL="$CONFIG_SHELL"
 
351
        export SHELL
 
352
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
353
      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
 
354
           test "X$echo_testing_string" = 'X\t' &&
 
355
           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
 
356
           test "X$echo_testing_string" = "X$echo_test_string"; then
 
357
        echo="$CONFIG_SHELL $0 --fallback-echo"
 
358
      else
 
359
        # maybe with a smaller string...
 
360
        prev=:
 
361
 
 
362
        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
 
363
          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
 
364
          then
 
365
            break
 
366
          fi
 
367
          prev="$cmd"
 
368
        done
 
369
 
 
370
        if test "$prev" != 'sed 50q "$0"'; then
 
371
          echo_test_string=`eval $prev`
 
372
          export echo_test_string
 
373
          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
 
374
        else
 
375
          # Oops.  We lost completely, so just stick with echo.
 
376
          echo=echo
 
377
        fi
 
378
      fi
 
379
    fi
 
380
  fi
 
381
fi
 
382
fi
 
383
 
 
384
# Copy echo and quote the copy suitably for passing to libtool from
 
385
# the Makefile, instead of quoting the original, which is used later.
 
386
ECHO=$echo
 
387
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
 
388
   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
 
389
fi
 
390
 
 
391
 
 
392
 
 
393
 
 
394
tagnames=${tagnames+${tagnames},}CXX
 
395
 
 
396
tagnames=${tagnames+${tagnames},}F77
 
397
 
 
398
# Name of the host.
 
399
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
400
# so uname gets run too.
 
401
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
402
 
 
403
exec 6>&1
 
404
 
 
405
#
 
406
# Initializations.
 
407
#
 
408
ac_default_prefix=/usr/local
 
409
ac_config_libobj_dir=.
 
410
cross_compiling=no
 
411
subdirs=
 
412
MFLAGS=
 
413
MAKEFLAGS=
 
414
SHELL=${CONFIG_SHELL-/bin/sh}
 
415
 
 
416
# Maximum number of lines to put in a shell here document.
 
417
# This variable seems obsolete.  It should probably be removed, and
 
418
# only ac_max_sed_lines should be used.
 
419
: ${ac_max_here_lines=38}
 
420
 
 
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="configure.in"
 
429
# Factoring default headers for most tests.
 
430
ac_includes_default="\
 
431
#include <stdio.h>
 
432
#if HAVE_SYS_TYPES_H
 
433
# include <sys/types.h>
 
434
#endif
 
435
#if HAVE_SYS_STAT_H
 
436
# include <sys/stat.h>
 
437
#endif
 
438
#if STDC_HEADERS
 
439
# include <stdlib.h>
 
440
# include <stddef.h>
 
441
#else
 
442
# if HAVE_STDLIB_H
 
443
#  include <stdlib.h>
 
444
# endif
 
445
#endif
 
446
#if HAVE_STRING_H
 
447
# if !STDC_HEADERS && HAVE_MEMORY_H
 
448
#  include <memory.h>
 
449
# endif
 
450
# include <string.h>
 
451
#endif
 
452
#if HAVE_STRINGS_H
 
453
# include <strings.h>
 
454
#endif
 
455
#if HAVE_INTTYPES_H
 
456
# include <inttypes.h>
 
457
#else
 
458
# if HAVE_STDINT_H
 
459
#  include <stdint.h>
 
460
# endif
 
461
#endif
 
462
#if HAVE_UNISTD_H
 
463
# include <unistd.h>
 
464
#endif"
 
465
 
 
466
ac_subdirs_all="$ac_subdirs_all ffmpeg speex oRTP osipua"
 
467
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 PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE CPP EGREP 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_CAVES_RULE INTLTOOL_SCHEMAS_RULE INTLTOOL_THEME_RULE INTLTOOL_EXTRACT INTLTOOL_MERGE INTLTOOL_UPDATE INTLTOOL_PERL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GETTEXT_PACKAGE USE_NLS MSGFMT GMSGFMT XGETTEXT CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLLIBS PO_IN_DATADIR_TRUE PO_IN_DATADIR_FALSE POFILES POSUB MKINSTALLDIRS PKG_CONFIG GLIB_CFLAGS GLIB_LIBS GLIB_GENMARSHAL GOBJECT_QUERY GLIB_MKENUMS LIBGNOMEUI_CFLAGS LIBGNOMEUI_LIBS LIBGNOME_CFLAGS LIBGNOME_LIBS GNOME_APPLETS_CFLAGS GNOME_APPLETS_LIBS PTHREAD_LDFLAGS GSMLIB_CFLAGS osip_prefix IPV6_CFLAGS TRUESPEECH_CFLAGS BUILD_TRUESPEECH_TRUE BUILD_TRUESPEECH_FALSE SPEEX_CFLAGS SPEEX_LIBS NASM AVCODEC_LIBS GDK_CFLAGS GDK_LIBS BUILD_MEDIASTREAMER_TRUE BUILD_MEDIASTREAMER_FALSE HAVE_XINELIB_TRUE HAVE_XINELIB_FALSE HAVE_SMPEG_TRUE HAVE_SMPEG_FALSE BUILD_FFMPEG_TRUE BUILD_FFMPEG_FALSE BUILD_GDK_VO_TRUE BUILD_GDK_VO_FALSE BUILD_V4L_TRUE BUILD_V4L_FALSE BUILD_MEDIA_API_TRUE BUILD_MEDIA_API_FALSE BUILD_UGLIB_TRUE BUILD_UGLIB_FALSE BUILD_GNOME_TRUE BUILD_GNOME_FALSE BUILD_GNOME_APPLET_TRUE BUILD_GNOME_APPLET_FALSE BUILD_SPEEX_TRUE BUILD_SPEEX_FALSE ALSA_LIBS subdirs HTML_DIR GTK_DOC_CFLAGS GTK_DOC_LIBS ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE LINPHONE_CFLAGS LINPHONE_LIBS SUPPORTLIB LIBOBJS LTLIBOBJS'
 
468
ac_subst_files=''
 
469
 
 
470
# Initialize some variables set by options.
 
471
ac_init_help=
 
472
ac_init_version=false
 
473
# The variables have the same names as the options, with
 
474
# dashes changed to underlines.
 
475
cache_file=/dev/null
 
476
exec_prefix=NONE
 
477
no_create=
 
478
no_recursion=
 
479
prefix=NONE
 
480
program_prefix=NONE
 
481
program_suffix=NONE
 
482
program_transform_name=s,x,x,
 
483
silent=
 
484
site=
 
485
srcdir=
 
486
verbose=
 
487
x_includes=NONE
 
488
x_libraries=NONE
 
489
 
 
490
# Installation directory options.
 
491
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
492
# and all the variables that are supposed to be based on exec_prefix
 
493
# by default will actually change.
 
494
# Use braces instead of parens because sh, perl, etc. also accept them.
 
495
bindir='${exec_prefix}/bin'
 
496
sbindir='${exec_prefix}/sbin'
 
497
libexecdir='${exec_prefix}/libexec'
 
498
datadir='${prefix}/share'
 
499
sysconfdir='${prefix}/etc'
 
500
sharedstatedir='${prefix}/com'
 
501
localstatedir='${prefix}/var'
 
502
libdir='${exec_prefix}/lib'
 
503
includedir='${prefix}/include'
 
504
oldincludedir='/usr/include'
 
505
infodir='${prefix}/info'
 
506
mandir='${prefix}/man'
 
507
 
 
508
ac_prev=
 
509
for ac_option
 
510
do
 
511
  # If the previous option needs an argument, assign it.
 
512
  if test -n "$ac_prev"; then
 
513
    eval "$ac_prev=\$ac_option"
 
514
    ac_prev=
 
515
    continue
 
516
  fi
 
517
 
 
518
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
519
 
 
520
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
521
 
 
522
  case $ac_option in
 
523
 
 
524
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
525
    ac_prev=bindir ;;
 
526
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
527
    bindir=$ac_optarg ;;
 
528
 
 
529
  -build | --build | --buil | --bui | --bu)
 
530
    ac_prev=build_alias ;;
 
531
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
532
    build_alias=$ac_optarg ;;
 
533
 
 
534
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
535
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
536
    ac_prev=cache_file ;;
 
537
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
538
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
539
    cache_file=$ac_optarg ;;
 
540
 
 
541
  --config-cache | -C)
 
542
    cache_file=config.cache ;;
 
543
 
 
544
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
545
    ac_prev=datadir ;;
 
546
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
547
  | --da=*)
 
548
    datadir=$ac_optarg ;;
 
549
 
 
550
  -disable-* | --disable-*)
 
551
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
552
    # Reject names that are not valid shell variable names.
 
553
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
554
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
555
   { (exit 1); exit 1; }; }
 
556
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
557
    eval "enable_$ac_feature=no" ;;
 
558
 
 
559
  -enable-* | --enable-*)
 
560
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
561
    # Reject names that are not valid shell variable names.
 
562
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
563
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
564
   { (exit 1); exit 1; }; }
 
565
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
 
566
    case $ac_option in
 
567
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
568
      *) ac_optarg=yes ;;
 
569
    esac
 
570
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
571
 
 
572
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
573
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
574
  | --exec | --exe | --ex)
 
575
    ac_prev=exec_prefix ;;
 
576
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
577
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
578
  | --exec=* | --exe=* | --ex=*)
 
579
    exec_prefix=$ac_optarg ;;
 
580
 
 
581
  -gas | --gas | --ga | --g)
 
582
    # Obsolete; use --with-gas.
 
583
    with_gas=yes ;;
 
584
 
 
585
  -help | --help | --hel | --he | -h)
 
586
    ac_init_help=long ;;
 
587
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
588
    ac_init_help=recursive ;;
 
589
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
590
    ac_init_help=short ;;
 
591
 
 
592
  -host | --host | --hos | --ho)
 
593
    ac_prev=host_alias ;;
 
594
  -host=* | --host=* | --hos=* | --ho=*)
 
595
    host_alias=$ac_optarg ;;
 
596
 
 
597
  -includedir | --includedir | --includedi | --included | --include \
 
598
  | --includ | --inclu | --incl | --inc)
 
599
    ac_prev=includedir ;;
 
600
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
601
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
602
    includedir=$ac_optarg ;;
 
603
 
 
604
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
605
    ac_prev=infodir ;;
 
606
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
607
    infodir=$ac_optarg ;;
 
608
 
 
609
  -libdir | --libdir | --libdi | --libd)
 
610
    ac_prev=libdir ;;
 
611
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
612
    libdir=$ac_optarg ;;
 
613
 
 
614
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
615
  | --libexe | --libex | --libe)
 
616
    ac_prev=libexecdir ;;
 
617
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
618
  | --libexe=* | --libex=* | --libe=*)
 
619
    libexecdir=$ac_optarg ;;
 
620
 
 
621
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
622
  | --localstate | --localstat | --localsta | --localst \
 
623
  | --locals | --local | --loca | --loc | --lo)
 
624
    ac_prev=localstatedir ;;
 
625
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
626
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
 
627
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
628
    localstatedir=$ac_optarg ;;
 
629
 
 
630
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
631
    ac_prev=mandir ;;
 
632
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
633
    mandir=$ac_optarg ;;
 
634
 
 
635
  -nfp | --nfp | --nf)
 
636
    # Obsolete; use --without-fp.
 
637
    with_fp=no ;;
 
638
 
 
639
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
640
  | --no-cr | --no-c | -n)
 
641
    no_create=yes ;;
 
642
 
 
643
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
644
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
645
    no_recursion=yes ;;
 
646
 
 
647
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
648
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
649
  | --oldin | --oldi | --old | --ol | --o)
 
650
    ac_prev=oldincludedir ;;
 
651
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
652
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
653
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
654
    oldincludedir=$ac_optarg ;;
 
655
 
 
656
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
657
    ac_prev=prefix ;;
 
658
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
659
    prefix=$ac_optarg ;;
 
660
 
 
661
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
662
  | --program-pre | --program-pr | --program-p)
 
663
    ac_prev=program_prefix ;;
 
664
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
665
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
666
    program_prefix=$ac_optarg ;;
 
667
 
 
668
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
669
  | --program-suf | --program-su | --program-s)
 
670
    ac_prev=program_suffix ;;
 
671
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
672
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
673
    program_suffix=$ac_optarg ;;
 
674
 
 
675
  -program-transform-name | --program-transform-name \
 
676
  | --program-transform-nam | --program-transform-na \
 
677
  | --program-transform-n | --program-transform- \
 
678
  | --program-transform | --program-transfor \
 
679
  | --program-transfo | --program-transf \
 
680
  | --program-trans | --program-tran \
 
681
  | --progr-tra | --program-tr | --program-t)
 
682
    ac_prev=program_transform_name ;;
 
683
  -program-transform-name=* | --program-transform-name=* \
 
684
  | --program-transform-nam=* | --program-transform-na=* \
 
685
  | --program-transform-n=* | --program-transform-=* \
 
686
  | --program-transform=* | --program-transfor=* \
 
687
  | --program-transfo=* | --program-transf=* \
 
688
  | --program-trans=* | --program-tran=* \
 
689
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
690
    program_transform_name=$ac_optarg ;;
 
691
 
 
692
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
693
  | -silent | --silent | --silen | --sile | --sil)
 
694
    silent=yes ;;
 
695
 
 
696
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
697
    ac_prev=sbindir ;;
 
698
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
699
  | --sbi=* | --sb=*)
 
700
    sbindir=$ac_optarg ;;
 
701
 
 
702
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
703
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
704
  | --sharedst | --shareds | --shared | --share | --shar \
 
705
  | --sha | --sh)
 
706
    ac_prev=sharedstatedir ;;
 
707
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
708
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
709
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
710
  | --sha=* | --sh=*)
 
711
    sharedstatedir=$ac_optarg ;;
 
712
 
 
713
  -site | --site | --sit)
 
714
    ac_prev=site ;;
 
715
  -site=* | --site=* | --sit=*)
 
716
    site=$ac_optarg ;;
 
717
 
 
718
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
719
    ac_prev=srcdir ;;
 
720
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
721
    srcdir=$ac_optarg ;;
 
722
 
 
723
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
724
  | --syscon | --sysco | --sysc | --sys | --sy)
 
725
    ac_prev=sysconfdir ;;
 
726
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
727
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
728
    sysconfdir=$ac_optarg ;;
 
729
 
 
730
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
731
    ac_prev=target_alias ;;
 
732
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
733
    target_alias=$ac_optarg ;;
 
734
 
 
735
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
736
    verbose=yes ;;
 
737
 
 
738
  -version | --version | --versio | --versi | --vers | -V)
 
739
    ac_init_version=: ;;
 
740
 
 
741
  -with-* | --with-*)
 
742
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
743
    # Reject names that are not valid shell variable names.
 
744
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
745
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
746
   { (exit 1); exit 1; }; }
 
747
    ac_package=`echo $ac_package| sed 's/-/_/g'`
 
748
    case $ac_option in
 
749
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
750
      *) ac_optarg=yes ;;
 
751
    esac
 
752
    eval "with_$ac_package='$ac_optarg'" ;;
 
753
 
 
754
  -without-* | --without-*)
 
755
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
756
    # Reject names that are not valid shell variable names.
 
757
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
758
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
759
   { (exit 1); exit 1; }; }
 
760
    ac_package=`echo $ac_package | sed 's/-/_/g'`
 
761
    eval "with_$ac_package=no" ;;
 
762
 
 
763
  --x)
 
764
    # Obsolete; use --with-x.
 
765
    with_x=yes ;;
 
766
 
 
767
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
768
  | --x-incl | --x-inc | --x-in | --x-i)
 
769
    ac_prev=x_includes ;;
 
770
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
771
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
772
    x_includes=$ac_optarg ;;
 
773
 
 
774
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
775
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
776
    ac_prev=x_libraries ;;
 
777
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
778
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
779
    x_libraries=$ac_optarg ;;
 
780
 
 
781
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
782
Try \`$0 --help' for more information." >&2
 
783
   { (exit 1); exit 1; }; }
 
784
    ;;
 
785
 
 
786
  *=*)
 
787
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
788
    # Reject names that are not valid shell variable names.
 
789
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
790
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
791
   { (exit 1); exit 1; }; }
 
792
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
 
793
    eval "$ac_envvar='$ac_optarg'"
 
794
    export $ac_envvar ;;
 
795
 
 
796
  *)
 
797
    # FIXME: should be removed in autoconf 3.0.
 
798
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
799
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
800
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
801
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
802
    ;;
 
803
 
 
804
  esac
 
805
done
 
806
 
 
807
if test -n "$ac_prev"; then
 
808
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
809
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
810
   { (exit 1); exit 1; }; }
 
811
fi
 
812
 
 
813
# Be sure to have absolute paths.
 
814
for ac_var in exec_prefix prefix
 
815
do
 
816
  eval ac_val=$`echo $ac_var`
 
817
  case $ac_val in
 
818
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
819
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
820
   { (exit 1); exit 1; }; };;
 
821
  esac
 
822
done
 
823
 
 
824
# Be sure to have absolute paths.
 
825
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
 
826
              localstatedir libdir includedir oldincludedir infodir mandir
 
827
do
 
828
  eval ac_val=$`echo $ac_var`
 
829
  case $ac_val in
 
830
    [\\/$]* | ?:[\\/]* ) ;;
 
831
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
832
   { (exit 1); exit 1; }; };;
 
833
  esac
 
834
done
 
835
 
 
836
# There might be people who depend on the old broken behavior: `$host'
 
837
# used to hold the argument of --host etc.
 
838
# FIXME: To remove some day.
 
839
build=$build_alias
 
840
host=$host_alias
 
841
target=$target_alias
 
842
 
 
843
# FIXME: To remove some day.
 
844
if test "x$host_alias" != x; then
 
845
  if test "x$build_alias" = x; then
 
846
    cross_compiling=maybe
 
847
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
848
    If a cross compiler is detected then cross compile mode will be used." >&2
 
849
  elif test "x$build_alias" != "x$host_alias"; then
 
850
    cross_compiling=yes
 
851
  fi
 
852
fi
 
853
 
 
854
ac_tool_prefix=
 
855
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
856
 
 
857
test "$silent" = yes && exec 6>/dev/null
 
858
 
 
859
 
 
860
# Find the source files, if location was not specified.
 
861
if test -z "$srcdir"; then
 
862
  ac_srcdir_defaulted=yes
 
863
  # Try the directory containing this script, then its parent.
 
864
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
865
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
866
         X"$0" : 'X\(//\)[^/]' \| \
 
867
         X"$0" : 'X\(//\)$' \| \
 
868
         X"$0" : 'X\(/\)' \| \
 
869
         .     : '\(.\)' 2>/dev/null ||
 
870
echo X"$0" |
 
871
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
872
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
873
          /^X\(\/\/\)$/{ s//\1/; q; }
 
874
          /^X\(\/\).*/{ s//\1/; q; }
 
875
          s/.*/./; q'`
 
876
  srcdir=$ac_confdir
 
877
  if test ! -r $srcdir/$ac_unique_file; then
 
878
    srcdir=..
 
879
  fi
 
880
else
 
881
  ac_srcdir_defaulted=no
 
882
fi
 
883
if test ! -r $srcdir/$ac_unique_file; then
 
884
  if test "$ac_srcdir_defaulted" = yes; then
 
885
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
 
886
   { (exit 1); exit 1; }; }
 
887
  else
 
888
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
889
   { (exit 1); exit 1; }; }
 
890
  fi
 
891
fi
 
892
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
 
893
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
 
894
   { (exit 1); exit 1; }; }
 
895
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
 
896
ac_env_build_alias_set=${build_alias+set}
 
897
ac_env_build_alias_value=$build_alias
 
898
ac_cv_env_build_alias_set=${build_alias+set}
 
899
ac_cv_env_build_alias_value=$build_alias
 
900
ac_env_host_alias_set=${host_alias+set}
 
901
ac_env_host_alias_value=$host_alias
 
902
ac_cv_env_host_alias_set=${host_alias+set}
 
903
ac_cv_env_host_alias_value=$host_alias
 
904
ac_env_target_alias_set=${target_alias+set}
 
905
ac_env_target_alias_value=$target_alias
 
906
ac_cv_env_target_alias_set=${target_alias+set}
 
907
ac_cv_env_target_alias_value=$target_alias
 
908
ac_env_CC_set=${CC+set}
 
909
ac_env_CC_value=$CC
 
910
ac_cv_env_CC_set=${CC+set}
 
911
ac_cv_env_CC_value=$CC
 
912
ac_env_CFLAGS_set=${CFLAGS+set}
 
913
ac_env_CFLAGS_value=$CFLAGS
 
914
ac_cv_env_CFLAGS_set=${CFLAGS+set}
 
915
ac_cv_env_CFLAGS_value=$CFLAGS
 
916
ac_env_LDFLAGS_set=${LDFLAGS+set}
 
917
ac_env_LDFLAGS_value=$LDFLAGS
 
918
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
 
919
ac_cv_env_LDFLAGS_value=$LDFLAGS
 
920
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
 
921
ac_env_CPPFLAGS_value=$CPPFLAGS
 
922
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
 
923
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
 
924
ac_env_CPP_set=${CPP+set}
 
925
ac_env_CPP_value=$CPP
 
926
ac_cv_env_CPP_set=${CPP+set}
 
927
ac_cv_env_CPP_value=$CPP
 
928
ac_env_CXX_set=${CXX+set}
 
929
ac_env_CXX_value=$CXX
 
930
ac_cv_env_CXX_set=${CXX+set}
 
931
ac_cv_env_CXX_value=$CXX
 
932
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
 
933
ac_env_CXXFLAGS_value=$CXXFLAGS
 
934
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
 
935
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
 
936
ac_env_CXXCPP_set=${CXXCPP+set}
 
937
ac_env_CXXCPP_value=$CXXCPP
 
938
ac_cv_env_CXXCPP_set=${CXXCPP+set}
 
939
ac_cv_env_CXXCPP_value=$CXXCPP
 
940
ac_env_F77_set=${F77+set}
 
941
ac_env_F77_value=$F77
 
942
ac_cv_env_F77_set=${F77+set}
 
943
ac_cv_env_F77_value=$F77
 
944
ac_env_FFLAGS_set=${FFLAGS+set}
 
945
ac_env_FFLAGS_value=$FFLAGS
 
946
ac_cv_env_FFLAGS_set=${FFLAGS+set}
 
947
ac_cv_env_FFLAGS_value=$FFLAGS
 
948
 
 
949
#
 
950
# Report the --help message.
 
951
#
 
952
if test "$ac_init_help" = "long"; then
 
953
  # Omit some internal or obsolete options to make the list less imposing.
 
954
  # This message is too long to be a string in the A/UX 3.1 sh.
 
955
  cat <<_ACEOF
 
956
\`configure' configures this package to adapt to many kinds of systems.
 
957
 
 
958
Usage: $0 [OPTION]... [VAR=VALUE]...
 
959
 
 
960
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
961
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
962
 
 
963
Defaults for the options are specified in brackets.
 
964
 
 
965
Configuration:
 
966
  -h, --help              display this help and exit
 
967
      --help=short        display options specific to this package
 
968
      --help=recursive    display the short help of all the included packages
 
969
  -V, --version           display version information and exit
 
970
  -q, --quiet, --silent   do not print \`checking...' messages
 
971
      --cache-file=FILE   cache test results in FILE [disabled]
 
972
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
973
  -n, --no-create         do not create output files
 
974
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
975
 
 
976
_ACEOF
 
977
 
 
978
  cat <<_ACEOF
 
979
Installation directories:
 
980
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
981
                          [$ac_default_prefix]
 
982
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
983
                          [PREFIX]
 
984
 
 
985
By default, \`make install' will install all the files in
 
986
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
987
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
988
for instance \`--prefix=\$HOME'.
 
989
 
 
990
For better control, use the options below.
 
991
 
 
992
Fine tuning of the installation directories:
 
993
  --bindir=DIR           user executables [EPREFIX/bin]
 
994
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
995
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
996
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
 
997
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
998
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
999
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1000
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1001
  --includedir=DIR       C header files [PREFIX/include]
 
1002
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1003
  --infodir=DIR          info documentation [PREFIX/info]
 
1004
  --mandir=DIR           man documentation [PREFIX/man]
 
1005
_ACEOF
 
1006
 
 
1007
  cat <<\_ACEOF
 
1008
 
 
1009
Program names:
 
1010
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1011
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1012
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1013
 
 
1014
System types:
 
1015
  --build=BUILD     configure for building on BUILD [guessed]
 
1016
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 
1017
_ACEOF
 
1018
fi
 
1019
 
 
1020
if test -n "$ac_init_help"; then
 
1021
 
 
1022
  cat <<\_ACEOF
 
1023
 
 
1024
Optional Features:
 
1025
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1026
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1027
  --disable-dependency-tracking Speeds up one-time builds
 
1028
  --enable-dependency-tracking  Do not reject slow dependency extractors
 
1029
  --enable-shared[=PKGS]
 
1030
                          build shared libraries [default=yes]
 
1031
  --enable-static[=PKGS]
 
1032
                          build static libraries [default=yes]
 
1033
  --enable-fast-install[=PKGS]
 
1034
                          optimize for fast installation [default=yes]
 
1035
  --disable-libtool-lock  avoid locking (might break parallel builds)
 
1036
  --enable-glib    Turn on glib support
 
1037
  --enable-gnome_ui=yes/no    Turn on or off compilation of gnome interface default=yes
 
1038
  --disable-glibtest      do not try to compile and run a test GLIB program
 
1039
  --enable-alsa    Turn on alsa native support compiling
 
1040
  --enable-ipv6    Turn on ipv6 support
 
1041
  --enable-truespeech    Turn on TrueSpeech support (x86 only)
 
1042
  --enable-video    Turn on video support compiling (requires nasm): not functionnal for the moment
 
1043
 
 
1044
Optional Packages:
 
1045
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1046
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1047
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
 
1048
  --with-pic              try to use only PIC/non-PIC objects [default=use
 
1049
                          both]
 
1050
  --with-tags[=TAGS]
 
1051
                          include additional configurations [automatic]
 
1052
  --with-realprefix      Set the real installation prefix. This option has to be used for cross-compilation only. (ex:/usr or /usr/local)default=none
 
1053
  --with-osip      Set prefix where osip can be found (ex:/usr or /usr/local)default=/usr/local
 
1054
  --with-speex      Set prefix where speex lib can be found (ex:/usr, /usr/local, embedded (=use speex sources embedded in linphone's distribution) )default=/usr
 
1055
  --with-html-dir=PATH path to installed docs
 
1056
 
 
1057
Some influential environment variables:
 
1058
  CC          C compiler command
 
1059
  CFLAGS      C compiler flags
 
1060
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1061
              nonstandard directory <lib dir>
 
1062
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
 
1063
              headers in a nonstandard directory <include dir>
 
1064
  CPP         C preprocessor
 
1065
  CXX         C++ compiler command
 
1066
  CXXFLAGS    C++ compiler flags
 
1067
  CXXCPP      C++ preprocessor
 
1068
  F77         Fortran 77 compiler command
 
1069
  FFLAGS      Fortran 77 compiler flags
 
1070
 
 
1071
Use these variables to override the choices made by `configure' or to help
 
1072
it to find libraries and programs with nonstandard names/locations.
 
1073
 
 
1074
_ACEOF
 
1075
fi
 
1076
 
 
1077
if test "$ac_init_help" = "recursive"; then
 
1078
  # If there are subdirs, report their specific --help.
 
1079
  ac_popdir=`pwd`
 
1080
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1081
    test -d $ac_dir || continue
 
1082
    ac_builddir=.
 
1083
 
 
1084
if test "$ac_dir" != .; then
 
1085
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1086
  # A "../" for each directory in $ac_dir_suffix.
 
1087
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
1088
else
 
1089
  ac_dir_suffix= ac_top_builddir=
 
1090
fi
 
1091
 
 
1092
case $srcdir in
 
1093
  .)  # No --srcdir option.  We are building in place.
 
1094
    ac_srcdir=.
 
1095
    if test -z "$ac_top_builddir"; then
 
1096
       ac_top_srcdir=.
 
1097
    else
 
1098
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
1099
    fi ;;
 
1100
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
1101
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1102
    ac_top_srcdir=$srcdir ;;
 
1103
  *) # Relative path.
 
1104
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
1105
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
1106
esac
 
1107
 
 
1108
# Do not use `cd foo && pwd` to compute absolute paths, because
 
1109
# the directories may not exist.
 
1110
case `pwd` in
 
1111
.) ac_abs_builddir="$ac_dir";;
 
1112
*)
 
1113
  case "$ac_dir" in
 
1114
  .) ac_abs_builddir=`pwd`;;
 
1115
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
1116
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
1117
  esac;;
 
1118
esac
 
1119
case $ac_abs_builddir in
 
1120
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1121
*)
 
1122
  case ${ac_top_builddir}. in
 
1123
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
1124
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
1125
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
1126
  esac;;
 
1127
esac
 
1128
case $ac_abs_builddir in
 
1129
.) ac_abs_srcdir=$ac_srcdir;;
 
1130
*)
 
1131
  case $ac_srcdir in
 
1132
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
1133
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
1134
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
1135
  esac;;
 
1136
esac
 
1137
case $ac_abs_builddir in
 
1138
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1139
*)
 
1140
  case $ac_top_srcdir in
 
1141
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
1142
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
1143
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
1144
  esac;;
 
1145
esac
 
1146
 
 
1147
    cd $ac_dir
 
1148
    # Check for guested configure; otherwise get Cygnus style configure.
 
1149
    if test -f $ac_srcdir/configure.gnu; then
 
1150
      echo
 
1151
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
1152
    elif test -f $ac_srcdir/configure; then
 
1153
      echo
 
1154
      $SHELL $ac_srcdir/configure  --help=recursive
 
1155
    elif test -f $ac_srcdir/configure.ac ||
 
1156
           test -f $ac_srcdir/configure.in; then
 
1157
      echo
 
1158
      $ac_configure --help
 
1159
    else
 
1160
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1161
    fi
 
1162
    cd "$ac_popdir"
 
1163
  done
 
1164
fi
 
1165
 
 
1166
test -n "$ac_init_help" && exit 0
 
1167
if $ac_init_version; then
 
1168
  cat <<\_ACEOF
 
1169
 
 
1170
Copyright (C) 2003 Free Software Foundation, Inc.
 
1171
This configure script is free software; the Free Software Foundation
 
1172
gives unlimited permission to copy, distribute and modify it.
 
1173
_ACEOF
 
1174
  exit 0
 
1175
fi
 
1176
exec 5>config.log
 
1177
cat >&5 <<_ACEOF
 
1178
This file contains any messages produced by compilers while
 
1179
running configure, to aid debugging if configure makes a mistake.
 
1180
 
 
1181
It was created by $as_me, which was
 
1182
generated by GNU Autoconf 2.59.  Invocation command line was
 
1183
 
 
1184
  $ $0 $@
 
1185
 
 
1186
_ACEOF
 
1187
{
 
1188
cat <<_ASUNAME
 
1189
## --------- ##
 
1190
## Platform. ##
 
1191
## --------- ##
 
1192
 
 
1193
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1194
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1195
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1196
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1197
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1198
 
 
1199
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1200
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1201
 
 
1202
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1203
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1204
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1205
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1206
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1207
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1208
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1209
 
 
1210
_ASUNAME
 
1211
 
 
1212
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1213
for as_dir in $PATH
 
1214
do
 
1215
  IFS=$as_save_IFS
 
1216
  test -z "$as_dir" && as_dir=.
 
1217
  echo "PATH: $as_dir"
 
1218
done
 
1219
 
 
1220
} >&5
 
1221
 
 
1222
cat >&5 <<_ACEOF
 
1223
 
 
1224
 
 
1225
## ----------- ##
 
1226
## Core tests. ##
 
1227
## ----------- ##
 
1228
 
 
1229
_ACEOF
 
1230
 
 
1231
 
 
1232
# Keep a trace of the command line.
 
1233
# Strip out --no-create and --no-recursion so they do not pile up.
 
1234
# Strip out --silent because we don't want to record it for future runs.
 
1235
# Also quote any args containing shell meta-characters.
 
1236
# Make two passes to allow for proper duplicate-argument suppression.
 
1237
ac_configure_args=
 
1238
ac_configure_args0=
 
1239
ac_configure_args1=
 
1240
ac_sep=
 
1241
ac_must_keep_next=false
 
1242
for ac_pass in 1 2
 
1243
do
 
1244
  for ac_arg
 
1245
  do
 
1246
    case $ac_arg in
 
1247
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1248
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1249
    | -silent | --silent | --silen | --sile | --sil)
 
1250
      continue ;;
 
1251
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1252
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1253
    esac
 
1254
    case $ac_pass in
 
1255
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1256
    2)
 
1257
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1258
      if test $ac_must_keep_next = true; then
 
1259
        ac_must_keep_next=false # Got value, back to normal.
 
1260
      else
 
1261
        case $ac_arg in
 
1262
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1263
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1264
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1265
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1266
            case "$ac_configure_args0 " in
 
1267
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1268
            esac
 
1269
            ;;
 
1270
          -* ) ac_must_keep_next=true ;;
 
1271
        esac
 
1272
      fi
 
1273
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1274
      # Get rid of the leading space.
 
1275
      ac_sep=" "
 
1276
      ;;
 
1277
    esac
 
1278
  done
 
1279
done
 
1280
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1281
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1282
 
 
1283
# When interrupted or exit'd, cleanup temporary files, and complete
 
1284
# config.log.  We remove comments because anyway the quotes in there
 
1285
# would cause problems or look ugly.
 
1286
# WARNING: Be sure not to use single quotes in there, as some shells,
 
1287
# such as our DU 5.0 friend, will then `close' the trap.
 
1288
trap 'exit_status=$?
 
1289
  # Save into config.log some information that might help in debugging.
 
1290
  {
 
1291
    echo
 
1292
 
 
1293
    cat <<\_ASBOX
 
1294
## ---------------- ##
 
1295
## Cache variables. ##
 
1296
## ---------------- ##
 
1297
_ASBOX
 
1298
    echo
 
1299
    # The following way of writing the cache mishandles newlines in values,
 
1300
{
 
1301
  (set) 2>&1 |
 
1302
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1303
    *ac_space=\ *)
 
1304
      sed -n \
 
1305
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1306
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1307
      ;;
 
1308
    *)
 
1309
      sed -n \
 
1310
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1311
      ;;
 
1312
    esac;
 
1313
}
 
1314
    echo
 
1315
 
 
1316
    cat <<\_ASBOX
 
1317
## ----------------- ##
 
1318
## Output variables. ##
 
1319
## ----------------- ##
 
1320
_ASBOX
 
1321
    echo
 
1322
    for ac_var in $ac_subst_vars
 
1323
    do
 
1324
      eval ac_val=$`echo $ac_var`
 
1325
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1326
    done | sort
 
1327
    echo
 
1328
 
 
1329
    if test -n "$ac_subst_files"; then
 
1330
      cat <<\_ASBOX
 
1331
## ------------- ##
 
1332
## Output files. ##
 
1333
## ------------- ##
 
1334
_ASBOX
 
1335
      echo
 
1336
      for ac_var in $ac_subst_files
 
1337
      do
 
1338
        eval ac_val=$`echo $ac_var`
 
1339
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1340
      done | sort
 
1341
      echo
 
1342
    fi
 
1343
 
 
1344
    if test -s confdefs.h; then
 
1345
      cat <<\_ASBOX
 
1346
## ----------- ##
 
1347
## confdefs.h. ##
 
1348
## ----------- ##
 
1349
_ASBOX
 
1350
      echo
 
1351
      sed "/^$/d" confdefs.h | sort
 
1352
      echo
 
1353
    fi
 
1354
    test "$ac_signal" != 0 &&
 
1355
      echo "$as_me: caught signal $ac_signal"
 
1356
    echo "$as_me: exit $exit_status"
 
1357
  } >&5
 
1358
  rm -f core *.core &&
 
1359
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1360
    exit $exit_status
 
1361
     ' 0
 
1362
for ac_signal in 1 2 13 15; do
 
1363
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1364
done
 
1365
ac_signal=0
 
1366
 
 
1367
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1368
rm -rf conftest* confdefs.h
 
1369
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
 
1370
echo >confdefs.h
 
1371
 
 
1372
# Predefined preprocessor variables.
 
1373
 
 
1374
cat >>confdefs.h <<_ACEOF
 
1375
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1376
_ACEOF
 
1377
 
 
1378
 
 
1379
cat >>confdefs.h <<_ACEOF
 
1380
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1381
_ACEOF
 
1382
 
 
1383
 
 
1384
cat >>confdefs.h <<_ACEOF
 
1385
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1386
_ACEOF
 
1387
 
 
1388
 
 
1389
cat >>confdefs.h <<_ACEOF
 
1390
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1391
_ACEOF
 
1392
 
 
1393
 
 
1394
cat >>confdefs.h <<_ACEOF
 
1395
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1396
_ACEOF
 
1397
 
 
1398
 
 
1399
# Let the site file select an alternate cache file if it wants to.
 
1400
# Prefer explicitly selected file to automatically selected ones.
 
1401
if test -z "$CONFIG_SITE"; then
 
1402
  if test "x$prefix" != xNONE; then
 
1403
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
 
1404
  else
 
1405
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1406
  fi
 
1407
fi
 
1408
for ac_site_file in $CONFIG_SITE; do
 
1409
  if test -r "$ac_site_file"; then
 
1410
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1411
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1412
    sed 's/^/| /' "$ac_site_file" >&5
 
1413
    . "$ac_site_file"
 
1414
  fi
 
1415
done
 
1416
 
 
1417
if test -r "$cache_file"; then
 
1418
  # Some versions of bash will fail to source /dev/null (special
 
1419
  # files actually), so we avoid doing that.
 
1420
  if test -f "$cache_file"; then
 
1421
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1422
echo "$as_me: loading cache $cache_file" >&6;}
 
1423
    case $cache_file in
 
1424
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1425
      *)                      . ./$cache_file;;
 
1426
    esac
 
1427
  fi
 
1428
else
 
1429
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1430
echo "$as_me: creating cache $cache_file" >&6;}
 
1431
  >$cache_file
 
1432
fi
 
1433
 
 
1434
# Check that the precious variables saved in the cache have kept the same
 
1435
# value.
 
1436
ac_cache_corrupted=false
 
1437
for ac_var in `(set) 2>&1 |
 
1438
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
 
1439
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1440
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1441
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
 
1442
  eval ac_new_val="\$ac_env_${ac_var}_value"
 
1443
  case $ac_old_set,$ac_new_set in
 
1444
    set,)
 
1445
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1446
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1447
      ac_cache_corrupted=: ;;
 
1448
    ,set)
 
1449
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1450
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1451
      ac_cache_corrupted=: ;;
 
1452
    ,);;
 
1453
    *)
 
1454
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1455
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1456
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1457
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1458
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1459
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1460
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1461
        ac_cache_corrupted=:
 
1462
      fi;;
 
1463
  esac
 
1464
  # Pass precious variables to config.status.
 
1465
  if test "$ac_new_set" = set; then
 
1466
    case $ac_new_val in
 
1467
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1468
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1469
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1470
    esac
 
1471
    case " $ac_configure_args " in
 
1472
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1473
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1474
    esac
 
1475
  fi
 
1476
done
 
1477
if $ac_cache_corrupted; then
 
1478
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1479
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1480
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1481
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1482
   { (exit 1); exit 1; }; }
 
1483
fi
 
1484
 
 
1485
ac_ext=c
 
1486
ac_cpp='$CPP $CPPFLAGS'
 
1487
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1488
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1489
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1490
 
 
1491
 
 
1492
 
 
1493
 
 
1494
 
 
1495
 
 
1496
 
 
1497
 
 
1498
 
 
1499
 
 
1500
 
 
1501
 
 
1502
 
 
1503
 
 
1504
 
 
1505
 
 
1506
 
 
1507
 
 
1508
 
 
1509
 
 
1510
VERSION=0.12.2
 
1511
PACKAGE=linphone
 
1512
 
 
1513
 
 
1514
am__api_version="1.6"
 
1515
ac_aux_dir=
 
1516
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1517
  if test -f $ac_dir/install-sh; then
 
1518
    ac_aux_dir=$ac_dir
 
1519
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1520
    break
 
1521
  elif test -f $ac_dir/install.sh; then
 
1522
    ac_aux_dir=$ac_dir
 
1523
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1524
    break
 
1525
  elif test -f $ac_dir/shtool; then
 
1526
    ac_aux_dir=$ac_dir
 
1527
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1528
    break
 
1529
  fi
 
1530
done
 
1531
if test -z "$ac_aux_dir"; then
 
1532
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 
1533
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 
1534
   { (exit 1); exit 1; }; }
 
1535
fi
 
1536
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 
1537
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 
1538
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 
1539
 
 
1540
# Find a good install program.  We prefer a C program (faster),
 
1541
# so one script is as good as another.  But avoid the broken or
 
1542
# incompatible versions:
 
1543
# SysV /etc/install, /usr/sbin/install
 
1544
# SunOS /usr/etc/install
 
1545
# IRIX /sbin/install
 
1546
# AIX /bin/install
 
1547
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1548
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1549
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1550
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1551
# OS/2's system install, which has a completely different semantic
 
1552
# ./install, which can be erroneously created by make from ./install.sh.
 
1553
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1554
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 
1555
if test -z "$INSTALL"; then
 
1556
if test "${ac_cv_path_install+set}" = set; then
 
1557
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1558
else
 
1559
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1560
for as_dir in $PATH
 
1561
do
 
1562
  IFS=$as_save_IFS
 
1563
  test -z "$as_dir" && as_dir=.
 
1564
  # Account for people who put trailing slashes in PATH elements.
 
1565
case $as_dir/ in
 
1566
  ./ | .// | /cC/* | \
 
1567
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1568
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1569
  /usr/ucb/* ) ;;
 
1570
  *)
 
1571
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1572
    # Don't use installbsd from OSF since it installs stuff as root
 
1573
    # by default.
 
1574
    for ac_prog in ginstall scoinst install; do
 
1575
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1576
        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 
1577
          if test $ac_prog = install &&
 
1578
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1579
            # AIX install.  It has an incompatible calling convention.
 
1580
            :
 
1581
          elif test $ac_prog = install &&
 
1582
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1583
            # program-specific install script used by HP pwplus--don't use.
 
1584
            :
 
1585
          else
 
1586
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1587
            break 3
 
1588
          fi
 
1589
        fi
 
1590
      done
 
1591
    done
 
1592
    ;;
 
1593
esac
 
1594
done
 
1595
 
 
1596
 
 
1597
fi
 
1598
  if test "${ac_cv_path_install+set}" = set; then
 
1599
    INSTALL=$ac_cv_path_install
 
1600
  else
 
1601
    # As a last resort, use the slow shell script.  We don't cache a
 
1602
    # path for INSTALL within a source directory, because that will
 
1603
    # break other packages using the cache if that directory is
 
1604
    # removed, or if the path is relative.
 
1605
    INSTALL=$ac_install_sh
 
1606
  fi
 
1607
fi
 
1608
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1609
echo "${ECHO_T}$INSTALL" >&6
 
1610
 
 
1611
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1612
# It thinks the first close brace ends the variable substitution.
 
1613
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1614
 
 
1615
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1616
 
 
1617
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1618
 
 
1619
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1620
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 
1621
# Just in case
 
1622
sleep 1
 
1623
echo timestamp > conftest.file
 
1624
# Do `set' in a subshell so we don't clobber the current shell's
 
1625
# arguments.  Must try -L first in case configure is actually a
 
1626
# symlink; some systems play weird games with the mod time of symlinks
 
1627
# (eg FreeBSD returns the mod time of the symlink's containing
 
1628
# directory).
 
1629
if (
 
1630
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1631
   if test "$*" = "X"; then
 
1632
      # -L didn't work.
 
1633
      set X `ls -t $srcdir/configure conftest.file`
 
1634
   fi
 
1635
   rm -f conftest.file
 
1636
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1637
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1638
 
 
1639
      # If neither matched, then we have a broken ls.  This can happen
 
1640
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1641
      # broken ls alias from the environment.  This has actually
 
1642
      # happened.  Such a system could not be considered "sane".
 
1643
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1644
alias in your environment" >&5
 
1645
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1646
alias in your environment" >&2;}
 
1647
   { (exit 1); exit 1; }; }
 
1648
   fi
 
1649
 
 
1650
   test "$2" = conftest.file
 
1651
   )
 
1652
then
 
1653
   # Ok.
 
1654
   :
 
1655
else
 
1656
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1657
Check your system clock" >&5
 
1658
echo "$as_me: error: newly created file is older than distributed files!
 
1659
Check your system clock" >&2;}
 
1660
   { (exit 1); exit 1; }; }
 
1661
fi
 
1662
echo "$as_me:$LINENO: result: yes" >&5
 
1663
echo "${ECHO_T}yes" >&6
 
1664
test "$program_prefix" != NONE &&
 
1665
  program_transform_name="s,^,$program_prefix,;$program_transform_name"
 
1666
# Use a double $ so make ignores it.
 
1667
test "$program_suffix" != NONE &&
 
1668
  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 
1669
# Double any \ or $.  echo might interpret backslashes.
 
1670
# By default was `s,x,x', remove it if useless.
 
1671
cat <<\_ACEOF >conftest.sed
 
1672
s/[\\$]/&&/g;s/;s,x,x,$//
 
1673
_ACEOF
 
1674
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1675
rm conftest.sed
 
1676
 
 
1677
 
 
1678
# expand $ac_aux_dir to an absolute path
 
1679
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1680
 
 
1681
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1682
# Use eval to expand $SHELL
 
1683
if eval "$MISSING --run true"; then
 
1684
  am_missing_run="$MISSING --run "
 
1685
else
 
1686
  am_missing_run=
 
1687
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1688
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1689
fi
 
1690
 
 
1691
for ac_prog in gawk mawk nawk awk
 
1692
do
 
1693
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
1694
set dummy $ac_prog; ac_word=$2
 
1695
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1696
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1697
if test "${ac_cv_prog_AWK+set}" = set; then
 
1698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1699
else
 
1700
  if test -n "$AWK"; then
 
1701
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1702
else
 
1703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1704
for as_dir in $PATH
 
1705
do
 
1706
  IFS=$as_save_IFS
 
1707
  test -z "$as_dir" && as_dir=.
 
1708
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1709
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1710
    ac_cv_prog_AWK="$ac_prog"
 
1711
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1712
    break 2
 
1713
  fi
 
1714
done
 
1715
done
 
1716
 
 
1717
fi
 
1718
fi
 
1719
AWK=$ac_cv_prog_AWK
 
1720
if test -n "$AWK"; then
 
1721
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1722
echo "${ECHO_T}$AWK" >&6
 
1723
else
 
1724
  echo "$as_me:$LINENO: result: no" >&5
 
1725
echo "${ECHO_T}no" >&6
 
1726
fi
 
1727
 
 
1728
  test -n "$AWK" && break
 
1729
done
 
1730
 
 
1731
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
1732
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 
1733
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 
1734
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 
1735
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1736
else
 
1737
  cat >conftest.make <<\_ACEOF
 
1738
all:
 
1739
        @echo 'ac_maketemp="$(MAKE)"'
 
1740
_ACEOF
 
1741
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
1742
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 
1743
if test -n "$ac_maketemp"; then
 
1744
  eval ac_cv_prog_make_${ac_make}_set=yes
 
1745
else
 
1746
  eval ac_cv_prog_make_${ac_make}_set=no
 
1747
fi
 
1748
rm -f conftest.make
 
1749
fi
 
1750
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 
1751
  echo "$as_me:$LINENO: result: yes" >&5
 
1752
echo "${ECHO_T}yes" >&6
 
1753
  SET_MAKE=
 
1754
else
 
1755
  echo "$as_me:$LINENO: result: no" >&5
 
1756
echo "${ECHO_T}no" >&6
 
1757
  SET_MAKE="MAKE=${MAKE-make}"
 
1758
fi
 
1759
 
 
1760
 # test to see if srcdir already configured
 
1761
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
1762
   test -f $srcdir/config.status; then
 
1763
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
1764
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
1765
   { (exit 1); exit 1; }; }
 
1766
fi
 
1767
 
 
1768
# Define the identity of the package.
 
1769
 PACKAGE=$PACKAGE
 
1770
 VERSION=$VERSION
 
1771
 
 
1772
 
 
1773
# Some tools Automake needs.
 
1774
 
 
1775
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1776
 
 
1777
 
 
1778
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1779
 
 
1780
 
 
1781
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1782
 
 
1783
 
 
1784
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1785
 
 
1786
 
 
1787
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1788
 
 
1789
 
 
1790
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1791
 
 
1792
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1793
 
 
1794
# Installed binaries are usually stripped using `strip' when the user
 
1795
# run `make install-strip'.  However `strip' might not be the right
 
1796
# tool to use in cross-compilation environments, therefore Automake
 
1797
# will honor the `STRIP' environment variable to overrule this program.
 
1798
if test "$cross_compiling" != no; then
 
1799
  if test -n "$ac_tool_prefix"; then
 
1800
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
1801
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
1802
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1803
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1804
if test "${ac_cv_prog_STRIP+set}" = set; then
 
1805
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1806
else
 
1807
  if test -n "$STRIP"; then
 
1808
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1809
else
 
1810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1811
for as_dir in $PATH
 
1812
do
 
1813
  IFS=$as_save_IFS
 
1814
  test -z "$as_dir" && as_dir=.
 
1815
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1816
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1817
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
1818
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1819
    break 2
 
1820
  fi
 
1821
done
 
1822
done
 
1823
 
 
1824
fi
 
1825
fi
 
1826
STRIP=$ac_cv_prog_STRIP
 
1827
if test -n "$STRIP"; then
 
1828
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
1829
echo "${ECHO_T}$STRIP" >&6
 
1830
else
 
1831
  echo "$as_me:$LINENO: result: no" >&5
 
1832
echo "${ECHO_T}no" >&6
 
1833
fi
 
1834
 
 
1835
fi
 
1836
if test -z "$ac_cv_prog_STRIP"; then
 
1837
  ac_ct_STRIP=$STRIP
 
1838
  # Extract the first word of "strip", so it can be a program name with args.
 
1839
set dummy strip; ac_word=$2
 
1840
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1841
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1842
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
1843
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1844
else
 
1845
  if test -n "$ac_ct_STRIP"; then
 
1846
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1847
else
 
1848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1849
for as_dir in $PATH
 
1850
do
 
1851
  IFS=$as_save_IFS
 
1852
  test -z "$as_dir" && as_dir=.
 
1853
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1854
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1855
    ac_cv_prog_ac_ct_STRIP="strip"
 
1856
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1857
    break 2
 
1858
  fi
 
1859
done
 
1860
done
 
1861
 
 
1862
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1863
fi
 
1864
fi
 
1865
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
1866
if test -n "$ac_ct_STRIP"; then
 
1867
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
1868
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
1869
else
 
1870
  echo "$as_me:$LINENO: result: no" >&5
 
1871
echo "${ECHO_T}no" >&6
 
1872
fi
 
1873
 
 
1874
  STRIP=$ac_ct_STRIP
 
1875
else
 
1876
  STRIP="$ac_cv_prog_STRIP"
 
1877
fi
 
1878
 
 
1879
fi
 
1880
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1881
 
 
1882
# We need awk for the "check" target.  The system "awk" is bad on
 
1883
# some platforms.
 
1884
 
 
1885
 
 
1886
 
 
1887
# Add the stamp file to the list of files AC keeps track of,
 
1888
# along with our hook.
 
1889
          ac_config_headers="$ac_config_headers config.h"
 
1890
 
 
1891
 
 
1892
 
 
1893
 
 
1894
 
 
1895
rm -f .deps 2>/dev/null
 
1896
mkdir .deps 2>/dev/null
 
1897
if test -d .deps; then
 
1898
  DEPDIR=.deps
 
1899
else
 
1900
  # MS-DOS does not allow filenames that begin with a dot.
 
1901
  DEPDIR=_deps
 
1902
fi
 
1903
rmdir .deps 2>/dev/null
 
1904
 
 
1905
 
 
1906
          ac_config_commands="$ac_config_commands depfiles"
 
1907
 
 
1908
 
 
1909
am_make=${MAKE-make}
 
1910
cat > confinc << 'END'
 
1911
doit:
 
1912
        @echo done
 
1913
END
 
1914
# If we don't find an include directive, just comment out the code.
 
1915
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
1916
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 
1917
am__include="#"
 
1918
am__quote=
 
1919
_am_result=none
 
1920
# First try GNU make style include.
 
1921
echo "include confinc" > confmf
 
1922
# We grep out `Entering directory' and `Leaving directory'
 
1923
# messages which can occur if `w' ends up in MAKEFLAGS.
 
1924
# In particular we don't look at `^make:' because GNU make might
 
1925
# be invoked under some other name (usually "gmake"), in which
 
1926
# case it prints its new name instead of `make'.
 
1927
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
 
1928
   am__include=include
 
1929
   am__quote=
 
1930
   _am_result=GNU
 
1931
fi
 
1932
# Now try BSD make style include.
 
1933
if test "$am__include" = "#"; then
 
1934
   echo '.include "confinc"' > confmf
 
1935
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
1936
      am__include=.include
 
1937
      am__quote="\""
 
1938
      _am_result=BSD
 
1939
   fi
 
1940
fi
 
1941
 
 
1942
 
 
1943
echo "$as_me:$LINENO: result: $_am_result" >&5
 
1944
echo "${ECHO_T}$_am_result" >&6
 
1945
rm -f confinc confmf
 
1946
 
 
1947
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 
1948
if test "${enable_dependency_tracking+set}" = set; then
 
1949
  enableval="$enable_dependency_tracking"
 
1950
 
 
1951
fi;
 
1952
if test "x$enable_dependency_tracking" != xno; then
 
1953
  am_depcomp="$ac_aux_dir/depcomp"
 
1954
  AMDEPBACKSLASH='\'
 
1955
fi
 
1956
 
 
1957
 
 
1958
if test "x$enable_dependency_tracking" != xno; then
 
1959
  AMDEP_TRUE=
 
1960
  AMDEP_FALSE='#'
 
1961
else
 
1962
  AMDEP_TRUE='#'
 
1963
  AMDEP_FALSE=
 
1964
fi
 
1965
 
 
1966
 
 
1967
 
 
1968
ac_ext=c
 
1969
ac_cpp='$CPP $CPPFLAGS'
 
1970
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1971
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1972
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1973
if test -n "$ac_tool_prefix"; then
 
1974
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
1975
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
1976
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1977
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
1978
if test "${ac_cv_prog_CC+set}" = set; then
 
1979
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1980
else
 
1981
  if test -n "$CC"; then
 
1982
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1983
else
 
1984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1985
for as_dir in $PATH
 
1986
do
 
1987
  IFS=$as_save_IFS
 
1988
  test -z "$as_dir" && as_dir=.
 
1989
  for ac_exec_ext in '' $ac_executable_extensions; do
 
1990
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1991
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
1992
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1993
    break 2
 
1994
  fi
 
1995
done
 
1996
done
 
1997
 
 
1998
fi
 
1999
fi
 
2000
CC=$ac_cv_prog_CC
 
2001
if test -n "$CC"; then
 
2002
  echo "$as_me:$LINENO: result: $CC" >&5
 
2003
echo "${ECHO_T}$CC" >&6
 
2004
else
 
2005
  echo "$as_me:$LINENO: result: no" >&5
 
2006
echo "${ECHO_T}no" >&6
 
2007
fi
 
2008
 
 
2009
fi
 
2010
if test -z "$ac_cv_prog_CC"; then
 
2011
  ac_ct_CC=$CC
 
2012
  # Extract the first word of "gcc", so it can be a program name with args.
 
2013
set dummy gcc; ac_word=$2
 
2014
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2015
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2016
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2017
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2018
else
 
2019
  if test -n "$ac_ct_CC"; then
 
2020
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2021
else
 
2022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2023
for as_dir in $PATH
 
2024
do
 
2025
  IFS=$as_save_IFS
 
2026
  test -z "$as_dir" && as_dir=.
 
2027
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2028
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2029
    ac_cv_prog_ac_ct_CC="gcc"
 
2030
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2031
    break 2
 
2032
  fi
 
2033
done
 
2034
done
 
2035
 
 
2036
fi
 
2037
fi
 
2038
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2039
if test -n "$ac_ct_CC"; then
 
2040
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2041
echo "${ECHO_T}$ac_ct_CC" >&6
 
2042
else
 
2043
  echo "$as_me:$LINENO: result: no" >&5
 
2044
echo "${ECHO_T}no" >&6
 
2045
fi
 
2046
 
 
2047
  CC=$ac_ct_CC
 
2048
else
 
2049
  CC="$ac_cv_prog_CC"
 
2050
fi
 
2051
 
 
2052
if test -z "$CC"; then
 
2053
  if test -n "$ac_tool_prefix"; then
 
2054
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
2055
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
2056
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2058
if test "${ac_cv_prog_CC+set}" = set; then
 
2059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2060
else
 
2061
  if test -n "$CC"; then
 
2062
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2063
else
 
2064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2065
for as_dir in $PATH
 
2066
do
 
2067
  IFS=$as_save_IFS
 
2068
  test -z "$as_dir" && as_dir=.
 
2069
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2070
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2071
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
2072
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2073
    break 2
 
2074
  fi
 
2075
done
 
2076
done
 
2077
 
 
2078
fi
 
2079
fi
 
2080
CC=$ac_cv_prog_CC
 
2081
if test -n "$CC"; then
 
2082
  echo "$as_me:$LINENO: result: $CC" >&5
 
2083
echo "${ECHO_T}$CC" >&6
 
2084
else
 
2085
  echo "$as_me:$LINENO: result: no" >&5
 
2086
echo "${ECHO_T}no" >&6
 
2087
fi
 
2088
 
 
2089
fi
 
2090
if test -z "$ac_cv_prog_CC"; then
 
2091
  ac_ct_CC=$CC
 
2092
  # Extract the first word of "cc", so it can be a program name with args.
 
2093
set dummy cc; ac_word=$2
 
2094
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2095
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2096
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2097
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2098
else
 
2099
  if test -n "$ac_ct_CC"; then
 
2100
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2101
else
 
2102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2103
for as_dir in $PATH
 
2104
do
 
2105
  IFS=$as_save_IFS
 
2106
  test -z "$as_dir" && as_dir=.
 
2107
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2108
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2109
    ac_cv_prog_ac_ct_CC="cc"
 
2110
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2111
    break 2
 
2112
  fi
 
2113
done
 
2114
done
 
2115
 
 
2116
fi
 
2117
fi
 
2118
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2119
if test -n "$ac_ct_CC"; then
 
2120
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2121
echo "${ECHO_T}$ac_ct_CC" >&6
 
2122
else
 
2123
  echo "$as_me:$LINENO: result: no" >&5
 
2124
echo "${ECHO_T}no" >&6
 
2125
fi
 
2126
 
 
2127
  CC=$ac_ct_CC
 
2128
else
 
2129
  CC="$ac_cv_prog_CC"
 
2130
fi
 
2131
 
 
2132
fi
 
2133
if test -z "$CC"; then
 
2134
  # Extract the first word of "cc", so it can be a program name with args.
 
2135
set dummy cc; ac_word=$2
 
2136
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2137
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2138
if test "${ac_cv_prog_CC+set}" = set; then
 
2139
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2140
else
 
2141
  if test -n "$CC"; then
 
2142
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2143
else
 
2144
  ac_prog_rejected=no
 
2145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2146
for as_dir in $PATH
 
2147
do
 
2148
  IFS=$as_save_IFS
 
2149
  test -z "$as_dir" && as_dir=.
 
2150
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2151
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2152
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
2153
       ac_prog_rejected=yes
 
2154
       continue
 
2155
     fi
 
2156
    ac_cv_prog_CC="cc"
 
2157
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2158
    break 2
 
2159
  fi
 
2160
done
 
2161
done
 
2162
 
 
2163
if test $ac_prog_rejected = yes; then
 
2164
  # We found a bogon in the path, so make sure we never use it.
 
2165
  set dummy $ac_cv_prog_CC
 
2166
  shift
 
2167
  if test $# != 0; then
 
2168
    # We chose a different compiler from the bogus one.
 
2169
    # However, it has the same basename, so the bogon will be chosen
 
2170
    # first if we set CC to just the basename; use the full file name.
 
2171
    shift
 
2172
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
2173
  fi
 
2174
fi
 
2175
fi
 
2176
fi
 
2177
CC=$ac_cv_prog_CC
 
2178
if test -n "$CC"; then
 
2179
  echo "$as_me:$LINENO: result: $CC" >&5
 
2180
echo "${ECHO_T}$CC" >&6
 
2181
else
 
2182
  echo "$as_me:$LINENO: result: no" >&5
 
2183
echo "${ECHO_T}no" >&6
 
2184
fi
 
2185
 
 
2186
fi
 
2187
if test -z "$CC"; then
 
2188
  if test -n "$ac_tool_prefix"; then
 
2189
  for ac_prog in cl
 
2190
  do
 
2191
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2192
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2193
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2195
if test "${ac_cv_prog_CC+set}" = set; then
 
2196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2197
else
 
2198
  if test -n "$CC"; then
 
2199
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
2200
else
 
2201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2202
for as_dir in $PATH
 
2203
do
 
2204
  IFS=$as_save_IFS
 
2205
  test -z "$as_dir" && as_dir=.
 
2206
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2207
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2208
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
2209
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2210
    break 2
 
2211
  fi
 
2212
done
 
2213
done
 
2214
 
 
2215
fi
 
2216
fi
 
2217
CC=$ac_cv_prog_CC
 
2218
if test -n "$CC"; then
 
2219
  echo "$as_me:$LINENO: result: $CC" >&5
 
2220
echo "${ECHO_T}$CC" >&6
 
2221
else
 
2222
  echo "$as_me:$LINENO: result: no" >&5
 
2223
echo "${ECHO_T}no" >&6
 
2224
fi
 
2225
 
 
2226
    test -n "$CC" && break
 
2227
  done
 
2228
fi
 
2229
if test -z "$CC"; then
 
2230
  ac_ct_CC=$CC
 
2231
  for ac_prog in cl
 
2232
do
 
2233
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2234
set dummy $ac_prog; ac_word=$2
 
2235
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2236
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
2237
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
2238
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2239
else
 
2240
  if test -n "$ac_ct_CC"; then
 
2241
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2242
else
 
2243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2244
for as_dir in $PATH
 
2245
do
 
2246
  IFS=$as_save_IFS
 
2247
  test -z "$as_dir" && as_dir=.
 
2248
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2249
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2250
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
2251
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2252
    break 2
 
2253
  fi
 
2254
done
 
2255
done
 
2256
 
 
2257
fi
 
2258
fi
 
2259
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
2260
if test -n "$ac_ct_CC"; then
 
2261
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2262
echo "${ECHO_T}$ac_ct_CC" >&6
 
2263
else
 
2264
  echo "$as_me:$LINENO: result: no" >&5
 
2265
echo "${ECHO_T}no" >&6
 
2266
fi
 
2267
 
 
2268
  test -n "$ac_ct_CC" && break
 
2269
done
 
2270
 
 
2271
  CC=$ac_ct_CC
 
2272
fi
 
2273
 
 
2274
fi
 
2275
 
 
2276
 
 
2277
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
2278
See \`config.log' for more details." >&5
 
2279
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
2280
See \`config.log' for more details." >&2;}
 
2281
   { (exit 1); exit 1; }; }
 
2282
 
 
2283
# Provide some information about the compiler.
 
2284
echo "$as_me:$LINENO:" \
 
2285
     "checking for C compiler version" >&5
 
2286
ac_compiler=`set X $ac_compile; echo $2`
 
2287
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
2288
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
2289
  ac_status=$?
 
2290
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2291
  (exit $ac_status); }
 
2292
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
2293
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
2294
  ac_status=$?
 
2295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2296
  (exit $ac_status); }
 
2297
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
2298
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
2299
  ac_status=$?
 
2300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2301
  (exit $ac_status); }
 
2302
 
 
2303
cat >conftest.$ac_ext <<_ACEOF
 
2304
/* confdefs.h.  */
 
2305
_ACEOF
 
2306
cat confdefs.h >>conftest.$ac_ext
 
2307
cat >>conftest.$ac_ext <<_ACEOF
 
2308
/* end confdefs.h.  */
 
2309
 
 
2310
int
 
2311
main ()
 
2312
{
 
2313
 
 
2314
  ;
 
2315
  return 0;
 
2316
}
 
2317
_ACEOF
 
2318
ac_clean_files_save=$ac_clean_files
 
2319
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2320
# Try to create an executable without -o first, disregard a.out.
 
2321
# It will help us diagnose broken compilers, and finding out an intuition
 
2322
# of exeext.
 
2323
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2324
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 
2325
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2326
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 
2327
  (eval $ac_link_default) 2>&5
 
2328
  ac_status=$?
 
2329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2330
  (exit $ac_status); }; then
 
2331
  # Find the output, starting from the most likely.  This scheme is
 
2332
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
 
2333
# resort.
 
2334
 
 
2335
# Be careful to initialize this variable, since it used to be cached.
 
2336
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 
2337
ac_cv_exeext=
 
2338
# b.out is created by i960 compilers.
 
2339
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 
2340
do
 
2341
  test -f "$ac_file" || continue
 
2342
  case $ac_file in
 
2343
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2344
        ;;
 
2345
    conftest.$ac_ext )
 
2346
        # This is the source file.
 
2347
        ;;
 
2348
    [ab].out )
 
2349
        # We found the default executable, but exeext='' is most
 
2350
        # certainly right.
 
2351
        break;;
 
2352
    *.* )
 
2353
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2354
        # FIXME: I believe we export ac_cv_exeext for Libtool,
 
2355
        # but it would be cool to find out if it's true.  Does anybody
 
2356
        # maintain Libtool? --akim.
 
2357
        export ac_cv_exeext
 
2358
        break;;
 
2359
    * )
 
2360
        break;;
 
2361
  esac
 
2362
done
 
2363
else
 
2364
  echo "$as_me: failed program was:" >&5
 
2365
sed 's/^/| /' conftest.$ac_ext >&5
 
2366
 
 
2367
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
 
2368
See \`config.log' for more details." >&5
 
2369
echo "$as_me: error: C compiler cannot create executables
 
2370
See \`config.log' for more details." >&2;}
 
2371
   { (exit 77); exit 77; }; }
 
2372
fi
 
2373
 
 
2374
ac_exeext=$ac_cv_exeext
 
2375
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2376
echo "${ECHO_T}$ac_file" >&6
 
2377
 
 
2378
# Check the compiler produces executables we can run.  If not, either
 
2379
# the compiler is broken, or we cross compile.
 
2380
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2381
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 
2382
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2383
# If not cross compiling, check that we can run a simple program.
 
2384
if test "$cross_compiling" != yes; then
 
2385
  if { ac_try='./$ac_file'
 
2386
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2387
  (eval $ac_try) 2>&5
 
2388
  ac_status=$?
 
2389
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2390
  (exit $ac_status); }; }; then
 
2391
    cross_compiling=no
 
2392
  else
 
2393
    if test "$cross_compiling" = maybe; then
 
2394
        cross_compiling=yes
 
2395
    else
 
2396
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 
2397
If you meant to cross compile, use \`--host'.
 
2398
See \`config.log' for more details." >&5
 
2399
echo "$as_me: error: cannot run C compiled programs.
 
2400
If you meant to cross compile, use \`--host'.
 
2401
See \`config.log' for more details." >&2;}
 
2402
   { (exit 1); exit 1; }; }
 
2403
    fi
 
2404
  fi
 
2405
fi
 
2406
echo "$as_me:$LINENO: result: yes" >&5
 
2407
echo "${ECHO_T}yes" >&6
 
2408
 
 
2409
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2410
ac_clean_files=$ac_clean_files_save
 
2411
# Check the compiler produces executables we can run.  If not, either
 
2412
# the compiler is broken, or we cross compile.
 
2413
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2414
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 
2415
echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2416
echo "${ECHO_T}$cross_compiling" >&6
 
2417
 
 
2418
echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2419
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 
2420
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2421
  (eval $ac_link) 2>&5
 
2422
  ac_status=$?
 
2423
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2424
  (exit $ac_status); }; then
 
2425
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2426
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2427
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2428
# `rm'.
 
2429
for ac_file in conftest.exe conftest conftest.*; do
 
2430
  test -f "$ac_file" || continue
 
2431
  case $ac_file in
 
2432
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2433
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2434
          export ac_cv_exeext
 
2435
          break;;
 
2436
    * ) break;;
 
2437
  esac
 
2438
done
 
2439
else
 
2440
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2441
See \`config.log' for more details." >&5
 
2442
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2443
See \`config.log' for more details." >&2;}
 
2444
   { (exit 1); exit 1; }; }
 
2445
fi
 
2446
 
 
2447
rm -f conftest$ac_cv_exeext
 
2448
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2449
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2450
 
 
2451
rm -f conftest.$ac_ext
 
2452
EXEEXT=$ac_cv_exeext
 
2453
ac_exeext=$EXEEXT
 
2454
echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2455
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 
2456
if test "${ac_cv_objext+set}" = set; then
 
2457
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2458
else
 
2459
  cat >conftest.$ac_ext <<_ACEOF
 
2460
/* confdefs.h.  */
 
2461
_ACEOF
 
2462
cat confdefs.h >>conftest.$ac_ext
 
2463
cat >>conftest.$ac_ext <<_ACEOF
 
2464
/* end confdefs.h.  */
 
2465
 
 
2466
int
 
2467
main ()
 
2468
{
 
2469
 
 
2470
  ;
 
2471
  return 0;
 
2472
}
 
2473
_ACEOF
 
2474
rm -f conftest.o conftest.obj
 
2475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2476
  (eval $ac_compile) 2>&5
 
2477
  ac_status=$?
 
2478
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2479
  (exit $ac_status); }; then
 
2480
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2481
  case $ac_file in
 
2482
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2483
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2484
       break;;
 
2485
  esac
 
2486
done
 
2487
else
 
2488
  echo "$as_me: failed program was:" >&5
 
2489
sed 's/^/| /' conftest.$ac_ext >&5
 
2490
 
 
2491
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2492
See \`config.log' for more details." >&5
 
2493
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2494
See \`config.log' for more details." >&2;}
 
2495
   { (exit 1); exit 1; }; }
 
2496
fi
 
2497
 
 
2498
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2499
fi
 
2500
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2501
echo "${ECHO_T}$ac_cv_objext" >&6
 
2502
OBJEXT=$ac_cv_objext
 
2503
ac_objext=$OBJEXT
 
2504
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2505
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
2506
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
2507
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2508
else
 
2509
  cat >conftest.$ac_ext <<_ACEOF
 
2510
/* confdefs.h.  */
 
2511
_ACEOF
 
2512
cat confdefs.h >>conftest.$ac_ext
 
2513
cat >>conftest.$ac_ext <<_ACEOF
 
2514
/* end confdefs.h.  */
 
2515
 
 
2516
int
 
2517
main ()
 
2518
{
 
2519
#ifndef __GNUC__
 
2520
       choke me
 
2521
#endif
 
2522
 
 
2523
  ;
 
2524
  return 0;
 
2525
}
 
2526
_ACEOF
 
2527
rm -f conftest.$ac_objext
 
2528
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2529
  (eval $ac_compile) 2>conftest.er1
 
2530
  ac_status=$?
 
2531
  grep -v '^ *+' conftest.er1 >conftest.err
 
2532
  rm -f conftest.er1
 
2533
  cat conftest.err >&5
 
2534
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2535
  (exit $ac_status); } &&
 
2536
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2537
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2538
  (eval $ac_try) 2>&5
 
2539
  ac_status=$?
 
2540
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2541
  (exit $ac_status); }; } &&
 
2542
         { ac_try='test -s conftest.$ac_objext'
 
2543
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2544
  (eval $ac_try) 2>&5
 
2545
  ac_status=$?
 
2546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2547
  (exit $ac_status); }; }; then
 
2548
  ac_compiler_gnu=yes
 
2549
else
 
2550
  echo "$as_me: failed program was:" >&5
 
2551
sed 's/^/| /' conftest.$ac_ext >&5
 
2552
 
 
2553
ac_compiler_gnu=no
 
2554
fi
 
2555
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2556
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2557
 
 
2558
fi
 
2559
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2560
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2561
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
2562
ac_test_CFLAGS=${CFLAGS+set}
 
2563
ac_save_CFLAGS=$CFLAGS
 
2564
CFLAGS="-g"
 
2565
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2566
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
2567
if test "${ac_cv_prog_cc_g+set}" = set; then
 
2568
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2569
else
 
2570
  cat >conftest.$ac_ext <<_ACEOF
 
2571
/* confdefs.h.  */
 
2572
_ACEOF
 
2573
cat confdefs.h >>conftest.$ac_ext
 
2574
cat >>conftest.$ac_ext <<_ACEOF
 
2575
/* end confdefs.h.  */
 
2576
 
 
2577
int
 
2578
main ()
 
2579
{
 
2580
 
 
2581
  ;
 
2582
  return 0;
 
2583
}
 
2584
_ACEOF
 
2585
rm -f conftest.$ac_objext
 
2586
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2587
  (eval $ac_compile) 2>conftest.er1
 
2588
  ac_status=$?
 
2589
  grep -v '^ *+' conftest.er1 >conftest.err
 
2590
  rm -f conftest.er1
 
2591
  cat conftest.err >&5
 
2592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2593
  (exit $ac_status); } &&
 
2594
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2596
  (eval $ac_try) 2>&5
 
2597
  ac_status=$?
 
2598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2599
  (exit $ac_status); }; } &&
 
2600
         { ac_try='test -s conftest.$ac_objext'
 
2601
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2602
  (eval $ac_try) 2>&5
 
2603
  ac_status=$?
 
2604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2605
  (exit $ac_status); }; }; then
 
2606
  ac_cv_prog_cc_g=yes
 
2607
else
 
2608
  echo "$as_me: failed program was:" >&5
 
2609
sed 's/^/| /' conftest.$ac_ext >&5
 
2610
 
 
2611
ac_cv_prog_cc_g=no
 
2612
fi
 
2613
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2614
fi
 
2615
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2616
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
2617
if test "$ac_test_CFLAGS" = set; then
 
2618
  CFLAGS=$ac_save_CFLAGS
 
2619
elif test $ac_cv_prog_cc_g = yes; then
 
2620
  if test "$GCC" = yes; then
 
2621
    CFLAGS="-g -O2"
 
2622
  else
 
2623
    CFLAGS="-g"
 
2624
  fi
 
2625
else
 
2626
  if test "$GCC" = yes; then
 
2627
    CFLAGS="-O2"
 
2628
  else
 
2629
    CFLAGS=
 
2630
  fi
 
2631
fi
 
2632
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
2633
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
2634
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
2635
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2636
else
 
2637
  ac_cv_prog_cc_stdc=no
 
2638
ac_save_CC=$CC
 
2639
cat >conftest.$ac_ext <<_ACEOF
 
2640
/* confdefs.h.  */
 
2641
_ACEOF
 
2642
cat confdefs.h >>conftest.$ac_ext
 
2643
cat >>conftest.$ac_ext <<_ACEOF
 
2644
/* end confdefs.h.  */
 
2645
#include <stdarg.h>
 
2646
#include <stdio.h>
 
2647
#include <sys/types.h>
 
2648
#include <sys/stat.h>
 
2649
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
2650
struct buf { int x; };
 
2651
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
2652
static char *e (p, i)
 
2653
     char **p;
 
2654
     int i;
 
2655
{
 
2656
  return p[i];
 
2657
}
 
2658
static char *f (char * (*g) (char **, int), char **p, ...)
 
2659
{
 
2660
  char *s;
 
2661
  va_list v;
 
2662
  va_start (v,p);
 
2663
  s = g (p, va_arg (v,int));
 
2664
  va_end (v);
 
2665
  return s;
 
2666
}
 
2667
 
 
2668
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
2669
   function prototypes and stuff, but not '\xHH' hex character constants.
 
2670
   These don't provoke an error unfortunately, instead are silently treated
 
2671
   as 'x'.  The following induces an error, until -std1 is added to get
 
2672
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
2673
   array size at least.  It's necessary to write '\x00'==0 to get something
 
2674
   that's true only with -std1.  */
 
2675
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
2676
 
 
2677
int test (int i, double x);
 
2678
struct s1 {int (*f) (int a);};
 
2679
struct s2 {int (*f) (double a);};
 
2680
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
2681
int argc;
 
2682
char **argv;
 
2683
int
 
2684
main ()
 
2685
{
 
2686
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2687
  ;
 
2688
  return 0;
 
2689
}
 
2690
_ACEOF
 
2691
# Don't try gcc -ansi; that turns off useful extensions and
 
2692
# breaks some systems' header files.
 
2693
# AIX                   -qlanglvl=ansi
 
2694
# Ultrix and OSF/1      -std1
 
2695
# HP-UX 10.20 and later -Ae
 
2696
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
2697
# SVR4                  -Xc -D__EXTENSIONS__
 
2698
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
2699
do
 
2700
  CC="$ac_save_CC $ac_arg"
 
2701
  rm -f conftest.$ac_objext
 
2702
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2703
  (eval $ac_compile) 2>conftest.er1
 
2704
  ac_status=$?
 
2705
  grep -v '^ *+' conftest.er1 >conftest.err
 
2706
  rm -f conftest.er1
 
2707
  cat conftest.err >&5
 
2708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2709
  (exit $ac_status); } &&
 
2710
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2711
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2712
  (eval $ac_try) 2>&5
 
2713
  ac_status=$?
 
2714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2715
  (exit $ac_status); }; } &&
 
2716
         { ac_try='test -s conftest.$ac_objext'
 
2717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2718
  (eval $ac_try) 2>&5
 
2719
  ac_status=$?
 
2720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2721
  (exit $ac_status); }; }; then
 
2722
  ac_cv_prog_cc_stdc=$ac_arg
 
2723
break
 
2724
else
 
2725
  echo "$as_me: failed program was:" >&5
 
2726
sed 's/^/| /' conftest.$ac_ext >&5
 
2727
 
 
2728
fi
 
2729
rm -f conftest.err conftest.$ac_objext
 
2730
done
 
2731
rm -f conftest.$ac_ext conftest.$ac_objext
 
2732
CC=$ac_save_CC
 
2733
 
 
2734
fi
 
2735
 
 
2736
case "x$ac_cv_prog_cc_stdc" in
 
2737
  x|xno)
 
2738
    echo "$as_me:$LINENO: result: none needed" >&5
 
2739
echo "${ECHO_T}none needed" >&6 ;;
 
2740
  *)
 
2741
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
2742
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
2743
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
2744
esac
 
2745
 
 
2746
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
2747
# in C++ we need to declare it.  In case someone uses the same compiler
 
2748
# for both compiling C and C++ we need to have the C++ compiler decide
 
2749
# the declaration of exit, since it's the most demanding environment.
 
2750
cat >conftest.$ac_ext <<_ACEOF
 
2751
#ifndef __cplusplus
 
2752
  choke me
 
2753
#endif
 
2754
_ACEOF
 
2755
rm -f conftest.$ac_objext
 
2756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2757
  (eval $ac_compile) 2>conftest.er1
 
2758
  ac_status=$?
 
2759
  grep -v '^ *+' conftest.er1 >conftest.err
 
2760
  rm -f conftest.er1
 
2761
  cat conftest.err >&5
 
2762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2763
  (exit $ac_status); } &&
 
2764
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2766
  (eval $ac_try) 2>&5
 
2767
  ac_status=$?
 
2768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2769
  (exit $ac_status); }; } &&
 
2770
         { ac_try='test -s conftest.$ac_objext'
 
2771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2772
  (eval $ac_try) 2>&5
 
2773
  ac_status=$?
 
2774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2775
  (exit $ac_status); }; }; then
 
2776
  for ac_declaration in \
 
2777
   '' \
 
2778
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
2779
   'extern "C" void std::exit (int); using std::exit;' \
 
2780
   'extern "C" void exit (int) throw ();' \
 
2781
   'extern "C" void exit (int);' \
 
2782
   'void exit (int);'
 
2783
do
 
2784
  cat >conftest.$ac_ext <<_ACEOF
 
2785
/* confdefs.h.  */
 
2786
_ACEOF
 
2787
cat confdefs.h >>conftest.$ac_ext
 
2788
cat >>conftest.$ac_ext <<_ACEOF
 
2789
/* end confdefs.h.  */
 
2790
$ac_declaration
 
2791
#include <stdlib.h>
 
2792
int
 
2793
main ()
 
2794
{
 
2795
exit (42);
 
2796
  ;
 
2797
  return 0;
 
2798
}
 
2799
_ACEOF
 
2800
rm -f conftest.$ac_objext
 
2801
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2802
  (eval $ac_compile) 2>conftest.er1
 
2803
  ac_status=$?
 
2804
  grep -v '^ *+' conftest.er1 >conftest.err
 
2805
  rm -f conftest.er1
 
2806
  cat conftest.err >&5
 
2807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2808
  (exit $ac_status); } &&
 
2809
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2811
  (eval $ac_try) 2>&5
 
2812
  ac_status=$?
 
2813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2814
  (exit $ac_status); }; } &&
 
2815
         { ac_try='test -s conftest.$ac_objext'
 
2816
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2817
  (eval $ac_try) 2>&5
 
2818
  ac_status=$?
 
2819
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2820
  (exit $ac_status); }; }; then
 
2821
  :
 
2822
else
 
2823
  echo "$as_me: failed program was:" >&5
 
2824
sed 's/^/| /' conftest.$ac_ext >&5
 
2825
 
 
2826
continue
 
2827
fi
 
2828
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2829
  cat >conftest.$ac_ext <<_ACEOF
 
2830
/* confdefs.h.  */
 
2831
_ACEOF
 
2832
cat confdefs.h >>conftest.$ac_ext
 
2833
cat >>conftest.$ac_ext <<_ACEOF
 
2834
/* end confdefs.h.  */
 
2835
$ac_declaration
 
2836
int
 
2837
main ()
 
2838
{
 
2839
exit (42);
 
2840
  ;
 
2841
  return 0;
 
2842
}
 
2843
_ACEOF
 
2844
rm -f conftest.$ac_objext
 
2845
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2846
  (eval $ac_compile) 2>conftest.er1
 
2847
  ac_status=$?
 
2848
  grep -v '^ *+' conftest.er1 >conftest.err
 
2849
  rm -f conftest.er1
 
2850
  cat conftest.err >&5
 
2851
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2852
  (exit $ac_status); } &&
 
2853
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
2854
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2855
  (eval $ac_try) 2>&5
 
2856
  ac_status=$?
 
2857
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2858
  (exit $ac_status); }; } &&
 
2859
         { ac_try='test -s conftest.$ac_objext'
 
2860
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
2861
  (eval $ac_try) 2>&5
 
2862
  ac_status=$?
 
2863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2864
  (exit $ac_status); }; }; then
 
2865
  break
 
2866
else
 
2867
  echo "$as_me: failed program was:" >&5
 
2868
sed 's/^/| /' conftest.$ac_ext >&5
 
2869
 
 
2870
fi
 
2871
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2872
done
 
2873
rm -f conftest*
 
2874
if test -n "$ac_declaration"; then
 
2875
  echo '#ifdef __cplusplus' >>confdefs.h
 
2876
  echo $ac_declaration      >>confdefs.h
 
2877
  echo '#endif'             >>confdefs.h
 
2878
fi
 
2879
 
 
2880
else
 
2881
  echo "$as_me: failed program was:" >&5
 
2882
sed 's/^/| /' conftest.$ac_ext >&5
 
2883
 
 
2884
fi
 
2885
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2886
ac_ext=c
 
2887
ac_cpp='$CPP $CPPFLAGS'
 
2888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2891
 
 
2892
depcc="$CC"   am_compiler_list=
 
2893
 
 
2894
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2895
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
2896
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
2897
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2898
else
 
2899
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2900
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2901
  # making bogus files that we don't know about and never remove.  For
 
2902
  # instance it was reported that on HP-UX the gcc test will end up
 
2903
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2904
  # in D'.
 
2905
  mkdir conftest.dir
 
2906
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2907
  # using a relative directory.
 
2908
  cp "$am_depcomp" conftest.dir
 
2909
  cd conftest.dir
 
2910
 
 
2911
  am_cv_CC_dependencies_compiler_type=none
 
2912
  if test "$am_compiler_list" = ""; then
 
2913
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2914
  fi
 
2915
  for depmode in $am_compiler_list; do
 
2916
    # We need to recreate these files for each test, as the compiler may
 
2917
    # overwrite some of them when testing with obscure command lines.
 
2918
    # This happens at least with the AIX C compiler.
 
2919
    echo '#include "conftest.h"' > conftest.c
 
2920
    echo 'int i;' > conftest.h
 
2921
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
2922
 
 
2923
    case $depmode in
 
2924
    nosideeffect)
 
2925
      # after this tag, mechanisms are not by side-effect, so they'll
 
2926
      # only be used when explicitly requested
 
2927
      if test "x$enable_dependency_tracking" = xyes; then
 
2928
        continue
 
2929
      else
 
2930
        break
 
2931
      fi
 
2932
      ;;
 
2933
    none) break ;;
 
2934
    esac
 
2935
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2936
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2937
    # handle `-M -o', and we need to detect this.
 
2938
    if depmode=$depmode \
 
2939
       source=conftest.c object=conftest.o \
 
2940
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
2941
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
2942
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
2943
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2944
      am_cv_CC_dependencies_compiler_type=$depmode
 
2945
      break
 
2946
    fi
 
2947
  done
 
2948
 
 
2949
  cd ..
 
2950
  rm -rf conftest.dir
 
2951
else
 
2952
  am_cv_CC_dependencies_compiler_type=none
 
2953
fi
 
2954
 
 
2955
fi
 
2956
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
2957
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
2958
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
2959
 
 
2960
 
 
2961
 
 
2962
 
 
2963
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
 
2964
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
 
2965
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
 
2966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2967
else
 
2968
  ac_check_lib_save_LIBS=$LIBS
 
2969
LIBS="-lcposix  $LIBS"
 
2970
cat >conftest.$ac_ext <<_ACEOF
 
2971
/* confdefs.h.  */
 
2972
_ACEOF
 
2973
cat confdefs.h >>conftest.$ac_ext
 
2974
cat >>conftest.$ac_ext <<_ACEOF
 
2975
/* end confdefs.h.  */
 
2976
 
 
2977
/* Override any gcc2 internal prototype to avoid an error.  */
 
2978
#ifdef __cplusplus
 
2979
extern "C"
 
2980
#endif
 
2981
/* We use char because int might match the return type of a gcc2
 
2982
   builtin and then its argument prototype would still apply.  */
 
2983
char strerror ();
 
2984
int
 
2985
main ()
 
2986
{
 
2987
strerror ();
 
2988
  ;
 
2989
  return 0;
 
2990
}
 
2991
_ACEOF
 
2992
rm -f conftest.$ac_objext conftest$ac_exeext
 
2993
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
2994
  (eval $ac_link) 2>conftest.er1
 
2995
  ac_status=$?
 
2996
  grep -v '^ *+' conftest.er1 >conftest.err
 
2997
  rm -f conftest.er1
 
2998
  cat conftest.err >&5
 
2999
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3000
  (exit $ac_status); } &&
 
3001
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3002
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3003
  (eval $ac_try) 2>&5
 
3004
  ac_status=$?
 
3005
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3006
  (exit $ac_status); }; } &&
 
3007
         { ac_try='test -s conftest$ac_exeext'
 
3008
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3009
  (eval $ac_try) 2>&5
 
3010
  ac_status=$?
 
3011
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3012
  (exit $ac_status); }; }; then
 
3013
  ac_cv_lib_cposix_strerror=yes
 
3014
else
 
3015
  echo "$as_me: failed program was:" >&5
 
3016
sed 's/^/| /' conftest.$ac_ext >&5
 
3017
 
 
3018
ac_cv_lib_cposix_strerror=no
 
3019
fi
 
3020
rm -f conftest.err conftest.$ac_objext \
 
3021
      conftest$ac_exeext conftest.$ac_ext
 
3022
LIBS=$ac_check_lib_save_LIBS
 
3023
fi
 
3024
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
 
3025
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
 
3026
if test $ac_cv_lib_cposix_strerror = yes; then
 
3027
  LIBS="$LIBS -lcposix"
 
3028
fi
 
3029
 
 
3030
 
 
3031
 
 
3032
ac_ext=c
 
3033
ac_cpp='$CPP $CPPFLAGS'
 
3034
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3035
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3036
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3037
if test -n "$ac_tool_prefix"; then
 
3038
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3039
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3040
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3041
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3042
if test "${ac_cv_prog_CC+set}" = set; then
 
3043
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3044
else
 
3045
  if test -n "$CC"; then
 
3046
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3047
else
 
3048
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3049
for as_dir in $PATH
 
3050
do
 
3051
  IFS=$as_save_IFS
 
3052
  test -z "$as_dir" && as_dir=.
 
3053
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3054
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3055
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3056
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3057
    break 2
 
3058
  fi
 
3059
done
 
3060
done
 
3061
 
 
3062
fi
 
3063
fi
 
3064
CC=$ac_cv_prog_CC
 
3065
if test -n "$CC"; then
 
3066
  echo "$as_me:$LINENO: result: $CC" >&5
 
3067
echo "${ECHO_T}$CC" >&6
 
3068
else
 
3069
  echo "$as_me:$LINENO: result: no" >&5
 
3070
echo "${ECHO_T}no" >&6
 
3071
fi
 
3072
 
 
3073
fi
 
3074
if test -z "$ac_cv_prog_CC"; then
 
3075
  ac_ct_CC=$CC
 
3076
  # Extract the first word of "gcc", so it can be a program name with args.
 
3077
set dummy gcc; ac_word=$2
 
3078
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3079
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3080
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3081
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3082
else
 
3083
  if test -n "$ac_ct_CC"; then
 
3084
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3085
else
 
3086
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3087
for as_dir in $PATH
 
3088
do
 
3089
  IFS=$as_save_IFS
 
3090
  test -z "$as_dir" && as_dir=.
 
3091
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3092
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3093
    ac_cv_prog_ac_ct_CC="gcc"
 
3094
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3095
    break 2
 
3096
  fi
 
3097
done
 
3098
done
 
3099
 
 
3100
fi
 
3101
fi
 
3102
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3103
if test -n "$ac_ct_CC"; then
 
3104
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3105
echo "${ECHO_T}$ac_ct_CC" >&6
 
3106
else
 
3107
  echo "$as_me:$LINENO: result: no" >&5
 
3108
echo "${ECHO_T}no" >&6
 
3109
fi
 
3110
 
 
3111
  CC=$ac_ct_CC
 
3112
else
 
3113
  CC="$ac_cv_prog_CC"
 
3114
fi
 
3115
 
 
3116
if test -z "$CC"; then
 
3117
  if test -n "$ac_tool_prefix"; then
 
3118
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3119
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3120
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3122
if test "${ac_cv_prog_CC+set}" = set; then
 
3123
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3124
else
 
3125
  if test -n "$CC"; then
 
3126
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3127
else
 
3128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3129
for as_dir in $PATH
 
3130
do
 
3131
  IFS=$as_save_IFS
 
3132
  test -z "$as_dir" && as_dir=.
 
3133
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3134
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3135
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3136
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3137
    break 2
 
3138
  fi
 
3139
done
 
3140
done
 
3141
 
 
3142
fi
 
3143
fi
 
3144
CC=$ac_cv_prog_CC
 
3145
if test -n "$CC"; then
 
3146
  echo "$as_me:$LINENO: result: $CC" >&5
 
3147
echo "${ECHO_T}$CC" >&6
 
3148
else
 
3149
  echo "$as_me:$LINENO: result: no" >&5
 
3150
echo "${ECHO_T}no" >&6
 
3151
fi
 
3152
 
 
3153
fi
 
3154
if test -z "$ac_cv_prog_CC"; then
 
3155
  ac_ct_CC=$CC
 
3156
  # Extract the first word of "cc", so it can be a program name with args.
 
3157
set dummy cc; ac_word=$2
 
3158
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3159
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3160
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3161
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3162
else
 
3163
  if test -n "$ac_ct_CC"; then
 
3164
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3165
else
 
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3167
for as_dir in $PATH
 
3168
do
 
3169
  IFS=$as_save_IFS
 
3170
  test -z "$as_dir" && as_dir=.
 
3171
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3172
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3173
    ac_cv_prog_ac_ct_CC="cc"
 
3174
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3175
    break 2
 
3176
  fi
 
3177
done
 
3178
done
 
3179
 
 
3180
fi
 
3181
fi
 
3182
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3183
if test -n "$ac_ct_CC"; then
 
3184
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3185
echo "${ECHO_T}$ac_ct_CC" >&6
 
3186
else
 
3187
  echo "$as_me:$LINENO: result: no" >&5
 
3188
echo "${ECHO_T}no" >&6
 
3189
fi
 
3190
 
 
3191
  CC=$ac_ct_CC
 
3192
else
 
3193
  CC="$ac_cv_prog_CC"
 
3194
fi
 
3195
 
 
3196
fi
 
3197
if test -z "$CC"; then
 
3198
  # Extract the first word of "cc", so it can be a program name with args.
 
3199
set dummy cc; ac_word=$2
 
3200
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3201
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3202
if test "${ac_cv_prog_CC+set}" = set; then
 
3203
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3204
else
 
3205
  if test -n "$CC"; then
 
3206
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3207
else
 
3208
  ac_prog_rejected=no
 
3209
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3210
for as_dir in $PATH
 
3211
do
 
3212
  IFS=$as_save_IFS
 
3213
  test -z "$as_dir" && as_dir=.
 
3214
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3215
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3216
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3217
       ac_prog_rejected=yes
 
3218
       continue
 
3219
     fi
 
3220
    ac_cv_prog_CC="cc"
 
3221
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3222
    break 2
 
3223
  fi
 
3224
done
 
3225
done
 
3226
 
 
3227
if test $ac_prog_rejected = yes; then
 
3228
  # We found a bogon in the path, so make sure we never use it.
 
3229
  set dummy $ac_cv_prog_CC
 
3230
  shift
 
3231
  if test $# != 0; then
 
3232
    # We chose a different compiler from the bogus one.
 
3233
    # However, it has the same basename, so the bogon will be chosen
 
3234
    # first if we set CC to just the basename; use the full file name.
 
3235
    shift
 
3236
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3237
  fi
 
3238
fi
 
3239
fi
 
3240
fi
 
3241
CC=$ac_cv_prog_CC
 
3242
if test -n "$CC"; then
 
3243
  echo "$as_me:$LINENO: result: $CC" >&5
 
3244
echo "${ECHO_T}$CC" >&6
 
3245
else
 
3246
  echo "$as_me:$LINENO: result: no" >&5
 
3247
echo "${ECHO_T}no" >&6
 
3248
fi
 
3249
 
 
3250
fi
 
3251
if test -z "$CC"; then
 
3252
  if test -n "$ac_tool_prefix"; then
 
3253
  for ac_prog in cl
 
3254
  do
 
3255
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3256
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3257
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3259
if test "${ac_cv_prog_CC+set}" = set; then
 
3260
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3261
else
 
3262
  if test -n "$CC"; then
 
3263
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3264
else
 
3265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3266
for as_dir in $PATH
 
3267
do
 
3268
  IFS=$as_save_IFS
 
3269
  test -z "$as_dir" && as_dir=.
 
3270
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3271
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3272
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3273
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3274
    break 2
 
3275
  fi
 
3276
done
 
3277
done
 
3278
 
 
3279
fi
 
3280
fi
 
3281
CC=$ac_cv_prog_CC
 
3282
if test -n "$CC"; then
 
3283
  echo "$as_me:$LINENO: result: $CC" >&5
 
3284
echo "${ECHO_T}$CC" >&6
 
3285
else
 
3286
  echo "$as_me:$LINENO: result: no" >&5
 
3287
echo "${ECHO_T}no" >&6
 
3288
fi
 
3289
 
 
3290
    test -n "$CC" && break
 
3291
  done
 
3292
fi
 
3293
if test -z "$CC"; then
 
3294
  ac_ct_CC=$CC
 
3295
  for ac_prog in cl
 
3296
do
 
3297
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3298
set dummy $ac_prog; ac_word=$2
 
3299
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3300
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
3301
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3302
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3303
else
 
3304
  if test -n "$ac_ct_CC"; then
 
3305
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3306
else
 
3307
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3308
for as_dir in $PATH
 
3309
do
 
3310
  IFS=$as_save_IFS
 
3311
  test -z "$as_dir" && as_dir=.
 
3312
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3313
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
3314
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3315
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3316
    break 2
 
3317
  fi
 
3318
done
 
3319
done
 
3320
 
 
3321
fi
 
3322
fi
 
3323
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3324
if test -n "$ac_ct_CC"; then
 
3325
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3326
echo "${ECHO_T}$ac_ct_CC" >&6
 
3327
else
 
3328
  echo "$as_me:$LINENO: result: no" >&5
 
3329
echo "${ECHO_T}no" >&6
 
3330
fi
 
3331
 
 
3332
  test -n "$ac_ct_CC" && break
 
3333
done
 
3334
 
 
3335
  CC=$ac_ct_CC
 
3336
fi
 
3337
 
 
3338
fi
 
3339
 
 
3340
 
 
3341
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3342
See \`config.log' for more details." >&5
 
3343
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3344
See \`config.log' for more details." >&2;}
 
3345
   { (exit 1); exit 1; }; }
 
3346
 
 
3347
# Provide some information about the compiler.
 
3348
echo "$as_me:$LINENO:" \
 
3349
     "checking for C compiler version" >&5
 
3350
ac_compiler=`set X $ac_compile; echo $2`
 
3351
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
3352
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
3353
  ac_status=$?
 
3354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3355
  (exit $ac_status); }
 
3356
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
3357
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
3358
  ac_status=$?
 
3359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3360
  (exit $ac_status); }
 
3361
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
3362
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
3363
  ac_status=$?
 
3364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3365
  (exit $ac_status); }
 
3366
 
 
3367
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3368
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 
3369
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3370
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3371
else
 
3372
  cat >conftest.$ac_ext <<_ACEOF
 
3373
/* confdefs.h.  */
 
3374
_ACEOF
 
3375
cat confdefs.h >>conftest.$ac_ext
 
3376
cat >>conftest.$ac_ext <<_ACEOF
 
3377
/* end confdefs.h.  */
 
3378
 
 
3379
int
 
3380
main ()
 
3381
{
 
3382
#ifndef __GNUC__
 
3383
       choke me
 
3384
#endif
 
3385
 
 
3386
  ;
 
3387
  return 0;
 
3388
}
 
3389
_ACEOF
 
3390
rm -f conftest.$ac_objext
 
3391
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3392
  (eval $ac_compile) 2>conftest.er1
 
3393
  ac_status=$?
 
3394
  grep -v '^ *+' conftest.er1 >conftest.err
 
3395
  rm -f conftest.er1
 
3396
  cat conftest.err >&5
 
3397
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3398
  (exit $ac_status); } &&
 
3399
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3400
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3401
  (eval $ac_try) 2>&5
 
3402
  ac_status=$?
 
3403
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3404
  (exit $ac_status); }; } &&
 
3405
         { ac_try='test -s conftest.$ac_objext'
 
3406
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3407
  (eval $ac_try) 2>&5
 
3408
  ac_status=$?
 
3409
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3410
  (exit $ac_status); }; }; then
 
3411
  ac_compiler_gnu=yes
 
3412
else
 
3413
  echo "$as_me: failed program was:" >&5
 
3414
sed 's/^/| /' conftest.$ac_ext >&5
 
3415
 
 
3416
ac_compiler_gnu=no
 
3417
fi
 
3418
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3419
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3420
 
 
3421
fi
 
3422
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3423
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
3424
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3425
ac_test_CFLAGS=${CFLAGS+set}
 
3426
ac_save_CFLAGS=$CFLAGS
 
3427
CFLAGS="-g"
 
3428
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3429
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 
3430
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3431
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3432
else
 
3433
  cat >conftest.$ac_ext <<_ACEOF
 
3434
/* confdefs.h.  */
 
3435
_ACEOF
 
3436
cat confdefs.h >>conftest.$ac_ext
 
3437
cat >>conftest.$ac_ext <<_ACEOF
 
3438
/* end confdefs.h.  */
 
3439
 
 
3440
int
 
3441
main ()
 
3442
{
 
3443
 
 
3444
  ;
 
3445
  return 0;
 
3446
}
 
3447
_ACEOF
 
3448
rm -f conftest.$ac_objext
 
3449
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3450
  (eval $ac_compile) 2>conftest.er1
 
3451
  ac_status=$?
 
3452
  grep -v '^ *+' conftest.er1 >conftest.err
 
3453
  rm -f conftest.er1
 
3454
  cat conftest.err >&5
 
3455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3456
  (exit $ac_status); } &&
 
3457
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3458
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3459
  (eval $ac_try) 2>&5
 
3460
  ac_status=$?
 
3461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3462
  (exit $ac_status); }; } &&
 
3463
         { ac_try='test -s conftest.$ac_objext'
 
3464
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3465
  (eval $ac_try) 2>&5
 
3466
  ac_status=$?
 
3467
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3468
  (exit $ac_status); }; }; then
 
3469
  ac_cv_prog_cc_g=yes
 
3470
else
 
3471
  echo "$as_me: failed program was:" >&5
 
3472
sed 's/^/| /' conftest.$ac_ext >&5
 
3473
 
 
3474
ac_cv_prog_cc_g=no
 
3475
fi
 
3476
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3477
fi
 
3478
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3479
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 
3480
if test "$ac_test_CFLAGS" = set; then
 
3481
  CFLAGS=$ac_save_CFLAGS
 
3482
elif test $ac_cv_prog_cc_g = yes; then
 
3483
  if test "$GCC" = yes; then
 
3484
    CFLAGS="-g -O2"
 
3485
  else
 
3486
    CFLAGS="-g"
 
3487
  fi
 
3488
else
 
3489
  if test "$GCC" = yes; then
 
3490
    CFLAGS="-O2"
 
3491
  else
 
3492
    CFLAGS=
 
3493
  fi
 
3494
fi
 
3495
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 
3496
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 
3497
if test "${ac_cv_prog_cc_stdc+set}" = set; then
 
3498
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3499
else
 
3500
  ac_cv_prog_cc_stdc=no
 
3501
ac_save_CC=$CC
 
3502
cat >conftest.$ac_ext <<_ACEOF
 
3503
/* confdefs.h.  */
 
3504
_ACEOF
 
3505
cat confdefs.h >>conftest.$ac_ext
 
3506
cat >>conftest.$ac_ext <<_ACEOF
 
3507
/* end confdefs.h.  */
 
3508
#include <stdarg.h>
 
3509
#include <stdio.h>
 
3510
#include <sys/types.h>
 
3511
#include <sys/stat.h>
 
3512
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3513
struct buf { int x; };
 
3514
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3515
static char *e (p, i)
 
3516
     char **p;
 
3517
     int i;
 
3518
{
 
3519
  return p[i];
 
3520
}
 
3521
static char *f (char * (*g) (char **, int), char **p, ...)
 
3522
{
 
3523
  char *s;
 
3524
  va_list v;
 
3525
  va_start (v,p);
 
3526
  s = g (p, va_arg (v,int));
 
3527
  va_end (v);
 
3528
  return s;
 
3529
}
 
3530
 
 
3531
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3532
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3533
   These don't provoke an error unfortunately, instead are silently treated
 
3534
   as 'x'.  The following induces an error, until -std1 is added to get
 
3535
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3536
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3537
   that's true only with -std1.  */
 
3538
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3539
 
 
3540
int test (int i, double x);
 
3541
struct s1 {int (*f) (int a);};
 
3542
struct s2 {int (*f) (double a);};
 
3543
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3544
int argc;
 
3545
char **argv;
 
3546
int
 
3547
main ()
 
3548
{
 
3549
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3550
  ;
 
3551
  return 0;
 
3552
}
 
3553
_ACEOF
 
3554
# Don't try gcc -ansi; that turns off useful extensions and
 
3555
# breaks some systems' header files.
 
3556
# AIX                   -qlanglvl=ansi
 
3557
# Ultrix and OSF/1      -std1
 
3558
# HP-UX 10.20 and later -Ae
 
3559
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3560
# SVR4                  -Xc -D__EXTENSIONS__
 
3561
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3562
do
 
3563
  CC="$ac_save_CC $ac_arg"
 
3564
  rm -f conftest.$ac_objext
 
3565
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3566
  (eval $ac_compile) 2>conftest.er1
 
3567
  ac_status=$?
 
3568
  grep -v '^ *+' conftest.er1 >conftest.err
 
3569
  rm -f conftest.er1
 
3570
  cat conftest.err >&5
 
3571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3572
  (exit $ac_status); } &&
 
3573
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3574
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3575
  (eval $ac_try) 2>&5
 
3576
  ac_status=$?
 
3577
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3578
  (exit $ac_status); }; } &&
 
3579
         { ac_try='test -s conftest.$ac_objext'
 
3580
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3581
  (eval $ac_try) 2>&5
 
3582
  ac_status=$?
 
3583
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3584
  (exit $ac_status); }; }; then
 
3585
  ac_cv_prog_cc_stdc=$ac_arg
 
3586
break
 
3587
else
 
3588
  echo "$as_me: failed program was:" >&5
 
3589
sed 's/^/| /' conftest.$ac_ext >&5
 
3590
 
 
3591
fi
 
3592
rm -f conftest.err conftest.$ac_objext
 
3593
done
 
3594
rm -f conftest.$ac_ext conftest.$ac_objext
 
3595
CC=$ac_save_CC
 
3596
 
 
3597
fi
 
3598
 
 
3599
case "x$ac_cv_prog_cc_stdc" in
 
3600
  x|xno)
 
3601
    echo "$as_me:$LINENO: result: none needed" >&5
 
3602
echo "${ECHO_T}none needed" >&6 ;;
 
3603
  *)
 
3604
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 
3605
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 
3606
    CC="$CC $ac_cv_prog_cc_stdc" ;;
 
3607
esac
 
3608
 
 
3609
# Some people use a C++ compiler to compile C.  Since we use `exit',
 
3610
# in C++ we need to declare it.  In case someone uses the same compiler
 
3611
# for both compiling C and C++ we need to have the C++ compiler decide
 
3612
# the declaration of exit, since it's the most demanding environment.
 
3613
cat >conftest.$ac_ext <<_ACEOF
 
3614
#ifndef __cplusplus
 
3615
  choke me
 
3616
#endif
 
3617
_ACEOF
 
3618
rm -f conftest.$ac_objext
 
3619
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3620
  (eval $ac_compile) 2>conftest.er1
 
3621
  ac_status=$?
 
3622
  grep -v '^ *+' conftest.er1 >conftest.err
 
3623
  rm -f conftest.er1
 
3624
  cat conftest.err >&5
 
3625
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3626
  (exit $ac_status); } &&
 
3627
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3628
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3629
  (eval $ac_try) 2>&5
 
3630
  ac_status=$?
 
3631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3632
  (exit $ac_status); }; } &&
 
3633
         { ac_try='test -s conftest.$ac_objext'
 
3634
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3635
  (eval $ac_try) 2>&5
 
3636
  ac_status=$?
 
3637
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3638
  (exit $ac_status); }; }; then
 
3639
  for ac_declaration in \
 
3640
   '' \
 
3641
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
3642
   'extern "C" void std::exit (int); using std::exit;' \
 
3643
   'extern "C" void exit (int) throw ();' \
 
3644
   'extern "C" void exit (int);' \
 
3645
   'void exit (int);'
 
3646
do
 
3647
  cat >conftest.$ac_ext <<_ACEOF
 
3648
/* confdefs.h.  */
 
3649
_ACEOF
 
3650
cat confdefs.h >>conftest.$ac_ext
 
3651
cat >>conftest.$ac_ext <<_ACEOF
 
3652
/* end confdefs.h.  */
 
3653
$ac_declaration
 
3654
#include <stdlib.h>
 
3655
int
 
3656
main ()
 
3657
{
 
3658
exit (42);
 
3659
  ;
 
3660
  return 0;
 
3661
}
 
3662
_ACEOF
 
3663
rm -f conftest.$ac_objext
 
3664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3665
  (eval $ac_compile) 2>conftest.er1
 
3666
  ac_status=$?
 
3667
  grep -v '^ *+' conftest.er1 >conftest.err
 
3668
  rm -f conftest.er1
 
3669
  cat conftest.err >&5
 
3670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3671
  (exit $ac_status); } &&
 
3672
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3674
  (eval $ac_try) 2>&5
 
3675
  ac_status=$?
 
3676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3677
  (exit $ac_status); }; } &&
 
3678
         { ac_try='test -s conftest.$ac_objext'
 
3679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3680
  (eval $ac_try) 2>&5
 
3681
  ac_status=$?
 
3682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3683
  (exit $ac_status); }; }; then
 
3684
  :
 
3685
else
 
3686
  echo "$as_me: failed program was:" >&5
 
3687
sed 's/^/| /' conftest.$ac_ext >&5
 
3688
 
 
3689
continue
 
3690
fi
 
3691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3692
  cat >conftest.$ac_ext <<_ACEOF
 
3693
/* confdefs.h.  */
 
3694
_ACEOF
 
3695
cat confdefs.h >>conftest.$ac_ext
 
3696
cat >>conftest.$ac_ext <<_ACEOF
 
3697
/* end confdefs.h.  */
 
3698
$ac_declaration
 
3699
int
 
3700
main ()
 
3701
{
 
3702
exit (42);
 
3703
  ;
 
3704
  return 0;
 
3705
}
 
3706
_ACEOF
 
3707
rm -f conftest.$ac_objext
 
3708
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3709
  (eval $ac_compile) 2>conftest.er1
 
3710
  ac_status=$?
 
3711
  grep -v '^ *+' conftest.er1 >conftest.err
 
3712
  rm -f conftest.er1
 
3713
  cat conftest.err >&5
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); } &&
 
3716
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3717
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3718
  (eval $ac_try) 2>&5
 
3719
  ac_status=$?
 
3720
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3721
  (exit $ac_status); }; } &&
 
3722
         { ac_try='test -s conftest.$ac_objext'
 
3723
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3724
  (eval $ac_try) 2>&5
 
3725
  ac_status=$?
 
3726
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3727
  (exit $ac_status); }; }; then
 
3728
  break
 
3729
else
 
3730
  echo "$as_me: failed program was:" >&5
 
3731
sed 's/^/| /' conftest.$ac_ext >&5
 
3732
 
 
3733
fi
 
3734
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3735
done
 
3736
rm -f conftest*
 
3737
if test -n "$ac_declaration"; then
 
3738
  echo '#ifdef __cplusplus' >>confdefs.h
 
3739
  echo $ac_declaration      >>confdefs.h
 
3740
  echo '#endif'             >>confdefs.h
 
3741
fi
 
3742
 
 
3743
else
 
3744
  echo "$as_me: failed program was:" >&5
 
3745
sed 's/^/| /' conftest.$ac_ext >&5
 
3746
 
 
3747
fi
 
3748
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3749
ac_ext=c
 
3750
ac_cpp='$CPP $CPPFLAGS'
 
3751
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3752
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3753
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3754
 
 
3755
depcc="$CC"   am_compiler_list=
 
3756
 
 
3757
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3758
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
3759
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3760
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3761
else
 
3762
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3763
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3764
  # making bogus files that we don't know about and never remove.  For
 
3765
  # instance it was reported that on HP-UX the gcc test will end up
 
3766
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3767
  # in D'.
 
3768
  mkdir conftest.dir
 
3769
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3770
  # using a relative directory.
 
3771
  cp "$am_depcomp" conftest.dir
 
3772
  cd conftest.dir
 
3773
 
 
3774
  am_cv_CC_dependencies_compiler_type=none
 
3775
  if test "$am_compiler_list" = ""; then
 
3776
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3777
  fi
 
3778
  for depmode in $am_compiler_list; do
 
3779
    # We need to recreate these files for each test, as the compiler may
 
3780
    # overwrite some of them when testing with obscure command lines.
 
3781
    # This happens at least with the AIX C compiler.
 
3782
    echo '#include "conftest.h"' > conftest.c
 
3783
    echo 'int i;' > conftest.h
 
3784
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
3785
 
 
3786
    case $depmode in
 
3787
    nosideeffect)
 
3788
      # after this tag, mechanisms are not by side-effect, so they'll
 
3789
      # only be used when explicitly requested
 
3790
      if test "x$enable_dependency_tracking" = xyes; then
 
3791
        continue
 
3792
      else
 
3793
        break
 
3794
      fi
 
3795
      ;;
 
3796
    none) break ;;
 
3797
    esac
 
3798
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3799
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3800
    # handle `-M -o', and we need to detect this.
 
3801
    if depmode=$depmode \
 
3802
       source=conftest.c object=conftest.o \
 
3803
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
3804
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
3805
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
3806
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3807
      am_cv_CC_dependencies_compiler_type=$depmode
 
3808
      break
 
3809
    fi
 
3810
  done
 
3811
 
 
3812
  cd ..
 
3813
  rm -rf conftest.dir
 
3814
else
 
3815
  am_cv_CC_dependencies_compiler_type=none
 
3816
fi
 
3817
 
 
3818
fi
 
3819
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3820
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 
3821
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3822
 
 
3823
 
 
3824
 
 
3825
 
 
3826
 
 
3827
echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5
 
3828
echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6
 
3829
if test "${am_cv_prog_cc_stdc+set}" = set; then
 
3830
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3831
else
 
3832
  am_cv_prog_cc_stdc=no
 
3833
ac_save_CC="$CC"
 
3834
# Don't try gcc -ansi; that turns off useful extensions and
 
3835
# breaks some systems' header files.
 
3836
# AIX                   -qlanglvl=ansi
 
3837
# Ultrix and OSF/1      -std1
 
3838
# HP-UX 10.20 and later -Ae
 
3839
# HP-UX older versions  -Aa -D_HPUX_SOURCE
 
3840
# SVR4                  -Xc -D__EXTENSIONS__
 
3841
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3842
do
 
3843
  CC="$ac_save_CC $ac_arg"
 
3844
  cat >conftest.$ac_ext <<_ACEOF
 
3845
/* confdefs.h.  */
 
3846
_ACEOF
 
3847
cat confdefs.h >>conftest.$ac_ext
 
3848
cat >>conftest.$ac_ext <<_ACEOF
 
3849
/* end confdefs.h.  */
 
3850
#include <stdarg.h>
 
3851
#include <stdio.h>
 
3852
#include <sys/types.h>
 
3853
#include <sys/stat.h>
 
3854
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3855
struct buf { int x; };
 
3856
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3857
static char *e (p, i)
 
3858
     char **p;
 
3859
     int i;
 
3860
{
 
3861
  return p[i];
 
3862
}
 
3863
static char *f (char * (*g) (char **, int), char **p, ...)
 
3864
{
 
3865
  char *s;
 
3866
  va_list v;
 
3867
  va_start (v,p);
 
3868
  s = g (p, va_arg (v,int));
 
3869
  va_end (v);
 
3870
  return s;
 
3871
}
 
3872
int test (int i, double x);
 
3873
struct s1 {int (*f) (int a);};
 
3874
struct s2 {int (*f) (double a);};
 
3875
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3876
int argc;
 
3877
char **argv;
 
3878
 
 
3879
int
 
3880
main ()
 
3881
{
 
3882
 
 
3883
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3884
 
 
3885
  ;
 
3886
  return 0;
 
3887
}
 
3888
_ACEOF
 
3889
rm -f conftest.$ac_objext
 
3890
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3891
  (eval $ac_compile) 2>conftest.er1
 
3892
  ac_status=$?
 
3893
  grep -v '^ *+' conftest.er1 >conftest.err
 
3894
  rm -f conftest.er1
 
3895
  cat conftest.err >&5
 
3896
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3897
  (exit $ac_status); } &&
 
3898
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
3899
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3900
  (eval $ac_try) 2>&5
 
3901
  ac_status=$?
 
3902
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3903
  (exit $ac_status); }; } &&
 
3904
         { ac_try='test -s conftest.$ac_objext'
 
3905
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
3906
  (eval $ac_try) 2>&5
 
3907
  ac_status=$?
 
3908
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3909
  (exit $ac_status); }; }; then
 
3910
  am_cv_prog_cc_stdc="$ac_arg"; break
 
3911
else
 
3912
  echo "$as_me: failed program was:" >&5
 
3913
sed 's/^/| /' conftest.$ac_ext >&5
 
3914
 
 
3915
fi
 
3916
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
3917
done
 
3918
CC="$ac_save_CC"
 
3919
 
 
3920
fi
 
3921
 
 
3922
if test -z "$am_cv_prog_cc_stdc"; then
 
3923
  echo "$as_me:$LINENO: result: none needed" >&5
 
3924
echo "${ECHO_T}none needed" >&6
 
3925
else
 
3926
  echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5
 
3927
echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6
 
3928
fi
 
3929
case "x$am_cv_prog_cc_stdc" in
 
3930
  x|xno) ;;
 
3931
  *) CC="$CC $am_cv_prog_cc_stdc" ;;
 
3932
esac
 
3933
 
 
3934
ac_ext=c
 
3935
ac_cpp='$CPP $CPPFLAGS'
 
3936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3939
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3940
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 
3941
# On Suns, sometimes $CPP names a directory.
 
3942
if test -n "$CPP" && test -d "$CPP"; then
 
3943
  CPP=
 
3944
fi
 
3945
if test -z "$CPP"; then
 
3946
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3947
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3948
else
 
3949
      # Double quotes because CPP needs to be expanded
 
3950
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3951
    do
 
3952
      ac_preproc_ok=false
 
3953
for ac_c_preproc_warn_flag in '' yes
 
3954
do
 
3955
  # Use a header file that comes with gcc, so configuring glibc
 
3956
  # with a fresh cross-compiler works.
 
3957
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3958
  # <limits.h> exists even on freestanding compilers.
 
3959
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3960
  # not just through cpp. "Syntax error" is here to catch this case.
 
3961
  cat >conftest.$ac_ext <<_ACEOF
 
3962
/* confdefs.h.  */
 
3963
_ACEOF
 
3964
cat confdefs.h >>conftest.$ac_ext
 
3965
cat >>conftest.$ac_ext <<_ACEOF
 
3966
/* end confdefs.h.  */
 
3967
#ifdef __STDC__
 
3968
# include <limits.h>
 
3969
#else
 
3970
# include <assert.h>
 
3971
#endif
 
3972
                     Syntax error
 
3973
_ACEOF
 
3974
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3975
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3976
  ac_status=$?
 
3977
  grep -v '^ *+' conftest.er1 >conftest.err
 
3978
  rm -f conftest.er1
 
3979
  cat conftest.err >&5
 
3980
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3981
  (exit $ac_status); } >/dev/null; then
 
3982
  if test -s conftest.err; then
 
3983
    ac_cpp_err=$ac_c_preproc_warn_flag
 
3984
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
3985
  else
 
3986
    ac_cpp_err=
 
3987
  fi
 
3988
else
 
3989
  ac_cpp_err=yes
 
3990
fi
 
3991
if test -z "$ac_cpp_err"; then
 
3992
  :
 
3993
else
 
3994
  echo "$as_me: failed program was:" >&5
 
3995
sed 's/^/| /' conftest.$ac_ext >&5
 
3996
 
 
3997
  # Broken: fails on valid input.
 
3998
continue
 
3999
fi
 
4000
rm -f conftest.err conftest.$ac_ext
 
4001
 
 
4002
  # OK, works on sane cases.  Now check whether non-existent headers
 
4003
  # can be detected and how.
 
4004
  cat >conftest.$ac_ext <<_ACEOF
 
4005
/* confdefs.h.  */
 
4006
_ACEOF
 
4007
cat confdefs.h >>conftest.$ac_ext
 
4008
cat >>conftest.$ac_ext <<_ACEOF
 
4009
/* end confdefs.h.  */
 
4010
#include <ac_nonexistent.h>
 
4011
_ACEOF
 
4012
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4013
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4014
  ac_status=$?
 
4015
  grep -v '^ *+' conftest.er1 >conftest.err
 
4016
  rm -f conftest.er1
 
4017
  cat conftest.err >&5
 
4018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4019
  (exit $ac_status); } >/dev/null; then
 
4020
  if test -s conftest.err; then
 
4021
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4022
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4023
  else
 
4024
    ac_cpp_err=
 
4025
  fi
 
4026
else
 
4027
  ac_cpp_err=yes
 
4028
fi
 
4029
if test -z "$ac_cpp_err"; then
 
4030
  # Broken: success on invalid input.
 
4031
continue
 
4032
else
 
4033
  echo "$as_me: failed program was:" >&5
 
4034
sed 's/^/| /' conftest.$ac_ext >&5
 
4035
 
 
4036
  # Passes both tests.
 
4037
ac_preproc_ok=:
 
4038
break
 
4039
fi
 
4040
rm -f conftest.err conftest.$ac_ext
 
4041
 
 
4042
done
 
4043
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4044
rm -f conftest.err conftest.$ac_ext
 
4045
if $ac_preproc_ok; then
 
4046
  break
 
4047
fi
 
4048
 
 
4049
    done
 
4050
    ac_cv_prog_CPP=$CPP
 
4051
 
 
4052
fi
 
4053
  CPP=$ac_cv_prog_CPP
 
4054
else
 
4055
  ac_cv_prog_CPP=$CPP
 
4056
fi
 
4057
echo "$as_me:$LINENO: result: $CPP" >&5
 
4058
echo "${ECHO_T}$CPP" >&6
 
4059
ac_preproc_ok=false
 
4060
for ac_c_preproc_warn_flag in '' yes
 
4061
do
 
4062
  # Use a header file that comes with gcc, so configuring glibc
 
4063
  # with a fresh cross-compiler works.
 
4064
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4065
  # <limits.h> exists even on freestanding compilers.
 
4066
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4067
  # not just through cpp. "Syntax error" is here to catch this case.
 
4068
  cat >conftest.$ac_ext <<_ACEOF
 
4069
/* confdefs.h.  */
 
4070
_ACEOF
 
4071
cat confdefs.h >>conftest.$ac_ext
 
4072
cat >>conftest.$ac_ext <<_ACEOF
 
4073
/* end confdefs.h.  */
 
4074
#ifdef __STDC__
 
4075
# include <limits.h>
 
4076
#else
 
4077
# include <assert.h>
 
4078
#endif
 
4079
                     Syntax error
 
4080
_ACEOF
 
4081
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4082
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4083
  ac_status=$?
 
4084
  grep -v '^ *+' conftest.er1 >conftest.err
 
4085
  rm -f conftest.er1
 
4086
  cat conftest.err >&5
 
4087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4088
  (exit $ac_status); } >/dev/null; then
 
4089
  if test -s conftest.err; then
 
4090
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4091
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4092
  else
 
4093
    ac_cpp_err=
 
4094
  fi
 
4095
else
 
4096
  ac_cpp_err=yes
 
4097
fi
 
4098
if test -z "$ac_cpp_err"; then
 
4099
  :
 
4100
else
 
4101
  echo "$as_me: failed program was:" >&5
 
4102
sed 's/^/| /' conftest.$ac_ext >&5
 
4103
 
 
4104
  # Broken: fails on valid input.
 
4105
continue
 
4106
fi
 
4107
rm -f conftest.err conftest.$ac_ext
 
4108
 
 
4109
  # OK, works on sane cases.  Now check whether non-existent headers
 
4110
  # can be detected and how.
 
4111
  cat >conftest.$ac_ext <<_ACEOF
 
4112
/* confdefs.h.  */
 
4113
_ACEOF
 
4114
cat confdefs.h >>conftest.$ac_ext
 
4115
cat >>conftest.$ac_ext <<_ACEOF
 
4116
/* end confdefs.h.  */
 
4117
#include <ac_nonexistent.h>
 
4118
_ACEOF
 
4119
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
4120
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
4121
  ac_status=$?
 
4122
  grep -v '^ *+' conftest.er1 >conftest.err
 
4123
  rm -f conftest.er1
 
4124
  cat conftest.err >&5
 
4125
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4126
  (exit $ac_status); } >/dev/null; then
 
4127
  if test -s conftest.err; then
 
4128
    ac_cpp_err=$ac_c_preproc_warn_flag
 
4129
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
4130
  else
 
4131
    ac_cpp_err=
 
4132
  fi
 
4133
else
 
4134
  ac_cpp_err=yes
 
4135
fi
 
4136
if test -z "$ac_cpp_err"; then
 
4137
  # Broken: success on invalid input.
 
4138
continue
 
4139
else
 
4140
  echo "$as_me: failed program was:" >&5
 
4141
sed 's/^/| /' conftest.$ac_ext >&5
 
4142
 
 
4143
  # Passes both tests.
 
4144
ac_preproc_ok=:
 
4145
break
 
4146
fi
 
4147
rm -f conftest.err conftest.$ac_ext
 
4148
 
 
4149
done
 
4150
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4151
rm -f conftest.err conftest.$ac_ext
 
4152
if $ac_preproc_ok; then
 
4153
  :
 
4154
else
 
4155
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4156
See \`config.log' for more details." >&5
 
4157
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4158
See \`config.log' for more details." >&2;}
 
4159
   { (exit 1); exit 1; }; }
 
4160
fi
 
4161
 
 
4162
ac_ext=c
 
4163
ac_cpp='$CPP $CPPFLAGS'
 
4164
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4165
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4166
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4167
 
 
4168
 
 
4169
echo "$as_me:$LINENO: checking for egrep" >&5
 
4170
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 
4171
if test "${ac_cv_prog_egrep+set}" = set; then
 
4172
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4173
else
 
4174
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 
4175
    then ac_cv_prog_egrep='grep -E'
 
4176
    else ac_cv_prog_egrep='egrep'
 
4177
    fi
 
4178
fi
 
4179
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 
4180
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 
4181
 EGREP=$ac_cv_prog_egrep
 
4182
 
 
4183
 
 
4184
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4185
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 
4186
if test "${ac_cv_header_stdc+set}" = set; then
 
4187
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4188
else
 
4189
  cat >conftest.$ac_ext <<_ACEOF
 
4190
/* confdefs.h.  */
 
4191
_ACEOF
 
4192
cat confdefs.h >>conftest.$ac_ext
 
4193
cat >>conftest.$ac_ext <<_ACEOF
 
4194
/* end confdefs.h.  */
 
4195
#include <stdlib.h>
 
4196
#include <stdarg.h>
 
4197
#include <string.h>
 
4198
#include <float.h>
 
4199
 
 
4200
int
 
4201
main ()
 
4202
{
 
4203
 
 
4204
  ;
 
4205
  return 0;
 
4206
}
 
4207
_ACEOF
 
4208
rm -f conftest.$ac_objext
 
4209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4210
  (eval $ac_compile) 2>conftest.er1
 
4211
  ac_status=$?
 
4212
  grep -v '^ *+' conftest.er1 >conftest.err
 
4213
  rm -f conftest.er1
 
4214
  cat conftest.err >&5
 
4215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4216
  (exit $ac_status); } &&
 
4217
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
4218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4219
  (eval $ac_try) 2>&5
 
4220
  ac_status=$?
 
4221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4222
  (exit $ac_status); }; } &&
 
4223
         { ac_try='test -s conftest.$ac_objext'
 
4224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4225
  (eval $ac_try) 2>&5
 
4226
  ac_status=$?
 
4227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4228
  (exit $ac_status); }; }; then
 
4229
  ac_cv_header_stdc=yes
 
4230
else
 
4231
  echo "$as_me: failed program was:" >&5
 
4232
sed 's/^/| /' conftest.$ac_ext >&5
 
4233
 
 
4234
ac_cv_header_stdc=no
 
4235
fi
 
4236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
4237
 
 
4238
if test $ac_cv_header_stdc = yes; then
 
4239
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4240
  cat >conftest.$ac_ext <<_ACEOF
 
4241
/* confdefs.h.  */
 
4242
_ACEOF
 
4243
cat confdefs.h >>conftest.$ac_ext
 
4244
cat >>conftest.$ac_ext <<_ACEOF
 
4245
/* end confdefs.h.  */
 
4246
#include <string.h>
 
4247
 
 
4248
_ACEOF
 
4249
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4250
  $EGREP "memchr" >/dev/null 2>&1; then
 
4251
  :
 
4252
else
 
4253
  ac_cv_header_stdc=no
 
4254
fi
 
4255
rm -f conftest*
 
4256
 
 
4257
fi
 
4258
 
 
4259
if test $ac_cv_header_stdc = yes; then
 
4260
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4261
  cat >conftest.$ac_ext <<_ACEOF
 
4262
/* confdefs.h.  */
 
4263
_ACEOF
 
4264
cat confdefs.h >>conftest.$ac_ext
 
4265
cat >>conftest.$ac_ext <<_ACEOF
 
4266
/* end confdefs.h.  */
 
4267
#include <stdlib.h>
 
4268
 
 
4269
_ACEOF
 
4270
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4271
  $EGREP "free" >/dev/null 2>&1; then
 
4272
  :
 
4273
else
 
4274
  ac_cv_header_stdc=no
 
4275
fi
 
4276
rm -f conftest*
 
4277
 
 
4278
fi
 
4279
 
 
4280
if test $ac_cv_header_stdc = yes; then
 
4281
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4282
  if test "$cross_compiling" = yes; then
 
4283
  :
 
4284
else
 
4285
  cat >conftest.$ac_ext <<_ACEOF
 
4286
/* confdefs.h.  */
 
4287
_ACEOF
 
4288
cat confdefs.h >>conftest.$ac_ext
 
4289
cat >>conftest.$ac_ext <<_ACEOF
 
4290
/* end confdefs.h.  */
 
4291
#include <ctype.h>
 
4292
#if ((' ' & 0x0FF) == 0x020)
 
4293
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4294
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4295
#else
 
4296
# define ISLOWER(c) \
 
4297
                   (('a' <= (c) && (c) <= 'i') \
 
4298
                     || ('j' <= (c) && (c) <= 'r') \
 
4299
                     || ('s' <= (c) && (c) <= 'z'))
 
4300
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4301
#endif
 
4302
 
 
4303
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4304
int
 
4305
main ()
 
4306
{
 
4307
  int i;
 
4308
  for (i = 0; i < 256; i++)
 
4309
    if (XOR (islower (i), ISLOWER (i))
 
4310
        || toupper (i) != TOUPPER (i))
 
4311
      exit(2);
 
4312
  exit (0);
 
4313
}
 
4314
_ACEOF
 
4315
rm -f conftest$ac_exeext
 
4316
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
4317
  (eval $ac_link) 2>&5
 
4318
  ac_status=$?
 
4319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4320
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4321
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
4322
  (eval $ac_try) 2>&5
 
4323
  ac_status=$?
 
4324
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4325
  (exit $ac_status); }; }; then
 
4326
  :
 
4327
else
 
4328
  echo "$as_me: program exited with status $ac_status" >&5
 
4329
echo "$as_me: failed program was:" >&5
 
4330
sed 's/^/| /' conftest.$ac_ext >&5
 
4331
 
 
4332
( exit $ac_status )
 
4333
ac_cv_header_stdc=no
 
4334
fi
 
4335
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4336
fi
 
4337
fi
 
4338
fi
 
4339
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4340
echo "${ECHO_T}$ac_cv_header_stdc" >&6
 
4341
if test $ac_cv_header_stdc = yes; then
 
4342
 
 
4343
cat >>confdefs.h <<\_ACEOF
 
4344
#define STDC_HEADERS 1
 
4345
_ACEOF
 
4346
 
 
4347
fi
 
4348
 
 
4349
 
 
4350
 
 
4351
if test -n ""; then
 
4352
    echo "$as_me:$LINENO: checking for intltool >= " >&5
 
4353
echo $ECHO_N "checking for intltool >= ... $ECHO_C" >&6
 
4354
 
 
4355
    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo  | awk -F. '{ printf "%d", $1 * 100 + $2; }'`
 
4356
    INTLTOOL_APPLIED_VERSION=`awk -F\" '/\\$VERSION / { printf $2; }'  < ${ac_aux_dir}/intltool-update.in`
 
4357
 
 
4358
    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`
 
4359
 
 
4360
 
 
4361
    if test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT"; then
 
4362
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found" >&5
 
4363
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found" >&6
 
4364
    else
 
4365
        echo "$as_me:$LINENO: result: $INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&5
 
4366
echo "${ECHO_T}$INTLTOOL_APPLIED_VERSION found. Your intltool is too old.  You need intltool  or later." >&6
 
4367
        exit 1
 
4368
    fi
 
4369
fi
 
4370
 
 
4371
  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4372
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4373
     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -k -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4374
     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4375
      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -p'
 
4376
     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4377
   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -o -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4378
    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4379
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4380
       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4381
      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4382
      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4383
      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -x -u -m -c $(top_builddir)/po/.intltool-merge-cache'
 
4384
    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4385
  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -s -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4386
    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) $(top_srcdir)/po $< $@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'
 
4387
 
 
4388
 
 
4389
 
 
4390
 
 
4391
 
 
4392
 
 
4393
 
 
4394
 
 
4395
 
 
4396
 
 
4397
 
 
4398
 
 
4399
 
 
4400
 
 
4401
 
 
4402
 
 
4403
 
 
4404
 
 
4405
# Use the tools built into the package, not the ones that are installed.
 
4406
 
 
4407
INTLTOOL_EXTRACT='$(top_builddir)/intltool-extract'
 
4408
INTLTOOL_MERGE='$(top_builddir)/intltool-merge'
 
4409
INTLTOOL_UPDATE='$(top_builddir)/intltool-update'
 
4410
 
 
4411
 
 
4412
 
 
4413
 
 
4414
 
 
4415
# Extract the first word of "perl", so it can be a program name with args.
 
4416
set dummy perl; ac_word=$2
 
4417
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
4418
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
4419
if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then
 
4420
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4421
else
 
4422
  case $INTLTOOL_PERL in
 
4423
  [\\/]* | ?:[\\/]*)
 
4424
  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
 
4425
  ;;
 
4426
  *)
 
4427
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4428
for as_dir in $PATH
 
4429
do
 
4430
  IFS=$as_save_IFS
 
4431
  test -z "$as_dir" && as_dir=.
 
4432
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4433
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
4434
    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
 
4435
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
4436
    break 2
 
4437
  fi
 
4438
done
 
4439
done
 
4440
 
 
4441
  ;;
 
4442
esac
 
4443
fi
 
4444
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
 
4445
 
 
4446
if test -n "$INTLTOOL_PERL"; then
 
4447
  echo "$as_me:$LINENO: result: $INTLTOOL_PERL" >&5
 
4448
echo "${ECHO_T}$INTLTOOL_PERL" >&6
 
4449
else
 
4450
  echo "$as_me:$LINENO: result: no" >&5
 
4451
echo "${ECHO_T}no" >&6
 
4452
fi
 
4453
 
 
4454
if test -z "$INTLTOOL_PERL"; then
 
4455
   { { echo "$as_me:$LINENO: error: perl not found; required for intltool" >&5
 
4456
echo "$as_me: error: perl not found; required for intltool" >&2;}
 
4457
   { (exit 1); exit 1; }; }
 
4458
fi
 
4459
if test -z "`$INTLTOOL_PERL -v | fgrep '5.' 2> /dev/null`"; then
 
4460
   { { echo "$as_me:$LINENO: error: perl 5.x required for intltool" >&5
 
4461
echo "$as_me: error: perl 5.x required for intltool" >&2;}
 
4462
   { (exit 1); exit 1; }; }
 
4463
fi
 
4464
if `perl -e "require XML::Parser" 2>/dev/null`; then
 
4465
:
 
4466
else
 
4467
   { { echo "$as_me:$LINENO: error: XML::Parser perl module is required for intltool" >&5
 
4468
echo "$as_me: error: XML::Parser perl module is required for intltool" >&2;}
 
4469
   { (exit 1); exit 1; }; }
 
4470
fi
 
4471
 
 
4472
# Remove file type tags (using []) from po/POTFILES.
 
4473
 
 
4474
 
 
4475
 
 
4476
 
 
4477
 
 
4478
 
 
4479
 
 
4480
# Manually sed perl in so people don't have to put the intltool scripts in AC_OUTPUT.
 
4481
 
 
4482
          ac_config_commands="$ac_config_commands default-1"
 
4483
 
 
4484
 
 
4485
 
 
4486
# Check whether --enable-shared or --disable-shared was given.
 
4487
if test "${enable_shared+set}" = set; then
 
4488
  enableval="$enable_shared"
 
4489
  p=${PACKAGE-default}
 
4490
    case $enableval in
 
4491
    yes) enable_shared=yes ;;
 
4492
    no) enable_shared=no ;;
 
4493
    *)
 
4494
      enable_shared=no
 
4495
      # Look at the argument we got.  We use all the common list separators.
 
4496
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4497
      for pkg in $enableval; do
 
4498
        IFS="$lt_save_ifs"
 
4499
        if test "X$pkg" = "X$p"; then
 
4500
          enable_shared=yes
 
4501
        fi
 
4502
      done
 
4503
      IFS="$lt_save_ifs"
 
4504
      ;;
 
4505
    esac
 
4506
else
 
4507
  enable_shared=yes
 
4508
fi;
 
4509
 
 
4510
# Check whether --enable-static or --disable-static was given.
 
4511
if test "${enable_static+set}" = set; then
 
4512
  enableval="$enable_static"
 
4513
  p=${PACKAGE-default}
 
4514
    case $enableval in
 
4515
    yes) enable_static=yes ;;
 
4516
    no) enable_static=no ;;
 
4517
    *)
 
4518
     enable_static=no
 
4519
      # Look at the argument we got.  We use all the common list separators.
 
4520
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4521
      for pkg in $enableval; do
 
4522
        IFS="$lt_save_ifs"
 
4523
        if test "X$pkg" = "X$p"; then
 
4524
          enable_static=yes
 
4525
        fi
 
4526
      done
 
4527
      IFS="$lt_save_ifs"
 
4528
      ;;
 
4529
    esac
 
4530
else
 
4531
  enable_static=yes
 
4532
fi;
 
4533
 
 
4534
# Check whether --enable-fast-install or --disable-fast-install was given.
 
4535
if test "${enable_fast_install+set}" = set; then
 
4536
  enableval="$enable_fast_install"
 
4537
  p=${PACKAGE-default}
 
4538
    case $enableval in
 
4539
    yes) enable_fast_install=yes ;;
 
4540
    no) enable_fast_install=no ;;
 
4541
    *)
 
4542
      enable_fast_install=no
 
4543
      # Look at the argument we got.  We use all the common list separators.
 
4544
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
4545
      for pkg in $enableval; do
 
4546
        IFS="$lt_save_ifs"
 
4547
        if test "X$pkg" = "X$p"; then
 
4548
          enable_fast_install=yes
 
4549
        fi
 
4550
      done
 
4551
      IFS="$lt_save_ifs"
 
4552
      ;;
 
4553
    esac
 
4554
else
 
4555
  enable_fast_install=yes
 
4556
fi;
 
4557
 
 
4558
# Make sure we can run config.sub.
 
4559
$ac_config_sub sun4 >/dev/null 2>&1 ||
 
4560
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 
4561
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 
4562
   { (exit 1); exit 1; }; }
 
4563
 
 
4564
echo "$as_me:$LINENO: checking build system type" >&5
 
4565
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
4566
if test "${ac_cv_build+set}" = set; then
 
4567
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4568
else
 
4569
  ac_cv_build_alias=$build_alias
 
4570
test -z "$ac_cv_build_alias" &&
 
4571
  ac_cv_build_alias=`$ac_config_guess`
 
4572
test -z "$ac_cv_build_alias" &&
 
4573
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 
4574
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 
4575
   { (exit 1); exit 1; }; }
 
4576
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 
4577
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 
4578
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 
4579
   { (exit 1); exit 1; }; }
 
4580
 
 
4581
fi
 
4582
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
4583
echo "${ECHO_T}$ac_cv_build" >&6
 
4584
build=$ac_cv_build
 
4585
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4586
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4587
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4588
 
 
4589
 
 
4590
echo "$as_me:$LINENO: checking host system type" >&5
 
4591
echo $ECHO_N "checking host system type... $ECHO_C" >&6
 
4592
if test "${ac_cv_host+set}" = set; then
 
4593
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4594
else
 
4595
  ac_cv_host_alias=$host_alias
 
4596
test -z "$ac_cv_host_alias" &&
 
4597
  ac_cv_host_alias=$ac_cv_build_alias
 
4598
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 
4599
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 
4600
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 
4601
   { (exit 1); exit 1; }; }
 
4602
 
 
4603
fi
 
4604
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
4605
echo "${ECHO_T}$ac_cv_host" >&6
 
4606
host=$ac_cv_host
 
4607
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 
4608
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 
4609
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 
4610
 
 
4611
 
 
4612
echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 
4613
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 
4614
if test "${lt_cv_path_SED+set}" = set; then
 
4615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4616
else
 
4617
  # Loop through the user's path and test for sed and gsed.
 
4618
# Then use that list of sed's as ones to test for truncation.
 
4619
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4620
for as_dir in $PATH
 
4621
do
 
4622
  IFS=$as_save_IFS
 
4623
  test -z "$as_dir" && as_dir=.
 
4624
  for lt_ac_prog in sed gsed; do
 
4625
    for ac_exec_ext in '' $ac_executable_extensions; do
 
4626
      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 
4627
        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 
4628
      fi
 
4629
    done
 
4630
  done
 
4631
done
 
4632
lt_ac_max=0
 
4633
lt_ac_count=0
 
4634
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
 
4635
# along with /bin/sed that truncates output.
 
4636
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 
4637
  test ! -f $lt_ac_sed && break
 
4638
  cat /dev/null > conftest.in
 
4639
  lt_ac_count=0
 
4640
  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 
4641
  # Check for GNU sed and select it if it is found.
 
4642
  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 
4643
    lt_cv_path_SED=$lt_ac_sed
 
4644
    break
 
4645
  fi
 
4646
  while true; do
 
4647
    cat conftest.in conftest.in >conftest.tmp
 
4648
    mv conftest.tmp conftest.in
 
4649
    cp conftest.in conftest.nl
 
4650
    echo >>conftest.nl
 
4651
    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 
4652
    cmp -s conftest.out conftest.nl || break
 
4653
    # 10000 chars as input seems more than enough
 
4654
    test $lt_ac_count -gt 10 && break
 
4655
    lt_ac_count=`expr $lt_ac_count + 1`
 
4656
    if test $lt_ac_count -gt $lt_ac_max; then
 
4657
      lt_ac_max=$lt_ac_count
 
4658
      lt_cv_path_SED=$lt_ac_sed
 
4659
    fi
 
4660
  done
 
4661
done
 
4662
SED=$lt_cv_path_SED
 
4663
 
 
4664
fi
 
4665
 
 
4666
echo "$as_me:$LINENO: result: $SED" >&5
 
4667
echo "${ECHO_T}$SED" >&6
 
4668
 
 
4669
 
 
4670
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
4671
if test "${with_gnu_ld+set}" = set; then
 
4672
  withval="$with_gnu_ld"
 
4673
  test "$withval" = no || with_gnu_ld=yes
 
4674
else
 
4675
  with_gnu_ld=no
 
4676
fi;
 
4677
ac_prog=ld
 
4678
if test "$GCC" = yes; then
 
4679
  # Check if gcc -print-prog-name=ld gives a path.
 
4680
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
4681
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
4682
  case $host in
 
4683
  *-*-mingw*)
 
4684
    # gcc leaves a trailing carriage return which upsets mingw
 
4685
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
4686
  *)
 
4687
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
4688
  esac
 
4689
  case $ac_prog in
 
4690
    # Accept absolute paths.
 
4691
    [\\/]* | ?:[\\/]*)
 
4692
      re_direlt='/[^/][^/]*/\.\./'
 
4693
      # Canonicalize the pathname of ld
 
4694
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
4695
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
4696
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
4697
      done
 
4698
      test -z "$LD" && LD="$ac_prog"
 
4699
      ;;
 
4700
  "")
 
4701
    # If it fails, then pretend we aren't using GCC.
 
4702
    ac_prog=ld
 
4703
    ;;
 
4704
  *)
 
4705
    # If it is relative, then search for the first ld in PATH.
 
4706
    with_gnu_ld=unknown
 
4707
    ;;
 
4708
  esac
 
4709
elif test "$with_gnu_ld" = yes; then
 
4710
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
4711
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
4712
else
 
4713
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
4714
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
4715
fi
 
4716
if test "${lt_cv_path_LD+set}" = set; then
 
4717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4718
else
 
4719
  if test -z "$LD"; then
 
4720
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4721
  for ac_dir in $PATH; do
 
4722
    IFS="$lt_save_ifs"
 
4723
    test -z "$ac_dir" && ac_dir=.
 
4724
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
4725
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
4726
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
4727
      # but apparently some GNU ld's only accept -v.
 
4728
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
4729
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
4730
      *GNU* | *'with BFD'*)
 
4731
        test "$with_gnu_ld" != no && break
 
4732
        ;;
 
4733
      *)
 
4734
        test "$with_gnu_ld" != yes && break
 
4735
        ;;
 
4736
      esac
 
4737
    fi
 
4738
  done
 
4739
  IFS="$lt_save_ifs"
 
4740
else
 
4741
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
4742
fi
 
4743
fi
 
4744
 
 
4745
LD="$lt_cv_path_LD"
 
4746
if test -n "$LD"; then
 
4747
  echo "$as_me:$LINENO: result: $LD" >&5
 
4748
echo "${ECHO_T}$LD" >&6
 
4749
else
 
4750
  echo "$as_me:$LINENO: result: no" >&5
 
4751
echo "${ECHO_T}no" >&6
 
4752
fi
 
4753
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
4754
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
4755
   { (exit 1); exit 1; }; }
 
4756
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
4757
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
4758
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
4759
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4760
else
 
4761
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
4762
case `$LD -v 2>&1 </dev/null` in
 
4763
*GNU* | *'with BFD'*)
 
4764
  lt_cv_prog_gnu_ld=yes
 
4765
  ;;
 
4766
*)
 
4767
  lt_cv_prog_gnu_ld=no
 
4768
  ;;
 
4769
esac
 
4770
fi
 
4771
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
4772
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
4773
with_gnu_ld=$lt_cv_prog_gnu_ld
 
4774
 
 
4775
 
 
4776
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 
4777
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 
4778
if test "${lt_cv_ld_reload_flag+set}" = set; then
 
4779
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4780
else
 
4781
  lt_cv_ld_reload_flag='-r'
 
4782
fi
 
4783
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 
4784
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 
4785
reload_flag=$lt_cv_ld_reload_flag
 
4786
case $reload_flag in
 
4787
"" | " "*) ;;
 
4788
*) reload_flag=" $reload_flag" ;;
 
4789
esac
 
4790
reload_cmds='$LD$reload_flag -o $output$reload_objs'
 
4791
 
 
4792
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 
4793
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 
4794
if test "${lt_cv_path_NM+set}" = set; then
 
4795
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4796
else
 
4797
  if test -n "$NM"; then
 
4798
  # Let the user override the test.
 
4799
  lt_cv_path_NM="$NM"
 
4800
else
 
4801
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
4802
  for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 
4803
    IFS="$lt_save_ifs"
 
4804
    test -z "$ac_dir" && ac_dir=.
 
4805
    tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 
4806
    if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 
4807
      # Check to see if the nm accepts a BSD-compat flag.
 
4808
      # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 
4809
      #   nm: unknown option "B" ignored
 
4810
      # Tru64's nm complains that /dev/null is an invalid object file
 
4811
      case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 
4812
      */dev/null* | *'Invalid file or object type'*)
 
4813
        lt_cv_path_NM="$tmp_nm -B"
 
4814
        break
 
4815
        ;;
 
4816
      *)
 
4817
        case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 
4818
        */dev/null*)
 
4819
          lt_cv_path_NM="$tmp_nm -p"
 
4820
          break
 
4821
          ;;
 
4822
        *)
 
4823
          lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 
4824
          continue # so that we can try to find one that supports BSD flags
 
4825
          ;;
 
4826
        esac
 
4827
      esac
 
4828
    fi
 
4829
  done
 
4830
  IFS="$lt_save_ifs"
 
4831
  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 
4832
fi
 
4833
fi
 
4834
echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 
4835
echo "${ECHO_T}$lt_cv_path_NM" >&6
 
4836
NM="$lt_cv_path_NM"
 
4837
 
 
4838
echo "$as_me:$LINENO: checking whether ln -s works" >&5
 
4839
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 
4840
LN_S=$as_ln_s
 
4841
if test "$LN_S" = "ln -s"; then
 
4842
  echo "$as_me:$LINENO: result: yes" >&5
 
4843
echo "${ECHO_T}yes" >&6
 
4844
else
 
4845
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 
4846
echo "${ECHO_T}no, using $LN_S" >&6
 
4847
fi
 
4848
 
 
4849
echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 
4850
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 
4851
if test "${lt_cv_deplibs_check_method+set}" = set; then
 
4852
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4853
else
 
4854
  lt_cv_file_magic_cmd='$MAGIC_CMD'
 
4855
lt_cv_file_magic_test_file=
 
4856
lt_cv_deplibs_check_method='unknown'
 
4857
# Need to set the preceding variable on all platforms that support
 
4858
# interlibrary dependencies.
 
4859
# 'none' -- dependencies not supported.
 
4860
# `unknown' -- same as none, but documents that we really don't know.
 
4861
# 'pass_all' -- all dependencies passed with no checks.
 
4862
# 'test_compile' -- check by making test program.
 
4863
# 'file_magic [[regex]]' -- check by looking for files in library path
 
4864
# which responds to the $file_magic_cmd with a given extended regex.
 
4865
# If you have `file' or equivalent on your system and you're not sure
 
4866
# whether `pass_all' will *always* work, you probably want this one.
 
4867
 
 
4868
case $host_os in
 
4869
aix4* | aix5*)
 
4870
  lt_cv_deplibs_check_method=pass_all
 
4871
  ;;
 
4872
 
 
4873
beos*)
 
4874
  lt_cv_deplibs_check_method=pass_all
 
4875
  ;;
 
4876
 
 
4877
bsdi4*)
 
4878
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 
4879
  lt_cv_file_magic_cmd='/usr/bin/file -L'
 
4880
  lt_cv_file_magic_test_file=/shlib/libc.so
 
4881
  ;;
 
4882
 
 
4883
cygwin*)
 
4884
  # win32_libid is a shell function defined in ltmain.sh
 
4885
  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 
4886
  lt_cv_file_magic_cmd='win32_libid'
 
4887
  ;;
 
4888
 
 
4889
mingw* | pw32*)
 
4890
  # Base MSYS/MinGW do not provide the 'file' command needed by
 
4891
  # win32_libid shell function, so use a weaker test based on 'objdump'.
 
4892
  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 
4893
  lt_cv_file_magic_cmd='$OBJDUMP -f'
 
4894
  ;;
 
4895
 
 
4896
darwin* | rhapsody*)
 
4897
  lt_cv_deplibs_check_method=pass_all
 
4898
  ;;
 
4899
 
 
4900
freebsd* | kfreebsd*-gnu)
 
4901
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4902
    case $host_cpu in
 
4903
    i*86 )
 
4904
      # Not sure whether the presence of OpenBSD here was a mistake.
 
4905
      # Let's accept both of them until this is cleared up.
 
4906
      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 
4907
      lt_cv_file_magic_cmd=/usr/bin/file
 
4908
      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4909
      ;;
 
4910
    esac
 
4911
  else
 
4912
    lt_cv_deplibs_check_method=pass_all
 
4913
  fi
 
4914
  ;;
 
4915
 
 
4916
gnu*)
 
4917
  lt_cv_deplibs_check_method=pass_all
 
4918
  ;;
 
4919
 
 
4920
hpux10.20* | hpux11*)
 
4921
  lt_cv_file_magic_cmd=/usr/bin/file
 
4922
  case "$host_cpu" in
 
4923
  ia64*)
 
4924
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 
4925
    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 
4926
    ;;
 
4927
  hppa*64*)
 
4928
    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]'
 
4929
    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 
4930
    ;;
 
4931
  *)
 
4932
    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 
4933
    lt_cv_file_magic_test_file=/usr/lib/libc.sl
 
4934
    ;;
 
4935
  esac
 
4936
  ;;
 
4937
 
 
4938
irix5* | irix6* | nonstopux*)
 
4939
  case $LD in
 
4940
  *-32|*"-32 ") libmagic=32-bit;;
 
4941
  *-n32|*"-n32 ") libmagic=N32;;
 
4942
  *-64|*"-64 ") libmagic=64-bit;;
 
4943
  *) libmagic=never-match;;
 
4944
  esac
 
4945
  lt_cv_deplibs_check_method=pass_all
 
4946
  ;;
 
4947
 
 
4948
# This must be Linux ELF.
 
4949
linux*)
 
4950
  lt_cv_deplibs_check_method=pass_all
 
4951
  ;;
 
4952
 
 
4953
netbsd* | knetbsd*-gnu)
 
4954
  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 
4955
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 
4956
  else
 
4957
    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 
4958
  fi
 
4959
  ;;
 
4960
 
 
4961
newos6*)
 
4962
  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 
4963
  lt_cv_file_magic_cmd=/usr/bin/file
 
4964
  lt_cv_file_magic_test_file=/usr/lib/libnls.so
 
4965
  ;;
 
4966
 
 
4967
nto-qnx*)
 
4968
  lt_cv_deplibs_check_method=unknown
 
4969
  ;;
 
4970
 
 
4971
openbsd*)
 
4972
  lt_cv_file_magic_cmd=/usr/bin/file
 
4973
  lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 
4974
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
4975
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 
4976
  else
 
4977
    lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 
4978
  fi
 
4979
  ;;
 
4980
 
 
4981
osf3* | osf4* | osf5*)
 
4982
  lt_cv_deplibs_check_method=pass_all
 
4983
  ;;
 
4984
 
 
4985
sco3.2v5*)
 
4986
  lt_cv_deplibs_check_method=pass_all
 
4987
  ;;
 
4988
 
 
4989
solaris*)
 
4990
  lt_cv_deplibs_check_method=pass_all
 
4991
  ;;
 
4992
 
 
4993
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
4994
  case $host_vendor in
 
4995
  motorola)
 
4996
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
 
4997
    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 
4998
    ;;
 
4999
  ncr)
 
5000
    lt_cv_deplibs_check_method=pass_all
 
5001
    ;;
 
5002
  sequent)
 
5003
    lt_cv_file_magic_cmd='/bin/file'
 
5004
    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 
5005
    ;;
 
5006
  sni)
 
5007
    lt_cv_file_magic_cmd='/bin/file'
 
5008
    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 
5009
    lt_cv_file_magic_test_file=/lib/libc.so
 
5010
    ;;
 
5011
  siemens)
 
5012
    lt_cv_deplibs_check_method=pass_all
 
5013
    ;;
 
5014
  esac
 
5015
  ;;
 
5016
 
 
5017
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 
5018
  lt_cv_deplibs_check_method=pass_all
 
5019
  ;;
 
5020
esac
 
5021
 
 
5022
fi
 
5023
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 
5024
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 
5025
file_magic_cmd=$lt_cv_file_magic_cmd
 
5026
deplibs_check_method=$lt_cv_deplibs_check_method
 
5027
test -z "$deplibs_check_method" && deplibs_check_method=unknown
 
5028
 
 
5029
 
 
5030
 
 
5031
 
 
5032
# If no C compiler was specified, use CC.
 
5033
LTCC=${LTCC-"$CC"}
 
5034
 
 
5035
# Allow CC to be a program name with arguments.
 
5036
compiler=$CC
 
5037
 
 
5038
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
5039
if test "${enable_libtool_lock+set}" = set; then
 
5040
  enableval="$enable_libtool_lock"
 
5041
 
 
5042
fi;
 
5043
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
5044
 
 
5045
# Some flags need to be propagated to the compiler or linker for good
 
5046
# libtool support.
 
5047
case $host in
 
5048
ia64-*-hpux*)
 
5049
  # Find out which ABI we are using.
 
5050
  echo 'int i;' > conftest.$ac_ext
 
5051
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5052
  (eval $ac_compile) 2>&5
 
5053
  ac_status=$?
 
5054
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5055
  (exit $ac_status); }; then
 
5056
    case `/usr/bin/file conftest.$ac_objext` in
 
5057
    *ELF-32*)
 
5058
      HPUX_IA64_MODE="32"
 
5059
      ;;
 
5060
    *ELF-64*)
 
5061
      HPUX_IA64_MODE="64"
 
5062
      ;;
 
5063
    esac
 
5064
  fi
 
5065
  rm -rf conftest*
 
5066
  ;;
 
5067
*-*-irix6*)
 
5068
  # Find out which ABI we are using.
 
5069
  echo '#line 5069 "configure"' > conftest.$ac_ext
 
5070
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5071
  (eval $ac_compile) 2>&5
 
5072
  ac_status=$?
 
5073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5074
  (exit $ac_status); }; then
 
5075
   if test "$lt_cv_prog_gnu_ld" = yes; then
 
5076
    case `/usr/bin/file conftest.$ac_objext` in
 
5077
    *32-bit*)
 
5078
      LD="${LD-ld} -melf32bsmip"
 
5079
      ;;
 
5080
    *N32*)
 
5081
      LD="${LD-ld} -melf32bmipn32"
 
5082
      ;;
 
5083
    *64-bit*)
 
5084
      LD="${LD-ld} -melf64bmip"
 
5085
      ;;
 
5086
    esac
 
5087
   else
 
5088
    case `/usr/bin/file conftest.$ac_objext` in
 
5089
    *32-bit*)
 
5090
      LD="${LD-ld} -32"
 
5091
      ;;
 
5092
    *N32*)
 
5093
      LD="${LD-ld} -n32"
 
5094
      ;;
 
5095
    *64-bit*)
 
5096
      LD="${LD-ld} -64"
 
5097
      ;;
 
5098
    esac
 
5099
   fi
 
5100
  fi
 
5101
  rm -rf conftest*
 
5102
  ;;
 
5103
 
 
5104
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 
5105
  # Find out which ABI we are using.
 
5106
  echo 'int i;' > conftest.$ac_ext
 
5107
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5108
  (eval $ac_compile) 2>&5
 
5109
  ac_status=$?
 
5110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5111
  (exit $ac_status); }; then
 
5112
    case "`/usr/bin/file conftest.o`" in
 
5113
    *32-bit*)
 
5114
      case $host in
 
5115
        x86_64-*linux*)
 
5116
          LD="${LD-ld} -m elf_i386"
 
5117
          ;;
 
5118
        ppc64-*linux*|powerpc64-*linux*)
 
5119
          LD="${LD-ld} -m elf32ppclinux"
 
5120
          ;;
 
5121
        s390x-*linux*)
 
5122
          LD="${LD-ld} -m elf_s390"
 
5123
          ;;
 
5124
        sparc64-*linux*)
 
5125
          LD="${LD-ld} -m elf32_sparc"
 
5126
          ;;
 
5127
      esac
 
5128
      ;;
 
5129
    *64-bit*)
 
5130
      case $host in
 
5131
        x86_64-*linux*)
 
5132
          LD="${LD-ld} -m elf_x86_64"
 
5133
          ;;
 
5134
        ppc*-*linux*|powerpc*-*linux*)
 
5135
          LD="${LD-ld} -m elf64ppc"
 
5136
          ;;
 
5137
        s390*-*linux*)
 
5138
          LD="${LD-ld} -m elf64_s390"
 
5139
          ;;
 
5140
        sparc*-*linux*)
 
5141
          LD="${LD-ld} -m elf64_sparc"
 
5142
          ;;
 
5143
      esac
 
5144
      ;;
 
5145
    esac
 
5146
  fi
 
5147
  rm -rf conftest*
 
5148
  ;;
 
5149
 
 
5150
*-*-sco3.2v5*)
 
5151
  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 
5152
  SAVE_CFLAGS="$CFLAGS"
 
5153
  CFLAGS="$CFLAGS -belf"
 
5154
  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 
5155
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 
5156
if test "${lt_cv_cc_needs_belf+set}" = set; then
 
5157
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5158
else
 
5159
  ac_ext=c
 
5160
ac_cpp='$CPP $CPPFLAGS'
 
5161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5164
 
 
5165
     cat >conftest.$ac_ext <<_ACEOF
 
5166
/* confdefs.h.  */
 
5167
_ACEOF
 
5168
cat confdefs.h >>conftest.$ac_ext
 
5169
cat >>conftest.$ac_ext <<_ACEOF
 
5170
/* end confdefs.h.  */
 
5171
 
 
5172
int
 
5173
main ()
 
5174
{
 
5175
 
 
5176
  ;
 
5177
  return 0;
 
5178
}
 
5179
_ACEOF
 
5180
rm -f conftest.$ac_objext conftest$ac_exeext
 
5181
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
5182
  (eval $ac_link) 2>conftest.er1
 
5183
  ac_status=$?
 
5184
  grep -v '^ *+' conftest.er1 >conftest.err
 
5185
  rm -f conftest.er1
 
5186
  cat conftest.err >&5
 
5187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5188
  (exit $ac_status); } &&
 
5189
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5190
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5191
  (eval $ac_try) 2>&5
 
5192
  ac_status=$?
 
5193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5194
  (exit $ac_status); }; } &&
 
5195
         { ac_try='test -s conftest$ac_exeext'
 
5196
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5197
  (eval $ac_try) 2>&5
 
5198
  ac_status=$?
 
5199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5200
  (exit $ac_status); }; }; then
 
5201
  lt_cv_cc_needs_belf=yes
 
5202
else
 
5203
  echo "$as_me: failed program was:" >&5
 
5204
sed 's/^/| /' conftest.$ac_ext >&5
 
5205
 
 
5206
lt_cv_cc_needs_belf=no
 
5207
fi
 
5208
rm -f conftest.err conftest.$ac_objext \
 
5209
      conftest$ac_exeext conftest.$ac_ext
 
5210
     ac_ext=c
 
5211
ac_cpp='$CPP $CPPFLAGS'
 
5212
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5213
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5214
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
5215
 
 
5216
fi
 
5217
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 
5218
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 
5219
  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 
5220
    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 
5221
    CFLAGS="$SAVE_CFLAGS"
 
5222
  fi
 
5223
  ;;
 
5224
 
 
5225
esac
 
5226
 
 
5227
need_locks="$enable_libtool_lock"
 
5228
 
 
5229
 
 
5230
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
5231
 
 
5232
 
 
5233
 
 
5234
 
 
5235
 
 
5236
 
 
5237
 
 
5238
 
 
5239
 
 
5240
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
5241
                  inttypes.h stdint.h unistd.h
 
5242
do
 
5243
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5244
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5245
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5246
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5247
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5248
else
 
5249
  cat >conftest.$ac_ext <<_ACEOF
 
5250
/* confdefs.h.  */
 
5251
_ACEOF
 
5252
cat confdefs.h >>conftest.$ac_ext
 
5253
cat >>conftest.$ac_ext <<_ACEOF
 
5254
/* end confdefs.h.  */
 
5255
$ac_includes_default
 
5256
 
 
5257
#include <$ac_header>
 
5258
_ACEOF
 
5259
rm -f conftest.$ac_objext
 
5260
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5261
  (eval $ac_compile) 2>conftest.er1
 
5262
  ac_status=$?
 
5263
  grep -v '^ *+' conftest.er1 >conftest.err
 
5264
  rm -f conftest.er1
 
5265
  cat conftest.err >&5
 
5266
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5267
  (exit $ac_status); } &&
 
5268
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5269
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5270
  (eval $ac_try) 2>&5
 
5271
  ac_status=$?
 
5272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5273
  (exit $ac_status); }; } &&
 
5274
         { ac_try='test -s conftest.$ac_objext'
 
5275
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5276
  (eval $ac_try) 2>&5
 
5277
  ac_status=$?
 
5278
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5279
  (exit $ac_status); }; }; then
 
5280
  eval "$as_ac_Header=yes"
 
5281
else
 
5282
  echo "$as_me: failed program was:" >&5
 
5283
sed 's/^/| /' conftest.$ac_ext >&5
 
5284
 
 
5285
eval "$as_ac_Header=no"
 
5286
fi
 
5287
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5288
fi
 
5289
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5290
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5291
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5292
  cat >>confdefs.h <<_ACEOF
 
5293
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5294
_ACEOF
 
5295
 
 
5296
fi
 
5297
 
 
5298
done
 
5299
 
 
5300
 
 
5301
 
 
5302
for ac_header in dlfcn.h
 
5303
do
 
5304
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5305
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5306
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5307
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5308
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5309
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5310
fi
 
5311
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5312
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5313
else
 
5314
  # Is the header compilable?
 
5315
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5316
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
5317
cat >conftest.$ac_ext <<_ACEOF
 
5318
/* confdefs.h.  */
 
5319
_ACEOF
 
5320
cat confdefs.h >>conftest.$ac_ext
 
5321
cat >>conftest.$ac_ext <<_ACEOF
 
5322
/* end confdefs.h.  */
 
5323
$ac_includes_default
 
5324
#include <$ac_header>
 
5325
_ACEOF
 
5326
rm -f conftest.$ac_objext
 
5327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5328
  (eval $ac_compile) 2>conftest.er1
 
5329
  ac_status=$?
 
5330
  grep -v '^ *+' conftest.er1 >conftest.err
 
5331
  rm -f conftest.er1
 
5332
  cat conftest.err >&5
 
5333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5334
  (exit $ac_status); } &&
 
5335
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
5336
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5337
  (eval $ac_try) 2>&5
 
5338
  ac_status=$?
 
5339
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5340
  (exit $ac_status); }; } &&
 
5341
         { ac_try='test -s conftest.$ac_objext'
 
5342
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5343
  (eval $ac_try) 2>&5
 
5344
  ac_status=$?
 
5345
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5346
  (exit $ac_status); }; }; then
 
5347
  ac_header_compiler=yes
 
5348
else
 
5349
  echo "$as_me: failed program was:" >&5
 
5350
sed 's/^/| /' conftest.$ac_ext >&5
 
5351
 
 
5352
ac_header_compiler=no
 
5353
fi
 
5354
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5355
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5356
echo "${ECHO_T}$ac_header_compiler" >&6
 
5357
 
 
5358
# Is the header present?
 
5359
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5360
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
5361
cat >conftest.$ac_ext <<_ACEOF
 
5362
/* confdefs.h.  */
 
5363
_ACEOF
 
5364
cat confdefs.h >>conftest.$ac_ext
 
5365
cat >>conftest.$ac_ext <<_ACEOF
 
5366
/* end confdefs.h.  */
 
5367
#include <$ac_header>
 
5368
_ACEOF
 
5369
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5370
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5371
  ac_status=$?
 
5372
  grep -v '^ *+' conftest.er1 >conftest.err
 
5373
  rm -f conftest.er1
 
5374
  cat conftest.err >&5
 
5375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5376
  (exit $ac_status); } >/dev/null; then
 
5377
  if test -s conftest.err; then
 
5378
    ac_cpp_err=$ac_c_preproc_warn_flag
 
5379
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
5380
  else
 
5381
    ac_cpp_err=
 
5382
  fi
 
5383
else
 
5384
  ac_cpp_err=yes
 
5385
fi
 
5386
if test -z "$ac_cpp_err"; then
 
5387
  ac_header_preproc=yes
 
5388
else
 
5389
  echo "$as_me: failed program was:" >&5
 
5390
sed 's/^/| /' conftest.$ac_ext >&5
 
5391
 
 
5392
  ac_header_preproc=no
 
5393
fi
 
5394
rm -f conftest.err conftest.$ac_ext
 
5395
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5396
echo "${ECHO_T}$ac_header_preproc" >&6
 
5397
 
 
5398
# So?  What about this header?
 
5399
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5400
  yes:no: )
 
5401
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5402
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5403
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5404
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5405
    ac_header_preproc=yes
 
5406
    ;;
 
5407
  no:yes:* )
 
5408
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5409
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5410
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5411
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5412
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5413
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5414
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5415
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5416
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5417
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5418
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5419
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5420
    (
 
5421
      cat <<\_ASBOX
 
5422
## ------------------------------------------ ##
 
5423
## Report this to the AC_PACKAGE_NAME lists.  ##
 
5424
## ------------------------------------------ ##
 
5425
_ASBOX
 
5426
    ) |
 
5427
      sed "s/^/$as_me: WARNING:     /" >&2
 
5428
    ;;
 
5429
esac
 
5430
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5431
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
5432
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
5433
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5434
else
 
5435
  eval "$as_ac_Header=\$ac_header_preproc"
 
5436
fi
 
5437
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
5438
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
5439
 
 
5440
fi
 
5441
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5442
  cat >>confdefs.h <<_ACEOF
 
5443
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5444
_ACEOF
 
5445
 
 
5446
fi
 
5447
 
 
5448
done
 
5449
 
 
5450
ac_ext=cc
 
5451
ac_cpp='$CXXCPP $CPPFLAGS'
 
5452
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5453
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5454
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5455
if test -n "$ac_tool_prefix"; then
 
5456
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5457
  do
 
5458
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
5459
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
5460
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5461
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5462
if test "${ac_cv_prog_CXX+set}" = set; then
 
5463
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5464
else
 
5465
  if test -n "$CXX"; then
 
5466
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
5467
else
 
5468
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5469
for as_dir in $PATH
 
5470
do
 
5471
  IFS=$as_save_IFS
 
5472
  test -z "$as_dir" && as_dir=.
 
5473
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5474
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5475
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
5476
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5477
    break 2
 
5478
  fi
 
5479
done
 
5480
done
 
5481
 
 
5482
fi
 
5483
fi
 
5484
CXX=$ac_cv_prog_CXX
 
5485
if test -n "$CXX"; then
 
5486
  echo "$as_me:$LINENO: result: $CXX" >&5
 
5487
echo "${ECHO_T}$CXX" >&6
 
5488
else
 
5489
  echo "$as_me:$LINENO: result: no" >&5
 
5490
echo "${ECHO_T}no" >&6
 
5491
fi
 
5492
 
 
5493
    test -n "$CXX" && break
 
5494
  done
 
5495
fi
 
5496
if test -z "$CXX"; then
 
5497
  ac_ct_CXX=$CXX
 
5498
  for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 
5499
do
 
5500
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
5501
set dummy $ac_prog; ac_word=$2
 
5502
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
5503
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
5504
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
5505
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5506
else
 
5507
  if test -n "$ac_ct_CXX"; then
 
5508
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
5509
else
 
5510
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
5511
for as_dir in $PATH
 
5512
do
 
5513
  IFS=$as_save_IFS
 
5514
  test -z "$as_dir" && as_dir=.
 
5515
  for ac_exec_ext in '' $ac_executable_extensions; do
 
5516
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
5517
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
5518
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
5519
    break 2
 
5520
  fi
 
5521
done
 
5522
done
 
5523
 
 
5524
fi
 
5525
fi
 
5526
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
5527
if test -n "$ac_ct_CXX"; then
 
5528
  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
5529
echo "${ECHO_T}$ac_ct_CXX" >&6
 
5530
else
 
5531
  echo "$as_me:$LINENO: result: no" >&5
 
5532
echo "${ECHO_T}no" >&6
 
5533
fi
 
5534
 
 
5535
  test -n "$ac_ct_CXX" && break
 
5536
done
 
5537
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 
5538
 
 
5539
  CXX=$ac_ct_CXX
 
5540
fi
 
5541
 
 
5542
 
 
5543
# Provide some information about the compiler.
 
5544
echo "$as_me:$LINENO:" \
 
5545
     "checking for C++ compiler version" >&5
 
5546
ac_compiler=`set X $ac_compile; echo $2`
 
5547
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
5548
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
5549
  ac_status=$?
 
5550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5551
  (exit $ac_status); }
 
5552
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
5553
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
5554
  ac_status=$?
 
5555
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5556
  (exit $ac_status); }
 
5557
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
5558
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
5559
  ac_status=$?
 
5560
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5561
  (exit $ac_status); }
 
5562
 
 
5563
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
5564
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 
5565
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
5566
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5567
else
 
5568
  cat >conftest.$ac_ext <<_ACEOF
 
5569
/* confdefs.h.  */
 
5570
_ACEOF
 
5571
cat confdefs.h >>conftest.$ac_ext
 
5572
cat >>conftest.$ac_ext <<_ACEOF
 
5573
/* end confdefs.h.  */
 
5574
 
 
5575
int
 
5576
main ()
 
5577
{
 
5578
#ifndef __GNUC__
 
5579
       choke me
 
5580
#endif
 
5581
 
 
5582
  ;
 
5583
  return 0;
 
5584
}
 
5585
_ACEOF
 
5586
rm -f conftest.$ac_objext
 
5587
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5588
  (eval $ac_compile) 2>conftest.er1
 
5589
  ac_status=$?
 
5590
  grep -v '^ *+' conftest.er1 >conftest.err
 
5591
  rm -f conftest.er1
 
5592
  cat conftest.err >&5
 
5593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5594
  (exit $ac_status); } &&
 
5595
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5597
  (eval $ac_try) 2>&5
 
5598
  ac_status=$?
 
5599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5600
  (exit $ac_status); }; } &&
 
5601
         { ac_try='test -s conftest.$ac_objext'
 
5602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5603
  (eval $ac_try) 2>&5
 
5604
  ac_status=$?
 
5605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5606
  (exit $ac_status); }; }; then
 
5607
  ac_compiler_gnu=yes
 
5608
else
 
5609
  echo "$as_me: failed program was:" >&5
 
5610
sed 's/^/| /' conftest.$ac_ext >&5
 
5611
 
 
5612
ac_compiler_gnu=no
 
5613
fi
 
5614
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5615
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
5616
 
 
5617
fi
 
5618
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
5619
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 
5620
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
5621
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
5622
ac_save_CXXFLAGS=$CXXFLAGS
 
5623
CXXFLAGS="-g"
 
5624
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
5625
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 
5626
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
5627
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5628
else
 
5629
  cat >conftest.$ac_ext <<_ACEOF
 
5630
/* confdefs.h.  */
 
5631
_ACEOF
 
5632
cat confdefs.h >>conftest.$ac_ext
 
5633
cat >>conftest.$ac_ext <<_ACEOF
 
5634
/* end confdefs.h.  */
 
5635
 
 
5636
int
 
5637
main ()
 
5638
{
 
5639
 
 
5640
  ;
 
5641
  return 0;
 
5642
}
 
5643
_ACEOF
 
5644
rm -f conftest.$ac_objext
 
5645
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5646
  (eval $ac_compile) 2>conftest.er1
 
5647
  ac_status=$?
 
5648
  grep -v '^ *+' conftest.er1 >conftest.err
 
5649
  rm -f conftest.er1
 
5650
  cat conftest.err >&5
 
5651
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5652
  (exit $ac_status); } &&
 
5653
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5654
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5655
  (eval $ac_try) 2>&5
 
5656
  ac_status=$?
 
5657
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5658
  (exit $ac_status); }; } &&
 
5659
         { ac_try='test -s conftest.$ac_objext'
 
5660
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5661
  (eval $ac_try) 2>&5
 
5662
  ac_status=$?
 
5663
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5664
  (exit $ac_status); }; }; then
 
5665
  ac_cv_prog_cxx_g=yes
 
5666
else
 
5667
  echo "$as_me: failed program was:" >&5
 
5668
sed 's/^/| /' conftest.$ac_ext >&5
 
5669
 
 
5670
ac_cv_prog_cxx_g=no
 
5671
fi
 
5672
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5673
fi
 
5674
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
5675
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 
5676
if test "$ac_test_CXXFLAGS" = set; then
 
5677
  CXXFLAGS=$ac_save_CXXFLAGS
 
5678
elif test $ac_cv_prog_cxx_g = yes; then
 
5679
  if test "$GXX" = yes; then
 
5680
    CXXFLAGS="-g -O2"
 
5681
  else
 
5682
    CXXFLAGS="-g"
 
5683
  fi
 
5684
else
 
5685
  if test "$GXX" = yes; then
 
5686
    CXXFLAGS="-O2"
 
5687
  else
 
5688
    CXXFLAGS=
 
5689
  fi
 
5690
fi
 
5691
for ac_declaration in \
 
5692
   '' \
 
5693
   'extern "C" void std::exit (int) throw (); using std::exit;' \
 
5694
   'extern "C" void std::exit (int); using std::exit;' \
 
5695
   'extern "C" void exit (int) throw ();' \
 
5696
   'extern "C" void exit (int);' \
 
5697
   'void exit (int);'
 
5698
do
 
5699
  cat >conftest.$ac_ext <<_ACEOF
 
5700
/* confdefs.h.  */
 
5701
_ACEOF
 
5702
cat confdefs.h >>conftest.$ac_ext
 
5703
cat >>conftest.$ac_ext <<_ACEOF
 
5704
/* end confdefs.h.  */
 
5705
$ac_declaration
 
5706
#include <stdlib.h>
 
5707
int
 
5708
main ()
 
5709
{
 
5710
exit (42);
 
5711
  ;
 
5712
  return 0;
 
5713
}
 
5714
_ACEOF
 
5715
rm -f conftest.$ac_objext
 
5716
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5717
  (eval $ac_compile) 2>conftest.er1
 
5718
  ac_status=$?
 
5719
  grep -v '^ *+' conftest.er1 >conftest.err
 
5720
  rm -f conftest.er1
 
5721
  cat conftest.err >&5
 
5722
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5723
  (exit $ac_status); } &&
 
5724
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5725
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5726
  (eval $ac_try) 2>&5
 
5727
  ac_status=$?
 
5728
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5729
  (exit $ac_status); }; } &&
 
5730
         { ac_try='test -s conftest.$ac_objext'
 
5731
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5732
  (eval $ac_try) 2>&5
 
5733
  ac_status=$?
 
5734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5735
  (exit $ac_status); }; }; then
 
5736
  :
 
5737
else
 
5738
  echo "$as_me: failed program was:" >&5
 
5739
sed 's/^/| /' conftest.$ac_ext >&5
 
5740
 
 
5741
continue
 
5742
fi
 
5743
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5744
  cat >conftest.$ac_ext <<_ACEOF
 
5745
/* confdefs.h.  */
 
5746
_ACEOF
 
5747
cat confdefs.h >>conftest.$ac_ext
 
5748
cat >>conftest.$ac_ext <<_ACEOF
 
5749
/* end confdefs.h.  */
 
5750
$ac_declaration
 
5751
int
 
5752
main ()
 
5753
{
 
5754
exit (42);
 
5755
  ;
 
5756
  return 0;
 
5757
}
 
5758
_ACEOF
 
5759
rm -f conftest.$ac_objext
 
5760
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
5761
  (eval $ac_compile) 2>conftest.er1
 
5762
  ac_status=$?
 
5763
  grep -v '^ *+' conftest.er1 >conftest.err
 
5764
  rm -f conftest.er1
 
5765
  cat conftest.err >&5
 
5766
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5767
  (exit $ac_status); } &&
 
5768
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
5769
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5770
  (eval $ac_try) 2>&5
 
5771
  ac_status=$?
 
5772
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5773
  (exit $ac_status); }; } &&
 
5774
         { ac_try='test -s conftest.$ac_objext'
 
5775
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
5776
  (eval $ac_try) 2>&5
 
5777
  ac_status=$?
 
5778
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5779
  (exit $ac_status); }; }; then
 
5780
  break
 
5781
else
 
5782
  echo "$as_me: failed program was:" >&5
 
5783
sed 's/^/| /' conftest.$ac_ext >&5
 
5784
 
 
5785
fi
 
5786
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
5787
done
 
5788
rm -f conftest*
 
5789
if test -n "$ac_declaration"; then
 
5790
  echo '#ifdef __cplusplus' >>confdefs.h
 
5791
  echo $ac_declaration      >>confdefs.h
 
5792
  echo '#endif'             >>confdefs.h
 
5793
fi
 
5794
 
 
5795
ac_ext=cc
 
5796
ac_cpp='$CXXCPP $CPPFLAGS'
 
5797
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5798
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5799
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5800
 
 
5801
depcc="$CXX"  am_compiler_list=
 
5802
 
 
5803
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
5804
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 
5805
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
5806
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5807
else
 
5808
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
5809
  # We make a subdir and do the tests there.  Otherwise we can end up
 
5810
  # making bogus files that we don't know about and never remove.  For
 
5811
  # instance it was reported that on HP-UX the gcc test will end up
 
5812
  # making a dummy file named `D' -- because `-MD' means `put the output
 
5813
  # in D'.
 
5814
  mkdir conftest.dir
 
5815
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
5816
  # using a relative directory.
 
5817
  cp "$am_depcomp" conftest.dir
 
5818
  cd conftest.dir
 
5819
 
 
5820
  am_cv_CXX_dependencies_compiler_type=none
 
5821
  if test "$am_compiler_list" = ""; then
 
5822
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
5823
  fi
 
5824
  for depmode in $am_compiler_list; do
 
5825
    # We need to recreate these files for each test, as the compiler may
 
5826
    # overwrite some of them when testing with obscure command lines.
 
5827
    # This happens at least with the AIX C compiler.
 
5828
    echo '#include "conftest.h"' > conftest.c
 
5829
    echo 'int i;' > conftest.h
 
5830
    echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
 
5831
 
 
5832
    case $depmode in
 
5833
    nosideeffect)
 
5834
      # after this tag, mechanisms are not by side-effect, so they'll
 
5835
      # only be used when explicitly requested
 
5836
      if test "x$enable_dependency_tracking" = xyes; then
 
5837
        continue
 
5838
      else
 
5839
        break
 
5840
      fi
 
5841
      ;;
 
5842
    none) break ;;
 
5843
    esac
 
5844
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
5845
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
5846
    # handle `-M -o', and we need to detect this.
 
5847
    if depmode=$depmode \
 
5848
       source=conftest.c object=conftest.o \
 
5849
       depfile=conftest.Po tmpdepfile=conftest.TPo \
 
5850
       $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
 
5851
       grep conftest.h conftest.Po > /dev/null 2>&1 &&
 
5852
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
5853
      am_cv_CXX_dependencies_compiler_type=$depmode
 
5854
      break
 
5855
    fi
 
5856
  done
 
5857
 
 
5858
  cd ..
 
5859
  rm -rf conftest.dir
 
5860
else
 
5861
  am_cv_CXX_dependencies_compiler_type=none
 
5862
fi
 
5863
 
 
5864
fi
 
5865
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
5866
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 
5867
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
5868
 
 
5869
 
 
5870
ac_ext=cc
 
5871
ac_cpp='$CXXCPP $CPPFLAGS'
 
5872
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
5873
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
5874
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
5875
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 
5876
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 
5877
if test -z "$CXXCPP"; then
 
5878
  if test "${ac_cv_prog_CXXCPP+set}" = set; then
 
5879
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5880
else
 
5881
      # Double quotes because CXXCPP needs to be expanded
 
5882
    for CXXCPP in "$CXX -E" "/lib/cpp"
 
5883
    do
 
5884
      ac_preproc_ok=false
 
5885
for ac_cxx_preproc_warn_flag in '' yes
 
5886
do
 
5887
  # Use a header file that comes with gcc, so configuring glibc
 
5888
  # with a fresh cross-compiler works.
 
5889
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5890
  # <limits.h> exists even on freestanding compilers.
 
5891
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5892
  # not just through cpp. "Syntax error" is here to catch this case.
 
5893
  cat >conftest.$ac_ext <<_ACEOF
 
5894
/* confdefs.h.  */
 
5895
_ACEOF
 
5896
cat confdefs.h >>conftest.$ac_ext
 
5897
cat >>conftest.$ac_ext <<_ACEOF
 
5898
/* end confdefs.h.  */
 
5899
#ifdef __STDC__
 
5900
# include <limits.h>
 
5901
#else
 
5902
# include <assert.h>
 
5903
#endif
 
5904
                     Syntax error
 
5905
_ACEOF
 
5906
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5907
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5908
  ac_status=$?
 
5909
  grep -v '^ *+' conftest.er1 >conftest.err
 
5910
  rm -f conftest.er1
 
5911
  cat conftest.err >&5
 
5912
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5913
  (exit $ac_status); } >/dev/null; then
 
5914
  if test -s conftest.err; then
 
5915
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5916
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5917
  else
 
5918
    ac_cpp_err=
 
5919
  fi
 
5920
else
 
5921
  ac_cpp_err=yes
 
5922
fi
 
5923
if test -z "$ac_cpp_err"; then
 
5924
  :
 
5925
else
 
5926
  echo "$as_me: failed program was:" >&5
 
5927
sed 's/^/| /' conftest.$ac_ext >&5
 
5928
 
 
5929
  # Broken: fails on valid input.
 
5930
continue
 
5931
fi
 
5932
rm -f conftest.err conftest.$ac_ext
 
5933
 
 
5934
  # OK, works on sane cases.  Now check whether non-existent headers
 
5935
  # can be detected and how.
 
5936
  cat >conftest.$ac_ext <<_ACEOF
 
5937
/* confdefs.h.  */
 
5938
_ACEOF
 
5939
cat confdefs.h >>conftest.$ac_ext
 
5940
cat >>conftest.$ac_ext <<_ACEOF
 
5941
/* end confdefs.h.  */
 
5942
#include <ac_nonexistent.h>
 
5943
_ACEOF
 
5944
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
5945
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
5946
  ac_status=$?
 
5947
  grep -v '^ *+' conftest.er1 >conftest.err
 
5948
  rm -f conftest.er1
 
5949
  cat conftest.err >&5
 
5950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5951
  (exit $ac_status); } >/dev/null; then
 
5952
  if test -s conftest.err; then
 
5953
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
5954
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
5955
  else
 
5956
    ac_cpp_err=
 
5957
  fi
 
5958
else
 
5959
  ac_cpp_err=yes
 
5960
fi
 
5961
if test -z "$ac_cpp_err"; then
 
5962
  # Broken: success on invalid input.
 
5963
continue
 
5964
else
 
5965
  echo "$as_me: failed program was:" >&5
 
5966
sed 's/^/| /' conftest.$ac_ext >&5
 
5967
 
 
5968
  # Passes both tests.
 
5969
ac_preproc_ok=:
 
5970
break
 
5971
fi
 
5972
rm -f conftest.err conftest.$ac_ext
 
5973
 
 
5974
done
 
5975
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
5976
rm -f conftest.err conftest.$ac_ext
 
5977
if $ac_preproc_ok; then
 
5978
  break
 
5979
fi
 
5980
 
 
5981
    done
 
5982
    ac_cv_prog_CXXCPP=$CXXCPP
 
5983
 
 
5984
fi
 
5985
  CXXCPP=$ac_cv_prog_CXXCPP
 
5986
else
 
5987
  ac_cv_prog_CXXCPP=$CXXCPP
 
5988
fi
 
5989
echo "$as_me:$LINENO: result: $CXXCPP" >&5
 
5990
echo "${ECHO_T}$CXXCPP" >&6
 
5991
ac_preproc_ok=false
 
5992
for ac_cxx_preproc_warn_flag in '' yes
 
5993
do
 
5994
  # Use a header file that comes with gcc, so configuring glibc
 
5995
  # with a fresh cross-compiler works.
 
5996
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5997
  # <limits.h> exists even on freestanding compilers.
 
5998
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
5999
  # not just through cpp. "Syntax error" is here to catch this case.
 
6000
  cat >conftest.$ac_ext <<_ACEOF
 
6001
/* confdefs.h.  */
 
6002
_ACEOF
 
6003
cat confdefs.h >>conftest.$ac_ext
 
6004
cat >>conftest.$ac_ext <<_ACEOF
 
6005
/* end confdefs.h.  */
 
6006
#ifdef __STDC__
 
6007
# include <limits.h>
 
6008
#else
 
6009
# include <assert.h>
 
6010
#endif
 
6011
                     Syntax error
 
6012
_ACEOF
 
6013
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6014
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6015
  ac_status=$?
 
6016
  grep -v '^ *+' conftest.er1 >conftest.err
 
6017
  rm -f conftest.er1
 
6018
  cat conftest.err >&5
 
6019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6020
  (exit $ac_status); } >/dev/null; then
 
6021
  if test -s conftest.err; then
 
6022
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6023
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6024
  else
 
6025
    ac_cpp_err=
 
6026
  fi
 
6027
else
 
6028
  ac_cpp_err=yes
 
6029
fi
 
6030
if test -z "$ac_cpp_err"; then
 
6031
  :
 
6032
else
 
6033
  echo "$as_me: failed program was:" >&5
 
6034
sed 's/^/| /' conftest.$ac_ext >&5
 
6035
 
 
6036
  # Broken: fails on valid input.
 
6037
continue
 
6038
fi
 
6039
rm -f conftest.err conftest.$ac_ext
 
6040
 
 
6041
  # OK, works on sane cases.  Now check whether non-existent headers
 
6042
  # can be detected and how.
 
6043
  cat >conftest.$ac_ext <<_ACEOF
 
6044
/* confdefs.h.  */
 
6045
_ACEOF
 
6046
cat confdefs.h >>conftest.$ac_ext
 
6047
cat >>conftest.$ac_ext <<_ACEOF
 
6048
/* end confdefs.h.  */
 
6049
#include <ac_nonexistent.h>
 
6050
_ACEOF
 
6051
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
6052
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
6053
  ac_status=$?
 
6054
  grep -v '^ *+' conftest.er1 >conftest.err
 
6055
  rm -f conftest.er1
 
6056
  cat conftest.err >&5
 
6057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6058
  (exit $ac_status); } >/dev/null; then
 
6059
  if test -s conftest.err; then
 
6060
    ac_cpp_err=$ac_cxx_preproc_warn_flag
 
6061
    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 
6062
  else
 
6063
    ac_cpp_err=
 
6064
  fi
 
6065
else
 
6066
  ac_cpp_err=yes
 
6067
fi
 
6068
if test -z "$ac_cpp_err"; then
 
6069
  # Broken: success on invalid input.
 
6070
continue
 
6071
else
 
6072
  echo "$as_me: failed program was:" >&5
 
6073
sed 's/^/| /' conftest.$ac_ext >&5
 
6074
 
 
6075
  # Passes both tests.
 
6076
ac_preproc_ok=:
 
6077
break
 
6078
fi
 
6079
rm -f conftest.err conftest.$ac_ext
 
6080
 
 
6081
done
 
6082
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
6083
rm -f conftest.err conftest.$ac_ext
 
6084
if $ac_preproc_ok; then
 
6085
  :
 
6086
else
 
6087
  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6088
See \`config.log' for more details." >&5
 
6089
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 
6090
See \`config.log' for more details." >&2;}
 
6091
   { (exit 1); exit 1; }; }
 
6092
fi
 
6093
 
 
6094
ac_ext=cc
 
6095
ac_cpp='$CXXCPP $CPPFLAGS'
 
6096
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6097
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6098
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
6099
 
 
6100
 
 
6101
ac_ext=f
 
6102
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
6103
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6104
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
6105
if test -n "$ac_tool_prefix"; then
 
6106
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6107
  do
 
6108
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
6109
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
6110
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6111
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6112
if test "${ac_cv_prog_F77+set}" = set; then
 
6113
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6114
else
 
6115
  if test -n "$F77"; then
 
6116
  ac_cv_prog_F77="$F77" # Let the user override the test.
 
6117
else
 
6118
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6119
for as_dir in $PATH
 
6120
do
 
6121
  IFS=$as_save_IFS
 
6122
  test -z "$as_dir" && as_dir=.
 
6123
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6124
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6125
    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 
6126
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6127
    break 2
 
6128
  fi
 
6129
done
 
6130
done
 
6131
 
 
6132
fi
 
6133
fi
 
6134
F77=$ac_cv_prog_F77
 
6135
if test -n "$F77"; then
 
6136
  echo "$as_me:$LINENO: result: $F77" >&5
 
6137
echo "${ECHO_T}$F77" >&6
 
6138
else
 
6139
  echo "$as_me:$LINENO: result: no" >&5
 
6140
echo "${ECHO_T}no" >&6
 
6141
fi
 
6142
 
 
6143
    test -n "$F77" && break
 
6144
  done
 
6145
fi
 
6146
if test -z "$F77"; then
 
6147
  ac_ct_F77=$F77
 
6148
  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 
6149
do
 
6150
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
6151
set dummy $ac_prog; ac_word=$2
 
6152
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6154
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 
6155
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6156
else
 
6157
  if test -n "$ac_ct_F77"; then
 
6158
  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 
6159
else
 
6160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6161
for as_dir in $PATH
 
6162
do
 
6163
  IFS=$as_save_IFS
 
6164
  test -z "$as_dir" && as_dir=.
 
6165
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6166
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6167
    ac_cv_prog_ac_ct_F77="$ac_prog"
 
6168
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6169
    break 2
 
6170
  fi
 
6171
done
 
6172
done
 
6173
 
 
6174
fi
 
6175
fi
 
6176
ac_ct_F77=$ac_cv_prog_ac_ct_F77
 
6177
if test -n "$ac_ct_F77"; then
 
6178
  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 
6179
echo "${ECHO_T}$ac_ct_F77" >&6
 
6180
else
 
6181
  echo "$as_me:$LINENO: result: no" >&5
 
6182
echo "${ECHO_T}no" >&6
 
6183
fi
 
6184
 
 
6185
  test -n "$ac_ct_F77" && break
 
6186
done
 
6187
 
 
6188
  F77=$ac_ct_F77
 
6189
fi
 
6190
 
 
6191
 
 
6192
# Provide some information about the compiler.
 
6193
echo "$as_me:6193:" \
 
6194
     "checking for Fortran 77 compiler version" >&5
 
6195
ac_compiler=`set X $ac_compile; echo $2`
 
6196
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 
6197
  (eval $ac_compiler --version </dev/null >&5) 2>&5
 
6198
  ac_status=$?
 
6199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6200
  (exit $ac_status); }
 
6201
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 
6202
  (eval $ac_compiler -v </dev/null >&5) 2>&5
 
6203
  ac_status=$?
 
6204
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6205
  (exit $ac_status); }
 
6206
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 
6207
  (eval $ac_compiler -V </dev/null >&5) 2>&5
 
6208
  ac_status=$?
 
6209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6210
  (exit $ac_status); }
 
6211
rm -f a.out
 
6212
 
 
6213
# If we don't use `.F' as extension, the preprocessor is not run on the
 
6214
# input file.  (Note that this only needs to work for GNU compilers.)
 
6215
ac_save_ext=$ac_ext
 
6216
ac_ext=F
 
6217
echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 
6218
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 
6219
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 
6220
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6221
else
 
6222
  cat >conftest.$ac_ext <<_ACEOF
 
6223
      program main
 
6224
#ifndef __GNUC__
 
6225
       choke me
 
6226
#endif
 
6227
 
 
6228
      end
 
6229
_ACEOF
 
6230
rm -f conftest.$ac_objext
 
6231
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6232
  (eval $ac_compile) 2>conftest.er1
 
6233
  ac_status=$?
 
6234
  grep -v '^ *+' conftest.er1 >conftest.err
 
6235
  rm -f conftest.er1
 
6236
  cat conftest.err >&5
 
6237
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6238
  (exit $ac_status); } &&
 
6239
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6240
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6241
  (eval $ac_try) 2>&5
 
6242
  ac_status=$?
 
6243
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6244
  (exit $ac_status); }; } &&
 
6245
         { ac_try='test -s conftest.$ac_objext'
 
6246
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6247
  (eval $ac_try) 2>&5
 
6248
  ac_status=$?
 
6249
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6250
  (exit $ac_status); }; }; then
 
6251
  ac_compiler_gnu=yes
 
6252
else
 
6253
  echo "$as_me: failed program was:" >&5
 
6254
sed 's/^/| /' conftest.$ac_ext >&5
 
6255
 
 
6256
ac_compiler_gnu=no
 
6257
fi
 
6258
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6259
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 
6260
 
 
6261
fi
 
6262
echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 
6263
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 
6264
ac_ext=$ac_save_ext
 
6265
ac_test_FFLAGS=${FFLAGS+set}
 
6266
ac_save_FFLAGS=$FFLAGS
 
6267
FFLAGS=
 
6268
echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 
6269
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 
6270
if test "${ac_cv_prog_f77_g+set}" = set; then
 
6271
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6272
else
 
6273
  FFLAGS=-g
 
6274
cat >conftest.$ac_ext <<_ACEOF
 
6275
      program main
 
6276
 
 
6277
      end
 
6278
_ACEOF
 
6279
rm -f conftest.$ac_objext
 
6280
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6281
  (eval $ac_compile) 2>conftest.er1
 
6282
  ac_status=$?
 
6283
  grep -v '^ *+' conftest.er1 >conftest.err
 
6284
  rm -f conftest.er1
 
6285
  cat conftest.err >&5
 
6286
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6287
  (exit $ac_status); } &&
 
6288
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
6289
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6290
  (eval $ac_try) 2>&5
 
6291
  ac_status=$?
 
6292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6293
  (exit $ac_status); }; } &&
 
6294
         { ac_try='test -s conftest.$ac_objext'
 
6295
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
6296
  (eval $ac_try) 2>&5
 
6297
  ac_status=$?
 
6298
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6299
  (exit $ac_status); }; }; then
 
6300
  ac_cv_prog_f77_g=yes
 
6301
else
 
6302
  echo "$as_me: failed program was:" >&5
 
6303
sed 's/^/| /' conftest.$ac_ext >&5
 
6304
 
 
6305
ac_cv_prog_f77_g=no
 
6306
fi
 
6307
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
6308
 
 
6309
fi
 
6310
echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 
6311
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 
6312
if test "$ac_test_FFLAGS" = set; then
 
6313
  FFLAGS=$ac_save_FFLAGS
 
6314
elif test $ac_cv_prog_f77_g = yes; then
 
6315
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6316
    FFLAGS="-g -O2"
 
6317
  else
 
6318
    FFLAGS="-g"
 
6319
  fi
 
6320
else
 
6321
  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 
6322
    FFLAGS="-O2"
 
6323
  else
 
6324
    FFLAGS=
 
6325
  fi
 
6326
fi
 
6327
 
 
6328
G77=`test $ac_compiler_gnu = yes && echo yes`
 
6329
ac_ext=c
 
6330
ac_cpp='$CPP $CPPFLAGS'
 
6331
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
6332
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
6333
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
6334
 
 
6335
 
 
6336
 
 
6337
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 
6338
 
 
6339
# find the maximum length of command line arguments
 
6340
echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 
6341
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 
6342
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 
6343
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6344
else
 
6345
    i=0
 
6346
  testring="ABCD"
 
6347
 
 
6348
  case $build_os in
 
6349
  msdosdjgpp*)
 
6350
    # On DJGPP, this test can blow up pretty badly due to problems in libc
 
6351
    # (any single argument exceeding 2000 bytes causes a buffer overrun
 
6352
    # during glob expansion).  Even if it were fixed, the result of this
 
6353
    # check would be larger than it should be.
 
6354
    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 
6355
    ;;
 
6356
 
 
6357
  gnu*)
 
6358
    # Under GNU Hurd, this test is not required because there is
 
6359
    # no limit to the length of command line arguments.
 
6360
    # Libtool will interpret -1 as no limit whatsoever
 
6361
    lt_cv_sys_max_cmd_len=-1;
 
6362
    ;;
 
6363
 
 
6364
  cygwin* | mingw*)
 
6365
    # On Win9x/ME, this test blows up -- it succeeds, but takes
 
6366
    # about 5 minutes as the teststring grows exponentially.
 
6367
    # Worse, since 9x/ME are not pre-emptively multitasking,
 
6368
    # you end up with a "frozen" computer, even though with patience
 
6369
    # the test eventually succeeds (with a max line length of 256k).
 
6370
    # Instead, let's just punt: use the minimum linelength reported by
 
6371
    # all of the supported platforms: 8192 (on NT/2K/XP).
 
6372
    lt_cv_sys_max_cmd_len=8192;
 
6373
    ;;
 
6374
 
 
6375
  amigaos*)
 
6376
    # On AmigaOS with pdksh, this test takes hours, literally.
 
6377
    # So we just punt and use a minimum line length of 8192.
 
6378
    lt_cv_sys_max_cmd_len=8192;
 
6379
    ;;
 
6380
 
 
6381
 *)
 
6382
    # If test is not a shell built-in, we'll probably end up computing a
 
6383
    # maximum length that is only half of the actual maximum length, but
 
6384
    # we can't tell.
 
6385
    while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
 
6386
               = "XX$testring") >/dev/null 2>&1 &&
 
6387
            new_result=`expr "X$testring" : ".*" 2>&1` &&
 
6388
            lt_cv_sys_max_cmd_len=$new_result &&
 
6389
            test $i != 17 # 1/2 MB should be enough
 
6390
    do
 
6391
      i=`expr $i + 1`
 
6392
      testring=$testring$testring
 
6393
    done
 
6394
    testring=
 
6395
    # Add a significant safety factor because C++ compilers can tack on massive
 
6396
    # amounts of additional arguments before passing them to the linker.
 
6397
    # It appears as though 1/2 is a usable value.
 
6398
    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 
6399
    ;;
 
6400
  esac
 
6401
 
 
6402
fi
 
6403
 
 
6404
if test -n $lt_cv_sys_max_cmd_len ; then
 
6405
  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 
6406
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 
6407
else
 
6408
  echo "$as_me:$LINENO: result: none" >&5
 
6409
echo "${ECHO_T}none" >&6
 
6410
fi
 
6411
 
 
6412
 
 
6413
 
 
6414
 
 
6415
# Check for command to grab the raw symbol name followed by C symbol from nm.
 
6416
echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 
6417
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 
6418
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 
6419
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6420
else
 
6421
 
 
6422
# These are sane defaults that work on at least a few old systems.
 
6423
# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 
6424
 
 
6425
# Character class describing NM global symbol codes.
 
6426
symcode='[BCDEGRST]'
 
6427
 
 
6428
# Regexp to match symbols that can be accessed directly from C.
 
6429
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 
6430
 
 
6431
# Transform the above into a raw symbol and a C symbol.
 
6432
symxfrm='\1 \2\3 \3'
 
6433
 
 
6434
# Transform an extracted symbol line into a proper C declaration
 
6435
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 
6436
 
 
6437
# Transform an extracted symbol line into symbol name and symbol address
 
6438
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'"
 
6439
 
 
6440
# Define system-specific variables.
 
6441
case $host_os in
 
6442
aix*)
 
6443
  symcode='[BCDT]'
 
6444
  ;;
 
6445
cygwin* | mingw* | pw32*)
 
6446
  symcode='[ABCDGISTW]'
 
6447
  ;;
 
6448
hpux*) # Its linker distinguishes data from code symbols
 
6449
  if test "$host_cpu" = ia64; then
 
6450
    symcode='[ABCDEGRST]'
 
6451
  fi
 
6452
  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 
6453
  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'"
 
6454
  ;;
 
6455
irix* | nonstopux*)
 
6456
  symcode='[BCDEGRST]'
 
6457
  ;;
 
6458
osf*)
 
6459
  symcode='[BCDEGQRST]'
 
6460
  ;;
 
6461
solaris* | sysv5*)
 
6462
  symcode='[BDRT]'
 
6463
  ;;
 
6464
sysv4)
 
6465
  symcode='[DFNSTU]'
 
6466
  ;;
 
6467
esac
 
6468
 
 
6469
# Handle CRLF in mingw tool chain
 
6470
opt_cr=
 
6471
case $build_os in
 
6472
mingw*)
 
6473
  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 
6474
  ;;
 
6475
esac
 
6476
 
 
6477
# If we're using GNU nm, then use its standard symbol codes.
 
6478
case `$NM -V 2>&1` in
 
6479
*GNU* | *'with BFD'*)
 
6480
  symcode='[ABCDGIRSTW]' ;;
 
6481
esac
 
6482
 
 
6483
# Try without a prefix undercore, then with it.
 
6484
for ac_symprfx in "" "_"; do
 
6485
 
 
6486
  # Write the raw and C identifiers.
 
6487
  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 
6488
 
 
6489
  # Check to see that the pipe works correctly.
 
6490
  pipe_works=no
 
6491
 
 
6492
  rm -f conftest*
 
6493
  cat > conftest.$ac_ext <<EOF
 
6494
#ifdef __cplusplus
 
6495
extern "C" {
 
6496
#endif
 
6497
char nm_test_var;
 
6498
void nm_test_func(){}
 
6499
#ifdef __cplusplus
 
6500
}
 
6501
#endif
 
6502
int main(){nm_test_var='a';nm_test_func();return(0);}
 
6503
EOF
 
6504
 
 
6505
  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
6506
  (eval $ac_compile) 2>&5
 
6507
  ac_status=$?
 
6508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6509
  (exit $ac_status); }; then
 
6510
    # Now try to grab the symbols.
 
6511
    nlist=conftest.nm
 
6512
    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 
6513
  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 
6514
  ac_status=$?
 
6515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6516
  (exit $ac_status); } && test -s "$nlist"; then
 
6517
      # Try sorting and uniquifying the output.
 
6518
      if sort "$nlist" | uniq > "$nlist"T; then
 
6519
        mv -f "$nlist"T "$nlist"
 
6520
      else
 
6521
        rm -f "$nlist"T
 
6522
      fi
 
6523
 
 
6524
      # Make sure that we snagged all the symbols we need.
 
6525
      if grep ' nm_test_var$' "$nlist" >/dev/null; then
 
6526
        if grep ' nm_test_func$' "$nlist" >/dev/null; then
 
6527
          cat <<EOF > conftest.$ac_ext
 
6528
#ifdef __cplusplus
 
6529
extern "C" {
 
6530
#endif
 
6531
 
 
6532
EOF
 
6533
          # Now generate the symbol file.
 
6534
          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 
6535
 
 
6536
          cat <<EOF >> conftest.$ac_ext
 
6537
#if defined (__STDC__) && __STDC__
 
6538
# define lt_ptr_t void *
 
6539
#else
 
6540
# define lt_ptr_t char *
 
6541
# define const
 
6542
#endif
 
6543
 
 
6544
/* The mapping between symbol names and symbols. */
 
6545
const struct {
 
6546
  const char *name;
 
6547
  lt_ptr_t address;
 
6548
}
 
6549
lt_preloaded_symbols[] =
 
6550
{
 
6551
EOF
 
6552
          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 
6553
          cat <<\EOF >> conftest.$ac_ext
 
6554
  {0, (lt_ptr_t) 0}
 
6555
};
 
6556
 
 
6557
#ifdef __cplusplus
 
6558
}
 
6559
#endif
 
6560
EOF
 
6561
          # Now try linking the two files.
 
6562
          mv conftest.$ac_objext conftstm.$ac_objext
 
6563
          lt_save_LIBS="$LIBS"
 
6564
          lt_save_CFLAGS="$CFLAGS"
 
6565
          LIBS="conftstm.$ac_objext"
 
6566
          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 
6567
          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
6568
  (eval $ac_link) 2>&5
 
6569
  ac_status=$?
 
6570
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6571
  (exit $ac_status); } && test -s conftest${ac_exeext}; then
 
6572
            pipe_works=yes
 
6573
          fi
 
6574
          LIBS="$lt_save_LIBS"
 
6575
          CFLAGS="$lt_save_CFLAGS"
 
6576
        else
 
6577
          echo "cannot find nm_test_func in $nlist" >&5
 
6578
        fi
 
6579
      else
 
6580
        echo "cannot find nm_test_var in $nlist" >&5
 
6581
      fi
 
6582
    else
 
6583
      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 
6584
    fi
 
6585
  else
 
6586
    echo "$progname: failed program was:" >&5
 
6587
    cat conftest.$ac_ext >&5
 
6588
  fi
 
6589
  rm -f conftest* conftst*
 
6590
 
 
6591
  # Do not use the global_symbol_pipe unless it works.
 
6592
  if test "$pipe_works" = yes; then
 
6593
    break
 
6594
  else
 
6595
    lt_cv_sys_global_symbol_pipe=
 
6596
  fi
 
6597
done
 
6598
 
 
6599
fi
 
6600
 
 
6601
if test -z "$lt_cv_sys_global_symbol_pipe"; then
 
6602
  lt_cv_sys_global_symbol_to_cdecl=
 
6603
fi
 
6604
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 
6605
  echo "$as_me:$LINENO: result: failed" >&5
 
6606
echo "${ECHO_T}failed" >&6
 
6607
else
 
6608
  echo "$as_me:$LINENO: result: ok" >&5
 
6609
echo "${ECHO_T}ok" >&6
 
6610
fi
 
6611
 
 
6612
echo "$as_me:$LINENO: checking for objdir" >&5
 
6613
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 
6614
if test "${lt_cv_objdir+set}" = set; then
 
6615
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6616
else
 
6617
  rm -f .libs 2>/dev/null
 
6618
mkdir .libs 2>/dev/null
 
6619
if test -d .libs; then
 
6620
  lt_cv_objdir=.libs
 
6621
else
 
6622
  # MS-DOS does not allow filenames that begin with a dot.
 
6623
  lt_cv_objdir=_libs
 
6624
fi
 
6625
rmdir .libs 2>/dev/null
 
6626
fi
 
6627
echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 
6628
echo "${ECHO_T}$lt_cv_objdir" >&6
 
6629
objdir=$lt_cv_objdir
 
6630
 
 
6631
 
 
6632
 
 
6633
 
 
6634
 
 
6635
case $host_os in
 
6636
aix3*)
 
6637
  # AIX sometimes has problems with the GCC collect2 program.  For some
 
6638
  # reason, if we set the COLLECT_NAMES environment variable, the problems
 
6639
  # vanish in a puff of smoke.
 
6640
  if test "X${COLLECT_NAMES+set}" != Xset; then
 
6641
    COLLECT_NAMES=
 
6642
    export COLLECT_NAMES
 
6643
  fi
 
6644
  ;;
 
6645
esac
 
6646
 
 
6647
# Sed substitution that helps us do robust quoting.  It backslashifies
 
6648
# metacharacters that are still active within double-quoted strings.
 
6649
Xsed='sed -e s/^X//'
 
6650
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 
6651
 
 
6652
# Same as above, but do not quote variable references.
 
6653
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 
6654
 
 
6655
# Sed substitution to delay expansion of an escaped shell variable in a
 
6656
# double_quote_subst'ed string.
 
6657
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
6658
 
 
6659
# Sed substitution to avoid accidental globbing in evaled expressions
 
6660
no_glob_subst='s/\*/\\\*/g'
 
6661
 
 
6662
# Constants:
 
6663
rm="rm -f"
 
6664
 
 
6665
# Global variables:
 
6666
default_ofile=libtool
 
6667
can_build_shared=yes
 
6668
 
 
6669
# All known linkers require a `.a' archive for static linking (except M$VC,
 
6670
# which needs '.lib').
 
6671
libext=a
 
6672
ltmain="$ac_aux_dir/ltmain.sh"
 
6673
ofile="$default_ofile"
 
6674
with_gnu_ld="$lt_cv_prog_gnu_ld"
 
6675
 
 
6676
if test -n "$ac_tool_prefix"; then
 
6677
  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 
6678
set dummy ${ac_tool_prefix}ar; ac_word=$2
 
6679
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6681
if test "${ac_cv_prog_AR+set}" = set; then
 
6682
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6683
else
 
6684
  if test -n "$AR"; then
 
6685
  ac_cv_prog_AR="$AR" # Let the user override the test.
 
6686
else
 
6687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6688
for as_dir in $PATH
 
6689
do
 
6690
  IFS=$as_save_IFS
 
6691
  test -z "$as_dir" && as_dir=.
 
6692
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6693
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6694
    ac_cv_prog_AR="${ac_tool_prefix}ar"
 
6695
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6696
    break 2
 
6697
  fi
 
6698
done
 
6699
done
 
6700
 
 
6701
fi
 
6702
fi
 
6703
AR=$ac_cv_prog_AR
 
6704
if test -n "$AR"; then
 
6705
  echo "$as_me:$LINENO: result: $AR" >&5
 
6706
echo "${ECHO_T}$AR" >&6
 
6707
else
 
6708
  echo "$as_me:$LINENO: result: no" >&5
 
6709
echo "${ECHO_T}no" >&6
 
6710
fi
 
6711
 
 
6712
fi
 
6713
if test -z "$ac_cv_prog_AR"; then
 
6714
  ac_ct_AR=$AR
 
6715
  # Extract the first word of "ar", so it can be a program name with args.
 
6716
set dummy ar; ac_word=$2
 
6717
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6718
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6719
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 
6720
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6721
else
 
6722
  if test -n "$ac_ct_AR"; then
 
6723
  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 
6724
else
 
6725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6726
for as_dir in $PATH
 
6727
do
 
6728
  IFS=$as_save_IFS
 
6729
  test -z "$as_dir" && as_dir=.
 
6730
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6731
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6732
    ac_cv_prog_ac_ct_AR="ar"
 
6733
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6734
    break 2
 
6735
  fi
 
6736
done
 
6737
done
 
6738
 
 
6739
  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 
6740
fi
 
6741
fi
 
6742
ac_ct_AR=$ac_cv_prog_ac_ct_AR
 
6743
if test -n "$ac_ct_AR"; then
 
6744
  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 
6745
echo "${ECHO_T}$ac_ct_AR" >&6
 
6746
else
 
6747
  echo "$as_me:$LINENO: result: no" >&5
 
6748
echo "${ECHO_T}no" >&6
 
6749
fi
 
6750
 
 
6751
  AR=$ac_ct_AR
 
6752
else
 
6753
  AR="$ac_cv_prog_AR"
 
6754
fi
 
6755
 
 
6756
if test -n "$ac_tool_prefix"; then
 
6757
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
6758
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
6759
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6760
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6761
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
6762
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6763
else
 
6764
  if test -n "$RANLIB"; then
 
6765
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 
6766
else
 
6767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6768
for as_dir in $PATH
 
6769
do
 
6770
  IFS=$as_save_IFS
 
6771
  test -z "$as_dir" && as_dir=.
 
6772
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6773
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6774
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
6775
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6776
    break 2
 
6777
  fi
 
6778
done
 
6779
done
 
6780
 
 
6781
fi
 
6782
fi
 
6783
RANLIB=$ac_cv_prog_RANLIB
 
6784
if test -n "$RANLIB"; then
 
6785
  echo "$as_me:$LINENO: result: $RANLIB" >&5
 
6786
echo "${ECHO_T}$RANLIB" >&6
 
6787
else
 
6788
  echo "$as_me:$LINENO: result: no" >&5
 
6789
echo "${ECHO_T}no" >&6
 
6790
fi
 
6791
 
 
6792
fi
 
6793
if test -z "$ac_cv_prog_RANLIB"; then
 
6794
  ac_ct_RANLIB=$RANLIB
 
6795
  # Extract the first word of "ranlib", so it can be a program name with args.
 
6796
set dummy ranlib; ac_word=$2
 
6797
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6799
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
6800
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6801
else
 
6802
  if test -n "$ac_ct_RANLIB"; then
 
6803
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
6804
else
 
6805
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6806
for as_dir in $PATH
 
6807
do
 
6808
  IFS=$as_save_IFS
 
6809
  test -z "$as_dir" && as_dir=.
 
6810
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6811
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6812
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
6813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6814
    break 2
 
6815
  fi
 
6816
done
 
6817
done
 
6818
 
 
6819
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 
6820
fi
 
6821
fi
 
6822
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
6823
if test -n "$ac_ct_RANLIB"; then
 
6824
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
6825
echo "${ECHO_T}$ac_ct_RANLIB" >&6
 
6826
else
 
6827
  echo "$as_me:$LINENO: result: no" >&5
 
6828
echo "${ECHO_T}no" >&6
 
6829
fi
 
6830
 
 
6831
  RANLIB=$ac_ct_RANLIB
 
6832
else
 
6833
  RANLIB="$ac_cv_prog_RANLIB"
 
6834
fi
 
6835
 
 
6836
if test -n "$ac_tool_prefix"; then
 
6837
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
6838
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
6839
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6840
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6841
if test "${ac_cv_prog_STRIP+set}" = set; then
 
6842
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6843
else
 
6844
  if test -n "$STRIP"; then
 
6845
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
6846
else
 
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6848
for as_dir in $PATH
 
6849
do
 
6850
  IFS=$as_save_IFS
 
6851
  test -z "$as_dir" && as_dir=.
 
6852
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6853
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6854
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
6855
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6856
    break 2
 
6857
  fi
 
6858
done
 
6859
done
 
6860
 
 
6861
fi
 
6862
fi
 
6863
STRIP=$ac_cv_prog_STRIP
 
6864
if test -n "$STRIP"; then
 
6865
  echo "$as_me:$LINENO: result: $STRIP" >&5
 
6866
echo "${ECHO_T}$STRIP" >&6
 
6867
else
 
6868
  echo "$as_me:$LINENO: result: no" >&5
 
6869
echo "${ECHO_T}no" >&6
 
6870
fi
 
6871
 
 
6872
fi
 
6873
if test -z "$ac_cv_prog_STRIP"; then
 
6874
  ac_ct_STRIP=$STRIP
 
6875
  # Extract the first word of "strip", so it can be a program name with args.
 
6876
set dummy strip; ac_word=$2
 
6877
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
6878
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
6879
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
6880
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6881
else
 
6882
  if test -n "$ac_ct_STRIP"; then
 
6883
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
6884
else
 
6885
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
6886
for as_dir in $PATH
 
6887
do
 
6888
  IFS=$as_save_IFS
 
6889
  test -z "$as_dir" && as_dir=.
 
6890
  for ac_exec_ext in '' $ac_executable_extensions; do
 
6891
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
6892
    ac_cv_prog_ac_ct_STRIP="strip"
 
6893
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
6894
    break 2
 
6895
  fi
 
6896
done
 
6897
done
 
6898
 
 
6899
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
6900
fi
 
6901
fi
 
6902
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
6903
if test -n "$ac_ct_STRIP"; then
 
6904
  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
6905
echo "${ECHO_T}$ac_ct_STRIP" >&6
 
6906
else
 
6907
  echo "$as_me:$LINENO: result: no" >&5
 
6908
echo "${ECHO_T}no" >&6
 
6909
fi
 
6910
 
 
6911
  STRIP=$ac_ct_STRIP
 
6912
else
 
6913
  STRIP="$ac_cv_prog_STRIP"
 
6914
fi
 
6915
 
 
6916
 
 
6917
old_CC="$CC"
 
6918
old_CFLAGS="$CFLAGS"
 
6919
 
 
6920
# Set sane defaults for various variables
 
6921
test -z "$AR" && AR=ar
 
6922
test -z "$AR_FLAGS" && AR_FLAGS=cru
 
6923
test -z "$AS" && AS=as
 
6924
test -z "$CC" && CC=cc
 
6925
test -z "$LTCC" && LTCC=$CC
 
6926
test -z "$DLLTOOL" && DLLTOOL=dlltool
 
6927
test -z "$LD" && LD=ld
 
6928
test -z "$LN_S" && LN_S="ln -s"
 
6929
test -z "$MAGIC_CMD" && MAGIC_CMD=file
 
6930
test -z "$NM" && NM=nm
 
6931
test -z "$SED" && SED=sed
 
6932
test -z "$OBJDUMP" && OBJDUMP=objdump
 
6933
test -z "$RANLIB" && RANLIB=:
 
6934
test -z "$STRIP" && STRIP=:
 
6935
test -z "$ac_objext" && ac_objext=o
 
6936
 
 
6937
# Determine commands to create old-style static archives.
 
6938
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 
6939
old_postinstall_cmds='chmod 644 $oldlib'
 
6940
old_postuninstall_cmds=
 
6941
 
 
6942
if test -n "$RANLIB"; then
 
6943
  case $host_os in
 
6944
  openbsd*)
 
6945
    old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 
6946
    ;;
 
6947
  *)
 
6948
    old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 
6949
    ;;
 
6950
  esac
 
6951
  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 
6952
fi
 
6953
 
 
6954
# Only perform the check for file, if the check method requires it
 
6955
case $deplibs_check_method in
 
6956
file_magic*)
 
6957
  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 
6958
    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 
6959
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 
6960
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
6961
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6962
else
 
6963
  case $MAGIC_CMD in
 
6964
[\\/*] |  ?:[\\/]*)
 
6965
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
6966
  ;;
 
6967
*)
 
6968
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
6969
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
6970
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
6971
  for ac_dir in $ac_dummy; do
 
6972
    IFS="$lt_save_ifs"
 
6973
    test -z "$ac_dir" && ac_dir=.
 
6974
    if test -f $ac_dir/${ac_tool_prefix}file; then
 
6975
      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 
6976
      if test -n "$file_magic_test_file"; then
 
6977
        case $deplibs_check_method in
 
6978
        "file_magic "*)
 
6979
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
6980
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
6981
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
6982
            $EGREP "$file_magic_regex" > /dev/null; then
 
6983
            :
 
6984
          else
 
6985
            cat <<EOF 1>&2
 
6986
 
 
6987
*** Warning: the command libtool uses to detect shared libraries,
 
6988
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
6989
*** The result is that libtool may fail to recognize shared libraries
 
6990
*** as such.  This will affect the creation of libtool libraries that
 
6991
*** depend on shared libraries, but programs linked with such libtool
 
6992
*** libraries will work regardless of this problem.  Nevertheless, you
 
6993
*** may want to report the problem to your system manager and/or to
 
6994
*** bug-libtool@gnu.org
 
6995
 
 
6996
EOF
 
6997
          fi ;;
 
6998
        esac
 
6999
      fi
 
7000
      break
 
7001
    fi
 
7002
  done
 
7003
  IFS="$lt_save_ifs"
 
7004
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7005
  ;;
 
7006
esac
 
7007
fi
 
7008
 
 
7009
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7010
if test -n "$MAGIC_CMD"; then
 
7011
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7012
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7013
else
 
7014
  echo "$as_me:$LINENO: result: no" >&5
 
7015
echo "${ECHO_T}no" >&6
 
7016
fi
 
7017
 
 
7018
if test -z "$lt_cv_path_MAGIC_CMD"; then
 
7019
  if test -n "$ac_tool_prefix"; then
 
7020
    echo "$as_me:$LINENO: checking for file" >&5
 
7021
echo $ECHO_N "checking for file... $ECHO_C" >&6
 
7022
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 
7023
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7024
else
 
7025
  case $MAGIC_CMD in
 
7026
[\\/*] |  ?:[\\/]*)
 
7027
  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 
7028
  ;;
 
7029
*)
 
7030
  lt_save_MAGIC_CMD="$MAGIC_CMD"
 
7031
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
7032
  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 
7033
  for ac_dir in $ac_dummy; do
 
7034
    IFS="$lt_save_ifs"
 
7035
    test -z "$ac_dir" && ac_dir=.
 
7036
    if test -f $ac_dir/file; then
 
7037
      lt_cv_path_MAGIC_CMD="$ac_dir/file"
 
7038
      if test -n "$file_magic_test_file"; then
 
7039
        case $deplibs_check_method in
 
7040
        "file_magic "*)
 
7041
          file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 
7042
          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7043
          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 
7044
            $EGREP "$file_magic_regex" > /dev/null; then
 
7045
            :
 
7046
          else
 
7047
            cat <<EOF 1>&2
 
7048
 
 
7049
*** Warning: the command libtool uses to detect shared libraries,
 
7050
*** $file_magic_cmd, produces output that libtool cannot recognize.
 
7051
*** The result is that libtool may fail to recognize shared libraries
 
7052
*** as such.  This will affect the creation of libtool libraries that
 
7053
*** depend on shared libraries, but programs linked with such libtool
 
7054
*** libraries will work regardless of this problem.  Nevertheless, you
 
7055
*** may want to report the problem to your system manager and/or to
 
7056
*** bug-libtool@gnu.org
 
7057
 
 
7058
EOF
 
7059
          fi ;;
 
7060
        esac
 
7061
      fi
 
7062
      break
 
7063
    fi
 
7064
  done
 
7065
  IFS="$lt_save_ifs"
 
7066
  MAGIC_CMD="$lt_save_MAGIC_CMD"
 
7067
  ;;
 
7068
esac
 
7069
fi
 
7070
 
 
7071
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 
7072
if test -n "$MAGIC_CMD"; then
 
7073
  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 
7074
echo "${ECHO_T}$MAGIC_CMD" >&6
 
7075
else
 
7076
  echo "$as_me:$LINENO: result: no" >&5
 
7077
echo "${ECHO_T}no" >&6
 
7078
fi
 
7079
 
 
7080
  else
 
7081
    MAGIC_CMD=:
 
7082
  fi
 
7083
fi
 
7084
 
 
7085
  fi
 
7086
  ;;
 
7087
esac
 
7088
 
 
7089
enable_dlopen=no
 
7090
enable_win32_dll=no
 
7091
 
 
7092
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 
7093
if test "${enable_libtool_lock+set}" = set; then
 
7094
  enableval="$enable_libtool_lock"
 
7095
 
 
7096
fi;
 
7097
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 
7098
 
 
7099
 
 
7100
# Check whether --with-pic or --without-pic was given.
 
7101
if test "${with_pic+set}" = set; then
 
7102
  withval="$with_pic"
 
7103
  pic_mode="$withval"
 
7104
else
 
7105
  pic_mode=default
 
7106
fi;
 
7107
test -z "$pic_mode" && pic_mode=default
 
7108
 
 
7109
# Use C for the default configuration in the libtool script
 
7110
tagname=
 
7111
lt_save_CC="$CC"
 
7112
ac_ext=c
 
7113
ac_cpp='$CPP $CPPFLAGS'
 
7114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
7115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
7116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
7117
 
 
7118
 
 
7119
# Source file extension for C test sources.
 
7120
ac_ext=c
 
7121
 
 
7122
# Object file extension for compiled C test sources.
 
7123
objext=o
 
7124
objext=$objext
 
7125
 
 
7126
# Code to be used in simple compile tests
 
7127
lt_simple_compile_test_code="int some_variable = 0;\n"
 
7128
 
 
7129
# Code to be used in simple link tests
 
7130
lt_simple_link_test_code='int main(){return(0);}\n'
 
7131
 
 
7132
 
 
7133
# If no C compiler was specified, use CC.
 
7134
LTCC=${LTCC-"$CC"}
 
7135
 
 
7136
# Allow CC to be a program name with arguments.
 
7137
compiler=$CC
 
7138
 
 
7139
 
 
7140
#
 
7141
# Check for any special shared library compilation flags.
 
7142
#
 
7143
lt_prog_cc_shlib=
 
7144
if test "$GCC" = no; then
 
7145
  case $host_os in
 
7146
  sco3.2v5*)
 
7147
    lt_prog_cc_shlib='-belf'
 
7148
    ;;
 
7149
  esac
 
7150
fi
 
7151
if test -n "$lt_prog_cc_shlib"; then
 
7152
  { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 
7153
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 
7154
  if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
 
7155
  else
 
7156
    { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 
7157
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 
7158
    lt_cv_prog_cc_can_build_shared=no
 
7159
  fi
 
7160
fi
 
7161
 
 
7162
 
 
7163
#
 
7164
# Check to make sure the static flag actually works.
 
7165
#
 
7166
echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 
7167
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 
7168
if test "${lt_prog_compiler_static_works+set}" = set; then
 
7169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7170
else
 
7171
  lt_prog_compiler_static_works=no
 
7172
   save_LDFLAGS="$LDFLAGS"
 
7173
   LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 
7174
   printf "$lt_simple_link_test_code" > conftest.$ac_ext
 
7175
   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 
7176
     # The compiler can only warn and ignore the option if not recognized
 
7177
     # So say no if there are warnings
 
7178
     if test -s conftest.err; then
 
7179
       # Append any errors to the config.log.
 
7180
       cat conftest.err 1>&5
 
7181
     else
 
7182
       lt_prog_compiler_static_works=yes
 
7183
     fi
 
7184
   fi
 
7185
   $rm conftest*
 
7186
   LDFLAGS="$save_LDFLAGS"
 
7187
 
 
7188
fi
 
7189
echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 
7190
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 
7191
 
 
7192
if test x"$lt_prog_compiler_static_works" = xyes; then
 
7193
    :
 
7194
else
 
7195
    lt_prog_compiler_static=
 
7196
fi
 
7197
 
 
7198
 
 
7199
 
 
7200
 
 
7201
lt_prog_compiler_no_builtin_flag=
 
7202
 
 
7203
if test "$GCC" = yes; then
 
7204
  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 
7205
 
 
7206
 
 
7207
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
7208
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
7209
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
7210
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7211
else
 
7212
  lt_cv_prog_compiler_rtti_exceptions=no
 
7213
  ac_outfile=conftest.$ac_objext
 
7214
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7215
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
7216
   # Insert the option either (1) after the last *FLAGS variable, or
 
7217
   # (2) before a word containing "conftest.", or (3) at the end.
 
7218
   # Note that $ac_compile itself does not contain backslashes and begins
 
7219
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7220
   # The option is referenced via a variable to avoid confusing sed.
 
7221
   lt_compile=`echo "$ac_compile" | $SED \
 
7222
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7223
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7224
   -e 's:$: $lt_compiler_flag:'`
 
7225
   (eval echo "\"\$as_me:7225: $lt_compile\"" >&5)
 
7226
   (eval "$lt_compile" 2>conftest.err)
 
7227
   ac_status=$?
 
7228
   cat conftest.err >&5
 
7229
   echo "$as_me:7229: \$? = $ac_status" >&5
 
7230
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7231
     # The compiler can only warn and ignore the option if not recognized
 
7232
     # So say no if there are warnings
 
7233
     if test ! -s conftest.err; then
 
7234
       lt_cv_prog_compiler_rtti_exceptions=yes
 
7235
     fi
 
7236
   fi
 
7237
   $rm conftest*
 
7238
 
 
7239
fi
 
7240
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
7241
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
7242
 
 
7243
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
7244
    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 
7245
else
 
7246
    :
 
7247
fi
 
7248
 
 
7249
fi
 
7250
 
 
7251
lt_prog_compiler_wl=
 
7252
lt_prog_compiler_pic=
 
7253
lt_prog_compiler_static=
 
7254
 
 
7255
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
7256
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
7257
 
 
7258
  if test "$GCC" = yes; then
 
7259
    lt_prog_compiler_wl='-Wl,'
 
7260
    lt_prog_compiler_static='-static'
 
7261
 
 
7262
    case $host_os in
 
7263
      aix*)
 
7264
      # All AIX code is PIC.
 
7265
      if test "$host_cpu" = ia64; then
 
7266
        # AIX 5 now supports IA64 processor
 
7267
        lt_prog_compiler_static='-Bstatic'
 
7268
      fi
 
7269
      ;;
 
7270
 
 
7271
    amigaos*)
 
7272
      # FIXME: we need at least 68020 code to build shared libraries, but
 
7273
      # adding the `-m68020' flag to GCC prevents building anything better,
 
7274
      # like `-m68040'.
 
7275
      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 
7276
      ;;
 
7277
 
 
7278
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
7279
      # PIC is the default for these OSes.
 
7280
      ;;
 
7281
 
 
7282
    mingw* | pw32* | os2*)
 
7283
      # This hack is so that the source file can tell whether it is being
 
7284
      # built for inclusion in a dll (and should export symbols for example).
 
7285
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7286
      ;;
 
7287
 
 
7288
    darwin* | rhapsody*)
 
7289
      # PIC is the default on this platform
 
7290
      # Common symbols not allowed in MH_DYLIB files
 
7291
      lt_prog_compiler_pic='-fno-common'
 
7292
      ;;
 
7293
 
 
7294
    msdosdjgpp*)
 
7295
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
7296
      # on systems that don't support them.
 
7297
      lt_prog_compiler_can_build_shared=no
 
7298
      enable_shared=no
 
7299
      ;;
 
7300
 
 
7301
    sysv4*MP*)
 
7302
      if test -d /usr/nec; then
 
7303
        lt_prog_compiler_pic=-Kconform_pic
 
7304
      fi
 
7305
      ;;
 
7306
 
 
7307
    hpux*)
 
7308
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7309
      # not for PA HP-UX.
 
7310
      case "$host_cpu" in
 
7311
      hppa*64*|ia64*)
 
7312
        # +Z the default
 
7313
        ;;
 
7314
      *)
 
7315
        lt_prog_compiler_pic='-fPIC'
 
7316
        ;;
 
7317
      esac
 
7318
      ;;
 
7319
 
 
7320
    *)
 
7321
      lt_prog_compiler_pic='-fPIC'
 
7322
      ;;
 
7323
    esac
 
7324
  else
 
7325
    # PORTME Check for flag to pass linker flags through the system compiler.
 
7326
    case $host_os in
 
7327
    aix*)
 
7328
      lt_prog_compiler_wl='-Wl,'
 
7329
      if test "$host_cpu" = ia64; then
 
7330
        # AIX 5 now supports IA64 processor
 
7331
        lt_prog_compiler_static='-Bstatic'
 
7332
      else
 
7333
        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 
7334
      fi
 
7335
      ;;
 
7336
 
 
7337
    mingw* | pw32* | os2*)
 
7338
      # This hack is so that the source file can tell whether it is being
 
7339
      # built for inclusion in a dll (and should export symbols for example).
 
7340
      lt_prog_compiler_pic='-DDLL_EXPORT'
 
7341
      ;;
 
7342
 
 
7343
    hpux9* | hpux10* | hpux11*)
 
7344
      lt_prog_compiler_wl='-Wl,'
 
7345
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
7346
      # not for PA HP-UX.
 
7347
      case "$host_cpu" in
 
7348
      hppa*64*|ia64*)
 
7349
        # +Z the default
 
7350
        ;;
 
7351
      *)
 
7352
        lt_prog_compiler_pic='+Z'
 
7353
        ;;
 
7354
      esac
 
7355
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
7356
      lt_prog_compiler_static='${wl}-a ${wl}archive'
 
7357
      ;;
 
7358
 
 
7359
    irix5* | irix6* | nonstopux*)
 
7360
      lt_prog_compiler_wl='-Wl,'
 
7361
      # PIC (with -KPIC) is the default.
 
7362
      lt_prog_compiler_static='-non_shared'
 
7363
      ;;
 
7364
 
 
7365
    newsos6)
 
7366
      lt_prog_compiler_pic='-KPIC'
 
7367
      lt_prog_compiler_static='-Bstatic'
 
7368
      ;;
 
7369
 
 
7370
    linux*)
 
7371
      case $CC in
 
7372
      icc* | ecc*)
 
7373
        lt_prog_compiler_wl='-Wl,'
 
7374
        lt_prog_compiler_pic='-KPIC'
 
7375
        lt_prog_compiler_static='-static'
 
7376
        ;;
 
7377
      ccc*)
 
7378
        lt_prog_compiler_wl='-Wl,'
 
7379
        # All Alpha code is PIC.
 
7380
        lt_prog_compiler_static='-non_shared'
 
7381
        ;;
 
7382
      esac
 
7383
      ;;
 
7384
 
 
7385
    osf3* | osf4* | osf5*)
 
7386
      lt_prog_compiler_wl='-Wl,'
 
7387
      # All OSF/1 code is PIC.
 
7388
      lt_prog_compiler_static='-non_shared'
 
7389
      ;;
 
7390
 
 
7391
    sco3.2v5*)
 
7392
      lt_prog_compiler_pic='-Kpic'
 
7393
      lt_prog_compiler_static='-dn'
 
7394
      ;;
 
7395
 
 
7396
    solaris*)
 
7397
      lt_prog_compiler_wl='-Wl,'
 
7398
      lt_prog_compiler_pic='-KPIC'
 
7399
      lt_prog_compiler_static='-Bstatic'
 
7400
      ;;
 
7401
 
 
7402
    sunos4*)
 
7403
      lt_prog_compiler_wl='-Qoption ld '
 
7404
      lt_prog_compiler_pic='-PIC'
 
7405
      lt_prog_compiler_static='-Bstatic'
 
7406
      ;;
 
7407
 
 
7408
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
7409
      lt_prog_compiler_wl='-Wl,'
 
7410
      lt_prog_compiler_pic='-KPIC'
 
7411
      lt_prog_compiler_static='-Bstatic'
 
7412
      ;;
 
7413
 
 
7414
    sysv4*MP*)
 
7415
      if test -d /usr/nec ;then
 
7416
        lt_prog_compiler_pic='-Kconform_pic'
 
7417
        lt_prog_compiler_static='-Bstatic'
 
7418
      fi
 
7419
      ;;
 
7420
 
 
7421
    uts4*)
 
7422
      lt_prog_compiler_pic='-pic'
 
7423
      lt_prog_compiler_static='-Bstatic'
 
7424
      ;;
 
7425
 
 
7426
    *)
 
7427
      lt_prog_compiler_can_build_shared=no
 
7428
      ;;
 
7429
    esac
 
7430
  fi
 
7431
 
 
7432
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 
7433
echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 
7434
 
 
7435
#
 
7436
# Check to make sure the PIC flag actually works.
 
7437
#
 
7438
if test -n "$lt_prog_compiler_pic"; then
 
7439
 
 
7440
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 
7441
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 
7442
if test "${lt_prog_compiler_pic_works+set}" = set; then
 
7443
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7444
else
 
7445
  lt_prog_compiler_pic_works=no
 
7446
  ac_outfile=conftest.$ac_objext
 
7447
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7448
   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 
7449
   # Insert the option either (1) after the last *FLAGS variable, or
 
7450
   # (2) before a word containing "conftest.", or (3) at the end.
 
7451
   # Note that $ac_compile itself does not contain backslashes and begins
 
7452
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7453
   # The option is referenced via a variable to avoid confusing sed.
 
7454
   lt_compile=`echo "$ac_compile" | $SED \
 
7455
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7456
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7457
   -e 's:$: $lt_compiler_flag:'`
 
7458
   (eval echo "\"\$as_me:7458: $lt_compile\"" >&5)
 
7459
   (eval "$lt_compile" 2>conftest.err)
 
7460
   ac_status=$?
 
7461
   cat conftest.err >&5
 
7462
   echo "$as_me:7462: \$? = $ac_status" >&5
 
7463
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
7464
     # The compiler can only warn and ignore the option if not recognized
 
7465
     # So say no if there are warnings
 
7466
     if test ! -s conftest.err; then
 
7467
       lt_prog_compiler_pic_works=yes
 
7468
     fi
 
7469
   fi
 
7470
   $rm conftest*
 
7471
 
 
7472
fi
 
7473
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 
7474
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 
7475
 
 
7476
if test x"$lt_prog_compiler_pic_works" = xyes; then
 
7477
    case $lt_prog_compiler_pic in
 
7478
     "" | " "*) ;;
 
7479
     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 
7480
     esac
 
7481
else
 
7482
    lt_prog_compiler_pic=
 
7483
     lt_prog_compiler_can_build_shared=no
 
7484
fi
 
7485
 
 
7486
fi
 
7487
case "$host_os" in
 
7488
  # For platforms which do not support PIC, -DPIC is meaningless:
 
7489
  *djgpp*)
 
7490
    lt_prog_compiler_pic=
 
7491
    ;;
 
7492
  *)
 
7493
    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 
7494
    ;;
 
7495
esac
 
7496
 
 
7497
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
7498
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
7499
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 
7500
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7501
else
 
7502
  lt_cv_prog_compiler_c_o=no
 
7503
   $rm -r conftest 2>/dev/null
 
7504
   mkdir conftest
 
7505
   cd conftest
 
7506
   mkdir out
 
7507
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
7508
 
 
7509
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
7510
   # Insert the option either (1) after the last *FLAGS variable, or
 
7511
   # (2) before a word containing "conftest.", or (3) at the end.
 
7512
   # Note that $ac_compile itself does not contain backslashes and begins
 
7513
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
7514
   lt_compile=`echo "$ac_compile" | $SED \
 
7515
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
7516
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
7517
   -e 's:$: $lt_compiler_flag:'`
 
7518
   (eval echo "\"\$as_me:7518: $lt_compile\"" >&5)
 
7519
   (eval "$lt_compile" 2>out/conftest.err)
 
7520
   ac_status=$?
 
7521
   cat out/conftest.err >&5
 
7522
   echo "$as_me:7522: \$? = $ac_status" >&5
 
7523
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
7524
   then
 
7525
     # The compiler can only warn and ignore the option if not recognized
 
7526
     # So say no if there are warnings
 
7527
     if test ! -s out/conftest.err; then
 
7528
       lt_cv_prog_compiler_c_o=yes
 
7529
     fi
 
7530
   fi
 
7531
   chmod u+w .
 
7532
   $rm conftest*
 
7533
   # SGI C++ compiler will create directory out/ii_files/ for
 
7534
   # template instantiation
 
7535
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
7536
   $rm out/* && rmdir out
 
7537
   cd ..
 
7538
   rmdir conftest
 
7539
   $rm conftest*
 
7540
 
 
7541
fi
 
7542
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 
7543
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 
7544
 
 
7545
 
 
7546
hard_links="nottested"
 
7547
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 
7548
  # do not overwrite the value of need_locks provided by the user
 
7549
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
7550
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
7551
  hard_links=yes
 
7552
  $rm conftest*
 
7553
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7554
  touch conftest.a
 
7555
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
7556
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
7557
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
7558
echo "${ECHO_T}$hard_links" >&6
 
7559
  if test "$hard_links" = no; then
 
7560
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
7561
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
7562
    need_locks=warn
 
7563
  fi
 
7564
else
 
7565
  need_locks=no
 
7566
fi
 
7567
 
 
7568
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
7569
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
7570
 
 
7571
  runpath_var=
 
7572
  allow_undefined_flag=
 
7573
  enable_shared_with_static_runtimes=no
 
7574
  archive_cmds=
 
7575
  archive_expsym_cmds=
 
7576
  old_archive_From_new_cmds=
 
7577
  old_archive_from_expsyms_cmds=
 
7578
  export_dynamic_flag_spec=
 
7579
  whole_archive_flag_spec=
 
7580
  thread_safe_flag_spec=
 
7581
  hardcode_libdir_flag_spec=
 
7582
  hardcode_libdir_flag_spec_ld=
 
7583
  hardcode_libdir_separator=
 
7584
  hardcode_direct=no
 
7585
  hardcode_minus_L=no
 
7586
  hardcode_shlibpath_var=unsupported
 
7587
  link_all_deplibs=unknown
 
7588
  hardcode_automatic=no
 
7589
  module_cmds=
 
7590
  module_expsym_cmds=
 
7591
  always_export_symbols=no
 
7592
  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
7593
  # include_expsyms should be a list of space-separated symbols to be *always*
 
7594
  # included in the symbol list
 
7595
  include_expsyms=
 
7596
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
7597
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
7598
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
7599
  # as well as any symbol that contains `d'.
 
7600
  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 
7601
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
7602
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
7603
  # the symbol is explicitly referenced.  Since portable code cannot
 
7604
  # rely on this symbol name, it's probably fine to never include it in
 
7605
  # preloaded symbol tables.
 
7606
  extract_expsyms_cmds=
 
7607
 
 
7608
  case $host_os in
 
7609
  cygwin* | mingw* | pw32*)
 
7610
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
7611
    # When not using gcc, we currently assume that we are using
 
7612
    # Microsoft Visual C++.
 
7613
    if test "$GCC" != yes; then
 
7614
      with_gnu_ld=no
 
7615
    fi
 
7616
    ;;
 
7617
  openbsd*)
 
7618
    with_gnu_ld=no
 
7619
    ;;
 
7620
  esac
 
7621
 
 
7622
  ld_shlibs=yes
 
7623
  if test "$with_gnu_ld" = yes; then
 
7624
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
7625
    wlarc='${wl}'
 
7626
 
 
7627
    # See if GNU ld supports shared libraries.
 
7628
    case $host_os in
 
7629
    aix3* | aix4* | aix5*)
 
7630
      # On AIX/PPC, the GNU linker is very broken
 
7631
      if test "$host_cpu" != ia64; then
 
7632
        ld_shlibs=no
 
7633
        cat <<EOF 1>&2
 
7634
 
 
7635
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
7636
*** to be unable to reliably create shared libraries on AIX.
 
7637
*** Therefore, libtool is disabling shared libraries support.  If you
 
7638
*** really care for shared libraries, you may want to modify your PATH
 
7639
*** so that a non-GNU linker is found, and then restart.
 
7640
 
 
7641
EOF
 
7642
      fi
 
7643
      ;;
 
7644
 
 
7645
    amigaos*)
 
7646
      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)'
 
7647
      hardcode_libdir_flag_spec='-L$libdir'
 
7648
      hardcode_minus_L=yes
 
7649
 
 
7650
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
7651
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
7652
      # to version 4, is to share data among multiple programs linked
 
7653
      # with the same dynamic library.  Since this doesn't match the
 
7654
      # behavior of shared libraries on other platforms, we can't use
 
7655
      # them.
 
7656
      ld_shlibs=no
 
7657
      ;;
 
7658
 
 
7659
    beos*)
 
7660
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7661
        allow_undefined_flag=unsupported
 
7662
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
7663
        # support --undefined.  This deserves some investigation.  FIXME
 
7664
        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7665
      else
 
7666
        ld_shlibs=no
 
7667
      fi
 
7668
      ;;
 
7669
 
 
7670
    cygwin* | mingw* | pw32*)
 
7671
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 
7672
      # as there is no search path for DLLs.
 
7673
      hardcode_libdir_flag_spec='-L$libdir'
 
7674
      allow_undefined_flag=unsupported
 
7675
      always_export_symbols=no
 
7676
      enable_shared_with_static_runtimes=yes
 
7677
      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
7678
 
 
7679
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
7680
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
7681
        # If the export-symbols file already is a .def file (1st line
 
7682
        # is EXPORTS), use it as is; otherwise, prepend...
 
7683
        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
7684
          cp $export_symbols $output_objdir/$soname.def;
 
7685
        else
 
7686
          echo EXPORTS > $output_objdir/$soname.def;
 
7687
          cat $export_symbols >> $output_objdir/$soname.def;
 
7688
        fi~
 
7689
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
7690
      else
 
7691
        ld_shlibs=no
 
7692
      fi
 
7693
      ;;
 
7694
 
 
7695
    netbsd* | knetbsd*-gnu)
 
7696
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
7697
        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
7698
        wlarc=
 
7699
      else
 
7700
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7701
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7702
      fi
 
7703
      ;;
 
7704
 
 
7705
    solaris* | sysv5*)
 
7706
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
7707
        ld_shlibs=no
 
7708
        cat <<EOF 1>&2
 
7709
 
 
7710
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
7711
*** create shared libraries on Solaris systems.  Therefore, libtool
 
7712
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
7713
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
7714
*** your PATH or compiler configuration so that the native linker is
 
7715
*** used, and then restart.
 
7716
 
 
7717
EOF
 
7718
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7719
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7720
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7721
      else
 
7722
        ld_shlibs=no
 
7723
      fi
 
7724
      ;;
 
7725
 
 
7726
    sunos4*)
 
7727
      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
7728
      wlarc=
 
7729
      hardcode_direct=yes
 
7730
      hardcode_shlibpath_var=no
 
7731
      ;;
 
7732
 
 
7733
  linux*)
 
7734
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
7735
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7736
        archive_cmds="$tmp_archive_cmds"
 
7737
      supports_anon_versioning=no
 
7738
      case `$LD -v 2>/dev/null` in
 
7739
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
7740
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
7741
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
7742
        *\ 2.11.*) ;; # other 2.11 versions
 
7743
        *) supports_anon_versioning=yes ;;
 
7744
      esac
 
7745
      if test $supports_anon_versioning = yes; then
 
7746
        archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 
7747
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
7748
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
7749
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
7750
      else
 
7751
        archive_expsym_cmds="$tmp_archive_cmds"
 
7752
      fi
 
7753
    else
 
7754
      ld_shlibs=no
 
7755
    fi
 
7756
    ;;
 
7757
 
 
7758
    *)
 
7759
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
7760
        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
7761
        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
7762
      else
 
7763
        ld_shlibs=no
 
7764
      fi
 
7765
      ;;
 
7766
    esac
 
7767
 
 
7768
    if test "$ld_shlibs" = yes; then
 
7769
      runpath_var=LD_RUN_PATH
 
7770
      hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 
7771
      export_dynamic_flag_spec='${wl}--export-dynamic'
 
7772
      # ancient GNU ld didn't support --whole-archive et. al.
 
7773
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
7774
        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
7775
      else
 
7776
        whole_archive_flag_spec=
 
7777
      fi
 
7778
    fi
 
7779
  else
 
7780
    # PORTME fill in a description of your system's linker (not GNU ld)
 
7781
    case $host_os in
 
7782
    aix3*)
 
7783
      allow_undefined_flag=unsupported
 
7784
      always_export_symbols=yes
 
7785
      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'
 
7786
      # Note: this linker hardcodes the directories in LIBPATH if there
 
7787
      # are no directories specified by -L.
 
7788
      hardcode_minus_L=yes
 
7789
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
7790
        # Neither direct hardcoding nor static linking is supported with a
 
7791
        # broken collect2.
 
7792
        hardcode_direct=unsupported
 
7793
      fi
 
7794
      ;;
 
7795
 
 
7796
    aix4* | aix5*)
 
7797
      if test "$host_cpu" = ia64; then
 
7798
        # On IA64, the linker does run time linking by default, so we don't
 
7799
        # have to do anything special.
 
7800
        aix_use_runtimelinking=no
 
7801
        exp_sym_flag='-Bexport'
 
7802
        no_entry_flag=""
 
7803
      else
 
7804
        # If we're using GNU nm, then we don't want the "-C" option.
 
7805
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
7806
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
7807
          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'
 
7808
        else
 
7809
          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'
 
7810
        fi
 
7811
        aix_use_runtimelinking=no
 
7812
 
 
7813
        # Test if we are trying to use run time linking or normal
 
7814
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
7815
        # need to do runtime linking.
 
7816
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
7817
          for ld_flag in $LDFLAGS; do
 
7818
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
7819
            aix_use_runtimelinking=yes
 
7820
            break
 
7821
          fi
 
7822
          done
 
7823
        esac
 
7824
 
 
7825
        exp_sym_flag='-bexport'
 
7826
        no_entry_flag='-bnoentry'
 
7827
      fi
 
7828
 
 
7829
      # When large executables or shared objects are built, AIX ld can
 
7830
      # have problems creating the table of contents.  If linking a library
 
7831
      # or program results in "error TOC overflow" add -mminimal-toc to
 
7832
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
7833
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
7834
 
 
7835
      archive_cmds=''
 
7836
      hardcode_direct=yes
 
7837
      hardcode_libdir_separator=':'
 
7838
      link_all_deplibs=yes
 
7839
 
 
7840
      if test "$GCC" = yes; then
 
7841
        case $host_os in aix4.012|aix4.012.*)
 
7842
        # We only want to do this on AIX 4.2 and lower, the check
 
7843
        # below for broken collect2 doesn't work under 4.3+
 
7844
          collect2name=`${CC} -print-prog-name=collect2`
 
7845
          if test -f "$collect2name" && \
 
7846
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
7847
          then
 
7848
          # We have reworked collect2
 
7849
          hardcode_direct=yes
 
7850
          else
 
7851
          # We have old collect2
 
7852
          hardcode_direct=unsupported
 
7853
          # It fails to find uninstalled libraries when the uninstalled
 
7854
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
7855
          # to unsupported forces relinking
 
7856
          hardcode_minus_L=yes
 
7857
          hardcode_libdir_flag_spec='-L$libdir'
 
7858
          hardcode_libdir_separator=
 
7859
          fi
 
7860
        esac
 
7861
        shared_flag='-shared'
 
7862
      else
 
7863
        # not using gcc
 
7864
        if test "$host_cpu" = ia64; then
 
7865
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
7866
        # chokes on -Wl,-G. The following line is correct:
 
7867
          shared_flag='-G'
 
7868
        else
 
7869
        if test "$aix_use_runtimelinking" = yes; then
 
7870
            shared_flag='${wl}-G'
 
7871
          else
 
7872
            shared_flag='${wl}-bM:SRE'
 
7873
        fi
 
7874
        fi
 
7875
      fi
 
7876
 
 
7877
      # It seems that -bexpall does not export symbols beginning with
 
7878
      # underscore (_), so it is better to generate a list of symbols to export.
 
7879
      always_export_symbols=yes
 
7880
      if test "$aix_use_runtimelinking" = yes; then
 
7881
        # Warning - without using the other runtime loading flags (-brtl),
 
7882
        # -berok will link without error, but may produce a broken library.
 
7883
        allow_undefined_flag='-berok'
 
7884
       # Determine the default libpath from the value encoded in an empty executable.
 
7885
       cat >conftest.$ac_ext <<_ACEOF
 
7886
/* confdefs.h.  */
 
7887
_ACEOF
 
7888
cat confdefs.h >>conftest.$ac_ext
 
7889
cat >>conftest.$ac_ext <<_ACEOF
 
7890
/* end confdefs.h.  */
 
7891
 
 
7892
int
 
7893
main ()
 
7894
{
 
7895
 
 
7896
  ;
 
7897
  return 0;
 
7898
}
 
7899
_ACEOF
 
7900
rm -f conftest.$ac_objext conftest$ac_exeext
 
7901
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7902
  (eval $ac_link) 2>conftest.er1
 
7903
  ac_status=$?
 
7904
  grep -v '^ *+' conftest.er1 >conftest.err
 
7905
  rm -f conftest.er1
 
7906
  cat conftest.err >&5
 
7907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7908
  (exit $ac_status); } &&
 
7909
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7910
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7911
  (eval $ac_try) 2>&5
 
7912
  ac_status=$?
 
7913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7914
  (exit $ac_status); }; } &&
 
7915
         { ac_try='test -s conftest$ac_exeext'
 
7916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7917
  (eval $ac_try) 2>&5
 
7918
  ac_status=$?
 
7919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7920
  (exit $ac_status); }; }; then
 
7921
 
 
7922
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7923
}'`
 
7924
# Check for a 64-bit object if we didn't find anything.
 
7925
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; }
 
7926
}'`; fi
 
7927
else
 
7928
  echo "$as_me: failed program was:" >&5
 
7929
sed 's/^/| /' conftest.$ac_ext >&5
 
7930
 
 
7931
fi
 
7932
rm -f conftest.err conftest.$ac_objext \
 
7933
      conftest$ac_exeext conftest.$ac_ext
 
7934
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7935
 
 
7936
       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7937
        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"
 
7938
       else
 
7939
        if test "$host_cpu" = ia64; then
 
7940
          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 
7941
          allow_undefined_flag="-z nodefs"
 
7942
          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"
 
7943
        else
 
7944
         # Determine the default libpath from the value encoded in an empty executable.
 
7945
         cat >conftest.$ac_ext <<_ACEOF
 
7946
/* confdefs.h.  */
 
7947
_ACEOF
 
7948
cat confdefs.h >>conftest.$ac_ext
 
7949
cat >>conftest.$ac_ext <<_ACEOF
 
7950
/* end confdefs.h.  */
 
7951
 
 
7952
int
 
7953
main ()
 
7954
{
 
7955
 
 
7956
  ;
 
7957
  return 0;
 
7958
}
 
7959
_ACEOF
 
7960
rm -f conftest.$ac_objext conftest$ac_exeext
 
7961
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
7962
  (eval $ac_link) 2>conftest.er1
 
7963
  ac_status=$?
 
7964
  grep -v '^ *+' conftest.er1 >conftest.err
 
7965
  rm -f conftest.er1
 
7966
  cat conftest.err >&5
 
7967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7968
  (exit $ac_status); } &&
 
7969
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
7970
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7971
  (eval $ac_try) 2>&5
 
7972
  ac_status=$?
 
7973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7974
  (exit $ac_status); }; } &&
 
7975
         { ac_try='test -s conftest$ac_exeext'
 
7976
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
7977
  (eval $ac_try) 2>&5
 
7978
  ac_status=$?
 
7979
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7980
  (exit $ac_status); }; }; then
 
7981
 
 
7982
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
7983
}'`
 
7984
# Check for a 64-bit object if we didn't find anything.
 
7985
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; }
 
7986
}'`; fi
 
7987
else
 
7988
  echo "$as_me: failed program was:" >&5
 
7989
sed 's/^/| /' conftest.$ac_ext >&5
 
7990
 
 
7991
fi
 
7992
rm -f conftest.err conftest.$ac_objext \
 
7993
      conftest$ac_exeext conftest.$ac_ext
 
7994
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
7995
 
 
7996
         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 
7997
          # Warning - without using the other run time loading flags,
 
7998
          # -berok will link without error, but may produce a broken library.
 
7999
          no_undefined_flag=' ${wl}-bernotok'
 
8000
          allow_undefined_flag=' ${wl}-berok'
 
8001
          # -bexpall does not export symbols beginning with underscore (_)
 
8002
          always_export_symbols=yes
 
8003
          # Exported symbols can be pulled into shared objects from archives
 
8004
          whole_archive_flag_spec=' '
 
8005
          archive_cmds_need_lc=yes
 
8006
          # This is similar to how AIX traditionally builds it's shared libraries.
 
8007
          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'
 
8008
        fi
 
8009
      fi
 
8010
      ;;
 
8011
 
 
8012
    amigaos*)
 
8013
      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)'
 
8014
      hardcode_libdir_flag_spec='-L$libdir'
 
8015
      hardcode_minus_L=yes
 
8016
      # see comment about different semantics on the GNU ld section
 
8017
      ld_shlibs=no
 
8018
      ;;
 
8019
 
 
8020
    bsdi4*)
 
8021
      export_dynamic_flag_spec=-rdynamic
 
8022
      ;;
 
8023
 
 
8024
    cygwin* | mingw* | pw32*)
 
8025
      # When not using gcc, we currently assume that we are using
 
8026
      # Microsoft Visual C++.
 
8027
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
8028
      # no search path for DLLs.
 
8029
      hardcode_libdir_flag_spec=' '
 
8030
      allow_undefined_flag=unsupported
 
8031
      # Tell ltmain to make .lib files, not .a files.
 
8032
      libext=lib
 
8033
      # Tell ltmain to make .dll files, not .so files.
 
8034
      shrext=".dll"
 
8035
      # FIXME: Setting linknames here is a bad hack.
 
8036
      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
8037
      # The linker will automatically build a .lib file if we build a DLL.
 
8038
      old_archive_From_new_cmds='true'
 
8039
      # FIXME: Should let the user specify the lib program.
 
8040
      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
8041
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
8042
      enable_shared_with_static_runtimes=yes
 
8043
      ;;
 
8044
 
 
8045
    darwin* | rhapsody*)
 
8046
    if test "$GXX" = yes ; then
 
8047
      archive_cmds_need_lc=no
 
8048
      case "$host_os" in
 
8049
      rhapsody* | darwin1.[012])
 
8050
        allow_undefined_flag='-undefined suppress'
 
8051
        ;;
 
8052
      *) # Darwin 1.3 on
 
8053
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
8054
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
8055
      else
 
8056
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
8057
          10.[012])
 
8058
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
8059
            ;;
 
8060
          10.*)
 
8061
            allow_undefined_flag='-undefined dynamic_lookup'
 
8062
            ;;
 
8063
        esac
 
8064
      fi
 
8065
        ;;
 
8066
      esac
 
8067
        lt_int_apple_cc_single_mod=no
 
8068
        output_verbose_link_cmd='echo'
 
8069
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
8070
          lt_int_apple_cc_single_mod=yes
 
8071
        fi
 
8072
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8073
          archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
8074
        else
 
8075
        archive_cmds='$CC -r ${wl}-bind_at_load -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'
 
8076
      fi
 
8077
      module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
8078
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
8079
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
8080
          archive_expsym_cmds='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}'
 
8081
        else
 
8082
          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
8083
        fi
 
8084
          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}'
 
8085
      hardcode_direct=no
 
8086
      hardcode_automatic=yes
 
8087
      hardcode_shlibpath_var=unsupported
 
8088
      whole_archive_flag_spec='-all_load $convenience'
 
8089
      link_all_deplibs=yes
 
8090
    else
 
8091
      ld_shlibs=no
 
8092
    fi
 
8093
      ;;
 
8094
 
 
8095
    dgux*)
 
8096
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8097
      hardcode_libdir_flag_spec='-L$libdir'
 
8098
      hardcode_shlibpath_var=no
 
8099
      ;;
 
8100
 
 
8101
    freebsd1*)
 
8102
      ld_shlibs=no
 
8103
      ;;
 
8104
 
 
8105
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
8106
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
8107
    # does not break anything, and helps significantly (at the cost of a little
 
8108
    # extra space).
 
8109
    freebsd2.2*)
 
8110
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
8111
      hardcode_libdir_flag_spec='-R$libdir'
 
8112
      hardcode_direct=yes
 
8113
      hardcode_shlibpath_var=no
 
8114
      ;;
 
8115
 
 
8116
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
8117
    freebsd2*)
 
8118
      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8119
      hardcode_direct=yes
 
8120
      hardcode_minus_L=yes
 
8121
      hardcode_shlibpath_var=no
 
8122
      ;;
 
8123
 
 
8124
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
8125
    freebsd* | kfreebsd*-gnu)
 
8126
      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
8127
      hardcode_libdir_flag_spec='-R$libdir'
 
8128
      hardcode_direct=yes
 
8129
      hardcode_shlibpath_var=no
 
8130
      ;;
 
8131
 
 
8132
    hpux9*)
 
8133
      if test "$GCC" = yes; then
 
8134
        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'
 
8135
      else
 
8136
        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'
 
8137
      fi
 
8138
      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8139
      hardcode_libdir_separator=:
 
8140
      hardcode_direct=yes
 
8141
 
 
8142
      # hardcode_minus_L: Not really in the search PATH,
 
8143
      # but as the default location of the library.
 
8144
      hardcode_minus_L=yes
 
8145
      export_dynamic_flag_spec='${wl}-E'
 
8146
      ;;
 
8147
 
 
8148
    hpux10* | hpux11*)
 
8149
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
8150
        case "$host_cpu" in
 
8151
        hppa*64*|ia64*)
 
8152
          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8153
          ;;
 
8154
        *)
 
8155
          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
8156
          ;;
 
8157
        esac
 
8158
      else
 
8159
        case "$host_cpu" in
 
8160
        hppa*64*|ia64*)
 
8161
          archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8162
          ;;
 
8163
        *)
 
8164
          archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
8165
          ;;
 
8166
        esac
 
8167
      fi
 
8168
      if test "$with_gnu_ld" = no; then
 
8169
        case "$host_cpu" in
 
8170
        hppa*64*)
 
8171
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8172
          hardcode_libdir_flag_spec_ld='+b $libdir'
 
8173
          hardcode_libdir_separator=:
 
8174
          hardcode_direct=no
 
8175
          hardcode_shlibpath_var=no
 
8176
          ;;
 
8177
        ia64*)
 
8178
          hardcode_libdir_flag_spec='-L$libdir'
 
8179
          hardcode_direct=no
 
8180
          hardcode_shlibpath_var=no
 
8181
 
 
8182
          # hardcode_minus_L: Not really in the search PATH,
 
8183
          # but as the default location of the library.
 
8184
          hardcode_minus_L=yes
 
8185
          ;;
 
8186
        *)
 
8187
          hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 
8188
          hardcode_libdir_separator=:
 
8189
          hardcode_direct=yes
 
8190
          export_dynamic_flag_spec='${wl}-E'
 
8191
 
 
8192
          # hardcode_minus_L: Not really in the search PATH,
 
8193
          # but as the default location of the library.
 
8194
          hardcode_minus_L=yes
 
8195
          ;;
 
8196
        esac
 
8197
      fi
 
8198
      ;;
 
8199
 
 
8200
    irix5* | irix6* | nonstopux*)
 
8201
      if test "$GCC" = yes; then
 
8202
        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'
 
8203
      else
 
8204
        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'
 
8205
        hardcode_libdir_flag_spec_ld='-rpath $libdir'
 
8206
      fi
 
8207
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8208
      hardcode_libdir_separator=:
 
8209
      link_all_deplibs=yes
 
8210
      ;;
 
8211
 
 
8212
    netbsd* | knetbsd*-gnu)
 
8213
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8214
        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
8215
      else
 
8216
        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
8217
      fi
 
8218
      hardcode_libdir_flag_spec='-R$libdir'
 
8219
      hardcode_direct=yes
 
8220
      hardcode_shlibpath_var=no
 
8221
      ;;
 
8222
 
 
8223
    newsos6)
 
8224
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8225
      hardcode_direct=yes
 
8226
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8227
      hardcode_libdir_separator=:
 
8228
      hardcode_shlibpath_var=no
 
8229
      ;;
 
8230
 
 
8231
    openbsd*)
 
8232
      hardcode_direct=yes
 
8233
      hardcode_shlibpath_var=no
 
8234
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8235
        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8236
        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8237
        export_dynamic_flag_spec='${wl}-E'
 
8238
      else
 
8239
       case $host_os in
 
8240
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
8241
           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
8242
           hardcode_libdir_flag_spec='-R$libdir'
 
8243
           ;;
 
8244
         *)
 
8245
           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
8246
           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 
8247
           ;;
 
8248
       esac
 
8249
      fi
 
8250
      ;;
 
8251
 
 
8252
    os2*)
 
8253
      hardcode_libdir_flag_spec='-L$libdir'
 
8254
      hardcode_minus_L=yes
 
8255
      allow_undefined_flag=unsupported
 
8256
      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'
 
8257
      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
8258
      ;;
 
8259
 
 
8260
    osf3*)
 
8261
      if test "$GCC" = yes; then
 
8262
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8263
        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'
 
8264
      else
 
8265
        allow_undefined_flag=' -expect_unresolved \*'
 
8266
        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'
 
8267
      fi
 
8268
      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8269
      hardcode_libdir_separator=:
 
8270
      ;;
 
8271
 
 
8272
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
8273
      if test "$GCC" = yes; then
 
8274
        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 
8275
        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'
 
8276
        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 
8277
      else
 
8278
        allow_undefined_flag=' -expect_unresolved \*'
 
8279
        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'
 
8280
        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 
8281
        $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'
 
8282
 
 
8283
        # Both c and cxx compiler support -rpath directly
 
8284
        hardcode_libdir_flag_spec='-rpath $libdir'
 
8285
      fi
 
8286
      hardcode_libdir_separator=:
 
8287
      ;;
 
8288
 
 
8289
    sco3.2v5*)
 
8290
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8291
      hardcode_shlibpath_var=no
 
8292
      export_dynamic_flag_spec='${wl}-Bexport'
 
8293
      runpath_var=LD_RUN_PATH
 
8294
      hardcode_runpath_var=yes
 
8295
      ;;
 
8296
 
 
8297
    solaris*)
 
8298
      no_undefined_flag=' -z text'
 
8299
      if test "$GCC" = yes; then
 
8300
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8301
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8302
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
8303
      else
 
8304
        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8305
        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8306
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8307
      fi
 
8308
      hardcode_libdir_flag_spec='-R$libdir'
 
8309
      hardcode_shlibpath_var=no
 
8310
      case $host_os in
 
8311
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
8312
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
8313
        whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 
8314
      esac
 
8315
      link_all_deplibs=yes
 
8316
      ;;
 
8317
 
 
8318
    sunos4*)
 
8319
      if test "x$host_vendor" = xsequent; then
 
8320
        # Use $CC to link under sequent, because it throws in some extra .o
 
8321
        # files that make .init and .fini sections work.
 
8322
        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
8323
      else
 
8324
        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
8325
      fi
 
8326
      hardcode_libdir_flag_spec='-L$libdir'
 
8327
      hardcode_direct=yes
 
8328
      hardcode_minus_L=yes
 
8329
      hardcode_shlibpath_var=no
 
8330
      ;;
 
8331
 
 
8332
    sysv4)
 
8333
      case $host_vendor in
 
8334
        sni)
 
8335
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8336
          hardcode_direct=yes # is this really true???
 
8337
        ;;
 
8338
        siemens)
 
8339
          ## LD is ld it makes a PLAMLIB
 
8340
          ## CC just makes a GrossModule.
 
8341
          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8342
          reload_cmds='$CC -r -o $output$reload_objs'
 
8343
          hardcode_direct=no
 
8344
        ;;
 
8345
        motorola)
 
8346
          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8347
          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 
8348
        ;;
 
8349
      esac
 
8350
      runpath_var='LD_RUN_PATH'
 
8351
      hardcode_shlibpath_var=no
 
8352
      ;;
 
8353
 
 
8354
    sysv4.3*)
 
8355
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8356
      hardcode_shlibpath_var=no
 
8357
      export_dynamic_flag_spec='-Bexport'
 
8358
      ;;
 
8359
 
 
8360
    sysv4*MP*)
 
8361
      if test -d /usr/nec; then
 
8362
        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8363
        hardcode_shlibpath_var=no
 
8364
        runpath_var=LD_RUN_PATH
 
8365
        hardcode_runpath_var=yes
 
8366
        ld_shlibs=yes
 
8367
      fi
 
8368
      ;;
 
8369
 
 
8370
    sysv4.2uw2*)
 
8371
      archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
8372
      hardcode_direct=yes
 
8373
      hardcode_minus_L=no
 
8374
      hardcode_shlibpath_var=no
 
8375
      hardcode_runpath_var=yes
 
8376
      runpath_var=LD_RUN_PATH
 
8377
      ;;
 
8378
 
 
8379
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
8380
      no_undefined_flag='${wl}-z ${wl}text'
 
8381
      if test "$GCC" = yes; then
 
8382
        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8383
      else
 
8384
        archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
8385
      fi
 
8386
      runpath_var='LD_RUN_PATH'
 
8387
      hardcode_shlibpath_var=no
 
8388
      ;;
 
8389
 
 
8390
    sysv5*)
 
8391
      no_undefined_flag=' -z text'
 
8392
      # $CC -shared without GNU ld will not create a library from C++
 
8393
      # object files and a static libstdc++, better avoid it by now
 
8394
      archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8395
      archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
8396
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
8397
      hardcode_libdir_flag_spec=
 
8398
      hardcode_shlibpath_var=no
 
8399
      runpath_var='LD_RUN_PATH'
 
8400
      ;;
 
8401
 
 
8402
    uts4*)
 
8403
      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
8404
      hardcode_libdir_flag_spec='-L$libdir'
 
8405
      hardcode_shlibpath_var=no
 
8406
      ;;
 
8407
 
 
8408
    *)
 
8409
      ld_shlibs=no
 
8410
      ;;
 
8411
    esac
 
8412
  fi
 
8413
 
 
8414
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 
8415
echo "${ECHO_T}$ld_shlibs" >&6
 
8416
test "$ld_shlibs" = no && can_build_shared=no
 
8417
 
 
8418
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
8419
if test "$GCC" = yes; then
 
8420
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
8421
fi
 
8422
 
 
8423
#
 
8424
# Do we need to explicitly link libc?
 
8425
#
 
8426
case "x$archive_cmds_need_lc" in
 
8427
x|xyes)
 
8428
  # Assume -lc should be added
 
8429
  archive_cmds_need_lc=yes
 
8430
 
 
8431
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
8432
    case $archive_cmds in
 
8433
    *'~'*)
 
8434
      # FIXME: we may have to deal with multi-command sequences.
 
8435
      ;;
 
8436
    '$CC '*)
 
8437
      # Test whether the compiler implicitly links with -lc since on some
 
8438
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
8439
      # to ld, don't add -lc before -lgcc.
 
8440
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
8441
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
8442
      $rm conftest*
 
8443
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
8444
 
 
8445
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
8446
  (eval $ac_compile) 2>&5
 
8447
  ac_status=$?
 
8448
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8449
  (exit $ac_status); } 2>conftest.err; then
 
8450
        soname=conftest
 
8451
        lib=conftest
 
8452
        libobjs=conftest.$ac_objext
 
8453
        deplibs=
 
8454
        wl=$lt_prog_compiler_wl
 
8455
        compiler_flags=-v
 
8456
        linker_flags=-v
 
8457
        verstring=
 
8458
        output_objdir=.
 
8459
        libname=conftest
 
8460
        lt_save_allow_undefined_flag=$allow_undefined_flag
 
8461
        allow_undefined_flag=
 
8462
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
8463
  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
8464
  ac_status=$?
 
8465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8466
  (exit $ac_status); }
 
8467
        then
 
8468
          archive_cmds_need_lc=no
 
8469
        else
 
8470
          archive_cmds_need_lc=yes
 
8471
        fi
 
8472
        allow_undefined_flag=$lt_save_allow_undefined_flag
 
8473
      else
 
8474
        cat conftest.err 1>&5
 
8475
      fi
 
8476
      $rm conftest*
 
8477
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 
8478
echo "${ECHO_T}$archive_cmds_need_lc" >&6
 
8479
      ;;
 
8480
    esac
 
8481
  fi
 
8482
  ;;
 
8483
esac
 
8484
 
 
8485
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
8486
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
8487
library_names_spec=
 
8488
libname_spec='lib$name'
 
8489
soname_spec=
 
8490
shrext=".so"
 
8491
postinstall_cmds=
 
8492
postuninstall_cmds=
 
8493
finish_cmds=
 
8494
finish_eval=
 
8495
shlibpath_var=
 
8496
shlibpath_overrides_runpath=unknown
 
8497
version_type=none
 
8498
dynamic_linker="$host_os ld.so"
 
8499
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
8500
if test "$GCC" = yes; then
 
8501
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8502
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
8503
    # if the path contains ";" then we assume it to be the separator
 
8504
    # otherwise default to the standard path separator (i.e. ":") - it is
 
8505
    # assumed that no part of a normal pathname contains ";" but that should
 
8506
    # okay in the real world where ";" in dirpaths is itself problematic.
 
8507
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8508
  else
 
8509
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8510
  fi
 
8511
else
 
8512
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
8513
fi
 
8514
need_lib_prefix=unknown
 
8515
hardcode_into_libs=no
 
8516
 
 
8517
# when you set need_version to no, make sure it does not cause -set_version
 
8518
# flags to be left without arguments
 
8519
need_version=unknown
 
8520
 
 
8521
case $host_os in
 
8522
aix3*)
 
8523
  version_type=linux
 
8524
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
8525
  shlibpath_var=LIBPATH
 
8526
 
 
8527
  # AIX 3 has no versioning support, so we append a major version to the name.
 
8528
  soname_spec='${libname}${release}${shared_ext}$major'
 
8529
  ;;
 
8530
 
 
8531
aix4* | aix5*)
 
8532
  version_type=linux
 
8533
  need_lib_prefix=no
 
8534
  need_version=no
 
8535
  hardcode_into_libs=yes
 
8536
  if test "$host_cpu" = ia64; then
 
8537
    # AIX 5 supports IA64
 
8538
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
8539
    shlibpath_var=LD_LIBRARY_PATH
 
8540
  else
 
8541
    # With GCC up to 2.95.x, collect2 would create an import file
 
8542
    # for dependence libraries.  The import file would start with
 
8543
    # the line `#! .'.  This would cause the generated library to
 
8544
    # depend on `.', always an invalid library.  This was fixed in
 
8545
    # development snapshots of GCC prior to 3.0.
 
8546
    case $host_os in
 
8547
      aix4 | aix4.[01] | aix4.[01].*)
 
8548
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
8549
           echo ' yes '
 
8550
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
8551
        :
 
8552
      else
 
8553
        can_build_shared=no
 
8554
      fi
 
8555
      ;;
 
8556
    esac
 
8557
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
8558
    # soname into executable. Probably we can add versioning support to
 
8559
    # collect2, so additional links can be useful in future.
 
8560
    if test "$aix_use_runtimelinking" = yes; then
 
8561
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
8562
      # instead of lib<name>.a to let people know that these are not
 
8563
      # typical AIX shared libraries.
 
8564
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8565
    else
 
8566
      # We preserve .a as extension for shared libraries through AIX4.2
 
8567
      # and later when we are not doing run time linking.
 
8568
      library_names_spec='${libname}${release}.a $libname.a'
 
8569
      soname_spec='${libname}${release}${shared_ext}$major'
 
8570
    fi
 
8571
    shlibpath_var=LIBPATH
 
8572
  fi
 
8573
  ;;
 
8574
 
 
8575
amigaos*)
 
8576
  library_names_spec='$libname.ixlibrary $libname.a'
 
8577
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
8578
  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'
 
8579
  ;;
 
8580
 
 
8581
beos*)
 
8582
  library_names_spec='${libname}${shared_ext}'
 
8583
  dynamic_linker="$host_os ld.so"
 
8584
  shlibpath_var=LIBRARY_PATH
 
8585
  ;;
 
8586
 
 
8587
bsdi4*)
 
8588
  version_type=linux
 
8589
  need_version=no
 
8590
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8591
  soname_spec='${libname}${release}${shared_ext}$major'
 
8592
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
8593
  shlibpath_var=LD_LIBRARY_PATH
 
8594
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
8595
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
8596
  # the default ld.so.conf also contains /usr/contrib/lib and
 
8597
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
8598
  # libtool to hard-code these into programs
 
8599
  ;;
 
8600
 
 
8601
cygwin* | mingw* | pw32*)
 
8602
  version_type=windows
 
8603
  shrext=".dll"
 
8604
  need_version=no
 
8605
  need_lib_prefix=no
 
8606
 
 
8607
  case $GCC,$host_os in
 
8608
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
8609
    library_names_spec='$libname.dll.a'
 
8610
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
8611
    postinstall_cmds='base_file=`basename \${file}`~
 
8612
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
8613
      dldir=$destdir/`dirname \$dlpath`~
 
8614
      test -d \$dldir || mkdir -p \$dldir~
 
8615
      $install_prog $dir/$dlname \$dldir/$dlname'
 
8616
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
8617
      dlpath=$dir/\$dldll~
 
8618
       $rm \$dlpath'
 
8619
    shlibpath_overrides_runpath=yes
 
8620
 
 
8621
    case $host_os in
 
8622
    cygwin*)
 
8623
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
8624
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8625
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
8626
      ;;
 
8627
    mingw*)
 
8628
      # MinGW DLLs use traditional 'lib' prefix
 
8629
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
8630
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
8631
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
8632
        # It is most probably a Windows format PATH printed by
 
8633
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
8634
        # path with ; separators, and with drive letters. We can handle the
 
8635
        # drive letters (cygwin fileutils understands them), so leave them,
 
8636
        # especially as we might pass files found there to a mingw objdump,
 
8637
        # which wouldn't understand a cygwinified path. Ahh.
 
8638
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
8639
      else
 
8640
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
8641
      fi
 
8642
      ;;
 
8643
    pw32*)
 
8644
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
8645
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
8646
      ;;
 
8647
    esac
 
8648
    ;;
 
8649
 
 
8650
  *)
 
8651
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
8652
    ;;
 
8653
  esac
 
8654
  dynamic_linker='Win32 ld.exe'
 
8655
  # FIXME: first we should search . and the directory the executable is in
 
8656
  shlibpath_var=PATH
 
8657
  ;;
 
8658
 
 
8659
darwin* | rhapsody*)
 
8660
  dynamic_linker="$host_os dyld"
 
8661
  version_type=darwin
 
8662
  need_lib_prefix=no
 
8663
  need_version=no
 
8664
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
8665
  soname_spec='${libname}${release}${major}$shared_ext'
 
8666
  shlibpath_overrides_runpath=yes
 
8667
  shlibpath_var=DYLD_LIBRARY_PATH
 
8668
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
8669
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
8670
  if test "$GCC" = yes; then
 
8671
    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"`
 
8672
  else
 
8673
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
8674
  fi
 
8675
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
8676
  ;;
 
8677
 
 
8678
dgux*)
 
8679
  version_type=linux
 
8680
  need_lib_prefix=no
 
8681
  need_version=no
 
8682
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
8683
  soname_spec='${libname}${release}${shared_ext}$major'
 
8684
  shlibpath_var=LD_LIBRARY_PATH
 
8685
  ;;
 
8686
 
 
8687
freebsd1*)
 
8688
  dynamic_linker=no
 
8689
  ;;
 
8690
 
 
8691
kfreebsd*-gnu)
 
8692
  version_type=linux
 
8693
  need_lib_prefix=no
 
8694
  need_version=no
 
8695
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8696
  soname_spec='${libname}${release}${shared_ext}$major'
 
8697
  shlibpath_var=LD_LIBRARY_PATH
 
8698
  shlibpath_overrides_runpath=no
 
8699
  hardcode_into_libs=yes
 
8700
  dynamic_linker='GNU ld.so'
 
8701
  ;;
 
8702
 
 
8703
freebsd*)
 
8704
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
8705
  version_type=freebsd-$objformat
 
8706
  case $version_type in
 
8707
    freebsd-elf*)
 
8708
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8709
      need_version=no
 
8710
      need_lib_prefix=no
 
8711
      ;;
 
8712
    freebsd-*)
 
8713
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
8714
      need_version=yes
 
8715
      ;;
 
8716
  esac
 
8717
  shlibpath_var=LD_LIBRARY_PATH
 
8718
  case $host_os in
 
8719
  freebsd2*)
 
8720
    shlibpath_overrides_runpath=yes
 
8721
    ;;
 
8722
  freebsd3.01* | freebsdelf3.01*)
 
8723
    shlibpath_overrides_runpath=yes
 
8724
    hardcode_into_libs=yes
 
8725
    ;;
 
8726
  *) # from 3.2 on
 
8727
    shlibpath_overrides_runpath=no
 
8728
    hardcode_into_libs=yes
 
8729
    ;;
 
8730
  esac
 
8731
  ;;
 
8732
 
 
8733
gnu*)
 
8734
  version_type=linux
 
8735
  need_lib_prefix=no
 
8736
  need_version=no
 
8737
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
8738
  soname_spec='${libname}${release}${shared_ext}$major'
 
8739
  shlibpath_var=LD_LIBRARY_PATH
 
8740
  hardcode_into_libs=yes
 
8741
  ;;
 
8742
 
 
8743
hpux9* | hpux10* | hpux11*)
 
8744
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
8745
  # link against other versions.
 
8746
  version_type=sunos
 
8747
  need_lib_prefix=no
 
8748
  need_version=no
 
8749
  case "$host_cpu" in
 
8750
  ia64*)
 
8751
    shrext='.so'
 
8752
    hardcode_into_libs=yes
 
8753
    dynamic_linker="$host_os dld.so"
 
8754
    shlibpath_var=LD_LIBRARY_PATH
 
8755
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8756
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8757
    soname_spec='${libname}${release}${shared_ext}$major'
 
8758
    if test "X$HPUX_IA64_MODE" = X32; then
 
8759
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
8760
    else
 
8761
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
8762
    fi
 
8763
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8764
    ;;
 
8765
   hppa*64*)
 
8766
     shrext='.sl'
 
8767
     hardcode_into_libs=yes
 
8768
     dynamic_linker="$host_os dld.sl"
 
8769
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
8770
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
8771
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8772
     soname_spec='${libname}${release}${shared_ext}$major'
 
8773
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
8774
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
8775
     ;;
 
8776
   *)
 
8777
    shrext='.sl'
 
8778
    dynamic_linker="$host_os dld.sl"
 
8779
    shlibpath_var=SHLIB_PATH
 
8780
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
8781
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8782
    soname_spec='${libname}${release}${shared_ext}$major'
 
8783
    ;;
 
8784
  esac
 
8785
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
8786
  postinstall_cmds='chmod 555 $lib'
 
8787
  ;;
 
8788
 
 
8789
irix5* | irix6* | nonstopux*)
 
8790
  case $host_os in
 
8791
    nonstopux*) version_type=nonstopux ;;
 
8792
    *)
 
8793
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
8794
                version_type=linux
 
8795
        else
 
8796
                version_type=irix
 
8797
        fi ;;
 
8798
  esac
 
8799
  need_lib_prefix=no
 
8800
  need_version=no
 
8801
  soname_spec='${libname}${release}${shared_ext}$major'
 
8802
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
8803
  case $host_os in
 
8804
  irix5* | nonstopux*)
 
8805
    libsuff= shlibsuff=
 
8806
    ;;
 
8807
  *)
 
8808
    case $LD in # libtool.m4 will add one of these switches to LD
 
8809
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
8810
      libsuff= shlibsuff= libmagic=32-bit;;
 
8811
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
8812
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
8813
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
8814
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
8815
    *) libsuff= shlibsuff= libmagic=never-match;;
 
8816
    esac
 
8817
    ;;
 
8818
  esac
 
8819
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
8820
  shlibpath_overrides_runpath=no
 
8821
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
8822
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
8823
  hardcode_into_libs=yes
 
8824
  ;;
 
8825
 
 
8826
# No shared lib support for Linux oldld, aout, or coff.
 
8827
linux*oldld* | linux*aout* | linux*coff*)
 
8828
  dynamic_linker=no
 
8829
  ;;
 
8830
 
 
8831
# This must be Linux ELF.
 
8832
linux*)
 
8833
  version_type=linux
 
8834
  need_lib_prefix=no
 
8835
  need_version=no
 
8836
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8837
  soname_spec='${libname}${release}${shared_ext}$major'
 
8838
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
8839
  shlibpath_var=LD_LIBRARY_PATH
 
8840
  shlibpath_overrides_runpath=no
 
8841
  # This implies no fast_install, which is unacceptable.
 
8842
  # Some rework will be needed to allow for fast_install
 
8843
  # before this can be enabled.
 
8844
  hardcode_into_libs=yes
 
8845
 
 
8846
  # Append ld.so.conf contents to the search path
 
8847
  if test -f /etc/ld.so.conf; then
 
8848
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
8849
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
8850
  fi
 
8851
 
 
8852
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
8853
  # powerpc, because MkLinux only supported shared libraries with the
 
8854
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
8855
  # most powerpc-linux boxes support dynamic linking these days and
 
8856
  # people can always --disable-shared, the test was removed, and we
 
8857
  # assume the GNU/Linux dynamic linker is in use.
 
8858
  dynamic_linker='GNU/Linux ld.so'
 
8859
  ;;
 
8860
 
 
8861
knetbsd*-gnu)
 
8862
  version_type=linux
 
8863
  need_lib_prefix=no
 
8864
  need_version=no
 
8865
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8866
  soname_spec='${libname}${release}${shared_ext}$major'
 
8867
  shlibpath_var=LD_LIBRARY_PATH
 
8868
  shlibpath_overrides_runpath=no
 
8869
  hardcode_into_libs=yes
 
8870
  dynamic_linker='GNU ld.so'
 
8871
  ;;
 
8872
 
 
8873
netbsd*)
 
8874
  version_type=sunos
 
8875
  need_lib_prefix=no
 
8876
  need_version=no
 
8877
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
8878
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8879
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8880
    dynamic_linker='NetBSD (a.out) ld.so'
 
8881
  else
 
8882
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
8883
    soname_spec='${libname}${release}${shared_ext}$major'
 
8884
    dynamic_linker='NetBSD ld.elf_so'
 
8885
  fi
 
8886
  shlibpath_var=LD_LIBRARY_PATH
 
8887
  shlibpath_overrides_runpath=yes
 
8888
  hardcode_into_libs=yes
 
8889
  ;;
 
8890
 
 
8891
newsos6)
 
8892
  version_type=linux
 
8893
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8894
  shlibpath_var=LD_LIBRARY_PATH
 
8895
  shlibpath_overrides_runpath=yes
 
8896
  ;;
 
8897
 
 
8898
nto-qnx*)
 
8899
  version_type=linux
 
8900
  need_lib_prefix=no
 
8901
  need_version=no
 
8902
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8903
  soname_spec='${libname}${release}${shared_ext}$major'
 
8904
  shlibpath_var=LD_LIBRARY_PATH
 
8905
  shlibpath_overrides_runpath=yes
 
8906
  ;;
 
8907
 
 
8908
openbsd*)
 
8909
  version_type=sunos
 
8910
  need_lib_prefix=no
 
8911
  need_version=yes
 
8912
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8913
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
8914
  shlibpath_var=LD_LIBRARY_PATH
 
8915
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
8916
    case $host_os in
 
8917
      openbsd2.[89] | openbsd2.[89].*)
 
8918
        shlibpath_overrides_runpath=no
 
8919
        ;;
 
8920
      *)
 
8921
        shlibpath_overrides_runpath=yes
 
8922
        ;;
 
8923
      esac
 
8924
  else
 
8925
    shlibpath_overrides_runpath=yes
 
8926
  fi
 
8927
  ;;
 
8928
 
 
8929
os2*)
 
8930
  libname_spec='$name'
 
8931
  shrext=".dll"
 
8932
  need_lib_prefix=no
 
8933
  library_names_spec='$libname${shared_ext} $libname.a'
 
8934
  dynamic_linker='OS/2 ld.exe'
 
8935
  shlibpath_var=LIBPATH
 
8936
  ;;
 
8937
 
 
8938
osf3* | osf4* | osf5*)
 
8939
  version_type=osf
 
8940
  need_lib_prefix=no
 
8941
  need_version=no
 
8942
  soname_spec='${libname}${release}${shared_ext}$major'
 
8943
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8944
  shlibpath_var=LD_LIBRARY_PATH
 
8945
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
8946
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
8947
  ;;
 
8948
 
 
8949
sco3.2v5*)
 
8950
  version_type=osf
 
8951
  soname_spec='${libname}${release}${shared_ext}$major'
 
8952
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8953
  shlibpath_var=LD_LIBRARY_PATH
 
8954
  ;;
 
8955
 
 
8956
solaris*)
 
8957
  version_type=linux
 
8958
  need_lib_prefix=no
 
8959
  need_version=no
 
8960
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8961
  soname_spec='${libname}${release}${shared_ext}$major'
 
8962
  shlibpath_var=LD_LIBRARY_PATH
 
8963
  shlibpath_overrides_runpath=yes
 
8964
  hardcode_into_libs=yes
 
8965
  # ldd complains unless libraries are executable
 
8966
  postinstall_cmds='chmod +x $lib'
 
8967
  ;;
 
8968
 
 
8969
sunos4*)
 
8970
  version_type=sunos
 
8971
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
8972
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
8973
  shlibpath_var=LD_LIBRARY_PATH
 
8974
  shlibpath_overrides_runpath=yes
 
8975
  if test "$with_gnu_ld" = yes; then
 
8976
    need_lib_prefix=no
 
8977
  fi
 
8978
  need_version=yes
 
8979
  ;;
 
8980
 
 
8981
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
8982
  version_type=linux
 
8983
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
8984
  soname_spec='${libname}${release}${shared_ext}$major'
 
8985
  shlibpath_var=LD_LIBRARY_PATH
 
8986
  case $host_vendor in
 
8987
    sni)
 
8988
      shlibpath_overrides_runpath=no
 
8989
      need_lib_prefix=no
 
8990
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
8991
      runpath_var=LD_RUN_PATH
 
8992
      ;;
 
8993
    siemens)
 
8994
      need_lib_prefix=no
 
8995
      ;;
 
8996
    motorola)
 
8997
      need_lib_prefix=no
 
8998
      need_version=no
 
8999
      shlibpath_overrides_runpath=no
 
9000
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
9001
      ;;
 
9002
  esac
 
9003
  ;;
 
9004
 
 
9005
sysv4*MP*)
 
9006
  if test -d /usr/nec ;then
 
9007
    version_type=linux
 
9008
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
9009
    soname_spec='$libname${shared_ext}.$major'
 
9010
    shlibpath_var=LD_LIBRARY_PATH
 
9011
  fi
 
9012
  ;;
 
9013
 
 
9014
uts4*)
 
9015
  version_type=linux
 
9016
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
9017
  soname_spec='${libname}${release}${shared_ext}$major'
 
9018
  shlibpath_var=LD_LIBRARY_PATH
 
9019
  ;;
 
9020
 
 
9021
*)
 
9022
  dynamic_linker=no
 
9023
  ;;
 
9024
esac
 
9025
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
9026
echo "${ECHO_T}$dynamic_linker" >&6
 
9027
test "$dynamic_linker" = no && can_build_shared=no
 
9028
 
 
9029
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
9030
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
9031
hardcode_action=
 
9032
if test -n "$hardcode_libdir_flag_spec" || \
 
9033
   test -n "$runpath_var " || \
 
9034
   test "X$hardcode_automatic"="Xyes" ; then
 
9035
 
 
9036
  # We can hardcode non-existant directories.
 
9037
  if test "$hardcode_direct" != no &&
 
9038
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
9039
     # have to relink, otherwise we might link with an installed library
 
9040
     # when we should be linking with a yet-to-be-installed one
 
9041
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 
9042
     test "$hardcode_minus_L" != no; then
 
9043
    # Linking always hardcodes the temporary library directory.
 
9044
    hardcode_action=relink
 
9045
  else
 
9046
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
9047
    hardcode_action=immediate
 
9048
  fi
 
9049
else
 
9050
  # We cannot hardcode anything, or else we can only hardcode existing
 
9051
  # directories.
 
9052
  hardcode_action=unsupported
 
9053
fi
 
9054
echo "$as_me:$LINENO: result: $hardcode_action" >&5
 
9055
echo "${ECHO_T}$hardcode_action" >&6
 
9056
 
 
9057
if test "$hardcode_action" = relink; then
 
9058
  # Fast installation is not supported
 
9059
  enable_fast_install=no
 
9060
elif test "$shlibpath_overrides_runpath" = yes ||
 
9061
     test "$enable_shared" = no; then
 
9062
  # Fast installation is not necessary
 
9063
  enable_fast_install=needless
 
9064
fi
 
9065
 
 
9066
striplib=
 
9067
old_striplib=
 
9068
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
9069
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
9070
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
9071
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
9072
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
9073
  echo "$as_me:$LINENO: result: yes" >&5
 
9074
echo "${ECHO_T}yes" >&6
 
9075
else
 
9076
# FIXME - insert some real tests, host_os isn't really good enough
 
9077
  case $host_os in
 
9078
   darwin*)
 
9079
       if test -n "$STRIP" ; then
 
9080
         striplib="$STRIP -x"
 
9081
         echo "$as_me:$LINENO: result: yes" >&5
 
9082
echo "${ECHO_T}yes" >&6
 
9083
       else
 
9084
  echo "$as_me:$LINENO: result: no" >&5
 
9085
echo "${ECHO_T}no" >&6
 
9086
fi
 
9087
       ;;
 
9088
   *)
 
9089
  echo "$as_me:$LINENO: result: no" >&5
 
9090
echo "${ECHO_T}no" >&6
 
9091
    ;;
 
9092
  esac
 
9093
fi
 
9094
 
 
9095
if test "x$enable_dlopen" != xyes; then
 
9096
  enable_dlopen=unknown
 
9097
  enable_dlopen_self=unknown
 
9098
  enable_dlopen_self_static=unknown
 
9099
else
 
9100
  lt_cv_dlopen=no
 
9101
  lt_cv_dlopen_libs=
 
9102
 
 
9103
  case $host_os in
 
9104
  beos*)
 
9105
    lt_cv_dlopen="load_add_on"
 
9106
    lt_cv_dlopen_libs=
 
9107
    lt_cv_dlopen_self=yes
 
9108
    ;;
 
9109
 
 
9110
  mingw* | pw32*)
 
9111
    lt_cv_dlopen="LoadLibrary"
 
9112
    lt_cv_dlopen_libs=
 
9113
   ;;
 
9114
 
 
9115
  cygwin*)
 
9116
    lt_cv_dlopen="dlopen"
 
9117
    lt_cv_dlopen_libs=
 
9118
   ;;
 
9119
 
 
9120
  darwin*)
 
9121
  # if libdl is installed we need to link against it
 
9122
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9123
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9124
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9125
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9126
else
 
9127
  ac_check_lib_save_LIBS=$LIBS
 
9128
LIBS="-ldl  $LIBS"
 
9129
cat >conftest.$ac_ext <<_ACEOF
 
9130
/* confdefs.h.  */
 
9131
_ACEOF
 
9132
cat confdefs.h >>conftest.$ac_ext
 
9133
cat >>conftest.$ac_ext <<_ACEOF
 
9134
/* end confdefs.h.  */
 
9135
 
 
9136
/* Override any gcc2 internal prototype to avoid an error.  */
 
9137
#ifdef __cplusplus
 
9138
extern "C"
 
9139
#endif
 
9140
/* We use char because int might match the return type of a gcc2
 
9141
   builtin and then its argument prototype would still apply.  */
 
9142
char dlopen ();
 
9143
int
 
9144
main ()
 
9145
{
 
9146
dlopen ();
 
9147
  ;
 
9148
  return 0;
 
9149
}
 
9150
_ACEOF
 
9151
rm -f conftest.$ac_objext conftest$ac_exeext
 
9152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9153
  (eval $ac_link) 2>conftest.er1
 
9154
  ac_status=$?
 
9155
  grep -v '^ *+' conftest.er1 >conftest.err
 
9156
  rm -f conftest.er1
 
9157
  cat conftest.err >&5
 
9158
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9159
  (exit $ac_status); } &&
 
9160
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9161
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9162
  (eval $ac_try) 2>&5
 
9163
  ac_status=$?
 
9164
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9165
  (exit $ac_status); }; } &&
 
9166
         { ac_try='test -s conftest$ac_exeext'
 
9167
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9168
  (eval $ac_try) 2>&5
 
9169
  ac_status=$?
 
9170
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9171
  (exit $ac_status); }; }; then
 
9172
  ac_cv_lib_dl_dlopen=yes
 
9173
else
 
9174
  echo "$as_me: failed program was:" >&5
 
9175
sed 's/^/| /' conftest.$ac_ext >&5
 
9176
 
 
9177
ac_cv_lib_dl_dlopen=no
 
9178
fi
 
9179
rm -f conftest.err conftest.$ac_objext \
 
9180
      conftest$ac_exeext conftest.$ac_ext
 
9181
LIBS=$ac_check_lib_save_LIBS
 
9182
fi
 
9183
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9184
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9185
if test $ac_cv_lib_dl_dlopen = yes; then
 
9186
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9187
else
 
9188
 
 
9189
    lt_cv_dlopen="dyld"
 
9190
    lt_cv_dlopen_libs=
 
9191
    lt_cv_dlopen_self=yes
 
9192
 
 
9193
fi
 
9194
 
 
9195
   ;;
 
9196
 
 
9197
  *)
 
9198
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
9199
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
9200
if test "${ac_cv_func_shl_load+set}" = set; then
 
9201
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9202
else
 
9203
  cat >conftest.$ac_ext <<_ACEOF
 
9204
/* confdefs.h.  */
 
9205
_ACEOF
 
9206
cat confdefs.h >>conftest.$ac_ext
 
9207
cat >>conftest.$ac_ext <<_ACEOF
 
9208
/* end confdefs.h.  */
 
9209
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
9210
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9211
#define shl_load innocuous_shl_load
 
9212
 
 
9213
/* System header to define __stub macros and hopefully few prototypes,
 
9214
    which can conflict with char shl_load (); below.
 
9215
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9216
    <limits.h> exists even on freestanding compilers.  */
 
9217
 
 
9218
#ifdef __STDC__
 
9219
# include <limits.h>
 
9220
#else
 
9221
# include <assert.h>
 
9222
#endif
 
9223
 
 
9224
#undef shl_load
 
9225
 
 
9226
/* Override any gcc2 internal prototype to avoid an error.  */
 
9227
#ifdef __cplusplus
 
9228
extern "C"
 
9229
{
 
9230
#endif
 
9231
/* We use char because int might match the return type of a gcc2
 
9232
   builtin and then its argument prototype would still apply.  */
 
9233
char shl_load ();
 
9234
/* The GNU C library defines this for functions which it implements
 
9235
    to always fail with ENOSYS.  Some functions are actually named
 
9236
    something starting with __ and the normal name is an alias.  */
 
9237
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
9238
choke me
 
9239
#else
 
9240
char (*f) () = shl_load;
 
9241
#endif
 
9242
#ifdef __cplusplus
 
9243
}
 
9244
#endif
 
9245
 
 
9246
int
 
9247
main ()
 
9248
{
 
9249
return f != shl_load;
 
9250
  ;
 
9251
  return 0;
 
9252
}
 
9253
_ACEOF
 
9254
rm -f conftest.$ac_objext conftest$ac_exeext
 
9255
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9256
  (eval $ac_link) 2>conftest.er1
 
9257
  ac_status=$?
 
9258
  grep -v '^ *+' conftest.er1 >conftest.err
 
9259
  rm -f conftest.er1
 
9260
  cat conftest.err >&5
 
9261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9262
  (exit $ac_status); } &&
 
9263
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9264
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9265
  (eval $ac_try) 2>&5
 
9266
  ac_status=$?
 
9267
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9268
  (exit $ac_status); }; } &&
 
9269
         { ac_try='test -s conftest$ac_exeext'
 
9270
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9271
  (eval $ac_try) 2>&5
 
9272
  ac_status=$?
 
9273
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9274
  (exit $ac_status); }; }; then
 
9275
  ac_cv_func_shl_load=yes
 
9276
else
 
9277
  echo "$as_me: failed program was:" >&5
 
9278
sed 's/^/| /' conftest.$ac_ext >&5
 
9279
 
 
9280
ac_cv_func_shl_load=no
 
9281
fi
 
9282
rm -f conftest.err conftest.$ac_objext \
 
9283
      conftest$ac_exeext conftest.$ac_ext
 
9284
fi
 
9285
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
9286
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
9287
if test $ac_cv_func_shl_load = yes; then
 
9288
  lt_cv_dlopen="shl_load"
 
9289
else
 
9290
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
9291
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
9292
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
9293
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9294
else
 
9295
  ac_check_lib_save_LIBS=$LIBS
 
9296
LIBS="-ldld  $LIBS"
 
9297
cat >conftest.$ac_ext <<_ACEOF
 
9298
/* confdefs.h.  */
 
9299
_ACEOF
 
9300
cat confdefs.h >>conftest.$ac_ext
 
9301
cat >>conftest.$ac_ext <<_ACEOF
 
9302
/* end confdefs.h.  */
 
9303
 
 
9304
/* Override any gcc2 internal prototype to avoid an error.  */
 
9305
#ifdef __cplusplus
 
9306
extern "C"
 
9307
#endif
 
9308
/* We use char because int might match the return type of a gcc2
 
9309
   builtin and then its argument prototype would still apply.  */
 
9310
char shl_load ();
 
9311
int
 
9312
main ()
 
9313
{
 
9314
shl_load ();
 
9315
  ;
 
9316
  return 0;
 
9317
}
 
9318
_ACEOF
 
9319
rm -f conftest.$ac_objext conftest$ac_exeext
 
9320
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9321
  (eval $ac_link) 2>conftest.er1
 
9322
  ac_status=$?
 
9323
  grep -v '^ *+' conftest.er1 >conftest.err
 
9324
  rm -f conftest.er1
 
9325
  cat conftest.err >&5
 
9326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9327
  (exit $ac_status); } &&
 
9328
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9330
  (eval $ac_try) 2>&5
 
9331
  ac_status=$?
 
9332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9333
  (exit $ac_status); }; } &&
 
9334
         { ac_try='test -s conftest$ac_exeext'
 
9335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9336
  (eval $ac_try) 2>&5
 
9337
  ac_status=$?
 
9338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9339
  (exit $ac_status); }; }; then
 
9340
  ac_cv_lib_dld_shl_load=yes
 
9341
else
 
9342
  echo "$as_me: failed program was:" >&5
 
9343
sed 's/^/| /' conftest.$ac_ext >&5
 
9344
 
 
9345
ac_cv_lib_dld_shl_load=no
 
9346
fi
 
9347
rm -f conftest.err conftest.$ac_objext \
 
9348
      conftest$ac_exeext conftest.$ac_ext
 
9349
LIBS=$ac_check_lib_save_LIBS
 
9350
fi
 
9351
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
9352
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
9353
if test $ac_cv_lib_dld_shl_load = yes; then
 
9354
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
9355
else
 
9356
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
9357
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
9358
if test "${ac_cv_func_dlopen+set}" = set; then
 
9359
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9360
else
 
9361
  cat >conftest.$ac_ext <<_ACEOF
 
9362
/* confdefs.h.  */
 
9363
_ACEOF
 
9364
cat confdefs.h >>conftest.$ac_ext
 
9365
cat >>conftest.$ac_ext <<_ACEOF
 
9366
/* end confdefs.h.  */
 
9367
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
9368
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9369
#define dlopen innocuous_dlopen
 
9370
 
 
9371
/* System header to define __stub macros and hopefully few prototypes,
 
9372
    which can conflict with char dlopen (); below.
 
9373
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9374
    <limits.h> exists even on freestanding compilers.  */
 
9375
 
 
9376
#ifdef __STDC__
 
9377
# include <limits.h>
 
9378
#else
 
9379
# include <assert.h>
 
9380
#endif
 
9381
 
 
9382
#undef dlopen
 
9383
 
 
9384
/* Override any gcc2 internal prototype to avoid an error.  */
 
9385
#ifdef __cplusplus
 
9386
extern "C"
 
9387
{
 
9388
#endif
 
9389
/* We use char because int might match the return type of a gcc2
 
9390
   builtin and then its argument prototype would still apply.  */
 
9391
char dlopen ();
 
9392
/* The GNU C library defines this for functions which it implements
 
9393
    to always fail with ENOSYS.  Some functions are actually named
 
9394
    something starting with __ and the normal name is an alias.  */
 
9395
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
9396
choke me
 
9397
#else
 
9398
char (*f) () = dlopen;
 
9399
#endif
 
9400
#ifdef __cplusplus
 
9401
}
 
9402
#endif
 
9403
 
 
9404
int
 
9405
main ()
 
9406
{
 
9407
return f != dlopen;
 
9408
  ;
 
9409
  return 0;
 
9410
}
 
9411
_ACEOF
 
9412
rm -f conftest.$ac_objext conftest$ac_exeext
 
9413
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9414
  (eval $ac_link) 2>conftest.er1
 
9415
  ac_status=$?
 
9416
  grep -v '^ *+' conftest.er1 >conftest.err
 
9417
  rm -f conftest.er1
 
9418
  cat conftest.err >&5
 
9419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9420
  (exit $ac_status); } &&
 
9421
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9423
  (eval $ac_try) 2>&5
 
9424
  ac_status=$?
 
9425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9426
  (exit $ac_status); }; } &&
 
9427
         { ac_try='test -s conftest$ac_exeext'
 
9428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9429
  (eval $ac_try) 2>&5
 
9430
  ac_status=$?
 
9431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9432
  (exit $ac_status); }; }; then
 
9433
  ac_cv_func_dlopen=yes
 
9434
else
 
9435
  echo "$as_me: failed program was:" >&5
 
9436
sed 's/^/| /' conftest.$ac_ext >&5
 
9437
 
 
9438
ac_cv_func_dlopen=no
 
9439
fi
 
9440
rm -f conftest.err conftest.$ac_objext \
 
9441
      conftest$ac_exeext conftest.$ac_ext
 
9442
fi
 
9443
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
9444
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
9445
if test $ac_cv_func_dlopen = yes; then
 
9446
  lt_cv_dlopen="dlopen"
 
9447
else
 
9448
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
9449
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
9450
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
9451
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9452
else
 
9453
  ac_check_lib_save_LIBS=$LIBS
 
9454
LIBS="-ldl  $LIBS"
 
9455
cat >conftest.$ac_ext <<_ACEOF
 
9456
/* confdefs.h.  */
 
9457
_ACEOF
 
9458
cat confdefs.h >>conftest.$ac_ext
 
9459
cat >>conftest.$ac_ext <<_ACEOF
 
9460
/* end confdefs.h.  */
 
9461
 
 
9462
/* Override any gcc2 internal prototype to avoid an error.  */
 
9463
#ifdef __cplusplus
 
9464
extern "C"
 
9465
#endif
 
9466
/* We use char because int might match the return type of a gcc2
 
9467
   builtin and then its argument prototype would still apply.  */
 
9468
char dlopen ();
 
9469
int
 
9470
main ()
 
9471
{
 
9472
dlopen ();
 
9473
  ;
 
9474
  return 0;
 
9475
}
 
9476
_ACEOF
 
9477
rm -f conftest.$ac_objext conftest$ac_exeext
 
9478
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9479
  (eval $ac_link) 2>conftest.er1
 
9480
  ac_status=$?
 
9481
  grep -v '^ *+' conftest.er1 >conftest.err
 
9482
  rm -f conftest.er1
 
9483
  cat conftest.err >&5
 
9484
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9485
  (exit $ac_status); } &&
 
9486
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9487
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9488
  (eval $ac_try) 2>&5
 
9489
  ac_status=$?
 
9490
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9491
  (exit $ac_status); }; } &&
 
9492
         { ac_try='test -s conftest$ac_exeext'
 
9493
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9494
  (eval $ac_try) 2>&5
 
9495
  ac_status=$?
 
9496
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9497
  (exit $ac_status); }; }; then
 
9498
  ac_cv_lib_dl_dlopen=yes
 
9499
else
 
9500
  echo "$as_me: failed program was:" >&5
 
9501
sed 's/^/| /' conftest.$ac_ext >&5
 
9502
 
 
9503
ac_cv_lib_dl_dlopen=no
 
9504
fi
 
9505
rm -f conftest.err conftest.$ac_objext \
 
9506
      conftest$ac_exeext conftest.$ac_ext
 
9507
LIBS=$ac_check_lib_save_LIBS
 
9508
fi
 
9509
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
9510
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
9511
if test $ac_cv_lib_dl_dlopen = yes; then
 
9512
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
9513
else
 
9514
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
9515
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
9516
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
9517
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9518
else
 
9519
  ac_check_lib_save_LIBS=$LIBS
 
9520
LIBS="-lsvld  $LIBS"
 
9521
cat >conftest.$ac_ext <<_ACEOF
 
9522
/* confdefs.h.  */
 
9523
_ACEOF
 
9524
cat confdefs.h >>conftest.$ac_ext
 
9525
cat >>conftest.$ac_ext <<_ACEOF
 
9526
/* end confdefs.h.  */
 
9527
 
 
9528
/* Override any gcc2 internal prototype to avoid an error.  */
 
9529
#ifdef __cplusplus
 
9530
extern "C"
 
9531
#endif
 
9532
/* We use char because int might match the return type of a gcc2
 
9533
   builtin and then its argument prototype would still apply.  */
 
9534
char dlopen ();
 
9535
int
 
9536
main ()
 
9537
{
 
9538
dlopen ();
 
9539
  ;
 
9540
  return 0;
 
9541
}
 
9542
_ACEOF
 
9543
rm -f conftest.$ac_objext conftest$ac_exeext
 
9544
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9545
  (eval $ac_link) 2>conftest.er1
 
9546
  ac_status=$?
 
9547
  grep -v '^ *+' conftest.er1 >conftest.err
 
9548
  rm -f conftest.er1
 
9549
  cat conftest.err >&5
 
9550
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9551
  (exit $ac_status); } &&
 
9552
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9553
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9554
  (eval $ac_try) 2>&5
 
9555
  ac_status=$?
 
9556
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9557
  (exit $ac_status); }; } &&
 
9558
         { ac_try='test -s conftest$ac_exeext'
 
9559
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9560
  (eval $ac_try) 2>&5
 
9561
  ac_status=$?
 
9562
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9563
  (exit $ac_status); }; }; then
 
9564
  ac_cv_lib_svld_dlopen=yes
 
9565
else
 
9566
  echo "$as_me: failed program was:" >&5
 
9567
sed 's/^/| /' conftest.$ac_ext >&5
 
9568
 
 
9569
ac_cv_lib_svld_dlopen=no
 
9570
fi
 
9571
rm -f conftest.err conftest.$ac_objext \
 
9572
      conftest$ac_exeext conftest.$ac_ext
 
9573
LIBS=$ac_check_lib_save_LIBS
 
9574
fi
 
9575
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
9576
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
9577
if test $ac_cv_lib_svld_dlopen = yes; then
 
9578
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
9579
else
 
9580
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
9581
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
9582
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
9583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9584
else
 
9585
  ac_check_lib_save_LIBS=$LIBS
 
9586
LIBS="-ldld  $LIBS"
 
9587
cat >conftest.$ac_ext <<_ACEOF
 
9588
/* confdefs.h.  */
 
9589
_ACEOF
 
9590
cat confdefs.h >>conftest.$ac_ext
 
9591
cat >>conftest.$ac_ext <<_ACEOF
 
9592
/* end confdefs.h.  */
 
9593
 
 
9594
/* Override any gcc2 internal prototype to avoid an error.  */
 
9595
#ifdef __cplusplus
 
9596
extern "C"
 
9597
#endif
 
9598
/* We use char because int might match the return type of a gcc2
 
9599
   builtin and then its argument prototype would still apply.  */
 
9600
char dld_link ();
 
9601
int
 
9602
main ()
 
9603
{
 
9604
dld_link ();
 
9605
  ;
 
9606
  return 0;
 
9607
}
 
9608
_ACEOF
 
9609
rm -f conftest.$ac_objext conftest$ac_exeext
 
9610
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9611
  (eval $ac_link) 2>conftest.er1
 
9612
  ac_status=$?
 
9613
  grep -v '^ *+' conftest.er1 >conftest.err
 
9614
  rm -f conftest.er1
 
9615
  cat conftest.err >&5
 
9616
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9617
  (exit $ac_status); } &&
 
9618
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
9619
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9620
  (eval $ac_try) 2>&5
 
9621
  ac_status=$?
 
9622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9623
  (exit $ac_status); }; } &&
 
9624
         { ac_try='test -s conftest$ac_exeext'
 
9625
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
9626
  (eval $ac_try) 2>&5
 
9627
  ac_status=$?
 
9628
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9629
  (exit $ac_status); }; }; then
 
9630
  ac_cv_lib_dld_dld_link=yes
 
9631
else
 
9632
  echo "$as_me: failed program was:" >&5
 
9633
sed 's/^/| /' conftest.$ac_ext >&5
 
9634
 
 
9635
ac_cv_lib_dld_dld_link=no
 
9636
fi
 
9637
rm -f conftest.err conftest.$ac_objext \
 
9638
      conftest$ac_exeext conftest.$ac_ext
 
9639
LIBS=$ac_check_lib_save_LIBS
 
9640
fi
 
9641
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
9642
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
9643
if test $ac_cv_lib_dld_dld_link = yes; then
 
9644
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
9645
fi
 
9646
 
 
9647
 
 
9648
fi
 
9649
 
 
9650
 
 
9651
fi
 
9652
 
 
9653
 
 
9654
fi
 
9655
 
 
9656
 
 
9657
fi
 
9658
 
 
9659
 
 
9660
fi
 
9661
 
 
9662
    ;;
 
9663
  esac
 
9664
 
 
9665
  if test "x$lt_cv_dlopen" != xno; then
 
9666
    enable_dlopen=yes
 
9667
  else
 
9668
    enable_dlopen=no
 
9669
  fi
 
9670
 
 
9671
  case $lt_cv_dlopen in
 
9672
  dlopen)
 
9673
    save_CPPFLAGS="$CPPFLAGS"
 
9674
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
9675
 
 
9676
    save_LDFLAGS="$LDFLAGS"
 
9677
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
9678
 
 
9679
    save_LIBS="$LIBS"
 
9680
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
9681
 
 
9682
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
9683
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
9684
if test "${lt_cv_dlopen_self+set}" = set; then
 
9685
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9686
else
 
9687
          if test "$cross_compiling" = yes; then :
 
9688
  lt_cv_dlopen_self=cross
 
9689
else
 
9690
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9691
  lt_status=$lt_dlunknown
 
9692
  cat > conftest.$ac_ext <<EOF
 
9693
#line 9693 "configure"
 
9694
#include "confdefs.h"
 
9695
 
 
9696
#if HAVE_DLFCN_H
 
9697
#include <dlfcn.h>
 
9698
#endif
 
9699
 
 
9700
#include <stdio.h>
 
9701
 
 
9702
#ifdef RTLD_GLOBAL
 
9703
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9704
#else
 
9705
#  ifdef DL_GLOBAL
 
9706
#    define LT_DLGLOBAL         DL_GLOBAL
 
9707
#  else
 
9708
#    define LT_DLGLOBAL         0
 
9709
#  endif
 
9710
#endif
 
9711
 
 
9712
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9713
   find out it does not work in some platform. */
 
9714
#ifndef LT_DLLAZY_OR_NOW
 
9715
#  ifdef RTLD_LAZY
 
9716
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9717
#  else
 
9718
#    ifdef DL_LAZY
 
9719
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9720
#    else
 
9721
#      ifdef RTLD_NOW
 
9722
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9723
#      else
 
9724
#        ifdef DL_NOW
 
9725
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9726
#        else
 
9727
#          define LT_DLLAZY_OR_NOW      0
 
9728
#        endif
 
9729
#      endif
 
9730
#    endif
 
9731
#  endif
 
9732
#endif
 
9733
 
 
9734
#ifdef __cplusplus
 
9735
extern "C" void exit (int);
 
9736
#endif
 
9737
 
 
9738
void fnord() { int i=42;}
 
9739
int main ()
 
9740
{
 
9741
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9742
  int status = $lt_dlunknown;
 
9743
 
 
9744
  if (self)
 
9745
    {
 
9746
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9747
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9748
      /* dlclose (self); */
 
9749
    }
 
9750
 
 
9751
    exit (status);
 
9752
}
 
9753
EOF
 
9754
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9755
  (eval $ac_link) 2>&5
 
9756
  ac_status=$?
 
9757
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9758
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9759
    (./conftest; exit; ) 2>/dev/null
 
9760
    lt_status=$?
 
9761
    case x$lt_status in
 
9762
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
9763
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
9764
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
9765
    esac
 
9766
  else :
 
9767
    # compilation failed
 
9768
    lt_cv_dlopen_self=no
 
9769
  fi
 
9770
fi
 
9771
rm -fr conftest*
 
9772
 
 
9773
 
 
9774
fi
 
9775
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
9776
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
9777
 
 
9778
    if test "x$lt_cv_dlopen_self" = xyes; then
 
9779
      LDFLAGS="$LDFLAGS $link_static_flag"
 
9780
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
9781
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
9782
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
9783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9784
else
 
9785
          if test "$cross_compiling" = yes; then :
 
9786
  lt_cv_dlopen_self_static=cross
 
9787
else
 
9788
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
9789
  lt_status=$lt_dlunknown
 
9790
  cat > conftest.$ac_ext <<EOF
 
9791
#line 9791 "configure"
 
9792
#include "confdefs.h"
 
9793
 
 
9794
#if HAVE_DLFCN_H
 
9795
#include <dlfcn.h>
 
9796
#endif
 
9797
 
 
9798
#include <stdio.h>
 
9799
 
 
9800
#ifdef RTLD_GLOBAL
 
9801
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
9802
#else
 
9803
#  ifdef DL_GLOBAL
 
9804
#    define LT_DLGLOBAL         DL_GLOBAL
 
9805
#  else
 
9806
#    define LT_DLGLOBAL         0
 
9807
#  endif
 
9808
#endif
 
9809
 
 
9810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
9811
   find out it does not work in some platform. */
 
9812
#ifndef LT_DLLAZY_OR_NOW
 
9813
#  ifdef RTLD_LAZY
 
9814
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
9815
#  else
 
9816
#    ifdef DL_LAZY
 
9817
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
9818
#    else
 
9819
#      ifdef RTLD_NOW
 
9820
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
9821
#      else
 
9822
#        ifdef DL_NOW
 
9823
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
9824
#        else
 
9825
#          define LT_DLLAZY_OR_NOW      0
 
9826
#        endif
 
9827
#      endif
 
9828
#    endif
 
9829
#  endif
 
9830
#endif
 
9831
 
 
9832
#ifdef __cplusplus
 
9833
extern "C" void exit (int);
 
9834
#endif
 
9835
 
 
9836
void fnord() { int i=42;}
 
9837
int main ()
 
9838
{
 
9839
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
9840
  int status = $lt_dlunknown;
 
9841
 
 
9842
  if (self)
 
9843
    {
 
9844
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
9845
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
9846
      /* dlclose (self); */
 
9847
    }
 
9848
 
 
9849
    exit (status);
 
9850
}
 
9851
EOF
 
9852
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
9853
  (eval $ac_link) 2>&5
 
9854
  ac_status=$?
 
9855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9856
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
9857
    (./conftest; exit; ) 2>/dev/null
 
9858
    lt_status=$?
 
9859
    case x$lt_status in
 
9860
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
9861
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
9862
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
9863
    esac
 
9864
  else :
 
9865
    # compilation failed
 
9866
    lt_cv_dlopen_self_static=no
 
9867
  fi
 
9868
fi
 
9869
rm -fr conftest*
 
9870
 
 
9871
 
 
9872
fi
 
9873
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
9874
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
9875
    fi
 
9876
 
 
9877
    CPPFLAGS="$save_CPPFLAGS"
 
9878
    LDFLAGS="$save_LDFLAGS"
 
9879
    LIBS="$save_LIBS"
 
9880
    ;;
 
9881
  esac
 
9882
 
 
9883
  case $lt_cv_dlopen_self in
 
9884
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
9885
  *) enable_dlopen_self=unknown ;;
 
9886
  esac
 
9887
 
 
9888
  case $lt_cv_dlopen_self_static in
 
9889
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
9890
  *) enable_dlopen_self_static=unknown ;;
 
9891
  esac
 
9892
fi
 
9893
 
 
9894
 
 
9895
# Report which librarie types wil actually be built
 
9896
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
9897
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
9898
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
9899
echo "${ECHO_T}$can_build_shared" >&6
 
9900
 
 
9901
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
9902
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
9903
test "$can_build_shared" = "no" && enable_shared=no
 
9904
 
 
9905
# On AIX, shared libraries and static libraries use the same namespace, and
 
9906
# are all built from PIC.
 
9907
case "$host_os" in
 
9908
aix3*)
 
9909
  test "$enable_shared" = yes && enable_static=no
 
9910
  if test -n "$RANLIB"; then
 
9911
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
9912
    postinstall_cmds='$RANLIB $lib'
 
9913
  fi
 
9914
  ;;
 
9915
 
 
9916
aix4*)
 
9917
  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 
9918
    test "$enable_shared" = yes && enable_static=no
 
9919
  fi
 
9920
  ;;
 
9921
  darwin* | rhapsody*)
 
9922
  if test "$GCC" = yes; then
 
9923
    archive_cmds_need_lc=no
 
9924
    case "$host_os" in
 
9925
    rhapsody* | darwin1.[012])
 
9926
      allow_undefined_flag='-undefined suppress'
 
9927
      ;;
 
9928
    *) # Darwin 1.3 on
 
9929
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
9930
        allow_undefined_flag='-flat_namespace -undefined suppress'
 
9931
      else
 
9932
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
9933
          10.[012])
 
9934
            allow_undefined_flag='-flat_namespace -undefined suppress'
 
9935
            ;;
 
9936
          10.*)
 
9937
            allow_undefined_flag='-undefined dynamic_lookup'
 
9938
            ;;
 
9939
        esac
 
9940
      fi
 
9941
      ;;
 
9942
    esac
 
9943
    output_verbose_link_cmd='echo'
 
9944
    archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 
9945
    module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
9946
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
9947
    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}'
 
9948
    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}'
 
9949
    hardcode_direct=no
 
9950
    hardcode_automatic=yes
 
9951
    hardcode_shlibpath_var=unsupported
 
9952
    whole_archive_flag_spec='-all_load $convenience'
 
9953
    link_all_deplibs=yes
 
9954
  else
 
9955
    ld_shlibs=no
 
9956
  fi
 
9957
    ;;
 
9958
esac
 
9959
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
9960
echo "${ECHO_T}$enable_shared" >&6
 
9961
 
 
9962
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
9963
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
9964
# Make sure either enable_shared or enable_static is yes.
 
9965
test "$enable_shared" = yes || enable_static=yes
 
9966
echo "$as_me:$LINENO: result: $enable_static" >&5
 
9967
echo "${ECHO_T}$enable_static" >&6
 
9968
 
 
9969
# The else clause should only fire when bootstrapping the
 
9970
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
9971
# with your package, and you will get complaints that there are
 
9972
# no rules to generate ltmain.sh.
 
9973
if test -f "$ltmain"; then
 
9974
  # See if we are running on zsh, and set the options which allow our commands through
 
9975
  # without removal of \ escapes.
 
9976
  if test -n "${ZSH_VERSION+set}" ; then
 
9977
    setopt NO_GLOB_SUBST
 
9978
  fi
 
9979
  # Now quote all the things that may contain metacharacters while being
 
9980
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
9981
  # variables and quote the copies for generation of the libtool script.
 
9982
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
9983
    SED SHELL STRIP \
 
9984
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
9985
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
9986
    deplibs_check_method reload_flag reload_cmds need_locks \
 
9987
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
9988
    lt_cv_sys_global_symbol_to_c_name_address \
 
9989
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
9990
    old_postinstall_cmds old_postuninstall_cmds \
 
9991
    compiler \
 
9992
    CC \
 
9993
    LD \
 
9994
    lt_prog_compiler_wl \
 
9995
    lt_prog_compiler_pic \
 
9996
    lt_prog_compiler_static \
 
9997
    lt_prog_compiler_no_builtin_flag \
 
9998
    export_dynamic_flag_spec \
 
9999
    thread_safe_flag_spec \
 
10000
    whole_archive_flag_spec \
 
10001
    enable_shared_with_static_runtimes \
 
10002
    old_archive_cmds \
 
10003
    old_archive_from_new_cmds \
 
10004
    predep_objects \
 
10005
    postdep_objects \
 
10006
    predeps \
 
10007
    postdeps \
 
10008
    compiler_lib_search_path \
 
10009
    archive_cmds \
 
10010
    archive_expsym_cmds \
 
10011
    postinstall_cmds \
 
10012
    postuninstall_cmds \
 
10013
    old_archive_from_expsyms_cmds \
 
10014
    allow_undefined_flag \
 
10015
    no_undefined_flag \
 
10016
    export_symbols_cmds \
 
10017
    hardcode_libdir_flag_spec \
 
10018
    hardcode_libdir_flag_spec_ld \
 
10019
    hardcode_libdir_separator \
 
10020
    hardcode_automatic \
 
10021
    module_cmds \
 
10022
    module_expsym_cmds \
 
10023
    lt_cv_prog_compiler_c_o \
 
10024
    exclude_expsyms \
 
10025
    include_expsyms; do
 
10026
 
 
10027
    case $var in
 
10028
    old_archive_cmds | \
 
10029
    old_archive_from_new_cmds | \
 
10030
    archive_cmds | \
 
10031
    archive_expsym_cmds | \
 
10032
    module_cmds | \
 
10033
    module_expsym_cmds | \
 
10034
    old_archive_from_expsyms_cmds | \
 
10035
    export_symbols_cmds | \
 
10036
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
10037
    postinstall_cmds | postuninstall_cmds | \
 
10038
    old_postinstall_cmds | old_postuninstall_cmds | \
 
10039
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
10040
      # Double-quote double-evaled strings.
 
10041
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
10042
      ;;
 
10043
    *)
 
10044
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
10045
      ;;
 
10046
    esac
 
10047
  done
 
10048
 
 
10049
  case $lt_echo in
 
10050
  *'\$0 --fallback-echo"')
 
10051
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
10052
    ;;
 
10053
  esac
 
10054
 
 
10055
cfgfile="${ofile}T"
 
10056
  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 
10057
  $rm -f "$cfgfile"
 
10058
  { echo "$as_me:$LINENO: creating $ofile" >&5
 
10059
echo "$as_me: creating $ofile" >&6;}
 
10060
 
 
10061
  cat <<__EOF__ >> "$cfgfile"
 
10062
#! $SHELL
 
10063
 
 
10064
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 
10065
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 
10066
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
 
10067
#
 
10068
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 
10069
# Free Software Foundation, Inc.
 
10070
#
 
10071
# This file is part of GNU Libtool:
 
10072
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 
10073
#
 
10074
# This program is free software; you can redistribute it and/or modify
 
10075
# it under the terms of the GNU General Public License as published by
 
10076
# the Free Software Foundation; either version 2 of the License, or
 
10077
# (at your option) any later version.
 
10078
#
 
10079
# This program is distributed in the hope that it will be useful, but
 
10080
# WITHOUT ANY WARRANTY; without even the implied warranty of
 
10081
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
10082
# General Public License for more details.
 
10083
#
 
10084
# You should have received a copy of the GNU General Public License
 
10085
# along with this program; if not, write to the Free Software
 
10086
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
10087
#
 
10088
# As a special exception to the GNU General Public License, if you
 
10089
# distribute this file as part of a program that contains a
 
10090
# configuration script generated by Autoconf, you may include it under
 
10091
# the same distribution terms that you use for the rest of that program.
 
10092
 
 
10093
# A sed program that does not truncate output.
 
10094
SED=$lt_SED
 
10095
 
 
10096
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
 
10097
Xsed="$SED -e s/^X//"
 
10098
 
 
10099
# The HP-UX ksh and POSIX shell print the target directory to stdout
 
10100
# if CDPATH is set.
 
10101
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 
10102
 
 
10103
# The names of the tagged configurations supported by this script.
 
10104
available_tags=
 
10105
 
 
10106
# ### BEGIN LIBTOOL CONFIG
 
10107
 
 
10108
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
10109
 
 
10110
# Shell to use when invoking shell scripts.
 
10111
SHELL=$lt_SHELL
 
10112
 
 
10113
# Whether or not to build shared libraries.
 
10114
build_libtool_libs=$enable_shared
 
10115
 
 
10116
# Whether or not to build static libraries.
 
10117
build_old_libs=$enable_static
 
10118
 
 
10119
# Whether or not to add -lc for building shared libraries.
 
10120
build_libtool_need_lc=$archive_cmds_need_lc
 
10121
 
 
10122
# Whether or not to disallow shared libs when runtime libs are static
 
10123
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 
10124
 
 
10125
# Whether or not to optimize for fast installation.
 
10126
fast_install=$enable_fast_install
 
10127
 
 
10128
# The host system.
 
10129
host_alias=$host_alias
 
10130
host=$host
 
10131
 
 
10132
# An echo program that does not interpret backslashes.
 
10133
echo=$lt_echo
 
10134
 
 
10135
# The archiver.
 
10136
AR=$lt_AR
 
10137
AR_FLAGS=$lt_AR_FLAGS
 
10138
 
 
10139
# A C compiler.
 
10140
LTCC=$lt_LTCC
 
10141
 
 
10142
# A language-specific compiler.
 
10143
CC=$lt_compiler
 
10144
 
 
10145
# Is the compiler the GNU C compiler?
 
10146
with_gcc=$GCC
 
10147
 
 
10148
# An ERE matcher.
 
10149
EGREP=$lt_EGREP
 
10150
 
 
10151
# The linker used to build libraries.
 
10152
LD=$lt_LD
 
10153
 
 
10154
# Whether we need hard or soft links.
 
10155
LN_S=$lt_LN_S
 
10156
 
 
10157
# A BSD-compatible nm program.
 
10158
NM=$lt_NM
 
10159
 
 
10160
# A symbol stripping program
 
10161
STRIP=$lt_STRIP
 
10162
 
 
10163
# Used to examine libraries when file_magic_cmd begins "file"
 
10164
MAGIC_CMD=$MAGIC_CMD
 
10165
 
 
10166
# Used on cygwin: DLL creation program.
 
10167
DLLTOOL="$DLLTOOL"
 
10168
 
 
10169
# Used on cygwin: object dumper.
 
10170
OBJDUMP="$OBJDUMP"
 
10171
 
 
10172
# Used on cygwin: assembler.
 
10173
AS="$AS"
 
10174
 
 
10175
# The name of the directory that contains temporary libtool files.
 
10176
objdir=$objdir
 
10177
 
 
10178
# How to create reloadable object files.
 
10179
reload_flag=$lt_reload_flag
 
10180
reload_cmds=$lt_reload_cmds
 
10181
 
 
10182
# How to pass a linker flag through the compiler.
 
10183
wl=$lt_lt_prog_compiler_wl
 
10184
 
 
10185
# Object file suffix (normally "o").
 
10186
objext="$ac_objext"
 
10187
 
 
10188
# Old archive suffix (normally "a").
 
10189
libext="$libext"
 
10190
 
 
10191
# Shared library suffix (normally ".so").
 
10192
shrext='$shrext'
 
10193
 
 
10194
# Executable file suffix (normally "").
 
10195
exeext="$exeext"
 
10196
 
 
10197
# Additional compiler flags for building library objects.
 
10198
pic_flag=$lt_lt_prog_compiler_pic
 
10199
pic_mode=$pic_mode
 
10200
 
 
10201
# What is the maximum length of a command?
 
10202
max_cmd_len=$lt_cv_sys_max_cmd_len
 
10203
 
 
10204
# Does compiler simultaneously support -c and -o options?
 
10205
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 
10206
 
 
10207
# Must we lock files when doing compilation ?
 
10208
need_locks=$lt_need_locks
 
10209
 
 
10210
# Do we need the lib prefix for modules?
 
10211
need_lib_prefix=$need_lib_prefix
 
10212
 
 
10213
# Do we need a version for libraries?
 
10214
need_version=$need_version
 
10215
 
 
10216
# Whether dlopen is supported.
 
10217
dlopen_support=$enable_dlopen
 
10218
 
 
10219
# Whether dlopen of programs is supported.
 
10220
dlopen_self=$enable_dlopen_self
 
10221
 
 
10222
# Whether dlopen of statically linked programs is supported.
 
10223
dlopen_self_static=$enable_dlopen_self_static
 
10224
 
 
10225
# Compiler flag to prevent dynamic linking.
 
10226
link_static_flag=$lt_lt_prog_compiler_static
 
10227
 
 
10228
# Compiler flag to turn off builtin functions.
 
10229
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 
10230
 
 
10231
# Compiler flag to allow reflexive dlopens.
 
10232
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 
10233
 
 
10234
# Compiler flag to generate shared objects directly from archives.
 
10235
whole_archive_flag_spec=$lt_whole_archive_flag_spec
 
10236
 
 
10237
# Compiler flag to generate thread-safe objects.
 
10238
thread_safe_flag_spec=$lt_thread_safe_flag_spec
 
10239
 
 
10240
# Library versioning type.
 
10241
version_type=$version_type
 
10242
 
 
10243
# Format of library name prefix.
 
10244
libname_spec=$lt_libname_spec
 
10245
 
 
10246
# List of archive names.  First name is the real one, the rest are links.
 
10247
# The last name is the one that the linker finds with -lNAME.
 
10248
library_names_spec=$lt_library_names_spec
 
10249
 
 
10250
# The coded name of the library, if different from the real name.
 
10251
soname_spec=$lt_soname_spec
 
10252
 
 
10253
# Commands used to build and install an old-style archive.
 
10254
RANLIB=$lt_RANLIB
 
10255
old_archive_cmds=$lt_old_archive_cmds
 
10256
old_postinstall_cmds=$lt_old_postinstall_cmds
 
10257
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
10258
 
 
10259
# Create an old-style archive from a shared archive.
 
10260
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 
10261
 
 
10262
# Create a temporary old-style archive to link instead of a shared archive.
 
10263
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 
10264
 
 
10265
# Commands used to build and install a shared archive.
 
10266
archive_cmds=$lt_archive_cmds
 
10267
archive_expsym_cmds=$lt_archive_expsym_cmds
 
10268
postinstall_cmds=$lt_postinstall_cmds
 
10269
postuninstall_cmds=$lt_postuninstall_cmds
 
10270
 
 
10271
# Commands used to build a loadable module (assumed same as above if empty)
 
10272
module_cmds=$lt_module_cmds
 
10273
module_expsym_cmds=$lt_module_expsym_cmds
 
10274
 
 
10275
# Commands to strip libraries.
 
10276
old_striplib=$lt_old_striplib
 
10277
striplib=$lt_striplib
 
10278
 
 
10279
# Dependencies to place before the objects being linked to create a
 
10280
# shared library.
 
10281
predep_objects=$lt_predep_objects
 
10282
 
 
10283
# Dependencies to place after the objects being linked to create a
 
10284
# shared library.
 
10285
postdep_objects=$lt_postdep_objects
 
10286
 
 
10287
# Dependencies to place before the objects being linked to create a
 
10288
# shared library.
 
10289
predeps=$lt_predeps
 
10290
 
 
10291
# Dependencies to place after the objects being linked to create a
 
10292
# shared library.
 
10293
postdeps=$lt_postdeps
 
10294
 
 
10295
# The library search path used internally by the compiler when linking
 
10296
# a shared library.
 
10297
compiler_lib_search_path=$lt_compiler_lib_search_path
 
10298
 
 
10299
# Method to check whether dependent libraries are shared objects.
 
10300
deplibs_check_method=$lt_deplibs_check_method
 
10301
 
 
10302
# Command to use when deplibs_check_method == file_magic.
 
10303
file_magic_cmd=$lt_file_magic_cmd
 
10304
 
 
10305
# Flag that allows shared libraries with undefined symbols to be built.
 
10306
allow_undefined_flag=$lt_allow_undefined_flag
 
10307
 
 
10308
# Flag that forces no undefined symbols.
 
10309
no_undefined_flag=$lt_no_undefined_flag
 
10310
 
 
10311
# Commands used to finish a libtool library installation in a directory.
 
10312
finish_cmds=$lt_finish_cmds
 
10313
 
 
10314
# Same as above, but a single script fragment to be evaled but not shown.
 
10315
finish_eval=$lt_finish_eval
 
10316
 
 
10317
# Take the output of nm and produce a listing of raw symbols and C names.
 
10318
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
10319
 
 
10320
# Transform the output of nm in a proper C declaration
 
10321
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
10322
 
 
10323
# Transform the output of nm in a C name address pair
 
10324
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
10325
 
 
10326
# This is the shared library runtime path variable.
 
10327
runpath_var=$runpath_var
 
10328
 
 
10329
# This is the shared library path variable.
 
10330
shlibpath_var=$shlibpath_var
 
10331
 
 
10332
# Is shlibpath searched before the hard-coded library search path?
 
10333
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
10334
 
 
10335
# How to hardcode a shared library path into an executable.
 
10336
hardcode_action=$hardcode_action
 
10337
 
 
10338
# Whether we should hardcode library paths into libraries.
 
10339
hardcode_into_libs=$hardcode_into_libs
 
10340
 
 
10341
# Flag to hardcode \$libdir into a binary during linking.
 
10342
# This must work even if \$libdir does not exist.
 
10343
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 
10344
 
 
10345
# If ld is used when linking, flag to hardcode \$libdir into
 
10346
# a binary during linking. This must work even if \$libdir does
 
10347
# not exist.
 
10348
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 
10349
 
 
10350
# Whether we need a single -rpath flag with a separated argument.
 
10351
hardcode_libdir_separator=$lt_hardcode_libdir_separator
 
10352
 
 
10353
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
10354
# resulting binary.
 
10355
hardcode_direct=$hardcode_direct
 
10356
 
 
10357
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
10358
# resulting binary.
 
10359
hardcode_minus_L=$hardcode_minus_L
 
10360
 
 
10361
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
10362
# the resulting binary.
 
10363
hardcode_shlibpath_var=$hardcode_shlibpath_var
 
10364
 
 
10365
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
10366
# and all subsequent libraries and executables linked against it.
 
10367
hardcode_automatic=$hardcode_automatic
 
10368
 
 
10369
# Variables whose values should be saved in libtool wrapper scripts and
 
10370
# restored at relink time.
 
10371
variables_saved_for_relink="$variables_saved_for_relink"
 
10372
 
 
10373
# Whether libtool must link a program against all its dependency libraries.
 
10374
link_all_deplibs=$link_all_deplibs
 
10375
 
 
10376
# Compile-time system search path for libraries
 
10377
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
10378
 
 
10379
# Run-time system search path for libraries
 
10380
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
10381
 
 
10382
# Fix the shell variable \$srcfile for the compiler.
 
10383
fix_srcfile_path="$fix_srcfile_path"
 
10384
 
 
10385
# Set to yes if exported symbols are required.
 
10386
always_export_symbols=$always_export_symbols
 
10387
 
 
10388
# The commands to list exported symbols.
 
10389
export_symbols_cmds=$lt_export_symbols_cmds
 
10390
 
 
10391
# The commands to extract the exported symbol list from a shared archive.
 
10392
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
10393
 
 
10394
# Symbols that should not be listed in the preloaded symbols.
 
10395
exclude_expsyms=$lt_exclude_expsyms
 
10396
 
 
10397
# Symbols that must always be exported.
 
10398
include_expsyms=$lt_include_expsyms
 
10399
 
 
10400
# ### END LIBTOOL CONFIG
 
10401
 
 
10402
__EOF__
 
10403
 
 
10404
 
 
10405
  case $host_os in
 
10406
  aix3*)
 
10407
    cat <<\EOF >> "$cfgfile"
 
10408
 
 
10409
# AIX sometimes has problems with the GCC collect2 program.  For some
 
10410
# reason, if we set the COLLECT_NAMES environment variable, the problems
 
10411
# vanish in a puff of smoke.
 
10412
if test "X${COLLECT_NAMES+set}" != Xset; then
 
10413
  COLLECT_NAMES=
 
10414
  export COLLECT_NAMES
 
10415
fi
 
10416
EOF
 
10417
    ;;
 
10418
  esac
 
10419
 
 
10420
  # We use sed instead of cat because bash on DJGPP gets confused if
 
10421
  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 
10422
  # text mode, it properly converts lines to CR/LF.  This bash problem
 
10423
  # is reportedly fixed, but why not run on old versions too?
 
10424
  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 
10425
 
 
10426
  mv -f "$cfgfile" "$ofile" || \
 
10427
    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 
10428
  chmod +x "$ofile"
 
10429
 
 
10430
else
 
10431
  # If there is no Makefile yet, we rely on a make rule to execute
 
10432
  # `config.status --recheck' to rerun these tests and create the
 
10433
  # libtool script then.
 
10434
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
10435
  if test -f "$ltmain_in"; then
 
10436
    test -f Makefile && make "$ltmain"
 
10437
  fi
 
10438
fi
 
10439
 
 
10440
 
 
10441
ac_ext=c
 
10442
ac_cpp='$CPP $CPPFLAGS'
 
10443
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10444
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10445
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10446
 
 
10447
CC="$lt_save_CC"
 
10448
 
 
10449
 
 
10450
# Check whether --with-tags or --without-tags was given.
 
10451
if test "${with_tags+set}" = set; then
 
10452
  withval="$with_tags"
 
10453
  tagnames="$withval"
 
10454
fi;
 
10455
 
 
10456
if test -f "$ltmain" && test -n "$tagnames"; then
 
10457
  if test ! -f "${ofile}"; then
 
10458
    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 
10459
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 
10460
  fi
 
10461
 
 
10462
  if test -z "$LTCC"; then
 
10463
    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 
10464
    if test -z "$LTCC"; then
 
10465
      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 
10466
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 
10467
    else
 
10468
      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 
10469
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 
10470
    fi
 
10471
  fi
 
10472
 
 
10473
  # Extract list of available tagged configurations in $ofile.
 
10474
  # Note that this assumes the entire list is on one line.
 
10475
  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 
10476
 
 
10477
  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
10478
  for tagname in $tagnames; do
 
10479
    IFS="$lt_save_ifs"
 
10480
    # Check whether tagname contains only valid characters
 
10481
    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 
10482
    "") ;;
 
10483
    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 
10484
echo "$as_me: error: invalid tag name: $tagname" >&2;}
 
10485
   { (exit 1); exit 1; }; }
 
10486
        ;;
 
10487
    esac
 
10488
 
 
10489
    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 
10490
    then
 
10491
      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 
10492
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 
10493
   { (exit 1); exit 1; }; }
 
10494
    fi
 
10495
 
 
10496
    # Update the list of available tags.
 
10497
    if test -n "$tagname"; then
 
10498
      echo appending configuration tag \"$tagname\" to $ofile
 
10499
 
 
10500
      case $tagname in
 
10501
      CXX)
 
10502
        if test -n "$CXX" && test "X$CXX" != "Xno"; then
 
10503
          ac_ext=cc
 
10504
ac_cpp='$CXXCPP $CPPFLAGS'
 
10505
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10506
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10507
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10508
 
 
10509
 
 
10510
 
 
10511
 
 
10512
archive_cmds_need_lc_CXX=no
 
10513
allow_undefined_flag_CXX=
 
10514
always_export_symbols_CXX=no
 
10515
archive_expsym_cmds_CXX=
 
10516
export_dynamic_flag_spec_CXX=
 
10517
hardcode_direct_CXX=no
 
10518
hardcode_libdir_flag_spec_CXX=
 
10519
hardcode_libdir_flag_spec_ld_CXX=
 
10520
hardcode_libdir_separator_CXX=
 
10521
hardcode_minus_L_CXX=no
 
10522
hardcode_automatic_CXX=no
 
10523
module_cmds_CXX=
 
10524
module_expsym_cmds_CXX=
 
10525
link_all_deplibs_CXX=unknown
 
10526
old_archive_cmds_CXX=$old_archive_cmds
 
10527
no_undefined_flag_CXX=
 
10528
whole_archive_flag_spec_CXX=
 
10529
enable_shared_with_static_runtimes_CXX=no
 
10530
 
 
10531
# Dependencies to place before and after the object being linked:
 
10532
predep_objects_CXX=
 
10533
postdep_objects_CXX=
 
10534
predeps_CXX=
 
10535
postdeps_CXX=
 
10536
compiler_lib_search_path_CXX=
 
10537
 
 
10538
# Source file extension for C++ test sources.
 
10539
ac_ext=cc
 
10540
 
 
10541
# Object file extension for compiled C++ test sources.
 
10542
objext=o
 
10543
objext_CXX=$objext
 
10544
 
 
10545
# Code to be used in simple compile tests
 
10546
lt_simple_compile_test_code="int some_variable = 0;\n"
 
10547
 
 
10548
# Code to be used in simple link tests
 
10549
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 
10550
 
 
10551
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
10552
 
 
10553
# If no C compiler was specified, use CC.
 
10554
LTCC=${LTCC-"$CC"}
 
10555
 
 
10556
# Allow CC to be a program name with arguments.
 
10557
compiler=$CC
 
10558
 
 
10559
 
 
10560
# Allow CC to be a program name with arguments.
 
10561
lt_save_CC=$CC
 
10562
lt_save_LD=$LD
 
10563
lt_save_GCC=$GCC
 
10564
GCC=$GXX
 
10565
lt_save_with_gnu_ld=$with_gnu_ld
 
10566
lt_save_path_LD=$lt_cv_path_LD
 
10567
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 
10568
  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 
10569
else
 
10570
  unset lt_cv_prog_gnu_ld
 
10571
fi
 
10572
if test -n "${lt_cv_path_LDCXX+set}"; then
 
10573
  lt_cv_path_LD=$lt_cv_path_LDCXX
 
10574
else
 
10575
  unset lt_cv_path_LD
 
10576
fi
 
10577
test -z "${LDCXX+set}" || LD=$LDCXX
 
10578
CC=${CXX-"c++"}
 
10579
compiler=$CC
 
10580
compiler_CXX=$CC
 
10581
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
10582
 
 
10583
# We don't want -fno-exception wen compiling C++ code, so set the
 
10584
# no_builtin_flag separately
 
10585
if test "$GXX" = yes; then
 
10586
  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 
10587
else
 
10588
  lt_prog_compiler_no_builtin_flag_CXX=
 
10589
fi
 
10590
 
 
10591
if test "$GXX" = yes; then
 
10592
  # Set up default GNU C++ configuration
 
10593
 
 
10594
 
 
10595
# Check whether --with-gnu-ld or --without-gnu-ld was given.
 
10596
if test "${with_gnu_ld+set}" = set; then
 
10597
  withval="$with_gnu_ld"
 
10598
  test "$withval" = no || with_gnu_ld=yes
 
10599
else
 
10600
  with_gnu_ld=no
 
10601
fi;
 
10602
ac_prog=ld
 
10603
if test "$GCC" = yes; then
 
10604
  # Check if gcc -print-prog-name=ld gives a path.
 
10605
  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 
10606
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 
10607
  case $host in
 
10608
  *-*-mingw*)
 
10609
    # gcc leaves a trailing carriage return which upsets mingw
 
10610
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 
10611
  *)
 
10612
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 
10613
  esac
 
10614
  case $ac_prog in
 
10615
    # Accept absolute paths.
 
10616
    [\\/]* | ?:[\\/]*)
 
10617
      re_direlt='/[^/][^/]*/\.\./'
 
10618
      # Canonicalize the pathname of ld
 
10619
      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 
10620
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 
10621
        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 
10622
      done
 
10623
      test -z "$LD" && LD="$ac_prog"
 
10624
      ;;
 
10625
  "")
 
10626
    # If it fails, then pretend we aren't using GCC.
 
10627
    ac_prog=ld
 
10628
    ;;
 
10629
  *)
 
10630
    # If it is relative, then search for the first ld in PATH.
 
10631
    with_gnu_ld=unknown
 
10632
    ;;
 
10633
  esac
 
10634
elif test "$with_gnu_ld" = yes; then
 
10635
  echo "$as_me:$LINENO: checking for GNU ld" >&5
 
10636
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 
10637
else
 
10638
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 
10639
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 
10640
fi
 
10641
if test "${lt_cv_path_LD+set}" = set; then
 
10642
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10643
else
 
10644
  if test -z "$LD"; then
 
10645
  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 
10646
  for ac_dir in $PATH; do
 
10647
    IFS="$lt_save_ifs"
 
10648
    test -z "$ac_dir" && ac_dir=.
 
10649
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 
10650
      lt_cv_path_LD="$ac_dir/$ac_prog"
 
10651
      # Check to see if the program is GNU ld.  I'd rather use --version,
 
10652
      # but apparently some GNU ld's only accept -v.
 
10653
      # Break only if it was the GNU/non-GNU ld that we prefer.
 
10654
      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 
10655
      *GNU* | *'with BFD'*)
 
10656
        test "$with_gnu_ld" != no && break
 
10657
        ;;
 
10658
      *)
 
10659
        test "$with_gnu_ld" != yes && break
 
10660
        ;;
 
10661
      esac
 
10662
    fi
 
10663
  done
 
10664
  IFS="$lt_save_ifs"
 
10665
else
 
10666
  lt_cv_path_LD="$LD" # Let the user override the test with a path.
 
10667
fi
 
10668
fi
 
10669
 
 
10670
LD="$lt_cv_path_LD"
 
10671
if test -n "$LD"; then
 
10672
  echo "$as_me:$LINENO: result: $LD" >&5
 
10673
echo "${ECHO_T}$LD" >&6
 
10674
else
 
10675
  echo "$as_me:$LINENO: result: no" >&5
 
10676
echo "${ECHO_T}no" >&6
 
10677
fi
 
10678
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 
10679
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 
10680
   { (exit 1); exit 1; }; }
 
10681
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 
10682
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 
10683
if test "${lt_cv_prog_gnu_ld+set}" = set; then
 
10684
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10685
else
 
10686
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 
10687
case `$LD -v 2>&1 </dev/null` in
 
10688
*GNU* | *'with BFD'*)
 
10689
  lt_cv_prog_gnu_ld=yes
 
10690
  ;;
 
10691
*)
 
10692
  lt_cv_prog_gnu_ld=no
 
10693
  ;;
 
10694
esac
 
10695
fi
 
10696
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 
10697
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 
10698
with_gnu_ld=$lt_cv_prog_gnu_ld
 
10699
 
 
10700
 
 
10701
 
 
10702
  # Check if GNU C++ uses GNU ld as the underlying linker, since the
 
10703
  # archiving commands below assume that GNU ld is being used.
 
10704
  if test "$with_gnu_ld" = yes; then
 
10705
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
10706
    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'
 
10707
 
 
10708
    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 
10709
    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
10710
 
 
10711
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
10712
    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 
10713
    #     investigate it a little bit more. (MM)
 
10714
    wlarc='${wl}'
 
10715
 
 
10716
    # ancient GNU ld didn't support --whole-archive et. al.
 
10717
    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 
10718
        grep 'no-whole-archive' > /dev/null; then
 
10719
      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
10720
    else
 
10721
      whole_archive_flag_spec_CXX=
 
10722
    fi
 
10723
  else
 
10724
    with_gnu_ld=no
 
10725
    wlarc=
 
10726
 
 
10727
    # A generic and very simple default shared library creation
 
10728
    # command for GNU C++ for the case where it uses the native
 
10729
    # linker, instead of GNU ld.  If possible, this setting should
 
10730
    # overridden to take advantage of the native linker features on
 
10731
    # the platform it is being used on.
 
10732
    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 
10733
  fi
 
10734
 
 
10735
  # Commands to make compiler produce verbose output that lists
 
10736
  # what "hidden" libraries, object files and flags are used when
 
10737
  # linking a shared library.
 
10738
  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
10739
 
 
10740
else
 
10741
  GXX=no
 
10742
  with_gnu_ld=no
 
10743
  wlarc=
 
10744
fi
 
10745
 
 
10746
# PORTME: fill in a description of your system's C++ link characteristics
 
10747
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
10748
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
10749
ld_shlibs_CXX=yes
 
10750
case $host_os in
 
10751
  aix3*)
 
10752
    # FIXME: insert proper C++ library support
 
10753
    ld_shlibs_CXX=no
 
10754
    ;;
 
10755
  aix4* | aix5*)
 
10756
    if test "$host_cpu" = ia64; then
 
10757
      # On IA64, the linker does run time linking by default, so we don't
 
10758
      # have to do anything special.
 
10759
      aix_use_runtimelinking=no
 
10760
      exp_sym_flag='-Bexport'
 
10761
      no_entry_flag=""
 
10762
    else
 
10763
      aix_use_runtimelinking=no
 
10764
 
 
10765
      # Test if we are trying to use run time linking or normal
 
10766
      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
10767
      # need to do runtime linking.
 
10768
      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
10769
        for ld_flag in $LDFLAGS; do
 
10770
          case $ld_flag in
 
10771
          *-brtl*)
 
10772
            aix_use_runtimelinking=yes
 
10773
            break
 
10774
            ;;
 
10775
          esac
 
10776
        done
 
10777
      esac
 
10778
 
 
10779
      exp_sym_flag='-bexport'
 
10780
      no_entry_flag='-bnoentry'
 
10781
    fi
 
10782
 
 
10783
    # When large executables or shared objects are built, AIX ld can
 
10784
    # have problems creating the table of contents.  If linking a library
 
10785
    # or program results in "error TOC overflow" add -mminimal-toc to
 
10786
    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
10787
    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
10788
 
 
10789
    archive_cmds_CXX=''
 
10790
    hardcode_direct_CXX=yes
 
10791
    hardcode_libdir_separator_CXX=':'
 
10792
    link_all_deplibs_CXX=yes
 
10793
 
 
10794
    if test "$GXX" = yes; then
 
10795
      case $host_os in aix4.012|aix4.012.*)
 
10796
      # We only want to do this on AIX 4.2 and lower, the check
 
10797
      # below for broken collect2 doesn't work under 4.3+
 
10798
        collect2name=`${CC} -print-prog-name=collect2`
 
10799
        if test -f "$collect2name" && \
 
10800
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
10801
        then
 
10802
          # We have reworked collect2
 
10803
          hardcode_direct_CXX=yes
 
10804
        else
 
10805
          # We have old collect2
 
10806
          hardcode_direct_CXX=unsupported
 
10807
          # It fails to find uninstalled libraries when the uninstalled
 
10808
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
10809
          # to unsupported forces relinking
 
10810
          hardcode_minus_L_CXX=yes
 
10811
          hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10812
          hardcode_libdir_separator_CXX=
 
10813
        fi
 
10814
      esac
 
10815
      shared_flag='-shared'
 
10816
    else
 
10817
      # not using gcc
 
10818
      if test "$host_cpu" = ia64; then
 
10819
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
10820
        # chokes on -Wl,-G. The following line is correct:
 
10821
        shared_flag='-G'
 
10822
      else
 
10823
        if test "$aix_use_runtimelinking" = yes; then
 
10824
          shared_flag='${wl}-G'
 
10825
        else
 
10826
          shared_flag='${wl}-bM:SRE'
 
10827
        fi
 
10828
      fi
 
10829
    fi
 
10830
 
 
10831
    # It seems that -bexpall does not export symbols beginning with
 
10832
    # underscore (_), so it is better to generate a list of symbols to export.
 
10833
    always_export_symbols_CXX=yes
 
10834
    if test "$aix_use_runtimelinking" = yes; then
 
10835
      # Warning - without using the other runtime loading flags (-brtl),
 
10836
      # -berok will link without error, but may produce a broken library.
 
10837
      allow_undefined_flag_CXX='-berok'
 
10838
      # Determine the default libpath from the value encoded in an empty executable.
 
10839
      cat >conftest.$ac_ext <<_ACEOF
 
10840
/* confdefs.h.  */
 
10841
_ACEOF
 
10842
cat confdefs.h >>conftest.$ac_ext
 
10843
cat >>conftest.$ac_ext <<_ACEOF
 
10844
/* end confdefs.h.  */
 
10845
 
 
10846
int
 
10847
main ()
 
10848
{
 
10849
 
 
10850
  ;
 
10851
  return 0;
 
10852
}
 
10853
_ACEOF
 
10854
rm -f conftest.$ac_objext conftest$ac_exeext
 
10855
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10856
  (eval $ac_link) 2>conftest.er1
 
10857
  ac_status=$?
 
10858
  grep -v '^ *+' conftest.er1 >conftest.err
 
10859
  rm -f conftest.er1
 
10860
  cat conftest.err >&5
 
10861
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10862
  (exit $ac_status); } &&
 
10863
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10864
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10865
  (eval $ac_try) 2>&5
 
10866
  ac_status=$?
 
10867
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10868
  (exit $ac_status); }; } &&
 
10869
         { ac_try='test -s conftest$ac_exeext'
 
10870
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10871
  (eval $ac_try) 2>&5
 
10872
  ac_status=$?
 
10873
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10874
  (exit $ac_status); }; }; then
 
10875
 
 
10876
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10877
}'`
 
10878
# Check for a 64-bit object if we didn't find anything.
 
10879
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; }
 
10880
}'`; fi
 
10881
else
 
10882
  echo "$as_me: failed program was:" >&5
 
10883
sed 's/^/| /' conftest.$ac_ext >&5
 
10884
 
 
10885
fi
 
10886
rm -f conftest.err conftest.$ac_objext \
 
10887
      conftest$ac_exeext conftest.$ac_ext
 
10888
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10889
 
 
10890
      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10891
 
 
10892
      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"
 
10893
     else
 
10894
      if test "$host_cpu" = ia64; then
 
10895
        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 
10896
        allow_undefined_flag_CXX="-z nodefs"
 
10897
        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"
 
10898
      else
 
10899
        # Determine the default libpath from the value encoded in an empty executable.
 
10900
        cat >conftest.$ac_ext <<_ACEOF
 
10901
/* confdefs.h.  */
 
10902
_ACEOF
 
10903
cat confdefs.h >>conftest.$ac_ext
 
10904
cat >>conftest.$ac_ext <<_ACEOF
 
10905
/* end confdefs.h.  */
 
10906
 
 
10907
int
 
10908
main ()
 
10909
{
 
10910
 
 
10911
  ;
 
10912
  return 0;
 
10913
}
 
10914
_ACEOF
 
10915
rm -f conftest.$ac_objext conftest$ac_exeext
 
10916
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
10917
  (eval $ac_link) 2>conftest.er1
 
10918
  ac_status=$?
 
10919
  grep -v '^ *+' conftest.er1 >conftest.err
 
10920
  rm -f conftest.er1
 
10921
  cat conftest.err >&5
 
10922
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10923
  (exit $ac_status); } &&
 
10924
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
10925
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10926
  (eval $ac_try) 2>&5
 
10927
  ac_status=$?
 
10928
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10929
  (exit $ac_status); }; } &&
 
10930
         { ac_try='test -s conftest$ac_exeext'
 
10931
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
10932
  (eval $ac_try) 2>&5
 
10933
  ac_status=$?
 
10934
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10935
  (exit $ac_status); }; }; then
 
10936
 
 
10937
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
10938
}'`
 
10939
# Check for a 64-bit object if we didn't find anything.
 
10940
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; }
 
10941
}'`; fi
 
10942
else
 
10943
  echo "$as_me: failed program was:" >&5
 
10944
sed 's/^/| /' conftest.$ac_ext >&5
 
10945
 
 
10946
fi
 
10947
rm -f conftest.err conftest.$ac_objext \
 
10948
      conftest$ac_exeext conftest.$ac_ext
 
10949
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
10950
 
 
10951
        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 
10952
        # Warning - without using the other run time loading flags,
 
10953
        # -berok will link without error, but may produce a broken library.
 
10954
        no_undefined_flag_CXX=' ${wl}-bernotok'
 
10955
        allow_undefined_flag_CXX=' ${wl}-berok'
 
10956
        # -bexpall does not export symbols beginning with underscore (_)
 
10957
        always_export_symbols_CXX=yes
 
10958
        # Exported symbols can be pulled into shared objects from archives
 
10959
        whole_archive_flag_spec_CXX=' '
 
10960
        archive_cmds_need_lc_CXX=yes
 
10961
        # This is similar to how AIX traditionally builds it's shared libraries.
 
10962
        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'
 
10963
      fi
 
10964
    fi
 
10965
    ;;
 
10966
  chorus*)
 
10967
    case $cc_basename in
 
10968
      *)
 
10969
        # FIXME: insert proper C++ library support
 
10970
        ld_shlibs_CXX=no
 
10971
        ;;
 
10972
    esac
 
10973
    ;;
 
10974
 
 
10975
  cygwin* | mingw* | pw32*)
 
10976
    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
 
10977
    # as there is no search path for DLLs.
 
10978
    hardcode_libdir_flag_spec_CXX='-L$libdir'
 
10979
    allow_undefined_flag_CXX=unsupported
 
10980
    always_export_symbols_CXX=no
 
10981
    enable_shared_with_static_runtimes_CXX=yes
 
10982
 
 
10983
    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
10984
      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'
 
10985
      # If the export-symbols file already is a .def file (1st line
 
10986
      # is EXPORTS), use it as is; otherwise, prepend...
 
10987
      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
10988
        cp $export_symbols $output_objdir/$soname.def;
 
10989
      else
 
10990
        echo EXPORTS > $output_objdir/$soname.def;
 
10991
        cat $export_symbols >> $output_objdir/$soname.def;
 
10992
      fi~
 
10993
      $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'
 
10994
    else
 
10995
      ld_shlibs_CXX=no
 
10996
    fi
 
10997
  ;;
 
10998
 
 
10999
  darwin* | rhapsody*)
 
11000
  if test "$GXX" = yes; then
 
11001
    archive_cmds_need_lc_CXX=no
 
11002
    case "$host_os" in
 
11003
    rhapsody* | darwin1.[012])
 
11004
      allow_undefined_flag_CXX='-undefined suppress'
 
11005
      ;;
 
11006
    *) # Darwin 1.3 on
 
11007
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
11008
        allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11009
      else
 
11010
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
11011
          10.[012])
 
11012
            allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
 
11013
            ;;
 
11014
          10.*)
 
11015
            allow_undefined_flag_CXX='-undefined dynamic_lookup'
 
11016
            ;;
 
11017
        esac
 
11018
      fi
 
11019
      ;;
 
11020
    esac
 
11021
    lt_int_apple_cc_single_mod=no
 
11022
    output_verbose_link_cmd='echo'
 
11023
    if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
11024
      lt_int_apple_cc_single_mod=yes
 
11025
    fi
 
11026
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11027
      archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
11028
    else
 
11029
      archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
 
11030
    fi
 
11031
    module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
11032
 
 
11033
    # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
11034
    if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
11035
      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}'
 
11036
    else
 
11037
      archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
11038
    fi
 
11039
    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}'
 
11040
    hardcode_direct_CXX=no
 
11041
    hardcode_automatic_CXX=yes
 
11042
    hardcode_shlibpath_var_CXX=unsupported
 
11043
    whole_archive_flag_spec_CXX='-all_load $convenience'
 
11044
    link_all_deplibs_CXX=yes
 
11045
  else
 
11046
    ld_shlibs_CXX=no
 
11047
  fi
 
11048
    ;;
 
11049
 
 
11050
  dgux*)
 
11051
    case $cc_basename in
 
11052
      ec++)
 
11053
        # FIXME: insert proper C++ library support
 
11054
        ld_shlibs_CXX=no
 
11055
        ;;
 
11056
      ghcx)
 
11057
        # Green Hills C++ Compiler
 
11058
        # FIXME: insert proper C++ library support
 
11059
        ld_shlibs_CXX=no
 
11060
        ;;
 
11061
      *)
 
11062
        # FIXME: insert proper C++ library support
 
11063
        ld_shlibs_CXX=no
 
11064
        ;;
 
11065
    esac
 
11066
    ;;
 
11067
  freebsd12*)
 
11068
    # C++ shared libraries reported to be fairly broken before switch to ELF
 
11069
    ld_shlibs_CXX=no
 
11070
    ;;
 
11071
  freebsd-elf*)
 
11072
    archive_cmds_need_lc_CXX=no
 
11073
    ;;
 
11074
  freebsd* | kfreebsd*-gnu)
 
11075
    # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
 
11076
    # conventions
 
11077
    ld_shlibs_CXX=yes
 
11078
    ;;
 
11079
  gnu*)
 
11080
    ;;
 
11081
  hpux9*)
 
11082
    hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11083
    hardcode_libdir_separator_CXX=:
 
11084
    export_dynamic_flag_spec_CXX='${wl}-E'
 
11085
    hardcode_direct_CXX=yes
 
11086
    hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11087
                                # but as the default
 
11088
                                # location of the library.
 
11089
 
 
11090
    case $cc_basename in
 
11091
    CC)
 
11092
      # FIXME: insert proper C++ library support
 
11093
      ld_shlibs_CXX=no
 
11094
      ;;
 
11095
    aCC)
 
11096
      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'
 
11097
      # Commands to make compiler produce verbose output that lists
 
11098
      # what "hidden" libraries, object files and flags are used when
 
11099
      # linking a shared library.
 
11100
      #
 
11101
      # There doesn't appear to be a way to prevent this compiler from
 
11102
      # explicitly linking system object files so we need to strip them
 
11103
      # from the output so that they don't get included in the library
 
11104
      # dependencies.
 
11105
      output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
 
11106
      ;;
 
11107
    *)
 
11108
      if test "$GXX" = yes; then
 
11109
        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'
 
11110
      else
 
11111
        # FIXME: insert proper C++ library support
 
11112
        ld_shlibs_CXX=no
 
11113
      fi
 
11114
      ;;
 
11115
    esac
 
11116
    ;;
 
11117
  hpux10*|hpux11*)
 
11118
    if test $with_gnu_ld = no; then
 
11119
      case "$host_cpu" in
 
11120
      hppa*64*)
 
11121
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11122
        hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
 
11123
        hardcode_libdir_separator_CXX=:
 
11124
        ;;
 
11125
      ia64*)
 
11126
        hardcode_libdir_flag_spec_CXX='-L$libdir'
 
11127
        ;;
 
11128
      *)
 
11129
        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
 
11130
        hardcode_libdir_separator_CXX=:
 
11131
        export_dynamic_flag_spec_CXX='${wl}-E'
 
11132
        ;;
 
11133
      esac
 
11134
    fi
 
11135
    case "$host_cpu" in
 
11136
    hppa*64*)
 
11137
      hardcode_direct_CXX=no
 
11138
      hardcode_shlibpath_var_CXX=no
 
11139
      ;;
 
11140
    ia64*)
 
11141
      hardcode_direct_CXX=no
 
11142
      hardcode_shlibpath_var_CXX=no
 
11143
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11144
                                              # but as the default
 
11145
                                              # location of the library.
 
11146
      ;;
 
11147
    *)
 
11148
      hardcode_direct_CXX=yes
 
11149
      hardcode_minus_L_CXX=yes # Not in the search PATH,
 
11150
                                              # but as the default
 
11151
                                              # location of the library.
 
11152
      ;;
 
11153
    esac
 
11154
 
 
11155
    case $cc_basename in
 
11156
      CC)
 
11157
        # FIXME: insert proper C++ library support
 
11158
        ld_shlibs_CXX=no
 
11159
        ;;
 
11160
      aCC)
 
11161
        case "$host_cpu" in
 
11162
        hppa*64*|ia64*)
 
11163
          archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11164
          ;;
 
11165
        *)
 
11166
          archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11167
          ;;
 
11168
        esac
 
11169
        # Commands to make compiler produce verbose output that lists
 
11170
        # what "hidden" libraries, object files and flags are used when
 
11171
        # linking a shared library.
 
11172
        #
 
11173
        # There doesn't appear to be a way to prevent this compiler from
 
11174
        # explicitly linking system object files so we need to strip them
 
11175
        # from the output so that they don't get included in the library
 
11176
        # dependencies.
 
11177
        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'
 
11178
        ;;
 
11179
      *)
 
11180
        if test "$GXX" = yes; then
 
11181
          if test $with_gnu_ld = no; then
 
11182
            case "$host_cpu" in
 
11183
            ia64*|hppa*64*)
 
11184
              archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
 
11185
              ;;
 
11186
            *)
 
11187
              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'
 
11188
              ;;
 
11189
            esac
 
11190
          fi
 
11191
        else
 
11192
          # FIXME: insert proper C++ library support
 
11193
          ld_shlibs_CXX=no
 
11194
        fi
 
11195
        ;;
 
11196
    esac
 
11197
    ;;
 
11198
  irix5* | irix6*)
 
11199
    case $cc_basename in
 
11200
      CC)
 
11201
        # SGI C++
 
11202
        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'
 
11203
 
 
11204
        # Archives containing C++ object files must be created using
 
11205
        # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
 
11206
        # necessary to make sure instantiated templates are included
 
11207
        # in the archive.
 
11208
        old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
 
11209
        ;;
 
11210
      *)
 
11211
        if test "$GXX" = yes; then
 
11212
          if test "$with_gnu_ld" = no; then
 
11213
            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'
 
11214
          else
 
11215
            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'
 
11216
          fi
 
11217
        fi
 
11218
        link_all_deplibs_CXX=yes
 
11219
        ;;
 
11220
    esac
 
11221
    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11222
    hardcode_libdir_separator_CXX=:
 
11223
    ;;
 
11224
  linux*)
 
11225
    case $cc_basename in
 
11226
      KCC)
 
11227
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11228
 
 
11229
        # KCC will only create a shared library if the output file
 
11230
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11231
        # to its proper name (with version) after linking.
 
11232
        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'
 
11233
        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'
 
11234
        # Commands to make compiler produce verbose output that lists
 
11235
        # what "hidden" libraries, object files and flags are used when
 
11236
        # linking a shared library.
 
11237
        #
 
11238
        # There doesn't appear to be a way to prevent this compiler from
 
11239
        # explicitly linking system object files so we need to strip them
 
11240
        # from the output so that they don't get included in the library
 
11241
        # dependencies.
 
11242
        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'
 
11243
 
 
11244
        hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
 
11245
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11246
 
 
11247
        # Archives containing C++ object files must be created using
 
11248
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11249
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11250
        ;;
 
11251
      icpc)
 
11252
        # Intel C++
 
11253
        with_gnu_ld=yes
 
11254
        archive_cmds_need_lc_CXX=no
 
11255
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11256
        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'
 
11257
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11258
        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 
11259
        whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
 
11260
        ;;
 
11261
      cxx)
 
11262
        # Compaq C++
 
11263
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
11264
        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'
 
11265
 
 
11266
        runpath_var=LD_RUN_PATH
 
11267
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11268
        hardcode_libdir_separator_CXX=:
 
11269
 
 
11270
        # Commands to make compiler produce verbose output that lists
 
11271
        # what "hidden" libraries, object files and flags are used when
 
11272
        # linking a shared library.
 
11273
        #
 
11274
        # There doesn't appear to be a way to prevent this compiler from
 
11275
        # explicitly linking system object files so we need to strip them
 
11276
        # from the output so that they don't get included in the library
 
11277
        # dependencies.
 
11278
        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'
 
11279
        ;;
 
11280
    esac
 
11281
    ;;
 
11282
  lynxos*)
 
11283
    # FIXME: insert proper C++ library support
 
11284
    ld_shlibs_CXX=no
 
11285
    ;;
 
11286
  m88k*)
 
11287
    # FIXME: insert proper C++ library support
 
11288
    ld_shlibs_CXX=no
 
11289
    ;;
 
11290
  mvs*)
 
11291
    case $cc_basename in
 
11292
      cxx)
 
11293
        # FIXME: insert proper C++ library support
 
11294
        ld_shlibs_CXX=no
 
11295
        ;;
 
11296
      *)
 
11297
        # FIXME: insert proper C++ library support
 
11298
        ld_shlibs_CXX=no
 
11299
        ;;
 
11300
    esac
 
11301
    ;;
 
11302
  netbsd* | knetbsd*-gnu)
 
11303
    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
11304
      archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
 
11305
      wlarc=
 
11306
      hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11307
      hardcode_direct_CXX=yes
 
11308
      hardcode_shlibpath_var_CXX=no
 
11309
    fi
 
11310
    # Workaround some broken pre-1.5 toolchains
 
11311
    output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
 
11312
    ;;
 
11313
  osf3*)
 
11314
    case $cc_basename in
 
11315
      KCC)
 
11316
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11317
 
 
11318
        # KCC will only create a shared library if the output file
 
11319
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11320
        # to its proper name (with version) after linking.
 
11321
        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'
 
11322
 
 
11323
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11324
        hardcode_libdir_separator_CXX=:
 
11325
 
 
11326
        # Archives containing C++ object files must be created using
 
11327
        # "CC -Bstatic", where "CC" is the KAI C++ compiler.
 
11328
        old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
 
11329
 
 
11330
        ;;
 
11331
      RCC)
 
11332
        # Rational C++ 2.4.1
 
11333
        # FIXME: insert proper C++ library support
 
11334
        ld_shlibs_CXX=no
 
11335
        ;;
 
11336
      cxx)
 
11337
        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11338
        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'
 
11339
 
 
11340
        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11341
        hardcode_libdir_separator_CXX=:
 
11342
 
 
11343
        # Commands to make compiler produce verbose output that lists
 
11344
        # what "hidden" libraries, object files and flags are used when
 
11345
        # linking a shared library.
 
11346
        #
 
11347
        # There doesn't appear to be a way to prevent this compiler from
 
11348
        # explicitly linking system object files so we need to strip them
 
11349
        # from the output so that they don't get included in the library
 
11350
        # dependencies.
 
11351
        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'
 
11352
        ;;
 
11353
      *)
 
11354
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11355
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11356
          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'
 
11357
 
 
11358
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11359
          hardcode_libdir_separator_CXX=:
 
11360
 
 
11361
          # Commands to make compiler produce verbose output that lists
 
11362
          # what "hidden" libraries, object files and flags are used when
 
11363
          # linking a shared library.
 
11364
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11365
 
 
11366
        else
 
11367
          # FIXME: insert proper C++ library support
 
11368
          ld_shlibs_CXX=no
 
11369
        fi
 
11370
        ;;
 
11371
    esac
 
11372
    ;;
 
11373
  osf4* | osf5*)
 
11374
    case $cc_basename in
 
11375
      KCC)
 
11376
        # Kuck and Associates, Inc. (KAI) C++ Compiler
 
11377
 
 
11378
        # KCC will only create a shared library if the output file
 
11379
        # ends with ".so" (or ".sl" for HP-UX), so rename the library
 
11380
        # to its proper name (with version) after linking.
 
11381
        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'
 
11382
 
 
11383
        hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
 
11384
        hardcode_libdir_separator_CXX=:
 
11385
 
 
11386
        # Archives containing C++ object files must be created using
 
11387
        # the KAI C++ compiler.
 
11388
        old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
 
11389
        ;;
 
11390
      RCC)
 
11391
        # Rational C++ 2.4.1
 
11392
        # FIXME: insert proper C++ library support
 
11393
        ld_shlibs_CXX=no
 
11394
        ;;
 
11395
      cxx)
 
11396
        allow_undefined_flag_CXX=' -expect_unresolved \*'
 
11397
        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'
 
11398
        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
 
11399
          echo "-hidden">> $lib.exp~
 
11400
          $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~
 
11401
          $rm $lib.exp'
 
11402
 
 
11403
        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
 
11404
        hardcode_libdir_separator_CXX=:
 
11405
 
 
11406
        # Commands to make compiler produce verbose output that lists
 
11407
        # what "hidden" libraries, object files and flags are used when
 
11408
        # linking a shared library.
 
11409
        #
 
11410
        # There doesn't appear to be a way to prevent this compiler from
 
11411
        # explicitly linking system object files so we need to strip them
 
11412
        # from the output so that they don't get included in the library
 
11413
        # dependencies.
 
11414
        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'
 
11415
        ;;
 
11416
      *)
 
11417
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11418
          allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
 
11419
         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'
 
11420
 
 
11421
          hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
 
11422
          hardcode_libdir_separator_CXX=:
 
11423
 
 
11424
          # Commands to make compiler produce verbose output that lists
 
11425
          # what "hidden" libraries, object files and flags are used when
 
11426
          # linking a shared library.
 
11427
          output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 
11428
 
 
11429
        else
 
11430
          # FIXME: insert proper C++ library support
 
11431
          ld_shlibs_CXX=no
 
11432
        fi
 
11433
        ;;
 
11434
    esac
 
11435
    ;;
 
11436
  psos*)
 
11437
    # FIXME: insert proper C++ library support
 
11438
    ld_shlibs_CXX=no
 
11439
    ;;
 
11440
  sco*)
 
11441
    archive_cmds_need_lc_CXX=no
 
11442
    case $cc_basename in
 
11443
      CC)
 
11444
        # FIXME: insert proper C++ library support
 
11445
        ld_shlibs_CXX=no
 
11446
        ;;
 
11447
      *)
 
11448
        # FIXME: insert proper C++ library support
 
11449
        ld_shlibs_CXX=no
 
11450
        ;;
 
11451
    esac
 
11452
    ;;
 
11453
  sunos4*)
 
11454
    case $cc_basename in
 
11455
      CC)
 
11456
        # Sun C++ 4.x
 
11457
        # FIXME: insert proper C++ library support
 
11458
        ld_shlibs_CXX=no
 
11459
        ;;
 
11460
      lcc)
 
11461
        # Lucid
 
11462
        # FIXME: insert proper C++ library support
 
11463
        ld_shlibs_CXX=no
 
11464
        ;;
 
11465
      *)
 
11466
        # FIXME: insert proper C++ library support
 
11467
        ld_shlibs_CXX=no
 
11468
        ;;
 
11469
    esac
 
11470
    ;;
 
11471
  solaris*)
 
11472
    case $cc_basename in
 
11473
      CC)
 
11474
        # Sun C++ 4.2, 5.x and Centerline C++
 
11475
        no_undefined_flag_CXX=' -zdefs'
 
11476
        archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
 
11477
        archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11478
        $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'
 
11479
 
 
11480
        hardcode_libdir_flag_spec_CXX='-R$libdir'
 
11481
        hardcode_shlibpath_var_CXX=no
 
11482
        case $host_os in
 
11483
          solaris2.0-5 | solaris2.0-5.*) ;;
 
11484
          *)
 
11485
            # The C++ compiler is used as linker so we must use $wl
 
11486
            # flag to pass the commands to the underlying system
 
11487
            # linker.
 
11488
            # Supported since Solaris 2.6 (maybe 2.5.1?)
 
11489
            whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
 
11490
            ;;
 
11491
        esac
 
11492
        link_all_deplibs_CXX=yes
 
11493
 
 
11494
        # Commands to make compiler produce verbose output that lists
 
11495
        # what "hidden" libraries, object files and flags are used when
 
11496
        # linking a shared library.
 
11497
        #
 
11498
        # There doesn't appear to be a way to prevent this compiler from
 
11499
        # explicitly linking system object files so we need to strip them
 
11500
        # from the output so that they don't get included in the library
 
11501
        # dependencies.
 
11502
        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'
 
11503
 
 
11504
        # Archives containing C++ object files must be created using
 
11505
        # "CC -xar", where "CC" is the Sun C++ compiler.  This is
 
11506
        # necessary to make sure instantiated templates are included
 
11507
        # in the archive.
 
11508
        old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
 
11509
        ;;
 
11510
      gcx)
 
11511
        # Green Hills C++ Compiler
 
11512
        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11513
 
 
11514
        # The C++ compiler must be used to create the archive.
 
11515
        old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
 
11516
        ;;
 
11517
      *)
 
11518
        # GNU C++ compiler with Solaris linker
 
11519
        if test "$GXX" = yes && test "$with_gnu_ld" = no; then
 
11520
          no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
 
11521
          if $CC --version | grep -v '^2\.7' > /dev/null; then
 
11522
            archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11523
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11524
                $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11525
 
 
11526
            # Commands to make compiler produce verbose output that lists
 
11527
            # what "hidden" libraries, object files and flags are used when
 
11528
            # linking a shared library.
 
11529
            output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11530
          else
 
11531
            # g++ 2.7 appears to require `-G' NOT `-shared' on this
 
11532
            # platform.
 
11533
            archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
 
11534
            archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
11535
                $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
 
11536
 
 
11537
            # Commands to make compiler produce verbose output that lists
 
11538
            # what "hidden" libraries, object files and flags are used when
 
11539
            # linking a shared library.
 
11540
            output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
 
11541
          fi
 
11542
 
 
11543
          hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
 
11544
        fi
 
11545
        ;;
 
11546
    esac
 
11547
    ;;
 
11548
  sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
 
11549
    archive_cmds_need_lc_CXX=no
 
11550
    ;;
 
11551
  tandem*)
 
11552
    case $cc_basename in
 
11553
      NCC)
 
11554
        # NonStop-UX NCC 3.20
 
11555
        # FIXME: insert proper C++ library support
 
11556
        ld_shlibs_CXX=no
 
11557
        ;;
 
11558
      *)
 
11559
        # FIXME: insert proper C++ library support
 
11560
        ld_shlibs_CXX=no
 
11561
        ;;
 
11562
    esac
 
11563
    ;;
 
11564
  vxworks*)
 
11565
    # FIXME: insert proper C++ library support
 
11566
    ld_shlibs_CXX=no
 
11567
    ;;
 
11568
  *)
 
11569
    # FIXME: insert proper C++ library support
 
11570
    ld_shlibs_CXX=no
 
11571
    ;;
 
11572
esac
 
11573
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
11574
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
11575
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
11576
 
 
11577
GCC_CXX="$GXX"
 
11578
LD_CXX="$LD"
 
11579
 
 
11580
 
 
11581
cat > conftest.$ac_ext <<EOF
 
11582
class Foo
 
11583
{
 
11584
public:
 
11585
  Foo (void) { a = 0; }
 
11586
private:
 
11587
  int a;
 
11588
};
 
11589
EOF
 
11590
 
 
11591
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
11592
  (eval $ac_compile) 2>&5
 
11593
  ac_status=$?
 
11594
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11595
  (exit $ac_status); }; then
 
11596
  # Parse the compiler output and extract the necessary
 
11597
  # objects, libraries and library flags.
 
11598
 
 
11599
  # Sentinel used to keep track of whether or not we are before
 
11600
  # the conftest object file.
 
11601
  pre_test_object_deps_done=no
 
11602
 
 
11603
  # The `*' in the case matches for architectures that use `case' in
 
11604
  # $output_verbose_cmd can trigger glob expansion during the loop
 
11605
  # eval without this substitution.
 
11606
  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
 
11607
 
 
11608
  for p in `eval $output_verbose_link_cmd`; do
 
11609
    case $p in
 
11610
 
 
11611
    -L* | -R* | -l*)
 
11612
       # Some compilers place space between "-{L,R}" and the path.
 
11613
       # Remove the space.
 
11614
       if test $p = "-L" \
 
11615
          || test $p = "-R"; then
 
11616
         prev=$p
 
11617
         continue
 
11618
       else
 
11619
         prev=
 
11620
       fi
 
11621
 
 
11622
       if test "$pre_test_object_deps_done" = no; then
 
11623
         case $p in
 
11624
         -L* | -R*)
 
11625
           # Internal compiler library paths should come after those
 
11626
           # provided the user.  The postdeps already come after the
 
11627
           # user supplied libs so there is no need to process them.
 
11628
           if test -z "$compiler_lib_search_path_CXX"; then
 
11629
             compiler_lib_search_path_CXX="${prev}${p}"
 
11630
           else
 
11631
             compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
 
11632
           fi
 
11633
           ;;
 
11634
         # The "-l" case would never come before the object being
 
11635
         # linked, so don't bother handling this case.
 
11636
         esac
 
11637
       else
 
11638
         if test -z "$postdeps_CXX"; then
 
11639
           postdeps_CXX="${prev}${p}"
 
11640
         else
 
11641
           postdeps_CXX="${postdeps_CXX} ${prev}${p}"
 
11642
         fi
 
11643
       fi
 
11644
       ;;
 
11645
 
 
11646
    *.$objext)
 
11647
       # This assumes that the test object file only shows up
 
11648
       # once in the compiler output.
 
11649
       if test "$p" = "conftest.$objext"; then
 
11650
         pre_test_object_deps_done=yes
 
11651
         continue
 
11652
       fi
 
11653
 
 
11654
       if test "$pre_test_object_deps_done" = no; then
 
11655
         if test -z "$predep_objects_CXX"; then
 
11656
           predep_objects_CXX="$p"
 
11657
         else
 
11658
           predep_objects_CXX="$predep_objects_CXX $p"
 
11659
         fi
 
11660
       else
 
11661
         if test -z "$postdep_objects_CXX"; then
 
11662
           postdep_objects_CXX="$p"
 
11663
         else
 
11664
           postdep_objects_CXX="$postdep_objects_CXX $p"
 
11665
         fi
 
11666
       fi
 
11667
       ;;
 
11668
 
 
11669
    *) ;; # Ignore the rest.
 
11670
 
 
11671
    esac
 
11672
  done
 
11673
 
 
11674
  # Clean up.
 
11675
  rm -f a.out a.exe
 
11676
else
 
11677
  echo "libtool.m4: error: problem compiling CXX test program"
 
11678
fi
 
11679
 
 
11680
$rm -f confest.$objext
 
11681
 
 
11682
case " $postdeps_CXX " in
 
11683
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
 
11684
esac
 
11685
 
 
11686
lt_prog_compiler_wl_CXX=
 
11687
lt_prog_compiler_pic_CXX=
 
11688
lt_prog_compiler_static_CXX=
 
11689
 
 
11690
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
11691
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
11692
 
 
11693
  # C++ specific cases for pic, static, wl, etc.
 
11694
  if test "$GXX" = yes; then
 
11695
    lt_prog_compiler_wl_CXX='-Wl,'
 
11696
    lt_prog_compiler_static_CXX='-static'
 
11697
 
 
11698
    case $host_os in
 
11699
    aix*)
 
11700
      # All AIX code is PIC.
 
11701
      if test "$host_cpu" = ia64; then
 
11702
        # AIX 5 now supports IA64 processor
 
11703
        lt_prog_compiler_static_CXX='-Bstatic'
 
11704
      fi
 
11705
      ;;
 
11706
    amigaos*)
 
11707
      # FIXME: we need at least 68020 code to build shared libraries, but
 
11708
      # adding the `-m68020' flag to GCC prevents building anything better,
 
11709
      # like `-m68040'.
 
11710
      lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
 
11711
      ;;
 
11712
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
11713
      # PIC is the default for these OSes.
 
11714
      ;;
 
11715
    mingw* | os2* | pw32*)
 
11716
      # This hack is so that the source file can tell whether it is being
 
11717
      # built for inclusion in a dll (and should export symbols for example).
 
11718
      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
 
11719
      ;;
 
11720
    darwin* | rhapsody*)
 
11721
      # PIC is the default on this platform
 
11722
      # Common symbols not allowed in MH_DYLIB files
 
11723
      lt_prog_compiler_pic_CXX='-fno-common'
 
11724
      ;;
 
11725
    *djgpp*)
 
11726
      # DJGPP does not support shared libraries at all
 
11727
      lt_prog_compiler_pic_CXX=
 
11728
      ;;
 
11729
    sysv4*MP*)
 
11730
      if test -d /usr/nec; then
 
11731
        lt_prog_compiler_pic_CXX=-Kconform_pic
 
11732
      fi
 
11733
      ;;
 
11734
    hpux*)
 
11735
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
11736
      # not for PA HP-UX.
 
11737
      case "$host_cpu" in
 
11738
      hppa*64*|ia64*)
 
11739
        ;;
 
11740
      *)
 
11741
        lt_prog_compiler_pic_CXX='-fPIC'
 
11742
        ;;
 
11743
      esac
 
11744
      ;;
 
11745
    *)
 
11746
      lt_prog_compiler_pic_CXX='-fPIC'
 
11747
      ;;
 
11748
    esac
 
11749
  else
 
11750
    case $host_os in
 
11751
      aix4* | aix5*)
 
11752
        # All AIX code is PIC.
 
11753
        if test "$host_cpu" = ia64; then
 
11754
          # AIX 5 now supports IA64 processor
 
11755
          lt_prog_compiler_static_CXX='-Bstatic'
 
11756
        else
 
11757
          lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
 
11758
        fi
 
11759
        ;;
 
11760
      chorus*)
 
11761
        case $cc_basename in
 
11762
        cxch68)
 
11763
          # Green Hills C++ Compiler
 
11764
          # _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"
 
11765
          ;;
 
11766
        esac
 
11767
        ;;
 
11768
      dgux*)
 
11769
        case $cc_basename in
 
11770
          ec++)
 
11771
            lt_prog_compiler_pic_CXX='-KPIC'
 
11772
            ;;
 
11773
          ghcx)
 
11774
            # Green Hills C++ Compiler
 
11775
            lt_prog_compiler_pic_CXX='-pic'
 
11776
            ;;
 
11777
          *)
 
11778
            ;;
 
11779
        esac
 
11780
        ;;
 
11781
      freebsd* | kfreebsd*-gnu)
 
11782
        # FreeBSD uses GNU C++
 
11783
        ;;
 
11784
      hpux9* | hpux10* | hpux11*)
 
11785
        case $cc_basename in
 
11786
          CC)
 
11787
            lt_prog_compiler_wl_CXX='-Wl,'
 
11788
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11789
            if test "$host_cpu" != ia64; then
 
11790
              lt_prog_compiler_pic_CXX='+Z'
 
11791
            fi
 
11792
            ;;
 
11793
          aCC)
 
11794
            lt_prog_compiler_wl_CXX='-Wl,'
 
11795
            lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
 
11796
            case "$host_cpu" in
 
11797
            hppa*64*|ia64*)
 
11798
              # +Z the default
 
11799
              ;;
 
11800
            *)
 
11801
              lt_prog_compiler_pic_CXX='+Z'
 
11802
              ;;
 
11803
            esac
 
11804
            ;;
 
11805
          *)
 
11806
            ;;
 
11807
        esac
 
11808
        ;;
 
11809
      irix5* | irix6* | nonstopux*)
 
11810
        case $cc_basename in
 
11811
          CC)
 
11812
            lt_prog_compiler_wl_CXX='-Wl,'
 
11813
            lt_prog_compiler_static_CXX='-non_shared'
 
11814
            # CC pic flag -KPIC is the default.
 
11815
            ;;
 
11816
          *)
 
11817
            ;;
 
11818
        esac
 
11819
        ;;
 
11820
      linux*)
 
11821
        case $cc_basename in
 
11822
          KCC)
 
11823
            # KAI C++ Compiler
 
11824
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11825
            lt_prog_compiler_pic_CXX='-fPIC'
 
11826
            ;;
 
11827
          icpc)
 
11828
            # Intel C++
 
11829
            lt_prog_compiler_wl_CXX='-Wl,'
 
11830
            lt_prog_compiler_pic_CXX='-KPIC'
 
11831
            lt_prog_compiler_static_CXX='-static'
 
11832
            ;;
 
11833
          cxx)
 
11834
            # Compaq C++
 
11835
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11836
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11837
            lt_prog_compiler_pic_CXX=
 
11838
            lt_prog_compiler_static_CXX='-non_shared'
 
11839
            ;;
 
11840
          *)
 
11841
            ;;
 
11842
        esac
 
11843
        ;;
 
11844
      lynxos*)
 
11845
        ;;
 
11846
      m88k*)
 
11847
        ;;
 
11848
      mvs*)
 
11849
        case $cc_basename in
 
11850
          cxx)
 
11851
            lt_prog_compiler_pic_CXX='-W c,exportall'
 
11852
            ;;
 
11853
          *)
 
11854
            ;;
 
11855
        esac
 
11856
        ;;
 
11857
      netbsd* | knetbsd*-gnu)
 
11858
        ;;
 
11859
      osf3* | osf4* | osf5*)
 
11860
        case $cc_basename in
 
11861
          KCC)
 
11862
            lt_prog_compiler_wl_CXX='--backend -Wl,'
 
11863
            ;;
 
11864
          RCC)
 
11865
            # Rational C++ 2.4.1
 
11866
            lt_prog_compiler_pic_CXX='-pic'
 
11867
            ;;
 
11868
          cxx)
 
11869
            # Digital/Compaq C++
 
11870
            lt_prog_compiler_wl_CXX='-Wl,'
 
11871
            # Make sure the PIC flag is empty.  It appears that all Alpha
 
11872
            # Linux and Compaq Tru64 Unix objects are PIC.
 
11873
            lt_prog_compiler_pic_CXX=
 
11874
            lt_prog_compiler_static_CXX='-non_shared'
 
11875
            ;;
 
11876
          *)
 
11877
            ;;
 
11878
        esac
 
11879
        ;;
 
11880
      psos*)
 
11881
        ;;
 
11882
      sco*)
 
11883
        case $cc_basename in
 
11884
          CC)
 
11885
            lt_prog_compiler_pic_CXX='-fPIC'
 
11886
            ;;
 
11887
          *)
 
11888
            ;;
 
11889
        esac
 
11890
        ;;
 
11891
      solaris*)
 
11892
        case $cc_basename in
 
11893
          CC)
 
11894
            # Sun C++ 4.2, 5.x and Centerline C++
 
11895
            lt_prog_compiler_pic_CXX='-KPIC'
 
11896
            lt_prog_compiler_static_CXX='-Bstatic'
 
11897
            lt_prog_compiler_wl_CXX='-Qoption ld '
 
11898
            ;;
 
11899
          gcx)
 
11900
            # Green Hills C++ Compiler
 
11901
            lt_prog_compiler_pic_CXX='-PIC'
 
11902
            ;;
 
11903
          *)
 
11904
            ;;
 
11905
        esac
 
11906
        ;;
 
11907
      sunos4*)
 
11908
        case $cc_basename in
 
11909
          CC)
 
11910
            # Sun C++ 4.x
 
11911
            lt_prog_compiler_pic_CXX='-pic'
 
11912
            lt_prog_compiler_static_CXX='-Bstatic'
 
11913
            ;;
 
11914
          lcc)
 
11915
            # Lucid
 
11916
            lt_prog_compiler_pic_CXX='-pic'
 
11917
            ;;
 
11918
          *)
 
11919
            ;;
 
11920
        esac
 
11921
        ;;
 
11922
      tandem*)
 
11923
        case $cc_basename in
 
11924
          NCC)
 
11925
            # NonStop-UX NCC 3.20
 
11926
            lt_prog_compiler_pic_CXX='-KPIC'
 
11927
            ;;
 
11928
          *)
 
11929
            ;;
 
11930
        esac
 
11931
        ;;
 
11932
      unixware*)
 
11933
        ;;
 
11934
      vxworks*)
 
11935
        ;;
 
11936
      *)
 
11937
        lt_prog_compiler_can_build_shared_CXX=no
 
11938
        ;;
 
11939
    esac
 
11940
  fi
 
11941
 
 
11942
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
 
11943
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
 
11944
 
 
11945
#
 
11946
# Check to make sure the PIC flag actually works.
 
11947
#
 
11948
if test -n "$lt_prog_compiler_pic_CXX"; then
 
11949
 
 
11950
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
 
11951
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
 
11952
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
 
11953
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
11954
else
 
11955
  lt_prog_compiler_pic_works_CXX=no
 
11956
  ac_outfile=conftest.$ac_objext
 
11957
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
11958
   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
 
11959
   # Insert the option either (1) after the last *FLAGS variable, or
 
11960
   # (2) before a word containing "conftest.", or (3) at the end.
 
11961
   # Note that $ac_compile itself does not contain backslashes and begins
 
11962
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
11963
   # The option is referenced via a variable to avoid confusing sed.
 
11964
   lt_compile=`echo "$ac_compile" | $SED \
 
11965
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
11966
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
11967
   -e 's:$: $lt_compiler_flag:'`
 
11968
   (eval echo "\"\$as_me:11968: $lt_compile\"" >&5)
 
11969
   (eval "$lt_compile" 2>conftest.err)
 
11970
   ac_status=$?
 
11971
   cat conftest.err >&5
 
11972
   echo "$as_me:11972: \$? = $ac_status" >&5
 
11973
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
11974
     # The compiler can only warn and ignore the option if not recognized
 
11975
     # So say no if there are warnings
 
11976
     if test ! -s conftest.err; then
 
11977
       lt_prog_compiler_pic_works_CXX=yes
 
11978
     fi
 
11979
   fi
 
11980
   $rm conftest*
 
11981
 
 
11982
fi
 
11983
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
 
11984
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
 
11985
 
 
11986
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
 
11987
    case $lt_prog_compiler_pic_CXX in
 
11988
     "" | " "*) ;;
 
11989
     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
 
11990
     esac
 
11991
else
 
11992
    lt_prog_compiler_pic_CXX=
 
11993
     lt_prog_compiler_can_build_shared_CXX=no
 
11994
fi
 
11995
 
 
11996
fi
 
11997
case "$host_os" in
 
11998
  # For platforms which do not support PIC, -DPIC is meaningless:
 
11999
  *djgpp*)
 
12000
    lt_prog_compiler_pic_CXX=
 
12001
    ;;
 
12002
  *)
 
12003
    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
 
12004
    ;;
 
12005
esac
 
12006
 
 
12007
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
12008
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
12009
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
 
12010
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12011
else
 
12012
  lt_cv_prog_compiler_c_o_CXX=no
 
12013
   $rm -r conftest 2>/dev/null
 
12014
   mkdir conftest
 
12015
   cd conftest
 
12016
   mkdir out
 
12017
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12018
 
 
12019
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
12020
   # Insert the option either (1) after the last *FLAGS variable, or
 
12021
   # (2) before a word containing "conftest.", or (3) at the end.
 
12022
   # Note that $ac_compile itself does not contain backslashes and begins
 
12023
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
12024
   lt_compile=`echo "$ac_compile" | $SED \
 
12025
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
12026
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
12027
   -e 's:$: $lt_compiler_flag:'`
 
12028
   (eval echo "\"\$as_me:12028: $lt_compile\"" >&5)
 
12029
   (eval "$lt_compile" 2>out/conftest.err)
 
12030
   ac_status=$?
 
12031
   cat out/conftest.err >&5
 
12032
   echo "$as_me:12032: \$? = $ac_status" >&5
 
12033
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
12034
   then
 
12035
     # The compiler can only warn and ignore the option if not recognized
 
12036
     # So say no if there are warnings
 
12037
     if test ! -s out/conftest.err; then
 
12038
       lt_cv_prog_compiler_c_o_CXX=yes
 
12039
     fi
 
12040
   fi
 
12041
   chmod u+w .
 
12042
   $rm conftest*
 
12043
   # SGI C++ compiler will create directory out/ii_files/ for
 
12044
   # template instantiation
 
12045
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
12046
   $rm out/* && rmdir out
 
12047
   cd ..
 
12048
   rmdir conftest
 
12049
   $rm conftest*
 
12050
 
 
12051
fi
 
12052
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
 
12053
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
 
12054
 
 
12055
 
 
12056
hard_links="nottested"
 
12057
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
 
12058
  # do not overwrite the value of need_locks provided by the user
 
12059
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
12060
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
12061
  hard_links=yes
 
12062
  $rm conftest*
 
12063
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12064
  touch conftest.a
 
12065
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
12066
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
12067
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
12068
echo "${ECHO_T}$hard_links" >&6
 
12069
  if test "$hard_links" = no; then
 
12070
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
12071
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
12072
    need_locks=warn
 
12073
  fi
 
12074
else
 
12075
  need_locks=no
 
12076
fi
 
12077
 
 
12078
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
12079
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
12080
 
 
12081
  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12082
  case $host_os in
 
12083
  aix4* | aix5*)
 
12084
    # If we're using GNU nm, then we don't want the "-C" option.
 
12085
    # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
12086
    if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
12087
      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'
 
12088
    else
 
12089
      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'
 
12090
    fi
 
12091
    ;;
 
12092
  pw32*)
 
12093
    export_symbols_cmds_CXX="$ltdll_cmds"
 
12094
  ;;
 
12095
  cygwin* | mingw*)
 
12096
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
12097
  ;;
 
12098
  *)
 
12099
    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
12100
  ;;
 
12101
  esac
 
12102
 
 
12103
echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
 
12104
echo "${ECHO_T}$ld_shlibs_CXX" >&6
 
12105
test "$ld_shlibs_CXX" = no && can_build_shared=no
 
12106
 
 
12107
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
12108
if test "$GCC" = yes; then
 
12109
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
12110
fi
 
12111
 
 
12112
#
 
12113
# Do we need to explicitly link libc?
 
12114
#
 
12115
case "x$archive_cmds_need_lc_CXX" in
 
12116
x|xyes)
 
12117
  # Assume -lc should be added
 
12118
  archive_cmds_need_lc_CXX=yes
 
12119
 
 
12120
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
12121
    case $archive_cmds_CXX in
 
12122
    *'~'*)
 
12123
      # FIXME: we may have to deal with multi-command sequences.
 
12124
      ;;
 
12125
    '$CC '*)
 
12126
      # Test whether the compiler implicitly links with -lc since on some
 
12127
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
12128
      # to ld, don't add -lc before -lgcc.
 
12129
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
12130
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
12131
      $rm conftest*
 
12132
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
12133
 
 
12134
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
12135
  (eval $ac_compile) 2>&5
 
12136
  ac_status=$?
 
12137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12138
  (exit $ac_status); } 2>conftest.err; then
 
12139
        soname=conftest
 
12140
        lib=conftest
 
12141
        libobjs=conftest.$ac_objext
 
12142
        deplibs=
 
12143
        wl=$lt_prog_compiler_wl_CXX
 
12144
        compiler_flags=-v
 
12145
        linker_flags=-v
 
12146
        verstring=
 
12147
        output_objdir=.
 
12148
        libname=conftest
 
12149
        lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
 
12150
        allow_undefined_flag_CXX=
 
12151
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
12152
  (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
12153
  ac_status=$?
 
12154
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12155
  (exit $ac_status); }
 
12156
        then
 
12157
          archive_cmds_need_lc_CXX=no
 
12158
        else
 
12159
          archive_cmds_need_lc_CXX=yes
 
12160
        fi
 
12161
        allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
 
12162
      else
 
12163
        cat conftest.err 1>&5
 
12164
      fi
 
12165
      $rm conftest*
 
12166
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
 
12167
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
 
12168
      ;;
 
12169
    esac
 
12170
  fi
 
12171
  ;;
 
12172
esac
 
12173
 
 
12174
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
12175
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
12176
library_names_spec=
 
12177
libname_spec='lib$name'
 
12178
soname_spec=
 
12179
shrext=".so"
 
12180
postinstall_cmds=
 
12181
postuninstall_cmds=
 
12182
finish_cmds=
 
12183
finish_eval=
 
12184
shlibpath_var=
 
12185
shlibpath_overrides_runpath=unknown
 
12186
version_type=none
 
12187
dynamic_linker="$host_os ld.so"
 
12188
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
12189
if test "$GCC" = yes; then
 
12190
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12191
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
12192
    # if the path contains ";" then we assume it to be the separator
 
12193
    # otherwise default to the standard path separator (i.e. ":") - it is
 
12194
    # assumed that no part of a normal pathname contains ";" but that should
 
12195
    # okay in the real world where ";" in dirpaths is itself problematic.
 
12196
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12197
  else
 
12198
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12199
  fi
 
12200
else
 
12201
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
12202
fi
 
12203
need_lib_prefix=unknown
 
12204
hardcode_into_libs=no
 
12205
 
 
12206
# when you set need_version to no, make sure it does not cause -set_version
 
12207
# flags to be left without arguments
 
12208
need_version=unknown
 
12209
 
 
12210
case $host_os in
 
12211
aix3*)
 
12212
  version_type=linux
 
12213
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
12214
  shlibpath_var=LIBPATH
 
12215
 
 
12216
  # AIX 3 has no versioning support, so we append a major version to the name.
 
12217
  soname_spec='${libname}${release}${shared_ext}$major'
 
12218
  ;;
 
12219
 
 
12220
aix4* | aix5*)
 
12221
  version_type=linux
 
12222
  need_lib_prefix=no
 
12223
  need_version=no
 
12224
  hardcode_into_libs=yes
 
12225
  if test "$host_cpu" = ia64; then
 
12226
    # AIX 5 supports IA64
 
12227
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
12228
    shlibpath_var=LD_LIBRARY_PATH
 
12229
  else
 
12230
    # With GCC up to 2.95.x, collect2 would create an import file
 
12231
    # for dependence libraries.  The import file would start with
 
12232
    # the line `#! .'.  This would cause the generated library to
 
12233
    # depend on `.', always an invalid library.  This was fixed in
 
12234
    # development snapshots of GCC prior to 3.0.
 
12235
    case $host_os in
 
12236
      aix4 | aix4.[01] | aix4.[01].*)
 
12237
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
12238
           echo ' yes '
 
12239
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
12240
        :
 
12241
      else
 
12242
        can_build_shared=no
 
12243
      fi
 
12244
      ;;
 
12245
    esac
 
12246
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
12247
    # soname into executable. Probably we can add versioning support to
 
12248
    # collect2, so additional links can be useful in future.
 
12249
    if test "$aix_use_runtimelinking" = yes; then
 
12250
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
12251
      # instead of lib<name>.a to let people know that these are not
 
12252
      # typical AIX shared libraries.
 
12253
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12254
    else
 
12255
      # We preserve .a as extension for shared libraries through AIX4.2
 
12256
      # and later when we are not doing run time linking.
 
12257
      library_names_spec='${libname}${release}.a $libname.a'
 
12258
      soname_spec='${libname}${release}${shared_ext}$major'
 
12259
    fi
 
12260
    shlibpath_var=LIBPATH
 
12261
  fi
 
12262
  ;;
 
12263
 
 
12264
amigaos*)
 
12265
  library_names_spec='$libname.ixlibrary $libname.a'
 
12266
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
12267
  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'
 
12268
  ;;
 
12269
 
 
12270
beos*)
 
12271
  library_names_spec='${libname}${shared_ext}'
 
12272
  dynamic_linker="$host_os ld.so"
 
12273
  shlibpath_var=LIBRARY_PATH
 
12274
  ;;
 
12275
 
 
12276
bsdi4*)
 
12277
  version_type=linux
 
12278
  need_version=no
 
12279
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12280
  soname_spec='${libname}${release}${shared_ext}$major'
 
12281
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
12282
  shlibpath_var=LD_LIBRARY_PATH
 
12283
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
12284
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
12285
  # the default ld.so.conf also contains /usr/contrib/lib and
 
12286
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
12287
  # libtool to hard-code these into programs
 
12288
  ;;
 
12289
 
 
12290
cygwin* | mingw* | pw32*)
 
12291
  version_type=windows
 
12292
  shrext=".dll"
 
12293
  need_version=no
 
12294
  need_lib_prefix=no
 
12295
 
 
12296
  case $GCC,$host_os in
 
12297
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
12298
    library_names_spec='$libname.dll.a'
 
12299
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
12300
    postinstall_cmds='base_file=`basename \${file}`~
 
12301
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
12302
      dldir=$destdir/`dirname \$dlpath`~
 
12303
      test -d \$dldir || mkdir -p \$dldir~
 
12304
      $install_prog $dir/$dlname \$dldir/$dlname'
 
12305
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
12306
      dlpath=$dir/\$dldll~
 
12307
       $rm \$dlpath'
 
12308
    shlibpath_overrides_runpath=yes
 
12309
 
 
12310
    case $host_os in
 
12311
    cygwin*)
 
12312
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
12313
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12314
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
12315
      ;;
 
12316
    mingw*)
 
12317
      # MinGW DLLs use traditional 'lib' prefix
 
12318
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
12319
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
12320
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
12321
        # It is most probably a Windows format PATH printed by
 
12322
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
12323
        # path with ; separators, and with drive letters. We can handle the
 
12324
        # drive letters (cygwin fileutils understands them), so leave them,
 
12325
        # especially as we might pass files found there to a mingw objdump,
 
12326
        # which wouldn't understand a cygwinified path. Ahh.
 
12327
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
12328
      else
 
12329
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
12330
      fi
 
12331
      ;;
 
12332
    pw32*)
 
12333
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
12334
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
12335
      ;;
 
12336
    esac
 
12337
    ;;
 
12338
 
 
12339
  *)
 
12340
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
12341
    ;;
 
12342
  esac
 
12343
  dynamic_linker='Win32 ld.exe'
 
12344
  # FIXME: first we should search . and the directory the executable is in
 
12345
  shlibpath_var=PATH
 
12346
  ;;
 
12347
 
 
12348
darwin* | rhapsody*)
 
12349
  dynamic_linker="$host_os dyld"
 
12350
  version_type=darwin
 
12351
  need_lib_prefix=no
 
12352
  need_version=no
 
12353
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
12354
  soname_spec='${libname}${release}${major}$shared_ext'
 
12355
  shlibpath_overrides_runpath=yes
 
12356
  shlibpath_var=DYLD_LIBRARY_PATH
 
12357
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
12358
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
12359
  if test "$GCC" = yes; then
 
12360
    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"`
 
12361
  else
 
12362
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
12363
  fi
 
12364
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
12365
  ;;
 
12366
 
 
12367
dgux*)
 
12368
  version_type=linux
 
12369
  need_lib_prefix=no
 
12370
  need_version=no
 
12371
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
12372
  soname_spec='${libname}${release}${shared_ext}$major'
 
12373
  shlibpath_var=LD_LIBRARY_PATH
 
12374
  ;;
 
12375
 
 
12376
freebsd1*)
 
12377
  dynamic_linker=no
 
12378
  ;;
 
12379
 
 
12380
kfreebsd*-gnu)
 
12381
  version_type=linux
 
12382
  need_lib_prefix=no
 
12383
  need_version=no
 
12384
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12385
  soname_spec='${libname}${release}${shared_ext}$major'
 
12386
  shlibpath_var=LD_LIBRARY_PATH
 
12387
  shlibpath_overrides_runpath=no
 
12388
  hardcode_into_libs=yes
 
12389
  dynamic_linker='GNU ld.so'
 
12390
  ;;
 
12391
 
 
12392
freebsd*)
 
12393
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
12394
  version_type=freebsd-$objformat
 
12395
  case $version_type in
 
12396
    freebsd-elf*)
 
12397
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12398
      need_version=no
 
12399
      need_lib_prefix=no
 
12400
      ;;
 
12401
    freebsd-*)
 
12402
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
12403
      need_version=yes
 
12404
      ;;
 
12405
  esac
 
12406
  shlibpath_var=LD_LIBRARY_PATH
 
12407
  case $host_os in
 
12408
  freebsd2*)
 
12409
    shlibpath_overrides_runpath=yes
 
12410
    ;;
 
12411
  freebsd3.01* | freebsdelf3.01*)
 
12412
    shlibpath_overrides_runpath=yes
 
12413
    hardcode_into_libs=yes
 
12414
    ;;
 
12415
  *) # from 3.2 on
 
12416
    shlibpath_overrides_runpath=no
 
12417
    hardcode_into_libs=yes
 
12418
    ;;
 
12419
  esac
 
12420
  ;;
 
12421
 
 
12422
gnu*)
 
12423
  version_type=linux
 
12424
  need_lib_prefix=no
 
12425
  need_version=no
 
12426
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
12427
  soname_spec='${libname}${release}${shared_ext}$major'
 
12428
  shlibpath_var=LD_LIBRARY_PATH
 
12429
  hardcode_into_libs=yes
 
12430
  ;;
 
12431
 
 
12432
hpux9* | hpux10* | hpux11*)
 
12433
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
12434
  # link against other versions.
 
12435
  version_type=sunos
 
12436
  need_lib_prefix=no
 
12437
  need_version=no
 
12438
  case "$host_cpu" in
 
12439
  ia64*)
 
12440
    shrext='.so'
 
12441
    hardcode_into_libs=yes
 
12442
    dynamic_linker="$host_os dld.so"
 
12443
    shlibpath_var=LD_LIBRARY_PATH
 
12444
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12445
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12446
    soname_spec='${libname}${release}${shared_ext}$major'
 
12447
    if test "X$HPUX_IA64_MODE" = X32; then
 
12448
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
12449
    else
 
12450
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
12451
    fi
 
12452
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12453
    ;;
 
12454
   hppa*64*)
 
12455
     shrext='.sl'
 
12456
     hardcode_into_libs=yes
 
12457
     dynamic_linker="$host_os dld.sl"
 
12458
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
12459
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
12460
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12461
     soname_spec='${libname}${release}${shared_ext}$major'
 
12462
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
12463
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
12464
     ;;
 
12465
   *)
 
12466
    shrext='.sl'
 
12467
    dynamic_linker="$host_os dld.sl"
 
12468
    shlibpath_var=SHLIB_PATH
 
12469
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
12470
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12471
    soname_spec='${libname}${release}${shared_ext}$major'
 
12472
    ;;
 
12473
  esac
 
12474
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
12475
  postinstall_cmds='chmod 555 $lib'
 
12476
  ;;
 
12477
 
 
12478
irix5* | irix6* | nonstopux*)
 
12479
  case $host_os in
 
12480
    nonstopux*) version_type=nonstopux ;;
 
12481
    *)
 
12482
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
12483
                version_type=linux
 
12484
        else
 
12485
                version_type=irix
 
12486
        fi ;;
 
12487
  esac
 
12488
  need_lib_prefix=no
 
12489
  need_version=no
 
12490
  soname_spec='${libname}${release}${shared_ext}$major'
 
12491
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
12492
  case $host_os in
 
12493
  irix5* | nonstopux*)
 
12494
    libsuff= shlibsuff=
 
12495
    ;;
 
12496
  *)
 
12497
    case $LD in # libtool.m4 will add one of these switches to LD
 
12498
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
12499
      libsuff= shlibsuff= libmagic=32-bit;;
 
12500
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
12501
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
12502
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
12503
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
12504
    *) libsuff= shlibsuff= libmagic=never-match;;
 
12505
    esac
 
12506
    ;;
 
12507
  esac
 
12508
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
12509
  shlibpath_overrides_runpath=no
 
12510
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
12511
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
12512
  hardcode_into_libs=yes
 
12513
  ;;
 
12514
 
 
12515
# No shared lib support for Linux oldld, aout, or coff.
 
12516
linux*oldld* | linux*aout* | linux*coff*)
 
12517
  dynamic_linker=no
 
12518
  ;;
 
12519
 
 
12520
# This must be Linux ELF.
 
12521
linux*)
 
12522
  version_type=linux
 
12523
  need_lib_prefix=no
 
12524
  need_version=no
 
12525
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12526
  soname_spec='${libname}${release}${shared_ext}$major'
 
12527
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
12528
  shlibpath_var=LD_LIBRARY_PATH
 
12529
  shlibpath_overrides_runpath=no
 
12530
  # This implies no fast_install, which is unacceptable.
 
12531
  # Some rework will be needed to allow for fast_install
 
12532
  # before this can be enabled.
 
12533
  hardcode_into_libs=yes
 
12534
 
 
12535
  # Append ld.so.conf contents to the search path
 
12536
  if test -f /etc/ld.so.conf; then
 
12537
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
12538
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
12539
  fi
 
12540
 
 
12541
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
12542
  # powerpc, because MkLinux only supported shared libraries with the
 
12543
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
12544
  # most powerpc-linux boxes support dynamic linking these days and
 
12545
  # people can always --disable-shared, the test was removed, and we
 
12546
  # assume the GNU/Linux dynamic linker is in use.
 
12547
  dynamic_linker='GNU/Linux ld.so'
 
12548
  ;;
 
12549
 
 
12550
knetbsd*-gnu)
 
12551
  version_type=linux
 
12552
  need_lib_prefix=no
 
12553
  need_version=no
 
12554
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12555
  soname_spec='${libname}${release}${shared_ext}$major'
 
12556
  shlibpath_var=LD_LIBRARY_PATH
 
12557
  shlibpath_overrides_runpath=no
 
12558
  hardcode_into_libs=yes
 
12559
  dynamic_linker='GNU ld.so'
 
12560
  ;;
 
12561
 
 
12562
netbsd*)
 
12563
  version_type=sunos
 
12564
  need_lib_prefix=no
 
12565
  need_version=no
 
12566
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
12567
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12568
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12569
    dynamic_linker='NetBSD (a.out) ld.so'
 
12570
  else
 
12571
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
12572
    soname_spec='${libname}${release}${shared_ext}$major'
 
12573
    dynamic_linker='NetBSD ld.elf_so'
 
12574
  fi
 
12575
  shlibpath_var=LD_LIBRARY_PATH
 
12576
  shlibpath_overrides_runpath=yes
 
12577
  hardcode_into_libs=yes
 
12578
  ;;
 
12579
 
 
12580
newsos6)
 
12581
  version_type=linux
 
12582
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12583
  shlibpath_var=LD_LIBRARY_PATH
 
12584
  shlibpath_overrides_runpath=yes
 
12585
  ;;
 
12586
 
 
12587
nto-qnx*)
 
12588
  version_type=linux
 
12589
  need_lib_prefix=no
 
12590
  need_version=no
 
12591
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12592
  soname_spec='${libname}${release}${shared_ext}$major'
 
12593
  shlibpath_var=LD_LIBRARY_PATH
 
12594
  shlibpath_overrides_runpath=yes
 
12595
  ;;
 
12596
 
 
12597
openbsd*)
 
12598
  version_type=sunos
 
12599
  need_lib_prefix=no
 
12600
  need_version=yes
 
12601
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12602
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
12603
  shlibpath_var=LD_LIBRARY_PATH
 
12604
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
12605
    case $host_os in
 
12606
      openbsd2.[89] | openbsd2.[89].*)
 
12607
        shlibpath_overrides_runpath=no
 
12608
        ;;
 
12609
      *)
 
12610
        shlibpath_overrides_runpath=yes
 
12611
        ;;
 
12612
      esac
 
12613
  else
 
12614
    shlibpath_overrides_runpath=yes
 
12615
  fi
 
12616
  ;;
 
12617
 
 
12618
os2*)
 
12619
  libname_spec='$name'
 
12620
  shrext=".dll"
 
12621
  need_lib_prefix=no
 
12622
  library_names_spec='$libname${shared_ext} $libname.a'
 
12623
  dynamic_linker='OS/2 ld.exe'
 
12624
  shlibpath_var=LIBPATH
 
12625
  ;;
 
12626
 
 
12627
osf3* | osf4* | osf5*)
 
12628
  version_type=osf
 
12629
  need_lib_prefix=no
 
12630
  need_version=no
 
12631
  soname_spec='${libname}${release}${shared_ext}$major'
 
12632
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12633
  shlibpath_var=LD_LIBRARY_PATH
 
12634
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
12635
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
12636
  ;;
 
12637
 
 
12638
sco3.2v5*)
 
12639
  version_type=osf
 
12640
  soname_spec='${libname}${release}${shared_ext}$major'
 
12641
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12642
  shlibpath_var=LD_LIBRARY_PATH
 
12643
  ;;
 
12644
 
 
12645
solaris*)
 
12646
  version_type=linux
 
12647
  need_lib_prefix=no
 
12648
  need_version=no
 
12649
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12650
  soname_spec='${libname}${release}${shared_ext}$major'
 
12651
  shlibpath_var=LD_LIBRARY_PATH
 
12652
  shlibpath_overrides_runpath=yes
 
12653
  hardcode_into_libs=yes
 
12654
  # ldd complains unless libraries are executable
 
12655
  postinstall_cmds='chmod +x $lib'
 
12656
  ;;
 
12657
 
 
12658
sunos4*)
 
12659
  version_type=sunos
 
12660
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
12661
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
12662
  shlibpath_var=LD_LIBRARY_PATH
 
12663
  shlibpath_overrides_runpath=yes
 
12664
  if test "$with_gnu_ld" = yes; then
 
12665
    need_lib_prefix=no
 
12666
  fi
 
12667
  need_version=yes
 
12668
  ;;
 
12669
 
 
12670
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
12671
  version_type=linux
 
12672
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12673
  soname_spec='${libname}${release}${shared_ext}$major'
 
12674
  shlibpath_var=LD_LIBRARY_PATH
 
12675
  case $host_vendor in
 
12676
    sni)
 
12677
      shlibpath_overrides_runpath=no
 
12678
      need_lib_prefix=no
 
12679
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
12680
      runpath_var=LD_RUN_PATH
 
12681
      ;;
 
12682
    siemens)
 
12683
      need_lib_prefix=no
 
12684
      ;;
 
12685
    motorola)
 
12686
      need_lib_prefix=no
 
12687
      need_version=no
 
12688
      shlibpath_overrides_runpath=no
 
12689
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
12690
      ;;
 
12691
  esac
 
12692
  ;;
 
12693
 
 
12694
sysv4*MP*)
 
12695
  if test -d /usr/nec ;then
 
12696
    version_type=linux
 
12697
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
12698
    soname_spec='$libname${shared_ext}.$major'
 
12699
    shlibpath_var=LD_LIBRARY_PATH
 
12700
  fi
 
12701
  ;;
 
12702
 
 
12703
uts4*)
 
12704
  version_type=linux
 
12705
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
12706
  soname_spec='${libname}${release}${shared_ext}$major'
 
12707
  shlibpath_var=LD_LIBRARY_PATH
 
12708
  ;;
 
12709
 
 
12710
*)
 
12711
  dynamic_linker=no
 
12712
  ;;
 
12713
esac
 
12714
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
12715
echo "${ECHO_T}$dynamic_linker" >&6
 
12716
test "$dynamic_linker" = no && can_build_shared=no
 
12717
 
 
12718
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
12719
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
12720
hardcode_action_CXX=
 
12721
if test -n "$hardcode_libdir_flag_spec_CXX" || \
 
12722
   test -n "$runpath_var CXX" || \
 
12723
   test "X$hardcode_automatic_CXX"="Xyes" ; then
 
12724
 
 
12725
  # We can hardcode non-existant directories.
 
12726
  if test "$hardcode_direct_CXX" != no &&
 
12727
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
12728
     # have to relink, otherwise we might link with an installed library
 
12729
     # when we should be linking with a yet-to-be-installed one
 
12730
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
 
12731
     test "$hardcode_minus_L_CXX" != no; then
 
12732
    # Linking always hardcodes the temporary library directory.
 
12733
    hardcode_action_CXX=relink
 
12734
  else
 
12735
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
12736
    hardcode_action_CXX=immediate
 
12737
  fi
 
12738
else
 
12739
  # We cannot hardcode anything, or else we can only hardcode existing
 
12740
  # directories.
 
12741
  hardcode_action_CXX=unsupported
 
12742
fi
 
12743
echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
 
12744
echo "${ECHO_T}$hardcode_action_CXX" >&6
 
12745
 
 
12746
if test "$hardcode_action_CXX" = relink; then
 
12747
  # Fast installation is not supported
 
12748
  enable_fast_install=no
 
12749
elif test "$shlibpath_overrides_runpath" = yes ||
 
12750
     test "$enable_shared" = no; then
 
12751
  # Fast installation is not necessary
 
12752
  enable_fast_install=needless
 
12753
fi
 
12754
 
 
12755
striplib=
 
12756
old_striplib=
 
12757
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
12758
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
12759
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
12760
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
12761
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
12762
  echo "$as_me:$LINENO: result: yes" >&5
 
12763
echo "${ECHO_T}yes" >&6
 
12764
else
 
12765
# FIXME - insert some real tests, host_os isn't really good enough
 
12766
  case $host_os in
 
12767
   darwin*)
 
12768
       if test -n "$STRIP" ; then
 
12769
         striplib="$STRIP -x"
 
12770
         echo "$as_me:$LINENO: result: yes" >&5
 
12771
echo "${ECHO_T}yes" >&6
 
12772
       else
 
12773
  echo "$as_me:$LINENO: result: no" >&5
 
12774
echo "${ECHO_T}no" >&6
 
12775
fi
 
12776
       ;;
 
12777
   *)
 
12778
  echo "$as_me:$LINENO: result: no" >&5
 
12779
echo "${ECHO_T}no" >&6
 
12780
    ;;
 
12781
  esac
 
12782
fi
 
12783
 
 
12784
if test "x$enable_dlopen" != xyes; then
 
12785
  enable_dlopen=unknown
 
12786
  enable_dlopen_self=unknown
 
12787
  enable_dlopen_self_static=unknown
 
12788
else
 
12789
  lt_cv_dlopen=no
 
12790
  lt_cv_dlopen_libs=
 
12791
 
 
12792
  case $host_os in
 
12793
  beos*)
 
12794
    lt_cv_dlopen="load_add_on"
 
12795
    lt_cv_dlopen_libs=
 
12796
    lt_cv_dlopen_self=yes
 
12797
    ;;
 
12798
 
 
12799
  mingw* | pw32*)
 
12800
    lt_cv_dlopen="LoadLibrary"
 
12801
    lt_cv_dlopen_libs=
 
12802
   ;;
 
12803
 
 
12804
  cygwin*)
 
12805
    lt_cv_dlopen="dlopen"
 
12806
    lt_cv_dlopen_libs=
 
12807
   ;;
 
12808
 
 
12809
  darwin*)
 
12810
  # if libdl is installed we need to link against it
 
12811
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
12812
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
12813
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
12814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12815
else
 
12816
  ac_check_lib_save_LIBS=$LIBS
 
12817
LIBS="-ldl  $LIBS"
 
12818
cat >conftest.$ac_ext <<_ACEOF
 
12819
/* confdefs.h.  */
 
12820
_ACEOF
 
12821
cat confdefs.h >>conftest.$ac_ext
 
12822
cat >>conftest.$ac_ext <<_ACEOF
 
12823
/* end confdefs.h.  */
 
12824
 
 
12825
/* Override any gcc2 internal prototype to avoid an error.  */
 
12826
#ifdef __cplusplus
 
12827
extern "C"
 
12828
#endif
 
12829
/* We use char because int might match the return type of a gcc2
 
12830
   builtin and then its argument prototype would still apply.  */
 
12831
char dlopen ();
 
12832
int
 
12833
main ()
 
12834
{
 
12835
dlopen ();
 
12836
  ;
 
12837
  return 0;
 
12838
}
 
12839
_ACEOF
 
12840
rm -f conftest.$ac_objext conftest$ac_exeext
 
12841
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12842
  (eval $ac_link) 2>conftest.er1
 
12843
  ac_status=$?
 
12844
  grep -v '^ *+' conftest.er1 >conftest.err
 
12845
  rm -f conftest.er1
 
12846
  cat conftest.err >&5
 
12847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12848
  (exit $ac_status); } &&
 
12849
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12850
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12851
  (eval $ac_try) 2>&5
 
12852
  ac_status=$?
 
12853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12854
  (exit $ac_status); }; } &&
 
12855
         { ac_try='test -s conftest$ac_exeext'
 
12856
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12857
  (eval $ac_try) 2>&5
 
12858
  ac_status=$?
 
12859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12860
  (exit $ac_status); }; }; then
 
12861
  ac_cv_lib_dl_dlopen=yes
 
12862
else
 
12863
  echo "$as_me: failed program was:" >&5
 
12864
sed 's/^/| /' conftest.$ac_ext >&5
 
12865
 
 
12866
ac_cv_lib_dl_dlopen=no
 
12867
fi
 
12868
rm -f conftest.err conftest.$ac_objext \
 
12869
      conftest$ac_exeext conftest.$ac_ext
 
12870
LIBS=$ac_check_lib_save_LIBS
 
12871
fi
 
12872
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
12873
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
12874
if test $ac_cv_lib_dl_dlopen = yes; then
 
12875
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
12876
else
 
12877
 
 
12878
    lt_cv_dlopen="dyld"
 
12879
    lt_cv_dlopen_libs=
 
12880
    lt_cv_dlopen_self=yes
 
12881
 
 
12882
fi
 
12883
 
 
12884
   ;;
 
12885
 
 
12886
  *)
 
12887
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
12888
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
12889
if test "${ac_cv_func_shl_load+set}" = set; then
 
12890
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12891
else
 
12892
  cat >conftest.$ac_ext <<_ACEOF
 
12893
/* confdefs.h.  */
 
12894
_ACEOF
 
12895
cat confdefs.h >>conftest.$ac_ext
 
12896
cat >>conftest.$ac_ext <<_ACEOF
 
12897
/* end confdefs.h.  */
 
12898
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
12899
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
12900
#define shl_load innocuous_shl_load
 
12901
 
 
12902
/* System header to define __stub macros and hopefully few prototypes,
 
12903
    which can conflict with char shl_load (); below.
 
12904
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
12905
    <limits.h> exists even on freestanding compilers.  */
 
12906
 
 
12907
#ifdef __STDC__
 
12908
# include <limits.h>
 
12909
#else
 
12910
# include <assert.h>
 
12911
#endif
 
12912
 
 
12913
#undef shl_load
 
12914
 
 
12915
/* Override any gcc2 internal prototype to avoid an error.  */
 
12916
#ifdef __cplusplus
 
12917
extern "C"
 
12918
{
 
12919
#endif
 
12920
/* We use char because int might match the return type of a gcc2
 
12921
   builtin and then its argument prototype would still apply.  */
 
12922
char shl_load ();
 
12923
/* The GNU C library defines this for functions which it implements
 
12924
    to always fail with ENOSYS.  Some functions are actually named
 
12925
    something starting with __ and the normal name is an alias.  */
 
12926
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
12927
choke me
 
12928
#else
 
12929
char (*f) () = shl_load;
 
12930
#endif
 
12931
#ifdef __cplusplus
 
12932
}
 
12933
#endif
 
12934
 
 
12935
int
 
12936
main ()
 
12937
{
 
12938
return f != shl_load;
 
12939
  ;
 
12940
  return 0;
 
12941
}
 
12942
_ACEOF
 
12943
rm -f conftest.$ac_objext conftest$ac_exeext
 
12944
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
12945
  (eval $ac_link) 2>conftest.er1
 
12946
  ac_status=$?
 
12947
  grep -v '^ *+' conftest.er1 >conftest.err
 
12948
  rm -f conftest.er1
 
12949
  cat conftest.err >&5
 
12950
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12951
  (exit $ac_status); } &&
 
12952
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
12953
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12954
  (eval $ac_try) 2>&5
 
12955
  ac_status=$?
 
12956
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12957
  (exit $ac_status); }; } &&
 
12958
         { ac_try='test -s conftest$ac_exeext'
 
12959
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
12960
  (eval $ac_try) 2>&5
 
12961
  ac_status=$?
 
12962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
12963
  (exit $ac_status); }; }; then
 
12964
  ac_cv_func_shl_load=yes
 
12965
else
 
12966
  echo "$as_me: failed program was:" >&5
 
12967
sed 's/^/| /' conftest.$ac_ext >&5
 
12968
 
 
12969
ac_cv_func_shl_load=no
 
12970
fi
 
12971
rm -f conftest.err conftest.$ac_objext \
 
12972
      conftest$ac_exeext conftest.$ac_ext
 
12973
fi
 
12974
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
12975
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
12976
if test $ac_cv_func_shl_load = yes; then
 
12977
  lt_cv_dlopen="shl_load"
 
12978
else
 
12979
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
12980
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
12981
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
12982
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
12983
else
 
12984
  ac_check_lib_save_LIBS=$LIBS
 
12985
LIBS="-ldld  $LIBS"
 
12986
cat >conftest.$ac_ext <<_ACEOF
 
12987
/* confdefs.h.  */
 
12988
_ACEOF
 
12989
cat confdefs.h >>conftest.$ac_ext
 
12990
cat >>conftest.$ac_ext <<_ACEOF
 
12991
/* end confdefs.h.  */
 
12992
 
 
12993
/* Override any gcc2 internal prototype to avoid an error.  */
 
12994
#ifdef __cplusplus
 
12995
extern "C"
 
12996
#endif
 
12997
/* We use char because int might match the return type of a gcc2
 
12998
   builtin and then its argument prototype would still apply.  */
 
12999
char shl_load ();
 
13000
int
 
13001
main ()
 
13002
{
 
13003
shl_load ();
 
13004
  ;
 
13005
  return 0;
 
13006
}
 
13007
_ACEOF
 
13008
rm -f conftest.$ac_objext conftest$ac_exeext
 
13009
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13010
  (eval $ac_link) 2>conftest.er1
 
13011
  ac_status=$?
 
13012
  grep -v '^ *+' conftest.er1 >conftest.err
 
13013
  rm -f conftest.er1
 
13014
  cat conftest.err >&5
 
13015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13016
  (exit $ac_status); } &&
 
13017
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13018
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13019
  (eval $ac_try) 2>&5
 
13020
  ac_status=$?
 
13021
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13022
  (exit $ac_status); }; } &&
 
13023
         { ac_try='test -s conftest$ac_exeext'
 
13024
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13025
  (eval $ac_try) 2>&5
 
13026
  ac_status=$?
 
13027
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13028
  (exit $ac_status); }; }; then
 
13029
  ac_cv_lib_dld_shl_load=yes
 
13030
else
 
13031
  echo "$as_me: failed program was:" >&5
 
13032
sed 's/^/| /' conftest.$ac_ext >&5
 
13033
 
 
13034
ac_cv_lib_dld_shl_load=no
 
13035
fi
 
13036
rm -f conftest.err conftest.$ac_objext \
 
13037
      conftest$ac_exeext conftest.$ac_ext
 
13038
LIBS=$ac_check_lib_save_LIBS
 
13039
fi
 
13040
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
13041
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
13042
if test $ac_cv_lib_dld_shl_load = yes; then
 
13043
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
13044
else
 
13045
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
13046
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
13047
if test "${ac_cv_func_dlopen+set}" = set; then
 
13048
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13049
else
 
13050
  cat >conftest.$ac_ext <<_ACEOF
 
13051
/* confdefs.h.  */
 
13052
_ACEOF
 
13053
cat confdefs.h >>conftest.$ac_ext
 
13054
cat >>conftest.$ac_ext <<_ACEOF
 
13055
/* end confdefs.h.  */
 
13056
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
13057
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
13058
#define dlopen innocuous_dlopen
 
13059
 
 
13060
/* System header to define __stub macros and hopefully few prototypes,
 
13061
    which can conflict with char dlopen (); below.
 
13062
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
13063
    <limits.h> exists even on freestanding compilers.  */
 
13064
 
 
13065
#ifdef __STDC__
 
13066
# include <limits.h>
 
13067
#else
 
13068
# include <assert.h>
 
13069
#endif
 
13070
 
 
13071
#undef dlopen
 
13072
 
 
13073
/* Override any gcc2 internal prototype to avoid an error.  */
 
13074
#ifdef __cplusplus
 
13075
extern "C"
 
13076
{
 
13077
#endif
 
13078
/* We use char because int might match the return type of a gcc2
 
13079
   builtin and then its argument prototype would still apply.  */
 
13080
char dlopen ();
 
13081
/* The GNU C library defines this for functions which it implements
 
13082
    to always fail with ENOSYS.  Some functions are actually named
 
13083
    something starting with __ and the normal name is an alias.  */
 
13084
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
13085
choke me
 
13086
#else
 
13087
char (*f) () = dlopen;
 
13088
#endif
 
13089
#ifdef __cplusplus
 
13090
}
 
13091
#endif
 
13092
 
 
13093
int
 
13094
main ()
 
13095
{
 
13096
return f != dlopen;
 
13097
  ;
 
13098
  return 0;
 
13099
}
 
13100
_ACEOF
 
13101
rm -f conftest.$ac_objext conftest$ac_exeext
 
13102
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13103
  (eval $ac_link) 2>conftest.er1
 
13104
  ac_status=$?
 
13105
  grep -v '^ *+' conftest.er1 >conftest.err
 
13106
  rm -f conftest.er1
 
13107
  cat conftest.err >&5
 
13108
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13109
  (exit $ac_status); } &&
 
13110
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13111
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13112
  (eval $ac_try) 2>&5
 
13113
  ac_status=$?
 
13114
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13115
  (exit $ac_status); }; } &&
 
13116
         { ac_try='test -s conftest$ac_exeext'
 
13117
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13118
  (eval $ac_try) 2>&5
 
13119
  ac_status=$?
 
13120
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13121
  (exit $ac_status); }; }; then
 
13122
  ac_cv_func_dlopen=yes
 
13123
else
 
13124
  echo "$as_me: failed program was:" >&5
 
13125
sed 's/^/| /' conftest.$ac_ext >&5
 
13126
 
 
13127
ac_cv_func_dlopen=no
 
13128
fi
 
13129
rm -f conftest.err conftest.$ac_objext \
 
13130
      conftest$ac_exeext conftest.$ac_ext
 
13131
fi
 
13132
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
13133
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
13134
if test $ac_cv_func_dlopen = yes; then
 
13135
  lt_cv_dlopen="dlopen"
 
13136
else
 
13137
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
13138
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
13139
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
13140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13141
else
 
13142
  ac_check_lib_save_LIBS=$LIBS
 
13143
LIBS="-ldl  $LIBS"
 
13144
cat >conftest.$ac_ext <<_ACEOF
 
13145
/* confdefs.h.  */
 
13146
_ACEOF
 
13147
cat confdefs.h >>conftest.$ac_ext
 
13148
cat >>conftest.$ac_ext <<_ACEOF
 
13149
/* end confdefs.h.  */
 
13150
 
 
13151
/* Override any gcc2 internal prototype to avoid an error.  */
 
13152
#ifdef __cplusplus
 
13153
extern "C"
 
13154
#endif
 
13155
/* We use char because int might match the return type of a gcc2
 
13156
   builtin and then its argument prototype would still apply.  */
 
13157
char dlopen ();
 
13158
int
 
13159
main ()
 
13160
{
 
13161
dlopen ();
 
13162
  ;
 
13163
  return 0;
 
13164
}
 
13165
_ACEOF
 
13166
rm -f conftest.$ac_objext conftest$ac_exeext
 
13167
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13168
  (eval $ac_link) 2>conftest.er1
 
13169
  ac_status=$?
 
13170
  grep -v '^ *+' conftest.er1 >conftest.err
 
13171
  rm -f conftest.er1
 
13172
  cat conftest.err >&5
 
13173
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13174
  (exit $ac_status); } &&
 
13175
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13176
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13177
  (eval $ac_try) 2>&5
 
13178
  ac_status=$?
 
13179
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13180
  (exit $ac_status); }; } &&
 
13181
         { ac_try='test -s conftest$ac_exeext'
 
13182
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13183
  (eval $ac_try) 2>&5
 
13184
  ac_status=$?
 
13185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13186
  (exit $ac_status); }; }; then
 
13187
  ac_cv_lib_dl_dlopen=yes
 
13188
else
 
13189
  echo "$as_me: failed program was:" >&5
 
13190
sed 's/^/| /' conftest.$ac_ext >&5
 
13191
 
 
13192
ac_cv_lib_dl_dlopen=no
 
13193
fi
 
13194
rm -f conftest.err conftest.$ac_objext \
 
13195
      conftest$ac_exeext conftest.$ac_ext
 
13196
LIBS=$ac_check_lib_save_LIBS
 
13197
fi
 
13198
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
13199
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
13200
if test $ac_cv_lib_dl_dlopen = yes; then
 
13201
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
13202
else
 
13203
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
13204
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
13205
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
13206
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13207
else
 
13208
  ac_check_lib_save_LIBS=$LIBS
 
13209
LIBS="-lsvld  $LIBS"
 
13210
cat >conftest.$ac_ext <<_ACEOF
 
13211
/* confdefs.h.  */
 
13212
_ACEOF
 
13213
cat confdefs.h >>conftest.$ac_ext
 
13214
cat >>conftest.$ac_ext <<_ACEOF
 
13215
/* end confdefs.h.  */
 
13216
 
 
13217
/* Override any gcc2 internal prototype to avoid an error.  */
 
13218
#ifdef __cplusplus
 
13219
extern "C"
 
13220
#endif
 
13221
/* We use char because int might match the return type of a gcc2
 
13222
   builtin and then its argument prototype would still apply.  */
 
13223
char dlopen ();
 
13224
int
 
13225
main ()
 
13226
{
 
13227
dlopen ();
 
13228
  ;
 
13229
  return 0;
 
13230
}
 
13231
_ACEOF
 
13232
rm -f conftest.$ac_objext conftest$ac_exeext
 
13233
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13234
  (eval $ac_link) 2>conftest.er1
 
13235
  ac_status=$?
 
13236
  grep -v '^ *+' conftest.er1 >conftest.err
 
13237
  rm -f conftest.er1
 
13238
  cat conftest.err >&5
 
13239
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13240
  (exit $ac_status); } &&
 
13241
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13242
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13243
  (eval $ac_try) 2>&5
 
13244
  ac_status=$?
 
13245
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13246
  (exit $ac_status); }; } &&
 
13247
         { ac_try='test -s conftest$ac_exeext'
 
13248
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13249
  (eval $ac_try) 2>&5
 
13250
  ac_status=$?
 
13251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13252
  (exit $ac_status); }; }; then
 
13253
  ac_cv_lib_svld_dlopen=yes
 
13254
else
 
13255
  echo "$as_me: failed program was:" >&5
 
13256
sed 's/^/| /' conftest.$ac_ext >&5
 
13257
 
 
13258
ac_cv_lib_svld_dlopen=no
 
13259
fi
 
13260
rm -f conftest.err conftest.$ac_objext \
 
13261
      conftest$ac_exeext conftest.$ac_ext
 
13262
LIBS=$ac_check_lib_save_LIBS
 
13263
fi
 
13264
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
13265
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
13266
if test $ac_cv_lib_svld_dlopen = yes; then
 
13267
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
13268
else
 
13269
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
13270
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
13271
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
13272
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13273
else
 
13274
  ac_check_lib_save_LIBS=$LIBS
 
13275
LIBS="-ldld  $LIBS"
 
13276
cat >conftest.$ac_ext <<_ACEOF
 
13277
/* confdefs.h.  */
 
13278
_ACEOF
 
13279
cat confdefs.h >>conftest.$ac_ext
 
13280
cat >>conftest.$ac_ext <<_ACEOF
 
13281
/* end confdefs.h.  */
 
13282
 
 
13283
/* Override any gcc2 internal prototype to avoid an error.  */
 
13284
#ifdef __cplusplus
 
13285
extern "C"
 
13286
#endif
 
13287
/* We use char because int might match the return type of a gcc2
 
13288
   builtin and then its argument prototype would still apply.  */
 
13289
char dld_link ();
 
13290
int
 
13291
main ()
 
13292
{
 
13293
dld_link ();
 
13294
  ;
 
13295
  return 0;
 
13296
}
 
13297
_ACEOF
 
13298
rm -f conftest.$ac_objext conftest$ac_exeext
 
13299
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13300
  (eval $ac_link) 2>conftest.er1
 
13301
  ac_status=$?
 
13302
  grep -v '^ *+' conftest.er1 >conftest.err
 
13303
  rm -f conftest.er1
 
13304
  cat conftest.err >&5
 
13305
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13306
  (exit $ac_status); } &&
 
13307
         { ac_try='test -z "$ac_cxx_werror_flag"                         || test ! -s conftest.err'
 
13308
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13309
  (eval $ac_try) 2>&5
 
13310
  ac_status=$?
 
13311
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13312
  (exit $ac_status); }; } &&
 
13313
         { ac_try='test -s conftest$ac_exeext'
 
13314
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
13315
  (eval $ac_try) 2>&5
 
13316
  ac_status=$?
 
13317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13318
  (exit $ac_status); }; }; then
 
13319
  ac_cv_lib_dld_dld_link=yes
 
13320
else
 
13321
  echo "$as_me: failed program was:" >&5
 
13322
sed 's/^/| /' conftest.$ac_ext >&5
 
13323
 
 
13324
ac_cv_lib_dld_dld_link=no
 
13325
fi
 
13326
rm -f conftest.err conftest.$ac_objext \
 
13327
      conftest$ac_exeext conftest.$ac_ext
 
13328
LIBS=$ac_check_lib_save_LIBS
 
13329
fi
 
13330
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
13331
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
13332
if test $ac_cv_lib_dld_dld_link = yes; then
 
13333
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
13334
fi
 
13335
 
 
13336
 
 
13337
fi
 
13338
 
 
13339
 
 
13340
fi
 
13341
 
 
13342
 
 
13343
fi
 
13344
 
 
13345
 
 
13346
fi
 
13347
 
 
13348
 
 
13349
fi
 
13350
 
 
13351
    ;;
 
13352
  esac
 
13353
 
 
13354
  if test "x$lt_cv_dlopen" != xno; then
 
13355
    enable_dlopen=yes
 
13356
  else
 
13357
    enable_dlopen=no
 
13358
  fi
 
13359
 
 
13360
  case $lt_cv_dlopen in
 
13361
  dlopen)
 
13362
    save_CPPFLAGS="$CPPFLAGS"
 
13363
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
13364
 
 
13365
    save_LDFLAGS="$LDFLAGS"
 
13366
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
13367
 
 
13368
    save_LIBS="$LIBS"
 
13369
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
13370
 
 
13371
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
13372
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
13373
if test "${lt_cv_dlopen_self+set}" = set; then
 
13374
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13375
else
 
13376
          if test "$cross_compiling" = yes; then :
 
13377
  lt_cv_dlopen_self=cross
 
13378
else
 
13379
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13380
  lt_status=$lt_dlunknown
 
13381
  cat > conftest.$ac_ext <<EOF
 
13382
#line 13382 "configure"
 
13383
#include "confdefs.h"
 
13384
 
 
13385
#if HAVE_DLFCN_H
 
13386
#include <dlfcn.h>
 
13387
#endif
 
13388
 
 
13389
#include <stdio.h>
 
13390
 
 
13391
#ifdef RTLD_GLOBAL
 
13392
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13393
#else
 
13394
#  ifdef DL_GLOBAL
 
13395
#    define LT_DLGLOBAL         DL_GLOBAL
 
13396
#  else
 
13397
#    define LT_DLGLOBAL         0
 
13398
#  endif
 
13399
#endif
 
13400
 
 
13401
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13402
   find out it does not work in some platform. */
 
13403
#ifndef LT_DLLAZY_OR_NOW
 
13404
#  ifdef RTLD_LAZY
 
13405
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13406
#  else
 
13407
#    ifdef DL_LAZY
 
13408
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13409
#    else
 
13410
#      ifdef RTLD_NOW
 
13411
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13412
#      else
 
13413
#        ifdef DL_NOW
 
13414
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13415
#        else
 
13416
#          define LT_DLLAZY_OR_NOW      0
 
13417
#        endif
 
13418
#      endif
 
13419
#    endif
 
13420
#  endif
 
13421
#endif
 
13422
 
 
13423
#ifdef __cplusplus
 
13424
extern "C" void exit (int);
 
13425
#endif
 
13426
 
 
13427
void fnord() { int i=42;}
 
13428
int main ()
 
13429
{
 
13430
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13431
  int status = $lt_dlunknown;
 
13432
 
 
13433
  if (self)
 
13434
    {
 
13435
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13436
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13437
      /* dlclose (self); */
 
13438
    }
 
13439
 
 
13440
    exit (status);
 
13441
}
 
13442
EOF
 
13443
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13444
  (eval $ac_link) 2>&5
 
13445
  ac_status=$?
 
13446
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13447
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13448
    (./conftest; exit; ) 2>/dev/null
 
13449
    lt_status=$?
 
13450
    case x$lt_status in
 
13451
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
13452
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
13453
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
13454
    esac
 
13455
  else :
 
13456
    # compilation failed
 
13457
    lt_cv_dlopen_self=no
 
13458
  fi
 
13459
fi
 
13460
rm -fr conftest*
 
13461
 
 
13462
 
 
13463
fi
 
13464
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
13465
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
13466
 
 
13467
    if test "x$lt_cv_dlopen_self" = xyes; then
 
13468
      LDFLAGS="$LDFLAGS $link_static_flag"
 
13469
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
13470
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
13471
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
13472
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
13473
else
 
13474
          if test "$cross_compiling" = yes; then :
 
13475
  lt_cv_dlopen_self_static=cross
 
13476
else
 
13477
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
13478
  lt_status=$lt_dlunknown
 
13479
  cat > conftest.$ac_ext <<EOF
 
13480
#line 13480 "configure"
 
13481
#include "confdefs.h"
 
13482
 
 
13483
#if HAVE_DLFCN_H
 
13484
#include <dlfcn.h>
 
13485
#endif
 
13486
 
 
13487
#include <stdio.h>
 
13488
 
 
13489
#ifdef RTLD_GLOBAL
 
13490
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
13491
#else
 
13492
#  ifdef DL_GLOBAL
 
13493
#    define LT_DLGLOBAL         DL_GLOBAL
 
13494
#  else
 
13495
#    define LT_DLGLOBAL         0
 
13496
#  endif
 
13497
#endif
 
13498
 
 
13499
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
13500
   find out it does not work in some platform. */
 
13501
#ifndef LT_DLLAZY_OR_NOW
 
13502
#  ifdef RTLD_LAZY
 
13503
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
13504
#  else
 
13505
#    ifdef DL_LAZY
 
13506
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
13507
#    else
 
13508
#      ifdef RTLD_NOW
 
13509
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
13510
#      else
 
13511
#        ifdef DL_NOW
 
13512
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
13513
#        else
 
13514
#          define LT_DLLAZY_OR_NOW      0
 
13515
#        endif
 
13516
#      endif
 
13517
#    endif
 
13518
#  endif
 
13519
#endif
 
13520
 
 
13521
#ifdef __cplusplus
 
13522
extern "C" void exit (int);
 
13523
#endif
 
13524
 
 
13525
void fnord() { int i=42;}
 
13526
int main ()
 
13527
{
 
13528
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
13529
  int status = $lt_dlunknown;
 
13530
 
 
13531
  if (self)
 
13532
    {
 
13533
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
13534
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
13535
      /* dlclose (self); */
 
13536
    }
 
13537
 
 
13538
    exit (status);
 
13539
}
 
13540
EOF
 
13541
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
13542
  (eval $ac_link) 2>&5
 
13543
  ac_status=$?
 
13544
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
13545
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
13546
    (./conftest; exit; ) 2>/dev/null
 
13547
    lt_status=$?
 
13548
    case x$lt_status in
 
13549
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
13550
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
13551
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
13552
    esac
 
13553
  else :
 
13554
    # compilation failed
 
13555
    lt_cv_dlopen_self_static=no
 
13556
  fi
 
13557
fi
 
13558
rm -fr conftest*
 
13559
 
 
13560
 
 
13561
fi
 
13562
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
13563
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
13564
    fi
 
13565
 
 
13566
    CPPFLAGS="$save_CPPFLAGS"
 
13567
    LDFLAGS="$save_LDFLAGS"
 
13568
    LIBS="$save_LIBS"
 
13569
    ;;
 
13570
  esac
 
13571
 
 
13572
  case $lt_cv_dlopen_self in
 
13573
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
13574
  *) enable_dlopen_self=unknown ;;
 
13575
  esac
 
13576
 
 
13577
  case $lt_cv_dlopen_self_static in
 
13578
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
13579
  *) enable_dlopen_self_static=unknown ;;
 
13580
  esac
 
13581
fi
 
13582
 
 
13583
 
 
13584
# The else clause should only fire when bootstrapping the
 
13585
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
13586
# with your package, and you will get complaints that there are
 
13587
# no rules to generate ltmain.sh.
 
13588
if test -f "$ltmain"; then
 
13589
  # See if we are running on zsh, and set the options which allow our commands through
 
13590
  # without removal of \ escapes.
 
13591
  if test -n "${ZSH_VERSION+set}" ; then
 
13592
    setopt NO_GLOB_SUBST
 
13593
  fi
 
13594
  # Now quote all the things that may contain metacharacters while being
 
13595
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
13596
  # variables and quote the copies for generation of the libtool script.
 
13597
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
13598
    SED SHELL STRIP \
 
13599
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
13600
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
13601
    deplibs_check_method reload_flag reload_cmds need_locks \
 
13602
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
13603
    lt_cv_sys_global_symbol_to_c_name_address \
 
13604
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
13605
    old_postinstall_cmds old_postuninstall_cmds \
 
13606
    compiler_CXX \
 
13607
    CC_CXX \
 
13608
    LD_CXX \
 
13609
    lt_prog_compiler_wl_CXX \
 
13610
    lt_prog_compiler_pic_CXX \
 
13611
    lt_prog_compiler_static_CXX \
 
13612
    lt_prog_compiler_no_builtin_flag_CXX \
 
13613
    export_dynamic_flag_spec_CXX \
 
13614
    thread_safe_flag_spec_CXX \
 
13615
    whole_archive_flag_spec_CXX \
 
13616
    enable_shared_with_static_runtimes_CXX \
 
13617
    old_archive_cmds_CXX \
 
13618
    old_archive_from_new_cmds_CXX \
 
13619
    predep_objects_CXX \
 
13620
    postdep_objects_CXX \
 
13621
    predeps_CXX \
 
13622
    postdeps_CXX \
 
13623
    compiler_lib_search_path_CXX \
 
13624
    archive_cmds_CXX \
 
13625
    archive_expsym_cmds_CXX \
 
13626
    postinstall_cmds_CXX \
 
13627
    postuninstall_cmds_CXX \
 
13628
    old_archive_from_expsyms_cmds_CXX \
 
13629
    allow_undefined_flag_CXX \
 
13630
    no_undefined_flag_CXX \
 
13631
    export_symbols_cmds_CXX \
 
13632
    hardcode_libdir_flag_spec_CXX \
 
13633
    hardcode_libdir_flag_spec_ld_CXX \
 
13634
    hardcode_libdir_separator_CXX \
 
13635
    hardcode_automatic_CXX \
 
13636
    module_cmds_CXX \
 
13637
    module_expsym_cmds_CXX \
 
13638
    lt_cv_prog_compiler_c_o_CXX \
 
13639
    exclude_expsyms_CXX \
 
13640
    include_expsyms_CXX; do
 
13641
 
 
13642
    case $var in
 
13643
    old_archive_cmds_CXX | \
 
13644
    old_archive_from_new_cmds_CXX | \
 
13645
    archive_cmds_CXX | \
 
13646
    archive_expsym_cmds_CXX | \
 
13647
    module_cmds_CXX | \
 
13648
    module_expsym_cmds_CXX | \
 
13649
    old_archive_from_expsyms_cmds_CXX | \
 
13650
    export_symbols_cmds_CXX | \
 
13651
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
13652
    postinstall_cmds | postuninstall_cmds | \
 
13653
    old_postinstall_cmds | old_postuninstall_cmds | \
 
13654
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
13655
      # Double-quote double-evaled strings.
 
13656
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
13657
      ;;
 
13658
    *)
 
13659
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
13660
      ;;
 
13661
    esac
 
13662
  done
 
13663
 
 
13664
  case $lt_echo in
 
13665
  *'\$0 --fallback-echo"')
 
13666
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
13667
    ;;
 
13668
  esac
 
13669
 
 
13670
cfgfile="$ofile"
 
13671
 
 
13672
  cat <<__EOF__ >> "$cfgfile"
 
13673
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
13674
 
 
13675
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
13676
 
 
13677
# Shell to use when invoking shell scripts.
 
13678
SHELL=$lt_SHELL
 
13679
 
 
13680
# Whether or not to build shared libraries.
 
13681
build_libtool_libs=$enable_shared
 
13682
 
 
13683
# Whether or not to build static libraries.
 
13684
build_old_libs=$enable_static
 
13685
 
 
13686
# Whether or not to add -lc for building shared libraries.
 
13687
build_libtool_need_lc=$archive_cmds_need_lc_CXX
 
13688
 
 
13689
# Whether or not to disallow shared libs when runtime libs are static
 
13690
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
 
13691
 
 
13692
# Whether or not to optimize for fast installation.
 
13693
fast_install=$enable_fast_install
 
13694
 
 
13695
# The host system.
 
13696
host_alias=$host_alias
 
13697
host=$host
 
13698
 
 
13699
# An echo program that does not interpret backslashes.
 
13700
echo=$lt_echo
 
13701
 
 
13702
# The archiver.
 
13703
AR=$lt_AR
 
13704
AR_FLAGS=$lt_AR_FLAGS
 
13705
 
 
13706
# A C compiler.
 
13707
LTCC=$lt_LTCC
 
13708
 
 
13709
# A language-specific compiler.
 
13710
CC=$lt_compiler_CXX
 
13711
 
 
13712
# Is the compiler the GNU C compiler?
 
13713
with_gcc=$GCC_CXX
 
13714
 
 
13715
# An ERE matcher.
 
13716
EGREP=$lt_EGREP
 
13717
 
 
13718
# The linker used to build libraries.
 
13719
LD=$lt_LD_CXX
 
13720
 
 
13721
# Whether we need hard or soft links.
 
13722
LN_S=$lt_LN_S
 
13723
 
 
13724
# A BSD-compatible nm program.
 
13725
NM=$lt_NM
 
13726
 
 
13727
# A symbol stripping program
 
13728
STRIP=$lt_STRIP
 
13729
 
 
13730
# Used to examine libraries when file_magic_cmd begins "file"
 
13731
MAGIC_CMD=$MAGIC_CMD
 
13732
 
 
13733
# Used on cygwin: DLL creation program.
 
13734
DLLTOOL="$DLLTOOL"
 
13735
 
 
13736
# Used on cygwin: object dumper.
 
13737
OBJDUMP="$OBJDUMP"
 
13738
 
 
13739
# Used on cygwin: assembler.
 
13740
AS="$AS"
 
13741
 
 
13742
# The name of the directory that contains temporary libtool files.
 
13743
objdir=$objdir
 
13744
 
 
13745
# How to create reloadable object files.
 
13746
reload_flag=$lt_reload_flag
 
13747
reload_cmds=$lt_reload_cmds
 
13748
 
 
13749
# How to pass a linker flag through the compiler.
 
13750
wl=$lt_lt_prog_compiler_wl_CXX
 
13751
 
 
13752
# Object file suffix (normally "o").
 
13753
objext="$ac_objext"
 
13754
 
 
13755
# Old archive suffix (normally "a").
 
13756
libext="$libext"
 
13757
 
 
13758
# Shared library suffix (normally ".so").
 
13759
shrext='$shrext'
 
13760
 
 
13761
# Executable file suffix (normally "").
 
13762
exeext="$exeext"
 
13763
 
 
13764
# Additional compiler flags for building library objects.
 
13765
pic_flag=$lt_lt_prog_compiler_pic_CXX
 
13766
pic_mode=$pic_mode
 
13767
 
 
13768
# What is the maximum length of a command?
 
13769
max_cmd_len=$lt_cv_sys_max_cmd_len
 
13770
 
 
13771
# Does compiler simultaneously support -c and -o options?
 
13772
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
 
13773
 
 
13774
# Must we lock files when doing compilation ?
 
13775
need_locks=$lt_need_locks
 
13776
 
 
13777
# Do we need the lib prefix for modules?
 
13778
need_lib_prefix=$need_lib_prefix
 
13779
 
 
13780
# Do we need a version for libraries?
 
13781
need_version=$need_version
 
13782
 
 
13783
# Whether dlopen is supported.
 
13784
dlopen_support=$enable_dlopen
 
13785
 
 
13786
# Whether dlopen of programs is supported.
 
13787
dlopen_self=$enable_dlopen_self
 
13788
 
 
13789
# Whether dlopen of statically linked programs is supported.
 
13790
dlopen_self_static=$enable_dlopen_self_static
 
13791
 
 
13792
# Compiler flag to prevent dynamic linking.
 
13793
link_static_flag=$lt_lt_prog_compiler_static_CXX
 
13794
 
 
13795
# Compiler flag to turn off builtin functions.
 
13796
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
 
13797
 
 
13798
# Compiler flag to allow reflexive dlopens.
 
13799
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
 
13800
 
 
13801
# Compiler flag to generate shared objects directly from archives.
 
13802
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
 
13803
 
 
13804
# Compiler flag to generate thread-safe objects.
 
13805
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
 
13806
 
 
13807
# Library versioning type.
 
13808
version_type=$version_type
 
13809
 
 
13810
# Format of library name prefix.
 
13811
libname_spec=$lt_libname_spec
 
13812
 
 
13813
# List of archive names.  First name is the real one, the rest are links.
 
13814
# The last name is the one that the linker finds with -lNAME.
 
13815
library_names_spec=$lt_library_names_spec
 
13816
 
 
13817
# The coded name of the library, if different from the real name.
 
13818
soname_spec=$lt_soname_spec
 
13819
 
 
13820
# Commands used to build and install an old-style archive.
 
13821
RANLIB=$lt_RANLIB
 
13822
old_archive_cmds=$lt_old_archive_cmds_CXX
 
13823
old_postinstall_cmds=$lt_old_postinstall_cmds
 
13824
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
13825
 
 
13826
# Create an old-style archive from a shared archive.
 
13827
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
 
13828
 
 
13829
# Create a temporary old-style archive to link instead of a shared archive.
 
13830
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
 
13831
 
 
13832
# Commands used to build and install a shared archive.
 
13833
archive_cmds=$lt_archive_cmds_CXX
 
13834
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
 
13835
postinstall_cmds=$lt_postinstall_cmds
 
13836
postuninstall_cmds=$lt_postuninstall_cmds
 
13837
 
 
13838
# Commands used to build a loadable module (assumed same as above if empty)
 
13839
module_cmds=$lt_module_cmds_CXX
 
13840
module_expsym_cmds=$lt_module_expsym_cmds_CXX
 
13841
 
 
13842
# Commands to strip libraries.
 
13843
old_striplib=$lt_old_striplib
 
13844
striplib=$lt_striplib
 
13845
 
 
13846
# Dependencies to place before the objects being linked to create a
 
13847
# shared library.
 
13848
predep_objects=$lt_predep_objects_CXX
 
13849
 
 
13850
# Dependencies to place after the objects being linked to create a
 
13851
# shared library.
 
13852
postdep_objects=$lt_postdep_objects_CXX
 
13853
 
 
13854
# Dependencies to place before the objects being linked to create a
 
13855
# shared library.
 
13856
predeps=$lt_predeps_CXX
 
13857
 
 
13858
# Dependencies to place after the objects being linked to create a
 
13859
# shared library.
 
13860
postdeps=$lt_postdeps_CXX
 
13861
 
 
13862
# The library search path used internally by the compiler when linking
 
13863
# a shared library.
 
13864
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
 
13865
 
 
13866
# Method to check whether dependent libraries are shared objects.
 
13867
deplibs_check_method=$lt_deplibs_check_method
 
13868
 
 
13869
# Command to use when deplibs_check_method == file_magic.
 
13870
file_magic_cmd=$lt_file_magic_cmd
 
13871
 
 
13872
# Flag that allows shared libraries with undefined symbols to be built.
 
13873
allow_undefined_flag=$lt_allow_undefined_flag_CXX
 
13874
 
 
13875
# Flag that forces no undefined symbols.
 
13876
no_undefined_flag=$lt_no_undefined_flag_CXX
 
13877
 
 
13878
# Commands used to finish a libtool library installation in a directory.
 
13879
finish_cmds=$lt_finish_cmds
 
13880
 
 
13881
# Same as above, but a single script fragment to be evaled but not shown.
 
13882
finish_eval=$lt_finish_eval
 
13883
 
 
13884
# Take the output of nm and produce a listing of raw symbols and C names.
 
13885
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
13886
 
 
13887
# Transform the output of nm in a proper C declaration
 
13888
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
13889
 
 
13890
# Transform the output of nm in a C name address pair
 
13891
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
13892
 
 
13893
# This is the shared library runtime path variable.
 
13894
runpath_var=$runpath_var
 
13895
 
 
13896
# This is the shared library path variable.
 
13897
shlibpath_var=$shlibpath_var
 
13898
 
 
13899
# Is shlibpath searched before the hard-coded library search path?
 
13900
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
13901
 
 
13902
# How to hardcode a shared library path into an executable.
 
13903
hardcode_action=$hardcode_action_CXX
 
13904
 
 
13905
# Whether we should hardcode library paths into libraries.
 
13906
hardcode_into_libs=$hardcode_into_libs
 
13907
 
 
13908
# Flag to hardcode \$libdir into a binary during linking.
 
13909
# This must work even if \$libdir does not exist.
 
13910
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
 
13911
 
 
13912
# If ld is used when linking, flag to hardcode \$libdir into
 
13913
# a binary during linking. This must work even if \$libdir does
 
13914
# not exist.
 
13915
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
 
13916
 
 
13917
# Whether we need a single -rpath flag with a separated argument.
 
13918
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
 
13919
 
 
13920
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
13921
# resulting binary.
 
13922
hardcode_direct=$hardcode_direct_CXX
 
13923
 
 
13924
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
13925
# resulting binary.
 
13926
hardcode_minus_L=$hardcode_minus_L_CXX
 
13927
 
 
13928
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
13929
# the resulting binary.
 
13930
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
 
13931
 
 
13932
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
13933
# and all subsequent libraries and executables linked against it.
 
13934
hardcode_automatic=$hardcode_automatic_CXX
 
13935
 
 
13936
# Variables whose values should be saved in libtool wrapper scripts and
 
13937
# restored at relink time.
 
13938
variables_saved_for_relink="$variables_saved_for_relink"
 
13939
 
 
13940
# Whether libtool must link a program against all its dependency libraries.
 
13941
link_all_deplibs=$link_all_deplibs_CXX
 
13942
 
 
13943
# Compile-time system search path for libraries
 
13944
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
13945
 
 
13946
# Run-time system search path for libraries
 
13947
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
13948
 
 
13949
# Fix the shell variable \$srcfile for the compiler.
 
13950
fix_srcfile_path="$fix_srcfile_path_CXX"
 
13951
 
 
13952
# Set to yes if exported symbols are required.
 
13953
always_export_symbols=$always_export_symbols_CXX
 
13954
 
 
13955
# The commands to list exported symbols.
 
13956
export_symbols_cmds=$lt_export_symbols_cmds_CXX
 
13957
 
 
13958
# The commands to extract the exported symbol list from a shared archive.
 
13959
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
13960
 
 
13961
# Symbols that should not be listed in the preloaded symbols.
 
13962
exclude_expsyms=$lt_exclude_expsyms_CXX
 
13963
 
 
13964
# Symbols that must always be exported.
 
13965
include_expsyms=$lt_include_expsyms_CXX
 
13966
 
 
13967
# ### END LIBTOOL TAG CONFIG: $tagname
 
13968
 
 
13969
__EOF__
 
13970
 
 
13971
 
 
13972
else
 
13973
  # If there is no Makefile yet, we rely on a make rule to execute
 
13974
  # `config.status --recheck' to rerun these tests and create the
 
13975
  # libtool script then.
 
13976
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
13977
  if test -f "$ltmain_in"; then
 
13978
    test -f Makefile && make "$ltmain"
 
13979
  fi
 
13980
fi
 
13981
 
 
13982
 
 
13983
ac_ext=c
 
13984
ac_cpp='$CPP $CPPFLAGS'
 
13985
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
13986
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
13987
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
13988
 
 
13989
CC=$lt_save_CC
 
13990
LDCXX=$LD
 
13991
LD=$lt_save_LD
 
13992
GCC=$lt_save_GCC
 
13993
with_gnu_ldcxx=$with_gnu_ld
 
13994
with_gnu_ld=$lt_save_with_gnu_ld
 
13995
lt_cv_path_LDCXX=$lt_cv_path_LD
 
13996
lt_cv_path_LD=$lt_save_path_LD
 
13997
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
 
13998
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
 
13999
 
 
14000
        else
 
14001
          tagname=""
 
14002
        fi
 
14003
        ;;
 
14004
 
 
14005
      F77)
 
14006
        if test -n "$F77" && test "X$F77" != "Xno"; then
 
14007
 
 
14008
ac_ext=f
 
14009
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 
14010
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
14011
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 
14012
 
 
14013
 
 
14014
archive_cmds_need_lc_F77=no
 
14015
allow_undefined_flag_F77=
 
14016
always_export_symbols_F77=no
 
14017
archive_expsym_cmds_F77=
 
14018
export_dynamic_flag_spec_F77=
 
14019
hardcode_direct_F77=no
 
14020
hardcode_libdir_flag_spec_F77=
 
14021
hardcode_libdir_flag_spec_ld_F77=
 
14022
hardcode_libdir_separator_F77=
 
14023
hardcode_minus_L_F77=no
 
14024
hardcode_automatic_F77=no
 
14025
module_cmds_F77=
 
14026
module_expsym_cmds_F77=
 
14027
link_all_deplibs_F77=unknown
 
14028
old_archive_cmds_F77=$old_archive_cmds
 
14029
no_undefined_flag_F77=
 
14030
whole_archive_flag_spec_F77=
 
14031
enable_shared_with_static_runtimes_F77=no
 
14032
 
 
14033
# Source file extension for f77 test sources.
 
14034
ac_ext=f
 
14035
 
 
14036
# Object file extension for compiled f77 test sources.
 
14037
objext=o
 
14038
objext_F77=$objext
 
14039
 
 
14040
# Code to be used in simple compile tests
 
14041
lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
 
14042
 
 
14043
# Code to be used in simple link tests
 
14044
lt_simple_link_test_code="      program t\n      end\n"
 
14045
 
 
14046
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
14047
 
 
14048
# If no C compiler was specified, use CC.
 
14049
LTCC=${LTCC-"$CC"}
 
14050
 
 
14051
# Allow CC to be a program name with arguments.
 
14052
compiler=$CC
 
14053
 
 
14054
 
 
14055
# Allow CC to be a program name with arguments.
 
14056
lt_save_CC="$CC"
 
14057
CC=${F77-"f77"}
 
14058
compiler=$CC
 
14059
compiler_F77=$CC
 
14060
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 
14061
 
 
14062
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 
14063
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 
14064
echo "$as_me:$LINENO: result: $can_build_shared" >&5
 
14065
echo "${ECHO_T}$can_build_shared" >&6
 
14066
 
 
14067
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 
14068
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 
14069
test "$can_build_shared" = "no" && enable_shared=no
 
14070
 
 
14071
# On AIX, shared libraries and static libraries use the same namespace, and
 
14072
# are all built from PIC.
 
14073
case "$host_os" in
 
14074
aix3*)
 
14075
  test "$enable_shared" = yes && enable_static=no
 
14076
  if test -n "$RANLIB"; then
 
14077
    archive_cmds="$archive_cmds~\$RANLIB \$lib"
 
14078
    postinstall_cmds='$RANLIB $lib'
 
14079
  fi
 
14080
  ;;
 
14081
aix4*)
 
14082
  test "$enable_shared" = yes && enable_static=no
 
14083
  ;;
 
14084
esac
 
14085
echo "$as_me:$LINENO: result: $enable_shared" >&5
 
14086
echo "${ECHO_T}$enable_shared" >&6
 
14087
 
 
14088
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 
14089
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 
14090
# Make sure either enable_shared or enable_static is yes.
 
14091
test "$enable_shared" = yes || enable_static=yes
 
14092
echo "$as_me:$LINENO: result: $enable_static" >&5
 
14093
echo "${ECHO_T}$enable_static" >&6
 
14094
 
 
14095
test "$ld_shlibs_F77" = no && can_build_shared=no
 
14096
 
 
14097
GCC_F77="$G77"
 
14098
LD_F77="$LD"
 
14099
 
 
14100
lt_prog_compiler_wl_F77=
 
14101
lt_prog_compiler_pic_F77=
 
14102
lt_prog_compiler_static_F77=
 
14103
 
 
14104
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
14105
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
14106
 
 
14107
  if test "$GCC" = yes; then
 
14108
    lt_prog_compiler_wl_F77='-Wl,'
 
14109
    lt_prog_compiler_static_F77='-static'
 
14110
 
 
14111
    case $host_os in
 
14112
      aix*)
 
14113
      # All AIX code is PIC.
 
14114
      if test "$host_cpu" = ia64; then
 
14115
        # AIX 5 now supports IA64 processor
 
14116
        lt_prog_compiler_static_F77='-Bstatic'
 
14117
      fi
 
14118
      ;;
 
14119
 
 
14120
    amigaos*)
 
14121
      # FIXME: we need at least 68020 code to build shared libraries, but
 
14122
      # adding the `-m68020' flag to GCC prevents building anything better,
 
14123
      # like `-m68040'.
 
14124
      lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
 
14125
      ;;
 
14126
 
 
14127
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
14128
      # PIC is the default for these OSes.
 
14129
      ;;
 
14130
 
 
14131
    mingw* | pw32* | os2*)
 
14132
      # This hack is so that the source file can tell whether it is being
 
14133
      # built for inclusion in a dll (and should export symbols for example).
 
14134
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14135
      ;;
 
14136
 
 
14137
    darwin* | rhapsody*)
 
14138
      # PIC is the default on this platform
 
14139
      # Common symbols not allowed in MH_DYLIB files
 
14140
      lt_prog_compiler_pic_F77='-fno-common'
 
14141
      ;;
 
14142
 
 
14143
    msdosdjgpp*)
 
14144
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
14145
      # on systems that don't support them.
 
14146
      lt_prog_compiler_can_build_shared_F77=no
 
14147
      enable_shared=no
 
14148
      ;;
 
14149
 
 
14150
    sysv4*MP*)
 
14151
      if test -d /usr/nec; then
 
14152
        lt_prog_compiler_pic_F77=-Kconform_pic
 
14153
      fi
 
14154
      ;;
 
14155
 
 
14156
    hpux*)
 
14157
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14158
      # not for PA HP-UX.
 
14159
      case "$host_cpu" in
 
14160
      hppa*64*|ia64*)
 
14161
        # +Z the default
 
14162
        ;;
 
14163
      *)
 
14164
        lt_prog_compiler_pic_F77='-fPIC'
 
14165
        ;;
 
14166
      esac
 
14167
      ;;
 
14168
 
 
14169
    *)
 
14170
      lt_prog_compiler_pic_F77='-fPIC'
 
14171
      ;;
 
14172
    esac
 
14173
  else
 
14174
    # PORTME Check for flag to pass linker flags through the system compiler.
 
14175
    case $host_os in
 
14176
    aix*)
 
14177
      lt_prog_compiler_wl_F77='-Wl,'
 
14178
      if test "$host_cpu" = ia64; then
 
14179
        # AIX 5 now supports IA64 processor
 
14180
        lt_prog_compiler_static_F77='-Bstatic'
 
14181
      else
 
14182
        lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
 
14183
      fi
 
14184
      ;;
 
14185
 
 
14186
    mingw* | pw32* | os2*)
 
14187
      # This hack is so that the source file can tell whether it is being
 
14188
      # built for inclusion in a dll (and should export symbols for example).
 
14189
      lt_prog_compiler_pic_F77='-DDLL_EXPORT'
 
14190
      ;;
 
14191
 
 
14192
    hpux9* | hpux10* | hpux11*)
 
14193
      lt_prog_compiler_wl_F77='-Wl,'
 
14194
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
14195
      # not for PA HP-UX.
 
14196
      case "$host_cpu" in
 
14197
      hppa*64*|ia64*)
 
14198
        # +Z the default
 
14199
        ;;
 
14200
      *)
 
14201
        lt_prog_compiler_pic_F77='+Z'
 
14202
        ;;
 
14203
      esac
 
14204
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
14205
      lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
 
14206
      ;;
 
14207
 
 
14208
    irix5* | irix6* | nonstopux*)
 
14209
      lt_prog_compiler_wl_F77='-Wl,'
 
14210
      # PIC (with -KPIC) is the default.
 
14211
      lt_prog_compiler_static_F77='-non_shared'
 
14212
      ;;
 
14213
 
 
14214
    newsos6)
 
14215
      lt_prog_compiler_pic_F77='-KPIC'
 
14216
      lt_prog_compiler_static_F77='-Bstatic'
 
14217
      ;;
 
14218
 
 
14219
    linux*)
 
14220
      case $CC in
 
14221
      icc* | ecc*)
 
14222
        lt_prog_compiler_wl_F77='-Wl,'
 
14223
        lt_prog_compiler_pic_F77='-KPIC'
 
14224
        lt_prog_compiler_static_F77='-static'
 
14225
        ;;
 
14226
      ccc*)
 
14227
        lt_prog_compiler_wl_F77='-Wl,'
 
14228
        # All Alpha code is PIC.
 
14229
        lt_prog_compiler_static_F77='-non_shared'
 
14230
        ;;
 
14231
      esac
 
14232
      ;;
 
14233
 
 
14234
    osf3* | osf4* | osf5*)
 
14235
      lt_prog_compiler_wl_F77='-Wl,'
 
14236
      # All OSF/1 code is PIC.
 
14237
      lt_prog_compiler_static_F77='-non_shared'
 
14238
      ;;
 
14239
 
 
14240
    sco3.2v5*)
 
14241
      lt_prog_compiler_pic_F77='-Kpic'
 
14242
      lt_prog_compiler_static_F77='-dn'
 
14243
      ;;
 
14244
 
 
14245
    solaris*)
 
14246
      lt_prog_compiler_wl_F77='-Wl,'
 
14247
      lt_prog_compiler_pic_F77='-KPIC'
 
14248
      lt_prog_compiler_static_F77='-Bstatic'
 
14249
      ;;
 
14250
 
 
14251
    sunos4*)
 
14252
      lt_prog_compiler_wl_F77='-Qoption ld '
 
14253
      lt_prog_compiler_pic_F77='-PIC'
 
14254
      lt_prog_compiler_static_F77='-Bstatic'
 
14255
      ;;
 
14256
 
 
14257
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
14258
      lt_prog_compiler_wl_F77='-Wl,'
 
14259
      lt_prog_compiler_pic_F77='-KPIC'
 
14260
      lt_prog_compiler_static_F77='-Bstatic'
 
14261
      ;;
 
14262
 
 
14263
    sysv4*MP*)
 
14264
      if test -d /usr/nec ;then
 
14265
        lt_prog_compiler_pic_F77='-Kconform_pic'
 
14266
        lt_prog_compiler_static_F77='-Bstatic'
 
14267
      fi
 
14268
      ;;
 
14269
 
 
14270
    uts4*)
 
14271
      lt_prog_compiler_pic_F77='-pic'
 
14272
      lt_prog_compiler_static_F77='-Bstatic'
 
14273
      ;;
 
14274
 
 
14275
    *)
 
14276
      lt_prog_compiler_can_build_shared_F77=no
 
14277
      ;;
 
14278
    esac
 
14279
  fi
 
14280
 
 
14281
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
 
14282
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
 
14283
 
 
14284
#
 
14285
# Check to make sure the PIC flag actually works.
 
14286
#
 
14287
if test -n "$lt_prog_compiler_pic_F77"; then
 
14288
 
 
14289
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
 
14290
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
 
14291
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
 
14292
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14293
else
 
14294
  lt_prog_compiler_pic_works_F77=no
 
14295
  ac_outfile=conftest.$ac_objext
 
14296
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14297
   lt_compiler_flag="$lt_prog_compiler_pic_F77"
 
14298
   # Insert the option either (1) after the last *FLAGS variable, or
 
14299
   # (2) before a word containing "conftest.", or (3) at the end.
 
14300
   # Note that $ac_compile itself does not contain backslashes and begins
 
14301
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14302
   # The option is referenced via a variable to avoid confusing sed.
 
14303
   lt_compile=`echo "$ac_compile" | $SED \
 
14304
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14305
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14306
   -e 's:$: $lt_compiler_flag:'`
 
14307
   (eval echo "\"\$as_me:14307: $lt_compile\"" >&5)
 
14308
   (eval "$lt_compile" 2>conftest.err)
 
14309
   ac_status=$?
 
14310
   cat conftest.err >&5
 
14311
   echo "$as_me:14311: \$? = $ac_status" >&5
 
14312
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
14313
     # The compiler can only warn and ignore the option if not recognized
 
14314
     # So say no if there are warnings
 
14315
     if test ! -s conftest.err; then
 
14316
       lt_prog_compiler_pic_works_F77=yes
 
14317
     fi
 
14318
   fi
 
14319
   $rm conftest*
 
14320
 
 
14321
fi
 
14322
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
 
14323
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
 
14324
 
 
14325
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
 
14326
    case $lt_prog_compiler_pic_F77 in
 
14327
     "" | " "*) ;;
 
14328
     *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
 
14329
     esac
 
14330
else
 
14331
    lt_prog_compiler_pic_F77=
 
14332
     lt_prog_compiler_can_build_shared_F77=no
 
14333
fi
 
14334
 
 
14335
fi
 
14336
case "$host_os" in
 
14337
  # For platforms which do not support PIC, -DPIC is meaningless:
 
14338
  *djgpp*)
 
14339
    lt_prog_compiler_pic_F77=
 
14340
    ;;
 
14341
  *)
 
14342
    lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
 
14343
    ;;
 
14344
esac
 
14345
 
 
14346
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
14347
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
14348
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
 
14349
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
14350
else
 
14351
  lt_cv_prog_compiler_c_o_F77=no
 
14352
   $rm -r conftest 2>/dev/null
 
14353
   mkdir conftest
 
14354
   cd conftest
 
14355
   mkdir out
 
14356
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
14357
 
 
14358
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
14359
   # Insert the option either (1) after the last *FLAGS variable, or
 
14360
   # (2) before a word containing "conftest.", or (3) at the end.
 
14361
   # Note that $ac_compile itself does not contain backslashes and begins
 
14362
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
14363
   lt_compile=`echo "$ac_compile" | $SED \
 
14364
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
14365
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
14366
   -e 's:$: $lt_compiler_flag:'`
 
14367
   (eval echo "\"\$as_me:14367: $lt_compile\"" >&5)
 
14368
   (eval "$lt_compile" 2>out/conftest.err)
 
14369
   ac_status=$?
 
14370
   cat out/conftest.err >&5
 
14371
   echo "$as_me:14371: \$? = $ac_status" >&5
 
14372
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
14373
   then
 
14374
     # The compiler can only warn and ignore the option if not recognized
 
14375
     # So say no if there are warnings
 
14376
     if test ! -s out/conftest.err; then
 
14377
       lt_cv_prog_compiler_c_o_F77=yes
 
14378
     fi
 
14379
   fi
 
14380
   chmod u+w .
 
14381
   $rm conftest*
 
14382
   # SGI C++ compiler will create directory out/ii_files/ for
 
14383
   # template instantiation
 
14384
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
14385
   $rm out/* && rmdir out
 
14386
   cd ..
 
14387
   rmdir conftest
 
14388
   $rm conftest*
 
14389
 
 
14390
fi
 
14391
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
 
14392
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
 
14393
 
 
14394
 
 
14395
hard_links="nottested"
 
14396
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
 
14397
  # do not overwrite the value of need_locks provided by the user
 
14398
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
14399
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
14400
  hard_links=yes
 
14401
  $rm conftest*
 
14402
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14403
  touch conftest.a
 
14404
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
14405
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
14406
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
14407
echo "${ECHO_T}$hard_links" >&6
 
14408
  if test "$hard_links" = no; then
 
14409
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
14410
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
14411
    need_locks=warn
 
14412
  fi
 
14413
else
 
14414
  need_locks=no
 
14415
fi
 
14416
 
 
14417
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
14418
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
14419
 
 
14420
  runpath_var=
 
14421
  allow_undefined_flag_F77=
 
14422
  enable_shared_with_static_runtimes_F77=no
 
14423
  archive_cmds_F77=
 
14424
  archive_expsym_cmds_F77=
 
14425
  old_archive_From_new_cmds_F77=
 
14426
  old_archive_from_expsyms_cmds_F77=
 
14427
  export_dynamic_flag_spec_F77=
 
14428
  whole_archive_flag_spec_F77=
 
14429
  thread_safe_flag_spec_F77=
 
14430
  hardcode_libdir_flag_spec_F77=
 
14431
  hardcode_libdir_flag_spec_ld_F77=
 
14432
  hardcode_libdir_separator_F77=
 
14433
  hardcode_direct_F77=no
 
14434
  hardcode_minus_L_F77=no
 
14435
  hardcode_shlibpath_var_F77=unsupported
 
14436
  link_all_deplibs_F77=unknown
 
14437
  hardcode_automatic_F77=no
 
14438
  module_cmds_F77=
 
14439
  module_expsym_cmds_F77=
 
14440
  always_export_symbols_F77=no
 
14441
  export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
14442
  # include_expsyms should be a list of space-separated symbols to be *always*
 
14443
  # included in the symbol list
 
14444
  include_expsyms_F77=
 
14445
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
14446
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
14447
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
14448
  # as well as any symbol that contains `d'.
 
14449
  exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
 
14450
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
14451
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
14452
  # the symbol is explicitly referenced.  Since portable code cannot
 
14453
  # rely on this symbol name, it's probably fine to never include it in
 
14454
  # preloaded symbol tables.
 
14455
  extract_expsyms_cmds=
 
14456
 
 
14457
  case $host_os in
 
14458
  cygwin* | mingw* | pw32*)
 
14459
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
14460
    # When not using gcc, we currently assume that we are using
 
14461
    # Microsoft Visual C++.
 
14462
    if test "$GCC" != yes; then
 
14463
      with_gnu_ld=no
 
14464
    fi
 
14465
    ;;
 
14466
  openbsd*)
 
14467
    with_gnu_ld=no
 
14468
    ;;
 
14469
  esac
 
14470
 
 
14471
  ld_shlibs_F77=yes
 
14472
  if test "$with_gnu_ld" = yes; then
 
14473
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
14474
    wlarc='${wl}'
 
14475
 
 
14476
    # See if GNU ld supports shared libraries.
 
14477
    case $host_os in
 
14478
    aix3* | aix4* | aix5*)
 
14479
      # On AIX/PPC, the GNU linker is very broken
 
14480
      if test "$host_cpu" != ia64; then
 
14481
        ld_shlibs_F77=no
 
14482
        cat <<EOF 1>&2
 
14483
 
 
14484
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
14485
*** to be unable to reliably create shared libraries on AIX.
 
14486
*** Therefore, libtool is disabling shared libraries support.  If you
 
14487
*** really care for shared libraries, you may want to modify your PATH
 
14488
*** so that a non-GNU linker is found, and then restart.
 
14489
 
 
14490
EOF
 
14491
      fi
 
14492
      ;;
 
14493
 
 
14494
    amigaos*)
 
14495
      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)'
 
14496
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14497
      hardcode_minus_L_F77=yes
 
14498
 
 
14499
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
14500
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
14501
      # to version 4, is to share data among multiple programs linked
 
14502
      # with the same dynamic library.  Since this doesn't match the
 
14503
      # behavior of shared libraries on other platforms, we can't use
 
14504
      # them.
 
14505
      ld_shlibs_F77=no
 
14506
      ;;
 
14507
 
 
14508
    beos*)
 
14509
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14510
        allow_undefined_flag_F77=unsupported
 
14511
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
14512
        # support --undefined.  This deserves some investigation.  FIXME
 
14513
        archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14514
      else
 
14515
        ld_shlibs_F77=no
 
14516
      fi
 
14517
      ;;
 
14518
 
 
14519
    cygwin* | mingw* | pw32*)
 
14520
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
 
14521
      # as there is no search path for DLLs.
 
14522
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14523
      allow_undefined_flag_F77=unsupported
 
14524
      always_export_symbols_F77=no
 
14525
      enable_shared_with_static_runtimes_F77=yes
 
14526
      export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
14527
 
 
14528
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
14529
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
14530
        # If the export-symbols file already is a .def file (1st line
 
14531
        # is EXPORTS), use it as is; otherwise, prepend...
 
14532
        archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
14533
          cp $export_symbols $output_objdir/$soname.def;
 
14534
        else
 
14535
          echo EXPORTS > $output_objdir/$soname.def;
 
14536
          cat $export_symbols >> $output_objdir/$soname.def;
 
14537
        fi~
 
14538
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
14539
      else
 
14540
        ld_shlibs=no
 
14541
      fi
 
14542
      ;;
 
14543
 
 
14544
    netbsd* | knetbsd*-gnu)
 
14545
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
14546
        archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
14547
        wlarc=
 
14548
      else
 
14549
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14550
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14551
      fi
 
14552
      ;;
 
14553
 
 
14554
    solaris* | sysv5*)
 
14555
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
14556
        ld_shlibs_F77=no
 
14557
        cat <<EOF 1>&2
 
14558
 
 
14559
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
14560
*** create shared libraries on Solaris systems.  Therefore, libtool
 
14561
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
14562
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
14563
*** your PATH or compiler configuration so that the native linker is
 
14564
*** used, and then restart.
 
14565
 
 
14566
EOF
 
14567
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14568
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14569
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14570
      else
 
14571
        ld_shlibs_F77=no
 
14572
      fi
 
14573
      ;;
 
14574
 
 
14575
    sunos4*)
 
14576
      archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14577
      wlarc=
 
14578
      hardcode_direct_F77=yes
 
14579
      hardcode_shlibpath_var_F77=no
 
14580
      ;;
 
14581
 
 
14582
  linux*)
 
14583
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
14584
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14585
        archive_cmds_F77="$tmp_archive_cmds"
 
14586
      supports_anon_versioning=no
 
14587
      case `$LD -v 2>/dev/null` in
 
14588
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
14589
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
14590
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
14591
        *\ 2.11.*) ;; # other 2.11 versions
 
14592
        *) supports_anon_versioning=yes ;;
 
14593
      esac
 
14594
      if test $supports_anon_versioning = yes; then
 
14595
        archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
 
14596
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
14597
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
14598
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
14599
      else
 
14600
        archive_expsym_cmds_F77="$tmp_archive_cmds"
 
14601
      fi
 
14602
    else
 
14603
      ld_shlibs_F77=no
 
14604
    fi
 
14605
    ;;
 
14606
 
 
14607
    *)
 
14608
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
14609
        archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
14610
        archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
14611
      else
 
14612
        ld_shlibs_F77=no
 
14613
      fi
 
14614
      ;;
 
14615
    esac
 
14616
 
 
14617
    if test "$ld_shlibs_F77" = yes; then
 
14618
      runpath_var=LD_RUN_PATH
 
14619
      hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
 
14620
      export_dynamic_flag_spec_F77='${wl}--export-dynamic'
 
14621
      # ancient GNU ld didn't support --whole-archive et. al.
 
14622
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
14623
        whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
14624
      else
 
14625
        whole_archive_flag_spec_F77=
 
14626
      fi
 
14627
    fi
 
14628
  else
 
14629
    # PORTME fill in a description of your system's linker (not GNU ld)
 
14630
    case $host_os in
 
14631
    aix3*)
 
14632
      allow_undefined_flag_F77=unsupported
 
14633
      always_export_symbols_F77=yes
 
14634
      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'
 
14635
      # Note: this linker hardcodes the directories in LIBPATH if there
 
14636
      # are no directories specified by -L.
 
14637
      hardcode_minus_L_F77=yes
 
14638
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
14639
        # Neither direct hardcoding nor static linking is supported with a
 
14640
        # broken collect2.
 
14641
        hardcode_direct_F77=unsupported
 
14642
      fi
 
14643
      ;;
 
14644
 
 
14645
    aix4* | aix5*)
 
14646
      if test "$host_cpu" = ia64; then
 
14647
        # On IA64, the linker does run time linking by default, so we don't
 
14648
        # have to do anything special.
 
14649
        aix_use_runtimelinking=no
 
14650
        exp_sym_flag='-Bexport'
 
14651
        no_entry_flag=""
 
14652
      else
 
14653
        # If we're using GNU nm, then we don't want the "-C" option.
 
14654
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
14655
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
14656
          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'
 
14657
        else
 
14658
          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'
 
14659
        fi
 
14660
        aix_use_runtimelinking=no
 
14661
 
 
14662
        # Test if we are trying to use run time linking or normal
 
14663
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
14664
        # need to do runtime linking.
 
14665
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
14666
          for ld_flag in $LDFLAGS; do
 
14667
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
14668
            aix_use_runtimelinking=yes
 
14669
            break
 
14670
          fi
 
14671
          done
 
14672
        esac
 
14673
 
 
14674
        exp_sym_flag='-bexport'
 
14675
        no_entry_flag='-bnoentry'
 
14676
      fi
 
14677
 
 
14678
      # When large executables or shared objects are built, AIX ld can
 
14679
      # have problems creating the table of contents.  If linking a library
 
14680
      # or program results in "error TOC overflow" add -mminimal-toc to
 
14681
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
14682
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
14683
 
 
14684
      archive_cmds_F77=''
 
14685
      hardcode_direct_F77=yes
 
14686
      hardcode_libdir_separator_F77=':'
 
14687
      link_all_deplibs_F77=yes
 
14688
 
 
14689
      if test "$GCC" = yes; then
 
14690
        case $host_os in aix4.012|aix4.012.*)
 
14691
        # We only want to do this on AIX 4.2 and lower, the check
 
14692
        # below for broken collect2 doesn't work under 4.3+
 
14693
          collect2name=`${CC} -print-prog-name=collect2`
 
14694
          if test -f "$collect2name" && \
 
14695
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
14696
          then
 
14697
          # We have reworked collect2
 
14698
          hardcode_direct_F77=yes
 
14699
          else
 
14700
          # We have old collect2
 
14701
          hardcode_direct_F77=unsupported
 
14702
          # It fails to find uninstalled libraries when the uninstalled
 
14703
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
14704
          # to unsupported forces relinking
 
14705
          hardcode_minus_L_F77=yes
 
14706
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
14707
          hardcode_libdir_separator_F77=
 
14708
          fi
 
14709
        esac
 
14710
        shared_flag='-shared'
 
14711
      else
 
14712
        # not using gcc
 
14713
        if test "$host_cpu" = ia64; then
 
14714
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
14715
        # chokes on -Wl,-G. The following line is correct:
 
14716
          shared_flag='-G'
 
14717
        else
 
14718
        if test "$aix_use_runtimelinking" = yes; then
 
14719
            shared_flag='${wl}-G'
 
14720
          else
 
14721
            shared_flag='${wl}-bM:SRE'
 
14722
        fi
 
14723
        fi
 
14724
      fi
 
14725
 
 
14726
      # It seems that -bexpall does not export symbols beginning with
 
14727
      # underscore (_), so it is better to generate a list of symbols to export.
 
14728
      always_export_symbols_F77=yes
 
14729
      if test "$aix_use_runtimelinking" = yes; then
 
14730
        # Warning - without using the other runtime loading flags (-brtl),
 
14731
        # -berok will link without error, but may produce a broken library.
 
14732
        allow_undefined_flag_F77='-berok'
 
14733
       # Determine the default libpath from the value encoded in an empty executable.
 
14734
       cat >conftest.$ac_ext <<_ACEOF
 
14735
      program main
 
14736
 
 
14737
      end
 
14738
_ACEOF
 
14739
rm -f conftest.$ac_objext conftest$ac_exeext
 
14740
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14741
  (eval $ac_link) 2>conftest.er1
 
14742
  ac_status=$?
 
14743
  grep -v '^ *+' conftest.er1 >conftest.err
 
14744
  rm -f conftest.er1
 
14745
  cat conftest.err >&5
 
14746
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14747
  (exit $ac_status); } &&
 
14748
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14749
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14750
  (eval $ac_try) 2>&5
 
14751
  ac_status=$?
 
14752
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14753
  (exit $ac_status); }; } &&
 
14754
         { ac_try='test -s conftest$ac_exeext'
 
14755
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14756
  (eval $ac_try) 2>&5
 
14757
  ac_status=$?
 
14758
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14759
  (exit $ac_status); }; }; then
 
14760
 
 
14761
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14762
}'`
 
14763
# Check for a 64-bit object if we didn't find anything.
 
14764
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; }
 
14765
}'`; fi
 
14766
else
 
14767
  echo "$as_me: failed program was:" >&5
 
14768
sed 's/^/| /' conftest.$ac_ext >&5
 
14769
 
 
14770
fi
 
14771
rm -f conftest.err conftest.$ac_objext \
 
14772
      conftest$ac_exeext conftest.$ac_ext
 
14773
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14774
 
 
14775
       hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14776
        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"
 
14777
       else
 
14778
        if test "$host_cpu" = ia64; then
 
14779
          hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
 
14780
          allow_undefined_flag_F77="-z nodefs"
 
14781
          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"
 
14782
        else
 
14783
         # Determine the default libpath from the value encoded in an empty executable.
 
14784
         cat >conftest.$ac_ext <<_ACEOF
 
14785
      program main
 
14786
 
 
14787
      end
 
14788
_ACEOF
 
14789
rm -f conftest.$ac_objext conftest$ac_exeext
 
14790
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
14791
  (eval $ac_link) 2>conftest.er1
 
14792
  ac_status=$?
 
14793
  grep -v '^ *+' conftest.er1 >conftest.err
 
14794
  rm -f conftest.er1
 
14795
  cat conftest.err >&5
 
14796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14797
  (exit $ac_status); } &&
 
14798
         { ac_try='test -z "$ac_f77_werror_flag"                         || test ! -s conftest.err'
 
14799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14800
  (eval $ac_try) 2>&5
 
14801
  ac_status=$?
 
14802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14803
  (exit $ac_status); }; } &&
 
14804
         { ac_try='test -s conftest$ac_exeext'
 
14805
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
14806
  (eval $ac_try) 2>&5
 
14807
  ac_status=$?
 
14808
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
14809
  (exit $ac_status); }; }; then
 
14810
 
 
14811
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
14812
}'`
 
14813
# Check for a 64-bit object if we didn't find anything.
 
14814
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; }
 
14815
}'`; fi
 
14816
else
 
14817
  echo "$as_me: failed program was:" >&5
 
14818
sed 's/^/| /' conftest.$ac_ext >&5
 
14819
 
 
14820
fi
 
14821
rm -f conftest.err conftest.$ac_objext \
 
14822
      conftest$ac_exeext conftest.$ac_ext
 
14823
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
14824
 
 
14825
         hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
 
14826
          # Warning - without using the other run time loading flags,
 
14827
          # -berok will link without error, but may produce a broken library.
 
14828
          no_undefined_flag_F77=' ${wl}-bernotok'
 
14829
          allow_undefined_flag_F77=' ${wl}-berok'
 
14830
          # -bexpall does not export symbols beginning with underscore (_)
 
14831
          always_export_symbols_F77=yes
 
14832
          # Exported symbols can be pulled into shared objects from archives
 
14833
          whole_archive_flag_spec_F77=' '
 
14834
          archive_cmds_need_lc_F77=yes
 
14835
          # This is similar to how AIX traditionally builds it's shared libraries.
 
14836
          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'
 
14837
        fi
 
14838
      fi
 
14839
      ;;
 
14840
 
 
14841
    amigaos*)
 
14842
      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)'
 
14843
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14844
      hardcode_minus_L_F77=yes
 
14845
      # see comment about different semantics on the GNU ld section
 
14846
      ld_shlibs_F77=no
 
14847
      ;;
 
14848
 
 
14849
    bsdi4*)
 
14850
      export_dynamic_flag_spec_F77=-rdynamic
 
14851
      ;;
 
14852
 
 
14853
    cygwin* | mingw* | pw32*)
 
14854
      # When not using gcc, we currently assume that we are using
 
14855
      # Microsoft Visual C++.
 
14856
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
14857
      # no search path for DLLs.
 
14858
      hardcode_libdir_flag_spec_F77=' '
 
14859
      allow_undefined_flag_F77=unsupported
 
14860
      # Tell ltmain to make .lib files, not .a files.
 
14861
      libext=lib
 
14862
      # Tell ltmain to make .dll files, not .so files.
 
14863
      shrext=".dll"
 
14864
      # FIXME: Setting linknames here is a bad hack.
 
14865
      archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
14866
      # The linker will automatically build a .lib file if we build a DLL.
 
14867
      old_archive_From_new_cmds_F77='true'
 
14868
      # FIXME: Should let the user specify the lib program.
 
14869
      old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
14870
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
14871
      enable_shared_with_static_runtimes_F77=yes
 
14872
      ;;
 
14873
 
 
14874
    darwin* | rhapsody*)
 
14875
    if test "$GXX" = yes ; then
 
14876
      archive_cmds_need_lc_F77=no
 
14877
      case "$host_os" in
 
14878
      rhapsody* | darwin1.[012])
 
14879
        allow_undefined_flag_F77='-undefined suppress'
 
14880
        ;;
 
14881
      *) # Darwin 1.3 on
 
14882
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
14883
        allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14884
      else
 
14885
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
14886
          10.[012])
 
14887
            allow_undefined_flag_F77='-flat_namespace -undefined suppress'
 
14888
            ;;
 
14889
          10.*)
 
14890
            allow_undefined_flag_F77='-undefined dynamic_lookup'
 
14891
            ;;
 
14892
        esac
 
14893
      fi
 
14894
        ;;
 
14895
      esac
 
14896
        lt_int_apple_cc_single_mod=no
 
14897
        output_verbose_link_cmd='echo'
 
14898
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
14899
          lt_int_apple_cc_single_mod=yes
 
14900
        fi
 
14901
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14902
          archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
14903
        else
 
14904
        archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
 
14905
      fi
 
14906
      module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
14907
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
14908
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
14909
          archive_expsym_cmds_F77='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}'
 
14910
        else
 
14911
          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
14912
        fi
 
14913
          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}'
 
14914
      hardcode_direct_F77=no
 
14915
      hardcode_automatic_F77=yes
 
14916
      hardcode_shlibpath_var_F77=unsupported
 
14917
      whole_archive_flag_spec_F77='-all_load $convenience'
 
14918
      link_all_deplibs_F77=yes
 
14919
    else
 
14920
      ld_shlibs_F77=no
 
14921
    fi
 
14922
      ;;
 
14923
 
 
14924
    dgux*)
 
14925
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14926
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
14927
      hardcode_shlibpath_var_F77=no
 
14928
      ;;
 
14929
 
 
14930
    freebsd1*)
 
14931
      ld_shlibs_F77=no
 
14932
      ;;
 
14933
 
 
14934
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
14935
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
14936
    # does not break anything, and helps significantly (at the cost of a little
 
14937
    # extra space).
 
14938
    freebsd2.2*)
 
14939
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
14940
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14941
      hardcode_direct_F77=yes
 
14942
      hardcode_shlibpath_var_F77=no
 
14943
      ;;
 
14944
 
 
14945
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
14946
    freebsd2*)
 
14947
      archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
14948
      hardcode_direct_F77=yes
 
14949
      hardcode_minus_L_F77=yes
 
14950
      hardcode_shlibpath_var_F77=no
 
14951
      ;;
 
14952
 
 
14953
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
14954
    freebsd* | kfreebsd*-gnu)
 
14955
      archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
14956
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
14957
      hardcode_direct_F77=yes
 
14958
      hardcode_shlibpath_var_F77=no
 
14959
      ;;
 
14960
 
 
14961
    hpux9*)
 
14962
      if test "$GCC" = yes; then
 
14963
        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'
 
14964
      else
 
14965
        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'
 
14966
      fi
 
14967
      hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
14968
      hardcode_libdir_separator_F77=:
 
14969
      hardcode_direct_F77=yes
 
14970
 
 
14971
      # hardcode_minus_L: Not really in the search PATH,
 
14972
      # but as the default location of the library.
 
14973
      hardcode_minus_L_F77=yes
 
14974
      export_dynamic_flag_spec_F77='${wl}-E'
 
14975
      ;;
 
14976
 
 
14977
    hpux10* | hpux11*)
 
14978
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
14979
        case "$host_cpu" in
 
14980
        hppa*64*|ia64*)
 
14981
          archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
14982
          ;;
 
14983
        *)
 
14984
          archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
14985
          ;;
 
14986
        esac
 
14987
      else
 
14988
        case "$host_cpu" in
 
14989
        hppa*64*|ia64*)
 
14990
          archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
14991
          ;;
 
14992
        *)
 
14993
          archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
14994
          ;;
 
14995
        esac
 
14996
      fi
 
14997
      if test "$with_gnu_ld" = no; then
 
14998
        case "$host_cpu" in
 
14999
        hppa*64*)
 
15000
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15001
          hardcode_libdir_flag_spec_ld_F77='+b $libdir'
 
15002
          hardcode_libdir_separator_F77=:
 
15003
          hardcode_direct_F77=no
 
15004
          hardcode_shlibpath_var_F77=no
 
15005
          ;;
 
15006
        ia64*)
 
15007
          hardcode_libdir_flag_spec_F77='-L$libdir'
 
15008
          hardcode_direct_F77=no
 
15009
          hardcode_shlibpath_var_F77=no
 
15010
 
 
15011
          # hardcode_minus_L: Not really in the search PATH,
 
15012
          # but as the default location of the library.
 
15013
          hardcode_minus_L_F77=yes
 
15014
          ;;
 
15015
        *)
 
15016
          hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
 
15017
          hardcode_libdir_separator_F77=:
 
15018
          hardcode_direct_F77=yes
 
15019
          export_dynamic_flag_spec_F77='${wl}-E'
 
15020
 
 
15021
          # hardcode_minus_L: Not really in the search PATH,
 
15022
          # but as the default location of the library.
 
15023
          hardcode_minus_L_F77=yes
 
15024
          ;;
 
15025
        esac
 
15026
      fi
 
15027
      ;;
 
15028
 
 
15029
    irix5* | irix6* | nonstopux*)
 
15030
      if test "$GCC" = yes; then
 
15031
        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'
 
15032
      else
 
15033
        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'
 
15034
        hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
 
15035
      fi
 
15036
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15037
      hardcode_libdir_separator_F77=:
 
15038
      link_all_deplibs_F77=yes
 
15039
      ;;
 
15040
 
 
15041
    netbsd* | knetbsd*-gnu)
 
15042
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15043
        archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
15044
      else
 
15045
        archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
15046
      fi
 
15047
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15048
      hardcode_direct_F77=yes
 
15049
      hardcode_shlibpath_var_F77=no
 
15050
      ;;
 
15051
 
 
15052
    newsos6)
 
15053
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15054
      hardcode_direct_F77=yes
 
15055
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15056
      hardcode_libdir_separator_F77=:
 
15057
      hardcode_shlibpath_var_F77=no
 
15058
      ;;
 
15059
 
 
15060
    openbsd*)
 
15061
      hardcode_direct_F77=yes
 
15062
      hardcode_shlibpath_var_F77=no
 
15063
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15064
        archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15065
        hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15066
        export_dynamic_flag_spec_F77='${wl}-E'
 
15067
      else
 
15068
       case $host_os in
 
15069
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
15070
           archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
15071
           hardcode_libdir_flag_spec_F77='-R$libdir'
 
15072
           ;;
 
15073
         *)
 
15074
           archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
15075
           hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
 
15076
           ;;
 
15077
       esac
 
15078
      fi
 
15079
      ;;
 
15080
 
 
15081
    os2*)
 
15082
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15083
      hardcode_minus_L_F77=yes
 
15084
      allow_undefined_flag_F77=unsupported
 
15085
      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'
 
15086
      old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
15087
      ;;
 
15088
 
 
15089
    osf3*)
 
15090
      if test "$GCC" = yes; then
 
15091
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15092
        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'
 
15093
      else
 
15094
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15095
        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'
 
15096
      fi
 
15097
      hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15098
      hardcode_libdir_separator_F77=:
 
15099
      ;;
 
15100
 
 
15101
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
15102
      if test "$GCC" = yes; then
 
15103
        allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
 
15104
        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'
 
15105
        hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
 
15106
      else
 
15107
        allow_undefined_flag_F77=' -expect_unresolved \*'
 
15108
        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'
 
15109
        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~
 
15110
        $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'
 
15111
 
 
15112
        # Both c and cxx compiler support -rpath directly
 
15113
        hardcode_libdir_flag_spec_F77='-rpath $libdir'
 
15114
      fi
 
15115
      hardcode_libdir_separator_F77=:
 
15116
      ;;
 
15117
 
 
15118
    sco3.2v5*)
 
15119
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15120
      hardcode_shlibpath_var_F77=no
 
15121
      export_dynamic_flag_spec_F77='${wl}-Bexport'
 
15122
      runpath_var=LD_RUN_PATH
 
15123
      hardcode_runpath_var=yes
 
15124
      ;;
 
15125
 
 
15126
    solaris*)
 
15127
      no_undefined_flag_F77=' -z text'
 
15128
      if test "$GCC" = yes; then
 
15129
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15130
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15131
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
15132
      else
 
15133
        archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15134
        archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15135
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15136
      fi
 
15137
      hardcode_libdir_flag_spec_F77='-R$libdir'
 
15138
      hardcode_shlibpath_var_F77=no
 
15139
      case $host_os in
 
15140
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
15141
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
15142
        whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
 
15143
      esac
 
15144
      link_all_deplibs_F77=yes
 
15145
      ;;
 
15146
 
 
15147
    sunos4*)
 
15148
      if test "x$host_vendor" = xsequent; then
 
15149
        # Use $CC to link under sequent, because it throws in some extra .o
 
15150
        # files that make .init and .fini sections work.
 
15151
        archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
15152
      else
 
15153
        archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
15154
      fi
 
15155
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15156
      hardcode_direct_F77=yes
 
15157
      hardcode_minus_L_F77=yes
 
15158
      hardcode_shlibpath_var_F77=no
 
15159
      ;;
 
15160
 
 
15161
    sysv4)
 
15162
      case $host_vendor in
 
15163
        sni)
 
15164
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15165
          hardcode_direct_F77=yes # is this really true???
 
15166
        ;;
 
15167
        siemens)
 
15168
          ## LD is ld it makes a PLAMLIB
 
15169
          ## CC just makes a GrossModule.
 
15170
          archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15171
          reload_cmds_F77='$CC -r -o $output$reload_objs'
 
15172
          hardcode_direct_F77=no
 
15173
        ;;
 
15174
        motorola)
 
15175
          archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15176
          hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
 
15177
        ;;
 
15178
      esac
 
15179
      runpath_var='LD_RUN_PATH'
 
15180
      hardcode_shlibpath_var_F77=no
 
15181
      ;;
 
15182
 
 
15183
    sysv4.3*)
 
15184
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15185
      hardcode_shlibpath_var_F77=no
 
15186
      export_dynamic_flag_spec_F77='-Bexport'
 
15187
      ;;
 
15188
 
 
15189
    sysv4*MP*)
 
15190
      if test -d /usr/nec; then
 
15191
        archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15192
        hardcode_shlibpath_var_F77=no
 
15193
        runpath_var=LD_RUN_PATH
 
15194
        hardcode_runpath_var=yes
 
15195
        ld_shlibs_F77=yes
 
15196
      fi
 
15197
      ;;
 
15198
 
 
15199
    sysv4.2uw2*)
 
15200
      archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
15201
      hardcode_direct_F77=yes
 
15202
      hardcode_minus_L_F77=no
 
15203
      hardcode_shlibpath_var_F77=no
 
15204
      hardcode_runpath_var=yes
 
15205
      runpath_var=LD_RUN_PATH
 
15206
      ;;
 
15207
 
 
15208
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
15209
      no_undefined_flag_F77='${wl}-z ${wl}text'
 
15210
      if test "$GCC" = yes; then
 
15211
        archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15212
      else
 
15213
        archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
15214
      fi
 
15215
      runpath_var='LD_RUN_PATH'
 
15216
      hardcode_shlibpath_var_F77=no
 
15217
      ;;
 
15218
 
 
15219
    sysv5*)
 
15220
      no_undefined_flag_F77=' -z text'
 
15221
      # $CC -shared without GNU ld will not create a library from C++
 
15222
      # object files and a static libstdc++, better avoid it by now
 
15223
      archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15224
      archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
15225
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
15226
      hardcode_libdir_flag_spec_F77=
 
15227
      hardcode_shlibpath_var_F77=no
 
15228
      runpath_var='LD_RUN_PATH'
 
15229
      ;;
 
15230
 
 
15231
    uts4*)
 
15232
      archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
15233
      hardcode_libdir_flag_spec_F77='-L$libdir'
 
15234
      hardcode_shlibpath_var_F77=no
 
15235
      ;;
 
15236
 
 
15237
    *)
 
15238
      ld_shlibs_F77=no
 
15239
      ;;
 
15240
    esac
 
15241
  fi
 
15242
 
 
15243
echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
 
15244
echo "${ECHO_T}$ld_shlibs_F77" >&6
 
15245
test "$ld_shlibs_F77" = no && can_build_shared=no
 
15246
 
 
15247
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
15248
if test "$GCC" = yes; then
 
15249
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
15250
fi
 
15251
 
 
15252
#
 
15253
# Do we need to explicitly link libc?
 
15254
#
 
15255
case "x$archive_cmds_need_lc_F77" in
 
15256
x|xyes)
 
15257
  # Assume -lc should be added
 
15258
  archive_cmds_need_lc_F77=yes
 
15259
 
 
15260
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
15261
    case $archive_cmds_F77 in
 
15262
    *'~'*)
 
15263
      # FIXME: we may have to deal with multi-command sequences.
 
15264
      ;;
 
15265
    '$CC '*)
 
15266
      # Test whether the compiler implicitly links with -lc since on some
 
15267
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
15268
      # to ld, don't add -lc before -lgcc.
 
15269
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
15270
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
15271
      $rm conftest*
 
15272
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
15273
 
 
15274
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
15275
  (eval $ac_compile) 2>&5
 
15276
  ac_status=$?
 
15277
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15278
  (exit $ac_status); } 2>conftest.err; then
 
15279
        soname=conftest
 
15280
        lib=conftest
 
15281
        libobjs=conftest.$ac_objext
 
15282
        deplibs=
 
15283
        wl=$lt_prog_compiler_wl_F77
 
15284
        compiler_flags=-v
 
15285
        linker_flags=-v
 
15286
        verstring=
 
15287
        output_objdir=.
 
15288
        libname=conftest
 
15289
        lt_save_allow_undefined_flag=$allow_undefined_flag_F77
 
15290
        allow_undefined_flag_F77=
 
15291
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
15292
  (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
15293
  ac_status=$?
 
15294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
15295
  (exit $ac_status); }
 
15296
        then
 
15297
          archive_cmds_need_lc_F77=no
 
15298
        else
 
15299
          archive_cmds_need_lc_F77=yes
 
15300
        fi
 
15301
        allow_undefined_flag_F77=$lt_save_allow_undefined_flag
 
15302
      else
 
15303
        cat conftest.err 1>&5
 
15304
      fi
 
15305
      $rm conftest*
 
15306
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
 
15307
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
 
15308
      ;;
 
15309
    esac
 
15310
  fi
 
15311
  ;;
 
15312
esac
 
15313
 
 
15314
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
15315
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
15316
library_names_spec=
 
15317
libname_spec='lib$name'
 
15318
soname_spec=
 
15319
shrext=".so"
 
15320
postinstall_cmds=
 
15321
postuninstall_cmds=
 
15322
finish_cmds=
 
15323
finish_eval=
 
15324
shlibpath_var=
 
15325
shlibpath_overrides_runpath=unknown
 
15326
version_type=none
 
15327
dynamic_linker="$host_os ld.so"
 
15328
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
15329
if test "$GCC" = yes; then
 
15330
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15331
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
15332
    # if the path contains ";" then we assume it to be the separator
 
15333
    # otherwise default to the standard path separator (i.e. ":") - it is
 
15334
    # assumed that no part of a normal pathname contains ";" but that should
 
15335
    # okay in the real world where ";" in dirpaths is itself problematic.
 
15336
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15337
  else
 
15338
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15339
  fi
 
15340
else
 
15341
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
15342
fi
 
15343
need_lib_prefix=unknown
 
15344
hardcode_into_libs=no
 
15345
 
 
15346
# when you set need_version to no, make sure it does not cause -set_version
 
15347
# flags to be left without arguments
 
15348
need_version=unknown
 
15349
 
 
15350
case $host_os in
 
15351
aix3*)
 
15352
  version_type=linux
 
15353
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
15354
  shlibpath_var=LIBPATH
 
15355
 
 
15356
  # AIX 3 has no versioning support, so we append a major version to the name.
 
15357
  soname_spec='${libname}${release}${shared_ext}$major'
 
15358
  ;;
 
15359
 
 
15360
aix4* | aix5*)
 
15361
  version_type=linux
 
15362
  need_lib_prefix=no
 
15363
  need_version=no
 
15364
  hardcode_into_libs=yes
 
15365
  if test "$host_cpu" = ia64; then
 
15366
    # AIX 5 supports IA64
 
15367
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
15368
    shlibpath_var=LD_LIBRARY_PATH
 
15369
  else
 
15370
    # With GCC up to 2.95.x, collect2 would create an import file
 
15371
    # for dependence libraries.  The import file would start with
 
15372
    # the line `#! .'.  This would cause the generated library to
 
15373
    # depend on `.', always an invalid library.  This was fixed in
 
15374
    # development snapshots of GCC prior to 3.0.
 
15375
    case $host_os in
 
15376
      aix4 | aix4.[01] | aix4.[01].*)
 
15377
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
15378
           echo ' yes '
 
15379
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
15380
        :
 
15381
      else
 
15382
        can_build_shared=no
 
15383
      fi
 
15384
      ;;
 
15385
    esac
 
15386
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
15387
    # soname into executable. Probably we can add versioning support to
 
15388
    # collect2, so additional links can be useful in future.
 
15389
    if test "$aix_use_runtimelinking" = yes; then
 
15390
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
15391
      # instead of lib<name>.a to let people know that these are not
 
15392
      # typical AIX shared libraries.
 
15393
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15394
    else
 
15395
      # We preserve .a as extension for shared libraries through AIX4.2
 
15396
      # and later when we are not doing run time linking.
 
15397
      library_names_spec='${libname}${release}.a $libname.a'
 
15398
      soname_spec='${libname}${release}${shared_ext}$major'
 
15399
    fi
 
15400
    shlibpath_var=LIBPATH
 
15401
  fi
 
15402
  ;;
 
15403
 
 
15404
amigaos*)
 
15405
  library_names_spec='$libname.ixlibrary $libname.a'
 
15406
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
15407
  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'
 
15408
  ;;
 
15409
 
 
15410
beos*)
 
15411
  library_names_spec='${libname}${shared_ext}'
 
15412
  dynamic_linker="$host_os ld.so"
 
15413
  shlibpath_var=LIBRARY_PATH
 
15414
  ;;
 
15415
 
 
15416
bsdi4*)
 
15417
  version_type=linux
 
15418
  need_version=no
 
15419
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15420
  soname_spec='${libname}${release}${shared_ext}$major'
 
15421
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
15422
  shlibpath_var=LD_LIBRARY_PATH
 
15423
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
15424
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
15425
  # the default ld.so.conf also contains /usr/contrib/lib and
 
15426
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
15427
  # libtool to hard-code these into programs
 
15428
  ;;
 
15429
 
 
15430
cygwin* | mingw* | pw32*)
 
15431
  version_type=windows
 
15432
  shrext=".dll"
 
15433
  need_version=no
 
15434
  need_lib_prefix=no
 
15435
 
 
15436
  case $GCC,$host_os in
 
15437
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
15438
    library_names_spec='$libname.dll.a'
 
15439
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
15440
    postinstall_cmds='base_file=`basename \${file}`~
 
15441
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
15442
      dldir=$destdir/`dirname \$dlpath`~
 
15443
      test -d \$dldir || mkdir -p \$dldir~
 
15444
      $install_prog $dir/$dlname \$dldir/$dlname'
 
15445
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
15446
      dlpath=$dir/\$dldll~
 
15447
       $rm \$dlpath'
 
15448
    shlibpath_overrides_runpath=yes
 
15449
 
 
15450
    case $host_os in
 
15451
    cygwin*)
 
15452
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
15453
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15454
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
15455
      ;;
 
15456
    mingw*)
 
15457
      # MinGW DLLs use traditional 'lib' prefix
 
15458
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
15459
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
15460
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
15461
        # It is most probably a Windows format PATH printed by
 
15462
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
15463
        # path with ; separators, and with drive letters. We can handle the
 
15464
        # drive letters (cygwin fileutils understands them), so leave them,
 
15465
        # especially as we might pass files found there to a mingw objdump,
 
15466
        # which wouldn't understand a cygwinified path. Ahh.
 
15467
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
15468
      else
 
15469
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
15470
      fi
 
15471
      ;;
 
15472
    pw32*)
 
15473
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
15474
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
15475
      ;;
 
15476
    esac
 
15477
    ;;
 
15478
 
 
15479
  *)
 
15480
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
15481
    ;;
 
15482
  esac
 
15483
  dynamic_linker='Win32 ld.exe'
 
15484
  # FIXME: first we should search . and the directory the executable is in
 
15485
  shlibpath_var=PATH
 
15486
  ;;
 
15487
 
 
15488
darwin* | rhapsody*)
 
15489
  dynamic_linker="$host_os dyld"
 
15490
  version_type=darwin
 
15491
  need_lib_prefix=no
 
15492
  need_version=no
 
15493
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
15494
  soname_spec='${libname}${release}${major}$shared_ext'
 
15495
  shlibpath_overrides_runpath=yes
 
15496
  shlibpath_var=DYLD_LIBRARY_PATH
 
15497
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
15498
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
15499
  if test "$GCC" = yes; then
 
15500
    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"`
 
15501
  else
 
15502
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
15503
  fi
 
15504
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
15505
  ;;
 
15506
 
 
15507
dgux*)
 
15508
  version_type=linux
 
15509
  need_lib_prefix=no
 
15510
  need_version=no
 
15511
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
15512
  soname_spec='${libname}${release}${shared_ext}$major'
 
15513
  shlibpath_var=LD_LIBRARY_PATH
 
15514
  ;;
 
15515
 
 
15516
freebsd1*)
 
15517
  dynamic_linker=no
 
15518
  ;;
 
15519
 
 
15520
kfreebsd*-gnu)
 
15521
  version_type=linux
 
15522
  need_lib_prefix=no
 
15523
  need_version=no
 
15524
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15525
  soname_spec='${libname}${release}${shared_ext}$major'
 
15526
  shlibpath_var=LD_LIBRARY_PATH
 
15527
  shlibpath_overrides_runpath=no
 
15528
  hardcode_into_libs=yes
 
15529
  dynamic_linker='GNU ld.so'
 
15530
  ;;
 
15531
 
 
15532
freebsd*)
 
15533
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
15534
  version_type=freebsd-$objformat
 
15535
  case $version_type in
 
15536
    freebsd-elf*)
 
15537
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15538
      need_version=no
 
15539
      need_lib_prefix=no
 
15540
      ;;
 
15541
    freebsd-*)
 
15542
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
15543
      need_version=yes
 
15544
      ;;
 
15545
  esac
 
15546
  shlibpath_var=LD_LIBRARY_PATH
 
15547
  case $host_os in
 
15548
  freebsd2*)
 
15549
    shlibpath_overrides_runpath=yes
 
15550
    ;;
 
15551
  freebsd3.01* | freebsdelf3.01*)
 
15552
    shlibpath_overrides_runpath=yes
 
15553
    hardcode_into_libs=yes
 
15554
    ;;
 
15555
  *) # from 3.2 on
 
15556
    shlibpath_overrides_runpath=no
 
15557
    hardcode_into_libs=yes
 
15558
    ;;
 
15559
  esac
 
15560
  ;;
 
15561
 
 
15562
gnu*)
 
15563
  version_type=linux
 
15564
  need_lib_prefix=no
 
15565
  need_version=no
 
15566
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
15567
  soname_spec='${libname}${release}${shared_ext}$major'
 
15568
  shlibpath_var=LD_LIBRARY_PATH
 
15569
  hardcode_into_libs=yes
 
15570
  ;;
 
15571
 
 
15572
hpux9* | hpux10* | hpux11*)
 
15573
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
15574
  # link against other versions.
 
15575
  version_type=sunos
 
15576
  need_lib_prefix=no
 
15577
  need_version=no
 
15578
  case "$host_cpu" in
 
15579
  ia64*)
 
15580
    shrext='.so'
 
15581
    hardcode_into_libs=yes
 
15582
    dynamic_linker="$host_os dld.so"
 
15583
    shlibpath_var=LD_LIBRARY_PATH
 
15584
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15585
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15586
    soname_spec='${libname}${release}${shared_ext}$major'
 
15587
    if test "X$HPUX_IA64_MODE" = X32; then
 
15588
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
15589
    else
 
15590
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
15591
    fi
 
15592
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15593
    ;;
 
15594
   hppa*64*)
 
15595
     shrext='.sl'
 
15596
     hardcode_into_libs=yes
 
15597
     dynamic_linker="$host_os dld.sl"
 
15598
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
15599
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
15600
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15601
     soname_spec='${libname}${release}${shared_ext}$major'
 
15602
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
15603
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
15604
     ;;
 
15605
   *)
 
15606
    shrext='.sl'
 
15607
    dynamic_linker="$host_os dld.sl"
 
15608
    shlibpath_var=SHLIB_PATH
 
15609
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
15610
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15611
    soname_spec='${libname}${release}${shared_ext}$major'
 
15612
    ;;
 
15613
  esac
 
15614
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
15615
  postinstall_cmds='chmod 555 $lib'
 
15616
  ;;
 
15617
 
 
15618
irix5* | irix6* | nonstopux*)
 
15619
  case $host_os in
 
15620
    nonstopux*) version_type=nonstopux ;;
 
15621
    *)
 
15622
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
15623
                version_type=linux
 
15624
        else
 
15625
                version_type=irix
 
15626
        fi ;;
 
15627
  esac
 
15628
  need_lib_prefix=no
 
15629
  need_version=no
 
15630
  soname_spec='${libname}${release}${shared_ext}$major'
 
15631
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
15632
  case $host_os in
 
15633
  irix5* | nonstopux*)
 
15634
    libsuff= shlibsuff=
 
15635
    ;;
 
15636
  *)
 
15637
    case $LD in # libtool.m4 will add one of these switches to LD
 
15638
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
15639
      libsuff= shlibsuff= libmagic=32-bit;;
 
15640
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
15641
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
15642
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
15643
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
15644
    *) libsuff= shlibsuff= libmagic=never-match;;
 
15645
    esac
 
15646
    ;;
 
15647
  esac
 
15648
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
15649
  shlibpath_overrides_runpath=no
 
15650
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
15651
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
15652
  hardcode_into_libs=yes
 
15653
  ;;
 
15654
 
 
15655
# No shared lib support for Linux oldld, aout, or coff.
 
15656
linux*oldld* | linux*aout* | linux*coff*)
 
15657
  dynamic_linker=no
 
15658
  ;;
 
15659
 
 
15660
# This must be Linux ELF.
 
15661
linux*)
 
15662
  version_type=linux
 
15663
  need_lib_prefix=no
 
15664
  need_version=no
 
15665
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15666
  soname_spec='${libname}${release}${shared_ext}$major'
 
15667
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
15668
  shlibpath_var=LD_LIBRARY_PATH
 
15669
  shlibpath_overrides_runpath=no
 
15670
  # This implies no fast_install, which is unacceptable.
 
15671
  # Some rework will be needed to allow for fast_install
 
15672
  # before this can be enabled.
 
15673
  hardcode_into_libs=yes
 
15674
 
 
15675
  # Append ld.so.conf contents to the search path
 
15676
  if test -f /etc/ld.so.conf; then
 
15677
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
15678
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
15679
  fi
 
15680
 
 
15681
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
15682
  # powerpc, because MkLinux only supported shared libraries with the
 
15683
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
15684
  # most powerpc-linux boxes support dynamic linking these days and
 
15685
  # people can always --disable-shared, the test was removed, and we
 
15686
  # assume the GNU/Linux dynamic linker is in use.
 
15687
  dynamic_linker='GNU/Linux ld.so'
 
15688
  ;;
 
15689
 
 
15690
knetbsd*-gnu)
 
15691
  version_type=linux
 
15692
  need_lib_prefix=no
 
15693
  need_version=no
 
15694
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15695
  soname_spec='${libname}${release}${shared_ext}$major'
 
15696
  shlibpath_var=LD_LIBRARY_PATH
 
15697
  shlibpath_overrides_runpath=no
 
15698
  hardcode_into_libs=yes
 
15699
  dynamic_linker='GNU ld.so'
 
15700
  ;;
 
15701
 
 
15702
netbsd*)
 
15703
  version_type=sunos
 
15704
  need_lib_prefix=no
 
15705
  need_version=no
 
15706
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
15707
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15708
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15709
    dynamic_linker='NetBSD (a.out) ld.so'
 
15710
  else
 
15711
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
15712
    soname_spec='${libname}${release}${shared_ext}$major'
 
15713
    dynamic_linker='NetBSD ld.elf_so'
 
15714
  fi
 
15715
  shlibpath_var=LD_LIBRARY_PATH
 
15716
  shlibpath_overrides_runpath=yes
 
15717
  hardcode_into_libs=yes
 
15718
  ;;
 
15719
 
 
15720
newsos6)
 
15721
  version_type=linux
 
15722
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15723
  shlibpath_var=LD_LIBRARY_PATH
 
15724
  shlibpath_overrides_runpath=yes
 
15725
  ;;
 
15726
 
 
15727
nto-qnx*)
 
15728
  version_type=linux
 
15729
  need_lib_prefix=no
 
15730
  need_version=no
 
15731
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15732
  soname_spec='${libname}${release}${shared_ext}$major'
 
15733
  shlibpath_var=LD_LIBRARY_PATH
 
15734
  shlibpath_overrides_runpath=yes
 
15735
  ;;
 
15736
 
 
15737
openbsd*)
 
15738
  version_type=sunos
 
15739
  need_lib_prefix=no
 
15740
  need_version=yes
 
15741
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15742
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
15743
  shlibpath_var=LD_LIBRARY_PATH
 
15744
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
15745
    case $host_os in
 
15746
      openbsd2.[89] | openbsd2.[89].*)
 
15747
        shlibpath_overrides_runpath=no
 
15748
        ;;
 
15749
      *)
 
15750
        shlibpath_overrides_runpath=yes
 
15751
        ;;
 
15752
      esac
 
15753
  else
 
15754
    shlibpath_overrides_runpath=yes
 
15755
  fi
 
15756
  ;;
 
15757
 
 
15758
os2*)
 
15759
  libname_spec='$name'
 
15760
  shrext=".dll"
 
15761
  need_lib_prefix=no
 
15762
  library_names_spec='$libname${shared_ext} $libname.a'
 
15763
  dynamic_linker='OS/2 ld.exe'
 
15764
  shlibpath_var=LIBPATH
 
15765
  ;;
 
15766
 
 
15767
osf3* | osf4* | osf5*)
 
15768
  version_type=osf
 
15769
  need_lib_prefix=no
 
15770
  need_version=no
 
15771
  soname_spec='${libname}${release}${shared_ext}$major'
 
15772
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15773
  shlibpath_var=LD_LIBRARY_PATH
 
15774
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
15775
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
15776
  ;;
 
15777
 
 
15778
sco3.2v5*)
 
15779
  version_type=osf
 
15780
  soname_spec='${libname}${release}${shared_ext}$major'
 
15781
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15782
  shlibpath_var=LD_LIBRARY_PATH
 
15783
  ;;
 
15784
 
 
15785
solaris*)
 
15786
  version_type=linux
 
15787
  need_lib_prefix=no
 
15788
  need_version=no
 
15789
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15790
  soname_spec='${libname}${release}${shared_ext}$major'
 
15791
  shlibpath_var=LD_LIBRARY_PATH
 
15792
  shlibpath_overrides_runpath=yes
 
15793
  hardcode_into_libs=yes
 
15794
  # ldd complains unless libraries are executable
 
15795
  postinstall_cmds='chmod +x $lib'
 
15796
  ;;
 
15797
 
 
15798
sunos4*)
 
15799
  version_type=sunos
 
15800
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
15801
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
15802
  shlibpath_var=LD_LIBRARY_PATH
 
15803
  shlibpath_overrides_runpath=yes
 
15804
  if test "$with_gnu_ld" = yes; then
 
15805
    need_lib_prefix=no
 
15806
  fi
 
15807
  need_version=yes
 
15808
  ;;
 
15809
 
 
15810
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
15811
  version_type=linux
 
15812
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15813
  soname_spec='${libname}${release}${shared_ext}$major'
 
15814
  shlibpath_var=LD_LIBRARY_PATH
 
15815
  case $host_vendor in
 
15816
    sni)
 
15817
      shlibpath_overrides_runpath=no
 
15818
      need_lib_prefix=no
 
15819
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
15820
      runpath_var=LD_RUN_PATH
 
15821
      ;;
 
15822
    siemens)
 
15823
      need_lib_prefix=no
 
15824
      ;;
 
15825
    motorola)
 
15826
      need_lib_prefix=no
 
15827
      need_version=no
 
15828
      shlibpath_overrides_runpath=no
 
15829
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
15830
      ;;
 
15831
  esac
 
15832
  ;;
 
15833
 
 
15834
sysv4*MP*)
 
15835
  if test -d /usr/nec ;then
 
15836
    version_type=linux
 
15837
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
15838
    soname_spec='$libname${shared_ext}.$major'
 
15839
    shlibpath_var=LD_LIBRARY_PATH
 
15840
  fi
 
15841
  ;;
 
15842
 
 
15843
uts4*)
 
15844
  version_type=linux
 
15845
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
15846
  soname_spec='${libname}${release}${shared_ext}$major'
 
15847
  shlibpath_var=LD_LIBRARY_PATH
 
15848
  ;;
 
15849
 
 
15850
*)
 
15851
  dynamic_linker=no
 
15852
  ;;
 
15853
esac
 
15854
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
15855
echo "${ECHO_T}$dynamic_linker" >&6
 
15856
test "$dynamic_linker" = no && can_build_shared=no
 
15857
 
 
15858
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
15859
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
15860
hardcode_action_F77=
 
15861
if test -n "$hardcode_libdir_flag_spec_F77" || \
 
15862
   test -n "$runpath_var F77" || \
 
15863
   test "X$hardcode_automatic_F77"="Xyes" ; then
 
15864
 
 
15865
  # We can hardcode non-existant directories.
 
15866
  if test "$hardcode_direct_F77" != no &&
 
15867
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
15868
     # have to relink, otherwise we might link with an installed library
 
15869
     # when we should be linking with a yet-to-be-installed one
 
15870
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
 
15871
     test "$hardcode_minus_L_F77" != no; then
 
15872
    # Linking always hardcodes the temporary library directory.
 
15873
    hardcode_action_F77=relink
 
15874
  else
 
15875
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
15876
    hardcode_action_F77=immediate
 
15877
  fi
 
15878
else
 
15879
  # We cannot hardcode anything, or else we can only hardcode existing
 
15880
  # directories.
 
15881
  hardcode_action_F77=unsupported
 
15882
fi
 
15883
echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
 
15884
echo "${ECHO_T}$hardcode_action_F77" >&6
 
15885
 
 
15886
if test "$hardcode_action_F77" = relink; then
 
15887
  # Fast installation is not supported
 
15888
  enable_fast_install=no
 
15889
elif test "$shlibpath_overrides_runpath" = yes ||
 
15890
     test "$enable_shared" = no; then
 
15891
  # Fast installation is not necessary
 
15892
  enable_fast_install=needless
 
15893
fi
 
15894
 
 
15895
striplib=
 
15896
old_striplib=
 
15897
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
15898
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
15899
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
15900
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
15901
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
15902
  echo "$as_me:$LINENO: result: yes" >&5
 
15903
echo "${ECHO_T}yes" >&6
 
15904
else
 
15905
# FIXME - insert some real tests, host_os isn't really good enough
 
15906
  case $host_os in
 
15907
   darwin*)
 
15908
       if test -n "$STRIP" ; then
 
15909
         striplib="$STRIP -x"
 
15910
         echo "$as_me:$LINENO: result: yes" >&5
 
15911
echo "${ECHO_T}yes" >&6
 
15912
       else
 
15913
  echo "$as_me:$LINENO: result: no" >&5
 
15914
echo "${ECHO_T}no" >&6
 
15915
fi
 
15916
       ;;
 
15917
   *)
 
15918
  echo "$as_me:$LINENO: result: no" >&5
 
15919
echo "${ECHO_T}no" >&6
 
15920
    ;;
 
15921
  esac
 
15922
fi
 
15923
 
 
15924
 
 
15925
 
 
15926
# The else clause should only fire when bootstrapping the
 
15927
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
15928
# with your package, and you will get complaints that there are
 
15929
# no rules to generate ltmain.sh.
 
15930
if test -f "$ltmain"; then
 
15931
  # See if we are running on zsh, and set the options which allow our commands through
 
15932
  # without removal of \ escapes.
 
15933
  if test -n "${ZSH_VERSION+set}" ; then
 
15934
    setopt NO_GLOB_SUBST
 
15935
  fi
 
15936
  # Now quote all the things that may contain metacharacters while being
 
15937
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
15938
  # variables and quote the copies for generation of the libtool script.
 
15939
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
15940
    SED SHELL STRIP \
 
15941
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
15942
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
15943
    deplibs_check_method reload_flag reload_cmds need_locks \
 
15944
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
15945
    lt_cv_sys_global_symbol_to_c_name_address \
 
15946
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
15947
    old_postinstall_cmds old_postuninstall_cmds \
 
15948
    compiler_F77 \
 
15949
    CC_F77 \
 
15950
    LD_F77 \
 
15951
    lt_prog_compiler_wl_F77 \
 
15952
    lt_prog_compiler_pic_F77 \
 
15953
    lt_prog_compiler_static_F77 \
 
15954
    lt_prog_compiler_no_builtin_flag_F77 \
 
15955
    export_dynamic_flag_spec_F77 \
 
15956
    thread_safe_flag_spec_F77 \
 
15957
    whole_archive_flag_spec_F77 \
 
15958
    enable_shared_with_static_runtimes_F77 \
 
15959
    old_archive_cmds_F77 \
 
15960
    old_archive_from_new_cmds_F77 \
 
15961
    predep_objects_F77 \
 
15962
    postdep_objects_F77 \
 
15963
    predeps_F77 \
 
15964
    postdeps_F77 \
 
15965
    compiler_lib_search_path_F77 \
 
15966
    archive_cmds_F77 \
 
15967
    archive_expsym_cmds_F77 \
 
15968
    postinstall_cmds_F77 \
 
15969
    postuninstall_cmds_F77 \
 
15970
    old_archive_from_expsyms_cmds_F77 \
 
15971
    allow_undefined_flag_F77 \
 
15972
    no_undefined_flag_F77 \
 
15973
    export_symbols_cmds_F77 \
 
15974
    hardcode_libdir_flag_spec_F77 \
 
15975
    hardcode_libdir_flag_spec_ld_F77 \
 
15976
    hardcode_libdir_separator_F77 \
 
15977
    hardcode_automatic_F77 \
 
15978
    module_cmds_F77 \
 
15979
    module_expsym_cmds_F77 \
 
15980
    lt_cv_prog_compiler_c_o_F77 \
 
15981
    exclude_expsyms_F77 \
 
15982
    include_expsyms_F77; do
 
15983
 
 
15984
    case $var in
 
15985
    old_archive_cmds_F77 | \
 
15986
    old_archive_from_new_cmds_F77 | \
 
15987
    archive_cmds_F77 | \
 
15988
    archive_expsym_cmds_F77 | \
 
15989
    module_cmds_F77 | \
 
15990
    module_expsym_cmds_F77 | \
 
15991
    old_archive_from_expsyms_cmds_F77 | \
 
15992
    export_symbols_cmds_F77 | \
 
15993
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
15994
    postinstall_cmds | postuninstall_cmds | \
 
15995
    old_postinstall_cmds | old_postuninstall_cmds | \
 
15996
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
15997
      # Double-quote double-evaled strings.
 
15998
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
15999
      ;;
 
16000
    *)
 
16001
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
16002
      ;;
 
16003
    esac
 
16004
  done
 
16005
 
 
16006
  case $lt_echo in
 
16007
  *'\$0 --fallback-echo"')
 
16008
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
16009
    ;;
 
16010
  esac
 
16011
 
 
16012
cfgfile="$ofile"
 
16013
 
 
16014
  cat <<__EOF__ >> "$cfgfile"
 
16015
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
16016
 
 
16017
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
16018
 
 
16019
# Shell to use when invoking shell scripts.
 
16020
SHELL=$lt_SHELL
 
16021
 
 
16022
# Whether or not to build shared libraries.
 
16023
build_libtool_libs=$enable_shared
 
16024
 
 
16025
# Whether or not to build static libraries.
 
16026
build_old_libs=$enable_static
 
16027
 
 
16028
# Whether or not to add -lc for building shared libraries.
 
16029
build_libtool_need_lc=$archive_cmds_need_lc_F77
 
16030
 
 
16031
# Whether or not to disallow shared libs when runtime libs are static
 
16032
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
 
16033
 
 
16034
# Whether or not to optimize for fast installation.
 
16035
fast_install=$enable_fast_install
 
16036
 
 
16037
# The host system.
 
16038
host_alias=$host_alias
 
16039
host=$host
 
16040
 
 
16041
# An echo program that does not interpret backslashes.
 
16042
echo=$lt_echo
 
16043
 
 
16044
# The archiver.
 
16045
AR=$lt_AR
 
16046
AR_FLAGS=$lt_AR_FLAGS
 
16047
 
 
16048
# A C compiler.
 
16049
LTCC=$lt_LTCC
 
16050
 
 
16051
# A language-specific compiler.
 
16052
CC=$lt_compiler_F77
 
16053
 
 
16054
# Is the compiler the GNU C compiler?
 
16055
with_gcc=$GCC_F77
 
16056
 
 
16057
# An ERE matcher.
 
16058
EGREP=$lt_EGREP
 
16059
 
 
16060
# The linker used to build libraries.
 
16061
LD=$lt_LD_F77
 
16062
 
 
16063
# Whether we need hard or soft links.
 
16064
LN_S=$lt_LN_S
 
16065
 
 
16066
# A BSD-compatible nm program.
 
16067
NM=$lt_NM
 
16068
 
 
16069
# A symbol stripping program
 
16070
STRIP=$lt_STRIP
 
16071
 
 
16072
# Used to examine libraries when file_magic_cmd begins "file"
 
16073
MAGIC_CMD=$MAGIC_CMD
 
16074
 
 
16075
# Used on cygwin: DLL creation program.
 
16076
DLLTOOL="$DLLTOOL"
 
16077
 
 
16078
# Used on cygwin: object dumper.
 
16079
OBJDUMP="$OBJDUMP"
 
16080
 
 
16081
# Used on cygwin: assembler.
 
16082
AS="$AS"
 
16083
 
 
16084
# The name of the directory that contains temporary libtool files.
 
16085
objdir=$objdir
 
16086
 
 
16087
# How to create reloadable object files.
 
16088
reload_flag=$lt_reload_flag
 
16089
reload_cmds=$lt_reload_cmds
 
16090
 
 
16091
# How to pass a linker flag through the compiler.
 
16092
wl=$lt_lt_prog_compiler_wl_F77
 
16093
 
 
16094
# Object file suffix (normally "o").
 
16095
objext="$ac_objext"
 
16096
 
 
16097
# Old archive suffix (normally "a").
 
16098
libext="$libext"
 
16099
 
 
16100
# Shared library suffix (normally ".so").
 
16101
shrext='$shrext'
 
16102
 
 
16103
# Executable file suffix (normally "").
 
16104
exeext="$exeext"
 
16105
 
 
16106
# Additional compiler flags for building library objects.
 
16107
pic_flag=$lt_lt_prog_compiler_pic_F77
 
16108
pic_mode=$pic_mode
 
16109
 
 
16110
# What is the maximum length of a command?
 
16111
max_cmd_len=$lt_cv_sys_max_cmd_len
 
16112
 
 
16113
# Does compiler simultaneously support -c and -o options?
 
16114
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
 
16115
 
 
16116
# Must we lock files when doing compilation ?
 
16117
need_locks=$lt_need_locks
 
16118
 
 
16119
# Do we need the lib prefix for modules?
 
16120
need_lib_prefix=$need_lib_prefix
 
16121
 
 
16122
# Do we need a version for libraries?
 
16123
need_version=$need_version
 
16124
 
 
16125
# Whether dlopen is supported.
 
16126
dlopen_support=$enable_dlopen
 
16127
 
 
16128
# Whether dlopen of programs is supported.
 
16129
dlopen_self=$enable_dlopen_self
 
16130
 
 
16131
# Whether dlopen of statically linked programs is supported.
 
16132
dlopen_self_static=$enable_dlopen_self_static
 
16133
 
 
16134
# Compiler flag to prevent dynamic linking.
 
16135
link_static_flag=$lt_lt_prog_compiler_static_F77
 
16136
 
 
16137
# Compiler flag to turn off builtin functions.
 
16138
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
 
16139
 
 
16140
# Compiler flag to allow reflexive dlopens.
 
16141
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
 
16142
 
 
16143
# Compiler flag to generate shared objects directly from archives.
 
16144
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
 
16145
 
 
16146
# Compiler flag to generate thread-safe objects.
 
16147
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
 
16148
 
 
16149
# Library versioning type.
 
16150
version_type=$version_type
 
16151
 
 
16152
# Format of library name prefix.
 
16153
libname_spec=$lt_libname_spec
 
16154
 
 
16155
# List of archive names.  First name is the real one, the rest are links.
 
16156
# The last name is the one that the linker finds with -lNAME.
 
16157
library_names_spec=$lt_library_names_spec
 
16158
 
 
16159
# The coded name of the library, if different from the real name.
 
16160
soname_spec=$lt_soname_spec
 
16161
 
 
16162
# Commands used to build and install an old-style archive.
 
16163
RANLIB=$lt_RANLIB
 
16164
old_archive_cmds=$lt_old_archive_cmds_F77
 
16165
old_postinstall_cmds=$lt_old_postinstall_cmds
 
16166
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
16167
 
 
16168
# Create an old-style archive from a shared archive.
 
16169
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
 
16170
 
 
16171
# Create a temporary old-style archive to link instead of a shared archive.
 
16172
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
 
16173
 
 
16174
# Commands used to build and install a shared archive.
 
16175
archive_cmds=$lt_archive_cmds_F77
 
16176
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
 
16177
postinstall_cmds=$lt_postinstall_cmds
 
16178
postuninstall_cmds=$lt_postuninstall_cmds
 
16179
 
 
16180
# Commands used to build a loadable module (assumed same as above if empty)
 
16181
module_cmds=$lt_module_cmds_F77
 
16182
module_expsym_cmds=$lt_module_expsym_cmds_F77
 
16183
 
 
16184
# Commands to strip libraries.
 
16185
old_striplib=$lt_old_striplib
 
16186
striplib=$lt_striplib
 
16187
 
 
16188
# Dependencies to place before the objects being linked to create a
 
16189
# shared library.
 
16190
predep_objects=$lt_predep_objects_F77
 
16191
 
 
16192
# Dependencies to place after the objects being linked to create a
 
16193
# shared library.
 
16194
postdep_objects=$lt_postdep_objects_F77
 
16195
 
 
16196
# Dependencies to place before the objects being linked to create a
 
16197
# shared library.
 
16198
predeps=$lt_predeps_F77
 
16199
 
 
16200
# Dependencies to place after the objects being linked to create a
 
16201
# shared library.
 
16202
postdeps=$lt_postdeps_F77
 
16203
 
 
16204
# The library search path used internally by the compiler when linking
 
16205
# a shared library.
 
16206
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
 
16207
 
 
16208
# Method to check whether dependent libraries are shared objects.
 
16209
deplibs_check_method=$lt_deplibs_check_method
 
16210
 
 
16211
# Command to use when deplibs_check_method == file_magic.
 
16212
file_magic_cmd=$lt_file_magic_cmd
 
16213
 
 
16214
# Flag that allows shared libraries with undefined symbols to be built.
 
16215
allow_undefined_flag=$lt_allow_undefined_flag_F77
 
16216
 
 
16217
# Flag that forces no undefined symbols.
 
16218
no_undefined_flag=$lt_no_undefined_flag_F77
 
16219
 
 
16220
# Commands used to finish a libtool library installation in a directory.
 
16221
finish_cmds=$lt_finish_cmds
 
16222
 
 
16223
# Same as above, but a single script fragment to be evaled but not shown.
 
16224
finish_eval=$lt_finish_eval
 
16225
 
 
16226
# Take the output of nm and produce a listing of raw symbols and C names.
 
16227
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
16228
 
 
16229
# Transform the output of nm in a proper C declaration
 
16230
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
16231
 
 
16232
# Transform the output of nm in a C name address pair
 
16233
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
16234
 
 
16235
# This is the shared library runtime path variable.
 
16236
runpath_var=$runpath_var
 
16237
 
 
16238
# This is the shared library path variable.
 
16239
shlibpath_var=$shlibpath_var
 
16240
 
 
16241
# Is shlibpath searched before the hard-coded library search path?
 
16242
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
16243
 
 
16244
# How to hardcode a shared library path into an executable.
 
16245
hardcode_action=$hardcode_action_F77
 
16246
 
 
16247
# Whether we should hardcode library paths into libraries.
 
16248
hardcode_into_libs=$hardcode_into_libs
 
16249
 
 
16250
# Flag to hardcode \$libdir into a binary during linking.
 
16251
# This must work even if \$libdir does not exist.
 
16252
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
 
16253
 
 
16254
# If ld is used when linking, flag to hardcode \$libdir into
 
16255
# a binary during linking. This must work even if \$libdir does
 
16256
# not exist.
 
16257
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
 
16258
 
 
16259
# Whether we need a single -rpath flag with a separated argument.
 
16260
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
 
16261
 
 
16262
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
16263
# resulting binary.
 
16264
hardcode_direct=$hardcode_direct_F77
 
16265
 
 
16266
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
16267
# resulting binary.
 
16268
hardcode_minus_L=$hardcode_minus_L_F77
 
16269
 
 
16270
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
16271
# the resulting binary.
 
16272
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
 
16273
 
 
16274
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
16275
# and all subsequent libraries and executables linked against it.
 
16276
hardcode_automatic=$hardcode_automatic_F77
 
16277
 
 
16278
# Variables whose values should be saved in libtool wrapper scripts and
 
16279
# restored at relink time.
 
16280
variables_saved_for_relink="$variables_saved_for_relink"
 
16281
 
 
16282
# Whether libtool must link a program against all its dependency libraries.
 
16283
link_all_deplibs=$link_all_deplibs_F77
 
16284
 
 
16285
# Compile-time system search path for libraries
 
16286
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
16287
 
 
16288
# Run-time system search path for libraries
 
16289
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
16290
 
 
16291
# Fix the shell variable \$srcfile for the compiler.
 
16292
fix_srcfile_path="$fix_srcfile_path_F77"
 
16293
 
 
16294
# Set to yes if exported symbols are required.
 
16295
always_export_symbols=$always_export_symbols_F77
 
16296
 
 
16297
# The commands to list exported symbols.
 
16298
export_symbols_cmds=$lt_export_symbols_cmds_F77
 
16299
 
 
16300
# The commands to extract the exported symbol list from a shared archive.
 
16301
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
16302
 
 
16303
# Symbols that should not be listed in the preloaded symbols.
 
16304
exclude_expsyms=$lt_exclude_expsyms_F77
 
16305
 
 
16306
# Symbols that must always be exported.
 
16307
include_expsyms=$lt_include_expsyms_F77
 
16308
 
 
16309
# ### END LIBTOOL TAG CONFIG: $tagname
 
16310
 
 
16311
__EOF__
 
16312
 
 
16313
 
 
16314
else
 
16315
  # If there is no Makefile yet, we rely on a make rule to execute
 
16316
  # `config.status --recheck' to rerun these tests and create the
 
16317
  # libtool script then.
 
16318
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
16319
  if test -f "$ltmain_in"; then
 
16320
    test -f Makefile && make "$ltmain"
 
16321
  fi
 
16322
fi
 
16323
 
 
16324
 
 
16325
ac_ext=c
 
16326
ac_cpp='$CPP $CPPFLAGS'
 
16327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
16328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
16329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
16330
 
 
16331
CC="$lt_save_CC"
 
16332
 
 
16333
        else
 
16334
          tagname=""
 
16335
        fi
 
16336
        ;;
 
16337
 
 
16338
      GCJ)
 
16339
        if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
 
16340
 
 
16341
 
 
16342
 
 
16343
# Source file extension for Java test sources.
 
16344
ac_ext=java
 
16345
 
 
16346
# Object file extension for compiled Java test sources.
 
16347
objext=o
 
16348
objext_GCJ=$objext
 
16349
 
 
16350
# Code to be used in simple compile tests
 
16351
lt_simple_compile_test_code="class foo {}\n"
 
16352
 
 
16353
# Code to be used in simple link tests
 
16354
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
 
16355
 
 
16356
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
16357
 
 
16358
# If no C compiler was specified, use CC.
 
16359
LTCC=${LTCC-"$CC"}
 
16360
 
 
16361
# Allow CC to be a program name with arguments.
 
16362
compiler=$CC
 
16363
 
 
16364
 
 
16365
# Allow CC to be a program name with arguments.
 
16366
lt_save_CC="$CC"
 
16367
CC=${GCJ-"gcj"}
 
16368
compiler=$CC
 
16369
compiler_GCJ=$CC
 
16370
 
 
16371
# GCJ did not exist at the time GCC didn't implicitly link libc in.
 
16372
archive_cmds_need_lc_GCJ=no
 
16373
 
 
16374
 
 
16375
lt_prog_compiler_no_builtin_flag_GCJ=
 
16376
 
 
16377
if test "$GCC" = yes; then
 
16378
  lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
 
16379
 
 
16380
 
 
16381
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 
16382
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 
16383
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 
16384
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16385
else
 
16386
  lt_cv_prog_compiler_rtti_exceptions=no
 
16387
  ac_outfile=conftest.$ac_objext
 
16388
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16389
   lt_compiler_flag="-fno-rtti -fno-exceptions"
 
16390
   # Insert the option either (1) after the last *FLAGS variable, or
 
16391
   # (2) before a word containing "conftest.", or (3) at the end.
 
16392
   # Note that $ac_compile itself does not contain backslashes and begins
 
16393
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16394
   # The option is referenced via a variable to avoid confusing sed.
 
16395
   lt_compile=`echo "$ac_compile" | $SED \
 
16396
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16397
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16398
   -e 's:$: $lt_compiler_flag:'`
 
16399
   (eval echo "\"\$as_me:16399: $lt_compile\"" >&5)
 
16400
   (eval "$lt_compile" 2>conftest.err)
 
16401
   ac_status=$?
 
16402
   cat conftest.err >&5
 
16403
   echo "$as_me:16403: \$? = $ac_status" >&5
 
16404
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16405
     # The compiler can only warn and ignore the option if not recognized
 
16406
     # So say no if there are warnings
 
16407
     if test ! -s conftest.err; then
 
16408
       lt_cv_prog_compiler_rtti_exceptions=yes
 
16409
     fi
 
16410
   fi
 
16411
   $rm conftest*
 
16412
 
 
16413
fi
 
16414
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 
16415
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 
16416
 
 
16417
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 
16418
    lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
 
16419
else
 
16420
    :
 
16421
fi
 
16422
 
 
16423
fi
 
16424
 
 
16425
lt_prog_compiler_wl_GCJ=
 
16426
lt_prog_compiler_pic_GCJ=
 
16427
lt_prog_compiler_static_GCJ=
 
16428
 
 
16429
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 
16430
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 
16431
 
 
16432
  if test "$GCC" = yes; then
 
16433
    lt_prog_compiler_wl_GCJ='-Wl,'
 
16434
    lt_prog_compiler_static_GCJ='-static'
 
16435
 
 
16436
    case $host_os in
 
16437
      aix*)
 
16438
      # All AIX code is PIC.
 
16439
      if test "$host_cpu" = ia64; then
 
16440
        # AIX 5 now supports IA64 processor
 
16441
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16442
      fi
 
16443
      ;;
 
16444
 
 
16445
    amigaos*)
 
16446
      # FIXME: we need at least 68020 code to build shared libraries, but
 
16447
      # adding the `-m68020' flag to GCC prevents building anything better,
 
16448
      # like `-m68040'.
 
16449
      lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
 
16450
      ;;
 
16451
 
 
16452
    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 
16453
      # PIC is the default for these OSes.
 
16454
      ;;
 
16455
 
 
16456
    mingw* | pw32* | os2*)
 
16457
      # This hack is so that the source file can tell whether it is being
 
16458
      # built for inclusion in a dll (and should export symbols for example).
 
16459
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16460
      ;;
 
16461
 
 
16462
    darwin* | rhapsody*)
 
16463
      # PIC is the default on this platform
 
16464
      # Common symbols not allowed in MH_DYLIB files
 
16465
      lt_prog_compiler_pic_GCJ='-fno-common'
 
16466
      ;;
 
16467
 
 
16468
    msdosdjgpp*)
 
16469
      # Just because we use GCC doesn't mean we suddenly get shared libraries
 
16470
      # on systems that don't support them.
 
16471
      lt_prog_compiler_can_build_shared_GCJ=no
 
16472
      enable_shared=no
 
16473
      ;;
 
16474
 
 
16475
    sysv4*MP*)
 
16476
      if test -d /usr/nec; then
 
16477
        lt_prog_compiler_pic_GCJ=-Kconform_pic
 
16478
      fi
 
16479
      ;;
 
16480
 
 
16481
    hpux*)
 
16482
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16483
      # not for PA HP-UX.
 
16484
      case "$host_cpu" in
 
16485
      hppa*64*|ia64*)
 
16486
        # +Z the default
 
16487
        ;;
 
16488
      *)
 
16489
        lt_prog_compiler_pic_GCJ='-fPIC'
 
16490
        ;;
 
16491
      esac
 
16492
      ;;
 
16493
 
 
16494
    *)
 
16495
      lt_prog_compiler_pic_GCJ='-fPIC'
 
16496
      ;;
 
16497
    esac
 
16498
  else
 
16499
    # PORTME Check for flag to pass linker flags through the system compiler.
 
16500
    case $host_os in
 
16501
    aix*)
 
16502
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16503
      if test "$host_cpu" = ia64; then
 
16504
        # AIX 5 now supports IA64 processor
 
16505
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16506
      else
 
16507
        lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
 
16508
      fi
 
16509
      ;;
 
16510
 
 
16511
    mingw* | pw32* | os2*)
 
16512
      # This hack is so that the source file can tell whether it is being
 
16513
      # built for inclusion in a dll (and should export symbols for example).
 
16514
      lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
 
16515
      ;;
 
16516
 
 
16517
    hpux9* | hpux10* | hpux11*)
 
16518
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16519
      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 
16520
      # not for PA HP-UX.
 
16521
      case "$host_cpu" in
 
16522
      hppa*64*|ia64*)
 
16523
        # +Z the default
 
16524
        ;;
 
16525
      *)
 
16526
        lt_prog_compiler_pic_GCJ='+Z'
 
16527
        ;;
 
16528
      esac
 
16529
      # Is there a better lt_prog_compiler_static that works with the bundled CC?
 
16530
      lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
 
16531
      ;;
 
16532
 
 
16533
    irix5* | irix6* | nonstopux*)
 
16534
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16535
      # PIC (with -KPIC) is the default.
 
16536
      lt_prog_compiler_static_GCJ='-non_shared'
 
16537
      ;;
 
16538
 
 
16539
    newsos6)
 
16540
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16541
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16542
      ;;
 
16543
 
 
16544
    linux*)
 
16545
      case $CC in
 
16546
      icc* | ecc*)
 
16547
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16548
        lt_prog_compiler_pic_GCJ='-KPIC'
 
16549
        lt_prog_compiler_static_GCJ='-static'
 
16550
        ;;
 
16551
      ccc*)
 
16552
        lt_prog_compiler_wl_GCJ='-Wl,'
 
16553
        # All Alpha code is PIC.
 
16554
        lt_prog_compiler_static_GCJ='-non_shared'
 
16555
        ;;
 
16556
      esac
 
16557
      ;;
 
16558
 
 
16559
    osf3* | osf4* | osf5*)
 
16560
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16561
      # All OSF/1 code is PIC.
 
16562
      lt_prog_compiler_static_GCJ='-non_shared'
 
16563
      ;;
 
16564
 
 
16565
    sco3.2v5*)
 
16566
      lt_prog_compiler_pic_GCJ='-Kpic'
 
16567
      lt_prog_compiler_static_GCJ='-dn'
 
16568
      ;;
 
16569
 
 
16570
    solaris*)
 
16571
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16572
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16573
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16574
      ;;
 
16575
 
 
16576
    sunos4*)
 
16577
      lt_prog_compiler_wl_GCJ='-Qoption ld '
 
16578
      lt_prog_compiler_pic_GCJ='-PIC'
 
16579
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16580
      ;;
 
16581
 
 
16582
    sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
16583
      lt_prog_compiler_wl_GCJ='-Wl,'
 
16584
      lt_prog_compiler_pic_GCJ='-KPIC'
 
16585
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16586
      ;;
 
16587
 
 
16588
    sysv4*MP*)
 
16589
      if test -d /usr/nec ;then
 
16590
        lt_prog_compiler_pic_GCJ='-Kconform_pic'
 
16591
        lt_prog_compiler_static_GCJ='-Bstatic'
 
16592
      fi
 
16593
      ;;
 
16594
 
 
16595
    uts4*)
 
16596
      lt_prog_compiler_pic_GCJ='-pic'
 
16597
      lt_prog_compiler_static_GCJ='-Bstatic'
 
16598
      ;;
 
16599
 
 
16600
    *)
 
16601
      lt_prog_compiler_can_build_shared_GCJ=no
 
16602
      ;;
 
16603
    esac
 
16604
  fi
 
16605
 
 
16606
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
 
16607
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
 
16608
 
 
16609
#
 
16610
# Check to make sure the PIC flag actually works.
 
16611
#
 
16612
if test -n "$lt_prog_compiler_pic_GCJ"; then
 
16613
 
 
16614
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
 
16615
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
 
16616
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
 
16617
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16618
else
 
16619
  lt_prog_compiler_pic_works_GCJ=no
 
16620
  ac_outfile=conftest.$ac_objext
 
16621
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16622
   lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
 
16623
   # Insert the option either (1) after the last *FLAGS variable, or
 
16624
   # (2) before a word containing "conftest.", or (3) at the end.
 
16625
   # Note that $ac_compile itself does not contain backslashes and begins
 
16626
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16627
   # The option is referenced via a variable to avoid confusing sed.
 
16628
   lt_compile=`echo "$ac_compile" | $SED \
 
16629
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16630
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16631
   -e 's:$: $lt_compiler_flag:'`
 
16632
   (eval echo "\"\$as_me:16632: $lt_compile\"" >&5)
 
16633
   (eval "$lt_compile" 2>conftest.err)
 
16634
   ac_status=$?
 
16635
   cat conftest.err >&5
 
16636
   echo "$as_me:16636: \$? = $ac_status" >&5
 
16637
   if (exit $ac_status) && test -s "$ac_outfile"; then
 
16638
     # The compiler can only warn and ignore the option if not recognized
 
16639
     # So say no if there are warnings
 
16640
     if test ! -s conftest.err; then
 
16641
       lt_prog_compiler_pic_works_GCJ=yes
 
16642
     fi
 
16643
   fi
 
16644
   $rm conftest*
 
16645
 
 
16646
fi
 
16647
echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
 
16648
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
 
16649
 
 
16650
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
 
16651
    case $lt_prog_compiler_pic_GCJ in
 
16652
     "" | " "*) ;;
 
16653
     *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
 
16654
     esac
 
16655
else
 
16656
    lt_prog_compiler_pic_GCJ=
 
16657
     lt_prog_compiler_can_build_shared_GCJ=no
 
16658
fi
 
16659
 
 
16660
fi
 
16661
case "$host_os" in
 
16662
  # For platforms which do not support PIC, -DPIC is meaningless:
 
16663
  *djgpp*)
 
16664
    lt_prog_compiler_pic_GCJ=
 
16665
    ;;
 
16666
  *)
 
16667
    lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
 
16668
    ;;
 
16669
esac
 
16670
 
 
16671
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 
16672
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 
16673
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
 
16674
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
16675
else
 
16676
  lt_cv_prog_compiler_c_o_GCJ=no
 
16677
   $rm -r conftest 2>/dev/null
 
16678
   mkdir conftest
 
16679
   cd conftest
 
16680
   mkdir out
 
16681
   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
16682
 
 
16683
   lt_compiler_flag="-o out/conftest2.$ac_objext"
 
16684
   # Insert the option either (1) after the last *FLAGS variable, or
 
16685
   # (2) before a word containing "conftest.", or (3) at the end.
 
16686
   # Note that $ac_compile itself does not contain backslashes and begins
 
16687
   # with a dollar sign (not a hyphen), so the echo should work correctly.
 
16688
   lt_compile=`echo "$ac_compile" | $SED \
 
16689
   -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 
16690
   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 
16691
   -e 's:$: $lt_compiler_flag:'`
 
16692
   (eval echo "\"\$as_me:16692: $lt_compile\"" >&5)
 
16693
   (eval "$lt_compile" 2>out/conftest.err)
 
16694
   ac_status=$?
 
16695
   cat out/conftest.err >&5
 
16696
   echo "$as_me:16696: \$? = $ac_status" >&5
 
16697
   if (exit $ac_status) && test -s out/conftest2.$ac_objext
 
16698
   then
 
16699
     # The compiler can only warn and ignore the option if not recognized
 
16700
     # So say no if there are warnings
 
16701
     if test ! -s out/conftest.err; then
 
16702
       lt_cv_prog_compiler_c_o_GCJ=yes
 
16703
     fi
 
16704
   fi
 
16705
   chmod u+w .
 
16706
   $rm conftest*
 
16707
   # SGI C++ compiler will create directory out/ii_files/ for
 
16708
   # template instantiation
 
16709
   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 
16710
   $rm out/* && rmdir out
 
16711
   cd ..
 
16712
   rmdir conftest
 
16713
   $rm conftest*
 
16714
 
 
16715
fi
 
16716
echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
 
16717
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
 
16718
 
 
16719
 
 
16720
hard_links="nottested"
 
16721
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
 
16722
  # do not overwrite the value of need_locks provided by the user
 
16723
  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 
16724
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 
16725
  hard_links=yes
 
16726
  $rm conftest*
 
16727
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16728
  touch conftest.a
 
16729
  ln conftest.a conftest.b 2>&5 || hard_links=no
 
16730
  ln conftest.a conftest.b 2>/dev/null && hard_links=no
 
16731
  echo "$as_me:$LINENO: result: $hard_links" >&5
 
16732
echo "${ECHO_T}$hard_links" >&6
 
16733
  if test "$hard_links" = no; then
 
16734
    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 
16735
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 
16736
    need_locks=warn
 
16737
  fi
 
16738
else
 
16739
  need_locks=no
 
16740
fi
 
16741
 
 
16742
echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 
16743
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 
16744
 
 
16745
  runpath_var=
 
16746
  allow_undefined_flag_GCJ=
 
16747
  enable_shared_with_static_runtimes_GCJ=no
 
16748
  archive_cmds_GCJ=
 
16749
  archive_expsym_cmds_GCJ=
 
16750
  old_archive_From_new_cmds_GCJ=
 
16751
  old_archive_from_expsyms_cmds_GCJ=
 
16752
  export_dynamic_flag_spec_GCJ=
 
16753
  whole_archive_flag_spec_GCJ=
 
16754
  thread_safe_flag_spec_GCJ=
 
16755
  hardcode_libdir_flag_spec_GCJ=
 
16756
  hardcode_libdir_flag_spec_ld_GCJ=
 
16757
  hardcode_libdir_separator_GCJ=
 
16758
  hardcode_direct_GCJ=no
 
16759
  hardcode_minus_L_GCJ=no
 
16760
  hardcode_shlibpath_var_GCJ=unsupported
 
16761
  link_all_deplibs_GCJ=unknown
 
16762
  hardcode_automatic_GCJ=no
 
16763
  module_cmds_GCJ=
 
16764
  module_expsym_cmds_GCJ=
 
16765
  always_export_symbols_GCJ=no
 
16766
  export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 
16767
  # include_expsyms should be a list of space-separated symbols to be *always*
 
16768
  # included in the symbol list
 
16769
  include_expsyms_GCJ=
 
16770
  # exclude_expsyms can be an extended regexp of symbols to exclude
 
16771
  # it will be wrapped by ` (' and `)$', so one must not match beginning or
 
16772
  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 
16773
  # as well as any symbol that contains `d'.
 
16774
  exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
 
16775
  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 
16776
  # platforms (ab)use it in PIC code, but their linkers get confused if
 
16777
  # the symbol is explicitly referenced.  Since portable code cannot
 
16778
  # rely on this symbol name, it's probably fine to never include it in
 
16779
  # preloaded symbol tables.
 
16780
  extract_expsyms_cmds=
 
16781
 
 
16782
  case $host_os in
 
16783
  cygwin* | mingw* | pw32*)
 
16784
    # FIXME: the MSVC++ port hasn't been tested in a loooong time
 
16785
    # When not using gcc, we currently assume that we are using
 
16786
    # Microsoft Visual C++.
 
16787
    if test "$GCC" != yes; then
 
16788
      with_gnu_ld=no
 
16789
    fi
 
16790
    ;;
 
16791
  openbsd*)
 
16792
    with_gnu_ld=no
 
16793
    ;;
 
16794
  esac
 
16795
 
 
16796
  ld_shlibs_GCJ=yes
 
16797
  if test "$with_gnu_ld" = yes; then
 
16798
    # If archive_cmds runs LD, not CC, wlarc should be empty
 
16799
    wlarc='${wl}'
 
16800
 
 
16801
    # See if GNU ld supports shared libraries.
 
16802
    case $host_os in
 
16803
    aix3* | aix4* | aix5*)
 
16804
      # On AIX/PPC, the GNU linker is very broken
 
16805
      if test "$host_cpu" != ia64; then
 
16806
        ld_shlibs_GCJ=no
 
16807
        cat <<EOF 1>&2
 
16808
 
 
16809
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
 
16810
*** to be unable to reliably create shared libraries on AIX.
 
16811
*** Therefore, libtool is disabling shared libraries support.  If you
 
16812
*** really care for shared libraries, you may want to modify your PATH
 
16813
*** so that a non-GNU linker is found, and then restart.
 
16814
 
 
16815
EOF
 
16816
      fi
 
16817
      ;;
 
16818
 
 
16819
    amigaos*)
 
16820
      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)'
 
16821
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16822
      hardcode_minus_L_GCJ=yes
 
16823
 
 
16824
      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 
16825
      # that the semantics of dynamic libraries on AmigaOS, at least up
 
16826
      # to version 4, is to share data among multiple programs linked
 
16827
      # with the same dynamic library.  Since this doesn't match the
 
16828
      # behavior of shared libraries on other platforms, we can't use
 
16829
      # them.
 
16830
      ld_shlibs_GCJ=no
 
16831
      ;;
 
16832
 
 
16833
    beos*)
 
16834
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16835
        allow_undefined_flag_GCJ=unsupported
 
16836
        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 
16837
        # support --undefined.  This deserves some investigation.  FIXME
 
16838
        archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16839
      else
 
16840
        ld_shlibs_GCJ=no
 
16841
      fi
 
16842
      ;;
 
16843
 
 
16844
    cygwin* | mingw* | pw32*)
 
16845
      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
 
16846
      # as there is no search path for DLLs.
 
16847
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
16848
      allow_undefined_flag_GCJ=unsupported
 
16849
      always_export_symbols_GCJ=no
 
16850
      enable_shared_with_static_runtimes_GCJ=yes
 
16851
      export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 
16852
 
 
16853
      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 
16854
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 
16855
        # If the export-symbols file already is a .def file (1st line
 
16856
        # is EXPORTS), use it as is; otherwise, prepend...
 
16857
        archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 
16858
          cp $export_symbols $output_objdir/$soname.def;
 
16859
        else
 
16860
          echo EXPORTS > $output_objdir/$soname.def;
 
16861
          cat $export_symbols >> $output_objdir/$soname.def;
 
16862
        fi~
 
16863
        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 
16864
      else
 
16865
        ld_shlibs=no
 
16866
      fi
 
16867
      ;;
 
16868
 
 
16869
    netbsd* | knetbsd*-gnu)
 
16870
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
16871
        archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 
16872
        wlarc=
 
16873
      else
 
16874
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16875
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16876
      fi
 
16877
      ;;
 
16878
 
 
16879
    solaris* | sysv5*)
 
16880
      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 
16881
        ld_shlibs_GCJ=no
 
16882
        cat <<EOF 1>&2
 
16883
 
 
16884
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
 
16885
*** create shared libraries on Solaris systems.  Therefore, libtool
 
16886
*** is disabling shared libraries support.  We urge you to upgrade GNU
 
16887
*** binutils to release 2.9.1 or newer.  Another option is to modify
 
16888
*** your PATH or compiler configuration so that the native linker is
 
16889
*** used, and then restart.
 
16890
 
 
16891
EOF
 
16892
      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16893
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16894
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16895
      else
 
16896
        ld_shlibs_GCJ=no
 
16897
      fi
 
16898
      ;;
 
16899
 
 
16900
    sunos4*)
 
16901
      archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
16902
      wlarc=
 
16903
      hardcode_direct_GCJ=yes
 
16904
      hardcode_shlibpath_var_GCJ=no
 
16905
      ;;
 
16906
 
 
16907
  linux*)
 
16908
    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 
16909
        tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16910
        archive_cmds_GCJ="$tmp_archive_cmds"
 
16911
      supports_anon_versioning=no
 
16912
      case `$LD -v 2>/dev/null` in
 
16913
        *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 
16914
        *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 
16915
        *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 
16916
        *\ 2.11.*) ;; # other 2.11 versions
 
16917
        *) supports_anon_versioning=yes ;;
 
16918
      esac
 
16919
      if test $supports_anon_versioning = yes; then
 
16920
        archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
 
16921
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 
16922
$echo "local: *; };" >> $output_objdir/$libname.ver~
 
16923
        $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 
16924
      else
 
16925
        archive_expsym_cmds_GCJ="$tmp_archive_cmds"
 
16926
      fi
 
16927
    else
 
16928
      ld_shlibs_GCJ=no
 
16929
    fi
 
16930
    ;;
 
16931
 
 
16932
    *)
 
16933
      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 
16934
        archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 
16935
        archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 
16936
      else
 
16937
        ld_shlibs_GCJ=no
 
16938
      fi
 
16939
      ;;
 
16940
    esac
 
16941
 
 
16942
    if test "$ld_shlibs_GCJ" = yes; then
 
16943
      runpath_var=LD_RUN_PATH
 
16944
      hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
 
16945
      export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
 
16946
      # ancient GNU ld didn't support --whole-archive et. al.
 
16947
      if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 
16948
        whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 
16949
      else
 
16950
        whole_archive_flag_spec_GCJ=
 
16951
      fi
 
16952
    fi
 
16953
  else
 
16954
    # PORTME fill in a description of your system's linker (not GNU ld)
 
16955
    case $host_os in
 
16956
    aix3*)
 
16957
      allow_undefined_flag_GCJ=unsupported
 
16958
      always_export_symbols_GCJ=yes
 
16959
      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'
 
16960
      # Note: this linker hardcodes the directories in LIBPATH if there
 
16961
      # are no directories specified by -L.
 
16962
      hardcode_minus_L_GCJ=yes
 
16963
      if test "$GCC" = yes && test -z "$link_static_flag"; then
 
16964
        # Neither direct hardcoding nor static linking is supported with a
 
16965
        # broken collect2.
 
16966
        hardcode_direct_GCJ=unsupported
 
16967
      fi
 
16968
      ;;
 
16969
 
 
16970
    aix4* | aix5*)
 
16971
      if test "$host_cpu" = ia64; then
 
16972
        # On IA64, the linker does run time linking by default, so we don't
 
16973
        # have to do anything special.
 
16974
        aix_use_runtimelinking=no
 
16975
        exp_sym_flag='-Bexport'
 
16976
        no_entry_flag=""
 
16977
      else
 
16978
        # If we're using GNU nm, then we don't want the "-C" option.
 
16979
        # -C means demangle to AIX nm, but means don't demangle with GNU nm
 
16980
        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 
16981
          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'
 
16982
        else
 
16983
          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'
 
16984
        fi
 
16985
        aix_use_runtimelinking=no
 
16986
 
 
16987
        # Test if we are trying to use run time linking or normal
 
16988
        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 
16989
        # need to do runtime linking.
 
16990
        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 
16991
          for ld_flag in $LDFLAGS; do
 
16992
          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 
16993
            aix_use_runtimelinking=yes
 
16994
            break
 
16995
          fi
 
16996
          done
 
16997
        esac
 
16998
 
 
16999
        exp_sym_flag='-bexport'
 
17000
        no_entry_flag='-bnoentry'
 
17001
      fi
 
17002
 
 
17003
      # When large executables or shared objects are built, AIX ld can
 
17004
      # have problems creating the table of contents.  If linking a library
 
17005
      # or program results in "error TOC overflow" add -mminimal-toc to
 
17006
      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 
17007
      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 
17008
 
 
17009
      archive_cmds_GCJ=''
 
17010
      hardcode_direct_GCJ=yes
 
17011
      hardcode_libdir_separator_GCJ=':'
 
17012
      link_all_deplibs_GCJ=yes
 
17013
 
 
17014
      if test "$GCC" = yes; then
 
17015
        case $host_os in aix4.012|aix4.012.*)
 
17016
        # We only want to do this on AIX 4.2 and lower, the check
 
17017
        # below for broken collect2 doesn't work under 4.3+
 
17018
          collect2name=`${CC} -print-prog-name=collect2`
 
17019
          if test -f "$collect2name" && \
 
17020
           strings "$collect2name" | grep resolve_lib_name >/dev/null
 
17021
          then
 
17022
          # We have reworked collect2
 
17023
          hardcode_direct_GCJ=yes
 
17024
          else
 
17025
          # We have old collect2
 
17026
          hardcode_direct_GCJ=unsupported
 
17027
          # It fails to find uninstalled libraries when the uninstalled
 
17028
          # path is not listed in the libpath.  Setting hardcode_minus_L
 
17029
          # to unsupported forces relinking
 
17030
          hardcode_minus_L_GCJ=yes
 
17031
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17032
          hardcode_libdir_separator_GCJ=
 
17033
          fi
 
17034
        esac
 
17035
        shared_flag='-shared'
 
17036
      else
 
17037
        # not using gcc
 
17038
        if test "$host_cpu" = ia64; then
 
17039
        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 
17040
        # chokes on -Wl,-G. The following line is correct:
 
17041
          shared_flag='-G'
 
17042
        else
 
17043
        if test "$aix_use_runtimelinking" = yes; then
 
17044
            shared_flag='${wl}-G'
 
17045
          else
 
17046
            shared_flag='${wl}-bM:SRE'
 
17047
        fi
 
17048
        fi
 
17049
      fi
 
17050
 
 
17051
      # It seems that -bexpall does not export symbols beginning with
 
17052
      # underscore (_), so it is better to generate a list of symbols to export.
 
17053
      always_export_symbols_GCJ=yes
 
17054
      if test "$aix_use_runtimelinking" = yes; then
 
17055
        # Warning - without using the other runtime loading flags (-brtl),
 
17056
        # -berok will link without error, but may produce a broken library.
 
17057
        allow_undefined_flag_GCJ='-berok'
 
17058
       # Determine the default libpath from the value encoded in an empty executable.
 
17059
       cat >conftest.$ac_ext <<_ACEOF
 
17060
/* confdefs.h.  */
 
17061
_ACEOF
 
17062
cat confdefs.h >>conftest.$ac_ext
 
17063
cat >>conftest.$ac_ext <<_ACEOF
 
17064
/* end confdefs.h.  */
 
17065
 
 
17066
int
 
17067
main ()
 
17068
{
 
17069
 
 
17070
  ;
 
17071
  return 0;
 
17072
}
 
17073
_ACEOF
 
17074
rm -f conftest.$ac_objext conftest$ac_exeext
 
17075
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17076
  (eval $ac_link) 2>conftest.er1
 
17077
  ac_status=$?
 
17078
  grep -v '^ *+' conftest.er1 >conftest.err
 
17079
  rm -f conftest.er1
 
17080
  cat conftest.err >&5
 
17081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17082
  (exit $ac_status); } &&
 
17083
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17084
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17085
  (eval $ac_try) 2>&5
 
17086
  ac_status=$?
 
17087
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17088
  (exit $ac_status); }; } &&
 
17089
         { ac_try='test -s conftest$ac_exeext'
 
17090
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17091
  (eval $ac_try) 2>&5
 
17092
  ac_status=$?
 
17093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17094
  (exit $ac_status); }; }; then
 
17095
 
 
17096
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17097
}'`
 
17098
# Check for a 64-bit object if we didn't find anything.
 
17099
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; }
 
17100
}'`; fi
 
17101
else
 
17102
  echo "$as_me: failed program was:" >&5
 
17103
sed 's/^/| /' conftest.$ac_ext >&5
 
17104
 
 
17105
fi
 
17106
rm -f conftest.err conftest.$ac_objext \
 
17107
      conftest$ac_exeext conftest.$ac_ext
 
17108
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17109
 
 
17110
       hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17111
        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"
 
17112
       else
 
17113
        if test "$host_cpu" = ia64; then
 
17114
          hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
 
17115
          allow_undefined_flag_GCJ="-z nodefs"
 
17116
          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"
 
17117
        else
 
17118
         # Determine the default libpath from the value encoded in an empty executable.
 
17119
         cat >conftest.$ac_ext <<_ACEOF
 
17120
/* confdefs.h.  */
 
17121
_ACEOF
 
17122
cat confdefs.h >>conftest.$ac_ext
 
17123
cat >>conftest.$ac_ext <<_ACEOF
 
17124
/* end confdefs.h.  */
 
17125
 
 
17126
int
 
17127
main ()
 
17128
{
 
17129
 
 
17130
  ;
 
17131
  return 0;
 
17132
}
 
17133
_ACEOF
 
17134
rm -f conftest.$ac_objext conftest$ac_exeext
 
17135
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
17136
  (eval $ac_link) 2>conftest.er1
 
17137
  ac_status=$?
 
17138
  grep -v '^ *+' conftest.er1 >conftest.err
 
17139
  rm -f conftest.er1
 
17140
  cat conftest.err >&5
 
17141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17142
  (exit $ac_status); } &&
 
17143
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
17144
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17145
  (eval $ac_try) 2>&5
 
17146
  ac_status=$?
 
17147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17148
  (exit $ac_status); }; } &&
 
17149
         { ac_try='test -s conftest$ac_exeext'
 
17150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
17151
  (eval $ac_try) 2>&5
 
17152
  ac_status=$?
 
17153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17154
  (exit $ac_status); }; }; then
 
17155
 
 
17156
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 
17157
}'`
 
17158
# Check for a 64-bit object if we didn't find anything.
 
17159
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; }
 
17160
}'`; fi
 
17161
else
 
17162
  echo "$as_me: failed program was:" >&5
 
17163
sed 's/^/| /' conftest.$ac_ext >&5
 
17164
 
 
17165
fi
 
17166
rm -f conftest.err conftest.$ac_objext \
 
17167
      conftest$ac_exeext conftest.$ac_ext
 
17168
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 
17169
 
 
17170
         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
 
17171
          # Warning - without using the other run time loading flags,
 
17172
          # -berok will link without error, but may produce a broken library.
 
17173
          no_undefined_flag_GCJ=' ${wl}-bernotok'
 
17174
          allow_undefined_flag_GCJ=' ${wl}-berok'
 
17175
          # -bexpall does not export symbols beginning with underscore (_)
 
17176
          always_export_symbols_GCJ=yes
 
17177
          # Exported symbols can be pulled into shared objects from archives
 
17178
          whole_archive_flag_spec_GCJ=' '
 
17179
          archive_cmds_need_lc_GCJ=yes
 
17180
          # This is similar to how AIX traditionally builds it's shared libraries.
 
17181
          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'
 
17182
        fi
 
17183
      fi
 
17184
      ;;
 
17185
 
 
17186
    amigaos*)
 
17187
      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)'
 
17188
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17189
      hardcode_minus_L_GCJ=yes
 
17190
      # see comment about different semantics on the GNU ld section
 
17191
      ld_shlibs_GCJ=no
 
17192
      ;;
 
17193
 
 
17194
    bsdi4*)
 
17195
      export_dynamic_flag_spec_GCJ=-rdynamic
 
17196
      ;;
 
17197
 
 
17198
    cygwin* | mingw* | pw32*)
 
17199
      # When not using gcc, we currently assume that we are using
 
17200
      # Microsoft Visual C++.
 
17201
      # hardcode_libdir_flag_spec is actually meaningless, as there is
 
17202
      # no search path for DLLs.
 
17203
      hardcode_libdir_flag_spec_GCJ=' '
 
17204
      allow_undefined_flag_GCJ=unsupported
 
17205
      # Tell ltmain to make .lib files, not .a files.
 
17206
      libext=lib
 
17207
      # Tell ltmain to make .dll files, not .so files.
 
17208
      shrext=".dll"
 
17209
      # FIXME: Setting linknames here is a bad hack.
 
17210
      archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 
17211
      # The linker will automatically build a .lib file if we build a DLL.
 
17212
      old_archive_From_new_cmds_GCJ='true'
 
17213
      # FIXME: Should let the user specify the lib program.
 
17214
      old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
 
17215
      fix_srcfile_path='`cygpath -w "$srcfile"`'
 
17216
      enable_shared_with_static_runtimes_GCJ=yes
 
17217
      ;;
 
17218
 
 
17219
    darwin* | rhapsody*)
 
17220
    if test "$GXX" = yes ; then
 
17221
      archive_cmds_need_lc_GCJ=no
 
17222
      case "$host_os" in
 
17223
      rhapsody* | darwin1.[012])
 
17224
        allow_undefined_flag_GCJ='-undefined suppress'
 
17225
        ;;
 
17226
      *) # Darwin 1.3 on
 
17227
      if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 
17228
        allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17229
      else
 
17230
        case ${MACOSX_DEPLOYMENT_TARGET} in
 
17231
          10.[012])
 
17232
            allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
 
17233
            ;;
 
17234
          10.*)
 
17235
            allow_undefined_flag_GCJ='-undefined dynamic_lookup'
 
17236
            ;;
 
17237
        esac
 
17238
      fi
 
17239
        ;;
 
17240
      esac
 
17241
        lt_int_apple_cc_single_mod=no
 
17242
        output_verbose_link_cmd='echo'
 
17243
        if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 
17244
          lt_int_apple_cc_single_mod=yes
 
17245
        fi
 
17246
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17247
          archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 
17248
        else
 
17249
        archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
 
17250
      fi
 
17251
      module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 
17252
      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 
17253
        if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 
17254
          archive_expsym_cmds_GCJ='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}'
 
17255
        else
 
17256
          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
 
17257
        fi
 
17258
          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}'
 
17259
      hardcode_direct_GCJ=no
 
17260
      hardcode_automatic_GCJ=yes
 
17261
      hardcode_shlibpath_var_GCJ=unsupported
 
17262
      whole_archive_flag_spec_GCJ='-all_load $convenience'
 
17263
      link_all_deplibs_GCJ=yes
 
17264
    else
 
17265
      ld_shlibs_GCJ=no
 
17266
    fi
 
17267
      ;;
 
17268
 
 
17269
    dgux*)
 
17270
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17271
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17272
      hardcode_shlibpath_var_GCJ=no
 
17273
      ;;
 
17274
 
 
17275
    freebsd1*)
 
17276
      ld_shlibs_GCJ=no
 
17277
      ;;
 
17278
 
 
17279
    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 
17280
    # support.  Future versions do this automatically, but an explicit c++rt0.o
 
17281
    # does not break anything, and helps significantly (at the cost of a little
 
17282
    # extra space).
 
17283
    freebsd2.2*)
 
17284
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 
17285
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17286
      hardcode_direct_GCJ=yes
 
17287
      hardcode_shlibpath_var_GCJ=no
 
17288
      ;;
 
17289
 
 
17290
    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 
17291
    freebsd2*)
 
17292
      archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17293
      hardcode_direct_GCJ=yes
 
17294
      hardcode_minus_L_GCJ=yes
 
17295
      hardcode_shlibpath_var_GCJ=no
 
17296
      ;;
 
17297
 
 
17298
    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 
17299
    freebsd* | kfreebsd*-gnu)
 
17300
      archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 
17301
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17302
      hardcode_direct_GCJ=yes
 
17303
      hardcode_shlibpath_var_GCJ=no
 
17304
      ;;
 
17305
 
 
17306
    hpux9*)
 
17307
      if test "$GCC" = yes; then
 
17308
        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'
 
17309
      else
 
17310
        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'
 
17311
      fi
 
17312
      hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17313
      hardcode_libdir_separator_GCJ=:
 
17314
      hardcode_direct_GCJ=yes
 
17315
 
 
17316
      # hardcode_minus_L: Not really in the search PATH,
 
17317
      # but as the default location of the library.
 
17318
      hardcode_minus_L_GCJ=yes
 
17319
      export_dynamic_flag_spec_GCJ='${wl}-E'
 
17320
      ;;
 
17321
 
 
17322
    hpux10* | hpux11*)
 
17323
      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 
17324
        case "$host_cpu" in
 
17325
        hppa*64*|ia64*)
 
17326
          archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17327
          ;;
 
17328
        *)
 
17329
          archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 
17330
          ;;
 
17331
        esac
 
17332
      else
 
17333
        case "$host_cpu" in
 
17334
        hppa*64*|ia64*)
 
17335
          archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17336
          ;;
 
17337
        *)
 
17338
          archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 
17339
          ;;
 
17340
        esac
 
17341
      fi
 
17342
      if test "$with_gnu_ld" = no; then
 
17343
        case "$host_cpu" in
 
17344
        hppa*64*)
 
17345
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17346
          hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
 
17347
          hardcode_libdir_separator_GCJ=:
 
17348
          hardcode_direct_GCJ=no
 
17349
          hardcode_shlibpath_var_GCJ=no
 
17350
          ;;
 
17351
        ia64*)
 
17352
          hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17353
          hardcode_direct_GCJ=no
 
17354
          hardcode_shlibpath_var_GCJ=no
 
17355
 
 
17356
          # hardcode_minus_L: Not really in the search PATH,
 
17357
          # but as the default location of the library.
 
17358
          hardcode_minus_L_GCJ=yes
 
17359
          ;;
 
17360
        *)
 
17361
          hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
 
17362
          hardcode_libdir_separator_GCJ=:
 
17363
          hardcode_direct_GCJ=yes
 
17364
          export_dynamic_flag_spec_GCJ='${wl}-E'
 
17365
 
 
17366
          # hardcode_minus_L: Not really in the search PATH,
 
17367
          # but as the default location of the library.
 
17368
          hardcode_minus_L_GCJ=yes
 
17369
          ;;
 
17370
        esac
 
17371
      fi
 
17372
      ;;
 
17373
 
 
17374
    irix5* | irix6* | nonstopux*)
 
17375
      if test "$GCC" = yes; then
 
17376
        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'
 
17377
      else
 
17378
        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'
 
17379
        hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
 
17380
      fi
 
17381
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17382
      hardcode_libdir_separator_GCJ=:
 
17383
      link_all_deplibs_GCJ=yes
 
17384
      ;;
 
17385
 
 
17386
    netbsd* | knetbsd*-gnu)
 
17387
      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
17388
        archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 
17389
      else
 
17390
        archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 
17391
      fi
 
17392
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17393
      hardcode_direct_GCJ=yes
 
17394
      hardcode_shlibpath_var_GCJ=no
 
17395
      ;;
 
17396
 
 
17397
    newsos6)
 
17398
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17399
      hardcode_direct_GCJ=yes
 
17400
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17401
      hardcode_libdir_separator_GCJ=:
 
17402
      hardcode_shlibpath_var_GCJ=no
 
17403
      ;;
 
17404
 
 
17405
    openbsd*)
 
17406
      hardcode_direct_GCJ=yes
 
17407
      hardcode_shlibpath_var_GCJ=no
 
17408
      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
17409
        archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17410
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17411
        export_dynamic_flag_spec_GCJ='${wl}-E'
 
17412
      else
 
17413
       case $host_os in
 
17414
         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 
17415
           archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 
17416
           hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17417
           ;;
 
17418
         *)
 
17419
           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 
17420
           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
 
17421
           ;;
 
17422
       esac
 
17423
      fi
 
17424
      ;;
 
17425
 
 
17426
    os2*)
 
17427
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17428
      hardcode_minus_L_GCJ=yes
 
17429
      allow_undefined_flag_GCJ=unsupported
 
17430
      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'
 
17431
      old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 
17432
      ;;
 
17433
 
 
17434
    osf3*)
 
17435
      if test "$GCC" = yes; then
 
17436
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17437
        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'
 
17438
      else
 
17439
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17440
        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'
 
17441
      fi
 
17442
      hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17443
      hardcode_libdir_separator_GCJ=:
 
17444
      ;;
 
17445
 
 
17446
    osf4* | osf5*)      # as osf3* with the addition of -msym flag
 
17447
      if test "$GCC" = yes; then
 
17448
        allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
 
17449
        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'
 
17450
        hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
 
17451
      else
 
17452
        allow_undefined_flag_GCJ=' -expect_unresolved \*'
 
17453
        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'
 
17454
        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~
 
17455
        $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'
 
17456
 
 
17457
        # Both c and cxx compiler support -rpath directly
 
17458
        hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
 
17459
      fi
 
17460
      hardcode_libdir_separator_GCJ=:
 
17461
      ;;
 
17462
 
 
17463
    sco3.2v5*)
 
17464
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17465
      hardcode_shlibpath_var_GCJ=no
 
17466
      export_dynamic_flag_spec_GCJ='${wl}-Bexport'
 
17467
      runpath_var=LD_RUN_PATH
 
17468
      hardcode_runpath_var=yes
 
17469
      ;;
 
17470
 
 
17471
    solaris*)
 
17472
      no_undefined_flag_GCJ=' -z text'
 
17473
      if test "$GCC" = yes; then
 
17474
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17475
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17476
          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 
17477
      else
 
17478
        archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17479
        archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17480
        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17481
      fi
 
17482
      hardcode_libdir_flag_spec_GCJ='-R$libdir'
 
17483
      hardcode_shlibpath_var_GCJ=no
 
17484
      case $host_os in
 
17485
      solaris2.[0-5] | solaris2.[0-5].*) ;;
 
17486
      *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 
17487
        whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
 
17488
      esac
 
17489
      link_all_deplibs_GCJ=yes
 
17490
      ;;
 
17491
 
 
17492
    sunos4*)
 
17493
      if test "x$host_vendor" = xsequent; then
 
17494
        # Use $CC to link under sequent, because it throws in some extra .o
 
17495
        # files that make .init and .fini sections work.
 
17496
        archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 
17497
      else
 
17498
        archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 
17499
      fi
 
17500
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17501
      hardcode_direct_GCJ=yes
 
17502
      hardcode_minus_L_GCJ=yes
 
17503
      hardcode_shlibpath_var_GCJ=no
 
17504
      ;;
 
17505
 
 
17506
    sysv4)
 
17507
      case $host_vendor in
 
17508
        sni)
 
17509
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17510
          hardcode_direct_GCJ=yes # is this really true???
 
17511
        ;;
 
17512
        siemens)
 
17513
          ## LD is ld it makes a PLAMLIB
 
17514
          ## CC just makes a GrossModule.
 
17515
          archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17516
          reload_cmds_GCJ='$CC -r -o $output$reload_objs'
 
17517
          hardcode_direct_GCJ=no
 
17518
        ;;
 
17519
        motorola)
 
17520
          archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17521
          hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
 
17522
        ;;
 
17523
      esac
 
17524
      runpath_var='LD_RUN_PATH'
 
17525
      hardcode_shlibpath_var_GCJ=no
 
17526
      ;;
 
17527
 
 
17528
    sysv4.3*)
 
17529
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17530
      hardcode_shlibpath_var_GCJ=no
 
17531
      export_dynamic_flag_spec_GCJ='-Bexport'
 
17532
      ;;
 
17533
 
 
17534
    sysv4*MP*)
 
17535
      if test -d /usr/nec; then
 
17536
        archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17537
        hardcode_shlibpath_var_GCJ=no
 
17538
        runpath_var=LD_RUN_PATH
 
17539
        hardcode_runpath_var=yes
 
17540
        ld_shlibs_GCJ=yes
 
17541
      fi
 
17542
      ;;
 
17543
 
 
17544
    sysv4.2uw2*)
 
17545
      archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 
17546
      hardcode_direct_GCJ=yes
 
17547
      hardcode_minus_L_GCJ=no
 
17548
      hardcode_shlibpath_var_GCJ=no
 
17549
      hardcode_runpath_var=yes
 
17550
      runpath_var=LD_RUN_PATH
 
17551
      ;;
 
17552
 
 
17553
   sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 
17554
      no_undefined_flag_GCJ='${wl}-z ${wl}text'
 
17555
      if test "$GCC" = yes; then
 
17556
        archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17557
      else
 
17558
        archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 
17559
      fi
 
17560
      runpath_var='LD_RUN_PATH'
 
17561
      hardcode_shlibpath_var_GCJ=no
 
17562
      ;;
 
17563
 
 
17564
    sysv5*)
 
17565
      no_undefined_flag_GCJ=' -z text'
 
17566
      # $CC -shared without GNU ld will not create a library from C++
 
17567
      # object files and a static libstdc++, better avoid it by now
 
17568
      archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17569
      archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 
17570
                $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 
17571
      hardcode_libdir_flag_spec_GCJ=
 
17572
      hardcode_shlibpath_var_GCJ=no
 
17573
      runpath_var='LD_RUN_PATH'
 
17574
      ;;
 
17575
 
 
17576
    uts4*)
 
17577
      archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 
17578
      hardcode_libdir_flag_spec_GCJ='-L$libdir'
 
17579
      hardcode_shlibpath_var_GCJ=no
 
17580
      ;;
 
17581
 
 
17582
    *)
 
17583
      ld_shlibs_GCJ=no
 
17584
      ;;
 
17585
    esac
 
17586
  fi
 
17587
 
 
17588
echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
 
17589
echo "${ECHO_T}$ld_shlibs_GCJ" >&6
 
17590
test "$ld_shlibs_GCJ" = no && can_build_shared=no
 
17591
 
 
17592
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 
17593
if test "$GCC" = yes; then
 
17594
  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 
17595
fi
 
17596
 
 
17597
#
 
17598
# Do we need to explicitly link libc?
 
17599
#
 
17600
case "x$archive_cmds_need_lc_GCJ" in
 
17601
x|xyes)
 
17602
  # Assume -lc should be added
 
17603
  archive_cmds_need_lc_GCJ=yes
 
17604
 
 
17605
  if test "$enable_shared" = yes && test "$GCC" = yes; then
 
17606
    case $archive_cmds_GCJ in
 
17607
    *'~'*)
 
17608
      # FIXME: we may have to deal with multi-command sequences.
 
17609
      ;;
 
17610
    '$CC '*)
 
17611
      # Test whether the compiler implicitly links with -lc since on some
 
17612
      # systems, -lgcc has to come before -lc. If gcc already passes -lc
 
17613
      # to ld, don't add -lc before -lgcc.
 
17614
      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 
17615
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 
17616
      $rm conftest*
 
17617
      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 
17618
 
 
17619
      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
17620
  (eval $ac_compile) 2>&5
 
17621
  ac_status=$?
 
17622
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17623
  (exit $ac_status); } 2>conftest.err; then
 
17624
        soname=conftest
 
17625
        lib=conftest
 
17626
        libobjs=conftest.$ac_objext
 
17627
        deplibs=
 
17628
        wl=$lt_prog_compiler_wl_GCJ
 
17629
        compiler_flags=-v
 
17630
        linker_flags=-v
 
17631
        verstring=
 
17632
        output_objdir=.
 
17633
        libname=conftest
 
17634
        lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
 
17635
        allow_undefined_flag_GCJ=
 
17636
        if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 
17637
  (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 
17638
  ac_status=$?
 
17639
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
17640
  (exit $ac_status); }
 
17641
        then
 
17642
          archive_cmds_need_lc_GCJ=no
 
17643
        else
 
17644
          archive_cmds_need_lc_GCJ=yes
 
17645
        fi
 
17646
        allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
 
17647
      else
 
17648
        cat conftest.err 1>&5
 
17649
      fi
 
17650
      $rm conftest*
 
17651
      echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
 
17652
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
 
17653
      ;;
 
17654
    esac
 
17655
  fi
 
17656
  ;;
 
17657
esac
 
17658
 
 
17659
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 
17660
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 
17661
library_names_spec=
 
17662
libname_spec='lib$name'
 
17663
soname_spec=
 
17664
shrext=".so"
 
17665
postinstall_cmds=
 
17666
postuninstall_cmds=
 
17667
finish_cmds=
 
17668
finish_eval=
 
17669
shlibpath_var=
 
17670
shlibpath_overrides_runpath=unknown
 
17671
version_type=none
 
17672
dynamic_linker="$host_os ld.so"
 
17673
sys_lib_dlsearch_path_spec="/lib /usr/lib"
 
17674
if test "$GCC" = yes; then
 
17675
  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17676
  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 
17677
    # if the path contains ";" then we assume it to be the separator
 
17678
    # otherwise default to the standard path separator (i.e. ":") - it is
 
17679
    # assumed that no part of a normal pathname contains ";" but that should
 
17680
    # okay in the real world where ";" in dirpaths is itself problematic.
 
17681
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17682
  else
 
17683
    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17684
  fi
 
17685
else
 
17686
  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 
17687
fi
 
17688
need_lib_prefix=unknown
 
17689
hardcode_into_libs=no
 
17690
 
 
17691
# when you set need_version to no, make sure it does not cause -set_version
 
17692
# flags to be left without arguments
 
17693
need_version=unknown
 
17694
 
 
17695
case $host_os in
 
17696
aix3*)
 
17697
  version_type=linux
 
17698
  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 
17699
  shlibpath_var=LIBPATH
 
17700
 
 
17701
  # AIX 3 has no versioning support, so we append a major version to the name.
 
17702
  soname_spec='${libname}${release}${shared_ext}$major'
 
17703
  ;;
 
17704
 
 
17705
aix4* | aix5*)
 
17706
  version_type=linux
 
17707
  need_lib_prefix=no
 
17708
  need_version=no
 
17709
  hardcode_into_libs=yes
 
17710
  if test "$host_cpu" = ia64; then
 
17711
    # AIX 5 supports IA64
 
17712
    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 
17713
    shlibpath_var=LD_LIBRARY_PATH
 
17714
  else
 
17715
    # With GCC up to 2.95.x, collect2 would create an import file
 
17716
    # for dependence libraries.  The import file would start with
 
17717
    # the line `#! .'.  This would cause the generated library to
 
17718
    # depend on `.', always an invalid library.  This was fixed in
 
17719
    # development snapshots of GCC prior to 3.0.
 
17720
    case $host_os in
 
17721
      aix4 | aix4.[01] | aix4.[01].*)
 
17722
      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 
17723
           echo ' yes '
 
17724
           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 
17725
        :
 
17726
      else
 
17727
        can_build_shared=no
 
17728
      fi
 
17729
      ;;
 
17730
    esac
 
17731
    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 
17732
    # soname into executable. Probably we can add versioning support to
 
17733
    # collect2, so additional links can be useful in future.
 
17734
    if test "$aix_use_runtimelinking" = yes; then
 
17735
      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 
17736
      # instead of lib<name>.a to let people know that these are not
 
17737
      # typical AIX shared libraries.
 
17738
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17739
    else
 
17740
      # We preserve .a as extension for shared libraries through AIX4.2
 
17741
      # and later when we are not doing run time linking.
 
17742
      library_names_spec='${libname}${release}.a $libname.a'
 
17743
      soname_spec='${libname}${release}${shared_ext}$major'
 
17744
    fi
 
17745
    shlibpath_var=LIBPATH
 
17746
  fi
 
17747
  ;;
 
17748
 
 
17749
amigaos*)
 
17750
  library_names_spec='$libname.ixlibrary $libname.a'
 
17751
  # Create ${libname}_ixlibrary.a entries in /sys/libs.
 
17752
  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'
 
17753
  ;;
 
17754
 
 
17755
beos*)
 
17756
  library_names_spec='${libname}${shared_ext}'
 
17757
  dynamic_linker="$host_os ld.so"
 
17758
  shlibpath_var=LIBRARY_PATH
 
17759
  ;;
 
17760
 
 
17761
bsdi4*)
 
17762
  version_type=linux
 
17763
  need_version=no
 
17764
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17765
  soname_spec='${libname}${release}${shared_ext}$major'
 
17766
  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 
17767
  shlibpath_var=LD_LIBRARY_PATH
 
17768
  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 
17769
  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 
17770
  # the default ld.so.conf also contains /usr/contrib/lib and
 
17771
  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 
17772
  # libtool to hard-code these into programs
 
17773
  ;;
 
17774
 
 
17775
cygwin* | mingw* | pw32*)
 
17776
  version_type=windows
 
17777
  shrext=".dll"
 
17778
  need_version=no
 
17779
  need_lib_prefix=no
 
17780
 
 
17781
  case $GCC,$host_os in
 
17782
  yes,cygwin* | yes,mingw* | yes,pw32*)
 
17783
    library_names_spec='$libname.dll.a'
 
17784
    # DLL is installed to $(libdir)/../bin by postinstall_cmds
 
17785
    postinstall_cmds='base_file=`basename \${file}`~
 
17786
      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 
17787
      dldir=$destdir/`dirname \$dlpath`~
 
17788
      test -d \$dldir || mkdir -p \$dldir~
 
17789
      $install_prog $dir/$dlname \$dldir/$dlname'
 
17790
    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 
17791
      dlpath=$dir/\$dldll~
 
17792
       $rm \$dlpath'
 
17793
    shlibpath_overrides_runpath=yes
 
17794
 
 
17795
    case $host_os in
 
17796
    cygwin*)
 
17797
      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 
17798
      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17799
      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 
17800
      ;;
 
17801
    mingw*)
 
17802
      # MinGW DLLs use traditional 'lib' prefix
 
17803
      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 
17804
      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 
17805
      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 
17806
        # It is most probably a Windows format PATH printed by
 
17807
        # mingw gcc, but we are running on Cygwin. Gcc prints its search
 
17808
        # path with ; separators, and with drive letters. We can handle the
 
17809
        # drive letters (cygwin fileutils understands them), so leave them,
 
17810
        # especially as we might pass files found there to a mingw objdump,
 
17811
        # which wouldn't understand a cygwinified path. Ahh.
 
17812
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 
17813
      else
 
17814
        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 
17815
      fi
 
17816
      ;;
 
17817
    pw32*)
 
17818
      # pw32 DLLs use 'pw' prefix rather than 'lib'
 
17819
      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 
17820
      ;;
 
17821
    esac
 
17822
    ;;
 
17823
 
 
17824
  *)
 
17825
    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 
17826
    ;;
 
17827
  esac
 
17828
  dynamic_linker='Win32 ld.exe'
 
17829
  # FIXME: first we should search . and the directory the executable is in
 
17830
  shlibpath_var=PATH
 
17831
  ;;
 
17832
 
 
17833
darwin* | rhapsody*)
 
17834
  dynamic_linker="$host_os dyld"
 
17835
  version_type=darwin
 
17836
  need_lib_prefix=no
 
17837
  need_version=no
 
17838
  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 
17839
  soname_spec='${libname}${release}${major}$shared_ext'
 
17840
  shlibpath_overrides_runpath=yes
 
17841
  shlibpath_var=DYLD_LIBRARY_PATH
 
17842
  shrext='$(test .$module = .yes && echo .so || echo .dylib)'
 
17843
  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 
17844
  if test "$GCC" = yes; then
 
17845
    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"`
 
17846
  else
 
17847
    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 
17848
  fi
 
17849
  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 
17850
  ;;
 
17851
 
 
17852
dgux*)
 
17853
  version_type=linux
 
17854
  need_lib_prefix=no
 
17855
  need_version=no
 
17856
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 
17857
  soname_spec='${libname}${release}${shared_ext}$major'
 
17858
  shlibpath_var=LD_LIBRARY_PATH
 
17859
  ;;
 
17860
 
 
17861
freebsd1*)
 
17862
  dynamic_linker=no
 
17863
  ;;
 
17864
 
 
17865
kfreebsd*-gnu)
 
17866
  version_type=linux
 
17867
  need_lib_prefix=no
 
17868
  need_version=no
 
17869
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
17870
  soname_spec='${libname}${release}${shared_ext}$major'
 
17871
  shlibpath_var=LD_LIBRARY_PATH
 
17872
  shlibpath_overrides_runpath=no
 
17873
  hardcode_into_libs=yes
 
17874
  dynamic_linker='GNU ld.so'
 
17875
  ;;
 
17876
 
 
17877
freebsd*)
 
17878
  objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 
17879
  version_type=freebsd-$objformat
 
17880
  case $version_type in
 
17881
    freebsd-elf*)
 
17882
      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17883
      need_version=no
 
17884
      need_lib_prefix=no
 
17885
      ;;
 
17886
    freebsd-*)
 
17887
      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 
17888
      need_version=yes
 
17889
      ;;
 
17890
  esac
 
17891
  shlibpath_var=LD_LIBRARY_PATH
 
17892
  case $host_os in
 
17893
  freebsd2*)
 
17894
    shlibpath_overrides_runpath=yes
 
17895
    ;;
 
17896
  freebsd3.01* | freebsdelf3.01*)
 
17897
    shlibpath_overrides_runpath=yes
 
17898
    hardcode_into_libs=yes
 
17899
    ;;
 
17900
  *) # from 3.2 on
 
17901
    shlibpath_overrides_runpath=no
 
17902
    hardcode_into_libs=yes
 
17903
    ;;
 
17904
  esac
 
17905
  ;;
 
17906
 
 
17907
gnu*)
 
17908
  version_type=linux
 
17909
  need_lib_prefix=no
 
17910
  need_version=no
 
17911
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 
17912
  soname_spec='${libname}${release}${shared_ext}$major'
 
17913
  shlibpath_var=LD_LIBRARY_PATH
 
17914
  hardcode_into_libs=yes
 
17915
  ;;
 
17916
 
 
17917
hpux9* | hpux10* | hpux11*)
 
17918
  # Give a soname corresponding to the major version so that dld.sl refuses to
 
17919
  # link against other versions.
 
17920
  version_type=sunos
 
17921
  need_lib_prefix=no
 
17922
  need_version=no
 
17923
  case "$host_cpu" in
 
17924
  ia64*)
 
17925
    shrext='.so'
 
17926
    hardcode_into_libs=yes
 
17927
    dynamic_linker="$host_os dld.so"
 
17928
    shlibpath_var=LD_LIBRARY_PATH
 
17929
    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17930
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17931
    soname_spec='${libname}${release}${shared_ext}$major'
 
17932
    if test "X$HPUX_IA64_MODE" = X32; then
 
17933
      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 
17934
    else
 
17935
      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 
17936
    fi
 
17937
    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17938
    ;;
 
17939
   hppa*64*)
 
17940
     shrext='.sl'
 
17941
     hardcode_into_libs=yes
 
17942
     dynamic_linker="$host_os dld.sl"
 
17943
     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 
17944
     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 
17945
     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17946
     soname_spec='${libname}${release}${shared_ext}$major'
 
17947
     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 
17948
     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 
17949
     ;;
 
17950
   *)
 
17951
    shrext='.sl'
 
17952
    dynamic_linker="$host_os dld.sl"
 
17953
    shlibpath_var=SHLIB_PATH
 
17954
    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 
17955
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
17956
    soname_spec='${libname}${release}${shared_ext}$major'
 
17957
    ;;
 
17958
  esac
 
17959
  # HP-UX runs *really* slowly unless shared libraries are mode 555.
 
17960
  postinstall_cmds='chmod 555 $lib'
 
17961
  ;;
 
17962
 
 
17963
irix5* | irix6* | nonstopux*)
 
17964
  case $host_os in
 
17965
    nonstopux*) version_type=nonstopux ;;
 
17966
    *)
 
17967
        if test "$lt_cv_prog_gnu_ld" = yes; then
 
17968
                version_type=linux
 
17969
        else
 
17970
                version_type=irix
 
17971
        fi ;;
 
17972
  esac
 
17973
  need_lib_prefix=no
 
17974
  need_version=no
 
17975
  soname_spec='${libname}${release}${shared_ext}$major'
 
17976
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 
17977
  case $host_os in
 
17978
  irix5* | nonstopux*)
 
17979
    libsuff= shlibsuff=
 
17980
    ;;
 
17981
  *)
 
17982
    case $LD in # libtool.m4 will add one of these switches to LD
 
17983
    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 
17984
      libsuff= shlibsuff= libmagic=32-bit;;
 
17985
    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 
17986
      libsuff=32 shlibsuff=N32 libmagic=N32;;
 
17987
    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 
17988
      libsuff=64 shlibsuff=64 libmagic=64-bit;;
 
17989
    *) libsuff= shlibsuff= libmagic=never-match;;
 
17990
    esac
 
17991
    ;;
 
17992
  esac
 
17993
  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 
17994
  shlibpath_overrides_runpath=no
 
17995
  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 
17996
  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 
17997
  hardcode_into_libs=yes
 
17998
  ;;
 
17999
 
 
18000
# No shared lib support for Linux oldld, aout, or coff.
 
18001
linux*oldld* | linux*aout* | linux*coff*)
 
18002
  dynamic_linker=no
 
18003
  ;;
 
18004
 
 
18005
# This must be Linux ELF.
 
18006
linux*)
 
18007
  version_type=linux
 
18008
  need_lib_prefix=no
 
18009
  need_version=no
 
18010
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18011
  soname_spec='${libname}${release}${shared_ext}$major'
 
18012
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 
18013
  shlibpath_var=LD_LIBRARY_PATH
 
18014
  shlibpath_overrides_runpath=no
 
18015
  # This implies no fast_install, which is unacceptable.
 
18016
  # Some rework will be needed to allow for fast_install
 
18017
  # before this can be enabled.
 
18018
  hardcode_into_libs=yes
 
18019
 
 
18020
  # Append ld.so.conf contents to the search path
 
18021
  if test -f /etc/ld.so.conf; then
 
18022
    ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
 
18023
    sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
 
18024
  fi
 
18025
 
 
18026
  # We used to test for /lib/ld.so.1 and disable shared libraries on
 
18027
  # powerpc, because MkLinux only supported shared libraries with the
 
18028
  # GNU dynamic linker.  Since this was broken with cross compilers,
 
18029
  # most powerpc-linux boxes support dynamic linking these days and
 
18030
  # people can always --disable-shared, the test was removed, and we
 
18031
  # assume the GNU/Linux dynamic linker is in use.
 
18032
  dynamic_linker='GNU/Linux ld.so'
 
18033
  ;;
 
18034
 
 
18035
knetbsd*-gnu)
 
18036
  version_type=linux
 
18037
  need_lib_prefix=no
 
18038
  need_version=no
 
18039
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18040
  soname_spec='${libname}${release}${shared_ext}$major'
 
18041
  shlibpath_var=LD_LIBRARY_PATH
 
18042
  shlibpath_overrides_runpath=no
 
18043
  hardcode_into_libs=yes
 
18044
  dynamic_linker='GNU ld.so'
 
18045
  ;;
 
18046
 
 
18047
netbsd*)
 
18048
  version_type=sunos
 
18049
  need_lib_prefix=no
 
18050
  need_version=no
 
18051
  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 
18052
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18053
    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18054
    dynamic_linker='NetBSD (a.out) ld.so'
 
18055
  else
 
18056
    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 
18057
    soname_spec='${libname}${release}${shared_ext}$major'
 
18058
    dynamic_linker='NetBSD ld.elf_so'
 
18059
  fi
 
18060
  shlibpath_var=LD_LIBRARY_PATH
 
18061
  shlibpath_overrides_runpath=yes
 
18062
  hardcode_into_libs=yes
 
18063
  ;;
 
18064
 
 
18065
newsos6)
 
18066
  version_type=linux
 
18067
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18068
  shlibpath_var=LD_LIBRARY_PATH
 
18069
  shlibpath_overrides_runpath=yes
 
18070
  ;;
 
18071
 
 
18072
nto-qnx*)
 
18073
  version_type=linux
 
18074
  need_lib_prefix=no
 
18075
  need_version=no
 
18076
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18077
  soname_spec='${libname}${release}${shared_ext}$major'
 
18078
  shlibpath_var=LD_LIBRARY_PATH
 
18079
  shlibpath_overrides_runpath=yes
 
18080
  ;;
 
18081
 
 
18082
openbsd*)
 
18083
  version_type=sunos
 
18084
  need_lib_prefix=no
 
18085
  need_version=yes
 
18086
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18087
  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 
18088
  shlibpath_var=LD_LIBRARY_PATH
 
18089
  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 
18090
    case $host_os in
 
18091
      openbsd2.[89] | openbsd2.[89].*)
 
18092
        shlibpath_overrides_runpath=no
 
18093
        ;;
 
18094
      *)
 
18095
        shlibpath_overrides_runpath=yes
 
18096
        ;;
 
18097
      esac
 
18098
  else
 
18099
    shlibpath_overrides_runpath=yes
 
18100
  fi
 
18101
  ;;
 
18102
 
 
18103
os2*)
 
18104
  libname_spec='$name'
 
18105
  shrext=".dll"
 
18106
  need_lib_prefix=no
 
18107
  library_names_spec='$libname${shared_ext} $libname.a'
 
18108
  dynamic_linker='OS/2 ld.exe'
 
18109
  shlibpath_var=LIBPATH
 
18110
  ;;
 
18111
 
 
18112
osf3* | osf4* | osf5*)
 
18113
  version_type=osf
 
18114
  need_lib_prefix=no
 
18115
  need_version=no
 
18116
  soname_spec='${libname}${release}${shared_ext}$major'
 
18117
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18118
  shlibpath_var=LD_LIBRARY_PATH
 
18119
  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 
18120
  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 
18121
  ;;
 
18122
 
 
18123
sco3.2v5*)
 
18124
  version_type=osf
 
18125
  soname_spec='${libname}${release}${shared_ext}$major'
 
18126
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18127
  shlibpath_var=LD_LIBRARY_PATH
 
18128
  ;;
 
18129
 
 
18130
solaris*)
 
18131
  version_type=linux
 
18132
  need_lib_prefix=no
 
18133
  need_version=no
 
18134
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18135
  soname_spec='${libname}${release}${shared_ext}$major'
 
18136
  shlibpath_var=LD_LIBRARY_PATH
 
18137
  shlibpath_overrides_runpath=yes
 
18138
  hardcode_into_libs=yes
 
18139
  # ldd complains unless libraries are executable
 
18140
  postinstall_cmds='chmod +x $lib'
 
18141
  ;;
 
18142
 
 
18143
sunos4*)
 
18144
  version_type=sunos
 
18145
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 
18146
  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 
18147
  shlibpath_var=LD_LIBRARY_PATH
 
18148
  shlibpath_overrides_runpath=yes
 
18149
  if test "$with_gnu_ld" = yes; then
 
18150
    need_lib_prefix=no
 
18151
  fi
 
18152
  need_version=yes
 
18153
  ;;
 
18154
 
 
18155
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 
18156
  version_type=linux
 
18157
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18158
  soname_spec='${libname}${release}${shared_ext}$major'
 
18159
  shlibpath_var=LD_LIBRARY_PATH
 
18160
  case $host_vendor in
 
18161
    sni)
 
18162
      shlibpath_overrides_runpath=no
 
18163
      need_lib_prefix=no
 
18164
      export_dynamic_flag_spec='${wl}-Blargedynsym'
 
18165
      runpath_var=LD_RUN_PATH
 
18166
      ;;
 
18167
    siemens)
 
18168
      need_lib_prefix=no
 
18169
      ;;
 
18170
    motorola)
 
18171
      need_lib_prefix=no
 
18172
      need_version=no
 
18173
      shlibpath_overrides_runpath=no
 
18174
      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 
18175
      ;;
 
18176
  esac
 
18177
  ;;
 
18178
 
 
18179
sysv4*MP*)
 
18180
  if test -d /usr/nec ;then
 
18181
    version_type=linux
 
18182
    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 
18183
    soname_spec='$libname${shared_ext}.$major'
 
18184
    shlibpath_var=LD_LIBRARY_PATH
 
18185
  fi
 
18186
  ;;
 
18187
 
 
18188
uts4*)
 
18189
  version_type=linux
 
18190
  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 
18191
  soname_spec='${libname}${release}${shared_ext}$major'
 
18192
  shlibpath_var=LD_LIBRARY_PATH
 
18193
  ;;
 
18194
 
 
18195
*)
 
18196
  dynamic_linker=no
 
18197
  ;;
 
18198
esac
 
18199
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 
18200
echo "${ECHO_T}$dynamic_linker" >&6
 
18201
test "$dynamic_linker" = no && can_build_shared=no
 
18202
 
 
18203
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 
18204
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 
18205
hardcode_action_GCJ=
 
18206
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
 
18207
   test -n "$runpath_var GCJ" || \
 
18208
   test "X$hardcode_automatic_GCJ"="Xyes" ; then
 
18209
 
 
18210
  # We can hardcode non-existant directories.
 
18211
  if test "$hardcode_direct_GCJ" != no &&
 
18212
     # If the only mechanism to avoid hardcoding is shlibpath_var, we
 
18213
     # have to relink, otherwise we might link with an installed library
 
18214
     # when we should be linking with a yet-to-be-installed one
 
18215
     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
 
18216
     test "$hardcode_minus_L_GCJ" != no; then
 
18217
    # Linking always hardcodes the temporary library directory.
 
18218
    hardcode_action_GCJ=relink
 
18219
  else
 
18220
    # We can link without hardcoding, and we can hardcode nonexisting dirs.
 
18221
    hardcode_action_GCJ=immediate
 
18222
  fi
 
18223
else
 
18224
  # We cannot hardcode anything, or else we can only hardcode existing
 
18225
  # directories.
 
18226
  hardcode_action_GCJ=unsupported
 
18227
fi
 
18228
echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
 
18229
echo "${ECHO_T}$hardcode_action_GCJ" >&6
 
18230
 
 
18231
if test "$hardcode_action_GCJ" = relink; then
 
18232
  # Fast installation is not supported
 
18233
  enable_fast_install=no
 
18234
elif test "$shlibpath_overrides_runpath" = yes ||
 
18235
     test "$enable_shared" = no; then
 
18236
  # Fast installation is not necessary
 
18237
  enable_fast_install=needless
 
18238
fi
 
18239
 
 
18240
striplib=
 
18241
old_striplib=
 
18242
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 
18243
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 
18244
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 
18245
  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 
18246
  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 
18247
  echo "$as_me:$LINENO: result: yes" >&5
 
18248
echo "${ECHO_T}yes" >&6
 
18249
else
 
18250
# FIXME - insert some real tests, host_os isn't really good enough
 
18251
  case $host_os in
 
18252
   darwin*)
 
18253
       if test -n "$STRIP" ; then
 
18254
         striplib="$STRIP -x"
 
18255
         echo "$as_me:$LINENO: result: yes" >&5
 
18256
echo "${ECHO_T}yes" >&6
 
18257
       else
 
18258
  echo "$as_me:$LINENO: result: no" >&5
 
18259
echo "${ECHO_T}no" >&6
 
18260
fi
 
18261
       ;;
 
18262
   *)
 
18263
  echo "$as_me:$LINENO: result: no" >&5
 
18264
echo "${ECHO_T}no" >&6
 
18265
    ;;
 
18266
  esac
 
18267
fi
 
18268
 
 
18269
if test "x$enable_dlopen" != xyes; then
 
18270
  enable_dlopen=unknown
 
18271
  enable_dlopen_self=unknown
 
18272
  enable_dlopen_self_static=unknown
 
18273
else
 
18274
  lt_cv_dlopen=no
 
18275
  lt_cv_dlopen_libs=
 
18276
 
 
18277
  case $host_os in
 
18278
  beos*)
 
18279
    lt_cv_dlopen="load_add_on"
 
18280
    lt_cv_dlopen_libs=
 
18281
    lt_cv_dlopen_self=yes
 
18282
    ;;
 
18283
 
 
18284
  mingw* | pw32*)
 
18285
    lt_cv_dlopen="LoadLibrary"
 
18286
    lt_cv_dlopen_libs=
 
18287
   ;;
 
18288
 
 
18289
  cygwin*)
 
18290
    lt_cv_dlopen="dlopen"
 
18291
    lt_cv_dlopen_libs=
 
18292
   ;;
 
18293
 
 
18294
  darwin*)
 
18295
  # if libdl is installed we need to link against it
 
18296
    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18297
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18298
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18300
else
 
18301
  ac_check_lib_save_LIBS=$LIBS
 
18302
LIBS="-ldl  $LIBS"
 
18303
cat >conftest.$ac_ext <<_ACEOF
 
18304
/* confdefs.h.  */
 
18305
_ACEOF
 
18306
cat confdefs.h >>conftest.$ac_ext
 
18307
cat >>conftest.$ac_ext <<_ACEOF
 
18308
/* end confdefs.h.  */
 
18309
 
 
18310
/* Override any gcc2 internal prototype to avoid an error.  */
 
18311
#ifdef __cplusplus
 
18312
extern "C"
 
18313
#endif
 
18314
/* We use char because int might match the return type of a gcc2
 
18315
   builtin and then its argument prototype would still apply.  */
 
18316
char dlopen ();
 
18317
int
 
18318
main ()
 
18319
{
 
18320
dlopen ();
 
18321
  ;
 
18322
  return 0;
 
18323
}
 
18324
_ACEOF
 
18325
rm -f conftest.$ac_objext conftest$ac_exeext
 
18326
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18327
  (eval $ac_link) 2>conftest.er1
 
18328
  ac_status=$?
 
18329
  grep -v '^ *+' conftest.er1 >conftest.err
 
18330
  rm -f conftest.er1
 
18331
  cat conftest.err >&5
 
18332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18333
  (exit $ac_status); } &&
 
18334
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18335
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18336
  (eval $ac_try) 2>&5
 
18337
  ac_status=$?
 
18338
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18339
  (exit $ac_status); }; } &&
 
18340
         { ac_try='test -s conftest$ac_exeext'
 
18341
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18342
  (eval $ac_try) 2>&5
 
18343
  ac_status=$?
 
18344
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18345
  (exit $ac_status); }; }; then
 
18346
  ac_cv_lib_dl_dlopen=yes
 
18347
else
 
18348
  echo "$as_me: failed program was:" >&5
 
18349
sed 's/^/| /' conftest.$ac_ext >&5
 
18350
 
 
18351
ac_cv_lib_dl_dlopen=no
 
18352
fi
 
18353
rm -f conftest.err conftest.$ac_objext \
 
18354
      conftest$ac_exeext conftest.$ac_ext
 
18355
LIBS=$ac_check_lib_save_LIBS
 
18356
fi
 
18357
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18358
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18359
if test $ac_cv_lib_dl_dlopen = yes; then
 
18360
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18361
else
 
18362
 
 
18363
    lt_cv_dlopen="dyld"
 
18364
    lt_cv_dlopen_libs=
 
18365
    lt_cv_dlopen_self=yes
 
18366
 
 
18367
fi
 
18368
 
 
18369
   ;;
 
18370
 
 
18371
  *)
 
18372
    echo "$as_me:$LINENO: checking for shl_load" >&5
 
18373
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 
18374
if test "${ac_cv_func_shl_load+set}" = set; then
 
18375
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18376
else
 
18377
  cat >conftest.$ac_ext <<_ACEOF
 
18378
/* confdefs.h.  */
 
18379
_ACEOF
 
18380
cat confdefs.h >>conftest.$ac_ext
 
18381
cat >>conftest.$ac_ext <<_ACEOF
 
18382
/* end confdefs.h.  */
 
18383
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 
18384
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18385
#define shl_load innocuous_shl_load
 
18386
 
 
18387
/* System header to define __stub macros and hopefully few prototypes,
 
18388
    which can conflict with char shl_load (); below.
 
18389
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18390
    <limits.h> exists even on freestanding compilers.  */
 
18391
 
 
18392
#ifdef __STDC__
 
18393
# include <limits.h>
 
18394
#else
 
18395
# include <assert.h>
 
18396
#endif
 
18397
 
 
18398
#undef shl_load
 
18399
 
 
18400
/* Override any gcc2 internal prototype to avoid an error.  */
 
18401
#ifdef __cplusplus
 
18402
extern "C"
 
18403
{
 
18404
#endif
 
18405
/* We use char because int might match the return type of a gcc2
 
18406
   builtin and then its argument prototype would still apply.  */
 
18407
char shl_load ();
 
18408
/* The GNU C library defines this for functions which it implements
 
18409
    to always fail with ENOSYS.  Some functions are actually named
 
18410
    something starting with __ and the normal name is an alias.  */
 
18411
#if defined (__stub_shl_load) || defined (__stub___shl_load)
 
18412
choke me
 
18413
#else
 
18414
char (*f) () = shl_load;
 
18415
#endif
 
18416
#ifdef __cplusplus
 
18417
}
 
18418
#endif
 
18419
 
 
18420
int
 
18421
main ()
 
18422
{
 
18423
return f != shl_load;
 
18424
  ;
 
18425
  return 0;
 
18426
}
 
18427
_ACEOF
 
18428
rm -f conftest.$ac_objext conftest$ac_exeext
 
18429
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18430
  (eval $ac_link) 2>conftest.er1
 
18431
  ac_status=$?
 
18432
  grep -v '^ *+' conftest.er1 >conftest.err
 
18433
  rm -f conftest.er1
 
18434
  cat conftest.err >&5
 
18435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18436
  (exit $ac_status); } &&
 
18437
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18439
  (eval $ac_try) 2>&5
 
18440
  ac_status=$?
 
18441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18442
  (exit $ac_status); }; } &&
 
18443
         { ac_try='test -s conftest$ac_exeext'
 
18444
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18445
  (eval $ac_try) 2>&5
 
18446
  ac_status=$?
 
18447
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18448
  (exit $ac_status); }; }; then
 
18449
  ac_cv_func_shl_load=yes
 
18450
else
 
18451
  echo "$as_me: failed program was:" >&5
 
18452
sed 's/^/| /' conftest.$ac_ext >&5
 
18453
 
 
18454
ac_cv_func_shl_load=no
 
18455
fi
 
18456
rm -f conftest.err conftest.$ac_objext \
 
18457
      conftest$ac_exeext conftest.$ac_ext
 
18458
fi
 
18459
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 
18460
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 
18461
if test $ac_cv_func_shl_load = yes; then
 
18462
  lt_cv_dlopen="shl_load"
 
18463
else
 
18464
  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 
18465
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 
18466
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 
18467
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18468
else
 
18469
  ac_check_lib_save_LIBS=$LIBS
 
18470
LIBS="-ldld  $LIBS"
 
18471
cat >conftest.$ac_ext <<_ACEOF
 
18472
/* confdefs.h.  */
 
18473
_ACEOF
 
18474
cat confdefs.h >>conftest.$ac_ext
 
18475
cat >>conftest.$ac_ext <<_ACEOF
 
18476
/* end confdefs.h.  */
 
18477
 
 
18478
/* Override any gcc2 internal prototype to avoid an error.  */
 
18479
#ifdef __cplusplus
 
18480
extern "C"
 
18481
#endif
 
18482
/* We use char because int might match the return type of a gcc2
 
18483
   builtin and then its argument prototype would still apply.  */
 
18484
char shl_load ();
 
18485
int
 
18486
main ()
 
18487
{
 
18488
shl_load ();
 
18489
  ;
 
18490
  return 0;
 
18491
}
 
18492
_ACEOF
 
18493
rm -f conftest.$ac_objext conftest$ac_exeext
 
18494
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18495
  (eval $ac_link) 2>conftest.er1
 
18496
  ac_status=$?
 
18497
  grep -v '^ *+' conftest.er1 >conftest.err
 
18498
  rm -f conftest.er1
 
18499
  cat conftest.err >&5
 
18500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18501
  (exit $ac_status); } &&
 
18502
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18504
  (eval $ac_try) 2>&5
 
18505
  ac_status=$?
 
18506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18507
  (exit $ac_status); }; } &&
 
18508
         { ac_try='test -s conftest$ac_exeext'
 
18509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18510
  (eval $ac_try) 2>&5
 
18511
  ac_status=$?
 
18512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18513
  (exit $ac_status); }; }; then
 
18514
  ac_cv_lib_dld_shl_load=yes
 
18515
else
 
18516
  echo "$as_me: failed program was:" >&5
 
18517
sed 's/^/| /' conftest.$ac_ext >&5
 
18518
 
 
18519
ac_cv_lib_dld_shl_load=no
 
18520
fi
 
18521
rm -f conftest.err conftest.$ac_objext \
 
18522
      conftest$ac_exeext conftest.$ac_ext
 
18523
LIBS=$ac_check_lib_save_LIBS
 
18524
fi
 
18525
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 
18526
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 
18527
if test $ac_cv_lib_dld_shl_load = yes; then
 
18528
  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 
18529
else
 
18530
  echo "$as_me:$LINENO: checking for dlopen" >&5
 
18531
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 
18532
if test "${ac_cv_func_dlopen+set}" = set; then
 
18533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18534
else
 
18535
  cat >conftest.$ac_ext <<_ACEOF
 
18536
/* confdefs.h.  */
 
18537
_ACEOF
 
18538
cat confdefs.h >>conftest.$ac_ext
 
18539
cat >>conftest.$ac_ext <<_ACEOF
 
18540
/* end confdefs.h.  */
 
18541
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 
18542
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
18543
#define dlopen innocuous_dlopen
 
18544
 
 
18545
/* System header to define __stub macros and hopefully few prototypes,
 
18546
    which can conflict with char dlopen (); below.
 
18547
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
18548
    <limits.h> exists even on freestanding compilers.  */
 
18549
 
 
18550
#ifdef __STDC__
 
18551
# include <limits.h>
 
18552
#else
 
18553
# include <assert.h>
 
18554
#endif
 
18555
 
 
18556
#undef dlopen
 
18557
 
 
18558
/* Override any gcc2 internal prototype to avoid an error.  */
 
18559
#ifdef __cplusplus
 
18560
extern "C"
 
18561
{
 
18562
#endif
 
18563
/* We use char because int might match the return type of a gcc2
 
18564
   builtin and then its argument prototype would still apply.  */
 
18565
char dlopen ();
 
18566
/* The GNU C library defines this for functions which it implements
 
18567
    to always fail with ENOSYS.  Some functions are actually named
 
18568
    something starting with __ and the normal name is an alias.  */
 
18569
#if defined (__stub_dlopen) || defined (__stub___dlopen)
 
18570
choke me
 
18571
#else
 
18572
char (*f) () = dlopen;
 
18573
#endif
 
18574
#ifdef __cplusplus
 
18575
}
 
18576
#endif
 
18577
 
 
18578
int
 
18579
main ()
 
18580
{
 
18581
return f != dlopen;
 
18582
  ;
 
18583
  return 0;
 
18584
}
 
18585
_ACEOF
 
18586
rm -f conftest.$ac_objext conftest$ac_exeext
 
18587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18588
  (eval $ac_link) 2>conftest.er1
 
18589
  ac_status=$?
 
18590
  grep -v '^ *+' conftest.er1 >conftest.err
 
18591
  rm -f conftest.er1
 
18592
  cat conftest.err >&5
 
18593
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18594
  (exit $ac_status); } &&
 
18595
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18596
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18597
  (eval $ac_try) 2>&5
 
18598
  ac_status=$?
 
18599
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18600
  (exit $ac_status); }; } &&
 
18601
         { ac_try='test -s conftest$ac_exeext'
 
18602
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18603
  (eval $ac_try) 2>&5
 
18604
  ac_status=$?
 
18605
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18606
  (exit $ac_status); }; }; then
 
18607
  ac_cv_func_dlopen=yes
 
18608
else
 
18609
  echo "$as_me: failed program was:" >&5
 
18610
sed 's/^/| /' conftest.$ac_ext >&5
 
18611
 
 
18612
ac_cv_func_dlopen=no
 
18613
fi
 
18614
rm -f conftest.err conftest.$ac_objext \
 
18615
      conftest$ac_exeext conftest.$ac_ext
 
18616
fi
 
18617
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 
18618
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 
18619
if test $ac_cv_func_dlopen = yes; then
 
18620
  lt_cv_dlopen="dlopen"
 
18621
else
 
18622
  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
18623
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
18624
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
18625
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18626
else
 
18627
  ac_check_lib_save_LIBS=$LIBS
 
18628
LIBS="-ldl  $LIBS"
 
18629
cat >conftest.$ac_ext <<_ACEOF
 
18630
/* confdefs.h.  */
 
18631
_ACEOF
 
18632
cat confdefs.h >>conftest.$ac_ext
 
18633
cat >>conftest.$ac_ext <<_ACEOF
 
18634
/* end confdefs.h.  */
 
18635
 
 
18636
/* Override any gcc2 internal prototype to avoid an error.  */
 
18637
#ifdef __cplusplus
 
18638
extern "C"
 
18639
#endif
 
18640
/* We use char because int might match the return type of a gcc2
 
18641
   builtin and then its argument prototype would still apply.  */
 
18642
char dlopen ();
 
18643
int
 
18644
main ()
 
18645
{
 
18646
dlopen ();
 
18647
  ;
 
18648
  return 0;
 
18649
}
 
18650
_ACEOF
 
18651
rm -f conftest.$ac_objext conftest$ac_exeext
 
18652
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18653
  (eval $ac_link) 2>conftest.er1
 
18654
  ac_status=$?
 
18655
  grep -v '^ *+' conftest.er1 >conftest.err
 
18656
  rm -f conftest.er1
 
18657
  cat conftest.err >&5
 
18658
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18659
  (exit $ac_status); } &&
 
18660
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18661
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18662
  (eval $ac_try) 2>&5
 
18663
  ac_status=$?
 
18664
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18665
  (exit $ac_status); }; } &&
 
18666
         { ac_try='test -s conftest$ac_exeext'
 
18667
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18668
  (eval $ac_try) 2>&5
 
18669
  ac_status=$?
 
18670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18671
  (exit $ac_status); }; }; then
 
18672
  ac_cv_lib_dl_dlopen=yes
 
18673
else
 
18674
  echo "$as_me: failed program was:" >&5
 
18675
sed 's/^/| /' conftest.$ac_ext >&5
 
18676
 
 
18677
ac_cv_lib_dl_dlopen=no
 
18678
fi
 
18679
rm -f conftest.err conftest.$ac_objext \
 
18680
      conftest$ac_exeext conftest.$ac_ext
 
18681
LIBS=$ac_check_lib_save_LIBS
 
18682
fi
 
18683
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
18684
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
18685
if test $ac_cv_lib_dl_dlopen = yes; then
 
18686
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 
18687
else
 
18688
  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 
18689
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 
18690
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 
18691
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18692
else
 
18693
  ac_check_lib_save_LIBS=$LIBS
 
18694
LIBS="-lsvld  $LIBS"
 
18695
cat >conftest.$ac_ext <<_ACEOF
 
18696
/* confdefs.h.  */
 
18697
_ACEOF
 
18698
cat confdefs.h >>conftest.$ac_ext
 
18699
cat >>conftest.$ac_ext <<_ACEOF
 
18700
/* end confdefs.h.  */
 
18701
 
 
18702
/* Override any gcc2 internal prototype to avoid an error.  */
 
18703
#ifdef __cplusplus
 
18704
extern "C"
 
18705
#endif
 
18706
/* We use char because int might match the return type of a gcc2
 
18707
   builtin and then its argument prototype would still apply.  */
 
18708
char dlopen ();
 
18709
int
 
18710
main ()
 
18711
{
 
18712
dlopen ();
 
18713
  ;
 
18714
  return 0;
 
18715
}
 
18716
_ACEOF
 
18717
rm -f conftest.$ac_objext conftest$ac_exeext
 
18718
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18719
  (eval $ac_link) 2>conftest.er1
 
18720
  ac_status=$?
 
18721
  grep -v '^ *+' conftest.er1 >conftest.err
 
18722
  rm -f conftest.er1
 
18723
  cat conftest.err >&5
 
18724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18725
  (exit $ac_status); } &&
 
18726
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18727
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18728
  (eval $ac_try) 2>&5
 
18729
  ac_status=$?
 
18730
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18731
  (exit $ac_status); }; } &&
 
18732
         { ac_try='test -s conftest$ac_exeext'
 
18733
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18734
  (eval $ac_try) 2>&5
 
18735
  ac_status=$?
 
18736
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18737
  (exit $ac_status); }; }; then
 
18738
  ac_cv_lib_svld_dlopen=yes
 
18739
else
 
18740
  echo "$as_me: failed program was:" >&5
 
18741
sed 's/^/| /' conftest.$ac_ext >&5
 
18742
 
 
18743
ac_cv_lib_svld_dlopen=no
 
18744
fi
 
18745
rm -f conftest.err conftest.$ac_objext \
 
18746
      conftest$ac_exeext conftest.$ac_ext
 
18747
LIBS=$ac_check_lib_save_LIBS
 
18748
fi
 
18749
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 
18750
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 
18751
if test $ac_cv_lib_svld_dlopen = yes; then
 
18752
  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 
18753
else
 
18754
  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 
18755
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 
18756
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 
18757
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18758
else
 
18759
  ac_check_lib_save_LIBS=$LIBS
 
18760
LIBS="-ldld  $LIBS"
 
18761
cat >conftest.$ac_ext <<_ACEOF
 
18762
/* confdefs.h.  */
 
18763
_ACEOF
 
18764
cat confdefs.h >>conftest.$ac_ext
 
18765
cat >>conftest.$ac_ext <<_ACEOF
 
18766
/* end confdefs.h.  */
 
18767
 
 
18768
/* Override any gcc2 internal prototype to avoid an error.  */
 
18769
#ifdef __cplusplus
 
18770
extern "C"
 
18771
#endif
 
18772
/* We use char because int might match the return type of a gcc2
 
18773
   builtin and then its argument prototype would still apply.  */
 
18774
char dld_link ();
 
18775
int
 
18776
main ()
 
18777
{
 
18778
dld_link ();
 
18779
  ;
 
18780
  return 0;
 
18781
}
 
18782
_ACEOF
 
18783
rm -f conftest.$ac_objext conftest$ac_exeext
 
18784
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18785
  (eval $ac_link) 2>conftest.er1
 
18786
  ac_status=$?
 
18787
  grep -v '^ *+' conftest.er1 >conftest.err
 
18788
  rm -f conftest.er1
 
18789
  cat conftest.err >&5
 
18790
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18791
  (exit $ac_status); } &&
 
18792
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
18793
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18794
  (eval $ac_try) 2>&5
 
18795
  ac_status=$?
 
18796
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18797
  (exit $ac_status); }; } &&
 
18798
         { ac_try='test -s conftest$ac_exeext'
 
18799
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
18800
  (eval $ac_try) 2>&5
 
18801
  ac_status=$?
 
18802
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18803
  (exit $ac_status); }; }; then
 
18804
  ac_cv_lib_dld_dld_link=yes
 
18805
else
 
18806
  echo "$as_me: failed program was:" >&5
 
18807
sed 's/^/| /' conftest.$ac_ext >&5
 
18808
 
 
18809
ac_cv_lib_dld_dld_link=no
 
18810
fi
 
18811
rm -f conftest.err conftest.$ac_objext \
 
18812
      conftest$ac_exeext conftest.$ac_ext
 
18813
LIBS=$ac_check_lib_save_LIBS
 
18814
fi
 
18815
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 
18816
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 
18817
if test $ac_cv_lib_dld_dld_link = yes; then
 
18818
  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 
18819
fi
 
18820
 
 
18821
 
 
18822
fi
 
18823
 
 
18824
 
 
18825
fi
 
18826
 
 
18827
 
 
18828
fi
 
18829
 
 
18830
 
 
18831
fi
 
18832
 
 
18833
 
 
18834
fi
 
18835
 
 
18836
    ;;
 
18837
  esac
 
18838
 
 
18839
  if test "x$lt_cv_dlopen" != xno; then
 
18840
    enable_dlopen=yes
 
18841
  else
 
18842
    enable_dlopen=no
 
18843
  fi
 
18844
 
 
18845
  case $lt_cv_dlopen in
 
18846
  dlopen)
 
18847
    save_CPPFLAGS="$CPPFLAGS"
 
18848
    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 
18849
 
 
18850
    save_LDFLAGS="$LDFLAGS"
 
18851
    eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 
18852
 
 
18853
    save_LIBS="$LIBS"
 
18854
    LIBS="$lt_cv_dlopen_libs $LIBS"
 
18855
 
 
18856
    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 
18857
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 
18858
if test "${lt_cv_dlopen_self+set}" = set; then
 
18859
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18860
else
 
18861
          if test "$cross_compiling" = yes; then :
 
18862
  lt_cv_dlopen_self=cross
 
18863
else
 
18864
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18865
  lt_status=$lt_dlunknown
 
18866
  cat > conftest.$ac_ext <<EOF
 
18867
#line 18867 "configure"
 
18868
#include "confdefs.h"
 
18869
 
 
18870
#if HAVE_DLFCN_H
 
18871
#include <dlfcn.h>
 
18872
#endif
 
18873
 
 
18874
#include <stdio.h>
 
18875
 
 
18876
#ifdef RTLD_GLOBAL
 
18877
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18878
#else
 
18879
#  ifdef DL_GLOBAL
 
18880
#    define LT_DLGLOBAL         DL_GLOBAL
 
18881
#  else
 
18882
#    define LT_DLGLOBAL         0
 
18883
#  endif
 
18884
#endif
 
18885
 
 
18886
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18887
   find out it does not work in some platform. */
 
18888
#ifndef LT_DLLAZY_OR_NOW
 
18889
#  ifdef RTLD_LAZY
 
18890
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18891
#  else
 
18892
#    ifdef DL_LAZY
 
18893
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18894
#    else
 
18895
#      ifdef RTLD_NOW
 
18896
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18897
#      else
 
18898
#        ifdef DL_NOW
 
18899
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18900
#        else
 
18901
#          define LT_DLLAZY_OR_NOW      0
 
18902
#        endif
 
18903
#      endif
 
18904
#    endif
 
18905
#  endif
 
18906
#endif
 
18907
 
 
18908
#ifdef __cplusplus
 
18909
extern "C" void exit (int);
 
18910
#endif
 
18911
 
 
18912
void fnord() { int i=42;}
 
18913
int main ()
 
18914
{
 
18915
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
18916
  int status = $lt_dlunknown;
 
18917
 
 
18918
  if (self)
 
18919
    {
 
18920
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
18921
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
18922
      /* dlclose (self); */
 
18923
    }
 
18924
 
 
18925
    exit (status);
 
18926
}
 
18927
EOF
 
18928
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
18929
  (eval $ac_link) 2>&5
 
18930
  ac_status=$?
 
18931
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
18932
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
18933
    (./conftest; exit; ) 2>/dev/null
 
18934
    lt_status=$?
 
18935
    case x$lt_status in
 
18936
      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 
18937
      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 
18938
      x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 
18939
    esac
 
18940
  else :
 
18941
    # compilation failed
 
18942
    lt_cv_dlopen_self=no
 
18943
  fi
 
18944
fi
 
18945
rm -fr conftest*
 
18946
 
 
18947
 
 
18948
fi
 
18949
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 
18950
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 
18951
 
 
18952
    if test "x$lt_cv_dlopen_self" = xyes; then
 
18953
      LDFLAGS="$LDFLAGS $link_static_flag"
 
18954
      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 
18955
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 
18956
if test "${lt_cv_dlopen_self_static+set}" = set; then
 
18957
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
18958
else
 
18959
          if test "$cross_compiling" = yes; then :
 
18960
  lt_cv_dlopen_self_static=cross
 
18961
else
 
18962
  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 
18963
  lt_status=$lt_dlunknown
 
18964
  cat > conftest.$ac_ext <<EOF
 
18965
#line 18965 "configure"
 
18966
#include "confdefs.h"
 
18967
 
 
18968
#if HAVE_DLFCN_H
 
18969
#include <dlfcn.h>
 
18970
#endif
 
18971
 
 
18972
#include <stdio.h>
 
18973
 
 
18974
#ifdef RTLD_GLOBAL
 
18975
#  define LT_DLGLOBAL           RTLD_GLOBAL
 
18976
#else
 
18977
#  ifdef DL_GLOBAL
 
18978
#    define LT_DLGLOBAL         DL_GLOBAL
 
18979
#  else
 
18980
#    define LT_DLGLOBAL         0
 
18981
#  endif
 
18982
#endif
 
18983
 
 
18984
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 
18985
   find out it does not work in some platform. */
 
18986
#ifndef LT_DLLAZY_OR_NOW
 
18987
#  ifdef RTLD_LAZY
 
18988
#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
 
18989
#  else
 
18990
#    ifdef DL_LAZY
 
18991
#      define LT_DLLAZY_OR_NOW          DL_LAZY
 
18992
#    else
 
18993
#      ifdef RTLD_NOW
 
18994
#        define LT_DLLAZY_OR_NOW        RTLD_NOW
 
18995
#      else
 
18996
#        ifdef DL_NOW
 
18997
#          define LT_DLLAZY_OR_NOW      DL_NOW
 
18998
#        else
 
18999
#          define LT_DLLAZY_OR_NOW      0
 
19000
#        endif
 
19001
#      endif
 
19002
#    endif
 
19003
#  endif
 
19004
#endif
 
19005
 
 
19006
#ifdef __cplusplus
 
19007
extern "C" void exit (int);
 
19008
#endif
 
19009
 
 
19010
void fnord() { int i=42;}
 
19011
int main ()
 
19012
{
 
19013
  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 
19014
  int status = $lt_dlunknown;
 
19015
 
 
19016
  if (self)
 
19017
    {
 
19018
      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 
19019
      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 
19020
      /* dlclose (self); */
 
19021
    }
 
19022
 
 
19023
    exit (status);
 
19024
}
 
19025
EOF
 
19026
  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
19027
  (eval $ac_link) 2>&5
 
19028
  ac_status=$?
 
19029
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
19030
  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 
19031
    (./conftest; exit; ) 2>/dev/null
 
19032
    lt_status=$?
 
19033
    case x$lt_status in
 
19034
      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 
19035
      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 
19036
      x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 
19037
    esac
 
19038
  else :
 
19039
    # compilation failed
 
19040
    lt_cv_dlopen_self_static=no
 
19041
  fi
 
19042
fi
 
19043
rm -fr conftest*
 
19044
 
 
19045
 
 
19046
fi
 
19047
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 
19048
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 
19049
    fi
 
19050
 
 
19051
    CPPFLAGS="$save_CPPFLAGS"
 
19052
    LDFLAGS="$save_LDFLAGS"
 
19053
    LIBS="$save_LIBS"
 
19054
    ;;
 
19055
  esac
 
19056
 
 
19057
  case $lt_cv_dlopen_self in
 
19058
  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 
19059
  *) enable_dlopen_self=unknown ;;
 
19060
  esac
 
19061
 
 
19062
  case $lt_cv_dlopen_self_static in
 
19063
  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 
19064
  *) enable_dlopen_self_static=unknown ;;
 
19065
  esac
 
19066
fi
 
19067
 
 
19068
 
 
19069
# The else clause should only fire when bootstrapping the
 
19070
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19071
# with your package, and you will get complaints that there are
 
19072
# no rules to generate ltmain.sh.
 
19073
if test -f "$ltmain"; then
 
19074
  # See if we are running on zsh, and set the options which allow our commands through
 
19075
  # without removal of \ escapes.
 
19076
  if test -n "${ZSH_VERSION+set}" ; then
 
19077
    setopt NO_GLOB_SUBST
 
19078
  fi
 
19079
  # Now quote all the things that may contain metacharacters while being
 
19080
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19081
  # variables and quote the copies for generation of the libtool script.
 
19082
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19083
    SED SHELL STRIP \
 
19084
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19085
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19086
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19087
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19088
    lt_cv_sys_global_symbol_to_c_name_address \
 
19089
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19090
    old_postinstall_cmds old_postuninstall_cmds \
 
19091
    compiler_GCJ \
 
19092
    CC_GCJ \
 
19093
    LD_GCJ \
 
19094
    lt_prog_compiler_wl_GCJ \
 
19095
    lt_prog_compiler_pic_GCJ \
 
19096
    lt_prog_compiler_static_GCJ \
 
19097
    lt_prog_compiler_no_builtin_flag_GCJ \
 
19098
    export_dynamic_flag_spec_GCJ \
 
19099
    thread_safe_flag_spec_GCJ \
 
19100
    whole_archive_flag_spec_GCJ \
 
19101
    enable_shared_with_static_runtimes_GCJ \
 
19102
    old_archive_cmds_GCJ \
 
19103
    old_archive_from_new_cmds_GCJ \
 
19104
    predep_objects_GCJ \
 
19105
    postdep_objects_GCJ \
 
19106
    predeps_GCJ \
 
19107
    postdeps_GCJ \
 
19108
    compiler_lib_search_path_GCJ \
 
19109
    archive_cmds_GCJ \
 
19110
    archive_expsym_cmds_GCJ \
 
19111
    postinstall_cmds_GCJ \
 
19112
    postuninstall_cmds_GCJ \
 
19113
    old_archive_from_expsyms_cmds_GCJ \
 
19114
    allow_undefined_flag_GCJ \
 
19115
    no_undefined_flag_GCJ \
 
19116
    export_symbols_cmds_GCJ \
 
19117
    hardcode_libdir_flag_spec_GCJ \
 
19118
    hardcode_libdir_flag_spec_ld_GCJ \
 
19119
    hardcode_libdir_separator_GCJ \
 
19120
    hardcode_automatic_GCJ \
 
19121
    module_cmds_GCJ \
 
19122
    module_expsym_cmds_GCJ \
 
19123
    lt_cv_prog_compiler_c_o_GCJ \
 
19124
    exclude_expsyms_GCJ \
 
19125
    include_expsyms_GCJ; do
 
19126
 
 
19127
    case $var in
 
19128
    old_archive_cmds_GCJ | \
 
19129
    old_archive_from_new_cmds_GCJ | \
 
19130
    archive_cmds_GCJ | \
 
19131
    archive_expsym_cmds_GCJ | \
 
19132
    module_cmds_GCJ | \
 
19133
    module_expsym_cmds_GCJ | \
 
19134
    old_archive_from_expsyms_cmds_GCJ | \
 
19135
    export_symbols_cmds_GCJ | \
 
19136
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19137
    postinstall_cmds | postuninstall_cmds | \
 
19138
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19139
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19140
      # Double-quote double-evaled strings.
 
19141
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19142
      ;;
 
19143
    *)
 
19144
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19145
      ;;
 
19146
    esac
 
19147
  done
 
19148
 
 
19149
  case $lt_echo in
 
19150
  *'\$0 --fallback-echo"')
 
19151
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19152
    ;;
 
19153
  esac
 
19154
 
 
19155
cfgfile="$ofile"
 
19156
 
 
19157
  cat <<__EOF__ >> "$cfgfile"
 
19158
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19159
 
 
19160
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19161
 
 
19162
# Shell to use when invoking shell scripts.
 
19163
SHELL=$lt_SHELL
 
19164
 
 
19165
# Whether or not to build shared libraries.
 
19166
build_libtool_libs=$enable_shared
 
19167
 
 
19168
# Whether or not to build static libraries.
 
19169
build_old_libs=$enable_static
 
19170
 
 
19171
# Whether or not to add -lc for building shared libraries.
 
19172
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
 
19173
 
 
19174
# Whether or not to disallow shared libs when runtime libs are static
 
19175
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
 
19176
 
 
19177
# Whether or not to optimize for fast installation.
 
19178
fast_install=$enable_fast_install
 
19179
 
 
19180
# The host system.
 
19181
host_alias=$host_alias
 
19182
host=$host
 
19183
 
 
19184
# An echo program that does not interpret backslashes.
 
19185
echo=$lt_echo
 
19186
 
 
19187
# The archiver.
 
19188
AR=$lt_AR
 
19189
AR_FLAGS=$lt_AR_FLAGS
 
19190
 
 
19191
# A C compiler.
 
19192
LTCC=$lt_LTCC
 
19193
 
 
19194
# A language-specific compiler.
 
19195
CC=$lt_compiler_GCJ
 
19196
 
 
19197
# Is the compiler the GNU C compiler?
 
19198
with_gcc=$GCC_GCJ
 
19199
 
 
19200
# An ERE matcher.
 
19201
EGREP=$lt_EGREP
 
19202
 
 
19203
# The linker used to build libraries.
 
19204
LD=$lt_LD_GCJ
 
19205
 
 
19206
# Whether we need hard or soft links.
 
19207
LN_S=$lt_LN_S
 
19208
 
 
19209
# A BSD-compatible nm program.
 
19210
NM=$lt_NM
 
19211
 
 
19212
# A symbol stripping program
 
19213
STRIP=$lt_STRIP
 
19214
 
 
19215
# Used to examine libraries when file_magic_cmd begins "file"
 
19216
MAGIC_CMD=$MAGIC_CMD
 
19217
 
 
19218
# Used on cygwin: DLL creation program.
 
19219
DLLTOOL="$DLLTOOL"
 
19220
 
 
19221
# Used on cygwin: object dumper.
 
19222
OBJDUMP="$OBJDUMP"
 
19223
 
 
19224
# Used on cygwin: assembler.
 
19225
AS="$AS"
 
19226
 
 
19227
# The name of the directory that contains temporary libtool files.
 
19228
objdir=$objdir
 
19229
 
 
19230
# How to create reloadable object files.
 
19231
reload_flag=$lt_reload_flag
 
19232
reload_cmds=$lt_reload_cmds
 
19233
 
 
19234
# How to pass a linker flag through the compiler.
 
19235
wl=$lt_lt_prog_compiler_wl_GCJ
 
19236
 
 
19237
# Object file suffix (normally "o").
 
19238
objext="$ac_objext"
 
19239
 
 
19240
# Old archive suffix (normally "a").
 
19241
libext="$libext"
 
19242
 
 
19243
# Shared library suffix (normally ".so").
 
19244
shrext='$shrext'
 
19245
 
 
19246
# Executable file suffix (normally "").
 
19247
exeext="$exeext"
 
19248
 
 
19249
# Additional compiler flags for building library objects.
 
19250
pic_flag=$lt_lt_prog_compiler_pic_GCJ
 
19251
pic_mode=$pic_mode
 
19252
 
 
19253
# What is the maximum length of a command?
 
19254
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19255
 
 
19256
# Does compiler simultaneously support -c and -o options?
 
19257
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
 
19258
 
 
19259
# Must we lock files when doing compilation ?
 
19260
need_locks=$lt_need_locks
 
19261
 
 
19262
# Do we need the lib prefix for modules?
 
19263
need_lib_prefix=$need_lib_prefix
 
19264
 
 
19265
# Do we need a version for libraries?
 
19266
need_version=$need_version
 
19267
 
 
19268
# Whether dlopen is supported.
 
19269
dlopen_support=$enable_dlopen
 
19270
 
 
19271
# Whether dlopen of programs is supported.
 
19272
dlopen_self=$enable_dlopen_self
 
19273
 
 
19274
# Whether dlopen of statically linked programs is supported.
 
19275
dlopen_self_static=$enable_dlopen_self_static
 
19276
 
 
19277
# Compiler flag to prevent dynamic linking.
 
19278
link_static_flag=$lt_lt_prog_compiler_static_GCJ
 
19279
 
 
19280
# Compiler flag to turn off builtin functions.
 
19281
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
 
19282
 
 
19283
# Compiler flag to allow reflexive dlopens.
 
19284
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
 
19285
 
 
19286
# Compiler flag to generate shared objects directly from archives.
 
19287
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
 
19288
 
 
19289
# Compiler flag to generate thread-safe objects.
 
19290
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
 
19291
 
 
19292
# Library versioning type.
 
19293
version_type=$version_type
 
19294
 
 
19295
# Format of library name prefix.
 
19296
libname_spec=$lt_libname_spec
 
19297
 
 
19298
# List of archive names.  First name is the real one, the rest are links.
 
19299
# The last name is the one that the linker finds with -lNAME.
 
19300
library_names_spec=$lt_library_names_spec
 
19301
 
 
19302
# The coded name of the library, if different from the real name.
 
19303
soname_spec=$lt_soname_spec
 
19304
 
 
19305
# Commands used to build and install an old-style archive.
 
19306
RANLIB=$lt_RANLIB
 
19307
old_archive_cmds=$lt_old_archive_cmds_GCJ
 
19308
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19309
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19310
 
 
19311
# Create an old-style archive from a shared archive.
 
19312
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
 
19313
 
 
19314
# Create a temporary old-style archive to link instead of a shared archive.
 
19315
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
 
19316
 
 
19317
# Commands used to build and install a shared archive.
 
19318
archive_cmds=$lt_archive_cmds_GCJ
 
19319
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
 
19320
postinstall_cmds=$lt_postinstall_cmds
 
19321
postuninstall_cmds=$lt_postuninstall_cmds
 
19322
 
 
19323
# Commands used to build a loadable module (assumed same as above if empty)
 
19324
module_cmds=$lt_module_cmds_GCJ
 
19325
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
 
19326
 
 
19327
# Commands to strip libraries.
 
19328
old_striplib=$lt_old_striplib
 
19329
striplib=$lt_striplib
 
19330
 
 
19331
# Dependencies to place before the objects being linked to create a
 
19332
# shared library.
 
19333
predep_objects=$lt_predep_objects_GCJ
 
19334
 
 
19335
# Dependencies to place after the objects being linked to create a
 
19336
# shared library.
 
19337
postdep_objects=$lt_postdep_objects_GCJ
 
19338
 
 
19339
# Dependencies to place before the objects being linked to create a
 
19340
# shared library.
 
19341
predeps=$lt_predeps_GCJ
 
19342
 
 
19343
# Dependencies to place after the objects being linked to create a
 
19344
# shared library.
 
19345
postdeps=$lt_postdeps_GCJ
 
19346
 
 
19347
# The library search path used internally by the compiler when linking
 
19348
# a shared library.
 
19349
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
 
19350
 
 
19351
# Method to check whether dependent libraries are shared objects.
 
19352
deplibs_check_method=$lt_deplibs_check_method
 
19353
 
 
19354
# Command to use when deplibs_check_method == file_magic.
 
19355
file_magic_cmd=$lt_file_magic_cmd
 
19356
 
 
19357
# Flag that allows shared libraries with undefined symbols to be built.
 
19358
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
 
19359
 
 
19360
# Flag that forces no undefined symbols.
 
19361
no_undefined_flag=$lt_no_undefined_flag_GCJ
 
19362
 
 
19363
# Commands used to finish a libtool library installation in a directory.
 
19364
finish_cmds=$lt_finish_cmds
 
19365
 
 
19366
# Same as above, but a single script fragment to be evaled but not shown.
 
19367
finish_eval=$lt_finish_eval
 
19368
 
 
19369
# Take the output of nm and produce a listing of raw symbols and C names.
 
19370
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19371
 
 
19372
# Transform the output of nm in a proper C declaration
 
19373
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19374
 
 
19375
# Transform the output of nm in a C name address pair
 
19376
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19377
 
 
19378
# This is the shared library runtime path variable.
 
19379
runpath_var=$runpath_var
 
19380
 
 
19381
# This is the shared library path variable.
 
19382
shlibpath_var=$shlibpath_var
 
19383
 
 
19384
# Is shlibpath searched before the hard-coded library search path?
 
19385
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19386
 
 
19387
# How to hardcode a shared library path into an executable.
 
19388
hardcode_action=$hardcode_action_GCJ
 
19389
 
 
19390
# Whether we should hardcode library paths into libraries.
 
19391
hardcode_into_libs=$hardcode_into_libs
 
19392
 
 
19393
# Flag to hardcode \$libdir into a binary during linking.
 
19394
# This must work even if \$libdir does not exist.
 
19395
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
 
19396
 
 
19397
# If ld is used when linking, flag to hardcode \$libdir into
 
19398
# a binary during linking. This must work even if \$libdir does
 
19399
# not exist.
 
19400
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
 
19401
 
 
19402
# Whether we need a single -rpath flag with a separated argument.
 
19403
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
 
19404
 
 
19405
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19406
# resulting binary.
 
19407
hardcode_direct=$hardcode_direct_GCJ
 
19408
 
 
19409
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19410
# resulting binary.
 
19411
hardcode_minus_L=$hardcode_minus_L_GCJ
 
19412
 
 
19413
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19414
# the resulting binary.
 
19415
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
 
19416
 
 
19417
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19418
# and all subsequent libraries and executables linked against it.
 
19419
hardcode_automatic=$hardcode_automatic_GCJ
 
19420
 
 
19421
# Variables whose values should be saved in libtool wrapper scripts and
 
19422
# restored at relink time.
 
19423
variables_saved_for_relink="$variables_saved_for_relink"
 
19424
 
 
19425
# Whether libtool must link a program against all its dependency libraries.
 
19426
link_all_deplibs=$link_all_deplibs_GCJ
 
19427
 
 
19428
# Compile-time system search path for libraries
 
19429
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19430
 
 
19431
# Run-time system search path for libraries
 
19432
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19433
 
 
19434
# Fix the shell variable \$srcfile for the compiler.
 
19435
fix_srcfile_path="$fix_srcfile_path_GCJ"
 
19436
 
 
19437
# Set to yes if exported symbols are required.
 
19438
always_export_symbols=$always_export_symbols_GCJ
 
19439
 
 
19440
# The commands to list exported symbols.
 
19441
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
 
19442
 
 
19443
# The commands to extract the exported symbol list from a shared archive.
 
19444
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19445
 
 
19446
# Symbols that should not be listed in the preloaded symbols.
 
19447
exclude_expsyms=$lt_exclude_expsyms_GCJ
 
19448
 
 
19449
# Symbols that must always be exported.
 
19450
include_expsyms=$lt_include_expsyms_GCJ
 
19451
 
 
19452
# ### END LIBTOOL TAG CONFIG: $tagname
 
19453
 
 
19454
__EOF__
 
19455
 
 
19456
 
 
19457
else
 
19458
  # If there is no Makefile yet, we rely on a make rule to execute
 
19459
  # `config.status --recheck' to rerun these tests and create the
 
19460
  # libtool script then.
 
19461
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19462
  if test -f "$ltmain_in"; then
 
19463
    test -f Makefile && make "$ltmain"
 
19464
  fi
 
19465
fi
 
19466
 
 
19467
 
 
19468
ac_ext=c
 
19469
ac_cpp='$CPP $CPPFLAGS'
 
19470
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19471
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19472
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19473
 
 
19474
CC="$lt_save_CC"
 
19475
 
 
19476
        else
 
19477
          tagname=""
 
19478
        fi
 
19479
        ;;
 
19480
 
 
19481
      RC)
 
19482
 
 
19483
 
 
19484
 
 
19485
# Source file extension for RC test sources.
 
19486
ac_ext=rc
 
19487
 
 
19488
# Object file extension for compiled RC test sources.
 
19489
objext=o
 
19490
objext_RC=$objext
 
19491
 
 
19492
# Code to be used in simple compile tests
 
19493
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
 
19494
 
 
19495
# Code to be used in simple link tests
 
19496
lt_simple_link_test_code="$lt_simple_compile_test_code"
 
19497
 
 
19498
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
 
19499
 
 
19500
# If no C compiler was specified, use CC.
 
19501
LTCC=${LTCC-"$CC"}
 
19502
 
 
19503
# Allow CC to be a program name with arguments.
 
19504
compiler=$CC
 
19505
 
 
19506
 
 
19507
# Allow CC to be a program name with arguments.
 
19508
lt_save_CC="$CC"
 
19509
CC=${RC-"windres"}
 
19510
compiler=$CC
 
19511
compiler_RC=$CC
 
19512
lt_cv_prog_compiler_c_o_RC=yes
 
19513
 
 
19514
# The else clause should only fire when bootstrapping the
 
19515
# libtool distribution, otherwise you forgot to ship ltmain.sh
 
19516
# with your package, and you will get complaints that there are
 
19517
# no rules to generate ltmain.sh.
 
19518
if test -f "$ltmain"; then
 
19519
  # See if we are running on zsh, and set the options which allow our commands through
 
19520
  # without removal of \ escapes.
 
19521
  if test -n "${ZSH_VERSION+set}" ; then
 
19522
    setopt NO_GLOB_SUBST
 
19523
  fi
 
19524
  # Now quote all the things that may contain metacharacters while being
 
19525
  # careful not to overquote the AC_SUBSTed values.  We take copies of the
 
19526
  # variables and quote the copies for generation of the libtool script.
 
19527
  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 
19528
    SED SHELL STRIP \
 
19529
    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 
19530
    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 
19531
    deplibs_check_method reload_flag reload_cmds need_locks \
 
19532
    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 
19533
    lt_cv_sys_global_symbol_to_c_name_address \
 
19534
    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 
19535
    old_postinstall_cmds old_postuninstall_cmds \
 
19536
    compiler_RC \
 
19537
    CC_RC \
 
19538
    LD_RC \
 
19539
    lt_prog_compiler_wl_RC \
 
19540
    lt_prog_compiler_pic_RC \
 
19541
    lt_prog_compiler_static_RC \
 
19542
    lt_prog_compiler_no_builtin_flag_RC \
 
19543
    export_dynamic_flag_spec_RC \
 
19544
    thread_safe_flag_spec_RC \
 
19545
    whole_archive_flag_spec_RC \
 
19546
    enable_shared_with_static_runtimes_RC \
 
19547
    old_archive_cmds_RC \
 
19548
    old_archive_from_new_cmds_RC \
 
19549
    predep_objects_RC \
 
19550
    postdep_objects_RC \
 
19551
    predeps_RC \
 
19552
    postdeps_RC \
 
19553
    compiler_lib_search_path_RC \
 
19554
    archive_cmds_RC \
 
19555
    archive_expsym_cmds_RC \
 
19556
    postinstall_cmds_RC \
 
19557
    postuninstall_cmds_RC \
 
19558
    old_archive_from_expsyms_cmds_RC \
 
19559
    allow_undefined_flag_RC \
 
19560
    no_undefined_flag_RC \
 
19561
    export_symbols_cmds_RC \
 
19562
    hardcode_libdir_flag_spec_RC \
 
19563
    hardcode_libdir_flag_spec_ld_RC \
 
19564
    hardcode_libdir_separator_RC \
 
19565
    hardcode_automatic_RC \
 
19566
    module_cmds_RC \
 
19567
    module_expsym_cmds_RC \
 
19568
    lt_cv_prog_compiler_c_o_RC \
 
19569
    exclude_expsyms_RC \
 
19570
    include_expsyms_RC; do
 
19571
 
 
19572
    case $var in
 
19573
    old_archive_cmds_RC | \
 
19574
    old_archive_from_new_cmds_RC | \
 
19575
    archive_cmds_RC | \
 
19576
    archive_expsym_cmds_RC | \
 
19577
    module_cmds_RC | \
 
19578
    module_expsym_cmds_RC | \
 
19579
    old_archive_from_expsyms_cmds_RC | \
 
19580
    export_symbols_cmds_RC | \
 
19581
    extract_expsyms_cmds | reload_cmds | finish_cmds | \
 
19582
    postinstall_cmds | postuninstall_cmds | \
 
19583
    old_postinstall_cmds | old_postuninstall_cmds | \
 
19584
    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 
19585
      # Double-quote double-evaled strings.
 
19586
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 
19587
      ;;
 
19588
    *)
 
19589
      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 
19590
      ;;
 
19591
    esac
 
19592
  done
 
19593
 
 
19594
  case $lt_echo in
 
19595
  *'\$0 --fallback-echo"')
 
19596
    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 
19597
    ;;
 
19598
  esac
 
19599
 
 
19600
cfgfile="$ofile"
 
19601
 
 
19602
  cat <<__EOF__ >> "$cfgfile"
 
19603
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
 
19604
 
 
19605
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 
19606
 
 
19607
# Shell to use when invoking shell scripts.
 
19608
SHELL=$lt_SHELL
 
19609
 
 
19610
# Whether or not to build shared libraries.
 
19611
build_libtool_libs=$enable_shared
 
19612
 
 
19613
# Whether or not to build static libraries.
 
19614
build_old_libs=$enable_static
 
19615
 
 
19616
# Whether or not to add -lc for building shared libraries.
 
19617
build_libtool_need_lc=$archive_cmds_need_lc_RC
 
19618
 
 
19619
# Whether or not to disallow shared libs when runtime libs are static
 
19620
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
 
19621
 
 
19622
# Whether or not to optimize for fast installation.
 
19623
fast_install=$enable_fast_install
 
19624
 
 
19625
# The host system.
 
19626
host_alias=$host_alias
 
19627
host=$host
 
19628
 
 
19629
# An echo program that does not interpret backslashes.
 
19630
echo=$lt_echo
 
19631
 
 
19632
# The archiver.
 
19633
AR=$lt_AR
 
19634
AR_FLAGS=$lt_AR_FLAGS
 
19635
 
 
19636
# A C compiler.
 
19637
LTCC=$lt_LTCC
 
19638
 
 
19639
# A language-specific compiler.
 
19640
CC=$lt_compiler_RC
 
19641
 
 
19642
# Is the compiler the GNU C compiler?
 
19643
with_gcc=$GCC_RC
 
19644
 
 
19645
# An ERE matcher.
 
19646
EGREP=$lt_EGREP
 
19647
 
 
19648
# The linker used to build libraries.
 
19649
LD=$lt_LD_RC
 
19650
 
 
19651
# Whether we need hard or soft links.
 
19652
LN_S=$lt_LN_S
 
19653
 
 
19654
# A BSD-compatible nm program.
 
19655
NM=$lt_NM
 
19656
 
 
19657
# A symbol stripping program
 
19658
STRIP=$lt_STRIP
 
19659
 
 
19660
# Used to examine libraries when file_magic_cmd begins "file"
 
19661
MAGIC_CMD=$MAGIC_CMD
 
19662
 
 
19663
# Used on cygwin: DLL creation program.
 
19664
DLLTOOL="$DLLTOOL"
 
19665
 
 
19666
# Used on cygwin: object dumper.
 
19667
OBJDUMP="$OBJDUMP"
 
19668
 
 
19669
# Used on cygwin: assembler.
 
19670
AS="$AS"
 
19671
 
 
19672
# The name of the directory that contains temporary libtool files.
 
19673
objdir=$objdir
 
19674
 
 
19675
# How to create reloadable object files.
 
19676
reload_flag=$lt_reload_flag
 
19677
reload_cmds=$lt_reload_cmds
 
19678
 
 
19679
# How to pass a linker flag through the compiler.
 
19680
wl=$lt_lt_prog_compiler_wl_RC
 
19681
 
 
19682
# Object file suffix (normally "o").
 
19683
objext="$ac_objext"
 
19684
 
 
19685
# Old archive suffix (normally "a").
 
19686
libext="$libext"
 
19687
 
 
19688
# Shared library suffix (normally ".so").
 
19689
shrext='$shrext'
 
19690
 
 
19691
# Executable file suffix (normally "").
 
19692
exeext="$exeext"
 
19693
 
 
19694
# Additional compiler flags for building library objects.
 
19695
pic_flag=$lt_lt_prog_compiler_pic_RC
 
19696
pic_mode=$pic_mode
 
19697
 
 
19698
# What is the maximum length of a command?
 
19699
max_cmd_len=$lt_cv_sys_max_cmd_len
 
19700
 
 
19701
# Does compiler simultaneously support -c and -o options?
 
19702
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
 
19703
 
 
19704
# Must we lock files when doing compilation ?
 
19705
need_locks=$lt_need_locks
 
19706
 
 
19707
# Do we need the lib prefix for modules?
 
19708
need_lib_prefix=$need_lib_prefix
 
19709
 
 
19710
# Do we need a version for libraries?
 
19711
need_version=$need_version
 
19712
 
 
19713
# Whether dlopen is supported.
 
19714
dlopen_support=$enable_dlopen
 
19715
 
 
19716
# Whether dlopen of programs is supported.
 
19717
dlopen_self=$enable_dlopen_self
 
19718
 
 
19719
# Whether dlopen of statically linked programs is supported.
 
19720
dlopen_self_static=$enable_dlopen_self_static
 
19721
 
 
19722
# Compiler flag to prevent dynamic linking.
 
19723
link_static_flag=$lt_lt_prog_compiler_static_RC
 
19724
 
 
19725
# Compiler flag to turn off builtin functions.
 
19726
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
 
19727
 
 
19728
# Compiler flag to allow reflexive dlopens.
 
19729
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
 
19730
 
 
19731
# Compiler flag to generate shared objects directly from archives.
 
19732
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
 
19733
 
 
19734
# Compiler flag to generate thread-safe objects.
 
19735
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
 
19736
 
 
19737
# Library versioning type.
 
19738
version_type=$version_type
 
19739
 
 
19740
# Format of library name prefix.
 
19741
libname_spec=$lt_libname_spec
 
19742
 
 
19743
# List of archive names.  First name is the real one, the rest are links.
 
19744
# The last name is the one that the linker finds with -lNAME.
 
19745
library_names_spec=$lt_library_names_spec
 
19746
 
 
19747
# The coded name of the library, if different from the real name.
 
19748
soname_spec=$lt_soname_spec
 
19749
 
 
19750
# Commands used to build and install an old-style archive.
 
19751
RANLIB=$lt_RANLIB
 
19752
old_archive_cmds=$lt_old_archive_cmds_RC
 
19753
old_postinstall_cmds=$lt_old_postinstall_cmds
 
19754
old_postuninstall_cmds=$lt_old_postuninstall_cmds
 
19755
 
 
19756
# Create an old-style archive from a shared archive.
 
19757
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
 
19758
 
 
19759
# Create a temporary old-style archive to link instead of a shared archive.
 
19760
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
 
19761
 
 
19762
# Commands used to build and install a shared archive.
 
19763
archive_cmds=$lt_archive_cmds_RC
 
19764
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
 
19765
postinstall_cmds=$lt_postinstall_cmds
 
19766
postuninstall_cmds=$lt_postuninstall_cmds
 
19767
 
 
19768
# Commands used to build a loadable module (assumed same as above if empty)
 
19769
module_cmds=$lt_module_cmds_RC
 
19770
module_expsym_cmds=$lt_module_expsym_cmds_RC
 
19771
 
 
19772
# Commands to strip libraries.
 
19773
old_striplib=$lt_old_striplib
 
19774
striplib=$lt_striplib
 
19775
 
 
19776
# Dependencies to place before the objects being linked to create a
 
19777
# shared library.
 
19778
predep_objects=$lt_predep_objects_RC
 
19779
 
 
19780
# Dependencies to place after the objects being linked to create a
 
19781
# shared library.
 
19782
postdep_objects=$lt_postdep_objects_RC
 
19783
 
 
19784
# Dependencies to place before the objects being linked to create a
 
19785
# shared library.
 
19786
predeps=$lt_predeps_RC
 
19787
 
 
19788
# Dependencies to place after the objects being linked to create a
 
19789
# shared library.
 
19790
postdeps=$lt_postdeps_RC
 
19791
 
 
19792
# The library search path used internally by the compiler when linking
 
19793
# a shared library.
 
19794
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
 
19795
 
 
19796
# Method to check whether dependent libraries are shared objects.
 
19797
deplibs_check_method=$lt_deplibs_check_method
 
19798
 
 
19799
# Command to use when deplibs_check_method == file_magic.
 
19800
file_magic_cmd=$lt_file_magic_cmd
 
19801
 
 
19802
# Flag that allows shared libraries with undefined symbols to be built.
 
19803
allow_undefined_flag=$lt_allow_undefined_flag_RC
 
19804
 
 
19805
# Flag that forces no undefined symbols.
 
19806
no_undefined_flag=$lt_no_undefined_flag_RC
 
19807
 
 
19808
# Commands used to finish a libtool library installation in a directory.
 
19809
finish_cmds=$lt_finish_cmds
 
19810
 
 
19811
# Same as above, but a single script fragment to be evaled but not shown.
 
19812
finish_eval=$lt_finish_eval
 
19813
 
 
19814
# Take the output of nm and produce a listing of raw symbols and C names.
 
19815
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 
19816
 
 
19817
# Transform the output of nm in a proper C declaration
 
19818
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 
19819
 
 
19820
# Transform the output of nm in a C name address pair
 
19821
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 
19822
 
 
19823
# This is the shared library runtime path variable.
 
19824
runpath_var=$runpath_var
 
19825
 
 
19826
# This is the shared library path variable.
 
19827
shlibpath_var=$shlibpath_var
 
19828
 
 
19829
# Is shlibpath searched before the hard-coded library search path?
 
19830
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 
19831
 
 
19832
# How to hardcode a shared library path into an executable.
 
19833
hardcode_action=$hardcode_action_RC
 
19834
 
 
19835
# Whether we should hardcode library paths into libraries.
 
19836
hardcode_into_libs=$hardcode_into_libs
 
19837
 
 
19838
# Flag to hardcode \$libdir into a binary during linking.
 
19839
# This must work even if \$libdir does not exist.
 
19840
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
 
19841
 
 
19842
# If ld is used when linking, flag to hardcode \$libdir into
 
19843
# a binary during linking. This must work even if \$libdir does
 
19844
# not exist.
 
19845
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
 
19846
 
 
19847
# Whether we need a single -rpath flag with a separated argument.
 
19848
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
 
19849
 
 
19850
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 
19851
# resulting binary.
 
19852
hardcode_direct=$hardcode_direct_RC
 
19853
 
 
19854
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 
19855
# resulting binary.
 
19856
hardcode_minus_L=$hardcode_minus_L_RC
 
19857
 
 
19858
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 
19859
# the resulting binary.
 
19860
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
 
19861
 
 
19862
# Set to yes if building a shared library automatically hardcodes DIR into the library
 
19863
# and all subsequent libraries and executables linked against it.
 
19864
hardcode_automatic=$hardcode_automatic_RC
 
19865
 
 
19866
# Variables whose values should be saved in libtool wrapper scripts and
 
19867
# restored at relink time.
 
19868
variables_saved_for_relink="$variables_saved_for_relink"
 
19869
 
 
19870
# Whether libtool must link a program against all its dependency libraries.
 
19871
link_all_deplibs=$link_all_deplibs_RC
 
19872
 
 
19873
# Compile-time system search path for libraries
 
19874
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 
19875
 
 
19876
# Run-time system search path for libraries
 
19877
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 
19878
 
 
19879
# Fix the shell variable \$srcfile for the compiler.
 
19880
fix_srcfile_path="$fix_srcfile_path_RC"
 
19881
 
 
19882
# Set to yes if exported symbols are required.
 
19883
always_export_symbols=$always_export_symbols_RC
 
19884
 
 
19885
# The commands to list exported symbols.
 
19886
export_symbols_cmds=$lt_export_symbols_cmds_RC
 
19887
 
 
19888
# The commands to extract the exported symbol list from a shared archive.
 
19889
extract_expsyms_cmds=$lt_extract_expsyms_cmds
 
19890
 
 
19891
# Symbols that should not be listed in the preloaded symbols.
 
19892
exclude_expsyms=$lt_exclude_expsyms_RC
 
19893
 
 
19894
# Symbols that must always be exported.
 
19895
include_expsyms=$lt_include_expsyms_RC
 
19896
 
 
19897
# ### END LIBTOOL TAG CONFIG: $tagname
 
19898
 
 
19899
__EOF__
 
19900
 
 
19901
 
 
19902
else
 
19903
  # If there is no Makefile yet, we rely on a make rule to execute
 
19904
  # `config.status --recheck' to rerun these tests and create the
 
19905
  # libtool script then.
 
19906
  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 
19907
  if test -f "$ltmain_in"; then
 
19908
    test -f Makefile && make "$ltmain"
 
19909
  fi
 
19910
fi
 
19911
 
 
19912
 
 
19913
ac_ext=c
 
19914
ac_cpp='$CPP $CPPFLAGS'
 
19915
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
19916
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
19917
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
19918
 
 
19919
CC="$lt_save_CC"
 
19920
 
 
19921
        ;;
 
19922
 
 
19923
      *)
 
19924
        { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
 
19925
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
 
19926
   { (exit 1); exit 1; }; }
 
19927
        ;;
 
19928
      esac
 
19929
 
 
19930
      # Append the new tag name to the list of available tags.
 
19931
      if test -n "$tagname" ; then
 
19932
      available_tags="$available_tags $tagname"
 
19933
    fi
 
19934
    fi
 
19935
  done
 
19936
  IFS="$lt_save_ifs"
 
19937
 
 
19938
  # Now substitute the updated list of available tags.
 
19939
  if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
 
19940
    mv "${ofile}T" "$ofile"
 
19941
    chmod +x "$ofile"
 
19942
  else
 
19943
    rm -f "${ofile}T"
 
19944
    { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
 
19945
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
 
19946
   { (exit 1); exit 1; }; }
 
19947
  fi
 
19948
fi
 
19949
 
 
19950
 
 
19951
 
 
19952
# This can be used to rebuild libtool when needed
 
19953
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
 
19954
 
 
19955
# Always use our own libtool.
 
19956
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
 
19957
 
 
19958
# Prevent multiple expansion
 
19959
 
 
19960
 
 
19961
 
 
19962
 
 
19963
 
 
19964
 
 
19965
 
 
19966
 
 
19967
 
 
19968
 
 
19969
 
 
19970
 
 
19971
 
 
19972
 
 
19973
 
 
19974
 
 
19975
 
 
19976
 
 
19977
 
 
19978
 
 
19979
 
 
19980
# Check whether --enable-shared or --disable-shared was given.
 
19981
if test "${enable_shared+set}" = set; then
 
19982
  enableval="$enable_shared"
 
19983
  p=${PACKAGE-default}
 
19984
    case $enableval in
 
19985
    yes) enable_shared=yes ;;
 
19986
    no) enable_shared=no ;;
 
19987
    *)
 
19988
      enable_shared=no
 
19989
      # Look at the argument we got.  We use all the common list separators.
 
19990
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
19991
      for pkg in $enableval; do
 
19992
        IFS="$lt_save_ifs"
 
19993
        if test "X$pkg" = "X$p"; then
 
19994
          enable_shared=yes
 
19995
        fi
 
19996
      done
 
19997
      IFS="$lt_save_ifs"
 
19998
      ;;
 
19999
    esac
 
20000
else
 
20001
  enable_shared=yes
 
20002
fi;
 
20003
 
 
20004
# Check whether --enable-static or --disable-static was given.
 
20005
if test "${enable_static+set}" = set; then
 
20006
  enableval="$enable_static"
 
20007
  p=${PACKAGE-default}
 
20008
    case $enableval in
 
20009
    yes) enable_static=yes ;;
 
20010
    no) enable_static=no ;;
 
20011
    *)
 
20012
     enable_static=no
 
20013
      # Look at the argument we got.  We use all the common list separators.
 
20014
      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 
20015
      for pkg in $enableval; do
 
20016
        IFS="$lt_save_ifs"
 
20017
        if test "X$pkg" = "X$p"; then
 
20018
          enable_static=yes
 
20019
        fi
 
20020
      done
 
20021
      IFS="$lt_save_ifs"
 
20022
      ;;
 
20023
    esac
 
20024
else
 
20025
  enable_static=no
 
20026
fi;
 
20027
 
 
20028
ALL_LINGUAS="fr it de ja es pl"
 
20029
GETTEXT_PACKAGE=linphone
 
20030
 
 
20031
 
 
20032
cat >>confdefs.h <<_ACEOF
 
20033
#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
 
20034
_ACEOF
 
20035
 
 
20036
 
 
20037
 
 
20038
for ac_header in locale.h
 
20039
do
 
20040
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
20041
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20042
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20043
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20044
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20046
fi
 
20047
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20048
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20049
else
 
20050
  # Is the header compilable?
 
20051
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
20052
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
20053
cat >conftest.$ac_ext <<_ACEOF
 
20054
/* confdefs.h.  */
 
20055
_ACEOF
 
20056
cat confdefs.h >>conftest.$ac_ext
 
20057
cat >>conftest.$ac_ext <<_ACEOF
 
20058
/* end confdefs.h.  */
 
20059
$ac_includes_default
 
20060
#include <$ac_header>
 
20061
_ACEOF
 
20062
rm -f conftest.$ac_objext
 
20063
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20064
  (eval $ac_compile) 2>conftest.er1
 
20065
  ac_status=$?
 
20066
  grep -v '^ *+' conftest.er1 >conftest.err
 
20067
  rm -f conftest.er1
 
20068
  cat conftest.err >&5
 
20069
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20070
  (exit $ac_status); } &&
 
20071
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20072
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20073
  (eval $ac_try) 2>&5
 
20074
  ac_status=$?
 
20075
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20076
  (exit $ac_status); }; } &&
 
20077
         { ac_try='test -s conftest.$ac_objext'
 
20078
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20079
  (eval $ac_try) 2>&5
 
20080
  ac_status=$?
 
20081
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20082
  (exit $ac_status); }; }; then
 
20083
  ac_header_compiler=yes
 
20084
else
 
20085
  echo "$as_me: failed program was:" >&5
 
20086
sed 's/^/| /' conftest.$ac_ext >&5
 
20087
 
 
20088
ac_header_compiler=no
 
20089
fi
 
20090
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20091
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20092
echo "${ECHO_T}$ac_header_compiler" >&6
 
20093
 
 
20094
# Is the header present?
 
20095
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
20096
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
20097
cat >conftest.$ac_ext <<_ACEOF
 
20098
/* confdefs.h.  */
 
20099
_ACEOF
 
20100
cat confdefs.h >>conftest.$ac_ext
 
20101
cat >>conftest.$ac_ext <<_ACEOF
 
20102
/* end confdefs.h.  */
 
20103
#include <$ac_header>
 
20104
_ACEOF
 
20105
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20106
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20107
  ac_status=$?
 
20108
  grep -v '^ *+' conftest.er1 >conftest.err
 
20109
  rm -f conftest.er1
 
20110
  cat conftest.err >&5
 
20111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20112
  (exit $ac_status); } >/dev/null; then
 
20113
  if test -s conftest.err; then
 
20114
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20115
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20116
  else
 
20117
    ac_cpp_err=
 
20118
  fi
 
20119
else
 
20120
  ac_cpp_err=yes
 
20121
fi
 
20122
if test -z "$ac_cpp_err"; then
 
20123
  ac_header_preproc=yes
 
20124
else
 
20125
  echo "$as_me: failed program was:" >&5
 
20126
sed 's/^/| /' conftest.$ac_ext >&5
 
20127
 
 
20128
  ac_header_preproc=no
 
20129
fi
 
20130
rm -f conftest.err conftest.$ac_ext
 
20131
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20132
echo "${ECHO_T}$ac_header_preproc" >&6
 
20133
 
 
20134
# So?  What about this header?
 
20135
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20136
  yes:no: )
 
20137
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
20138
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20139
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
20140
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
20141
    ac_header_preproc=yes
 
20142
    ;;
 
20143
  no:yes:* )
 
20144
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
20145
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
20146
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
20147
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
20148
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
20149
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
20150
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
20151
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20152
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
20153
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
20154
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
20155
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
20156
    (
 
20157
      cat <<\_ASBOX
 
20158
## ------------------------------------------ ##
 
20159
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20160
## ------------------------------------------ ##
 
20161
_ASBOX
 
20162
    ) |
 
20163
      sed "s/^/$as_me: WARNING:     /" >&2
 
20164
    ;;
 
20165
esac
 
20166
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
20167
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
20168
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
20169
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20170
else
 
20171
  eval "$as_ac_Header=\$ac_header_preproc"
 
20172
fi
 
20173
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
20174
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
20175
 
 
20176
fi
 
20177
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
20178
  cat >>confdefs.h <<_ACEOF
 
20179
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
20180
_ACEOF
 
20181
 
 
20182
fi
 
20183
 
 
20184
done
 
20185
 
 
20186
    if test $ac_cv_header_locale_h = yes; then
 
20187
    echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
 
20188
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
 
20189
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
 
20190
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20191
else
 
20192
  cat >conftest.$ac_ext <<_ACEOF
 
20193
/* confdefs.h.  */
 
20194
_ACEOF
 
20195
cat confdefs.h >>conftest.$ac_ext
 
20196
cat >>conftest.$ac_ext <<_ACEOF
 
20197
/* end confdefs.h.  */
 
20198
#include <locale.h>
 
20199
int
 
20200
main ()
 
20201
{
 
20202
return LC_MESSAGES
 
20203
  ;
 
20204
  return 0;
 
20205
}
 
20206
_ACEOF
 
20207
rm -f conftest.$ac_objext conftest$ac_exeext
 
20208
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20209
  (eval $ac_link) 2>conftest.er1
 
20210
  ac_status=$?
 
20211
  grep -v '^ *+' conftest.er1 >conftest.err
 
20212
  rm -f conftest.er1
 
20213
  cat conftest.err >&5
 
20214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20215
  (exit $ac_status); } &&
 
20216
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20217
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20218
  (eval $ac_try) 2>&5
 
20219
  ac_status=$?
 
20220
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20221
  (exit $ac_status); }; } &&
 
20222
         { ac_try='test -s conftest$ac_exeext'
 
20223
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20224
  (eval $ac_try) 2>&5
 
20225
  ac_status=$?
 
20226
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20227
  (exit $ac_status); }; }; then
 
20228
  am_cv_val_LC_MESSAGES=yes
 
20229
else
 
20230
  echo "$as_me: failed program was:" >&5
 
20231
sed 's/^/| /' conftest.$ac_ext >&5
 
20232
 
 
20233
am_cv_val_LC_MESSAGES=no
 
20234
fi
 
20235
rm -f conftest.err conftest.$ac_objext \
 
20236
      conftest$ac_exeext conftest.$ac_ext
 
20237
fi
 
20238
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
 
20239
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
 
20240
    if test $am_cv_val_LC_MESSAGES = yes; then
 
20241
 
 
20242
cat >>confdefs.h <<\_ACEOF
 
20243
#define HAVE_LC_MESSAGES 1
 
20244
_ACEOF
 
20245
 
 
20246
    fi
 
20247
  fi
 
20248
     USE_NLS=yes
 
20249
 
 
20250
 
 
20251
    gt_cv_have_gettext=no
 
20252
 
 
20253
    CATOBJEXT=NONE
 
20254
    XGETTEXT=:
 
20255
    INTLLIBS=
 
20256
 
 
20257
    if test "${ac_cv_header_libintl_h+set}" = set; then
 
20258
  echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20259
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20260
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20261
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20262
fi
 
20263
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20264
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20265
else
 
20266
  # Is the header compilable?
 
20267
echo "$as_me:$LINENO: checking libintl.h usability" >&5
 
20268
echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6
 
20269
cat >conftest.$ac_ext <<_ACEOF
 
20270
/* confdefs.h.  */
 
20271
_ACEOF
 
20272
cat confdefs.h >>conftest.$ac_ext
 
20273
cat >>conftest.$ac_ext <<_ACEOF
 
20274
/* end confdefs.h.  */
 
20275
$ac_includes_default
 
20276
#include <libintl.h>
 
20277
_ACEOF
 
20278
rm -f conftest.$ac_objext
 
20279
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
20280
  (eval $ac_compile) 2>conftest.er1
 
20281
  ac_status=$?
 
20282
  grep -v '^ *+' conftest.er1 >conftest.err
 
20283
  rm -f conftest.er1
 
20284
  cat conftest.err >&5
 
20285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20286
  (exit $ac_status); } &&
 
20287
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20288
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20289
  (eval $ac_try) 2>&5
 
20290
  ac_status=$?
 
20291
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20292
  (exit $ac_status); }; } &&
 
20293
         { ac_try='test -s conftest.$ac_objext'
 
20294
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20295
  (eval $ac_try) 2>&5
 
20296
  ac_status=$?
 
20297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20298
  (exit $ac_status); }; }; then
 
20299
  ac_header_compiler=yes
 
20300
else
 
20301
  echo "$as_me: failed program was:" >&5
 
20302
sed 's/^/| /' conftest.$ac_ext >&5
 
20303
 
 
20304
ac_header_compiler=no
 
20305
fi
 
20306
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
20307
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
20308
echo "${ECHO_T}$ac_header_compiler" >&6
 
20309
 
 
20310
# Is the header present?
 
20311
echo "$as_me:$LINENO: checking libintl.h presence" >&5
 
20312
echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6
 
20313
cat >conftest.$ac_ext <<_ACEOF
 
20314
/* confdefs.h.  */
 
20315
_ACEOF
 
20316
cat confdefs.h >>conftest.$ac_ext
 
20317
cat >>conftest.$ac_ext <<_ACEOF
 
20318
/* end confdefs.h.  */
 
20319
#include <libintl.h>
 
20320
_ACEOF
 
20321
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
20322
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
20323
  ac_status=$?
 
20324
  grep -v '^ *+' conftest.er1 >conftest.err
 
20325
  rm -f conftest.er1
 
20326
  cat conftest.err >&5
 
20327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20328
  (exit $ac_status); } >/dev/null; then
 
20329
  if test -s conftest.err; then
 
20330
    ac_cpp_err=$ac_c_preproc_warn_flag
 
20331
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
20332
  else
 
20333
    ac_cpp_err=
 
20334
  fi
 
20335
else
 
20336
  ac_cpp_err=yes
 
20337
fi
 
20338
if test -z "$ac_cpp_err"; then
 
20339
  ac_header_preproc=yes
 
20340
else
 
20341
  echo "$as_me: failed program was:" >&5
 
20342
sed 's/^/| /' conftest.$ac_ext >&5
 
20343
 
 
20344
  ac_header_preproc=no
 
20345
fi
 
20346
rm -f conftest.err conftest.$ac_ext
 
20347
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
20348
echo "${ECHO_T}$ac_header_preproc" >&6
 
20349
 
 
20350
# So?  What about this header?
 
20351
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
20352
  yes:no: )
 
20353
    { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5
 
20354
echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
20355
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5
 
20356
echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;}
 
20357
    ac_header_preproc=yes
 
20358
    ;;
 
20359
  no:yes:* )
 
20360
    { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5
 
20361
echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;}
 
20362
    { echo "$as_me:$LINENO: WARNING: libintl.h:     check for missing prerequisite headers?" >&5
 
20363
echo "$as_me: WARNING: libintl.h:     check for missing prerequisite headers?" >&2;}
 
20364
    { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5
 
20365
echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;}
 
20366
    { echo "$as_me:$LINENO: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&5
 
20367
echo "$as_me: WARNING: libintl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
 
20368
    { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5
 
20369
echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;}
 
20370
    { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5
 
20371
echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;}
 
20372
    (
 
20373
      cat <<\_ASBOX
 
20374
## ------------------------------------------ ##
 
20375
## Report this to the AC_PACKAGE_NAME lists.  ##
 
20376
## ------------------------------------------ ##
 
20377
_ASBOX
 
20378
    ) |
 
20379
      sed "s/^/$as_me: WARNING:     /" >&2
 
20380
    ;;
 
20381
esac
 
20382
echo "$as_me:$LINENO: checking for libintl.h" >&5
 
20383
echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6
 
20384
if test "${ac_cv_header_libintl_h+set}" = set; then
 
20385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20386
else
 
20387
  ac_cv_header_libintl_h=$ac_header_preproc
 
20388
fi
 
20389
echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5
 
20390
echo "${ECHO_T}$ac_cv_header_libintl_h" >&6
 
20391
 
 
20392
fi
 
20393
if test $ac_cv_header_libintl_h = yes; then
 
20394
  gt_cv_func_dgettext_libintl="no"
 
20395
      libintl_extra_libs=""
 
20396
 
 
20397
      #
 
20398
      # First check in libc
 
20399
      #
 
20400
      echo "$as_me:$LINENO: checking for dgettext in libc" >&5
 
20401
echo $ECHO_N "checking for dgettext in libc... $ECHO_C" >&6
 
20402
if test "${gt_cv_func_dgettext_libc+set}" = set; then
 
20403
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20404
else
 
20405
  cat >conftest.$ac_ext <<_ACEOF
 
20406
/* confdefs.h.  */
 
20407
_ACEOF
 
20408
cat confdefs.h >>conftest.$ac_ext
 
20409
cat >>conftest.$ac_ext <<_ACEOF
 
20410
/* end confdefs.h.  */
 
20411
 
 
20412
#include <libintl.h>
 
20413
 
 
20414
int
 
20415
main ()
 
20416
{
 
20417
return (int) dgettext ("","")
 
20418
  ;
 
20419
  return 0;
 
20420
}
 
20421
_ACEOF
 
20422
rm -f conftest.$ac_objext conftest$ac_exeext
 
20423
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20424
  (eval $ac_link) 2>conftest.er1
 
20425
  ac_status=$?
 
20426
  grep -v '^ *+' conftest.er1 >conftest.err
 
20427
  rm -f conftest.er1
 
20428
  cat conftest.err >&5
 
20429
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20430
  (exit $ac_status); } &&
 
20431
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20432
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20433
  (eval $ac_try) 2>&5
 
20434
  ac_status=$?
 
20435
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20436
  (exit $ac_status); }; } &&
 
20437
         { ac_try='test -s conftest$ac_exeext'
 
20438
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20439
  (eval $ac_try) 2>&5
 
20440
  ac_status=$?
 
20441
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20442
  (exit $ac_status); }; }; then
 
20443
  gt_cv_func_dgettext_libc=yes
 
20444
else
 
20445
  echo "$as_me: failed program was:" >&5
 
20446
sed 's/^/| /' conftest.$ac_ext >&5
 
20447
 
 
20448
gt_cv_func_dgettext_libc=no
 
20449
fi
 
20450
rm -f conftest.err conftest.$ac_objext \
 
20451
      conftest$ac_exeext conftest.$ac_ext
 
20452
 
 
20453
fi
 
20454
echo "$as_me:$LINENO: result: $gt_cv_func_dgettext_libc" >&5
 
20455
echo "${ECHO_T}$gt_cv_func_dgettext_libc" >&6
 
20456
 
 
20457
      if test "$gt_cv_func_dgettext_libc" = "yes" ; then
 
20458
 
 
20459
for ac_func in bind_textdomain_codeset
 
20460
do
 
20461
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20462
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20463
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20464
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20465
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20466
else
 
20467
  cat >conftest.$ac_ext <<_ACEOF
 
20468
/* confdefs.h.  */
 
20469
_ACEOF
 
20470
cat confdefs.h >>conftest.$ac_ext
 
20471
cat >>conftest.$ac_ext <<_ACEOF
 
20472
/* end confdefs.h.  */
 
20473
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20474
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20475
#define $ac_func innocuous_$ac_func
 
20476
 
 
20477
/* System header to define __stub macros and hopefully few prototypes,
 
20478
    which can conflict with char $ac_func (); below.
 
20479
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20480
    <limits.h> exists even on freestanding compilers.  */
 
20481
 
 
20482
#ifdef __STDC__
 
20483
# include <limits.h>
 
20484
#else
 
20485
# include <assert.h>
 
20486
#endif
 
20487
 
 
20488
#undef $ac_func
 
20489
 
 
20490
/* Override any gcc2 internal prototype to avoid an error.  */
 
20491
#ifdef __cplusplus
 
20492
extern "C"
 
20493
{
 
20494
#endif
 
20495
/* We use char because int might match the return type of a gcc2
 
20496
   builtin and then its argument prototype would still apply.  */
 
20497
char $ac_func ();
 
20498
/* The GNU C library defines this for functions which it implements
 
20499
    to always fail with ENOSYS.  Some functions are actually named
 
20500
    something starting with __ and the normal name is an alias.  */
 
20501
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20502
choke me
 
20503
#else
 
20504
char (*f) () = $ac_func;
 
20505
#endif
 
20506
#ifdef __cplusplus
 
20507
}
 
20508
#endif
 
20509
 
 
20510
int
 
20511
main ()
 
20512
{
 
20513
return f != $ac_func;
 
20514
  ;
 
20515
  return 0;
 
20516
}
 
20517
_ACEOF
 
20518
rm -f conftest.$ac_objext conftest$ac_exeext
 
20519
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20520
  (eval $ac_link) 2>conftest.er1
 
20521
  ac_status=$?
 
20522
  grep -v '^ *+' conftest.er1 >conftest.err
 
20523
  rm -f conftest.er1
 
20524
  cat conftest.err >&5
 
20525
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20526
  (exit $ac_status); } &&
 
20527
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20528
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20529
  (eval $ac_try) 2>&5
 
20530
  ac_status=$?
 
20531
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20532
  (exit $ac_status); }; } &&
 
20533
         { ac_try='test -s conftest$ac_exeext'
 
20534
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20535
  (eval $ac_try) 2>&5
 
20536
  ac_status=$?
 
20537
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20538
  (exit $ac_status); }; }; then
 
20539
  eval "$as_ac_var=yes"
 
20540
else
 
20541
  echo "$as_me: failed program was:" >&5
 
20542
sed 's/^/| /' conftest.$ac_ext >&5
 
20543
 
 
20544
eval "$as_ac_var=no"
 
20545
fi
 
20546
rm -f conftest.err conftest.$ac_objext \
 
20547
      conftest$ac_exeext conftest.$ac_ext
 
20548
fi
 
20549
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20550
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20551
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20552
  cat >>confdefs.h <<_ACEOF
 
20553
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20554
_ACEOF
 
20555
 
 
20556
fi
 
20557
done
 
20558
 
 
20559
      fi
 
20560
 
 
20561
      #
 
20562
      # If we don't have everything we want, check in libintl
 
20563
      #
 
20564
      if test "$gt_cv_func_dgettext_libc" != "yes" \
 
20565
         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
 
20566
 
 
20567
        echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5
 
20568
echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6
 
20569
if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then
 
20570
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20571
else
 
20572
  ac_check_lib_save_LIBS=$LIBS
 
20573
LIBS="-lintl  $LIBS"
 
20574
cat >conftest.$ac_ext <<_ACEOF
 
20575
/* confdefs.h.  */
 
20576
_ACEOF
 
20577
cat confdefs.h >>conftest.$ac_ext
 
20578
cat >>conftest.$ac_ext <<_ACEOF
 
20579
/* end confdefs.h.  */
 
20580
 
 
20581
/* Override any gcc2 internal prototype to avoid an error.  */
 
20582
#ifdef __cplusplus
 
20583
extern "C"
 
20584
#endif
 
20585
/* We use char because int might match the return type of a gcc2
 
20586
   builtin and then its argument prototype would still apply.  */
 
20587
char bindtextdomain ();
 
20588
int
 
20589
main ()
 
20590
{
 
20591
bindtextdomain ();
 
20592
  ;
 
20593
  return 0;
 
20594
}
 
20595
_ACEOF
 
20596
rm -f conftest.$ac_objext conftest$ac_exeext
 
20597
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20598
  (eval $ac_link) 2>conftest.er1
 
20599
  ac_status=$?
 
20600
  grep -v '^ *+' conftest.er1 >conftest.err
 
20601
  rm -f conftest.er1
 
20602
  cat conftest.err >&5
 
20603
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20604
  (exit $ac_status); } &&
 
20605
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20606
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20607
  (eval $ac_try) 2>&5
 
20608
  ac_status=$?
 
20609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20610
  (exit $ac_status); }; } &&
 
20611
         { ac_try='test -s conftest$ac_exeext'
 
20612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20613
  (eval $ac_try) 2>&5
 
20614
  ac_status=$?
 
20615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20616
  (exit $ac_status); }; }; then
 
20617
  ac_cv_lib_intl_bindtextdomain=yes
 
20618
else
 
20619
  echo "$as_me: failed program was:" >&5
 
20620
sed 's/^/| /' conftest.$ac_ext >&5
 
20621
 
 
20622
ac_cv_lib_intl_bindtextdomain=no
 
20623
fi
 
20624
rm -f conftest.err conftest.$ac_objext \
 
20625
      conftest$ac_exeext conftest.$ac_ext
 
20626
LIBS=$ac_check_lib_save_LIBS
 
20627
fi
 
20628
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5
 
20629
echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6
 
20630
if test $ac_cv_lib_intl_bindtextdomain = yes; then
 
20631
  echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
 
20632
echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6
 
20633
if test "${ac_cv_lib_intl_dgettext+set}" = set; then
 
20634
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20635
else
 
20636
  ac_check_lib_save_LIBS=$LIBS
 
20637
LIBS="-lintl  $LIBS"
 
20638
cat >conftest.$ac_ext <<_ACEOF
 
20639
/* confdefs.h.  */
 
20640
_ACEOF
 
20641
cat confdefs.h >>conftest.$ac_ext
 
20642
cat >>conftest.$ac_ext <<_ACEOF
 
20643
/* end confdefs.h.  */
 
20644
 
 
20645
/* Override any gcc2 internal prototype to avoid an error.  */
 
20646
#ifdef __cplusplus
 
20647
extern "C"
 
20648
#endif
 
20649
/* We use char because int might match the return type of a gcc2
 
20650
   builtin and then its argument prototype would still apply.  */
 
20651
char dgettext ();
 
20652
int
 
20653
main ()
 
20654
{
 
20655
dgettext ();
 
20656
  ;
 
20657
  return 0;
 
20658
}
 
20659
_ACEOF
 
20660
rm -f conftest.$ac_objext conftest$ac_exeext
 
20661
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20662
  (eval $ac_link) 2>conftest.er1
 
20663
  ac_status=$?
 
20664
  grep -v '^ *+' conftest.er1 >conftest.err
 
20665
  rm -f conftest.er1
 
20666
  cat conftest.err >&5
 
20667
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20668
  (exit $ac_status); } &&
 
20669
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20670
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20671
  (eval $ac_try) 2>&5
 
20672
  ac_status=$?
 
20673
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20674
  (exit $ac_status); }; } &&
 
20675
         { ac_try='test -s conftest$ac_exeext'
 
20676
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20677
  (eval $ac_try) 2>&5
 
20678
  ac_status=$?
 
20679
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20680
  (exit $ac_status); }; }; then
 
20681
  ac_cv_lib_intl_dgettext=yes
 
20682
else
 
20683
  echo "$as_me: failed program was:" >&5
 
20684
sed 's/^/| /' conftest.$ac_ext >&5
 
20685
 
 
20686
ac_cv_lib_intl_dgettext=no
 
20687
fi
 
20688
rm -f conftest.err conftest.$ac_objext \
 
20689
      conftest$ac_exeext conftest.$ac_ext
 
20690
LIBS=$ac_check_lib_save_LIBS
 
20691
fi
 
20692
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
 
20693
echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6
 
20694
if test $ac_cv_lib_intl_dgettext = yes; then
 
20695
  gt_cv_func_dgettext_libintl=yes
 
20696
fi
 
20697
 
 
20698
fi
 
20699
 
 
20700
 
 
20701
        if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
 
20702
          echo "$as_me:$LINENO: checking if -liconv is needed to use gettext" >&5
 
20703
echo $ECHO_N "checking if -liconv is needed to use gettext... $ECHO_C" >&6
 
20704
          echo "$as_me:$LINENO: result: " >&5
 
20705
echo "${ECHO_T}" >&6
 
20706
          echo "$as_me:$LINENO: checking for dcgettext in -lintl" >&5
 
20707
echo $ECHO_N "checking for dcgettext in -lintl... $ECHO_C" >&6
 
20708
if test "${ac_cv_lib_intl_dcgettext+set}" = set; then
 
20709
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20710
else
 
20711
  ac_check_lib_save_LIBS=$LIBS
 
20712
LIBS="-lintl -liconv $LIBS"
 
20713
cat >conftest.$ac_ext <<_ACEOF
 
20714
/* confdefs.h.  */
 
20715
_ACEOF
 
20716
cat confdefs.h >>conftest.$ac_ext
 
20717
cat >>conftest.$ac_ext <<_ACEOF
 
20718
/* end confdefs.h.  */
 
20719
 
 
20720
/* Override any gcc2 internal prototype to avoid an error.  */
 
20721
#ifdef __cplusplus
 
20722
extern "C"
 
20723
#endif
 
20724
/* We use char because int might match the return type of a gcc2
 
20725
   builtin and then its argument prototype would still apply.  */
 
20726
char dcgettext ();
 
20727
int
 
20728
main ()
 
20729
{
 
20730
dcgettext ();
 
20731
  ;
 
20732
  return 0;
 
20733
}
 
20734
_ACEOF
 
20735
rm -f conftest.$ac_objext conftest$ac_exeext
 
20736
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20737
  (eval $ac_link) 2>conftest.er1
 
20738
  ac_status=$?
 
20739
  grep -v '^ *+' conftest.er1 >conftest.err
 
20740
  rm -f conftest.er1
 
20741
  cat conftest.err >&5
 
20742
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20743
  (exit $ac_status); } &&
 
20744
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20745
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20746
  (eval $ac_try) 2>&5
 
20747
  ac_status=$?
 
20748
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20749
  (exit $ac_status); }; } &&
 
20750
         { ac_try='test -s conftest$ac_exeext'
 
20751
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20752
  (eval $ac_try) 2>&5
 
20753
  ac_status=$?
 
20754
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20755
  (exit $ac_status); }; }; then
 
20756
  ac_cv_lib_intl_dcgettext=yes
 
20757
else
 
20758
  echo "$as_me: failed program was:" >&5
 
20759
sed 's/^/| /' conftest.$ac_ext >&5
 
20760
 
 
20761
ac_cv_lib_intl_dcgettext=no
 
20762
fi
 
20763
rm -f conftest.err conftest.$ac_objext \
 
20764
      conftest$ac_exeext conftest.$ac_ext
 
20765
LIBS=$ac_check_lib_save_LIBS
 
20766
fi
 
20767
echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dcgettext" >&5
 
20768
echo "${ECHO_T}$ac_cv_lib_intl_dcgettext" >&6
 
20769
if test $ac_cv_lib_intl_dcgettext = yes; then
 
20770
  gt_cv_func_dgettext_libintl=yes
 
20771
                        libintl_extra_libs=-liconv
 
20772
else
 
20773
  :
 
20774
fi
 
20775
 
 
20776
        fi
 
20777
 
 
20778
        #
 
20779
        # If we found libintl, then check in it for bind_textdomain_codeset();
 
20780
        # we'll prefer libc if neither have bind_textdomain_codeset(),
 
20781
        # and both have dgettext
 
20782
        #
 
20783
        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
 
20784
          glib_save_LIBS="$LIBS"
 
20785
          LIBS="$LIBS -lintl $libintl_extra_libs"
 
20786
          unset ac_cv_func_bind_textdomain_codeset
 
20787
 
 
20788
for ac_func in bind_textdomain_codeset
 
20789
do
 
20790
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20791
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20792
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20793
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20794
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20795
else
 
20796
  cat >conftest.$ac_ext <<_ACEOF
 
20797
/* confdefs.h.  */
 
20798
_ACEOF
 
20799
cat confdefs.h >>conftest.$ac_ext
 
20800
cat >>conftest.$ac_ext <<_ACEOF
 
20801
/* end confdefs.h.  */
 
20802
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20803
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20804
#define $ac_func innocuous_$ac_func
 
20805
 
 
20806
/* System header to define __stub macros and hopefully few prototypes,
 
20807
    which can conflict with char $ac_func (); below.
 
20808
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20809
    <limits.h> exists even on freestanding compilers.  */
 
20810
 
 
20811
#ifdef __STDC__
 
20812
# include <limits.h>
 
20813
#else
 
20814
# include <assert.h>
 
20815
#endif
 
20816
 
 
20817
#undef $ac_func
 
20818
 
 
20819
/* Override any gcc2 internal prototype to avoid an error.  */
 
20820
#ifdef __cplusplus
 
20821
extern "C"
 
20822
{
 
20823
#endif
 
20824
/* We use char because int might match the return type of a gcc2
 
20825
   builtin and then its argument prototype would still apply.  */
 
20826
char $ac_func ();
 
20827
/* The GNU C library defines this for functions which it implements
 
20828
    to always fail with ENOSYS.  Some functions are actually named
 
20829
    something starting with __ and the normal name is an alias.  */
 
20830
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20831
choke me
 
20832
#else
 
20833
char (*f) () = $ac_func;
 
20834
#endif
 
20835
#ifdef __cplusplus
 
20836
}
 
20837
#endif
 
20838
 
 
20839
int
 
20840
main ()
 
20841
{
 
20842
return f != $ac_func;
 
20843
  ;
 
20844
  return 0;
 
20845
}
 
20846
_ACEOF
 
20847
rm -f conftest.$ac_objext conftest$ac_exeext
 
20848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
20849
  (eval $ac_link) 2>conftest.er1
 
20850
  ac_status=$?
 
20851
  grep -v '^ *+' conftest.er1 >conftest.err
 
20852
  rm -f conftest.er1
 
20853
  cat conftest.err >&5
 
20854
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20855
  (exit $ac_status); } &&
 
20856
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
20857
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20858
  (eval $ac_try) 2>&5
 
20859
  ac_status=$?
 
20860
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20861
  (exit $ac_status); }; } &&
 
20862
         { ac_try='test -s conftest$ac_exeext'
 
20863
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
20864
  (eval $ac_try) 2>&5
 
20865
  ac_status=$?
 
20866
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
20867
  (exit $ac_status); }; }; then
 
20868
  eval "$as_ac_var=yes"
 
20869
else
 
20870
  echo "$as_me: failed program was:" >&5
 
20871
sed 's/^/| /' conftest.$ac_ext >&5
 
20872
 
 
20873
eval "$as_ac_var=no"
 
20874
fi
 
20875
rm -f conftest.err conftest.$ac_objext \
 
20876
      conftest$ac_exeext conftest.$ac_ext
 
20877
fi
 
20878
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
20879
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
20880
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
20881
  cat >>confdefs.h <<_ACEOF
 
20882
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
20883
_ACEOF
 
20884
 
 
20885
fi
 
20886
done
 
20887
 
 
20888
          LIBS="$glib_save_LIBS"
 
20889
 
 
20890
          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
 
20891
            gt_cv_func_dgettext_libc=no
 
20892
          else
 
20893
            if test "$gt_cv_func_dgettext_libc" = "yes"; then
 
20894
              gt_cv_func_dgettext_libintl=no
 
20895
            fi
 
20896
          fi
 
20897
        fi
 
20898
      fi
 
20899
 
 
20900
      if test "$gt_cv_func_dgettext_libc" = "yes" \
 
20901
        || test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
20902
        gt_cv_have_gettext=yes
 
20903
      fi
 
20904
 
 
20905
      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
 
20906
        INTLLIBS="-lintl $libintl_extra_libs"
 
20907
      fi
 
20908
 
 
20909
      if test "$gt_cv_have_gettext" = "yes"; then
 
20910
 
 
20911
cat >>confdefs.h <<\_ACEOF
 
20912
#define HAVE_GETTEXT 1
 
20913
_ACEOF
 
20914
 
 
20915
        # Extract the first word of "msgfmt", so it can be a program name with args.
 
20916
set dummy msgfmt; ac_word=$2
 
20917
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
20918
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
20919
if test "${ac_cv_path_MSGFMT+set}" = set; then
 
20920
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20921
else
 
20922
  case "$MSGFMT" in
 
20923
  /*)
 
20924
  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
 
20925
  ;;
 
20926
  *)
 
20927
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
20928
  for ac_dir in $PATH; do
 
20929
    test -z "$ac_dir" && ac_dir=.
 
20930
    if test -f $ac_dir/$ac_word; then
 
20931
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
 
20932
        ac_cv_path_MSGFMT="$ac_dir/$ac_word"
 
20933
        break
 
20934
      fi
 
20935
    fi
 
20936
  done
 
20937
  IFS="$ac_save_ifs"
 
20938
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
 
20939
  ;;
 
20940
esac
 
20941
fi
 
20942
MSGFMT="$ac_cv_path_MSGFMT"
 
20943
if test "$MSGFMT" != "no"; then
 
20944
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
 
20945
echo "${ECHO_T}$MSGFMT" >&6
 
20946
else
 
20947
  echo "$as_me:$LINENO: result: no" >&5
 
20948
echo "${ECHO_T}no" >&6
 
20949
fi
 
20950
        if test "$MSGFMT" != "no"; then
 
20951
          glib_save_LIBS="$LIBS"
 
20952
          LIBS="$LIBS $INTLLIBS"
 
20953
 
 
20954
for ac_func in dcgettext
 
20955
do
 
20956
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
20957
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
20958
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
20959
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
20960
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
20961
else
 
20962
  cat >conftest.$ac_ext <<_ACEOF
 
20963
/* confdefs.h.  */
 
20964
_ACEOF
 
20965
cat confdefs.h >>conftest.$ac_ext
 
20966
cat >>conftest.$ac_ext <<_ACEOF
 
20967
/* end confdefs.h.  */
 
20968
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
20969
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
20970
#define $ac_func innocuous_$ac_func
 
20971
 
 
20972
/* System header to define __stub macros and hopefully few prototypes,
 
20973
    which can conflict with char $ac_func (); below.
 
20974
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
20975
    <limits.h> exists even on freestanding compilers.  */
 
20976
 
 
20977
#ifdef __STDC__
 
20978
# include <limits.h>
 
20979
#else
 
20980
# include <assert.h>
 
20981
#endif
 
20982
 
 
20983
#undef $ac_func
 
20984
 
 
20985
/* Override any gcc2 internal prototype to avoid an error.  */
 
20986
#ifdef __cplusplus
 
20987
extern "C"
 
20988
{
 
20989
#endif
 
20990
/* We use char because int might match the return type of a gcc2
 
20991
   builtin and then its argument prototype would still apply.  */
 
20992
char $ac_func ();
 
20993
/* The GNU C library defines this for functions which it implements
 
20994
    to always fail with ENOSYS.  Some functions are actually named
 
20995
    something starting with __ and the normal name is an alias.  */
 
20996
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
20997
choke me
 
20998
#else
 
20999
char (*f) () = $ac_func;
 
21000
#endif
 
21001
#ifdef __cplusplus
 
21002
}
 
21003
#endif
 
21004
 
 
21005
int
 
21006
main ()
 
21007
{
 
21008
return f != $ac_func;
 
21009
  ;
 
21010
  return 0;
 
21011
}
 
21012
_ACEOF
 
21013
rm -f conftest.$ac_objext conftest$ac_exeext
 
21014
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21015
  (eval $ac_link) 2>conftest.er1
 
21016
  ac_status=$?
 
21017
  grep -v '^ *+' conftest.er1 >conftest.err
 
21018
  rm -f conftest.er1
 
21019
  cat conftest.err >&5
 
21020
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21021
  (exit $ac_status); } &&
 
21022
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21023
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21024
  (eval $ac_try) 2>&5
 
21025
  ac_status=$?
 
21026
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21027
  (exit $ac_status); }; } &&
 
21028
         { ac_try='test -s conftest$ac_exeext'
 
21029
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21030
  (eval $ac_try) 2>&5
 
21031
  ac_status=$?
 
21032
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21033
  (exit $ac_status); }; }; then
 
21034
  eval "$as_ac_var=yes"
 
21035
else
 
21036
  echo "$as_me: failed program was:" >&5
 
21037
sed 's/^/| /' conftest.$ac_ext >&5
 
21038
 
 
21039
eval "$as_ac_var=no"
 
21040
fi
 
21041
rm -f conftest.err conftest.$ac_objext \
 
21042
      conftest$ac_exeext conftest.$ac_ext
 
21043
fi
 
21044
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
21045
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
21046
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
21047
  cat >>confdefs.h <<_ACEOF
 
21048
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
21049
_ACEOF
 
21050
 
 
21051
fi
 
21052
done
 
21053
 
 
21054
          # Extract the first word of "gmsgfmt", so it can be a program name with args.
 
21055
set dummy gmsgfmt; ac_word=$2
 
21056
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21057
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21058
if test "${ac_cv_path_GMSGFMT+set}" = set; then
 
21059
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21060
else
 
21061
  case $GMSGFMT in
 
21062
  [\\/]* | ?:[\\/]*)
 
21063
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
 
21064
  ;;
 
21065
  *)
 
21066
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21067
for as_dir in $PATH
 
21068
do
 
21069
  IFS=$as_save_IFS
 
21070
  test -z "$as_dir" && as_dir=.
 
21071
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21072
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21073
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
 
21074
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21075
    break 2
 
21076
  fi
 
21077
done
 
21078
done
 
21079
 
 
21080
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
 
21081
  ;;
 
21082
esac
 
21083
fi
 
21084
GMSGFMT=$ac_cv_path_GMSGFMT
 
21085
 
 
21086
if test -n "$GMSGFMT"; then
 
21087
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
 
21088
echo "${ECHO_T}$GMSGFMT" >&6
 
21089
else
 
21090
  echo "$as_me:$LINENO: result: no" >&5
 
21091
echo "${ECHO_T}no" >&6
 
21092
fi
 
21093
 
 
21094
          # Extract the first word of "xgettext", so it can be a program name with args.
 
21095
set dummy xgettext; ac_word=$2
 
21096
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21097
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21098
if test "${ac_cv_path_XGETTEXT+set}" = set; then
 
21099
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21100
else
 
21101
  case "$XGETTEXT" in
 
21102
  /*)
 
21103
  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
 
21104
  ;;
 
21105
  *)
 
21106
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
 
21107
  for ac_dir in $PATH; do
 
21108
    test -z "$ac_dir" && ac_dir=.
 
21109
    if test -f $ac_dir/$ac_word; then
 
21110
      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
 
21111
        ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
 
21112
        break
 
21113
      fi
 
21114
    fi
 
21115
  done
 
21116
  IFS="$ac_save_ifs"
 
21117
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
 
21118
  ;;
 
21119
esac
 
21120
fi
 
21121
XGETTEXT="$ac_cv_path_XGETTEXT"
 
21122
if test "$XGETTEXT" != ":"; then
 
21123
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
 
21124
echo "${ECHO_T}$XGETTEXT" >&6
 
21125
else
 
21126
  echo "$as_me:$LINENO: result: no" >&5
 
21127
echo "${ECHO_T}no" >&6
 
21128
fi
 
21129
 
 
21130
          cat >conftest.$ac_ext <<_ACEOF
 
21131
/* confdefs.h.  */
 
21132
_ACEOF
 
21133
cat confdefs.h >>conftest.$ac_ext
 
21134
cat >>conftest.$ac_ext <<_ACEOF
 
21135
/* end confdefs.h.  */
 
21136
 
 
21137
int
 
21138
main ()
 
21139
{
 
21140
extern int _nl_msg_cat_cntr;
 
21141
                         return _nl_msg_cat_cntr
 
21142
  ;
 
21143
  return 0;
 
21144
}
 
21145
_ACEOF
 
21146
rm -f conftest.$ac_objext conftest$ac_exeext
 
21147
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21148
  (eval $ac_link) 2>conftest.er1
 
21149
  ac_status=$?
 
21150
  grep -v '^ *+' conftest.er1 >conftest.err
 
21151
  rm -f conftest.er1
 
21152
  cat conftest.err >&5
 
21153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21154
  (exit $ac_status); } &&
 
21155
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21157
  (eval $ac_try) 2>&5
 
21158
  ac_status=$?
 
21159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21160
  (exit $ac_status); }; } &&
 
21161
         { ac_try='test -s conftest$ac_exeext'
 
21162
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21163
  (eval $ac_try) 2>&5
 
21164
  ac_status=$?
 
21165
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21166
  (exit $ac_status); }; }; then
 
21167
  CATOBJEXT=.gmo
 
21168
             DATADIRNAME=share
 
21169
else
 
21170
  echo "$as_me: failed program was:" >&5
 
21171
sed 's/^/| /' conftest.$ac_ext >&5
 
21172
 
 
21173
case $host in
 
21174
            *-*-solaris*)
 
21175
                                                                echo "$as_me:$LINENO: checking for bind_textdomain_codeset" >&5
 
21176
echo $ECHO_N "checking for bind_textdomain_codeset... $ECHO_C" >&6
 
21177
if test "${ac_cv_func_bind_textdomain_codeset+set}" = set; then
 
21178
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21179
else
 
21180
  cat >conftest.$ac_ext <<_ACEOF
 
21181
/* confdefs.h.  */
 
21182
_ACEOF
 
21183
cat confdefs.h >>conftest.$ac_ext
 
21184
cat >>conftest.$ac_ext <<_ACEOF
 
21185
/* end confdefs.h.  */
 
21186
/* Define bind_textdomain_codeset to an innocuous variant, in case <limits.h> declares bind_textdomain_codeset.
 
21187
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
21188
#define bind_textdomain_codeset innocuous_bind_textdomain_codeset
 
21189
 
 
21190
/* System header to define __stub macros and hopefully few prototypes,
 
21191
    which can conflict with char bind_textdomain_codeset (); below.
 
21192
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
21193
    <limits.h> exists even on freestanding compilers.  */
 
21194
 
 
21195
#ifdef __STDC__
 
21196
# include <limits.h>
 
21197
#else
 
21198
# include <assert.h>
 
21199
#endif
 
21200
 
 
21201
#undef bind_textdomain_codeset
 
21202
 
 
21203
/* Override any gcc2 internal prototype to avoid an error.  */
 
21204
#ifdef __cplusplus
 
21205
extern "C"
 
21206
{
 
21207
#endif
 
21208
/* We use char because int might match the return type of a gcc2
 
21209
   builtin and then its argument prototype would still apply.  */
 
21210
char bind_textdomain_codeset ();
 
21211
/* The GNU C library defines this for functions which it implements
 
21212
    to always fail with ENOSYS.  Some functions are actually named
 
21213
    something starting with __ and the normal name is an alias.  */
 
21214
#if defined (__stub_bind_textdomain_codeset) || defined (__stub___bind_textdomain_codeset)
 
21215
choke me
 
21216
#else
 
21217
char (*f) () = bind_textdomain_codeset;
 
21218
#endif
 
21219
#ifdef __cplusplus
 
21220
}
 
21221
#endif
 
21222
 
 
21223
int
 
21224
main ()
 
21225
{
 
21226
return f != bind_textdomain_codeset;
 
21227
  ;
 
21228
  return 0;
 
21229
}
 
21230
_ACEOF
 
21231
rm -f conftest.$ac_objext conftest$ac_exeext
 
21232
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21233
  (eval $ac_link) 2>conftest.er1
 
21234
  ac_status=$?
 
21235
  grep -v '^ *+' conftest.er1 >conftest.err
 
21236
  rm -f conftest.er1
 
21237
  cat conftest.err >&5
 
21238
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21239
  (exit $ac_status); } &&
 
21240
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21241
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21242
  (eval $ac_try) 2>&5
 
21243
  ac_status=$?
 
21244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21245
  (exit $ac_status); }; } &&
 
21246
         { ac_try='test -s conftest$ac_exeext'
 
21247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21248
  (eval $ac_try) 2>&5
 
21249
  ac_status=$?
 
21250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21251
  (exit $ac_status); }; }; then
 
21252
  ac_cv_func_bind_textdomain_codeset=yes
 
21253
else
 
21254
  echo "$as_me: failed program was:" >&5
 
21255
sed 's/^/| /' conftest.$ac_ext >&5
 
21256
 
 
21257
ac_cv_func_bind_textdomain_codeset=no
 
21258
fi
 
21259
rm -f conftest.err conftest.$ac_objext \
 
21260
      conftest$ac_exeext conftest.$ac_ext
 
21261
fi
 
21262
echo "$as_me:$LINENO: result: $ac_cv_func_bind_textdomain_codeset" >&5
 
21263
echo "${ECHO_T}$ac_cv_func_bind_textdomain_codeset" >&6
 
21264
if test $ac_cv_func_bind_textdomain_codeset = yes; then
 
21265
  CATOBJEXT=.gmo
 
21266
               DATADIRNAME=share
 
21267
else
 
21268
  CATOBJEXT=.mo
 
21269
               DATADIRNAME=lib
 
21270
fi
 
21271
 
 
21272
            ;;
 
21273
            *)
 
21274
            CATOBJEXT=.mo
 
21275
            DATADIRNAME=lib
 
21276
            ;;
 
21277
            esac
 
21278
fi
 
21279
rm -f conftest.err conftest.$ac_objext \
 
21280
      conftest$ac_exeext conftest.$ac_ext
 
21281
          LIBS="$glib_save_LIBS"
 
21282
          INSTOBJEXT=.mo
 
21283
        else
 
21284
          gt_cv_have_gettext=no
 
21285
        fi
 
21286
      fi
 
21287
 
 
21288
fi
 
21289
 
 
21290
 
 
21291
 
 
21292
    if test "$gt_cv_have_gettext" = "yes" ; then
 
21293
 
 
21294
cat >>confdefs.h <<\_ACEOF
 
21295
#define ENABLE_NLS 1
 
21296
_ACEOF
 
21297
 
 
21298
    fi
 
21299
 
 
21300
        if test "$XGETTEXT" != ":"; then
 
21301
                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
 
21302
        : ;
 
21303
      else
 
21304
        echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
 
21305
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
 
21306
        XGETTEXT=":"
 
21307
      fi
 
21308
    fi
 
21309
 
 
21310
    # We need to process the po/ directory.
 
21311
    POSUB=po
 
21312
 
 
21313
              ac_config_commands="$ac_config_commands default-2"
 
21314
 
 
21315
 
 
21316
                for lang in $ALL_LINGUAS; do
 
21317
      GMOFILES="$GMOFILES $lang.gmo"
 
21318
      POFILES="$POFILES $lang.po"
 
21319
    done
 
21320
 
 
21321
 
 
21322
 
 
21323
 
 
21324
 
 
21325
 
 
21326
 
 
21327
 
 
21328
 
 
21329
 
 
21330
 
 
21331
 
 
21332
 
 
21333
   if test "$gt_cv_have_gettext" = "yes"; then
 
21334
     if test "x$ALL_LINGUAS" = "x"; then
 
21335
       LINGUAS=
 
21336
     else
 
21337
       echo "$as_me:$LINENO: checking for catalogs to be installed" >&5
 
21338
echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6
 
21339
       NEW_LINGUAS=
 
21340
       for presentlang in $ALL_LINGUAS; do
 
21341
         useit=no
 
21342
         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
 
21343
           desiredlanguages="$LINGUAS"
 
21344
         else
 
21345
           desiredlanguages="$ALL_LINGUAS"
 
21346
         fi
 
21347
         for desiredlang in $desiredlanguages; do
 
21348
           # Use the presentlang catalog if desiredlang is
 
21349
           #   a. equal to presentlang, or
 
21350
           #   b. a variant of presentlang (because in this case,
 
21351
           #      presentlang can be used as a fallback for messages
 
21352
           #      which are not translated in the desiredlang catalog).
 
21353
           case "$desiredlang" in
 
21354
             "$presentlang"*) useit=yes;;
 
21355
           esac
 
21356
         done
 
21357
         if test $useit = yes; then
 
21358
           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
 
21359
         fi
 
21360
       done
 
21361
       LINGUAS=$NEW_LINGUAS
 
21362
       echo "$as_me:$LINENO: result: $LINGUAS" >&5
 
21363
echo "${ECHO_T}$LINGUAS" >&6
 
21364
     fi
 
21365
 
 
21366
          if test -n "$LINGUAS"; then
 
21367
       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
 
21368
     fi
 
21369
   fi
 
21370
 
 
21371
            MKINSTALLDIRS=
 
21372
   if test -n "$ac_aux_dir"; then
 
21373
     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
 
21374
   fi
 
21375
   if test -z "$MKINSTALLDIRS"; then
 
21376
     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
 
21377
   fi
 
21378
 
 
21379
 
 
21380
         test -d po || mkdir po
 
21381
   if test "x$srcdir" != "x."; then
 
21382
     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
 
21383
       posrcprefix="$srcdir/"
 
21384
     else
 
21385
       posrcprefix="../$srcdir/"
 
21386
     fi
 
21387
   else
 
21388
     posrcprefix="../"
 
21389
   fi
 
21390
   rm -f po/POTFILES
 
21391
   sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
 
21392
        < $srcdir/po/POTFILES.in > po/POTFILES
 
21393
 
 
21394
 
 
21395
# Check whether --enable-glib or --disable-glib was given.
 
21396
if test "${enable_glib+set}" = set; then
 
21397
  enableval="$enable_glib"
 
21398
  case "${enableval}" in
 
21399
        yes) useglib=true ;;
 
21400
        no)  useglib=false ;;
 
21401
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-glib" >&5
 
21402
echo "$as_me: error: bad value ${enableval} for --enable-glib" >&2;}
 
21403
   { (exit 1); exit 1; }; } ;;
 
21404
      esac
 
21405
else
 
21406
  useglib=true
 
21407
fi;
 
21408
 
 
21409
# Check whether --enable-gnome_ui or --disable-gnome_ui was given.
 
21410
if test "${enable_gnome_ui+set}" = set; then
 
21411
  enableval="$enable_gnome_ui"
 
21412
  case "${enableval}" in
 
21413
        yes) gnome_ui=true ;;
 
21414
        no)  gnome_ui=false ;;
 
21415
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gnome_ui" >&5
 
21416
echo "$as_me: error: bad value ${enableval} for --enable-gnome_ui" >&2;}
 
21417
   { (exit 1); exit 1; }; } ;;
 
21418
      esac
 
21419
else
 
21420
  gnome_ui=true
 
21421
fi;
 
21422
 
 
21423
 
 
21424
if test "$useglib" = "true"; then
 
21425
  # Check whether --enable-glibtest or --disable-glibtest was given.
 
21426
if test "${enable_glibtest+set}" = set; then
 
21427
  enableval="$enable_glibtest"
 
21428
 
 
21429
else
 
21430
  enable_glibtest=yes
 
21431
fi;
 
21432
 
 
21433
  pkg_config_args=glib-2.0
 
21434
  for module in . gthread gmodule
 
21435
  do
 
21436
      case "$module" in
 
21437
         gmodule)
 
21438
             pkg_config_args="$pkg_config_args gmodule-2.0"
 
21439
         ;;
 
21440
         gobject)
 
21441
             pkg_config_args="$pkg_config_args gobject-2.0"
 
21442
         ;;
 
21443
         gthread)
 
21444
             pkg_config_args="$pkg_config_args gthread-2.0"
 
21445
         ;;
 
21446
      esac
 
21447
  done
 
21448
 
 
21449
  # Extract the first word of "pkg-config", so it can be a program name with args.
 
21450
set dummy pkg-config; ac_word=$2
 
21451
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21452
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21453
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21454
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21455
else
 
21456
  case $PKG_CONFIG in
 
21457
  [\\/]* | ?:[\\/]*)
 
21458
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21459
  ;;
 
21460
  *)
 
21461
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21462
for as_dir in $PATH
 
21463
do
 
21464
  IFS=$as_save_IFS
 
21465
  test -z "$as_dir" && as_dir=.
 
21466
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21467
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21468
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21469
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21470
    break 2
 
21471
  fi
 
21472
done
 
21473
done
 
21474
 
 
21475
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21476
  ;;
 
21477
esac
 
21478
fi
 
21479
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21480
 
 
21481
if test -n "$PKG_CONFIG"; then
 
21482
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21483
echo "${ECHO_T}$PKG_CONFIG" >&6
 
21484
else
 
21485
  echo "$as_me:$LINENO: result: no" >&5
 
21486
echo "${ECHO_T}no" >&6
 
21487
fi
 
21488
 
 
21489
 
 
21490
  no_glib=""
 
21491
 
 
21492
  if test x$PKG_CONFIG != xno ; then
 
21493
    if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then
 
21494
      :
 
21495
    else
 
21496
      echo *** pkg-config too old; version 0.7 or better required.
 
21497
      no_glib=yes
 
21498
      PKG_CONFIG=no
 
21499
    fi
 
21500
  else
 
21501
    no_glib=yes
 
21502
  fi
 
21503
 
 
21504
  min_glib_version=2.0.0
 
21505
  echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
 
21506
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6
 
21507
 
 
21508
  if test x$PKG_CONFIG != xno ; then
 
21509
    ## don't try to run the test against uninstalled libtool libs
 
21510
    if $PKG_CONFIG --uninstalled $pkg_config_args; then
 
21511
          echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
 
21512
          enable_glibtest=no
 
21513
    fi
 
21514
 
 
21515
    if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
 
21516
          :
 
21517
    else
 
21518
          no_glib=yes
 
21519
    fi
 
21520
  fi
 
21521
 
 
21522
  if test x"$no_glib" = x ; then
 
21523
    GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
 
21524
    GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
 
21525
    GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
 
21526
 
 
21527
    GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
 
21528
    GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
 
21529
    glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
21530
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
 
21531
    glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
21532
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
 
21533
    glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
 
21534
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
 
21535
    if test "x$enable_glibtest" = "xyes" ; then
 
21536
      ac_save_CFLAGS="$CFLAGS"
 
21537
      ac_save_LIBS="$LIBS"
 
21538
      CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
21539
      LIBS="$GLIB_LIBS $LIBS"
 
21540
      rm -f conf.glibtest
 
21541
      if test "$cross_compiling" = yes; then
 
21542
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
21543
else
 
21544
  cat >conftest.$ac_ext <<_ACEOF
 
21545
/* confdefs.h.  */
 
21546
_ACEOF
 
21547
cat confdefs.h >>conftest.$ac_ext
 
21548
cat >>conftest.$ac_ext <<_ACEOF
 
21549
/* end confdefs.h.  */
 
21550
 
 
21551
#include <glib.h>
 
21552
#include <stdio.h>
 
21553
#include <stdlib.h>
 
21554
 
 
21555
int
 
21556
main ()
 
21557
{
 
21558
  int major, minor, micro;
 
21559
  char *tmp_version;
 
21560
 
 
21561
  system ("touch conf.glibtest");
 
21562
 
 
21563
  /* HP/UX 9 (%@#!) writes to sscanf strings */
 
21564
  tmp_version = g_strdup("$min_glib_version");
 
21565
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
 
21566
     printf("%s, bad version string\n", "$min_glib_version");
 
21567
     exit(1);
 
21568
   }
 
21569
 
 
21570
  if ((glib_major_version != $glib_config_major_version) ||
 
21571
      (glib_minor_version != $glib_config_minor_version) ||
 
21572
      (glib_micro_version != $glib_config_micro_version))
 
21573
    {
 
21574
      printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
 
21575
             $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
 
21576
             glib_major_version, glib_minor_version, glib_micro_version);
 
21577
      printf ("*** was found! If pkg-config was correct, then it is best\n");
 
21578
      printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
 
21579
      printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
 
21580
      printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
 
21581
      printf("*** required on your system.\n");
 
21582
      printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
 
21583
      printf("*** to point to the correct configuration files\n");
 
21584
    }
 
21585
  else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
 
21586
           (glib_minor_version != GLIB_MINOR_VERSION) ||
 
21587
           (glib_micro_version != GLIB_MICRO_VERSION))
 
21588
    {
 
21589
      printf("*** GLIB header files (version %d.%d.%d) do not match\n",
 
21590
             GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
 
21591
      printf("*** library (version %d.%d.%d)\n",
 
21592
             glib_major_version, glib_minor_version, glib_micro_version);
 
21593
    }
 
21594
  else
 
21595
    {
 
21596
      if ((glib_major_version > major) ||
 
21597
        ((glib_major_version == major) && (glib_minor_version > minor)) ||
 
21598
        ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
 
21599
      {
 
21600
        return 0;
 
21601
       }
 
21602
     else
 
21603
      {
 
21604
        printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
 
21605
               glib_major_version, glib_minor_version, glib_micro_version);
 
21606
        printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
 
21607
               major, minor, micro);
 
21608
        printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
 
21609
        printf("***\n");
 
21610
        printf("*** If you have already installed a sufficiently new version, this error\n");
 
21611
        printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
 
21612
        printf("*** being found. The easiest way to fix this is to remove the old version\n");
 
21613
        printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
 
21614
        printf("*** correct copy of pkg-config. (In this case, you will have to\n");
 
21615
        printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
 
21616
        printf("*** so that the correct libraries are found at run-time))\n");
 
21617
      }
 
21618
    }
 
21619
  return 1;
 
21620
}
 
21621
 
 
21622
_ACEOF
 
21623
rm -f conftest$ac_exeext
 
21624
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21625
  (eval $ac_link) 2>&5
 
21626
  ac_status=$?
 
21627
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21628
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
21629
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21630
  (eval $ac_try) 2>&5
 
21631
  ac_status=$?
 
21632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21633
  (exit $ac_status); }; }; then
 
21634
  :
 
21635
else
 
21636
  echo "$as_me: program exited with status $ac_status" >&5
 
21637
echo "$as_me: failed program was:" >&5
 
21638
sed 's/^/| /' conftest.$ac_ext >&5
 
21639
 
 
21640
( exit $ac_status )
 
21641
no_glib=yes
 
21642
fi
 
21643
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
21644
fi
 
21645
       CFLAGS="$ac_save_CFLAGS"
 
21646
       LIBS="$ac_save_LIBS"
 
21647
     fi
 
21648
  fi
 
21649
  if test "x$no_glib" = x ; then
 
21650
     echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
 
21651
echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6
 
21652
 
 
21653
cat >>confdefs.h <<\_ACEOF
 
21654
#define HAVE_GLIB 1
 
21655
_ACEOF
 
21656
 
 
21657
  else
 
21658
     echo "$as_me:$LINENO: result: no" >&5
 
21659
echo "${ECHO_T}no" >&6
 
21660
     if test "$PKG_CONFIG" = "no" ; then
 
21661
       echo "*** A new enough version of pkg-config was not found."
 
21662
       echo "*** See http://www.freedesktop.org/software/pkgconfig/"
 
21663
     else
 
21664
       if test -f conf.glibtest ; then
 
21665
        :
 
21666
       else
 
21667
          echo "*** Could not run GLIB test program, checking why..."
 
21668
          ac_save_CFLAGS="$CFLAGS"
 
21669
          ac_save_LIBS="$LIBS"
 
21670
          CFLAGS="$CFLAGS $GLIB_CFLAGS"
 
21671
          LIBS="$LIBS $GLIB_LIBS"
 
21672
          cat >conftest.$ac_ext <<_ACEOF
 
21673
/* confdefs.h.  */
 
21674
_ACEOF
 
21675
cat confdefs.h >>conftest.$ac_ext
 
21676
cat >>conftest.$ac_ext <<_ACEOF
 
21677
/* end confdefs.h.  */
 
21678
 
 
21679
#include <glib.h>
 
21680
#include <stdio.h>
 
21681
 
 
21682
int
 
21683
main ()
 
21684
{
 
21685
 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
 
21686
  ;
 
21687
  return 0;
 
21688
}
 
21689
_ACEOF
 
21690
rm -f conftest.$ac_objext conftest$ac_exeext
 
21691
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
21692
  (eval $ac_link) 2>conftest.er1
 
21693
  ac_status=$?
 
21694
  grep -v '^ *+' conftest.er1 >conftest.err
 
21695
  rm -f conftest.er1
 
21696
  cat conftest.err >&5
 
21697
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21698
  (exit $ac_status); } &&
 
21699
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
21700
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21701
  (eval $ac_try) 2>&5
 
21702
  ac_status=$?
 
21703
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21704
  (exit $ac_status); }; } &&
 
21705
         { ac_try='test -s conftest$ac_exeext'
 
21706
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
21707
  (eval $ac_try) 2>&5
 
21708
  ac_status=$?
 
21709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
21710
  (exit $ac_status); }; }; then
 
21711
   echo "*** The test program compiled, but did not run. This usually means"
 
21712
          echo "*** that the run-time linker is not finding GLIB or finding the wrong"
 
21713
          echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
 
21714
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
 
21715
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
 
21716
          echo "*** is required on your system"
 
21717
          echo "***"
 
21718
          echo "*** If you have an old version installed, it is best to remove it, although"
 
21719
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
 
21720
else
 
21721
  echo "$as_me: failed program was:" >&5
 
21722
sed 's/^/| /' conftest.$ac_ext >&5
 
21723
 
 
21724
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
21725
          echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
 
21726
fi
 
21727
rm -f conftest.err conftest.$ac_objext \
 
21728
      conftest$ac_exeext conftest.$ac_ext
 
21729
          CFLAGS="$ac_save_CFLAGS"
 
21730
          LIBS="$ac_save_LIBS"
 
21731
       fi
 
21732
     fi
 
21733
     GLIB_CFLAGS=""
 
21734
     GLIB_LIBS=""
 
21735
     GLIB_GENMARSHAL=""
 
21736
     GOBJECT_QUERY=""
 
21737
     GLIB_MKENUMS=""
 
21738
      { echo "$as_me:$LINENO: WARNING: Can't find glib with version > 2.0.0. Only compilation on linux without glib is supported." >&5
 
21739
echo "$as_me: WARNING: Can't find glib with version > 2.0.0. Only compilation on linux without glib is supported." >&2;}; useglib=false
 
21740
  fi
 
21741
 
 
21742
 
 
21743
 
 
21744
 
 
21745
 
 
21746
  rm -f conf.glibtest
 
21747
 
 
21748
fi
 
21749
 
 
21750
if test "$useglib" = "false"; then
 
21751
  CFLAGS="$CFLAGS -I\$(top_srcdir)/support"
 
21752
  SUPPORTLIB="\$(top_builddir)/support/libuglib.la"
 
21753
  gnome_ui=false
 
21754
fi
 
21755
 
 
21756
 
 
21757
if test "$gnome_ui" = "true" ; then
 
21758
 
 
21759
 
 
21760
  succeeded=no
 
21761
 
 
21762
  if test -z "$PKG_CONFIG"; then
 
21763
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
21764
set dummy pkg-config; ac_word=$2
 
21765
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21766
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21767
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21768
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21769
else
 
21770
  case $PKG_CONFIG in
 
21771
  [\\/]* | ?:[\\/]*)
 
21772
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21773
  ;;
 
21774
  *)
 
21775
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21776
for as_dir in $PATH
 
21777
do
 
21778
  IFS=$as_save_IFS
 
21779
  test -z "$as_dir" && as_dir=.
 
21780
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21781
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21782
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21783
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21784
    break 2
 
21785
  fi
 
21786
done
 
21787
done
 
21788
 
 
21789
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21790
  ;;
 
21791
esac
 
21792
fi
 
21793
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21794
 
 
21795
if test -n "$PKG_CONFIG"; then
 
21796
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21797
echo "${ECHO_T}$PKG_CONFIG" >&6
 
21798
else
 
21799
  echo "$as_me:$LINENO: result: no" >&5
 
21800
echo "${ECHO_T}no" >&6
 
21801
fi
 
21802
 
 
21803
  fi
 
21804
 
 
21805
  if test "$PKG_CONFIG" = "no" ; then
 
21806
     echo "*** The pkg-config script could not be found. Make sure it is"
 
21807
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
21808
     echo "*** to the full path to pkg-config."
 
21809
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
21810
  else
 
21811
     PKG_CONFIG_MIN_VERSION=0.9.0
 
21812
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
21813
        echo "$as_me:$LINENO: checking for libgnomeui-2.0 >= 1.96.0" >&5
 
21814
echo $ECHO_N "checking for libgnomeui-2.0 >= 1.96.0... $ECHO_C" >&6
 
21815
 
 
21816
        if $PKG_CONFIG --exists "libgnomeui-2.0 >= 1.96.0" ; then
 
21817
            echo "$as_me:$LINENO: result: yes" >&5
 
21818
echo "${ECHO_T}yes" >&6
 
21819
            succeeded=yes
 
21820
 
 
21821
            echo "$as_me:$LINENO: checking LIBGNOMEUI_CFLAGS" >&5
 
21822
echo $ECHO_N "checking LIBGNOMEUI_CFLAGS... $ECHO_C" >&6
 
21823
            LIBGNOMEUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 1.96.0"`
 
21824
            echo "$as_me:$LINENO: result: $LIBGNOMEUI_CFLAGS" >&5
 
21825
echo "${ECHO_T}$LIBGNOMEUI_CFLAGS" >&6
 
21826
 
 
21827
            echo "$as_me:$LINENO: checking LIBGNOMEUI_LIBS" >&5
 
21828
echo $ECHO_N "checking LIBGNOMEUI_LIBS... $ECHO_C" >&6
 
21829
            LIBGNOMEUI_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 1.96.0"`
 
21830
            echo "$as_me:$LINENO: result: $LIBGNOMEUI_LIBS" >&5
 
21831
echo "${ECHO_T}$LIBGNOMEUI_LIBS" >&6
 
21832
        else
 
21833
            LIBGNOMEUI_CFLAGS=""
 
21834
            LIBGNOMEUI_LIBS=""
 
21835
            ## If we have a custom action on failure, don't print errors, but
 
21836
            ## do set a variable so people can do so.
 
21837
            LIBGNOMEUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 1.96.0"`
 
21838
 
 
21839
        fi
 
21840
 
 
21841
 
 
21842
 
 
21843
     else
 
21844
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
21845
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
21846
     fi
 
21847
  fi
 
21848
 
 
21849
  if test $succeeded = yes; then
 
21850
     :
 
21851
  else
 
21852
     gnome_ui=false
 
21853
  fi
 
21854
 
 
21855
 
 
21856
 
 
21857
 
 
21858
 
 
21859
  succeeded=no
 
21860
 
 
21861
  if test -z "$PKG_CONFIG"; then
 
21862
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
21863
set dummy pkg-config; ac_word=$2
 
21864
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21865
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21866
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21867
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21868
else
 
21869
  case $PKG_CONFIG in
 
21870
  [\\/]* | ?:[\\/]*)
 
21871
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21872
  ;;
 
21873
  *)
 
21874
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21875
for as_dir in $PATH
 
21876
do
 
21877
  IFS=$as_save_IFS
 
21878
  test -z "$as_dir" && as_dir=.
 
21879
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21880
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21881
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21882
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21883
    break 2
 
21884
  fi
 
21885
done
 
21886
done
 
21887
 
 
21888
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21889
  ;;
 
21890
esac
 
21891
fi
 
21892
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21893
 
 
21894
if test -n "$PKG_CONFIG"; then
 
21895
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21896
echo "${ECHO_T}$PKG_CONFIG" >&6
 
21897
else
 
21898
  echo "$as_me:$LINENO: result: no" >&5
 
21899
echo "${ECHO_T}no" >&6
 
21900
fi
 
21901
 
 
21902
  fi
 
21903
 
 
21904
  if test "$PKG_CONFIG" = "no" ; then
 
21905
     echo "*** The pkg-config script could not be found. Make sure it is"
 
21906
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
21907
     echo "*** to the full path to pkg-config."
 
21908
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
21909
  else
 
21910
     PKG_CONFIG_MIN_VERSION=0.9.0
 
21911
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
21912
        echo "$as_me:$LINENO: checking for libgnome-2.0 >= 1.96.0" >&5
 
21913
echo $ECHO_N "checking for libgnome-2.0 >= 1.96.0... $ECHO_C" >&6
 
21914
 
 
21915
        if $PKG_CONFIG --exists "libgnome-2.0 >= 1.96.0" ; then
 
21916
            echo "$as_me:$LINENO: result: yes" >&5
 
21917
echo "${ECHO_T}yes" >&6
 
21918
            succeeded=yes
 
21919
 
 
21920
            echo "$as_me:$LINENO: checking LIBGNOME_CFLAGS" >&5
 
21921
echo $ECHO_N "checking LIBGNOME_CFLAGS... $ECHO_C" >&6
 
21922
            LIBGNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnome-2.0 >= 1.96.0"`
 
21923
            echo "$as_me:$LINENO: result: $LIBGNOME_CFLAGS" >&5
 
21924
echo "${ECHO_T}$LIBGNOME_CFLAGS" >&6
 
21925
 
 
21926
            echo "$as_me:$LINENO: checking LIBGNOME_LIBS" >&5
 
21927
echo $ECHO_N "checking LIBGNOME_LIBS... $ECHO_C" >&6
 
21928
            LIBGNOME_LIBS=`$PKG_CONFIG --libs "libgnome-2.0 >= 1.96.0"`
 
21929
            echo "$as_me:$LINENO: result: $LIBGNOME_LIBS" >&5
 
21930
echo "${ECHO_T}$LIBGNOME_LIBS" >&6
 
21931
        else
 
21932
            LIBGNOME_CFLAGS=""
 
21933
            LIBGNOME_LIBS=""
 
21934
            ## If we have a custom action on failure, don't print errors, but
 
21935
            ## do set a variable so people can do so.
 
21936
            LIBGNOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnome-2.0 >= 1.96.0"`
 
21937
 
 
21938
        fi
 
21939
 
 
21940
 
 
21941
 
 
21942
     else
 
21943
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
21944
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
21945
     fi
 
21946
  fi
 
21947
 
 
21948
  if test $succeeded = yes; then
 
21949
     :
 
21950
  else
 
21951
     gnome_ui=false
 
21952
  fi
 
21953
 
 
21954
 
 
21955
 
 
21956
 
 
21957
 
 
21958
  succeeded=no
 
21959
 
 
21960
  if test -z "$PKG_CONFIG"; then
 
21961
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
21962
set dummy pkg-config; ac_word=$2
 
21963
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
21964
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
21965
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
21966
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
21967
else
 
21968
  case $PKG_CONFIG in
 
21969
  [\\/]* | ?:[\\/]*)
 
21970
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
21971
  ;;
 
21972
  *)
 
21973
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
21974
for as_dir in $PATH
 
21975
do
 
21976
  IFS=$as_save_IFS
 
21977
  test -z "$as_dir" && as_dir=.
 
21978
  for ac_exec_ext in '' $ac_executable_extensions; do
 
21979
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
21980
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
21981
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
21982
    break 2
 
21983
  fi
 
21984
done
 
21985
done
 
21986
 
 
21987
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
21988
  ;;
 
21989
esac
 
21990
fi
 
21991
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
21992
 
 
21993
if test -n "$PKG_CONFIG"; then
 
21994
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
21995
echo "${ECHO_T}$PKG_CONFIG" >&6
 
21996
else
 
21997
  echo "$as_me:$LINENO: result: no" >&5
 
21998
echo "${ECHO_T}no" >&6
 
21999
fi
 
22000
 
 
22001
  fi
 
22002
 
 
22003
  if test "$PKG_CONFIG" = "no" ; then
 
22004
     echo "*** The pkg-config script could not be found. Make sure it is"
 
22005
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
22006
     echo "*** to the full path to pkg-config."
 
22007
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
22008
  else
 
22009
     PKG_CONFIG_MIN_VERSION=0.9.0
 
22010
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
22011
        echo "$as_me:$LINENO: checking for libpanelapplet-2.0 >= 2.0.0 " >&5
 
22012
echo $ECHO_N "checking for libpanelapplet-2.0 >= 2.0.0 ... $ECHO_C" >&6
 
22013
 
 
22014
        if $PKG_CONFIG --exists "libpanelapplet-2.0 >= 2.0.0 " ; then
 
22015
            echo "$as_me:$LINENO: result: yes" >&5
 
22016
echo "${ECHO_T}yes" >&6
 
22017
            succeeded=yes
 
22018
 
 
22019
            echo "$as_me:$LINENO: checking GNOME_APPLETS_CFLAGS" >&5
 
22020
echo $ECHO_N "checking GNOME_APPLETS_CFLAGS... $ECHO_C" >&6
 
22021
            GNOME_APPLETS_CFLAGS=`$PKG_CONFIG --cflags "libpanelapplet-2.0 >= 2.0.0 "`
 
22022
            echo "$as_me:$LINENO: result: $GNOME_APPLETS_CFLAGS" >&5
 
22023
echo "${ECHO_T}$GNOME_APPLETS_CFLAGS" >&6
 
22024
 
 
22025
            echo "$as_me:$LINENO: checking GNOME_APPLETS_LIBS" >&5
 
22026
echo $ECHO_N "checking GNOME_APPLETS_LIBS... $ECHO_C" >&6
 
22027
            GNOME_APPLETS_LIBS=`$PKG_CONFIG --libs "libpanelapplet-2.0 >= 2.0.0 "`
 
22028
            echo "$as_me:$LINENO: result: $GNOME_APPLETS_LIBS" >&5
 
22029
echo "${ECHO_T}$GNOME_APPLETS_LIBS" >&6
 
22030
        else
 
22031
            GNOME_APPLETS_CFLAGS=""
 
22032
            GNOME_APPLETS_LIBS=""
 
22033
            ## If we have a custom action on failure, don't print errors, but
 
22034
            ## do set a variable so people can do so.
 
22035
            GNOME_APPLETS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libpanelapplet-2.0 >= 2.0.0 "`
 
22036
 
 
22037
        fi
 
22038
 
 
22039
 
 
22040
 
 
22041
     else
 
22042
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
22043
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
22044
     fi
 
22045
  fi
 
22046
 
 
22047
  if test $succeeded = yes; then
 
22048
     build_gnome_applet=true
 
22049
  else
 
22050
     build_gnome_applet=false
 
22051
  fi
 
22052
 
 
22053
 
 
22054
 
 
22055
 
 
22056
if test "$gnome_ui" = "true" ; then
 
22057
 
 
22058
cat >>confdefs.h <<\_ACEOF
 
22059
#define HAVE_GNOME 1
 
22060
_ACEOF
 
22061
 
 
22062
else
 
22063
  missing_gnome_libs=true
 
22064
fi
 
22065
 
 
22066
else
 
22067
DATADIRNAME=share
 
22068
echo "Gnome interface compilation is disabled."
 
22069
fi
 
22070
 
 
22071
 
 
22072
 
 
22073
 
 
22074
PTHREAD_LDFLAGS=
 
22075
GSMLIB_CFLAGS="-w -O2"
 
22076
case "$host_os" in
 
22077
        *freebsd*)
 
22078
                PTHREAD_LDFLAGS="-pthread"
 
22079
 
 
22080
cat >>confdefs.h <<\_ACEOF
 
22081
#define __FreeBSD__ 1
 
22082
_ACEOF
 
22083
 
 
22084
                ;;
 
22085
        *linux*)
 
22086
 
 
22087
cat >>confdefs.h <<\_ACEOF
 
22088
#define __LINUX__ 1
 
22089
_ACEOF
 
22090
 
 
22091
                ;;
 
22092
esac
 
22093
 
 
22094
case "$host_cpu" in
 
22095
        *arm*)
 
22096
 
 
22097
cat >>confdefs.h <<\_ACEOF
 
22098
#define __ARM__ 1
 
22099
_ACEOF
 
22100
 
 
22101
                                GSMLIB_CFLAGS="-w"
 
22102
                ;;
 
22103
esac
 
22104
 
 
22105
 
 
22106
 
 
22107
 
 
22108
 
 
22109
# Check whether --with-realprefix or --without-realprefix was given.
 
22110
if test "${with_realprefix+set}" = set; then
 
22111
  withval="$with_realprefix"
 
22112
   realprefix=${withval}
 
22113
else
 
22114
   realprefix="none"
 
22115
fi;
 
22116
 
 
22117
 
 
22118
# Check whether --with-osip or --without-osip was given.
 
22119
if test "${with_osip+set}" = set; then
 
22120
  withval="$with_osip"
 
22121
   osip_prefix=${withval}
 
22122
else
 
22123
   osip_prefix="/usr"
 
22124
fi;
 
22125
 
 
22126
 
 
22127
 
 
22128
# Check whether --with-speex or --without-speex was given.
 
22129
if test "${with_speex+set}" = set; then
 
22130
  withval="$with_speex"
 
22131
   speex_prefix=${withval}
 
22132
else
 
22133
   speex_prefix="/usr"
 
22134
fi;
 
22135
 
 
22136
 
 
22137
# Check whether --enable-alsa or --disable-alsa was given.
 
22138
if test "${enable_alsa+set}" = set; then
 
22139
  enableval="$enable_alsa"
 
22140
  case "${enableval}" in
 
22141
        yes) alsa=true ;;
 
22142
        no)  alsa=false ;;
 
22143
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-alsa" >&5
 
22144
echo "$as_me: error: bad value ${enableval} for --enable-alsa" >&2;}
 
22145
   { (exit 1); exit 1; }; } ;;
 
22146
      esac
 
22147
else
 
22148
  alsa=true
 
22149
fi;
 
22150
 
 
22151
# Check whether --enable-ipv6 or --disable-ipv6 was given.
 
22152
if test "${enable_ipv6+set}" = set; then
 
22153
  enableval="$enable_ipv6"
 
22154
  case "${enableval}" in
 
22155
        yes)  ipv6=true;;
 
22156
        no)   ipv6=false;;
 
22157
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-ipv6" >&5
 
22158
echo "$as_me: error: bad value ${enableval} for --enable-ipv6" >&2;}
 
22159
   { (exit 1); exit 1; }; } ;;
 
22160
      esac
 
22161
else
 
22162
  ipv6=true
 
22163
fi;
 
22164
IPV6_CFLAGS=
 
22165
if test x$ipv6 = xtrue ; then
 
22166
        IPV6_CFLAGS=-DINET6
 
22167
fi
 
22168
 
 
22169
 
 
22170
# Check whether --enable-truespeech or --disable-truespeech was given.
 
22171
if test "${enable_truespeech+set}" = set; then
 
22172
  enableval="$enable_truespeech"
 
22173
  case "${enableval}" in
 
22174
        yes)  truespeech=true;;
 
22175
        no)   truespeech=false;;
 
22176
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-truespeech" >&5
 
22177
echo "$as_me: error: bad value ${enableval} for --enable-truespeech" >&2;}
 
22178
   { (exit 1); exit 1; }; } ;;
 
22179
      esac
 
22180
else
 
22181
  truespeech=false
 
22182
fi;
 
22183
TRUESPEECH_CFLAGS=
 
22184
if test x$truespeech = xtrue ; then
 
22185
        TRUESPEECH_CFLAGS=-DTRUESPEECH
 
22186
fi
 
22187
 
 
22188
 
 
22189
 
 
22190
if test x$truespeech = xtrue; then
 
22191
  BUILD_TRUESPEECH_TRUE=
 
22192
  BUILD_TRUESPEECH_FALSE='#'
 
22193
else
 
22194
  BUILD_TRUESPEECH_TRUE='#'
 
22195
  BUILD_TRUESPEECH_FALSE=
 
22196
fi
 
22197
 
 
22198
 
 
22199
 
 
22200
# Check whether --enable-video or --disable-video was given.
 
22201
if test "${enable_video+set}" = set; then
 
22202
  enableval="$enable_video"
 
22203
  case "${enableval}" in
 
22204
        yes) video=true ;;
 
22205
        no)  video=false ;;
 
22206
        *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-video" >&5
 
22207
echo "$as_me: error: bad value ${enableval} for --enable-video" >&2;}
 
22208
   { (exit 1); exit 1; }; } ;;
 
22209
      esac
 
22210
else
 
22211
  video=false
 
22212
fi;
 
22213
 
 
22214
 
 
22215
if test "x${prefix}" = "xNONE"; then
 
22216
        prefix=${ac_default_prefix}
 
22217
fi
 
22218
if test "x${realprefix}" = "xnone"; then
 
22219
        realprefix=${prefix}
 
22220
fi
 
22221
 
 
22222
 
 
22223
cat >>confdefs.h <<_ACEOF
 
22224
#define PACKAGE_LOCALE_DIR "${realprefix}/${DATADIRNAME}/locale"
 
22225
_ACEOF
 
22226
 
 
22227
 
 
22228
 
 
22229
cat >>confdefs.h <<_ACEOF
 
22230
#define PACKAGE_DATA_DIR "${realprefix}/${DATADIRNAME}"
 
22231
_ACEOF
 
22232
 
 
22233
 
 
22234
 
 
22235
cat >>confdefs.h <<_ACEOF
 
22236
#define PACKAGE_SOUND_DIR "${realprefix}/${DATADIRNAME}/sounds/linphone"
 
22237
_ACEOF
 
22238
 
 
22239
 
 
22240
found_sound=no
 
22241
 
 
22242
 
 
22243
 
 
22244
 
 
22245
for ac_header in soundcard.h sys/soundcard.h machine/soundcard.h sys/audio.h
 
22246
do
 
22247
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22248
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22249
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22250
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22251
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22252
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22253
fi
 
22254
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22255
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22256
else
 
22257
  # Is the header compilable?
 
22258
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22259
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22260
cat >conftest.$ac_ext <<_ACEOF
 
22261
/* confdefs.h.  */
 
22262
_ACEOF
 
22263
cat confdefs.h >>conftest.$ac_ext
 
22264
cat >>conftest.$ac_ext <<_ACEOF
 
22265
/* end confdefs.h.  */
 
22266
$ac_includes_default
 
22267
#include <$ac_header>
 
22268
_ACEOF
 
22269
rm -f conftest.$ac_objext
 
22270
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22271
  (eval $ac_compile) 2>conftest.er1
 
22272
  ac_status=$?
 
22273
  grep -v '^ *+' conftest.er1 >conftest.err
 
22274
  rm -f conftest.er1
 
22275
  cat conftest.err >&5
 
22276
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22277
  (exit $ac_status); } &&
 
22278
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22279
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22280
  (eval $ac_try) 2>&5
 
22281
  ac_status=$?
 
22282
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22283
  (exit $ac_status); }; } &&
 
22284
         { ac_try='test -s conftest.$ac_objext'
 
22285
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22286
  (eval $ac_try) 2>&5
 
22287
  ac_status=$?
 
22288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22289
  (exit $ac_status); }; }; then
 
22290
  ac_header_compiler=yes
 
22291
else
 
22292
  echo "$as_me: failed program was:" >&5
 
22293
sed 's/^/| /' conftest.$ac_ext >&5
 
22294
 
 
22295
ac_header_compiler=no
 
22296
fi
 
22297
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22298
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22299
echo "${ECHO_T}$ac_header_compiler" >&6
 
22300
 
 
22301
# Is the header present?
 
22302
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22303
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22304
cat >conftest.$ac_ext <<_ACEOF
 
22305
/* confdefs.h.  */
 
22306
_ACEOF
 
22307
cat confdefs.h >>conftest.$ac_ext
 
22308
cat >>conftest.$ac_ext <<_ACEOF
 
22309
/* end confdefs.h.  */
 
22310
#include <$ac_header>
 
22311
_ACEOF
 
22312
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22313
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22314
  ac_status=$?
 
22315
  grep -v '^ *+' conftest.er1 >conftest.err
 
22316
  rm -f conftest.er1
 
22317
  cat conftest.err >&5
 
22318
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22319
  (exit $ac_status); } >/dev/null; then
 
22320
  if test -s conftest.err; then
 
22321
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22322
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22323
  else
 
22324
    ac_cpp_err=
 
22325
  fi
 
22326
else
 
22327
  ac_cpp_err=yes
 
22328
fi
 
22329
if test -z "$ac_cpp_err"; then
 
22330
  ac_header_preproc=yes
 
22331
else
 
22332
  echo "$as_me: failed program was:" >&5
 
22333
sed 's/^/| /' conftest.$ac_ext >&5
 
22334
 
 
22335
  ac_header_preproc=no
 
22336
fi
 
22337
rm -f conftest.err conftest.$ac_ext
 
22338
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22339
echo "${ECHO_T}$ac_header_preproc" >&6
 
22340
 
 
22341
# So?  What about this header?
 
22342
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22343
  yes:no: )
 
22344
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22345
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22346
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22347
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22348
    ac_header_preproc=yes
 
22349
    ;;
 
22350
  no:yes:* )
 
22351
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22352
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22353
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22354
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22355
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22356
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22357
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22358
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22359
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22360
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22361
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22362
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22363
    (
 
22364
      cat <<\_ASBOX
 
22365
## ------------------------------------------ ##
 
22366
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22367
## ------------------------------------------ ##
 
22368
_ASBOX
 
22369
    ) |
 
22370
      sed "s/^/$as_me: WARNING:     /" >&2
 
22371
    ;;
 
22372
esac
 
22373
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22375
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22377
else
 
22378
  eval "$as_ac_Header=\$ac_header_preproc"
 
22379
fi
 
22380
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22381
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22382
 
 
22383
fi
 
22384
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22385
  cat >>confdefs.h <<_ACEOF
 
22386
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22387
_ACEOF
 
22388
 
 
22389
fi
 
22390
 
 
22391
done
 
22392
 
 
22393
        if test "${ac_cv_header_sys_soundcard_h}" = "yes" || \
 
22394
        test "${ac_cv_header_soundcard_h}" = "yes" || \
 
22395
                test "${ac_cv_header_sys_audio_h}" = "yes" || \
 
22396
        test "${ac_cv_header_machine_soundcard_h}" = "yes"; then
 
22397
        found_sound=yes
 
22398
        fi
 
22399
        if test "$found_sound" = "no"; then
 
22400
         { { echo "$as_me:$LINENO: error: Could not find a support sound driver" >&5
 
22401
echo "$as_me: error: Could not find a support sound driver" >&2;}
 
22402
   { (exit 1); exit 1; }; }
 
22403
        fi
 
22404
 
 
22405
if test "$alsa" = "true"; then
 
22406
 
 
22407
for ac_header in alsa/asoundlib.h
 
22408
do
 
22409
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22410
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22411
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22412
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22413
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22414
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22415
fi
 
22416
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22417
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22418
else
 
22419
  # Is the header compilable?
 
22420
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22421
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22422
cat >conftest.$ac_ext <<_ACEOF
 
22423
/* confdefs.h.  */
 
22424
_ACEOF
 
22425
cat confdefs.h >>conftest.$ac_ext
 
22426
cat >>conftest.$ac_ext <<_ACEOF
 
22427
/* end confdefs.h.  */
 
22428
$ac_includes_default
 
22429
#include <$ac_header>
 
22430
_ACEOF
 
22431
rm -f conftest.$ac_objext
 
22432
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22433
  (eval $ac_compile) 2>conftest.er1
 
22434
  ac_status=$?
 
22435
  grep -v '^ *+' conftest.er1 >conftest.err
 
22436
  rm -f conftest.er1
 
22437
  cat conftest.err >&5
 
22438
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22439
  (exit $ac_status); } &&
 
22440
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22441
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22442
  (eval $ac_try) 2>&5
 
22443
  ac_status=$?
 
22444
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22445
  (exit $ac_status); }; } &&
 
22446
         { ac_try='test -s conftest.$ac_objext'
 
22447
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22448
  (eval $ac_try) 2>&5
 
22449
  ac_status=$?
 
22450
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22451
  (exit $ac_status); }; }; then
 
22452
  ac_header_compiler=yes
 
22453
else
 
22454
  echo "$as_me: failed program was:" >&5
 
22455
sed 's/^/| /' conftest.$ac_ext >&5
 
22456
 
 
22457
ac_header_compiler=no
 
22458
fi
 
22459
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22460
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22461
echo "${ECHO_T}$ac_header_compiler" >&6
 
22462
 
 
22463
# Is the header present?
 
22464
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22465
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22466
cat >conftest.$ac_ext <<_ACEOF
 
22467
/* confdefs.h.  */
 
22468
_ACEOF
 
22469
cat confdefs.h >>conftest.$ac_ext
 
22470
cat >>conftest.$ac_ext <<_ACEOF
 
22471
/* end confdefs.h.  */
 
22472
#include <$ac_header>
 
22473
_ACEOF
 
22474
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22475
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22476
  ac_status=$?
 
22477
  grep -v '^ *+' conftest.er1 >conftest.err
 
22478
  rm -f conftest.er1
 
22479
  cat conftest.err >&5
 
22480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22481
  (exit $ac_status); } >/dev/null; then
 
22482
  if test -s conftest.err; then
 
22483
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22484
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22485
  else
 
22486
    ac_cpp_err=
 
22487
  fi
 
22488
else
 
22489
  ac_cpp_err=yes
 
22490
fi
 
22491
if test -z "$ac_cpp_err"; then
 
22492
  ac_header_preproc=yes
 
22493
else
 
22494
  echo "$as_me: failed program was:" >&5
 
22495
sed 's/^/| /' conftest.$ac_ext >&5
 
22496
 
 
22497
  ac_header_preproc=no
 
22498
fi
 
22499
rm -f conftest.err conftest.$ac_ext
 
22500
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22501
echo "${ECHO_T}$ac_header_preproc" >&6
 
22502
 
 
22503
# So?  What about this header?
 
22504
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22505
  yes:no: )
 
22506
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22507
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22508
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22509
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22510
    ac_header_preproc=yes
 
22511
    ;;
 
22512
  no:yes:* )
 
22513
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22514
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22515
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22516
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22517
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22518
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22519
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22520
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22521
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22522
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22523
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22524
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22525
    (
 
22526
      cat <<\_ASBOX
 
22527
## ------------------------------------------ ##
 
22528
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22529
## ------------------------------------------ ##
 
22530
_ASBOX
 
22531
    ) |
 
22532
      sed "s/^/$as_me: WARNING:     /" >&2
 
22533
    ;;
 
22534
esac
 
22535
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22536
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22537
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22538
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22539
else
 
22540
  eval "$as_ac_Header=\$ac_header_preproc"
 
22541
fi
 
22542
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22543
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22544
 
 
22545
fi
 
22546
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22547
  cat >>confdefs.h <<_ACEOF
 
22548
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22549
_ACEOF
 
22550
  echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
 
22551
echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
 
22552
if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
 
22553
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22554
else
 
22555
  ac_check_lib_save_LIBS=$LIBS
 
22556
LIBS="-lasound  $LIBS"
 
22557
cat >conftest.$ac_ext <<_ACEOF
 
22558
/* confdefs.h.  */
 
22559
_ACEOF
 
22560
cat confdefs.h >>conftest.$ac_ext
 
22561
cat >>conftest.$ac_ext <<_ACEOF
 
22562
/* end confdefs.h.  */
 
22563
 
 
22564
/* Override any gcc2 internal prototype to avoid an error.  */
 
22565
#ifdef __cplusplus
 
22566
extern "C"
 
22567
#endif
 
22568
/* We use char because int might match the return type of a gcc2
 
22569
   builtin and then its argument prototype would still apply.  */
 
22570
char snd_pcm_open ();
 
22571
int
 
22572
main ()
 
22573
{
 
22574
snd_pcm_open ();
 
22575
  ;
 
22576
  return 0;
 
22577
}
 
22578
_ACEOF
 
22579
rm -f conftest.$ac_objext conftest$ac_exeext
 
22580
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22581
  (eval $ac_link) 2>conftest.er1
 
22582
  ac_status=$?
 
22583
  grep -v '^ *+' conftest.er1 >conftest.err
 
22584
  rm -f conftest.er1
 
22585
  cat conftest.err >&5
 
22586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22587
  (exit $ac_status); } &&
 
22588
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22590
  (eval $ac_try) 2>&5
 
22591
  ac_status=$?
 
22592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22593
  (exit $ac_status); }; } &&
 
22594
         { ac_try='test -s conftest$ac_exeext'
 
22595
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22596
  (eval $ac_try) 2>&5
 
22597
  ac_status=$?
 
22598
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22599
  (exit $ac_status); }; }; then
 
22600
  ac_cv_lib_asound_snd_pcm_open=yes
 
22601
else
 
22602
  echo "$as_me: failed program was:" >&5
 
22603
sed 's/^/| /' conftest.$ac_ext >&5
 
22604
 
 
22605
ac_cv_lib_asound_snd_pcm_open=no
 
22606
fi
 
22607
rm -f conftest.err conftest.$ac_objext \
 
22608
      conftest$ac_exeext conftest.$ac_ext
 
22609
LIBS=$ac_check_lib_save_LIBS
 
22610
fi
 
22611
echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
 
22612
echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
 
22613
if test $ac_cv_lib_asound_snd_pcm_open = yes; then
 
22614
  ALSA_LIBS="-lasound" ;
 
22615
cat >>confdefs.h <<\_ACEOF
 
22616
#define __ALSA_ENABLED__ 1
 
22617
_ACEOF
 
22618
 
 
22619
fi
 
22620
 
 
22621
 
 
22622
 
 
22623
fi
 
22624
 
 
22625
done
 
22626
 
 
22627
fi
 
22628
 
 
22629
 
 
22630
for ac_func in getifaddrs
 
22631
do
 
22632
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
22633
echo "$as_me:$LINENO: checking for $ac_func" >&5
 
22634
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
 
22635
if eval "test \"\${$as_ac_var+set}\" = set"; then
 
22636
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22637
else
 
22638
  cat >conftest.$ac_ext <<_ACEOF
 
22639
/* confdefs.h.  */
 
22640
_ACEOF
 
22641
cat confdefs.h >>conftest.$ac_ext
 
22642
cat >>conftest.$ac_ext <<_ACEOF
 
22643
/* end confdefs.h.  */
 
22644
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
22645
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
22646
#define $ac_func innocuous_$ac_func
 
22647
 
 
22648
/* System header to define __stub macros and hopefully few prototypes,
 
22649
    which can conflict with char $ac_func (); below.
 
22650
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
22651
    <limits.h> exists even on freestanding compilers.  */
 
22652
 
 
22653
#ifdef __STDC__
 
22654
# include <limits.h>
 
22655
#else
 
22656
# include <assert.h>
 
22657
#endif
 
22658
 
 
22659
#undef $ac_func
 
22660
 
 
22661
/* Override any gcc2 internal prototype to avoid an error.  */
 
22662
#ifdef __cplusplus
 
22663
extern "C"
 
22664
{
 
22665
#endif
 
22666
/* We use char because int might match the return type of a gcc2
 
22667
   builtin and then its argument prototype would still apply.  */
 
22668
char $ac_func ();
 
22669
/* The GNU C library defines this for functions which it implements
 
22670
    to always fail with ENOSYS.  Some functions are actually named
 
22671
    something starting with __ and the normal name is an alias.  */
 
22672
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
 
22673
choke me
 
22674
#else
 
22675
char (*f) () = $ac_func;
 
22676
#endif
 
22677
#ifdef __cplusplus
 
22678
}
 
22679
#endif
 
22680
 
 
22681
int
 
22682
main ()
 
22683
{
 
22684
return f != $ac_func;
 
22685
  ;
 
22686
  return 0;
 
22687
}
 
22688
_ACEOF
 
22689
rm -f conftest.$ac_objext conftest$ac_exeext
 
22690
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22691
  (eval $ac_link) 2>conftest.er1
 
22692
  ac_status=$?
 
22693
  grep -v '^ *+' conftest.er1 >conftest.err
 
22694
  rm -f conftest.er1
 
22695
  cat conftest.err >&5
 
22696
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22697
  (exit $ac_status); } &&
 
22698
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22699
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22700
  (eval $ac_try) 2>&5
 
22701
  ac_status=$?
 
22702
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22703
  (exit $ac_status); }; } &&
 
22704
         { ac_try='test -s conftest$ac_exeext'
 
22705
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22706
  (eval $ac_try) 2>&5
 
22707
  ac_status=$?
 
22708
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22709
  (exit $ac_status); }; }; then
 
22710
  eval "$as_ac_var=yes"
 
22711
else
 
22712
  echo "$as_me: failed program was:" >&5
 
22713
sed 's/^/| /' conftest.$ac_ext >&5
 
22714
 
 
22715
eval "$as_ac_var=no"
 
22716
fi
 
22717
rm -f conftest.err conftest.$ac_objext \
 
22718
      conftest$ac_exeext conftest.$ac_ext
 
22719
fi
 
22720
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
 
22721
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
 
22722
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
22723
  cat >>confdefs.h <<_ACEOF
 
22724
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
22725
_ACEOF
 
22726
 
 
22727
fi
 
22728
done
 
22729
 
 
22730
 
 
22731
for ac_header in dlfcn.h
 
22732
do
 
22733
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22734
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22735
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22736
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22737
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22738
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22739
fi
 
22740
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22741
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22742
else
 
22743
  # Is the header compilable?
 
22744
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22745
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22746
cat >conftest.$ac_ext <<_ACEOF
 
22747
/* confdefs.h.  */
 
22748
_ACEOF
 
22749
cat confdefs.h >>conftest.$ac_ext
 
22750
cat >>conftest.$ac_ext <<_ACEOF
 
22751
/* end confdefs.h.  */
 
22752
$ac_includes_default
 
22753
#include <$ac_header>
 
22754
_ACEOF
 
22755
rm -f conftest.$ac_objext
 
22756
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22757
  (eval $ac_compile) 2>conftest.er1
 
22758
  ac_status=$?
 
22759
  grep -v '^ *+' conftest.er1 >conftest.err
 
22760
  rm -f conftest.er1
 
22761
  cat conftest.err >&5
 
22762
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22763
  (exit $ac_status); } &&
 
22764
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22765
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22766
  (eval $ac_try) 2>&5
 
22767
  ac_status=$?
 
22768
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22769
  (exit $ac_status); }; } &&
 
22770
         { ac_try='test -s conftest.$ac_objext'
 
22771
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22772
  (eval $ac_try) 2>&5
 
22773
  ac_status=$?
 
22774
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22775
  (exit $ac_status); }; }; then
 
22776
  ac_header_compiler=yes
 
22777
else
 
22778
  echo "$as_me: failed program was:" >&5
 
22779
sed 's/^/| /' conftest.$ac_ext >&5
 
22780
 
 
22781
ac_header_compiler=no
 
22782
fi
 
22783
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
22784
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
22785
echo "${ECHO_T}$ac_header_compiler" >&6
 
22786
 
 
22787
# Is the header present?
 
22788
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
22789
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
22790
cat >conftest.$ac_ext <<_ACEOF
 
22791
/* confdefs.h.  */
 
22792
_ACEOF
 
22793
cat confdefs.h >>conftest.$ac_ext
 
22794
cat >>conftest.$ac_ext <<_ACEOF
 
22795
/* end confdefs.h.  */
 
22796
#include <$ac_header>
 
22797
_ACEOF
 
22798
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
22799
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
22800
  ac_status=$?
 
22801
  grep -v '^ *+' conftest.er1 >conftest.err
 
22802
  rm -f conftest.er1
 
22803
  cat conftest.err >&5
 
22804
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22805
  (exit $ac_status); } >/dev/null; then
 
22806
  if test -s conftest.err; then
 
22807
    ac_cpp_err=$ac_c_preproc_warn_flag
 
22808
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
22809
  else
 
22810
    ac_cpp_err=
 
22811
  fi
 
22812
else
 
22813
  ac_cpp_err=yes
 
22814
fi
 
22815
if test -z "$ac_cpp_err"; then
 
22816
  ac_header_preproc=yes
 
22817
else
 
22818
  echo "$as_me: failed program was:" >&5
 
22819
sed 's/^/| /' conftest.$ac_ext >&5
 
22820
 
 
22821
  ac_header_preproc=no
 
22822
fi
 
22823
rm -f conftest.err conftest.$ac_ext
 
22824
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
22825
echo "${ECHO_T}$ac_header_preproc" >&6
 
22826
 
 
22827
# So?  What about this header?
 
22828
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
22829
  yes:no: )
 
22830
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
22831
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
22832
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
22833
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
22834
    ac_header_preproc=yes
 
22835
    ;;
 
22836
  no:yes:* )
 
22837
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
22838
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
22839
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
22840
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
22841
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
22842
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
22843
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
22844
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
22845
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
22846
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
22847
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
22848
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
22849
    (
 
22850
      cat <<\_ASBOX
 
22851
## ------------------------------------------ ##
 
22852
## Report this to the AC_PACKAGE_NAME lists.  ##
 
22853
## ------------------------------------------ ##
 
22854
_ASBOX
 
22855
    ) |
 
22856
      sed "s/^/$as_me: WARNING:     /" >&2
 
22857
    ;;
 
22858
esac
 
22859
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22860
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22861
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22862
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22863
else
 
22864
  eval "$as_ac_Header=\$ac_header_preproc"
 
22865
fi
 
22866
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22867
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22868
 
 
22869
fi
 
22870
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
22871
  cat >>confdefs.h <<_ACEOF
 
22872
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
22873
_ACEOF
 
22874
 
 
22875
fi
 
22876
 
 
22877
done
 
22878
 
 
22879
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 
22880
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 
22881
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 
22882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22883
else
 
22884
  ac_check_lib_save_LIBS=$LIBS
 
22885
LIBS="-ldl  $LIBS"
 
22886
cat >conftest.$ac_ext <<_ACEOF
 
22887
/* confdefs.h.  */
 
22888
_ACEOF
 
22889
cat confdefs.h >>conftest.$ac_ext
 
22890
cat >>conftest.$ac_ext <<_ACEOF
 
22891
/* end confdefs.h.  */
 
22892
 
 
22893
/* Override any gcc2 internal prototype to avoid an error.  */
 
22894
#ifdef __cplusplus
 
22895
extern "C"
 
22896
#endif
 
22897
/* We use char because int might match the return type of a gcc2
 
22898
   builtin and then its argument prototype would still apply.  */
 
22899
char dlopen ();
 
22900
int
 
22901
main ()
 
22902
{
 
22903
dlopen ();
 
22904
  ;
 
22905
  return 0;
 
22906
}
 
22907
_ACEOF
 
22908
rm -f conftest.$ac_objext conftest$ac_exeext
 
22909
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
22910
  (eval $ac_link) 2>conftest.er1
 
22911
  ac_status=$?
 
22912
  grep -v '^ *+' conftest.er1 >conftest.err
 
22913
  rm -f conftest.er1
 
22914
  cat conftest.err >&5
 
22915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22916
  (exit $ac_status); } &&
 
22917
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22918
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22919
  (eval $ac_try) 2>&5
 
22920
  ac_status=$?
 
22921
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22922
  (exit $ac_status); }; } &&
 
22923
         { ac_try='test -s conftest$ac_exeext'
 
22924
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22925
  (eval $ac_try) 2>&5
 
22926
  ac_status=$?
 
22927
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22928
  (exit $ac_status); }; }; then
 
22929
  ac_cv_lib_dl_dlopen=yes
 
22930
else
 
22931
  echo "$as_me: failed program was:" >&5
 
22932
sed 's/^/| /' conftest.$ac_ext >&5
 
22933
 
 
22934
ac_cv_lib_dl_dlopen=no
 
22935
fi
 
22936
rm -f conftest.err conftest.$ac_objext \
 
22937
      conftest$ac_exeext conftest.$ac_ext
 
22938
LIBS=$ac_check_lib_save_LIBS
 
22939
fi
 
22940
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 
22941
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 
22942
if test $ac_cv_lib_dl_dlopen = yes; then
 
22943
  LIBS="$LIBS -ldl"
 
22944
fi
 
22945
 
 
22946
 
 
22947
CPPFLAGS_save=$CPPFLAGS
 
22948
CPPFLAGS="-I${speex_prefix}/include"
 
22949
LDFLAGS_save=$LDFLAGS
 
22950
LDFLAGS="-lm -L${speex_prefix}/lib"
 
22951
 
 
22952
for ac_header in speex.h
 
22953
do
 
22954
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
22955
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22956
  echo "$as_me:$LINENO: checking for $ac_header" >&5
 
22957
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
22958
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
22959
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
22960
fi
 
22961
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
22962
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
22963
else
 
22964
  # Is the header compilable?
 
22965
echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
22966
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 
22967
cat >conftest.$ac_ext <<_ACEOF
 
22968
/* confdefs.h.  */
 
22969
_ACEOF
 
22970
cat confdefs.h >>conftest.$ac_ext
 
22971
cat >>conftest.$ac_ext <<_ACEOF
 
22972
/* end confdefs.h.  */
 
22973
$ac_includes_default
 
22974
#include <$ac_header>
 
22975
_ACEOF
 
22976
rm -f conftest.$ac_objext
 
22977
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
22978
  (eval $ac_compile) 2>conftest.er1
 
22979
  ac_status=$?
 
22980
  grep -v '^ *+' conftest.er1 >conftest.err
 
22981
  rm -f conftest.er1
 
22982
  cat conftest.err >&5
 
22983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22984
  (exit $ac_status); } &&
 
22985
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
22986
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22987
  (eval $ac_try) 2>&5
 
22988
  ac_status=$?
 
22989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22990
  (exit $ac_status); }; } &&
 
22991
         { ac_try='test -s conftest.$ac_objext'
 
22992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
22993
  (eval $ac_try) 2>&5
 
22994
  ac_status=$?
 
22995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
22996
  (exit $ac_status); }; }; then
 
22997
  ac_header_compiler=yes
 
22998
else
 
22999
  echo "$as_me: failed program was:" >&5
 
23000
sed 's/^/| /' conftest.$ac_ext >&5
 
23001
 
 
23002
ac_header_compiler=no
 
23003
fi
 
23004
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23005
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
23006
echo "${ECHO_T}$ac_header_compiler" >&6
 
23007
 
 
23008
# Is the header present?
 
23009
echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
23010
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 
23011
cat >conftest.$ac_ext <<_ACEOF
 
23012
/* confdefs.h.  */
 
23013
_ACEOF
 
23014
cat confdefs.h >>conftest.$ac_ext
 
23015
cat >>conftest.$ac_ext <<_ACEOF
 
23016
/* end confdefs.h.  */
 
23017
#include <$ac_header>
 
23018
_ACEOF
 
23019
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
23020
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
23021
  ac_status=$?
 
23022
  grep -v '^ *+' conftest.er1 >conftest.err
 
23023
  rm -f conftest.er1
 
23024
  cat conftest.err >&5
 
23025
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23026
  (exit $ac_status); } >/dev/null; then
 
23027
  if test -s conftest.err; then
 
23028
    ac_cpp_err=$ac_c_preproc_warn_flag
 
23029
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 
23030
  else
 
23031
    ac_cpp_err=
 
23032
  fi
 
23033
else
 
23034
  ac_cpp_err=yes
 
23035
fi
 
23036
if test -z "$ac_cpp_err"; then
 
23037
  ac_header_preproc=yes
 
23038
else
 
23039
  echo "$as_me: failed program was:" >&5
 
23040
sed 's/^/| /' conftest.$ac_ext >&5
 
23041
 
 
23042
  ac_header_preproc=no
 
23043
fi
 
23044
rm -f conftest.err conftest.$ac_ext
 
23045
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
23046
echo "${ECHO_T}$ac_header_preproc" >&6
 
23047
 
 
23048
# So?  What about this header?
 
23049
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
23050
  yes:no: )
 
23051
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
23052
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
23053
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
23054
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
23055
    ac_header_preproc=yes
 
23056
    ;;
 
23057
  no:yes:* )
 
23058
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
23059
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
23060
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
23061
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
23062
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
23063
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
23064
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
23065
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
23066
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
23067
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
23068
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
23069
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
23070
    (
 
23071
      cat <<\_ASBOX
 
23072
## ------------------------------------------ ##
 
23073
## Report this to the AC_PACKAGE_NAME lists.  ##
 
23074
## ------------------------------------------ ##
 
23075
_ASBOX
 
23076
    ) |
 
23077
      sed "s/^/$as_me: WARNING:     /" >&2
 
23078
    ;;
 
23079
esac
 
23080
echo "$as_me:$LINENO: checking for $ac_header" >&5
 
23081
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 
23082
if eval "test \"\${$as_ac_Header+set}\" = set"; then
 
23083
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23084
else
 
23085
  eval "$as_ac_Header=\$ac_header_preproc"
 
23086
fi
 
23087
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
23088
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
23089
 
 
23090
fi
 
23091
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
23092
  cat >>confdefs.h <<_ACEOF
 
23093
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
23094
_ACEOF
 
23095
 echo "$as_me:$LINENO: checking for speex_encode in -lspeex" >&5
 
23096
echo $ECHO_N "checking for speex_encode in -lspeex... $ECHO_C" >&6
 
23097
if test "${ac_cv_lib_speex_speex_encode+set}" = set; then
 
23098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23099
else
 
23100
  ac_check_lib_save_LIBS=$LIBS
 
23101
LIBS="-lspeex  $LIBS"
 
23102
cat >conftest.$ac_ext <<_ACEOF
 
23103
/* confdefs.h.  */
 
23104
_ACEOF
 
23105
cat confdefs.h >>conftest.$ac_ext
 
23106
cat >>conftest.$ac_ext <<_ACEOF
 
23107
/* end confdefs.h.  */
 
23108
 
 
23109
/* Override any gcc2 internal prototype to avoid an error.  */
 
23110
#ifdef __cplusplus
 
23111
extern "C"
 
23112
#endif
 
23113
/* We use char because int might match the return type of a gcc2
 
23114
   builtin and then its argument prototype would still apply.  */
 
23115
char speex_encode ();
 
23116
int
 
23117
main ()
 
23118
{
 
23119
speex_encode ();
 
23120
  ;
 
23121
  return 0;
 
23122
}
 
23123
_ACEOF
 
23124
rm -f conftest.$ac_objext conftest$ac_exeext
 
23125
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23126
  (eval $ac_link) 2>conftest.er1
 
23127
  ac_status=$?
 
23128
  grep -v '^ *+' conftest.er1 >conftest.err
 
23129
  rm -f conftest.er1
 
23130
  cat conftest.err >&5
 
23131
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23132
  (exit $ac_status); } &&
 
23133
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23134
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23135
  (eval $ac_try) 2>&5
 
23136
  ac_status=$?
 
23137
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23138
  (exit $ac_status); }; } &&
 
23139
         { ac_try='test -s conftest$ac_exeext'
 
23140
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23141
  (eval $ac_try) 2>&5
 
23142
  ac_status=$?
 
23143
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23144
  (exit $ac_status); }; }; then
 
23145
  ac_cv_lib_speex_speex_encode=yes
 
23146
else
 
23147
  echo "$as_me: failed program was:" >&5
 
23148
sed 's/^/| /' conftest.$ac_ext >&5
 
23149
 
 
23150
ac_cv_lib_speex_speex_encode=no
 
23151
fi
 
23152
rm -f conftest.err conftest.$ac_objext \
 
23153
      conftest$ac_exeext conftest.$ac_ext
 
23154
LIBS=$ac_check_lib_save_LIBS
 
23155
fi
 
23156
echo "$as_me:$LINENO: result: $ac_cv_lib_speex_speex_encode" >&5
 
23157
echo "${ECHO_T}$ac_cv_lib_speex_speex_encode" >&6
 
23158
if test $ac_cv_lib_speex_speex_encode = yes; then
 
23159
  use_installed_speex=yes
 
23160
else
 
23161
  use_installed_speex=no
 
23162
fi
 
23163
 
 
23164
 
 
23165
else
 
23166
  use_installed_speex=no
 
23167
fi
 
23168
 
 
23169
done
 
23170
 
 
23171
if test x${speex_prefix} = xembedded ; then
 
23172
        use_installed_speex=no
 
23173
fi
 
23174
if test x${use_installed_speex} = "xyes" ; then
 
23175
        echo "Using speex installed in $speex_prefix ."
 
23176
        SPEEX_CFLAGS="-I${speex_prefix}/include"
 
23177
        SPEEX_LIBS="-L${speex_prefix}/lib -lspeex -lm"
 
23178
else
 
23179
        echo "Using speex embedded in linphone's tree."
 
23180
        SPEEX_CFLAGS="-I\$(top_srcdir)/speex/libspeex "
 
23181
        SPEEX_LIBS="\$(top_srcdir)/speex/libspeex/libspeex.la"
 
23182
fi
 
23183
 
 
23184
 
 
23185
CPPFLAGS=$CPPFLAGS_save
 
23186
LDFLAGS=$LDFLAGS_save
 
23187
 
 
23188
echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
 
23189
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
 
23190
if test "${ac_cv_c_bigendian+set}" = set; then
 
23191
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23192
else
 
23193
  # See if sys/param.h defines the BYTE_ORDER macro.
 
23194
cat >conftest.$ac_ext <<_ACEOF
 
23195
/* confdefs.h.  */
 
23196
_ACEOF
 
23197
cat confdefs.h >>conftest.$ac_ext
 
23198
cat >>conftest.$ac_ext <<_ACEOF
 
23199
/* end confdefs.h.  */
 
23200
#include <sys/types.h>
 
23201
#include <sys/param.h>
 
23202
 
 
23203
int
 
23204
main ()
 
23205
{
 
23206
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
 
23207
 bogus endian macros
 
23208
#endif
 
23209
 
 
23210
  ;
 
23211
  return 0;
 
23212
}
 
23213
_ACEOF
 
23214
rm -f conftest.$ac_objext
 
23215
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23216
  (eval $ac_compile) 2>conftest.er1
 
23217
  ac_status=$?
 
23218
  grep -v '^ *+' conftest.er1 >conftest.err
 
23219
  rm -f conftest.er1
 
23220
  cat conftest.err >&5
 
23221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23222
  (exit $ac_status); } &&
 
23223
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23225
  (eval $ac_try) 2>&5
 
23226
  ac_status=$?
 
23227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23228
  (exit $ac_status); }; } &&
 
23229
         { ac_try='test -s conftest.$ac_objext'
 
23230
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23231
  (eval $ac_try) 2>&5
 
23232
  ac_status=$?
 
23233
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23234
  (exit $ac_status); }; }; then
 
23235
  # It does; now see whether it defined to BIG_ENDIAN or not.
 
23236
cat >conftest.$ac_ext <<_ACEOF
 
23237
/* confdefs.h.  */
 
23238
_ACEOF
 
23239
cat confdefs.h >>conftest.$ac_ext
 
23240
cat >>conftest.$ac_ext <<_ACEOF
 
23241
/* end confdefs.h.  */
 
23242
#include <sys/types.h>
 
23243
#include <sys/param.h>
 
23244
 
 
23245
int
 
23246
main ()
 
23247
{
 
23248
#if BYTE_ORDER != BIG_ENDIAN
 
23249
 not big endian
 
23250
#endif
 
23251
 
 
23252
  ;
 
23253
  return 0;
 
23254
}
 
23255
_ACEOF
 
23256
rm -f conftest.$ac_objext
 
23257
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23258
  (eval $ac_compile) 2>conftest.er1
 
23259
  ac_status=$?
 
23260
  grep -v '^ *+' conftest.er1 >conftest.err
 
23261
  rm -f conftest.er1
 
23262
  cat conftest.err >&5
 
23263
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23264
  (exit $ac_status); } &&
 
23265
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23266
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23267
  (eval $ac_try) 2>&5
 
23268
  ac_status=$?
 
23269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23270
  (exit $ac_status); }; } &&
 
23271
         { ac_try='test -s conftest.$ac_objext'
 
23272
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23273
  (eval $ac_try) 2>&5
 
23274
  ac_status=$?
 
23275
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23276
  (exit $ac_status); }; }; then
 
23277
  ac_cv_c_bigendian=yes
 
23278
else
 
23279
  echo "$as_me: failed program was:" >&5
 
23280
sed 's/^/| /' conftest.$ac_ext >&5
 
23281
 
 
23282
ac_cv_c_bigendian=no
 
23283
fi
 
23284
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23285
else
 
23286
  echo "$as_me: failed program was:" >&5
 
23287
sed 's/^/| /' conftest.$ac_ext >&5
 
23288
 
 
23289
# It does not; compile a test program.
 
23290
if test "$cross_compiling" = yes; then
 
23291
  # try to guess the endianness by grepping values into an object file
 
23292
  ac_cv_c_bigendian=unknown
 
23293
  cat >conftest.$ac_ext <<_ACEOF
 
23294
/* confdefs.h.  */
 
23295
_ACEOF
 
23296
cat confdefs.h >>conftest.$ac_ext
 
23297
cat >>conftest.$ac_ext <<_ACEOF
 
23298
/* end confdefs.h.  */
 
23299
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
 
23300
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
 
23301
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
 
23302
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
 
23303
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
 
23304
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
 
23305
int
 
23306
main ()
 
23307
{
 
23308
 _ascii (); _ebcdic ();
 
23309
  ;
 
23310
  return 0;
 
23311
}
 
23312
_ACEOF
 
23313
rm -f conftest.$ac_objext
 
23314
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
23315
  (eval $ac_compile) 2>conftest.er1
 
23316
  ac_status=$?
 
23317
  grep -v '^ *+' conftest.er1 >conftest.err
 
23318
  rm -f conftest.er1
 
23319
  cat conftest.err >&5
 
23320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23321
  (exit $ac_status); } &&
 
23322
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23323
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23324
  (eval $ac_try) 2>&5
 
23325
  ac_status=$?
 
23326
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23327
  (exit $ac_status); }; } &&
 
23328
         { ac_try='test -s conftest.$ac_objext'
 
23329
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23330
  (eval $ac_try) 2>&5
 
23331
  ac_status=$?
 
23332
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23333
  (exit $ac_status); }; }; then
 
23334
  if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
 
23335
  ac_cv_c_bigendian=yes
 
23336
fi
 
23337
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
 
23338
  if test "$ac_cv_c_bigendian" = unknown; then
 
23339
    ac_cv_c_bigendian=no
 
23340
  else
 
23341
    # finding both strings is unlikely to happen, but who knows?
 
23342
    ac_cv_c_bigendian=unknown
 
23343
  fi
 
23344
fi
 
23345
else
 
23346
  echo "$as_me: failed program was:" >&5
 
23347
sed 's/^/| /' conftest.$ac_ext >&5
 
23348
 
 
23349
fi
 
23350
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23351
else
 
23352
  cat >conftest.$ac_ext <<_ACEOF
 
23353
/* confdefs.h.  */
 
23354
_ACEOF
 
23355
cat confdefs.h >>conftest.$ac_ext
 
23356
cat >>conftest.$ac_ext <<_ACEOF
 
23357
/* end confdefs.h.  */
 
23358
int
 
23359
main ()
 
23360
{
 
23361
  /* Are we little or big endian?  From Harbison&Steele.  */
 
23362
  union
 
23363
  {
 
23364
    long l;
 
23365
    char c[sizeof (long)];
 
23366
  } u;
 
23367
  u.l = 1;
 
23368
  exit (u.c[sizeof (long) - 1] == 1);
 
23369
}
 
23370
_ACEOF
 
23371
rm -f conftest$ac_exeext
 
23372
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23373
  (eval $ac_link) 2>&5
 
23374
  ac_status=$?
 
23375
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23376
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
23377
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23378
  (eval $ac_try) 2>&5
 
23379
  ac_status=$?
 
23380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23381
  (exit $ac_status); }; }; then
 
23382
  ac_cv_c_bigendian=no
 
23383
else
 
23384
  echo "$as_me: program exited with status $ac_status" >&5
 
23385
echo "$as_me: failed program was:" >&5
 
23386
sed 's/^/| /' conftest.$ac_ext >&5
 
23387
 
 
23388
( exit $ac_status )
 
23389
ac_cv_c_bigendian=yes
 
23390
fi
 
23391
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
23392
fi
 
23393
fi
 
23394
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
23395
fi
 
23396
echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
 
23397
echo "${ECHO_T}$ac_cv_c_bigendian" >&6
 
23398
case $ac_cv_c_bigendian in
 
23399
  yes)
 
23400
 
 
23401
cat >>confdefs.h <<\_ACEOF
 
23402
#define WORDS_BIGENDIAN 1
 
23403
_ACEOF
 
23404
 ;;
 
23405
  no)
 
23406
     ;;
 
23407
  *)
 
23408
    { { echo "$as_me:$LINENO: error: unknown endianness
 
23409
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
 
23410
echo "$as_me: error: unknown endianness
 
23411
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
 
23412
   { (exit 1); exit 1; }; } ;;
 
23413
esac
 
23414
 
 
23415
 
 
23416
 
 
23417
 
 
23418
if test "$video" = "true"; then
 
23419
        echo "WARNING: Video support is under developpement, nothing works."
 
23420
                # Extract the first word of "nasm", so it can be a program name with args.
 
23421
set dummy nasm; ac_word=$2
 
23422
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23424
if test "${ac_cv_prog_NASM+set}" = set; then
 
23425
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23426
else
 
23427
  if test -n "$NASM"; then
 
23428
  ac_cv_prog_NASM="$NASM" # Let the user override the test.
 
23429
else
 
23430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23431
for as_dir in $PATH
 
23432
do
 
23433
  IFS=$as_save_IFS
 
23434
  test -z "$as_dir" && as_dir=.
 
23435
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23436
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23437
    ac_cv_prog_NASM="true"
 
23438
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23439
    break 2
 
23440
  fi
 
23441
done
 
23442
done
 
23443
 
 
23444
  test -z "$ac_cv_prog_NASM" && ac_cv_prog_NASM="false"
 
23445
fi
 
23446
fi
 
23447
NASM=$ac_cv_prog_NASM
 
23448
if test -n "$NASM"; then
 
23449
  echo "$as_me:$LINENO: result: $NASM" >&5
 
23450
echo "${ECHO_T}$NASM" >&6
 
23451
else
 
23452
  echo "$as_me:$LINENO: result: no" >&5
 
23453
echo "${ECHO_T}no" >&6
 
23454
fi
 
23455
 
 
23456
 
 
23457
        if $NASM ;then
 
23458
                cd $('pwd')/ffmpeg; ln -sf Makefile.orig Makefile; cd ..
 
23459
                cd $('pwd')/ffmpeg/libavcodec; ln -sf Makefile.libtool Makefile; cd .. ;cd ..
 
23460
                echo "Video support will be build, although it is not functionnal for the moment."
 
23461
                AVCODEC_LIBS="../ffmpeg/libavcodec/libavcodec.la"
 
23462
 
 
23463
 
 
23464
cat >>confdefs.h <<\_ACEOF
 
23465
#define HAVE_AVCODEC 1
 
23466
_ACEOF
 
23467
 
 
23468
        else
 
23469
                { { echo "$as_me:$LINENO: error: \"nasm is missing ! You require nasm to build the video support in linphone.\"" >&5
 
23470
echo "$as_me: error: \"nasm is missing ! You require nasm to build the video support in linphone.\"" >&2;}
 
23471
   { (exit 1); exit 1; }; }
 
23472
        fi
 
23473
 
 
23474
  succeeded=no
 
23475
 
 
23476
  if test -z "$PKG_CONFIG"; then
 
23477
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
23478
set dummy pkg-config; ac_word=$2
 
23479
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23480
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23481
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
23482
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23483
else
 
23484
  case $PKG_CONFIG in
 
23485
  [\\/]* | ?:[\\/]*)
 
23486
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
23487
  ;;
 
23488
  *)
 
23489
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23490
for as_dir in $PATH
 
23491
do
 
23492
  IFS=$as_save_IFS
 
23493
  test -z "$as_dir" && as_dir=.
 
23494
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23495
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23496
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23497
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23498
    break 2
 
23499
  fi
 
23500
done
 
23501
done
 
23502
 
 
23503
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
23504
  ;;
 
23505
esac
 
23506
fi
 
23507
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
23508
 
 
23509
if test -n "$PKG_CONFIG"; then
 
23510
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
23511
echo "${ECHO_T}$PKG_CONFIG" >&6
 
23512
else
 
23513
  echo "$as_me:$LINENO: result: no" >&5
 
23514
echo "${ECHO_T}no" >&6
 
23515
fi
 
23516
 
 
23517
  fi
 
23518
 
 
23519
  if test "$PKG_CONFIG" = "no" ; then
 
23520
     echo "*** The pkg-config script could not be found. Make sure it is"
 
23521
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
23522
     echo "*** to the full path to pkg-config."
 
23523
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
23524
  else
 
23525
     PKG_CONFIG_MIN_VERSION=0.9.0
 
23526
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
23527
        echo "$as_me:$LINENO: checking for gdk-2.0 >= 2.0.0" >&5
 
23528
echo $ECHO_N "checking for gdk-2.0 >= 2.0.0... $ECHO_C" >&6
 
23529
 
 
23530
        if $PKG_CONFIG --exists "gdk-2.0 >= 2.0.0" ; then
 
23531
            echo "$as_me:$LINENO: result: yes" >&5
 
23532
echo "${ECHO_T}yes" >&6
 
23533
            succeeded=yes
 
23534
 
 
23535
            echo "$as_me:$LINENO: checking GDK_CFLAGS" >&5
 
23536
echo $ECHO_N "checking GDK_CFLAGS... $ECHO_C" >&6
 
23537
            GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.0.0"`
 
23538
            echo "$as_me:$LINENO: result: $GDK_CFLAGS" >&5
 
23539
echo "${ECHO_T}$GDK_CFLAGS" >&6
 
23540
 
 
23541
            echo "$as_me:$LINENO: checking GDK_LIBS" >&5
 
23542
echo $ECHO_N "checking GDK_LIBS... $ECHO_C" >&6
 
23543
            GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.0.0"`
 
23544
            echo "$as_me:$LINENO: result: $GDK_LIBS" >&5
 
23545
echo "${ECHO_T}$GDK_LIBS" >&6
 
23546
        else
 
23547
            GDK_CFLAGS=""
 
23548
            GDK_LIBS=""
 
23549
            ## If we have a custom action on failure, don't print errors, but
 
23550
            ## do set a variable so people can do so.
 
23551
            GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.0.0"`
 
23552
            echo $GDK_PKG_ERRORS
 
23553
        fi
 
23554
 
 
23555
 
 
23556
 
 
23557
     else
 
23558
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
23559
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
23560
     fi
 
23561
  fi
 
23562
 
 
23563
  if test $succeeded = yes; then
 
23564
     :
 
23565
  else
 
23566
     { { echo "$as_me:$LINENO: error: Library requirements (gdk-2.0 >= 2.0.0) 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
 
23567
echo "$as_me: error: Library requirements (gdk-2.0 >= 2.0.0) 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;}
 
23568
   { (exit 1); exit 1; }; }
 
23569
  fi
 
23570
 
 
23571
 
 
23572
 
 
23573
else
 
23574
   cd $('pwd')/ffmpeg; ln -sf Makefile.null Makefile ; cd ..
 
23575
fi
 
23576
 
 
23577
if test "$video" = "true" ; then
 
23578
        echo "$as_me:$LINENO: checking for xine_init in -lxine" >&5
 
23579
echo $ECHO_N "checking for xine_init in -lxine... $ECHO_C" >&6
 
23580
if test "${ac_cv_lib_xine_xine_init+set}" = set; then
 
23581
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23582
else
 
23583
  ac_check_lib_save_LIBS=$LIBS
 
23584
LIBS="-lxine  $LIBS"
 
23585
cat >conftest.$ac_ext <<_ACEOF
 
23586
/* confdefs.h.  */
 
23587
_ACEOF
 
23588
cat confdefs.h >>conftest.$ac_ext
 
23589
cat >>conftest.$ac_ext <<_ACEOF
 
23590
/* end confdefs.h.  */
 
23591
 
 
23592
/* Override any gcc2 internal prototype to avoid an error.  */
 
23593
#ifdef __cplusplus
 
23594
extern "C"
 
23595
#endif
 
23596
/* We use char because int might match the return type of a gcc2
 
23597
   builtin and then its argument prototype would still apply.  */
 
23598
char xine_init ();
 
23599
int
 
23600
main ()
 
23601
{
 
23602
xine_init ();
 
23603
  ;
 
23604
  return 0;
 
23605
}
 
23606
_ACEOF
 
23607
rm -f conftest.$ac_objext conftest$ac_exeext
 
23608
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23609
  (eval $ac_link) 2>conftest.er1
 
23610
  ac_status=$?
 
23611
  grep -v '^ *+' conftest.er1 >conftest.err
 
23612
  rm -f conftest.er1
 
23613
  cat conftest.err >&5
 
23614
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23615
  (exit $ac_status); } &&
 
23616
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23617
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23618
  (eval $ac_try) 2>&5
 
23619
  ac_status=$?
 
23620
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23621
  (exit $ac_status); }; } &&
 
23622
         { ac_try='test -s conftest$ac_exeext'
 
23623
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23624
  (eval $ac_try) 2>&5
 
23625
  ac_status=$?
 
23626
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23627
  (exit $ac_status); }; }; then
 
23628
  ac_cv_lib_xine_xine_init=yes
 
23629
else
 
23630
  echo "$as_me: failed program was:" >&5
 
23631
sed 's/^/| /' conftest.$ac_ext >&5
 
23632
 
 
23633
ac_cv_lib_xine_xine_init=no
 
23634
fi
 
23635
rm -f conftest.err conftest.$ac_objext \
 
23636
      conftest$ac_exeext conftest.$ac_ext
 
23637
LIBS=$ac_check_lib_save_LIBS
 
23638
fi
 
23639
echo "$as_me:$LINENO: result: $ac_cv_lib_xine_xine_init" >&5
 
23640
echo "${ECHO_T}$ac_cv_lib_xine_xine_init" >&6
 
23641
if test $ac_cv_lib_xine_xine_init = yes; then
 
23642
   have_xine=true
 
23643
fi
 
23644
 
 
23645
        echo "$as_me:$LINENO: checking for SDL_smpeg_descr in -lsmpeg" >&5
 
23646
echo $ECHO_N "checking for SDL_smpeg_descr in -lsmpeg... $ECHO_C" >&6
 
23647
if test "${ac_cv_lib_smpeg_SDL_smpeg_descr+set}" = set; then
 
23648
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23649
else
 
23650
  ac_check_lib_save_LIBS=$LIBS
 
23651
LIBS="-lsmpeg  $LIBS"
 
23652
cat >conftest.$ac_ext <<_ACEOF
 
23653
/* confdefs.h.  */
 
23654
_ACEOF
 
23655
cat confdefs.h >>conftest.$ac_ext
 
23656
cat >>conftest.$ac_ext <<_ACEOF
 
23657
/* end confdefs.h.  */
 
23658
 
 
23659
/* Override any gcc2 internal prototype to avoid an error.  */
 
23660
#ifdef __cplusplus
 
23661
extern "C"
 
23662
#endif
 
23663
/* We use char because int might match the return type of a gcc2
 
23664
   builtin and then its argument prototype would still apply.  */
 
23665
char SDL_smpeg_descr ();
 
23666
int
 
23667
main ()
 
23668
{
 
23669
SDL_smpeg_descr ();
 
23670
  ;
 
23671
  return 0;
 
23672
}
 
23673
_ACEOF
 
23674
rm -f conftest.$ac_objext conftest$ac_exeext
 
23675
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
23676
  (eval $ac_link) 2>conftest.er1
 
23677
  ac_status=$?
 
23678
  grep -v '^ *+' conftest.er1 >conftest.err
 
23679
  rm -f conftest.er1
 
23680
  cat conftest.err >&5
 
23681
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23682
  (exit $ac_status); } &&
 
23683
         { ac_try='test -z "$ac_c_werror_flag"                   || test ! -s conftest.err'
 
23684
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23685
  (eval $ac_try) 2>&5
 
23686
  ac_status=$?
 
23687
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23688
  (exit $ac_status); }; } &&
 
23689
         { ac_try='test -s conftest$ac_exeext'
 
23690
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 
23691
  (eval $ac_try) 2>&5
 
23692
  ac_status=$?
 
23693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
23694
  (exit $ac_status); }; }; then
 
23695
  ac_cv_lib_smpeg_SDL_smpeg_descr=yes
 
23696
else
 
23697
  echo "$as_me: failed program was:" >&5
 
23698
sed 's/^/| /' conftest.$ac_ext >&5
 
23699
 
 
23700
ac_cv_lib_smpeg_SDL_smpeg_descr=no
 
23701
fi
 
23702
rm -f conftest.err conftest.$ac_objext \
 
23703
      conftest$ac_exeext conftest.$ac_ext
 
23704
LIBS=$ac_check_lib_save_LIBS
 
23705
fi
 
23706
echo "$as_me:$LINENO: result: $ac_cv_lib_smpeg_SDL_smpeg_descr" >&5
 
23707
echo "${ECHO_T}$ac_cv_lib_smpeg_SDL_smpeg_descr" >&6
 
23708
if test $ac_cv_lib_smpeg_SDL_smpeg_descr = yes; then
 
23709
   have_smpeg=true
 
23710
fi
 
23711
 
 
23712
fi
 
23713
 
 
23714
 
 
23715
 
 
23716
if test xtrue = xtrue; then
 
23717
  BUILD_MEDIASTREAMER_TRUE=
 
23718
  BUILD_MEDIASTREAMER_FALSE='#'
 
23719
else
 
23720
  BUILD_MEDIASTREAMER_TRUE='#'
 
23721
  BUILD_MEDIASTREAMER_FALSE=
 
23722
fi
 
23723
 
 
23724
 
 
23725
 
 
23726
 
 
23727
if test x$have_xine = xtrue; then
 
23728
  HAVE_XINELIB_TRUE=
 
23729
  HAVE_XINELIB_FALSE='#'
 
23730
else
 
23731
  HAVE_XINELIB_TRUE='#'
 
23732
  HAVE_XINELIB_FALSE=
 
23733
fi
 
23734
 
 
23735
 
 
23736
 
 
23737
if test x$have_smpeg = xtrue; then
 
23738
  HAVE_SMPEG_TRUE=
 
23739
  HAVE_SMPEG_FALSE='#'
 
23740
else
 
23741
  HAVE_SMPEG_TRUE='#'
 
23742
  HAVE_SMPEG_FALSE=
 
23743
fi
 
23744
 
 
23745
 
 
23746
 
 
23747
if test x$video = xtrue; then
 
23748
  BUILD_FFMPEG_TRUE=
 
23749
  BUILD_FFMPEG_FALSE='#'
 
23750
else
 
23751
  BUILD_FFMPEG_TRUE='#'
 
23752
  BUILD_FFMPEG_FALSE=
 
23753
fi
 
23754
 
 
23755
 
 
23756
 
 
23757
if test x$video = xtrue; then
 
23758
  BUILD_GDK_VO_TRUE=
 
23759
  BUILD_GDK_VO_FALSE='#'
 
23760
else
 
23761
  BUILD_GDK_VO_TRUE='#'
 
23762
  BUILD_GDK_VO_FALSE=
 
23763
fi
 
23764
 
 
23765
 
 
23766
 
 
23767
if test x$video = xtrue; then
 
23768
  BUILD_V4L_TRUE=
 
23769
  BUILD_V4L_FALSE='#'
 
23770
else
 
23771
  BUILD_V4L_TRUE='#'
 
23772
  BUILD_V4L_FALSE=
 
23773
fi
 
23774
 
 
23775
 
 
23776
 
 
23777
 
 
23778
if test x$video = xtrue; then
 
23779
  BUILD_MEDIA_API_TRUE=
 
23780
  BUILD_MEDIA_API_FALSE='#'
 
23781
else
 
23782
  BUILD_MEDIA_API_TRUE='#'
 
23783
  BUILD_MEDIA_API_FALSE=
 
23784
fi
 
23785
 
 
23786
 
 
23787
 
 
23788
 
 
23789
if test x$useglib = xfalse; then
 
23790
  BUILD_UGLIB_TRUE=
 
23791
  BUILD_UGLIB_FALSE='#'
 
23792
else
 
23793
  BUILD_UGLIB_TRUE='#'
 
23794
  BUILD_UGLIB_FALSE=
 
23795
fi
 
23796
 
 
23797
 
 
23798
 
 
23799
 
 
23800
if test x$gnome_ui = xtrue; then
 
23801
  BUILD_GNOME_TRUE=
 
23802
  BUILD_GNOME_FALSE='#'
 
23803
else
 
23804
  BUILD_GNOME_TRUE='#'
 
23805
  BUILD_GNOME_FALSE=
 
23806
fi
 
23807
 
 
23808
 
 
23809
 
 
23810
if test x$build_gnome_applet = xtrue; then
 
23811
  BUILD_GNOME_APPLET_TRUE=
 
23812
  BUILD_GNOME_APPLET_FALSE='#'
 
23813
else
 
23814
  BUILD_GNOME_APPLET_TRUE='#'
 
23815
  BUILD_GNOME_APPLET_FALSE=
 
23816
fi
 
23817
 
 
23818
 
 
23819
 
 
23820
if test x$use_installed_speex = xno ; then
 
23821
  BUILD_SPEEX_TRUE=
 
23822
  BUILD_SPEEX_FALSE='#'
 
23823
else
 
23824
  BUILD_SPEEX_TRUE='#'
 
23825
  BUILD_SPEEX_FALSE=
 
23826
fi
 
23827
 
 
23828
 
 
23829
 
 
23830
 
 
23831
 
 
23832
 
 
23833
subdirs="$subdirs ffmpeg speex oRTP osipua"
 
23834
 
 
23835
 
 
23836
##################################################
 
23837
# Check for gtk-doc.
 
23838
##################################################
 
23839
 
 
23840
# Check whether --with-html-dir or --without-html-dir was given.
 
23841
if test "${with_html_dir+set}" = set; then
 
23842
  withval="$with_html_dir"
 
23843
 
 
23844
fi;
 
23845
if test "x$with_html_dir" = "x" ; then
 
23846
  HTML_DIR='${datadir}/gtk-doc/html'
 
23847
else
 
23848
  HTML_DIR=$with_html_dir
 
23849
fi
 
23850
 
 
23851
 
 
23852
 
 
23853
  succeeded=no
 
23854
 
 
23855
  if test -z "$PKG_CONFIG"; then
 
23856
    # Extract the first word of "pkg-config", so it can be a program name with args.
 
23857
set dummy pkg-config; ac_word=$2
 
23858
echo "$as_me:$LINENO: checking for $ac_word" >&5
 
23859
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 
23860
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
 
23861
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
23862
else
 
23863
  case $PKG_CONFIG in
 
23864
  [\\/]* | ?:[\\/]*)
 
23865
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
23866
  ;;
 
23867
  *)
 
23868
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
23869
for as_dir in $PATH
 
23870
do
 
23871
  IFS=$as_save_IFS
 
23872
  test -z "$as_dir" && as_dir=.
 
23873
  for ac_exec_ext in '' $ac_executable_extensions; do
 
23874
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
23875
    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
 
23876
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
23877
    break 2
 
23878
  fi
 
23879
done
 
23880
done
 
23881
 
 
23882
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
23883
  ;;
 
23884
esac
 
23885
fi
 
23886
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
23887
 
 
23888
if test -n "$PKG_CONFIG"; then
 
23889
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
23890
echo "${ECHO_T}$PKG_CONFIG" >&6
 
23891
else
 
23892
  echo "$as_me:$LINENO: result: no" >&5
 
23893
echo "${ECHO_T}no" >&6
 
23894
fi
 
23895
 
 
23896
  fi
 
23897
 
 
23898
  if test "$PKG_CONFIG" = "no" ; then
 
23899
     echo "*** The pkg-config script could not be found. Make sure it is"
 
23900
     echo "*** in your path, or set the PKG_CONFIG environment variable"
 
23901
     echo "*** to the full path to pkg-config."
 
23902
     echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
 
23903
  else
 
23904
     PKG_CONFIG_MIN_VERSION=0.9.0
 
23905
     if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
 
23906
        echo "$as_me:$LINENO: checking for gtk-doc >= 0.4" >&5
 
23907
echo $ECHO_N "checking for gtk-doc >= 0.4... $ECHO_C" >&6
 
23908
 
 
23909
        if $PKG_CONFIG --exists "gtk-doc >= 0.4" ; then
 
23910
            echo "$as_me:$LINENO: result: yes" >&5
 
23911
echo "${ECHO_T}yes" >&6
 
23912
            succeeded=yes
 
23913
 
 
23914
            echo "$as_me:$LINENO: checking GTK_DOC_CFLAGS" >&5
 
23915
echo $ECHO_N "checking GTK_DOC_CFLAGS... $ECHO_C" >&6
 
23916
            GTK_DOC_CFLAGS=`$PKG_CONFIG --cflags "gtk-doc >= 0.4"`
 
23917
            echo "$as_me:$LINENO: result: $GTK_DOC_CFLAGS" >&5
 
23918
echo "${ECHO_T}$GTK_DOC_CFLAGS" >&6
 
23919
 
 
23920
            echo "$as_me:$LINENO: checking GTK_DOC_LIBS" >&5
 
23921
echo $ECHO_N "checking GTK_DOC_LIBS... $ECHO_C" >&6
 
23922
            GTK_DOC_LIBS=`$PKG_CONFIG --libs "gtk-doc >= 0.4"`
 
23923
            echo "$as_me:$LINENO: result: $GTK_DOC_LIBS" >&5
 
23924
echo "${ECHO_T}$GTK_DOC_LIBS" >&6
 
23925
        else
 
23926
            GTK_DOC_CFLAGS=""
 
23927
            GTK_DOC_LIBS=""
 
23928
            ## If we have a custom action on failure, don't print errors, but
 
23929
            ## do set a variable so people can do so.
 
23930
            GTK_DOC_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk-doc >= 0.4"`
 
23931
 
 
23932
        fi
 
23933
 
 
23934
 
 
23935
 
 
23936
     else
 
23937
        echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
 
23938
        echo "*** See http://www.freedesktop.org/software/pkgconfig"
 
23939
     fi
 
23940
  fi
 
23941
 
 
23942
  if test $succeeded = yes; then
 
23943
     enable_gtk_doc=yes
 
23944
  else
 
23945
     enable_gtk_doc=no
 
23946
  fi
 
23947
 
 
23948
 
 
23949
 
 
23950
if test x$enable_gtk_doc = xyes ; then
 
23951
  ENABLE_GTK_DOC_TRUE=
 
23952
  ENABLE_GTK_DOC_FALSE='#'
 
23953
else
 
23954
  ENABLE_GTK_DOC_TRUE='#'
 
23955
  ENABLE_GTK_DOC_FALSE=
 
23956
fi
 
23957
 
 
23958
 
 
23959
LINPHONE_CFLAGS="$GLIB_CFLAGS -I${includedir} -I${includedir}/linphone -I${includedir}/osipua -I${includedir}/ortp "
 
23960
LINPHONE_LIBS="$GLIB_LIBS -L${libdir} -losipua -lmediastreamer -llinphone"
 
23961
 
 
23962
 
 
23963
 
 
23964
 
 
23965
 
 
23966
cat >>confdefs.h <<_ACEOF
 
23967
#define LINPHONE_VERSION "$VERSION"
 
23968
_ACEOF
 
23969
 
 
23970
 
 
23971
                                                                                                                                                                                                                                      ac_config_files="$ac_config_files Makefile po/Makefile.in pixmaps/Makefile debian/Makefile ipkg/Makefile ipkg/linphone.control support/Makefile mediastreamer/Makefile media_api/Makefile osipua/Makefile gsmlib/Makefile lpc10-1.5/Makefile coreapi/Makefile gnome/Makefile console/Makefile share/Makefile share/C/Makefile share/fr/Makefile share/it/Makefile share/ja/Makefile share/linphone.pc developer-docs/Makefile developer-docs/mediastreamer/Makefile"
 
23972
cat >confcache <<\_ACEOF
 
23973
# This file is a shell script that caches the results of configure
 
23974
# tests run on this system so they can be shared between configure
 
23975
# scripts and configure runs, see configure's option --config-cache.
 
23976
# It is not useful on other systems.  If it contains results you don't
 
23977
# want to keep, you may remove or edit it.
 
23978
#
 
23979
# config.status only pays attention to the cache file if you give it
 
23980
# the --recheck option to rerun configure.
 
23981
#
 
23982
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
23983
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
23984
# following values.
 
23985
 
 
23986
_ACEOF
 
23987
 
 
23988
# The following way of writing the cache mishandles newlines in values,
 
23989
# but we know of no workaround that is simple, portable, and efficient.
 
23990
# So, don't put newlines in cache variables' values.
 
23991
# Ultrix sh set writes to stderr and can't be redirected directly,
 
23992
# and sets the high bit in the cache file unless we assign to the vars.
 
23993
{
 
23994
  (set) 2>&1 |
 
23995
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
23996
    *ac_space=\ *)
 
23997
      # `set' does not quote correctly, so add quotes (double-quote
 
23998
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
23999
      sed -n \
 
24000
        "s/'/'\\\\''/g;
 
24001
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
24002
      ;;
 
24003
    *)
 
24004
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
24005
      sed -n \
 
24006
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
24007
      ;;
 
24008
    esac;
 
24009
} |
 
24010
  sed '
 
24011
     t clear
 
24012
     : clear
 
24013
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
24014
     t end
 
24015
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
24016
     : end' >>confcache
 
24017
if diff $cache_file confcache >/dev/null 2>&1; then :; else
 
24018
  if test -w $cache_file; then
 
24019
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
 
24020
    cat confcache >$cache_file
 
24021
  else
 
24022
    echo "not updating unwritable cache $cache_file"
 
24023
  fi
 
24024
fi
 
24025
rm -f confcache
 
24026
 
 
24027
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
24028
# Let make expand exec_prefix.
 
24029
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
24030
 
 
24031
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
24032
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
24033
# trailing colons and then remove the whole line if VPATH becomes empty
 
24034
# (actually we leave an empty line to preserve line numbers).
 
24035
if test "x$srcdir" = x.; then
 
24036
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
24037
s/:*\$(srcdir):*/:/;
 
24038
s/:*\${srcdir}:*/:/;
 
24039
s/:*@srcdir@:*/:/;
 
24040
s/^\([^=]*=[     ]*\):*/\1/;
 
24041
s/:*$//;
 
24042
s/^[^=]*=[       ]*$//;
 
24043
}'
 
24044
fi
 
24045
 
 
24046
DEFS=-DHAVE_CONFIG_H
 
24047
 
 
24048
ac_libobjs=
 
24049
ac_ltlibobjs=
 
24050
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
24051
  # 1. Remove the extension, and $U if already installed.
 
24052
  ac_i=`echo "$ac_i" |
 
24053
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
 
24054
  # 2. Add them.
 
24055
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
24056
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
24057
done
 
24058
LIBOBJS=$ac_libobjs
 
24059
 
 
24060
LTLIBOBJS=$ac_ltlibobjs
 
24061
 
 
24062
 
 
24063
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
24064
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
24065
Usually this means the macro was only invoked conditionally." >&5
 
24066
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
24067
Usually this means the macro was only invoked conditionally." >&2;}
 
24068
   { (exit 1); exit 1; }; }
 
24069
fi
 
24070
 
 
24071
 
 
24072
        mv -f po/POTFILES po/POTFILES.tmp
 
24073
        sed -e '/\[encoding.*\]/d' -e 's/\[.*\] *//' < po/POTFILES.tmp > po/POTFILES
 
24074
        rm -f po/POTFILES.tmp
 
24075
 
 
24076
 
 
24077
if test -z "${BUILD_TRUESPEECH_TRUE}" && test -z "${BUILD_TRUESPEECH_FALSE}"; then
 
24078
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_TRUESPEECH\" was never defined.
 
24079
Usually this means the macro was only invoked conditionally." >&5
 
24080
echo "$as_me: error: conditional \"BUILD_TRUESPEECH\" was never defined.
 
24081
Usually this means the macro was only invoked conditionally." >&2;}
 
24082
   { (exit 1); exit 1; }; }
 
24083
fi
 
24084
if test -z "${BUILD_MEDIASTREAMER_TRUE}" && test -z "${BUILD_MEDIASTREAMER_FALSE}"; then
 
24085
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEDIASTREAMER\" was never defined.
 
24086
Usually this means the macro was only invoked conditionally." >&5
 
24087
echo "$as_me: error: conditional \"BUILD_MEDIASTREAMER\" was never defined.
 
24088
Usually this means the macro was only invoked conditionally." >&2;}
 
24089
   { (exit 1); exit 1; }; }
 
24090
fi
 
24091
if test -z "${HAVE_XINELIB_TRUE}" && test -z "${HAVE_XINELIB_FALSE}"; then
 
24092
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_XINELIB\" was never defined.
 
24093
Usually this means the macro was only invoked conditionally." >&5
 
24094
echo "$as_me: error: conditional \"HAVE_XINELIB\" was never defined.
 
24095
Usually this means the macro was only invoked conditionally." >&2;}
 
24096
   { (exit 1); exit 1; }; }
 
24097
fi
 
24098
if test -z "${HAVE_SMPEG_TRUE}" && test -z "${HAVE_SMPEG_FALSE}"; then
 
24099
  { { echo "$as_me:$LINENO: error: conditional \"HAVE_SMPEG\" was never defined.
 
24100
Usually this means the macro was only invoked conditionally." >&5
 
24101
echo "$as_me: error: conditional \"HAVE_SMPEG\" was never defined.
 
24102
Usually this means the macro was only invoked conditionally." >&2;}
 
24103
   { (exit 1); exit 1; }; }
 
24104
fi
 
24105
if test -z "${BUILD_FFMPEG_TRUE}" && test -z "${BUILD_FFMPEG_FALSE}"; then
 
24106
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_FFMPEG\" was never defined.
 
24107
Usually this means the macro was only invoked conditionally." >&5
 
24108
echo "$as_me: error: conditional \"BUILD_FFMPEG\" was never defined.
 
24109
Usually this means the macro was only invoked conditionally." >&2;}
 
24110
   { (exit 1); exit 1; }; }
 
24111
fi
 
24112
if test -z "${BUILD_GDK_VO_TRUE}" && test -z "${BUILD_GDK_VO_FALSE}"; then
 
24113
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GDK_VO\" was never defined.
 
24114
Usually this means the macro was only invoked conditionally." >&5
 
24115
echo "$as_me: error: conditional \"BUILD_GDK_VO\" was never defined.
 
24116
Usually this means the macro was only invoked conditionally." >&2;}
 
24117
   { (exit 1); exit 1; }; }
 
24118
fi
 
24119
if test -z "${BUILD_V4L_TRUE}" && test -z "${BUILD_V4L_FALSE}"; then
 
24120
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_V4L\" was never defined.
 
24121
Usually this means the macro was only invoked conditionally." >&5
 
24122
echo "$as_me: error: conditional \"BUILD_V4L\" was never defined.
 
24123
Usually this means the macro was only invoked conditionally." >&2;}
 
24124
   { (exit 1); exit 1; }; }
 
24125
fi
 
24126
if test -z "${BUILD_MEDIA_API_TRUE}" && test -z "${BUILD_MEDIA_API_FALSE}"; then
 
24127
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEDIA_API\" was never defined.
 
24128
Usually this means the macro was only invoked conditionally." >&5
 
24129
echo "$as_me: error: conditional \"BUILD_MEDIA_API\" was never defined.
 
24130
Usually this means the macro was only invoked conditionally." >&2;}
 
24131
   { (exit 1); exit 1; }; }
 
24132
fi
 
24133
if test -z "${BUILD_UGLIB_TRUE}" && test -z "${BUILD_UGLIB_FALSE}"; then
 
24134
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_UGLIB\" was never defined.
 
24135
Usually this means the macro was only invoked conditionally." >&5
 
24136
echo "$as_me: error: conditional \"BUILD_UGLIB\" was never defined.
 
24137
Usually this means the macro was only invoked conditionally." >&2;}
 
24138
   { (exit 1); exit 1; }; }
 
24139
fi
 
24140
if test -z "${BUILD_GNOME_TRUE}" && test -z "${BUILD_GNOME_FALSE}"; then
 
24141
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GNOME\" was never defined.
 
24142
Usually this means the macro was only invoked conditionally." >&5
 
24143
echo "$as_me: error: conditional \"BUILD_GNOME\" was never defined.
 
24144
Usually this means the macro was only invoked conditionally." >&2;}
 
24145
   { (exit 1); exit 1; }; }
 
24146
fi
 
24147
if test -z "${BUILD_GNOME_APPLET_TRUE}" && test -z "${BUILD_GNOME_APPLET_FALSE}"; then
 
24148
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_GNOME_APPLET\" was never defined.
 
24149
Usually this means the macro was only invoked conditionally." >&5
 
24150
echo "$as_me: error: conditional \"BUILD_GNOME_APPLET\" was never defined.
 
24151
Usually this means the macro was only invoked conditionally." >&2;}
 
24152
   { (exit 1); exit 1; }; }
 
24153
fi
 
24154
if test -z "${BUILD_SPEEX_TRUE}" && test -z "${BUILD_SPEEX_FALSE}"; then
 
24155
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_SPEEX\" was never defined.
 
24156
Usually this means the macro was only invoked conditionally." >&5
 
24157
echo "$as_me: error: conditional \"BUILD_SPEEX\" was never defined.
 
24158
Usually this means the macro was only invoked conditionally." >&2;}
 
24159
   { (exit 1); exit 1; }; }
 
24160
fi
 
24161
if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
 
24162
  { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
24163
Usually this means the macro was only invoked conditionally." >&5
 
24164
echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
 
24165
Usually this means the macro was only invoked conditionally." >&2;}
 
24166
   { (exit 1); exit 1; }; }
 
24167
fi
 
24168
 
 
24169
: ${CONFIG_STATUS=./config.status}
 
24170
ac_clean_files_save=$ac_clean_files
 
24171
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
24172
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
24173
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
24174
cat >$CONFIG_STATUS <<_ACEOF
 
24175
#! $SHELL
 
24176
# Generated by $as_me.
 
24177
# Run this file to recreate the current configuration.
 
24178
# Compiler output produced by configure, useful for debugging
 
24179
# configure, is in config.log if it exists.
 
24180
 
 
24181
debug=false
 
24182
ac_cs_recheck=false
 
24183
ac_cs_silent=false
 
24184
SHELL=\${CONFIG_SHELL-$SHELL}
 
24185
_ACEOF
 
24186
 
 
24187
cat >>$CONFIG_STATUS <<\_ACEOF
 
24188
## --------------------- ##
 
24189
## M4sh Initialization.  ##
 
24190
## --------------------- ##
 
24191
 
 
24192
# Be Bourne compatible
 
24193
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
24194
  emulate sh
 
24195
  NULLCMD=:
 
24196
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
24197
  # is contrary to our usage.  Disable this feature.
 
24198
  alias -g '${1+"$@"}'='"$@"'
 
24199
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
 
24200
  set -o posix
 
24201
fi
 
24202
DUALCASE=1; export DUALCASE # for MKS sh
 
24203
 
 
24204
# Support unset when possible.
 
24205
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
24206
  as_unset=unset
 
24207
else
 
24208
  as_unset=false
 
24209
fi
 
24210
 
 
24211
 
 
24212
# Work around bugs in pre-3.0 UWIN ksh.
 
24213
$as_unset ENV MAIL MAILPATH
 
24214
PS1='$ '
 
24215
PS2='> '
 
24216
PS4='+ '
 
24217
 
 
24218
# NLS nuisances.
 
24219
for as_var in \
 
24220
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
24221
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
24222
  LC_TELEPHONE LC_TIME
 
24223
do
 
24224
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
24225
    eval $as_var=C; export $as_var
 
24226
  else
 
24227
    $as_unset $as_var
 
24228
  fi
 
24229
done
 
24230
 
 
24231
# Required to use basename.
 
24232
if expr a : '\(a\)' >/dev/null 2>&1; then
 
24233
  as_expr=expr
 
24234
else
 
24235
  as_expr=false
 
24236
fi
 
24237
 
 
24238
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
24239
  as_basename=basename
 
24240
else
 
24241
  as_basename=false
 
24242
fi
 
24243
 
 
24244
 
 
24245
# Name of the executable.
 
24246
as_me=`$as_basename "$0" ||
 
24247
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
24248
         X"$0" : 'X\(//\)$' \| \
 
24249
         X"$0" : 'X\(/\)$' \| \
 
24250
         .     : '\(.\)' 2>/dev/null ||
 
24251
echo X/"$0" |
 
24252
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
24253
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
24254
          /^X\/\(\/\).*/{ s//\1/; q; }
 
24255
          s/.*/./; q'`
 
24256
 
 
24257
 
 
24258
# PATH needs CR, and LINENO needs CR and PATH.
 
24259
# Avoid depending upon Character Ranges.
 
24260
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
24261
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
24262
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
24263
as_cr_digits='0123456789'
 
24264
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
24265
 
 
24266
# The user is always right.
 
24267
if test "${PATH_SEPARATOR+set}" != set; then
 
24268
  echo "#! /bin/sh" >conf$$.sh
 
24269
  echo  "exit 0"   >>conf$$.sh
 
24270
  chmod +x conf$$.sh
 
24271
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
24272
    PATH_SEPARATOR=';'
 
24273
  else
 
24274
    PATH_SEPARATOR=:
 
24275
  fi
 
24276
  rm -f conf$$.sh
 
24277
fi
 
24278
 
 
24279
 
 
24280
  as_lineno_1=$LINENO
 
24281
  as_lineno_2=$LINENO
 
24282
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24283
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24284
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
 
24285
  # Find who we are.  Look in the path if we contain no path at all
 
24286
  # relative or not.
 
24287
  case $0 in
 
24288
    *[\\/]* ) as_myself=$0 ;;
 
24289
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24290
for as_dir in $PATH
 
24291
do
 
24292
  IFS=$as_save_IFS
 
24293
  test -z "$as_dir" && as_dir=.
 
24294
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
24295
done
 
24296
 
 
24297
       ;;
 
24298
  esac
 
24299
  # We did not find ourselves, most probably we were run as `sh COMMAND'
 
24300
  # in which case we are not to be found in the path.
 
24301
  if test "x$as_myself" = x; then
 
24302
    as_myself=$0
 
24303
  fi
 
24304
  if test ! -f "$as_myself"; then
 
24305
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
 
24306
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
 
24307
   { (exit 1); exit 1; }; }
 
24308
  fi
 
24309
  case $CONFIG_SHELL in
 
24310
  '')
 
24311
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
24312
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
24313
do
 
24314
  IFS=$as_save_IFS
 
24315
  test -z "$as_dir" && as_dir=.
 
24316
  for as_base in sh bash ksh sh5; do
 
24317
         case $as_dir in
 
24318
         /*)
 
24319
           if ("$as_dir/$as_base" -c '
 
24320
  as_lineno_1=$LINENO
 
24321
  as_lineno_2=$LINENO
 
24322
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
 
24323
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
24324
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
 
24325
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
 
24326
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
 
24327
             CONFIG_SHELL=$as_dir/$as_base
 
24328
             export CONFIG_SHELL
 
24329
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
24330
           fi;;
 
24331
         esac
 
24332
       done
 
24333
done
 
24334
;;
 
24335
  esac
 
24336
 
 
24337
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
24338
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
24339
  # line-number line before each line; the second 'sed' does the real
 
24340
  # work.  The second script uses 'N' to pair each line-number line
 
24341
  # with the numbered line, and appends trailing '-' during
 
24342
  # substitution so that $LINENO is not a special case at line end.
 
24343
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
24344
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
 
24345
  sed '=' <$as_myself |
 
24346
    sed '
 
24347
      N
 
24348
      s,$,-,
 
24349
      : loop
 
24350
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
24351
      t loop
 
24352
      s,-$,,
 
24353
      s,^['$as_cr_digits']*\n,,
 
24354
    ' >$as_me.lineno &&
 
24355
  chmod +x $as_me.lineno ||
 
24356
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
 
24357
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
 
24358
   { (exit 1); exit 1; }; }
 
24359
 
 
24360
  # Don't try to exec as it changes $[0], causing all sort of problems
 
24361
  # (the dirname of $[0] is not the place where we might find the
 
24362
  # original and so on.  Autoconf is especially sensible to this).
 
24363
  . ./$as_me.lineno
 
24364
  # Exit status is that of the last command.
 
24365
  exit
 
24366
}
 
24367
 
 
24368
 
 
24369
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
24370
  *c*,-n*) ECHO_N= ECHO_C='
 
24371
' ECHO_T='      ' ;;
 
24372
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
24373
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
24374
esac
 
24375
 
 
24376
if expr a : '\(a\)' >/dev/null 2>&1; then
 
24377
  as_expr=expr
 
24378
else
 
24379
  as_expr=false
 
24380
fi
 
24381
 
 
24382
rm -f conf$$ conf$$.exe conf$$.file
 
24383
echo >conf$$.file
 
24384
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
24385
  # We could just check for DJGPP; but this test a) works b) is more generic
 
24386
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
 
24387
  if test -f conf$$.exe; then
 
24388
    # Don't use ln at all; we don't have any links
 
24389
    as_ln_s='cp -p'
 
24390
  else
 
24391
    as_ln_s='ln -s'
 
24392
  fi
 
24393
elif ln conf$$.file conf$$ 2>/dev/null; then
 
24394
  as_ln_s=ln
 
24395
else
 
24396
  as_ln_s='cp -p'
 
24397
fi
 
24398
rm -f conf$$ conf$$.exe conf$$.file
 
24399
 
 
24400
if mkdir -p . 2>/dev/null; then
 
24401
  as_mkdir_p=:
 
24402
else
 
24403
  test -d ./-p && rmdir ./-p
 
24404
  as_mkdir_p=false
 
24405
fi
 
24406
 
 
24407
as_executable_p="test -f"
 
24408
 
 
24409
# Sed expression to map a string onto a valid CPP name.
 
24410
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
24411
 
 
24412
# Sed expression to map a string onto a valid variable name.
 
24413
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
24414
 
 
24415
 
 
24416
# IFS
 
24417
# We need space, tab and new line, in precisely that order.
 
24418
as_nl='
 
24419
'
 
24420
IFS="   $as_nl"
 
24421
 
 
24422
# CDPATH.
 
24423
$as_unset CDPATH
 
24424
 
 
24425
exec 6>&1
 
24426
 
 
24427
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
24428
# report actual input values of CONFIG_FILES etc. instead of their
 
24429
# values after options handling.  Logging --version etc. is OK.
 
24430
exec 5>>config.log
 
24431
{
 
24432
  echo
 
24433
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
24434
## Running $as_me. ##
 
24435
_ASBOX
 
24436
} >&5
 
24437
cat >&5 <<_CSEOF
 
24438
 
 
24439
This file was extended by $as_me, which was
 
24440
generated by GNU Autoconf 2.59.  Invocation command line was
 
24441
 
 
24442
  CONFIG_FILES    = $CONFIG_FILES
 
24443
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
24444
  CONFIG_LINKS    = $CONFIG_LINKS
 
24445
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
24446
  $ $0 $@
 
24447
 
 
24448
_CSEOF
 
24449
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
24450
echo >&5
 
24451
_ACEOF
 
24452
 
 
24453
# Files that config.status was made for.
 
24454
if test -n "$ac_config_files"; then
 
24455
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
 
24456
fi
 
24457
 
 
24458
if test -n "$ac_config_headers"; then
 
24459
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
24460
fi
 
24461
 
 
24462
if test -n "$ac_config_links"; then
 
24463
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
24464
fi
 
24465
 
 
24466
if test -n "$ac_config_commands"; then
 
24467
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
24468
fi
 
24469
 
 
24470
cat >>$CONFIG_STATUS <<\_ACEOF
 
24471
 
 
24472
ac_cs_usage="\
 
24473
\`$as_me' instantiates files from templates according to the
 
24474
current configuration.
 
24475
 
 
24476
Usage: $0 [OPTIONS] [FILE]...
 
24477
 
 
24478
  -h, --help       print this help, then exit
 
24479
  -V, --version    print version number, then exit
 
24480
  -q, --quiet      do not print progress messages
 
24481
  -d, --debug      don't remove temporary files
 
24482
      --recheck    update $as_me by reconfiguring in the same conditions
 
24483
  --file=FILE[:TEMPLATE]
 
24484
                   instantiate the configuration file FILE
 
24485
  --header=FILE[:TEMPLATE]
 
24486
                   instantiate the configuration header FILE
 
24487
 
 
24488
Configuration files:
 
24489
$config_files
 
24490
 
 
24491
Configuration headers:
 
24492
$config_headers
 
24493
 
 
24494
Configuration commands:
 
24495
$config_commands
 
24496
 
 
24497
Report bugs to <bug-autoconf@gnu.org>."
 
24498
_ACEOF
 
24499
 
 
24500
cat >>$CONFIG_STATUS <<_ACEOF
 
24501
ac_cs_version="\\
 
24502
config.status
 
24503
configured by $0, generated by GNU Autoconf 2.59,
 
24504
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
24505
 
 
24506
Copyright (C) 2003 Free Software Foundation, Inc.
 
24507
This config.status script is free software; the Free Software Foundation
 
24508
gives unlimited permission to copy, distribute and modify it."
 
24509
srcdir=$srcdir
 
24510
INSTALL="$INSTALL"
 
24511
_ACEOF
 
24512
 
 
24513
cat >>$CONFIG_STATUS <<\_ACEOF
 
24514
# If no file are specified by the user, then we need to provide default
 
24515
# value.  By we need to know if files were specified by the user.
 
24516
ac_need_defaults=:
 
24517
while test $# != 0
 
24518
do
 
24519
  case $1 in
 
24520
  --*=*)
 
24521
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
24522
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
24523
    ac_shift=:
 
24524
    ;;
 
24525
  -*)
 
24526
    ac_option=$1
 
24527
    ac_optarg=$2
 
24528
    ac_shift=shift
 
24529
    ;;
 
24530
  *) # This is not an option, so the user has probably given explicit
 
24531
     # arguments.
 
24532
     ac_option=$1
 
24533
     ac_need_defaults=false;;
 
24534
  esac
 
24535
 
 
24536
  case $ac_option in
 
24537
  # Handling of the options.
 
24538
_ACEOF
 
24539
cat >>$CONFIG_STATUS <<\_ACEOF
 
24540
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
24541
    ac_cs_recheck=: ;;
 
24542
  --version | --vers* | -V )
 
24543
    echo "$ac_cs_version"; exit 0 ;;
 
24544
  --he | --h)
 
24545
    # Conflict between --help and --header
 
24546
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
 
24547
Try \`$0 --help' for more information." >&5
 
24548
echo "$as_me: error: ambiguous option: $1
 
24549
Try \`$0 --help' for more information." >&2;}
 
24550
   { (exit 1); exit 1; }; };;
 
24551
  --help | --hel | -h )
 
24552
    echo "$ac_cs_usage"; exit 0 ;;
 
24553
  --debug | --d* | -d )
 
24554
    debug=: ;;
 
24555
  --file | --fil | --fi | --f )
 
24556
    $ac_shift
 
24557
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
24558
    ac_need_defaults=false;;
 
24559
  --header | --heade | --head | --hea )
 
24560
    $ac_shift
 
24561
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
24562
    ac_need_defaults=false;;
 
24563
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
24564
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
24565
    ac_cs_silent=: ;;
 
24566
 
 
24567
  # This is an error.
 
24568
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
 
24569
Try \`$0 --help' for more information." >&5
 
24570
echo "$as_me: error: unrecognized option: $1
 
24571
Try \`$0 --help' for more information." >&2;}
 
24572
   { (exit 1); exit 1; }; } ;;
 
24573
 
 
24574
  *) ac_config_targets="$ac_config_targets $1" ;;
 
24575
 
 
24576
  esac
 
24577
  shift
 
24578
done
 
24579
 
 
24580
ac_configure_extra_args=
 
24581
 
 
24582
if $ac_cs_silent; then
 
24583
  exec 6>/dev/null
 
24584
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
24585
fi
 
24586
 
 
24587
_ACEOF
 
24588
cat >>$CONFIG_STATUS <<_ACEOF
 
24589
if \$ac_cs_recheck; then
 
24590
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
24591
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
24592
fi
 
24593
 
 
24594
_ACEOF
 
24595
 
 
24596
cat >>$CONFIG_STATUS <<_ACEOF
 
24597
#
 
24598
# INIT-COMMANDS section.
 
24599
#
 
24600
 
 
24601
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
24602
INTLTOOL_PERL=${INTLTOOL_PERL} ac_aux_dir=${ac_aux_dir}
 
24603
 
 
24604
 
 
24605
_ACEOF
 
24606
 
 
24607
 
 
24608
 
 
24609
cat >>$CONFIG_STATUS <<\_ACEOF
 
24610
for ac_config_target in $ac_config_targets
 
24611
do
 
24612
  case "$ac_config_target" in
 
24613
  # Handling of arguments.
 
24614
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
24615
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
 
24616
  "pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
 
24617
  "debian/Makefile" ) CONFIG_FILES="$CONFIG_FILES debian/Makefile" ;;
 
24618
  "ipkg/Makefile" ) CONFIG_FILES="$CONFIG_FILES ipkg/Makefile" ;;
 
24619
  "ipkg/linphone.control" ) CONFIG_FILES="$CONFIG_FILES ipkg/linphone.control" ;;
 
24620
  "support/Makefile" ) CONFIG_FILES="$CONFIG_FILES support/Makefile" ;;
 
24621
  "mediastreamer/Makefile" ) CONFIG_FILES="$CONFIG_FILES mediastreamer/Makefile" ;;
 
24622
  "media_api/Makefile" ) CONFIG_FILES="$CONFIG_FILES media_api/Makefile" ;;
 
24623
  "osipua/Makefile" ) CONFIG_FILES="$CONFIG_FILES osipua/Makefile" ;;
 
24624
  "gsmlib/Makefile" ) CONFIG_FILES="$CONFIG_FILES gsmlib/Makefile" ;;
 
24625
  "lpc10-1.5/Makefile" ) CONFIG_FILES="$CONFIG_FILES lpc10-1.5/Makefile" ;;
 
24626
  "coreapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES coreapi/Makefile" ;;
 
24627
  "gnome/Makefile" ) CONFIG_FILES="$CONFIG_FILES gnome/Makefile" ;;
 
24628
  "console/Makefile" ) CONFIG_FILES="$CONFIG_FILES console/Makefile" ;;
 
24629
  "share/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/Makefile" ;;
 
24630
  "share/C/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/C/Makefile" ;;
 
24631
  "share/fr/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/fr/Makefile" ;;
 
24632
  "share/it/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/it/Makefile" ;;
 
24633
  "share/ja/Makefile" ) CONFIG_FILES="$CONFIG_FILES share/ja/Makefile" ;;
 
24634
  "share/linphone.pc" ) CONFIG_FILES="$CONFIG_FILES share/linphone.pc" ;;
 
24635
  "developer-docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES developer-docs/Makefile" ;;
 
24636
  "developer-docs/mediastreamer/Makefile" ) CONFIG_FILES="$CONFIG_FILES developer-docs/mediastreamer/Makefile" ;;
 
24637
  "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
24638
  "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
 
24639
  "default-2" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-2" ;;
 
24640
  "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
24641
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
24642
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
24643
   { (exit 1); exit 1; }; };;
 
24644
  esac
 
24645
done
 
24646
 
 
24647
# If the user did not use the arguments to specify the items to instantiate,
 
24648
# then the envvar interface is used.  Set only those that are not.
 
24649
# We use the long form for the default assignment because of an extremely
 
24650
# bizarre bug on SunOS 4.1.3.
 
24651
if $ac_need_defaults; then
 
24652
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
24653
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
24654
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
24655
fi
 
24656
 
 
24657
# Have a temporary directory for convenience.  Make it in the build tree
 
24658
# simply because there is no reason to put it here, and in addition,
 
24659
# creating and moving files from /tmp can sometimes cause problems.
 
24660
# Create a temporary directory, and hook for its removal unless debugging.
 
24661
$debug ||
 
24662
{
 
24663
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
24664
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
24665
}
 
24666
 
 
24667
# Create a (secure) tmp directory for tmp files.
 
24668
 
 
24669
{
 
24670
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
24671
  test -n "$tmp" && test -d "$tmp"
 
24672
}  ||
 
24673
{
 
24674
  tmp=./confstat$$-$RANDOM
 
24675
  (umask 077 && mkdir $tmp)
 
24676
} ||
 
24677
{
 
24678
   echo "$me: cannot create a temporary directory in ." >&2
 
24679
   { (exit 1); exit 1; }
 
24680
}
 
24681
 
 
24682
_ACEOF
 
24683
 
 
24684
cat >>$CONFIG_STATUS <<_ACEOF
 
24685
 
 
24686
#
 
24687
# CONFIG_FILES section.
 
24688
#
 
24689
 
 
24690
# No need to generate the scripts if there are no CONFIG_FILES.
 
24691
# This happens for instance when ./config.status config.h
 
24692
if test -n "\$CONFIG_FILES"; then
 
24693
  # Protect against being on the right side of a sed subst in config.status.
 
24694
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
 
24695
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
 
24696
s,@SHELL@,$SHELL,;t t
 
24697
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
 
24698
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
 
24699
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
 
24700
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
 
24701
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
 
24702
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
 
24703
s,@exec_prefix@,$exec_prefix,;t t
 
24704
s,@prefix@,$prefix,;t t
 
24705
s,@program_transform_name@,$program_transform_name,;t t
 
24706
s,@bindir@,$bindir,;t t
 
24707
s,@sbindir@,$sbindir,;t t
 
24708
s,@libexecdir@,$libexecdir,;t t
 
24709
s,@datadir@,$datadir,;t t
 
24710
s,@sysconfdir@,$sysconfdir,;t t
 
24711
s,@sharedstatedir@,$sharedstatedir,;t t
 
24712
s,@localstatedir@,$localstatedir,;t t
 
24713
s,@libdir@,$libdir,;t t
 
24714
s,@includedir@,$includedir,;t t
 
24715
s,@oldincludedir@,$oldincludedir,;t t
 
24716
s,@infodir@,$infodir,;t t
 
24717
s,@mandir@,$mandir,;t t
 
24718
s,@build_alias@,$build_alias,;t t
 
24719
s,@host_alias@,$host_alias,;t t
 
24720
s,@target_alias@,$target_alias,;t t
 
24721
s,@DEFS@,$DEFS,;t t
 
24722
s,@ECHO_C@,$ECHO_C,;t t
 
24723
s,@ECHO_N@,$ECHO_N,;t t
 
24724
s,@ECHO_T@,$ECHO_T,;t t
 
24725
s,@LIBS@,$LIBS,;t t
 
24726
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
 
24727
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
 
24728
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
 
24729
s,@PACKAGE@,$PACKAGE,;t t
 
24730
s,@VERSION@,$VERSION,;t t
 
24731
s,@ACLOCAL@,$ACLOCAL,;t t
 
24732
s,@AUTOCONF@,$AUTOCONF,;t t
 
24733
s,@AUTOMAKE@,$AUTOMAKE,;t t
 
24734
s,@AUTOHEADER@,$AUTOHEADER,;t t
 
24735
s,@MAKEINFO@,$MAKEINFO,;t t
 
24736
s,@AMTAR@,$AMTAR,;t t
 
24737
s,@install_sh@,$install_sh,;t t
 
24738
s,@STRIP@,$STRIP,;t t
 
24739
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
 
24740
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
 
24741
s,@AWK@,$AWK,;t t
 
24742
s,@SET_MAKE@,$SET_MAKE,;t t
 
24743
s,@CC@,$CC,;t t
 
24744
s,@CFLAGS@,$CFLAGS,;t t
 
24745
s,@LDFLAGS@,$LDFLAGS,;t t
 
24746
s,@CPPFLAGS@,$CPPFLAGS,;t t
 
24747
s,@ac_ct_CC@,$ac_ct_CC,;t t
 
24748
s,@EXEEXT@,$EXEEXT,;t t
 
24749
s,@OBJEXT@,$OBJEXT,;t t
 
24750
s,@DEPDIR@,$DEPDIR,;t t
 
24751
s,@am__include@,$am__include,;t t
 
24752
s,@am__quote@,$am__quote,;t t
 
24753
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
 
24754
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
 
24755
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
 
24756
s,@CCDEPMODE@,$CCDEPMODE,;t t
 
24757
s,@CPP@,$CPP,;t t
 
24758
s,@EGREP@,$EGREP,;t t
 
24759
s,@INTLTOOL_DESKTOP_RULE@,$INTLTOOL_DESKTOP_RULE,;t t
 
24760
s,@INTLTOOL_DIRECTORY_RULE@,$INTLTOOL_DIRECTORY_RULE,;t t
 
24761
s,@INTLTOOL_KEYS_RULE@,$INTLTOOL_KEYS_RULE,;t t
 
24762
s,@INTLTOOL_PROP_RULE@,$INTLTOOL_PROP_RULE,;t t
 
24763
s,@INTLTOOL_OAF_RULE@,$INTLTOOL_OAF_RULE,;t t
 
24764
s,@INTLTOOL_PONG_RULE@,$INTLTOOL_PONG_RULE,;t t
 
24765
s,@INTLTOOL_SERVER_RULE@,$INTLTOOL_SERVER_RULE,;t t
 
24766
s,@INTLTOOL_SHEET_RULE@,$INTLTOOL_SHEET_RULE,;t t
 
24767
s,@INTLTOOL_SOUNDLIST_RULE@,$INTLTOOL_SOUNDLIST_RULE,;t t
 
24768
s,@INTLTOOL_UI_RULE@,$INTLTOOL_UI_RULE,;t t
 
24769
s,@INTLTOOL_XAM_RULE@,$INTLTOOL_XAM_RULE,;t t
 
24770
s,@INTLTOOL_KBD_RULE@,$INTLTOOL_KBD_RULE,;t t
 
24771
s,@INTLTOOL_XML_RULE@,$INTLTOOL_XML_RULE,;t t
 
24772
s,@INTLTOOL_CAVES_RULE@,$INTLTOOL_CAVES_RULE,;t t
 
24773
s,@INTLTOOL_SCHEMAS_RULE@,$INTLTOOL_SCHEMAS_RULE,;t t
 
24774
s,@INTLTOOL_THEME_RULE@,$INTLTOOL_THEME_RULE,;t t
 
24775
s,@INTLTOOL_EXTRACT@,$INTLTOOL_EXTRACT,;t t
 
24776
s,@INTLTOOL_MERGE@,$INTLTOOL_MERGE,;t t
 
24777
s,@INTLTOOL_UPDATE@,$INTLTOOL_UPDATE,;t t
 
24778
s,@INTLTOOL_PERL@,$INTLTOOL_PERL,;t t
 
24779
s,@build@,$build,;t t
 
24780
s,@build_cpu@,$build_cpu,;t t
 
24781
s,@build_vendor@,$build_vendor,;t t
 
24782
s,@build_os@,$build_os,;t t
 
24783
s,@host@,$host,;t t
 
24784
s,@host_cpu@,$host_cpu,;t t
 
24785
s,@host_vendor@,$host_vendor,;t t
 
24786
s,@host_os@,$host_os,;t t
 
24787
s,@LN_S@,$LN_S,;t t
 
24788
s,@ECHO@,$ECHO,;t t
 
24789
s,@AR@,$AR,;t t
 
24790
s,@ac_ct_AR@,$ac_ct_AR,;t t
 
24791
s,@RANLIB@,$RANLIB,;t t
 
24792
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
 
24793
s,@CXX@,$CXX,;t t
 
24794
s,@CXXFLAGS@,$CXXFLAGS,;t t
 
24795
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
 
24796
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
 
24797
s,@CXXCPP@,$CXXCPP,;t t
 
24798
s,@F77@,$F77,;t t
 
24799
s,@FFLAGS@,$FFLAGS,;t t
 
24800
s,@ac_ct_F77@,$ac_ct_F77,;t t
 
24801
s,@LIBTOOL@,$LIBTOOL,;t t
 
24802
s,@GETTEXT_PACKAGE@,$GETTEXT_PACKAGE,;t t
 
24803
s,@USE_NLS@,$USE_NLS,;t t
 
24804
s,@MSGFMT@,$MSGFMT,;t t
 
24805
s,@GMSGFMT@,$GMSGFMT,;t t
 
24806
s,@XGETTEXT@,$XGETTEXT,;t t
 
24807
s,@CATALOGS@,$CATALOGS,;t t
 
24808
s,@CATOBJEXT@,$CATOBJEXT,;t t
 
24809
s,@DATADIRNAME@,$DATADIRNAME,;t t
 
24810
s,@GMOFILES@,$GMOFILES,;t t
 
24811
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
 
24812
s,@INTLLIBS@,$INTLLIBS,;t t
 
24813
s,@PO_IN_DATADIR_TRUE@,$PO_IN_DATADIR_TRUE,;t t
 
24814
s,@PO_IN_DATADIR_FALSE@,$PO_IN_DATADIR_FALSE,;t t
 
24815
s,@POFILES@,$POFILES,;t t
 
24816
s,@POSUB@,$POSUB,;t t
 
24817
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
 
24818
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
 
24819
s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
 
24820
s,@GLIB_LIBS@,$GLIB_LIBS,;t t
 
24821
s,@GLIB_GENMARSHAL@,$GLIB_GENMARSHAL,;t t
 
24822
s,@GOBJECT_QUERY@,$GOBJECT_QUERY,;t t
 
24823
s,@GLIB_MKENUMS@,$GLIB_MKENUMS,;t t
 
24824
s,@LIBGNOMEUI_CFLAGS@,$LIBGNOMEUI_CFLAGS,;t t
 
24825
s,@LIBGNOMEUI_LIBS@,$LIBGNOMEUI_LIBS,;t t
 
24826
s,@LIBGNOME_CFLAGS@,$LIBGNOME_CFLAGS,;t t
 
24827
s,@LIBGNOME_LIBS@,$LIBGNOME_LIBS,;t t
 
24828
s,@GNOME_APPLETS_CFLAGS@,$GNOME_APPLETS_CFLAGS,;t t
 
24829
s,@GNOME_APPLETS_LIBS@,$GNOME_APPLETS_LIBS,;t t
 
24830
s,@PTHREAD_LDFLAGS@,$PTHREAD_LDFLAGS,;t t
 
24831
s,@GSMLIB_CFLAGS@,$GSMLIB_CFLAGS,;t t
 
24832
s,@osip_prefix@,$osip_prefix,;t t
 
24833
s,@IPV6_CFLAGS@,$IPV6_CFLAGS,;t t
 
24834
s,@TRUESPEECH_CFLAGS@,$TRUESPEECH_CFLAGS,;t t
 
24835
s,@BUILD_TRUESPEECH_TRUE@,$BUILD_TRUESPEECH_TRUE,;t t
 
24836
s,@BUILD_TRUESPEECH_FALSE@,$BUILD_TRUESPEECH_FALSE,;t t
 
24837
s,@SPEEX_CFLAGS@,$SPEEX_CFLAGS,;t t
 
24838
s,@SPEEX_LIBS@,$SPEEX_LIBS,;t t
 
24839
s,@NASM@,$NASM,;t t
 
24840
s,@AVCODEC_LIBS@,$AVCODEC_LIBS,;t t
 
24841
s,@GDK_CFLAGS@,$GDK_CFLAGS,;t t
 
24842
s,@GDK_LIBS@,$GDK_LIBS,;t t
 
24843
s,@BUILD_MEDIASTREAMER_TRUE@,$BUILD_MEDIASTREAMER_TRUE,;t t
 
24844
s,@BUILD_MEDIASTREAMER_FALSE@,$BUILD_MEDIASTREAMER_FALSE,;t t
 
24845
s,@HAVE_XINELIB_TRUE@,$HAVE_XINELIB_TRUE,;t t
 
24846
s,@HAVE_XINELIB_FALSE@,$HAVE_XINELIB_FALSE,;t t
 
24847
s,@HAVE_SMPEG_TRUE@,$HAVE_SMPEG_TRUE,;t t
 
24848
s,@HAVE_SMPEG_FALSE@,$HAVE_SMPEG_FALSE,;t t
 
24849
s,@BUILD_FFMPEG_TRUE@,$BUILD_FFMPEG_TRUE,;t t
 
24850
s,@BUILD_FFMPEG_FALSE@,$BUILD_FFMPEG_FALSE,;t t
 
24851
s,@BUILD_GDK_VO_TRUE@,$BUILD_GDK_VO_TRUE,;t t
 
24852
s,@BUILD_GDK_VO_FALSE@,$BUILD_GDK_VO_FALSE,;t t
 
24853
s,@BUILD_V4L_TRUE@,$BUILD_V4L_TRUE,;t t
 
24854
s,@BUILD_V4L_FALSE@,$BUILD_V4L_FALSE,;t t
 
24855
s,@BUILD_MEDIA_API_TRUE@,$BUILD_MEDIA_API_TRUE,;t t
 
24856
s,@BUILD_MEDIA_API_FALSE@,$BUILD_MEDIA_API_FALSE,;t t
 
24857
s,@BUILD_UGLIB_TRUE@,$BUILD_UGLIB_TRUE,;t t
 
24858
s,@BUILD_UGLIB_FALSE@,$BUILD_UGLIB_FALSE,;t t
 
24859
s,@BUILD_GNOME_TRUE@,$BUILD_GNOME_TRUE,;t t
 
24860
s,@BUILD_GNOME_FALSE@,$BUILD_GNOME_FALSE,;t t
 
24861
s,@BUILD_GNOME_APPLET_TRUE@,$BUILD_GNOME_APPLET_TRUE,;t t
 
24862
s,@BUILD_GNOME_APPLET_FALSE@,$BUILD_GNOME_APPLET_FALSE,;t t
 
24863
s,@BUILD_SPEEX_TRUE@,$BUILD_SPEEX_TRUE,;t t
 
24864
s,@BUILD_SPEEX_FALSE@,$BUILD_SPEEX_FALSE,;t t
 
24865
s,@ALSA_LIBS@,$ALSA_LIBS,;t t
 
24866
s,@subdirs@,$subdirs,;t t
 
24867
s,@HTML_DIR@,$HTML_DIR,;t t
 
24868
s,@GTK_DOC_CFLAGS@,$GTK_DOC_CFLAGS,;t t
 
24869
s,@GTK_DOC_LIBS@,$GTK_DOC_LIBS,;t t
 
24870
s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
 
24871
s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
 
24872
s,@LINPHONE_CFLAGS@,$LINPHONE_CFLAGS,;t t
 
24873
s,@LINPHONE_LIBS@,$LINPHONE_LIBS,;t t
 
24874
s,@SUPPORTLIB@,$SUPPORTLIB,;t t
 
24875
s,@LIBOBJS@,$LIBOBJS,;t t
 
24876
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
24877
CEOF
 
24878
 
 
24879
_ACEOF
 
24880
 
 
24881
  cat >>$CONFIG_STATUS <<\_ACEOF
 
24882
  # Split the substitutions into bite-sized pieces for seds with
 
24883
  # small command number limits, like on Digital OSF/1 and HP-UX.
 
24884
  ac_max_sed_lines=48
 
24885
  ac_sed_frag=1 # Number of current file.
 
24886
  ac_beg=1 # First line for current file.
 
24887
  ac_end=$ac_max_sed_lines # Line after last line for current file.
 
24888
  ac_more_lines=:
 
24889
  ac_sed_cmds=
 
24890
  while $ac_more_lines; do
 
24891
    if test $ac_beg -gt 1; then
 
24892
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
24893
    else
 
24894
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
24895
    fi
 
24896
    if test ! -s $tmp/subs.frag; then
 
24897
      ac_more_lines=false
 
24898
    else
 
24899
      # The purpose of the label and of the branching condition is to
 
24900
      # speed up the sed processing (if there are no `@' at all, there
 
24901
      # is no need to browse any of the substitutions).
 
24902
      # These are the two extra sed commands mentioned above.
 
24903
      (echo ':t
 
24904
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
 
24905
      if test -z "$ac_sed_cmds"; then
 
24906
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
 
24907
      else
 
24908
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
24909
      fi
 
24910
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
24911
      ac_beg=$ac_end
 
24912
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
24913
    fi
 
24914
  done
 
24915
  if test -z "$ac_sed_cmds"; then
 
24916
    ac_sed_cmds=cat
 
24917
  fi
 
24918
fi # test -n "$CONFIG_FILES"
 
24919
 
 
24920
_ACEOF
 
24921
cat >>$CONFIG_STATUS <<\_ACEOF
 
24922
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
 
24923
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
24924
  case $ac_file in
 
24925
  - | *:- | *:-:* ) # input from stdin
 
24926
        cat >$tmp/stdin
 
24927
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24928
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24929
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
24930
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
24931
  * )   ac_file_in=$ac_file.in ;;
 
24932
  esac
 
24933
 
 
24934
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
 
24935
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
24936
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24937
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
24938
         X"$ac_file" : 'X\(//\)$' \| \
 
24939
         X"$ac_file" : 'X\(/\)' \| \
 
24940
         .     : '\(.\)' 2>/dev/null ||
 
24941
echo X"$ac_file" |
 
24942
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24943
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24944
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24945
          /^X\(\/\).*/{ s//\1/; q; }
 
24946
          s/.*/./; q'`
 
24947
  { if $as_mkdir_p; then
 
24948
    mkdir -p "$ac_dir"
 
24949
  else
 
24950
    as_dir="$ac_dir"
 
24951
    as_dirs=
 
24952
    while test ! -d "$as_dir"; do
 
24953
      as_dirs="$as_dir $as_dirs"
 
24954
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
24955
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
24956
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
24957
         X"$as_dir" : 'X\(//\)$' \| \
 
24958
         X"$as_dir" : 'X\(/\)' \| \
 
24959
         .     : '\(.\)' 2>/dev/null ||
 
24960
echo X"$as_dir" |
 
24961
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
24962
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
24963
          /^X\(\/\/\)$/{ s//\1/; q; }
 
24964
          /^X\(\/\).*/{ s//\1/; q; }
 
24965
          s/.*/./; q'`
 
24966
    done
 
24967
    test ! -n "$as_dirs" || mkdir $as_dirs
 
24968
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
24969
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
24970
   { (exit 1); exit 1; }; }; }
 
24971
 
 
24972
  ac_builddir=.
 
24973
 
 
24974
if test "$ac_dir" != .; then
 
24975
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
24976
  # A "../" for each directory in $ac_dir_suffix.
 
24977
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
24978
else
 
24979
  ac_dir_suffix= ac_top_builddir=
 
24980
fi
 
24981
 
 
24982
case $srcdir in
 
24983
  .)  # No --srcdir option.  We are building in place.
 
24984
    ac_srcdir=.
 
24985
    if test -z "$ac_top_builddir"; then
 
24986
       ac_top_srcdir=.
 
24987
    else
 
24988
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
24989
    fi ;;
 
24990
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
24991
    ac_srcdir=$srcdir$ac_dir_suffix;
 
24992
    ac_top_srcdir=$srcdir ;;
 
24993
  *) # Relative path.
 
24994
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
24995
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
24996
esac
 
24997
 
 
24998
# Do not use `cd foo && pwd` to compute absolute paths, because
 
24999
# the directories may not exist.
 
25000
case `pwd` in
 
25001
.) ac_abs_builddir="$ac_dir";;
 
25002
*)
 
25003
  case "$ac_dir" in
 
25004
  .) ac_abs_builddir=`pwd`;;
 
25005
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25006
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25007
  esac;;
 
25008
esac
 
25009
case $ac_abs_builddir in
 
25010
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25011
*)
 
25012
  case ${ac_top_builddir}. in
 
25013
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25014
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25015
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25016
  esac;;
 
25017
esac
 
25018
case $ac_abs_builddir in
 
25019
.) ac_abs_srcdir=$ac_srcdir;;
 
25020
*)
 
25021
  case $ac_srcdir in
 
25022
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25023
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25024
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25025
  esac;;
 
25026
esac
 
25027
case $ac_abs_builddir in
 
25028
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25029
*)
 
25030
  case $ac_top_srcdir in
 
25031
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25032
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25033
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25034
  esac;;
 
25035
esac
 
25036
 
 
25037
 
 
25038
  case $INSTALL in
 
25039
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
25040
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
25041
  esac
 
25042
 
 
25043
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25044
  # use $as_me), people would be surprised to read:
 
25045
  #    /* config.h.  Generated by config.status.  */
 
25046
  if test x"$ac_file" = x-; then
 
25047
    configure_input=
 
25048
  else
 
25049
    configure_input="$ac_file.  "
 
25050
  fi
 
25051
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
25052
                                     sed 's,.*/,,'` by configure."
 
25053
 
 
25054
  # First look for the input files in the build tree, otherwise in the
 
25055
  # src tree.
 
25056
  ac_file_inputs=`IFS=:
 
25057
    for f in $ac_file_in; do
 
25058
      case $f in
 
25059
      -) echo $tmp/stdin ;;
 
25060
      [\\/$]*)
 
25061
         # Absolute (can't be DOS-style, as IFS=:)
 
25062
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25063
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25064
   { (exit 1); exit 1; }; }
 
25065
         echo "$f";;
 
25066
      *) # Relative
 
25067
         if test -f "$f"; then
 
25068
           # Build tree
 
25069
           echo "$f"
 
25070
         elif test -f "$srcdir/$f"; then
 
25071
           # Source tree
 
25072
           echo "$srcdir/$f"
 
25073
         else
 
25074
           # /dev/null tree
 
25075
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25076
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25077
   { (exit 1); exit 1; }; }
 
25078
         fi;;
 
25079
      esac
 
25080
    done` || { (exit 1); exit 1; }
 
25081
 
 
25082
  if test x"$ac_file" != x-; then
 
25083
    { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25084
echo "$as_me: creating $ac_file" >&6;}
 
25085
    rm -f "$ac_file"
 
25086
  fi
 
25087
_ACEOF
 
25088
cat >>$CONFIG_STATUS <<_ACEOF
 
25089
  sed "$ac_vpsub
 
25090
$extrasub
 
25091
_ACEOF
 
25092
cat >>$CONFIG_STATUS <<\_ACEOF
 
25093
:t
 
25094
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
25095
s,@configure_input@,$configure_input,;t t
 
25096
s,@srcdir@,$ac_srcdir,;t t
 
25097
s,@abs_srcdir@,$ac_abs_srcdir,;t t
 
25098
s,@top_srcdir@,$ac_top_srcdir,;t t
 
25099
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
 
25100
s,@builddir@,$ac_builddir,;t t
 
25101
s,@abs_builddir@,$ac_abs_builddir,;t t
 
25102
s,@top_builddir@,$ac_top_builddir,;t t
 
25103
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
 
25104
s,@INSTALL@,$ac_INSTALL,;t t
 
25105
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
 
25106
  rm -f $tmp/stdin
 
25107
  if test x"$ac_file" != x-; then
 
25108
    mv $tmp/out $ac_file
 
25109
  else
 
25110
    cat $tmp/out
 
25111
    rm -f $tmp/out
 
25112
  fi
 
25113
 
 
25114
done
 
25115
_ACEOF
 
25116
cat >>$CONFIG_STATUS <<\_ACEOF
 
25117
 
 
25118
#
 
25119
# CONFIG_HEADER section.
 
25120
#
 
25121
 
 
25122
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
 
25123
# NAME is the cpp macro being defined and VALUE is the value it is being given.
 
25124
#
 
25125
# ac_d sets the value in "#define NAME VALUE" lines.
 
25126
ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
 
25127
ac_dB='[         ].*$,\1#\2'
 
25128
ac_dC=' '
 
25129
ac_dD=',;t'
 
25130
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
25131
ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
25132
ac_uB='$,\1#\2define\3'
 
25133
ac_uC=' '
 
25134
ac_uD=',;t'
 
25135
 
 
25136
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
25137
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
25138
  case $ac_file in
 
25139
  - | *:- | *:-:* ) # input from stdin
 
25140
        cat >$tmp/stdin
 
25141
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25142
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25143
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25144
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
 
25145
  * )   ac_file_in=$ac_file.in ;;
 
25146
  esac
 
25147
 
 
25148
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
25149
echo "$as_me: creating $ac_file" >&6;}
 
25150
 
 
25151
  # First look for the input files in the build tree, otherwise in the
 
25152
  # src tree.
 
25153
  ac_file_inputs=`IFS=:
 
25154
    for f in $ac_file_in; do
 
25155
      case $f in
 
25156
      -) echo $tmp/stdin ;;
 
25157
      [\\/$]*)
 
25158
         # Absolute (can't be DOS-style, as IFS=:)
 
25159
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25160
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25161
   { (exit 1); exit 1; }; }
 
25162
         # Do quote $f, to prevent DOS paths from being IFS'd.
 
25163
         echo "$f";;
 
25164
      *) # Relative
 
25165
         if test -f "$f"; then
 
25166
           # Build tree
 
25167
           echo "$f"
 
25168
         elif test -f "$srcdir/$f"; then
 
25169
           # Source tree
 
25170
           echo "$srcdir/$f"
 
25171
         else
 
25172
           # /dev/null tree
 
25173
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
 
25174
echo "$as_me: error: cannot find input file: $f" >&2;}
 
25175
   { (exit 1); exit 1; }; }
 
25176
         fi;;
 
25177
      esac
 
25178
    done` || { (exit 1); exit 1; }
 
25179
  # Remove the trailing spaces.
 
25180
  sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
 
25181
 
 
25182
_ACEOF
 
25183
 
 
25184
# Transform confdefs.h into two sed scripts, `conftest.defines' and
 
25185
# `conftest.undefs', that substitutes the proper values into
 
25186
# config.h.in to produce config.h.  The first handles `#define'
 
25187
# templates, and the second `#undef' templates.
 
25188
# And first: Protect against being on the right side of a sed subst in
 
25189
# config.status.  Protect against being in an unquoted here document
 
25190
# in config.status.
 
25191
rm -f conftest.defines conftest.undefs
 
25192
# Using a here document instead of a string reduces the quoting nightmare.
 
25193
# Putting comments in sed scripts is not portable.
 
25194
#
 
25195
# `end' is used to avoid that the second main sed command (meant for
 
25196
# 0-ary CPP macros) applies to n-ary macro definitions.
 
25197
# See the Autoconf documentation for `clear'.
 
25198
cat >confdef2sed.sed <<\_ACEOF
 
25199
s/[\\&,]/\\&/g
 
25200
s,[\\$`],\\&,g
 
25201
t clear
 
25202
: clear
 
25203
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
25204
t end
 
25205
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
25206
: end
 
25207
_ACEOF
 
25208
# If some macros were called several times there might be several times
 
25209
# the same #defines, which is useless.  Nevertheless, we may not want to
 
25210
# sort them, since we want the *last* AC-DEFINE to be honored.
 
25211
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
 
25212
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
 
25213
rm -f confdef2sed.sed
 
25214
 
 
25215
# This sed command replaces #undef with comments.  This is necessary, for
 
25216
# example, in the case of _POSIX_SOURCE, which is predefined and required
 
25217
# on some systems where configure will not decide to define it.
 
25218
cat >>conftest.undefs <<\_ACEOF
 
25219
s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
 
25220
_ACEOF
 
25221
 
 
25222
# Break up conftest.defines because some shells have a limit on the size
 
25223
# of here documents, and old seds have small limits too (100 cmds).
 
25224
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
 
25225
echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
 
25226
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
 
25227
echo '  :' >>$CONFIG_STATUS
 
25228
rm -f conftest.tail
 
25229
while grep . conftest.defines >/dev/null
 
25230
do
 
25231
  # Write a limited-size here document to $tmp/defines.sed.
 
25232
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
 
25233
  # Speed up: don't consider the non `#define' lines.
 
25234
  echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
 
25235
  # Work around the forget-to-reset-the-flag bug.
 
25236
  echo 't clr' >>$CONFIG_STATUS
 
25237
  echo ': clr' >>$CONFIG_STATUS
 
25238
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
 
25239
  echo 'CEOF
 
25240
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
25241
  rm -f $tmp/in
 
25242
  mv $tmp/out $tmp/in
 
25243
' >>$CONFIG_STATUS
 
25244
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
25245
  rm -f conftest.defines
 
25246
  mv conftest.tail conftest.defines
 
25247
done
 
25248
rm -f conftest.defines
 
25249
echo '  fi # grep' >>$CONFIG_STATUS
 
25250
echo >>$CONFIG_STATUS
 
25251
 
 
25252
# Break up conftest.undefs because some shells have a limit on the size
 
25253
# of here documents, and old seds have small limits too (100 cmds).
 
25254
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
 
25255
rm -f conftest.tail
 
25256
while grep . conftest.undefs >/dev/null
 
25257
do
 
25258
  # Write a limited-size here document to $tmp/undefs.sed.
 
25259
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
 
25260
  # Speed up: don't consider the non `#undef'
 
25261
  echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
 
25262
  # Work around the forget-to-reset-the-flag bug.
 
25263
  echo 't clr' >>$CONFIG_STATUS
 
25264
  echo ': clr' >>$CONFIG_STATUS
 
25265
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
 
25266
  echo 'CEOF
 
25267
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
25268
  rm -f $tmp/in
 
25269
  mv $tmp/out $tmp/in
 
25270
' >>$CONFIG_STATUS
 
25271
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
25272
  rm -f conftest.undefs
 
25273
  mv conftest.tail conftest.undefs
 
25274
done
 
25275
rm -f conftest.undefs
 
25276
 
 
25277
cat >>$CONFIG_STATUS <<\_ACEOF
 
25278
  # Let's still pretend it is `configure' which instantiates (i.e., don't
 
25279
  # use $as_me), people would be surprised to read:
 
25280
  #    /* config.h.  Generated by config.status.  */
 
25281
  if test x"$ac_file" = x-; then
 
25282
    echo "/* Generated by configure.  */" >$tmp/config.h
 
25283
  else
 
25284
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
25285
  fi
 
25286
  cat $tmp/in >>$tmp/config.h
 
25287
  rm -f $tmp/in
 
25288
  if test x"$ac_file" != x-; then
 
25289
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
 
25290
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
25291
echo "$as_me: $ac_file is unchanged" >&6;}
 
25292
    else
 
25293
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
 
25294
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25295
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
25296
         X"$ac_file" : 'X\(//\)$' \| \
 
25297
         X"$ac_file" : 'X\(/\)' \| \
 
25298
         .     : '\(.\)' 2>/dev/null ||
 
25299
echo X"$ac_file" |
 
25300
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25301
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25302
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25303
          /^X\(\/\).*/{ s//\1/; q; }
 
25304
          s/.*/./; q'`
 
25305
      { if $as_mkdir_p; then
 
25306
    mkdir -p "$ac_dir"
 
25307
  else
 
25308
    as_dir="$ac_dir"
 
25309
    as_dirs=
 
25310
    while test ! -d "$as_dir"; do
 
25311
      as_dirs="$as_dir $as_dirs"
 
25312
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25314
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25315
         X"$as_dir" : 'X\(//\)$' \| \
 
25316
         X"$as_dir" : 'X\(/\)' \| \
 
25317
         .     : '\(.\)' 2>/dev/null ||
 
25318
echo X"$as_dir" |
 
25319
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25320
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25321
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25322
          /^X\(\/\).*/{ s//\1/; q; }
 
25323
          s/.*/./; q'`
 
25324
    done
 
25325
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25326
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25327
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25328
   { (exit 1); exit 1; }; }; }
 
25329
 
 
25330
      rm -f $ac_file
 
25331
      mv $tmp/config.h $ac_file
 
25332
    fi
 
25333
  else
 
25334
    cat $tmp/config.h
 
25335
    rm -f $tmp/config.h
 
25336
  fi
 
25337
  # Run the commands associated with the file.
 
25338
  case $ac_file in
 
25339
    config.h ) # update the timestamp
 
25340
echo 'timestamp for config.h' >"./stamp-h1"
 
25341
 ;;
 
25342
  esac
 
25343
done
 
25344
_ACEOF
 
25345
cat >>$CONFIG_STATUS <<\_ACEOF
 
25346
 
 
25347
#
 
25348
# CONFIG_COMMANDS section.
 
25349
#
 
25350
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
 
25351
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
 
25352
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
 
25353
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
 
25354
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25355
         X"$ac_dest" : 'X\(//\)[^/]' \| \
 
25356
         X"$ac_dest" : 'X\(//\)$' \| \
 
25357
         X"$ac_dest" : 'X\(/\)' \| \
 
25358
         .     : '\(.\)' 2>/dev/null ||
 
25359
echo X"$ac_dest" |
 
25360
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25361
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25362
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25363
          /^X\(\/\).*/{ s//\1/; q; }
 
25364
          s/.*/./; q'`
 
25365
  { if $as_mkdir_p; then
 
25366
    mkdir -p "$ac_dir"
 
25367
  else
 
25368
    as_dir="$ac_dir"
 
25369
    as_dirs=
 
25370
    while test ! -d "$as_dir"; do
 
25371
      as_dirs="$as_dir $as_dirs"
 
25372
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25373
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25374
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25375
         X"$as_dir" : 'X\(//\)$' \| \
 
25376
         X"$as_dir" : 'X\(/\)' \| \
 
25377
         .     : '\(.\)' 2>/dev/null ||
 
25378
echo X"$as_dir" |
 
25379
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25380
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25381
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25382
          /^X\(\/\).*/{ s//\1/; q; }
 
25383
          s/.*/./; q'`
 
25384
    done
 
25385
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25386
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25387
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25388
   { (exit 1); exit 1; }; }; }
 
25389
 
 
25390
  ac_builddir=.
 
25391
 
 
25392
if test "$ac_dir" != .; then
 
25393
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25394
  # A "../" for each directory in $ac_dir_suffix.
 
25395
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25396
else
 
25397
  ac_dir_suffix= ac_top_builddir=
 
25398
fi
 
25399
 
 
25400
case $srcdir in
 
25401
  .)  # No --srcdir option.  We are building in place.
 
25402
    ac_srcdir=.
 
25403
    if test -z "$ac_top_builddir"; then
 
25404
       ac_top_srcdir=.
 
25405
    else
 
25406
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25407
    fi ;;
 
25408
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25409
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25410
    ac_top_srcdir=$srcdir ;;
 
25411
  *) # Relative path.
 
25412
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25413
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25414
esac
 
25415
 
 
25416
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25417
# the directories may not exist.
 
25418
case `pwd` in
 
25419
.) ac_abs_builddir="$ac_dir";;
 
25420
*)
 
25421
  case "$ac_dir" in
 
25422
  .) ac_abs_builddir=`pwd`;;
 
25423
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25424
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25425
  esac;;
 
25426
esac
 
25427
case $ac_abs_builddir in
 
25428
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25429
*)
 
25430
  case ${ac_top_builddir}. in
 
25431
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25432
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25433
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25434
  esac;;
 
25435
esac
 
25436
case $ac_abs_builddir in
 
25437
.) ac_abs_srcdir=$ac_srcdir;;
 
25438
*)
 
25439
  case $ac_srcdir in
 
25440
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25441
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25442
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25443
  esac;;
 
25444
esac
 
25445
case $ac_abs_builddir in
 
25446
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25447
*)
 
25448
  case $ac_top_srcdir in
 
25449
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25450
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25451
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25452
  esac;;
 
25453
esac
 
25454
 
 
25455
 
 
25456
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
25457
echo "$as_me: executing $ac_dest commands" >&6;}
 
25458
  case $ac_dest in
 
25459
    depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
25460
  # Strip MF so we end up with the name of the file.
 
25461
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
25462
  # Check whether this is an Automake generated Makefile or not.
 
25463
  # We used to match only the files named `Makefile.in', but
 
25464
  # some people rename them; so instead we look at the file content.
 
25465
  # Grep'ing the first line is not enough: some people post-process
 
25466
  # each Makefile.in and add a new line on top of each file to say so.
 
25467
  # So let's grep whole file.
 
25468
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
25469
    dirpart=`(dirname "$mf") 2>/dev/null ||
 
25470
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25471
         X"$mf" : 'X\(//\)[^/]' \| \
 
25472
         X"$mf" : 'X\(//\)$' \| \
 
25473
         X"$mf" : 'X\(/\)' \| \
 
25474
         .     : '\(.\)' 2>/dev/null ||
 
25475
echo X"$mf" |
 
25476
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25477
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25478
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25479
          /^X\(\/\).*/{ s//\1/; q; }
 
25480
          s/.*/./; q'`
 
25481
  else
 
25482
    continue
 
25483
  fi
 
25484
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
25485
  # Extract the definition of DEP_FILES from the Makefile without
 
25486
  # running `make'.
 
25487
  DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
 
25488
  test -z "$DEPDIR" && continue
 
25489
  # When using ansi2knr, U may be empty or an underscore; expand it
 
25490
  U=`sed -n -e '/^U = / s///p' < "$mf"`
 
25491
  test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
 
25492
  # We invoke sed twice because it is the simplest approach to
 
25493
  # changing $(DEPDIR) to its actual value in the expansion.
 
25494
  for file in `sed -n -e '
 
25495
    /^DEP_FILES = .*\\\\$/ {
 
25496
      s/^DEP_FILES = //
 
25497
      :loop
 
25498
        s/\\\\$//
 
25499
        p
 
25500
        n
 
25501
        /\\\\$/ b loop
 
25502
      p
 
25503
    }
 
25504
    /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
 
25505
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
25506
    # Make sure the directory exists.
 
25507
    test -f "$dirpart/$file" && continue
 
25508
    fdir=`(dirname "$file") 2>/dev/null ||
 
25509
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25510
         X"$file" : 'X\(//\)[^/]' \| \
 
25511
         X"$file" : 'X\(//\)$' \| \
 
25512
         X"$file" : 'X\(/\)' \| \
 
25513
         .     : '\(.\)' 2>/dev/null ||
 
25514
echo X"$file" |
 
25515
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25516
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25517
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25518
          /^X\(\/\).*/{ s//\1/; q; }
 
25519
          s/.*/./; q'`
 
25520
    { if $as_mkdir_p; then
 
25521
    mkdir -p $dirpart/$fdir
 
25522
  else
 
25523
    as_dir=$dirpart/$fdir
 
25524
    as_dirs=
 
25525
    while test ! -d "$as_dir"; do
 
25526
      as_dirs="$as_dir $as_dirs"
 
25527
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25528
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25529
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25530
         X"$as_dir" : 'X\(//\)$' \| \
 
25531
         X"$as_dir" : 'X\(/\)' \| \
 
25532
         .     : '\(.\)' 2>/dev/null ||
 
25533
echo X"$as_dir" |
 
25534
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25535
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25536
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25537
          /^X\(\/\).*/{ s//\1/; q; }
 
25538
          s/.*/./; q'`
 
25539
    done
 
25540
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25541
  fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
 
25542
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
 
25543
   { (exit 1); exit 1; }; }; }
 
25544
 
 
25545
    # echo "creating $dirpart/$file"
 
25546
    echo '# dummy' > "$dirpart/$file"
 
25547
  done
 
25548
done
 
25549
 ;;
 
25550
    default-1 )
 
25551
 
 
25552
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-extract.in > intltool-extract.out
 
25553
if cmp -s intltool-extract intltool-extract.out 2>/dev/null; then
 
25554
  rm -f intltool-extract.out
 
25555
else
 
25556
  mv -f intltool-extract.out intltool-extract
 
25557
fi
 
25558
chmod ugo+x intltool-extract
 
25559
chmod u+w intltool-extract
 
25560
 
 
25561
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" \
 
25562
    < ${ac_aux_dir}/intltool-merge.in > intltool-merge.out
 
25563
if cmp -s intltool-merge intltool-merge.out 2>/dev/null; then
 
25564
  rm -f intltool-merge.out
 
25565
else
 
25566
  mv -f intltool-merge.out intltool-merge
 
25567
fi
 
25568
chmod ugo+x intltool-merge
 
25569
chmod u+w intltool-merge
 
25570
 
 
25571
sed -e "s:@INTLTOOL_PERL@:${INTLTOOL_PERL}:;" < ${ac_aux_dir}/intltool-update.in > intltool-update.out
 
25572
if cmp -s intltool-update intltool-update.out 2>/dev/null; then
 
25573
  rm -f intltool-update.out
 
25574
else
 
25575
  mv -f intltool-update.out intltool-update
 
25576
fi
 
25577
chmod ugo+x intltool-update
 
25578
chmod u+w intltool-update
 
25579
 
 
25580
 ;;
 
25581
    default-2 ) case "$CONFIG_FILES" in *po/Makefile.in*)
 
25582
        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
 
25583
      esac ;;
 
25584
  esac
 
25585
done
 
25586
_ACEOF
 
25587
 
 
25588
cat >>$CONFIG_STATUS <<\_ACEOF
 
25589
 
 
25590
{ (exit 0); exit 0; }
 
25591
_ACEOF
 
25592
chmod +x $CONFIG_STATUS
 
25593
ac_clean_files=$ac_clean_files_save
 
25594
 
 
25595
 
 
25596
# configure is writing to config.log, and then calls config.status.
 
25597
# config.status does its own redirection, appending to config.log.
 
25598
# Unfortunately, on DOS this fails, as config.log is still kept open
 
25599
# by configure, so config.status won't be able to write to it; its
 
25600
# output is simply discarded.  So we exec the FD to /dev/null,
 
25601
# effectively closing config.log, so it can be properly (re)opened and
 
25602
# appended to by config.status.  When coming back to configure, we
 
25603
# need to make the FD available again.
 
25604
if test "$no_create" != yes; then
 
25605
  ac_cs_success=:
 
25606
  ac_config_status_args=
 
25607
  test "$silent" = yes &&
 
25608
    ac_config_status_args="$ac_config_status_args --quiet"
 
25609
  exec 5>/dev/null
 
25610
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
25611
  exec 5>>config.log
 
25612
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
25613
  # would make configure fail if this is the last instruction.
 
25614
  $ac_cs_success || { (exit 1); exit 1; }
 
25615
fi
 
25616
 
 
25617
#
 
25618
# CONFIG_SUBDIRS section.
 
25619
#
 
25620
if test "$no_recursion" != yes; then
 
25621
 
 
25622
  # Remove --cache-file and --srcdir arguments so they do not pile up.
 
25623
  ac_sub_configure_args=
 
25624
  ac_prev=
 
25625
  for ac_arg in $ac_configure_args; do
 
25626
    if test -n "$ac_prev"; then
 
25627
      ac_prev=
 
25628
      continue
 
25629
    fi
 
25630
    case $ac_arg in
 
25631
    -cache-file | --cache-file | --cache-fil | --cache-fi \
 
25632
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
25633
      ac_prev=cache_file ;;
 
25634
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
25635
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
 
25636
    | --c=*)
 
25637
      ;;
 
25638
    --config-cache | -C)
 
25639
      ;;
 
25640
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
25641
      ac_prev=srcdir ;;
 
25642
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
25643
      ;;
 
25644
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
25645
      ac_prev=prefix ;;
 
25646
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
25647
      ;;
 
25648
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
 
25649
    esac
 
25650
  done
 
25651
 
 
25652
  # Always prepend --prefix to ensure using the same prefix
 
25653
  # in subdir configurations.
 
25654
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
 
25655
 
 
25656
  ac_popdir=`pwd`
 
25657
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
 
25658
 
 
25659
    # Do not complain, so a configure script can configure whichever
 
25660
    # parts of a large source tree are present.
 
25661
    test -d $srcdir/$ac_dir || continue
 
25662
 
 
25663
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
 
25664
echo "$as_me: configuring in $ac_dir" >&6;}
 
25665
    { if $as_mkdir_p; then
 
25666
    mkdir -p "$ac_dir"
 
25667
  else
 
25668
    as_dir="$ac_dir"
 
25669
    as_dirs=
 
25670
    while test ! -d "$as_dir"; do
 
25671
      as_dirs="$as_dir $as_dirs"
 
25672
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
 
25673
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
25674
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
25675
         X"$as_dir" : 'X\(//\)$' \| \
 
25676
         X"$as_dir" : 'X\(/\)' \| \
 
25677
         .     : '\(.\)' 2>/dev/null ||
 
25678
echo X"$as_dir" |
 
25679
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
25680
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
25681
          /^X\(\/\/\)$/{ s//\1/; q; }
 
25682
          /^X\(\/\).*/{ s//\1/; q; }
 
25683
          s/.*/./; q'`
 
25684
    done
 
25685
    test ! -n "$as_dirs" || mkdir $as_dirs
 
25686
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
 
25687
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
 
25688
   { (exit 1); exit 1; }; }; }
 
25689
 
 
25690
    ac_builddir=.
 
25691
 
 
25692
if test "$ac_dir" != .; then
 
25693
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
25694
  # A "../" for each directory in $ac_dir_suffix.
 
25695
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
 
25696
else
 
25697
  ac_dir_suffix= ac_top_builddir=
 
25698
fi
 
25699
 
 
25700
case $srcdir in
 
25701
  .)  # No --srcdir option.  We are building in place.
 
25702
    ac_srcdir=.
 
25703
    if test -z "$ac_top_builddir"; then
 
25704
       ac_top_srcdir=.
 
25705
    else
 
25706
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
25707
    fi ;;
 
25708
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
25709
    ac_srcdir=$srcdir$ac_dir_suffix;
 
25710
    ac_top_srcdir=$srcdir ;;
 
25711
  *) # Relative path.
 
25712
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
25713
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
25714
esac
 
25715
 
 
25716
# Do not use `cd foo && pwd` to compute absolute paths, because
 
25717
# the directories may not exist.
 
25718
case `pwd` in
 
25719
.) ac_abs_builddir="$ac_dir";;
 
25720
*)
 
25721
  case "$ac_dir" in
 
25722
  .) ac_abs_builddir=`pwd`;;
 
25723
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
 
25724
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
 
25725
  esac;;
 
25726
esac
 
25727
case $ac_abs_builddir in
 
25728
.) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25729
*)
 
25730
  case ${ac_top_builddir}. in
 
25731
  .) ac_abs_top_builddir=$ac_abs_builddir;;
 
25732
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
 
25733
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
 
25734
  esac;;
 
25735
esac
 
25736
case $ac_abs_builddir in
 
25737
.) ac_abs_srcdir=$ac_srcdir;;
 
25738
*)
 
25739
  case $ac_srcdir in
 
25740
  .) ac_abs_srcdir=$ac_abs_builddir;;
 
25741
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
 
25742
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
 
25743
  esac;;
 
25744
esac
 
25745
case $ac_abs_builddir in
 
25746
.) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25747
*)
 
25748
  case $ac_top_srcdir in
 
25749
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
 
25750
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
 
25751
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
 
25752
  esac;;
 
25753
esac
 
25754
 
 
25755
 
 
25756
    cd $ac_dir
 
25757
 
 
25758
    # Check for guested configure; otherwise get Cygnus style configure.
 
25759
    if test -f $ac_srcdir/configure.gnu; then
 
25760
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
 
25761
    elif test -f $ac_srcdir/configure; then
 
25762
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
 
25763
    elif test -f $ac_srcdir/configure.in; then
 
25764
      ac_sub_configure=$ac_configure
 
25765
    else
 
25766
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
 
25767
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
 
25768
      ac_sub_configure=
 
25769
    fi
 
25770
 
 
25771
    # The recursion is here.
 
25772
    if test -n "$ac_sub_configure"; then
 
25773
      # Make the cache file name correct relative to the subdirectory.
 
25774
      case $cache_file in
 
25775
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
 
25776
      *) # Relative path.
 
25777
        ac_sub_cache_file=$ac_top_builddir$cache_file ;;
 
25778
      esac
 
25779
 
 
25780
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
 
25781
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
 
25782
      # The eval makes quoting arguments work.
 
25783
      eval $ac_sub_configure $ac_sub_configure_args \
 
25784
           --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
 
25785
        { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
 
25786
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
 
25787
   { (exit 1); exit 1; }; }
 
25788
    fi
 
25789
 
 
25790
    cd "$ac_popdir"
 
25791
  done
 
25792
fi
 
25793
 
 
25794
 
 
25795
echo "Linphone build configuration ended."
 
25796
if test x$gnome_ui = xtrue ; then
 
25797
        if test x$build_gnome_applet = xtrue ; then
 
25798
                echo "* Gnome applet will be compiled."
 
25799
        else
 
25800
                echo "* Gnome applet will not be compiled due to missing gnome-applet library."
 
25801
        fi
 
25802
else
 
25803
  if test "$missing_gnome_libs" = "true" ; then
 
25804
    echo "Libgnome and/or libgnomeui are missing. For that reason the gnome interface cannot be compiled."
 
25805
  fi
 
25806
  if test "$useglib" = "true" ; then
 
25807
          echo "* Compilation of gnome interface is disabled."
 
25808
  else
 
25809
    echo "* Compilation of gnome interface is disabled because glib support was disabled or glib-2.0 was not found."
 
25810
  fi
 
25811
 
 
25812
fi
 
25813
echo "* Console interface will be compiled."
 
25814
 
 
25815
echo "Now type 'make' to compile, and then 'make install' as root to install it."